Skip to content

Commit

Permalink
add missing price sets in order (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
andypwarren authored Dec 6, 2024
1 parent e1f6563 commit f644757
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions order.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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"`
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit f644757

Please sign in to comment.