Skip to content

Commit 1cbcf73

Browse files
authored
Remove long-term deprecated, and no longer functioning, total_price_usd field. (bold-commerce#231)
1 parent d5d643a commit 1cbcf73

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

order.go

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ type Order struct {
229229
OrderStatusUrl string `json:"order_status_url,omitempty"`
230230
Gateway string `json:"gateway,omitempty"`
231231
Confirmed bool `json:"confirmed,omitempty"`
232-
TotalPriceUSD *decimal.Decimal `json:"total_price_usd,omitempty"`
233232
CheckoutToken string `json:"checkout_token,omitempty"`
234233
Reference string `json:"reference,omitempty"`
235234
SourceIdentifier string `json:"source_identifier,omitempty"`
@@ -293,10 +292,15 @@ type LineItem struct {
293292
Grams int `json:"grams,omitempty"`
294293
FulfillmentStatus orderFulfillmentStatus `json:"fulfillment_status,omitempty"`
295294
TaxLines []TaxLine `json:"tax_lines,omitempty"`
296-
OriginLocation *Address `json:"origin_location,omitempty"`
297-
DestinationLocation *Address `json:"destination_location,omitempty"`
298-
AppliedDiscount *AppliedDiscount `json:"applied_discount,omitempty"`
299-
DiscountAllocations []DiscountAllocations `json:"discount_allocations,omitempty"`
295+
296+
//Deprecated: See 2022-10 release notes: https://shopify.dev/docs/api/release-notes/2022-10
297+
OriginLocation *Address `json:"origin_location,omitempty"`
298+
299+
//Deprecated: See 2022-10 release notes: https://shopify.dev/docs/api/release-notes/2022-10
300+
DestinationLocation *Address `json:"destination_location,omitempty"`
301+
302+
AppliedDiscount *AppliedDiscount `json:"applied_discount,omitempty"`
303+
DiscountAllocations []DiscountAllocations `json:"discount_allocations,omitempty"`
300304
}
301305

302306
type DiscountAllocations struct {

0 commit comments

Comments
 (0)