From f64475713fcbeaf1a12718bd05a443f5bc8d3f09 Mon Sep 17 00:00:00 2001 From: Andy Warren Date: Fri, 6 Dec 2024 15:04:44 +0000 Subject: [PATCH] add missing price sets in order (#313) --- order.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/order.go b/order.go index 00a6208b..1e4e84fe 100644 --- a/order.go +++ b/order.go @@ -311,10 +311,11 @@ type Order struct { SubtotalPrice *decimal.Decimal `json:"subtotal_price,omitempty"` 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 +417,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 +571,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 {