Skip to content

Commit f644757

Browse files
authored
add missing price sets in order (#313)
1 parent e1f6563 commit f644757

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

order.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,11 @@ type Order struct {
311311
SubtotalPrice *decimal.Decimal `json:"subtotal_price,omitempty"`
312312
CurrentSubtotalPrice *decimal.Decimal `json:"current_subtotal_price,omitempty"`
313313
TotalDiscounts *decimal.Decimal `json:"total_discounts,omitempty"`
314-
TotalDiscountSet *AmountSet `json:"total_discount_set,omitempty"`
314+
TotalDiscountsSet *AmountSet `json:"total_discounts_set,omitempty"`
315315
CurrentTotalDiscounts *decimal.Decimal `json:"current_total_discounts,omitempty"`
316316
CurrentTotalDiscountsSet *AmountSet `json:"current_total_discounts_set,omitempty"`
317317
TotalLineItemsPrice *decimal.Decimal `json:"total_line_items_price,omitempty"`
318+
TotalLineItemsPriceSet *AmountSet `json:"total_line_items_price_set,omitempty"`
318319
TaxesIncluded bool `json:"taxes_included,omitempty"`
319320
TotalTax *decimal.Decimal `json:"total_tax,omitempty"`
320321
TotalTaxSet *AmountSet `json:"total_tax_set,omitempty"`
@@ -416,6 +417,7 @@ type LineItem struct {
416417
Quantity int `json:"quantity,omitempty"`
417418
CurrentQuantity int `json:"current_quantity,omitempty"`
418419
Price *decimal.Decimal `json:"price,omitempty"`
420+
PriceSet *AmountSet `json:"price_set,omitempty"`
419421
TotalDiscount *decimal.Decimal `json:"total_discount,omitempty"`
420422
Title string `json:"title,omitempty"`
421423
VariantTitle string `json:"variant_title,omitempty"`
@@ -569,9 +571,10 @@ func (sl *ShippingLines) UnmarshalJSON(data []byte) error {
569571
}
570572

571573
type TaxLine struct {
572-
Title string `json:"title,omitempty"`
573-
Price *decimal.Decimal `json:"price,omitempty"`
574-
Rate *decimal.Decimal `json:"rate,omitempty"`
574+
Title string `json:"title,omitempty"`
575+
Price *decimal.Decimal `json:"price,omitempty"`
576+
PriceSet *AmountSet `json:"price_set,omitempty"`
577+
Rate *decimal.Decimal `json:"rate,omitempty"`
575578
}
576579

577580
type Transaction struct {

0 commit comments

Comments
 (0)