Skip to content

Commit

Permalink
Merge pull request #51 from jjideenschmiede/development
Browse files Browse the repository at this point in the history
fix: Remove omitempty from types.
  • Loading branch information
gowizzard authored Mar 6, 2024
2 parents e66a621 + 59e5f4e commit d7639ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions product_variants.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type ProductVariantBody struct {
type ProductVariantBodyVariant struct {
Id int `json:"id,omitempty"`
Title string `json:"title,omitempty"`
Price string `json:"price,omitempty"`
Price string `json:"price"`
Sku string `json:"sku,omitempty"`
CompareAtPrice string `json:"compare_at_price"`
FulfillmentService string `json:"fulfillment_service,omitempty"`
Expand Down Expand Up @@ -106,7 +106,7 @@ type ProductVariantPriceBody struct {

type ProductVariantPriceBodyVariant struct {
Id int `json:"id"`
Price string `json:"price,omitempty"`
Price string `json:"price"`
CompareAtPrice string `json:"compare_at_price"`
}

Expand Down
2 changes: 1 addition & 1 deletion products.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type ProductBodyImages struct {

type ProductBodyVariants struct {
Title string `json:"title,omitempty"`
Price string `json:"price,omitempty"`
Price string `json:"price"`
Sku string `json:"sku,omitempty"`
CompareAtPrice string `json:"compare_at_price"`
FulfillmentService string `json:"fulfillment_service,omitempty"`
Expand Down

0 comments on commit d7639ca

Please sign in to comment.