From 55d2e5411ee43a0cbf71b0de650bbc46a43303b6 Mon Sep 17 00:00:00 2001 From: sshaw Date: Sun, 25 Sep 2022 23:21:30 -0400 Subject: [PATCH] Add support for ProductVariant.availableForSale --- fixtures/paginated-variants-fixtures.js | 2 ++ fixtures/product-with-paginated-variants-fixture.js | 1 + src/graphql/VariantFragment.graphql | 1 + 3 files changed, 4 insertions(+) diff --git a/fixtures/paginated-variants-fixtures.js b/fixtures/paginated-variants-fixtures.js index 77e0c231f..312ffe955 100644 --- a/fixtures/paginated-variants-fixtures.js +++ b/fixtures/paginated-variants-fixtures.js @@ -13,6 +13,7 @@ export const secondPageVariantsFixture = { "cursor": "eyJsYXN0X2lkIjoyNTYwMjIzNjA0MH0=", "node": { "id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0SW1hZ2UvMTgyMTc3OTA2NjQ=", + "availableForSale": true, "title": "Extra Fluffy", "price": "0.00", "priceV2": { @@ -62,6 +63,7 @@ export const thirdPageVariantsFixture = { "cursor": "eyJsYXN0X2lkIjoyNTYwMjIzNjEwNH0=", "node": { "id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0SW1hZ2UvMTgyMTc4NTk3MjA=", + "availableForSale": true, "title": "Mega Fluff", "price": "0.00", "priceV2": { diff --git a/fixtures/product-with-paginated-variants-fixture.js b/fixtures/product-with-paginated-variants-fixture.js index df49ab82c..477933269 100644 --- a/fixtures/product-with-paginated-variants-fixture.js +++ b/fixtures/product-with-paginated-variants-fixture.js @@ -37,6 +37,7 @@ export default { "cursor": "eyJsYXN0X2lkIjoyNTYwMjIzNTk3Nn0=", "node": { "id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0SW1hZ2UvMTgyMTc4MTk0MDA=", + "availableForSale": true, "price": "0.00", "priceV2": { "amount": "0.00", diff --git a/src/graphql/VariantFragment.graphql b/src/graphql/VariantFragment.graphql index e5a48cb96..4384f2469 100644 --- a/src/graphql/VariantFragment.graphql +++ b/src/graphql/VariantFragment.graphql @@ -7,6 +7,7 @@ fragment VariantFragment on ProductVariant { currencyCode } weight + availableForSale available: availableForSale sku compareAtPrice