From 8164a97fa95daa4afac1747322521800b99a4310 Mon Sep 17 00:00:00 2001 From: Andy Warren Date: Thu, 5 Dec 2024 09:44:50 +0000 Subject: [PATCH] add missing price sets in order --- order.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/order.go b/order.go index 00a6208b..0fcfd28b 100644 --- a/order.go +++ b/order.go @@ -312,9 +312,11 @@ type Order struct { CurrentSubtotalPrice *decimal.Decimal `json:"current_subtotal_price,omitempty"` TotalDiscounts *decimal.Decimal `json:"total_discounts,omitempty"` TotalDiscountSet *AmountSet `json:"total_discount_set,omitempty"` + TotalDiscountsSet *AmountSet `json:"total_discounts_set,omitempty"` CurrentTotalDiscounts *decimal.Decimal `json:"current_total_discounts,omitempty"` CurrentTotalDiscountsSet *AmountSet `json:"current_total_discounts_set,omitempty"` TotalLineItemsPrice *decimal.Decimal `json:"total_line_items_price,omitempty"` + TotalLineItemsPriceSet *AmountSet `json:"total_line_items_price_set,omitempty"` TaxesIncluded bool `json:"taxes_included,omitempty"` TotalTax *decimal.Decimal `json:"total_tax,omitempty"` TotalTaxSet *AmountSet `json:"total_tax_set,omitempty"` @@ -416,6 +418,7 @@ type LineItem struct { Quantity int `json:"quantity,omitempty"` CurrentQuantity int `json:"current_quantity,omitempty"` Price *decimal.Decimal `json:"price,omitempty"` + PriceSet *AmountSet `json:"price_set,omitempty"` TotalDiscount *decimal.Decimal `json:"total_discount,omitempty"` Title string `json:"title,omitempty"` VariantTitle string `json:"variant_title,omitempty"` @@ -569,9 +572,10 @@ func (sl *ShippingLines) UnmarshalJSON(data []byte) error { } type TaxLine struct { - Title string `json:"title,omitempty"` - Price *decimal.Decimal `json:"price,omitempty"` - Rate *decimal.Decimal `json:"rate,omitempty"` + Title string `json:"title,omitempty"` + Price *decimal.Decimal `json:"price,omitempty"` + PriceSet *AmountSet `json:"price_set,omitempty"` + Rate *decimal.Decimal `json:"rate,omitempty"` } type Transaction struct {