Skip to content

Commit

Permalink
BE-5876 Update to Support 2024-07
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedkidwai committed Feb 3, 2025
1 parent f644757 commit 413ebf8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions fixtures/product.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@
"price": "0.00",
"sku": "",
"position": 1,
"grams": 0,
"inventory_policy": "deny",
"compare_at_price": null,
"fulfillment_service": "manual",
"inventory_management": null,
"option1": "Default Title",
"option2": null,
"option3": null,
Expand All @@ -34,10 +31,7 @@
"barcode": null,
"image_id": null,
"inventory_quantity": 1,
"weight": 0.0,
"weight_unit": "lb",
"old_inventory_quantity": 1,
"requires_shipping": true,
"admin_graphql_api_id": "gid://shopify/ProductVariant/1070325219"
}
],
Expand Down
6 changes: 0 additions & 6 deletions variant.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ type Variant struct {
Title string `json:"title,omitempty"`
Sku string `json:"sku,omitempty"`
Position int `json:"position,omitempty"`
Grams int `json:"grams,omitempty"`
InventoryPolicy VariantInventoryPolicy `json:"inventory_policy,omitempty"`
Price *decimal.Decimal `json:"price,omitempty"`
CompareAtPrice *decimal.Decimal `json:"compare_at_price,omitempty"`
FulfillmentService string `json:"fulfillment_service,omitempty"`
InventoryManagement string `json:"inventory_management,omitempty"`
InventoryItemId uint64 `json:"inventory_item_id,omitempty"`
Option1 string `json:"option1,omitempty"`
Option2 string `json:"option2,omitempty"`
Expand All @@ -73,10 +70,7 @@ type Variant struct {
Barcode string `json:"barcode,omitempty"`
ImageId uint64 `json:"image_id,omitempty"`
InventoryQuantity int `json:"inventory_quantity,omitempty"`
Weight *decimal.Decimal `json:"weight,omitempty"`
WeightUnit string `json:"weight_unit,omitempty"`
OldInventoryQuantity int `json:"old_inventory_quantity,omitempty"`
RequireShipping bool `json:"requires_shipping"`
AdminGraphqlApiId string `json:"admin_graphql_api_id,omitempty"`
Metafields []Metafield `json:"metafields,omitempty"`
PresentmentPrices []presentmentPrices `json:"presentment_prices,omitempty"`
Expand Down

0 comments on commit 413ebf8

Please sign in to comment.