Skip to content

Commit

Permalink
feat: add variant response property presentment_prices
Browse files Browse the repository at this point in the history
  • Loading branch information
xdlbdy committed Jan 9, 2024
1 parent 6898174 commit ffa391b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions variant.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,17 @@ type Variant struct {
RequireShipping bool `json:"requires_shipping"`
AdminGraphqlAPIID string `json:"admin_graphql_api_id,omitempty"`
Metafields []Metafield `json:"metafields,omitempty"`
PresentmentPrices []presentmentPrices `json:"presentment_prices,omitempty"`
}

type presentmentPrices struct {
Price *presentmentPrice `json:"price,omitempty"`
CompareAtPrice *presentmentPrice `json:"compare_at_price,omitempty"`
}

type presentmentPrice struct {
Amount string `json:"amount,omitempty"`
CurrencyCode string `json:"currency_code,omitempty"`
}

// VariantResource represents the result from the variants/X.json endpoint
Expand Down

0 comments on commit ffa391b

Please sign in to comment.