From c8f11d0a5961a02a78cb36693965a809bc402955 Mon Sep 17 00:00:00 2001 From: Thierry Joyal Date: Thu, 26 Jun 2025 16:23:01 -0400 Subject: [PATCH] Update schemas --- .../default/schema.graphql | 42 ++- .../cart-transform/default/schema.graphql | 16 +- .../default/schema.graphql | 23 +- .../default/schema.graphql | 23 +- .../default/schema.graphql | 42 ++- .../cart-transform/bundles/schema.graphql | 16 +- .../cart-transform/default/schema.graphql | 16 +- .../default/schema.graphql | 23 +- .../default/schema.graphql | 23 +- .../default/schema.graphql | 42 ++- .../cart-transform/default/schema.graphql | 16 +- .../default/schema.graphql | 23 +- .../default/schema.graphql | 23 +- .../discount/default/schema.graphql | 51 ++- .../default/schema.graphql | 134 +++----- .../order-discounts/default/schema.graphql | 29 +- .../product-discounts/default/schema.graphql | 29 +- .../shipping-discounts/default/schema.graphql | 29 +- .../rust/discount/default/schema.graphql | 299 +++--------------- .../default/schema.graphql | 134 +++----- .../order-discounts/default/schema.graphql | 29 +- .../product-discounts/default/schema.graphql | 29 +- .../shipping-discounts/default/schema.graphql | 29 +- .../wasm/discount/default/schema.graphql | 299 +++--------------- .../default/schema.graphql | 134 +++----- .../order-discounts/default/schema.graphql | 29 +- .../product-discounts/default/schema.graphql | 29 +- .../shipping-discounts/default/schema.graphql | 29 +- .../default/schema.graphql | 23 +- .../default/schema.graphql | 134 +++----- .../location-rules/default/schema.graphql | 25 +- .../default/schema.graphql | 134 +++----- .../default/schema.graphql | 23 +- .../default/schema.graphql | 134 +++----- .../location-rules/default/schema.graphql | 25 +- .../default/schema.graphql | 134 +++----- .../default/schema.graphql | 134 +++----- .../default/schema.graphql | 23 +- .../default/schema.graphql | 134 +++----- .../location-rules/default/schema.graphql | 25 +- .../default/schema.graphql | 134 +++----- .../extensions/cart-expand-js/schema.graphql | 16 +- .../cart-merge-expand_rust/schema.graphql | 16 +- .../price-per-component-js/schema.graphql | 16 +- .../price-per-component-rs/schema.graphql | 16 +- .../delivery-customization-js/schema.graphql | 23 +- .../schema.graphql | 23 +- .../product-discount-js/schema.graphql | 29 +- .../product-discount-rust/schema.graphql | 29 +- .../optional-add-ons-js/schema.graphql | 16 +- .../optional-add-ons-rust/schema.graphql | 16 +- .../payment-customization-js/schema.graphql | 23 +- .../payment-customization-rust/schema.graphql | 23 +- .../update-line-item-js/schema.graphql | 16 +- 54 files changed, 1259 insertions(+), 1725 deletions(-) diff --git a/checkout/javascript/cart-checkout-validation/default/schema.graphql b/checkout/javascript/cart-checkout-validation/default/schema.graphql index b96445f5..4173498a 100644 --- a/checkout/javascript/cart-checkout-validation/default/schema.graphql +++ b/checkout/javascript/cart-checkout-validation/default/schema.graphql @@ -77,21 +77,25 @@ type BuyerJourney { } """ -Different steps in the buyer journey. +A specific stage in the customer's purchasing journey that indicates where the customer is in the checkout +process. """ enum BuyerJourneyStep { """ - Buyer is interacting with the cart. + The customer is interacting with the cart. For example, the customer is adding items to the cart + or removing items from the cart. """ CART_INTERACTION """ - Buyer is completing the checkout. + The customer is completing checkout. For example, the customer is reviewing their order before + finalizing the purchase. """ CHECKOUT_COMPLETION """ - Buyer is interacting with the checkout. + The customer is interacting with checkout. For example, the customer is adding their shipping + address or payment information. """ CHECKOUT_INTERACTION } @@ -137,6 +141,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1763,8 +1774,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1890,7 +1902,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2415,7 +2427,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2492,6 +2504,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2510,7 +2527,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2807,13 +2824,14 @@ A Function error for a path. """ input FunctionError { """ - Returns a message describing the error. + A description of the validation error. For example, "The product is out of stock" or + "The product isn't available for purchase in your region". The message is localized for the customer. """ localizedMessage: String! """ - Specifies the path/target for use by the UI. See [Supported checkout field targets](https://shopify.dev/docs/api/functions/reference/cart-checkout-validation/graphql#supported-checkout-field-targets) - for a list of supported targets. + The [identifier](https://shopify.dev/docs/api/functions/reference/cart-checkout-validation/graphql#supported-checkout-field-targets) + in `shopify.extension.toml` that specifies where you're injecting code in the checkout process. """ target: String! } diff --git a/checkout/javascript/cart-transform/default/schema.graphql b/checkout/javascript/cart-transform/default/schema.graphql index a57e44c6..05d52158 100644 --- a/checkout/javascript/cart-transform/default/schema.graphql +++ b/checkout/javascript/cart-transform/default/schema.graphql @@ -1694,8 +1694,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1821,7 +1822,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2346,7 +2347,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2423,6 +2424,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2441,7 +2447,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/checkout/javascript/delivery-customization/default/schema.graphql b/checkout/javascript/delivery-customization/default/schema.graphql index a58a1275..bfbcd5ec 100644 --- a/checkout/javascript/delivery-customization/default/schema.graphql +++ b/checkout/javascript/delivery-customization/default/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1739,8 +1746,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1866,7 +1874,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2391,7 +2399,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2468,6 +2476,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2486,7 +2499,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/checkout/javascript/payment-customization/default/schema.graphql b/checkout/javascript/payment-customization/default/schema.graphql index e4d87819..306aa01b 100644 --- a/checkout/javascript/payment-customization/default/schema.graphql +++ b/checkout/javascript/payment-customization/default/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1739,8 +1746,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1866,7 +1874,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2391,7 +2399,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2468,6 +2476,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2486,7 +2499,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/checkout/rust/cart-checkout-validation/default/schema.graphql b/checkout/rust/cart-checkout-validation/default/schema.graphql index b96445f5..4173498a 100644 --- a/checkout/rust/cart-checkout-validation/default/schema.graphql +++ b/checkout/rust/cart-checkout-validation/default/schema.graphql @@ -77,21 +77,25 @@ type BuyerJourney { } """ -Different steps in the buyer journey. +A specific stage in the customer's purchasing journey that indicates where the customer is in the checkout +process. """ enum BuyerJourneyStep { """ - Buyer is interacting with the cart. + The customer is interacting with the cart. For example, the customer is adding items to the cart + or removing items from the cart. """ CART_INTERACTION """ - Buyer is completing the checkout. + The customer is completing checkout. For example, the customer is reviewing their order before + finalizing the purchase. """ CHECKOUT_COMPLETION """ - Buyer is interacting with the checkout. + The customer is interacting with checkout. For example, the customer is adding their shipping + address or payment information. """ CHECKOUT_INTERACTION } @@ -137,6 +141,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1763,8 +1774,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1890,7 +1902,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2415,7 +2427,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2492,6 +2504,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2510,7 +2527,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2807,13 +2824,14 @@ A Function error for a path. """ input FunctionError { """ - Returns a message describing the error. + A description of the validation error. For example, "The product is out of stock" or + "The product isn't available for purchase in your region". The message is localized for the customer. """ localizedMessage: String! """ - Specifies the path/target for use by the UI. See [Supported checkout field targets](https://shopify.dev/docs/api/functions/reference/cart-checkout-validation/graphql#supported-checkout-field-targets) - for a list of supported targets. + The [identifier](https://shopify.dev/docs/api/functions/reference/cart-checkout-validation/graphql#supported-checkout-field-targets) + in `shopify.extension.toml` that specifies where you're injecting code in the checkout process. """ target: String! } diff --git a/checkout/rust/cart-transform/bundles/schema.graphql b/checkout/rust/cart-transform/bundles/schema.graphql index a57e44c6..05d52158 100644 --- a/checkout/rust/cart-transform/bundles/schema.graphql +++ b/checkout/rust/cart-transform/bundles/schema.graphql @@ -1694,8 +1694,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1821,7 +1822,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2346,7 +2347,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2423,6 +2424,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2441,7 +2447,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/checkout/rust/cart-transform/default/schema.graphql b/checkout/rust/cart-transform/default/schema.graphql index a57e44c6..05d52158 100644 --- a/checkout/rust/cart-transform/default/schema.graphql +++ b/checkout/rust/cart-transform/default/schema.graphql @@ -1694,8 +1694,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1821,7 +1822,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2346,7 +2347,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2423,6 +2424,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2441,7 +2447,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/checkout/rust/delivery-customization/default/schema.graphql b/checkout/rust/delivery-customization/default/schema.graphql index a58a1275..bfbcd5ec 100644 --- a/checkout/rust/delivery-customization/default/schema.graphql +++ b/checkout/rust/delivery-customization/default/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1739,8 +1746,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1866,7 +1874,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2391,7 +2399,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2468,6 +2476,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2486,7 +2499,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/checkout/rust/payment-customization/default/schema.graphql b/checkout/rust/payment-customization/default/schema.graphql index e4d87819..306aa01b 100644 --- a/checkout/rust/payment-customization/default/schema.graphql +++ b/checkout/rust/payment-customization/default/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1739,8 +1746,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1866,7 +1874,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2391,7 +2399,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2468,6 +2476,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2486,7 +2499,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/checkout/wasm/cart-checkout-validation/default/schema.graphql b/checkout/wasm/cart-checkout-validation/default/schema.graphql index b96445f5..4173498a 100644 --- a/checkout/wasm/cart-checkout-validation/default/schema.graphql +++ b/checkout/wasm/cart-checkout-validation/default/schema.graphql @@ -77,21 +77,25 @@ type BuyerJourney { } """ -Different steps in the buyer journey. +A specific stage in the customer's purchasing journey that indicates where the customer is in the checkout +process. """ enum BuyerJourneyStep { """ - Buyer is interacting with the cart. + The customer is interacting with the cart. For example, the customer is adding items to the cart + or removing items from the cart. """ CART_INTERACTION """ - Buyer is completing the checkout. + The customer is completing checkout. For example, the customer is reviewing their order before + finalizing the purchase. """ CHECKOUT_COMPLETION """ - Buyer is interacting with the checkout. + The customer is interacting with checkout. For example, the customer is adding their shipping + address or payment information. """ CHECKOUT_INTERACTION } @@ -137,6 +141,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1763,8 +1774,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1890,7 +1902,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2415,7 +2427,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2492,6 +2504,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2510,7 +2527,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2807,13 +2824,14 @@ A Function error for a path. """ input FunctionError { """ - Returns a message describing the error. + A description of the validation error. For example, "The product is out of stock" or + "The product isn't available for purchase in your region". The message is localized for the customer. """ localizedMessage: String! """ - Specifies the path/target for use by the UI. See [Supported checkout field targets](https://shopify.dev/docs/api/functions/reference/cart-checkout-validation/graphql#supported-checkout-field-targets) - for a list of supported targets. + The [identifier](https://shopify.dev/docs/api/functions/reference/cart-checkout-validation/graphql#supported-checkout-field-targets) + in `shopify.extension.toml` that specifies where you're injecting code in the checkout process. """ target: String! } diff --git a/checkout/wasm/cart-transform/default/schema.graphql b/checkout/wasm/cart-transform/default/schema.graphql index a57e44c6..05d52158 100644 --- a/checkout/wasm/cart-transform/default/schema.graphql +++ b/checkout/wasm/cart-transform/default/schema.graphql @@ -1694,8 +1694,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1821,7 +1822,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2346,7 +2347,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2423,6 +2424,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2441,7 +2447,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/checkout/wasm/delivery-customization/default/schema.graphql b/checkout/wasm/delivery-customization/default/schema.graphql index a58a1275..bfbcd5ec 100644 --- a/checkout/wasm/delivery-customization/default/schema.graphql +++ b/checkout/wasm/delivery-customization/default/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1739,8 +1746,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1866,7 +1874,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2391,7 +2399,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2468,6 +2476,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2486,7 +2499,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/checkout/wasm/payment-customization/default/schema.graphql b/checkout/wasm/payment-customization/default/schema.graphql index e4d87819..306aa01b 100644 --- a/checkout/wasm/payment-customization/default/schema.graphql +++ b/checkout/wasm/payment-customization/default/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1739,8 +1746,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1866,7 +1874,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2391,7 +2399,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2468,6 +2476,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2486,7 +2499,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/discounts/javascript/discount/default/schema.graphql b/discounts/javascript/discount/default/schema.graphql index f1d9f49a..3645fcc1 100644 --- a/discounts/javascript/discount/default/schema.graphql +++ b/discounts/javascript/discount/default/schema.graphql @@ -128,6 +128,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1889,8 +1896,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -2016,7 +2024,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2541,7 +2549,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2618,6 +2626,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2636,7 +2649,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2903,8 +2916,10 @@ input DeliveryDiscountCandidate { associatedDiscountCode: AssociatedDiscountCode """ - A notification that informs customers about available discounts. - The message is displayed on the **Cart** page. For example, "Save 20% on all t-shirts." + A notification on the **Cart** page informs customers about available + discounts. If an automatic discount applies, the notification displays this + message, such as "Save 20% on all t-shirts." If a discount code is entered, + the notification displays the code instead. """ message: String @@ -3381,14 +3396,18 @@ type Input { """ The discount codes that customers enter at checkout. Customers can enter codes - as an array of strings, excluding gift cards. - Codes aren't validated in any way other than to verify they aren't gift cards. + as an array of strings, excluding gift cards. Codes aren't validated in any + way other than to verify they aren't gift cards. This input is only available + in the `cart.lines.discounts.generate.fetch` and + `cart.delivery-options.discounts.generate.fetch` extension targets. """ enteredDiscountCodes: [String!]! @restrictTarget(only: ["cart.lines.discounts.generate.fetch", "cart.delivery-options.discounts.generate.fetch"]) """ The result of the fetch target. Refer to [network access](https://shopify.dev/apps/build/functions/input-output/network-access/graphql) - for Shopify Functions. + for Shopify Functions. This input is only available in the + `cart.lines.discounts.generate.run` and + `cart.delivery-options.discounts.generate.run` extension targets. """ fetchResult: HttpResponse @restrictTarget(only: ["cart.lines.discounts.generate.run", "cart.delivery-options.discounts.generate.run"]) @@ -4747,8 +4766,10 @@ input OrderDiscountCandidate { conditions: [Condition!] """ - A notification that informs customers about available discounts. - The message is displayed on the **Cart** page. For example, "Save 20% on all t-shirts." + A notification on the **Cart** page informs customers about available + discounts. If an automatic discount applies, the notification displays this + message, such as "Save 20% on all t-shirts." If a discount code is entered, + the notification displays the code instead. """ message: String @@ -4995,8 +5016,10 @@ input ProductDiscountCandidate { associatedDiscountCode: AssociatedDiscountCode """ - A notification that informs customers about available discounts. - The message is displayed on the **Cart** page. For example, "Save 20% on all t-shirts." + A notification on the **Cart** page informs customers about available + discounts. If an automatic discount applies, the notification displays this + message, such as "Save 20% on all t-shirts." If a discount code is entered, + the notification displays the code instead. """ message: String diff --git a/discounts/javascript/discounts-allocator/default/schema.graphql b/discounts/javascript/discounts-allocator/default/schema.graphql index 41643e94..c9049b13 100644 --- a/discounts/javascript/discounts-allocator/default/schema.graphql +++ b/discounts/javascript/discounts-allocator/default/schema.graphql @@ -108,6 +108,13 @@ type Cart implements HasMetafields { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -209,6 +216,11 @@ type CartDeliveryGroup { """ deliveryOptions: [CartDeliveryOption!]! + """ + The type of merchandise in the delivery group. + """ + groupType: CartDeliveryGroupType! + """ A [globally-unique ID](https://shopify.dev/docs/api/usage/gids) for the delivery group. @@ -221,6 +233,22 @@ type CartDeliveryGroup { selectedDeliveryOption: CartDeliveryOption } +""" +Defines what type of merchandise is in the delivery group. +""" +enum CartDeliveryGroupType { + """ + The delivery group only contains merchandise that is either a one time purchase or a first delivery of + subscription merchandise. + """ + ONE_TIME_PURCHASE + + """ + The delivery group only contains subscription merchandise. + """ + SUBSCRIPTION +} + """ Information about a delivery option that's available for an item in a cart. Delivery options are the different ways that customers can choose to have their orders shipped. Examples include express shipping or standard @@ -1774,8 +1802,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1901,7 +1930,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2426,7 +2455,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2503,6 +2532,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2521,7 +2555,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2994,69 +3028,6 @@ input FunctionRunResult { lineDiscounts: [LineDiscount!] } -""" -Represents a gate configuration. -""" -type GateConfiguration implements HasMetafields { - """ - An optional string identifier. - """ - appId: String - - """ - A non-unique string used to group gate configurations. - """ - handle: Handle - - """ - The ID of the gate configuration. - """ - id: ID! - - """ - A [custom field](https://shopify.dev/docs/apps/build/custom-data) that stores additional information - about a Shopify resource, such as products, orders, and - [many more](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetafieldOwnerType). - Using [metafields with Shopify Functions](https://shopify.dev/docs/apps/build/functions/input-output/metafields-for-input-queries) - enables you to customize the checkout experience. - """ - metafield( - """ - The unique identifier for the metafield within its namespace. A metafield is composed of a - namespace and a key, in the format `namespace.key`. - """ - key: String! - - """ - A category that organizes a group of metafields. Namespaces are used to prevent naming conflicts - between different apps or different parts of the same app. If omitted, then the - [app-reserved namespace](https://shopify.dev/docs/apps/build/custom-data/ownership) - is used. - """ - namespace: String - ): Metafield -} - -""" -Represents a connection from a subject to a gate configuration. -""" -type GateSubject { - """ - The bound gate configuration. - """ - configuration( - """ - The appId of the gate configurations to search for. - """ - appId: String @deprecated(reason: "Use GateSubject.handle to filter gates instead.") - ): GateConfiguration! - - """ - The ID of the gate subject. - """ - id: ID! -} - """ A function-scoped handle to a refer a resource. The Handle type appears in a JSON response as a String, but it is not intended to be human-readable. @@ -3064,21 +3035,6 @@ Example value: `"10079785100"` """ scalar Handle -""" -Gate subjects associated to the specified resource. -""" -interface HasGates { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") -} - """ Represents information about the metafields associated to the specified resource. """ @@ -4630,17 +4586,7 @@ Products can be organized by grouping them into a collection. Learn more about [managing products in a merchant's store](https://help.shopify.com/manual/products). """ -type Product implements HasGates & HasMetafields { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") - +type Product implements HasMetafields { """ A unique, human-readable string of the product's title. A handle can contain letters, hyphens (`-`), and numbers, but not spaces. The handle is used in the online store URL for the product. For example, if a product diff --git a/discounts/javascript/order-discounts/default/schema.graphql b/discounts/javascript/order-discounts/default/schema.graphql index d8bf27b8..ad2e78d1 100644 --- a/discounts/javascript/order-discounts/default/schema.graphql +++ b/discounts/javascript/order-discounts/default/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1761,8 +1768,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1888,7 +1896,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2413,7 +2421,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2490,6 +2498,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2508,7 +2521,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2817,8 +2830,10 @@ input Discount { conditions: [Condition!] """ - A notification that informs customers about available discounts. - The message is displayed on the **Cart** page. For example, "Save 20% on all t-shirts." + A notification on the **Cart** page informs customers about available + discounts. If an automatic discount applies, the notification displays this + message, such as "Save 20% on all t-shirts." If a discount code is entered, + the notification displays the code instead. """ message: String diff --git a/discounts/javascript/product-discounts/default/schema.graphql b/discounts/javascript/product-discounts/default/schema.graphql index 504a158e..eb12ca58 100644 --- a/discounts/javascript/product-discounts/default/schema.graphql +++ b/discounts/javascript/product-discounts/default/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1759,8 +1766,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1886,7 +1894,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2411,7 +2419,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2488,6 +2496,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2506,7 +2519,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2808,8 +2821,10 @@ customers. """ input Discount { """ - A notification that informs customers about available discounts. - The message is displayed on the **Cart** page. For example, "Save 20% on all t-shirts." + A notification on the **Cart** page informs customers about available + discounts. If an automatic discount applies, the notification displays this + message, such as "Save 20% on all t-shirts." If a discount code is entered, + the notification displays the code instead. """ message: String diff --git a/discounts/javascript/shipping-discounts/default/schema.graphql b/discounts/javascript/shipping-discounts/default/schema.graphql index 71eb88fd..ed5bd647 100644 --- a/discounts/javascript/shipping-discounts/default/schema.graphql +++ b/discounts/javascript/shipping-discounts/default/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1739,8 +1746,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1866,7 +1874,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2391,7 +2399,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2468,6 +2476,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2486,7 +2499,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2813,8 +2826,10 @@ customers. """ input Discount { """ - A notification that informs customers about available discounts. - The message is displayed on the **Cart** page. For example, "Save 20% on all t-shirts." + A notification on the **Cart** page informs customers about available + discounts. If an automatic discount applies, the notification displays this + message, such as "Save 20% on all t-shirts." If a discount code is entered, + the notification displays the code instead. """ message: String diff --git a/discounts/rust/discount/default/schema.graphql b/discounts/rust/discount/default/schema.graphql index 439eaec3..3645fcc1 100644 --- a/discounts/rust/discount/default/schema.graphql +++ b/discounts/rust/discount/default/schema.graphql @@ -91,7 +91,7 @@ type BuyerIdentity { The cart where the Function is running. A cart contains the merchandise that a customer intends to purchase and information about the customer, such as the customer's email address and phone number. """ -type Cart implements HasMetafields { +type Cart { """ The custom attributes associated with a cart to store additional information. Cart attributes allow you to collect specific information from customers on the **Cart** page, such as order notes, @@ -128,6 +128,13 @@ type Cart implements HasMetafields { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -148,34 +155,6 @@ type Cart implements HasMetafields { """ keys: [LocalizedFieldKey!]! = [] ): [LocalizedField!]! - - """ - A [custom field](https://shopify.dev/docs/apps/build/custom-data) that stores additional information - about a Shopify resource, such as products, orders, and - [many more](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetafieldOwnerType). - Using [metafields with Shopify Functions](https://shopify.dev/docs/apps/build/functions/input-output/metafields-for-input-queries) - enables you to customize the checkout experience. - """ - metafield( - """ - The unique identifier for the metafield within its namespace. A metafield is composed of a - namespace and a key, in the format `namespace.key`. - """ - key: String! - - """ - A category that organizes a group of metafields. Namespaces are used to prevent naming conflicts - between different apps or different parts of the same app. If omitted, then the - [app-reserved namespace](https://shopify.dev/docs/apps/build/custom-data/ownership) - is used. - """ - namespace: String - ): Metafield - - """ - The physical location where a retail order is created or completed. - """ - retailLocation: Location } """ @@ -1917,8 +1896,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -2044,7 +2024,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2569,7 +2549,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2646,6 +2626,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2664,7 +2649,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2931,8 +2916,10 @@ input DeliveryDiscountCandidate { associatedDiscountCode: AssociatedDiscountCode """ - A notification that informs customers about available discounts. - The message is displayed on the **Cart** page. For example, "Save 20% on all t-shirts." + A notification on the **Cart** page informs customers about available + discounts. If an automatic discount applies, the notification displays this + message, such as "Save 20% on all t-shirts." If a discount code is entered, + the notification displays the code instead. """ message: String @@ -3188,69 +3175,6 @@ input FixedAmount { amount: Decimal! } -""" -Represents a gate configuration. -""" -type GateConfiguration implements HasMetafields { - """ - An optional string identifier. - """ - appId: String - - """ - A non-unique string used to group gate configurations. - """ - handle: Handle - - """ - The ID of the gate configuration. - """ - id: ID! - - """ - A [custom field](https://shopify.dev/docs/apps/build/custom-data) that stores additional information - about a Shopify resource, such as products, orders, and - [many more](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetafieldOwnerType). - Using [metafields with Shopify Functions](https://shopify.dev/docs/apps/build/functions/input-output/metafields-for-input-queries) - enables you to customize the checkout experience. - """ - metafield( - """ - The unique identifier for the metafield within its namespace. A metafield is composed of a - namespace and a key, in the format `namespace.key`. - """ - key: String! - - """ - A category that organizes a group of metafields. Namespaces are used to prevent naming conflicts - between different apps or different parts of the same app. If omitted, then the - [app-reserved namespace](https://shopify.dev/docs/apps/build/custom-data/ownership) - is used. - """ - namespace: String - ): Metafield -} - -""" -Represents a connection from a subject to a gate configuration. -""" -type GateSubject { - """ - The bound gate configuration. - """ - configuration( - """ - The appId of the gate configurations to search for. - """ - appId: String @deprecated(reason: "Use GateSubject.handle to filter gates instead.") - ): GateConfiguration! - - """ - The ID of the gate subject. - """ - id: ID! -} - """ A function-scoped handle to a refer a resource. The Handle type appears in a JSON response as a String, but it is not intended to be human-readable. @@ -3258,21 +3182,6 @@ Example value: `"10079785100"` """ scalar Handle -""" -Gate subjects associated to the specified resource. -""" -interface HasGates { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") -} - """ Represents information about the metafields associated to the specified resource. """ @@ -3487,14 +3396,18 @@ type Input { """ The discount codes that customers enter at checkout. Customers can enter codes - as an array of strings, excluding gift cards. - Codes aren't validated in any way other than to verify they aren't gift cards. + as an array of strings, excluding gift cards. Codes aren't validated in any + way other than to verify they aren't gift cards. This input is only available + in the `cart.lines.discounts.generate.fetch` and + `cart.delivery-options.discounts.generate.fetch` extension targets. """ enteredDiscountCodes: [String!]! @restrictTarget(only: ["cart.lines.discounts.generate.fetch", "cart.delivery-options.discounts.generate.fetch"]) """ The result of the fetch target. Refer to [network access](https://shopify.dev/apps/build/functions/input-output/network-access/graphql) - for Shopify Functions. + for Shopify Functions. This input is only available in the + `cart.lines.discounts.generate.run` and + `cart.delivery-options.discounts.generate.run` extension targets. """ fetchResult: HttpResponse @restrictTarget(only: ["cart.lines.discounts.generate.run", "cart.delivery-options.discounts.generate.run"]) @@ -4266,16 +4179,6 @@ enum LanguageCode { ZU } -""" -Local pickup settings associated with a location. -""" -type LocalPickup { - """ - Whether local pickup is enabled for the location. - """ - enabled: Boolean! -} - """ The current time based on the [store's timezone setting](https://help.shopify.com/manual/intro-to-shopify/initial-setup/setup-business-settings). @@ -4596,124 +4499,6 @@ enum LocalizedFieldKey { TAX_EMAIL_IT } -""" -Represents the location where the inventory resides. -""" -type Location implements HasMetafields { - """ - The address of this location. - """ - address: LocationAddress! - - """ - The location handle. - """ - handle: Handle! - - """ - The location id. - """ - id: ID! - - """ - Local pickup settings associated with a location. - """ - localPickup: LocalPickup! - - """ - A [custom field](https://shopify.dev/docs/apps/build/custom-data) that stores additional information - about a Shopify resource, such as products, orders, and - [many more](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetafieldOwnerType). - Using [metafields with Shopify Functions](https://shopify.dev/docs/apps/build/functions/input-output/metafields-for-input-queries) - enables you to customize the checkout experience. - """ - metafield( - """ - The unique identifier for the metafield within its namespace. A metafield is composed of a - namespace and a key, in the format `namespace.key`. - """ - key: String! - - """ - A category that organizes a group of metafields. Namespaces are used to prevent naming conflicts - between different apps or different parts of the same app. If omitted, then the - [app-reserved namespace](https://shopify.dev/docs/apps/build/custom-data/ownership) - is used. - """ - namespace: String - ): Metafield - - """ - The name of the location. - """ - name: String! -} - -""" -Represents the address of a location. -""" -type LocationAddress { - """ - The first line of the address for the location. - """ - address1: String - - """ - The second line of the address for the location. - """ - address2: String - - """ - The city of the location. - """ - city: String - - """ - The country of the location. - """ - country: String - - """ - The country code of the location. - """ - countryCode: String - - """ - A formatted version of the address for the location. - """ - formatted: [String!]! - - """ - The approximate latitude coordinates of the location. - """ - latitude: Float - - """ - The approximate longitude coordinates of the location. - """ - longitude: Float - - """ - The phone number of the location. - """ - phone: String - - """ - The province of the location. - """ - province: String - - """ - The code for the province, state, or district of the address of the location. - """ - provinceCode: String - - """ - The ZIP code of the location. - """ - zip: String -} - """ Represents a mailing address. """ @@ -4981,8 +4766,10 @@ input OrderDiscountCandidate { conditions: [Condition!] """ - A notification that informs customers about available discounts. - The message is displayed on the **Cart** page. For example, "Save 20% on all t-shirts." + A notification on the **Cart** page informs customers about available + discounts. If an automatic discount applies, the notification displays this + message, such as "Save 20% on all t-shirts." If a discount code is entered, + the notification displays the code instead. """ message: String @@ -5101,17 +4888,7 @@ Products can be organized by grouping them into a collection. Learn more about [managing products in a merchant's store](https://help.shopify.com/manual/products). """ -type Product implements HasGates & HasMetafields { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") - +type Product implements HasMetafields { """ A unique, human-readable string of the product's title. A handle can contain letters, hyphens (`-`), and numbers, but not spaces. The handle is used in the online store URL for the product. For example, if a product @@ -5239,8 +5016,10 @@ input ProductDiscountCandidate { associatedDiscountCode: AssociatedDiscountCode """ - A notification that informs customers about available discounts. - The message is displayed on the **Cart** page. For example, "Save 20% on all t-shirts." + A notification on the **Cart** page informs customers about available + discounts. If an automatic discount applies, the notification displays this + message, such as "Save 20% on all t-shirts." If a discount code is entered, + the notification displays the code instead. """ message: String diff --git a/discounts/rust/discounts-allocator/default/schema.graphql b/discounts/rust/discounts-allocator/default/schema.graphql index 41643e94..c9049b13 100644 --- a/discounts/rust/discounts-allocator/default/schema.graphql +++ b/discounts/rust/discounts-allocator/default/schema.graphql @@ -108,6 +108,13 @@ type Cart implements HasMetafields { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -209,6 +216,11 @@ type CartDeliveryGroup { """ deliveryOptions: [CartDeliveryOption!]! + """ + The type of merchandise in the delivery group. + """ + groupType: CartDeliveryGroupType! + """ A [globally-unique ID](https://shopify.dev/docs/api/usage/gids) for the delivery group. @@ -221,6 +233,22 @@ type CartDeliveryGroup { selectedDeliveryOption: CartDeliveryOption } +""" +Defines what type of merchandise is in the delivery group. +""" +enum CartDeliveryGroupType { + """ + The delivery group only contains merchandise that is either a one time purchase or a first delivery of + subscription merchandise. + """ + ONE_TIME_PURCHASE + + """ + The delivery group only contains subscription merchandise. + """ + SUBSCRIPTION +} + """ Information about a delivery option that's available for an item in a cart. Delivery options are the different ways that customers can choose to have their orders shipped. Examples include express shipping or standard @@ -1774,8 +1802,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1901,7 +1930,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2426,7 +2455,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2503,6 +2532,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2521,7 +2555,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2994,69 +3028,6 @@ input FunctionRunResult { lineDiscounts: [LineDiscount!] } -""" -Represents a gate configuration. -""" -type GateConfiguration implements HasMetafields { - """ - An optional string identifier. - """ - appId: String - - """ - A non-unique string used to group gate configurations. - """ - handle: Handle - - """ - The ID of the gate configuration. - """ - id: ID! - - """ - A [custom field](https://shopify.dev/docs/apps/build/custom-data) that stores additional information - about a Shopify resource, such as products, orders, and - [many more](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetafieldOwnerType). - Using [metafields with Shopify Functions](https://shopify.dev/docs/apps/build/functions/input-output/metafields-for-input-queries) - enables you to customize the checkout experience. - """ - metafield( - """ - The unique identifier for the metafield within its namespace. A metafield is composed of a - namespace and a key, in the format `namespace.key`. - """ - key: String! - - """ - A category that organizes a group of metafields. Namespaces are used to prevent naming conflicts - between different apps or different parts of the same app. If omitted, then the - [app-reserved namespace](https://shopify.dev/docs/apps/build/custom-data/ownership) - is used. - """ - namespace: String - ): Metafield -} - -""" -Represents a connection from a subject to a gate configuration. -""" -type GateSubject { - """ - The bound gate configuration. - """ - configuration( - """ - The appId of the gate configurations to search for. - """ - appId: String @deprecated(reason: "Use GateSubject.handle to filter gates instead.") - ): GateConfiguration! - - """ - The ID of the gate subject. - """ - id: ID! -} - """ A function-scoped handle to a refer a resource. The Handle type appears in a JSON response as a String, but it is not intended to be human-readable. @@ -3064,21 +3035,6 @@ Example value: `"10079785100"` """ scalar Handle -""" -Gate subjects associated to the specified resource. -""" -interface HasGates { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") -} - """ Represents information about the metafields associated to the specified resource. """ @@ -4630,17 +4586,7 @@ Products can be organized by grouping them into a collection. Learn more about [managing products in a merchant's store](https://help.shopify.com/manual/products). """ -type Product implements HasGates & HasMetafields { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") - +type Product implements HasMetafields { """ A unique, human-readable string of the product's title. A handle can contain letters, hyphens (`-`), and numbers, but not spaces. The handle is used in the online store URL for the product. For example, if a product diff --git a/discounts/rust/order-discounts/default/schema.graphql b/discounts/rust/order-discounts/default/schema.graphql index d8bf27b8..ad2e78d1 100644 --- a/discounts/rust/order-discounts/default/schema.graphql +++ b/discounts/rust/order-discounts/default/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1761,8 +1768,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1888,7 +1896,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2413,7 +2421,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2490,6 +2498,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2508,7 +2521,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2817,8 +2830,10 @@ input Discount { conditions: [Condition!] """ - A notification that informs customers about available discounts. - The message is displayed on the **Cart** page. For example, "Save 20% on all t-shirts." + A notification on the **Cart** page informs customers about available + discounts. If an automatic discount applies, the notification displays this + message, such as "Save 20% on all t-shirts." If a discount code is entered, + the notification displays the code instead. """ message: String diff --git a/discounts/rust/product-discounts/default/schema.graphql b/discounts/rust/product-discounts/default/schema.graphql index 504a158e..eb12ca58 100644 --- a/discounts/rust/product-discounts/default/schema.graphql +++ b/discounts/rust/product-discounts/default/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1759,8 +1766,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1886,7 +1894,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2411,7 +2419,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2488,6 +2496,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2506,7 +2519,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2808,8 +2821,10 @@ customers. """ input Discount { """ - A notification that informs customers about available discounts. - The message is displayed on the **Cart** page. For example, "Save 20% on all t-shirts." + A notification on the **Cart** page informs customers about available + discounts. If an automatic discount applies, the notification displays this + message, such as "Save 20% on all t-shirts." If a discount code is entered, + the notification displays the code instead. """ message: String diff --git a/discounts/rust/shipping-discounts/default/schema.graphql b/discounts/rust/shipping-discounts/default/schema.graphql index 71eb88fd..ed5bd647 100644 --- a/discounts/rust/shipping-discounts/default/schema.graphql +++ b/discounts/rust/shipping-discounts/default/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1739,8 +1746,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1866,7 +1874,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2391,7 +2399,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2468,6 +2476,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2486,7 +2499,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2813,8 +2826,10 @@ customers. """ input Discount { """ - A notification that informs customers about available discounts. - The message is displayed on the **Cart** page. For example, "Save 20% on all t-shirts." + A notification on the **Cart** page informs customers about available + discounts. If an automatic discount applies, the notification displays this + message, such as "Save 20% on all t-shirts." If a discount code is entered, + the notification displays the code instead. """ message: String diff --git a/discounts/wasm/discount/default/schema.graphql b/discounts/wasm/discount/default/schema.graphql index 439eaec3..3645fcc1 100644 --- a/discounts/wasm/discount/default/schema.graphql +++ b/discounts/wasm/discount/default/schema.graphql @@ -91,7 +91,7 @@ type BuyerIdentity { The cart where the Function is running. A cart contains the merchandise that a customer intends to purchase and information about the customer, such as the customer's email address and phone number. """ -type Cart implements HasMetafields { +type Cart { """ The custom attributes associated with a cart to store additional information. Cart attributes allow you to collect specific information from customers on the **Cart** page, such as order notes, @@ -128,6 +128,13 @@ type Cart implements HasMetafields { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -148,34 +155,6 @@ type Cart implements HasMetafields { """ keys: [LocalizedFieldKey!]! = [] ): [LocalizedField!]! - - """ - A [custom field](https://shopify.dev/docs/apps/build/custom-data) that stores additional information - about a Shopify resource, such as products, orders, and - [many more](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetafieldOwnerType). - Using [metafields with Shopify Functions](https://shopify.dev/docs/apps/build/functions/input-output/metafields-for-input-queries) - enables you to customize the checkout experience. - """ - metafield( - """ - The unique identifier for the metafield within its namespace. A metafield is composed of a - namespace and a key, in the format `namespace.key`. - """ - key: String! - - """ - A category that organizes a group of metafields. Namespaces are used to prevent naming conflicts - between different apps or different parts of the same app. If omitted, then the - [app-reserved namespace](https://shopify.dev/docs/apps/build/custom-data/ownership) - is used. - """ - namespace: String - ): Metafield - - """ - The physical location where a retail order is created or completed. - """ - retailLocation: Location } """ @@ -1917,8 +1896,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -2044,7 +2024,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2569,7 +2549,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2646,6 +2626,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2664,7 +2649,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2931,8 +2916,10 @@ input DeliveryDiscountCandidate { associatedDiscountCode: AssociatedDiscountCode """ - A notification that informs customers about available discounts. - The message is displayed on the **Cart** page. For example, "Save 20% on all t-shirts." + A notification on the **Cart** page informs customers about available + discounts. If an automatic discount applies, the notification displays this + message, such as "Save 20% on all t-shirts." If a discount code is entered, + the notification displays the code instead. """ message: String @@ -3188,69 +3175,6 @@ input FixedAmount { amount: Decimal! } -""" -Represents a gate configuration. -""" -type GateConfiguration implements HasMetafields { - """ - An optional string identifier. - """ - appId: String - - """ - A non-unique string used to group gate configurations. - """ - handle: Handle - - """ - The ID of the gate configuration. - """ - id: ID! - - """ - A [custom field](https://shopify.dev/docs/apps/build/custom-data) that stores additional information - about a Shopify resource, such as products, orders, and - [many more](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetafieldOwnerType). - Using [metafields with Shopify Functions](https://shopify.dev/docs/apps/build/functions/input-output/metafields-for-input-queries) - enables you to customize the checkout experience. - """ - metafield( - """ - The unique identifier for the metafield within its namespace. A metafield is composed of a - namespace and a key, in the format `namespace.key`. - """ - key: String! - - """ - A category that organizes a group of metafields. Namespaces are used to prevent naming conflicts - between different apps or different parts of the same app. If omitted, then the - [app-reserved namespace](https://shopify.dev/docs/apps/build/custom-data/ownership) - is used. - """ - namespace: String - ): Metafield -} - -""" -Represents a connection from a subject to a gate configuration. -""" -type GateSubject { - """ - The bound gate configuration. - """ - configuration( - """ - The appId of the gate configurations to search for. - """ - appId: String @deprecated(reason: "Use GateSubject.handle to filter gates instead.") - ): GateConfiguration! - - """ - The ID of the gate subject. - """ - id: ID! -} - """ A function-scoped handle to a refer a resource. The Handle type appears in a JSON response as a String, but it is not intended to be human-readable. @@ -3258,21 +3182,6 @@ Example value: `"10079785100"` """ scalar Handle -""" -Gate subjects associated to the specified resource. -""" -interface HasGates { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") -} - """ Represents information about the metafields associated to the specified resource. """ @@ -3487,14 +3396,18 @@ type Input { """ The discount codes that customers enter at checkout. Customers can enter codes - as an array of strings, excluding gift cards. - Codes aren't validated in any way other than to verify they aren't gift cards. + as an array of strings, excluding gift cards. Codes aren't validated in any + way other than to verify they aren't gift cards. This input is only available + in the `cart.lines.discounts.generate.fetch` and + `cart.delivery-options.discounts.generate.fetch` extension targets. """ enteredDiscountCodes: [String!]! @restrictTarget(only: ["cart.lines.discounts.generate.fetch", "cart.delivery-options.discounts.generate.fetch"]) """ The result of the fetch target. Refer to [network access](https://shopify.dev/apps/build/functions/input-output/network-access/graphql) - for Shopify Functions. + for Shopify Functions. This input is only available in the + `cart.lines.discounts.generate.run` and + `cart.delivery-options.discounts.generate.run` extension targets. """ fetchResult: HttpResponse @restrictTarget(only: ["cart.lines.discounts.generate.run", "cart.delivery-options.discounts.generate.run"]) @@ -4266,16 +4179,6 @@ enum LanguageCode { ZU } -""" -Local pickup settings associated with a location. -""" -type LocalPickup { - """ - Whether local pickup is enabled for the location. - """ - enabled: Boolean! -} - """ The current time based on the [store's timezone setting](https://help.shopify.com/manual/intro-to-shopify/initial-setup/setup-business-settings). @@ -4596,124 +4499,6 @@ enum LocalizedFieldKey { TAX_EMAIL_IT } -""" -Represents the location where the inventory resides. -""" -type Location implements HasMetafields { - """ - The address of this location. - """ - address: LocationAddress! - - """ - The location handle. - """ - handle: Handle! - - """ - The location id. - """ - id: ID! - - """ - Local pickup settings associated with a location. - """ - localPickup: LocalPickup! - - """ - A [custom field](https://shopify.dev/docs/apps/build/custom-data) that stores additional information - about a Shopify resource, such as products, orders, and - [many more](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetafieldOwnerType). - Using [metafields with Shopify Functions](https://shopify.dev/docs/apps/build/functions/input-output/metafields-for-input-queries) - enables you to customize the checkout experience. - """ - metafield( - """ - The unique identifier for the metafield within its namespace. A metafield is composed of a - namespace and a key, in the format `namespace.key`. - """ - key: String! - - """ - A category that organizes a group of metafields. Namespaces are used to prevent naming conflicts - between different apps or different parts of the same app. If omitted, then the - [app-reserved namespace](https://shopify.dev/docs/apps/build/custom-data/ownership) - is used. - """ - namespace: String - ): Metafield - - """ - The name of the location. - """ - name: String! -} - -""" -Represents the address of a location. -""" -type LocationAddress { - """ - The first line of the address for the location. - """ - address1: String - - """ - The second line of the address for the location. - """ - address2: String - - """ - The city of the location. - """ - city: String - - """ - The country of the location. - """ - country: String - - """ - The country code of the location. - """ - countryCode: String - - """ - A formatted version of the address for the location. - """ - formatted: [String!]! - - """ - The approximate latitude coordinates of the location. - """ - latitude: Float - - """ - The approximate longitude coordinates of the location. - """ - longitude: Float - - """ - The phone number of the location. - """ - phone: String - - """ - The province of the location. - """ - province: String - - """ - The code for the province, state, or district of the address of the location. - """ - provinceCode: String - - """ - The ZIP code of the location. - """ - zip: String -} - """ Represents a mailing address. """ @@ -4981,8 +4766,10 @@ input OrderDiscountCandidate { conditions: [Condition!] """ - A notification that informs customers about available discounts. - The message is displayed on the **Cart** page. For example, "Save 20% on all t-shirts." + A notification on the **Cart** page informs customers about available + discounts. If an automatic discount applies, the notification displays this + message, such as "Save 20% on all t-shirts." If a discount code is entered, + the notification displays the code instead. """ message: String @@ -5101,17 +4888,7 @@ Products can be organized by grouping them into a collection. Learn more about [managing products in a merchant's store](https://help.shopify.com/manual/products). """ -type Product implements HasGates & HasMetafields { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") - +type Product implements HasMetafields { """ A unique, human-readable string of the product's title. A handle can contain letters, hyphens (`-`), and numbers, but not spaces. The handle is used in the online store URL for the product. For example, if a product @@ -5239,8 +5016,10 @@ input ProductDiscountCandidate { associatedDiscountCode: AssociatedDiscountCode """ - A notification that informs customers about available discounts. - The message is displayed on the **Cart** page. For example, "Save 20% on all t-shirts." + A notification on the **Cart** page informs customers about available + discounts. If an automatic discount applies, the notification displays this + message, such as "Save 20% on all t-shirts." If a discount code is entered, + the notification displays the code instead. """ message: String diff --git a/discounts/wasm/discounts-allocator/default/schema.graphql b/discounts/wasm/discounts-allocator/default/schema.graphql index 41643e94..c9049b13 100644 --- a/discounts/wasm/discounts-allocator/default/schema.graphql +++ b/discounts/wasm/discounts-allocator/default/schema.graphql @@ -108,6 +108,13 @@ type Cart implements HasMetafields { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -209,6 +216,11 @@ type CartDeliveryGroup { """ deliveryOptions: [CartDeliveryOption!]! + """ + The type of merchandise in the delivery group. + """ + groupType: CartDeliveryGroupType! + """ A [globally-unique ID](https://shopify.dev/docs/api/usage/gids) for the delivery group. @@ -221,6 +233,22 @@ type CartDeliveryGroup { selectedDeliveryOption: CartDeliveryOption } +""" +Defines what type of merchandise is in the delivery group. +""" +enum CartDeliveryGroupType { + """ + The delivery group only contains merchandise that is either a one time purchase or a first delivery of + subscription merchandise. + """ + ONE_TIME_PURCHASE + + """ + The delivery group only contains subscription merchandise. + """ + SUBSCRIPTION +} + """ Information about a delivery option that's available for an item in a cart. Delivery options are the different ways that customers can choose to have their orders shipped. Examples include express shipping or standard @@ -1774,8 +1802,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1901,7 +1930,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2426,7 +2455,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2503,6 +2532,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2521,7 +2555,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2994,69 +3028,6 @@ input FunctionRunResult { lineDiscounts: [LineDiscount!] } -""" -Represents a gate configuration. -""" -type GateConfiguration implements HasMetafields { - """ - An optional string identifier. - """ - appId: String - - """ - A non-unique string used to group gate configurations. - """ - handle: Handle - - """ - The ID of the gate configuration. - """ - id: ID! - - """ - A [custom field](https://shopify.dev/docs/apps/build/custom-data) that stores additional information - about a Shopify resource, such as products, orders, and - [many more](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetafieldOwnerType). - Using [metafields with Shopify Functions](https://shopify.dev/docs/apps/build/functions/input-output/metafields-for-input-queries) - enables you to customize the checkout experience. - """ - metafield( - """ - The unique identifier for the metafield within its namespace. A metafield is composed of a - namespace and a key, in the format `namespace.key`. - """ - key: String! - - """ - A category that organizes a group of metafields. Namespaces are used to prevent naming conflicts - between different apps or different parts of the same app. If omitted, then the - [app-reserved namespace](https://shopify.dev/docs/apps/build/custom-data/ownership) - is used. - """ - namespace: String - ): Metafield -} - -""" -Represents a connection from a subject to a gate configuration. -""" -type GateSubject { - """ - The bound gate configuration. - """ - configuration( - """ - The appId of the gate configurations to search for. - """ - appId: String @deprecated(reason: "Use GateSubject.handle to filter gates instead.") - ): GateConfiguration! - - """ - The ID of the gate subject. - """ - id: ID! -} - """ A function-scoped handle to a refer a resource. The Handle type appears in a JSON response as a String, but it is not intended to be human-readable. @@ -3064,21 +3035,6 @@ Example value: `"10079785100"` """ scalar Handle -""" -Gate subjects associated to the specified resource. -""" -interface HasGates { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") -} - """ Represents information about the metafields associated to the specified resource. """ @@ -4630,17 +4586,7 @@ Products can be organized by grouping them into a collection. Learn more about [managing products in a merchant's store](https://help.shopify.com/manual/products). """ -type Product implements HasGates & HasMetafields { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") - +type Product implements HasMetafields { """ A unique, human-readable string of the product's title. A handle can contain letters, hyphens (`-`), and numbers, but not spaces. The handle is used in the online store URL for the product. For example, if a product diff --git a/discounts/wasm/order-discounts/default/schema.graphql b/discounts/wasm/order-discounts/default/schema.graphql index d8bf27b8..ad2e78d1 100644 --- a/discounts/wasm/order-discounts/default/schema.graphql +++ b/discounts/wasm/order-discounts/default/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1761,8 +1768,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1888,7 +1896,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2413,7 +2421,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2490,6 +2498,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2508,7 +2521,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2817,8 +2830,10 @@ input Discount { conditions: [Condition!] """ - A notification that informs customers about available discounts. - The message is displayed on the **Cart** page. For example, "Save 20% on all t-shirts." + A notification on the **Cart** page informs customers about available + discounts. If an automatic discount applies, the notification displays this + message, such as "Save 20% on all t-shirts." If a discount code is entered, + the notification displays the code instead. """ message: String diff --git a/discounts/wasm/product-discounts/default/schema.graphql b/discounts/wasm/product-discounts/default/schema.graphql index 504a158e..eb12ca58 100644 --- a/discounts/wasm/product-discounts/default/schema.graphql +++ b/discounts/wasm/product-discounts/default/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1759,8 +1766,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1886,7 +1894,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2411,7 +2419,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2488,6 +2496,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2506,7 +2519,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2808,8 +2821,10 @@ customers. """ input Discount { """ - A notification that informs customers about available discounts. - The message is displayed on the **Cart** page. For example, "Save 20% on all t-shirts." + A notification on the **Cart** page informs customers about available + discounts. If an automatic discount applies, the notification displays this + message, such as "Save 20% on all t-shirts." If a discount code is entered, + the notification displays the code instead. """ message: String diff --git a/discounts/wasm/shipping-discounts/default/schema.graphql b/discounts/wasm/shipping-discounts/default/schema.graphql index 71eb88fd..ed5bd647 100644 --- a/discounts/wasm/shipping-discounts/default/schema.graphql +++ b/discounts/wasm/shipping-discounts/default/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1739,8 +1746,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1866,7 +1874,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2391,7 +2399,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2468,6 +2476,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2486,7 +2499,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2813,8 +2826,10 @@ customers. """ input Discount { """ - A notification that informs customers about available discounts. - The message is displayed on the **Cart** page. For example, "Save 20% on all t-shirts." + A notification on the **Cart** page informs customers about available + discounts. If an automatic discount applies, the notification displays this + message, such as "Save 20% on all t-shirts." If a discount code is entered, + the notification displays the code instead. """ message: String diff --git a/order-routing/javascript/fulfillment-constraints/default/schema.graphql b/order-routing/javascript/fulfillment-constraints/default/schema.graphql index ffc355e5..db546b6a 100644 --- a/order-routing/javascript/fulfillment-constraints/default/schema.graphql +++ b/order-routing/javascript/fulfillment-constraints/default/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1739,8 +1746,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1866,7 +1874,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2391,7 +2399,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2468,6 +2476,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2486,7 +2499,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/order-routing/javascript/local-pickup-delivery-option-generators/default/schema.graphql b/order-routing/javascript/local-pickup-delivery-option-generators/default/schema.graphql index 7476d148..00dd4660 100644 --- a/order-routing/javascript/local-pickup-delivery-option-generators/default/schema.graphql +++ b/order-routing/javascript/local-pickup-delivery-option-generators/default/schema.graphql @@ -113,6 +113,13 @@ type Cart implements HasMetafields { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -214,6 +221,11 @@ type CartDeliveryGroup { """ deliveryOptions: [CartDeliveryOption!]! + """ + The type of merchandise in the delivery group. + """ + groupType: CartDeliveryGroupType! + """ A [globally-unique ID](https://shopify.dev/docs/api/usage/gids) for the delivery group. @@ -226,6 +238,22 @@ type CartDeliveryGroup { selectedDeliveryOption: CartDeliveryOption } +""" +Defines what type of merchandise is in the delivery group. +""" +enum CartDeliveryGroupType { + """ + The delivery group only contains merchandise that is either a one time purchase or a first delivery of + subscription merchandise. + """ + ONE_TIME_PURCHASE + + """ + The delivery group only contains subscription merchandise. + """ + SUBSCRIPTION +} + """ Information about a delivery option that's available for an item in a cart. Delivery options are the different ways that customers can choose to have their orders shipped. Examples include express shipping or standard @@ -1767,8 +1795,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1894,7 +1923,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2419,7 +2448,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2496,6 +2525,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2514,7 +2548,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2897,69 +2931,6 @@ input FunctionRunResult { operations: [Operation!]! } -""" -Represents a gate configuration. -""" -type GateConfiguration implements HasMetafields { - """ - An optional string identifier. - """ - appId: String - - """ - A non-unique string used to group gate configurations. - """ - handle: Handle - - """ - The ID of the gate configuration. - """ - id: ID! - - """ - A [custom field](https://shopify.dev/docs/apps/build/custom-data) that stores additional information - about a Shopify resource, such as products, orders, and - [many more](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetafieldOwnerType). - Using [metafields with Shopify Functions](https://shopify.dev/docs/apps/build/functions/input-output/metafields-for-input-queries) - enables you to customize the checkout experience. - """ - metafield( - """ - The unique identifier for the metafield within its namespace. A metafield is composed of a - namespace and a key, in the format `namespace.key`. - """ - key: String! - - """ - A category that organizes a group of metafields. Namespaces are used to prevent naming conflicts - between different apps or different parts of the same app. If omitted, then the - [app-reserved namespace](https://shopify.dev/docs/apps/build/custom-data/ownership) - is used. - """ - namespace: String - ): Metafield -} - -""" -Represents a connection from a subject to a gate configuration. -""" -type GateSubject { - """ - The bound gate configuration. - """ - configuration( - """ - The appId of the gate configurations to search for. - """ - appId: String @deprecated(reason: "Use GateSubject.handle to filter gates instead.") - ): GateConfiguration! - - """ - The ID of the gate subject. - """ - id: ID! -} - """ A function-scoped handle to a refer a resource. The Handle type appears in a JSON response as a String, but it is not intended to be human-readable. @@ -2967,21 +2938,6 @@ Example value: `"10079785100"` """ scalar Handle -""" -Gate subjects associated to the specified resource. -""" -interface HasGates { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") -} - """ Represents information about the metafields associated to the specified resource. """ @@ -4595,17 +4551,7 @@ Products can be organized by grouping them into a collection. Learn more about [managing products in a merchant's store](https://help.shopify.com/manual/products). """ -type Product implements HasGates & HasMetafields { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") - +type Product implements HasMetafields { """ A unique, human-readable string of the product's title. A handle can contain letters, hyphens (`-`), and numbers, but not spaces. The handle is used in the online store URL for the product. For example, if a product diff --git a/order-routing/javascript/location-rules/default/schema.graphql b/order-routing/javascript/location-rules/default/schema.graphql index f2f293fa..f269d687 100644 --- a/order-routing/javascript/location-rules/default/schema.graphql +++ b/order-routing/javascript/location-rules/default/schema.graphql @@ -108,6 +108,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1734,8 +1741,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1861,7 +1869,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2386,7 +2394,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2463,6 +2471,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2481,7 +2494,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2939,7 +2952,7 @@ type Input { """ The backend logic that the Function uses to - [route orders](https://shopify.dev/manual/fulfillment/setup/order-routing/understanding-order-routing). + [route orders](https://help.shopify.com/manual/fulfillment/setup/order-routing/understanding-order-routing). It includes the [metafields](https://shopify.dev/docs/apps/build/custom-data) that are associated with the customization. """ diff --git a/order-routing/javascript/pickup-point-delivery-option-generators/default/schema.graphql b/order-routing/javascript/pickup-point-delivery-option-generators/default/schema.graphql index 6e74cd6c..7032efcd 100644 --- a/order-routing/javascript/pickup-point-delivery-option-generators/default/schema.graphql +++ b/order-routing/javascript/pickup-point-delivery-option-generators/default/schema.graphql @@ -159,6 +159,13 @@ type Cart implements HasMetafields { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -260,6 +267,11 @@ type CartDeliveryGroup { """ deliveryOptions: [CartDeliveryOption!]! + """ + The type of merchandise in the delivery group. + """ + groupType: CartDeliveryGroupType! + """ A [globally-unique ID](https://shopify.dev/docs/api/usage/gids) for the delivery group. @@ -272,6 +284,22 @@ type CartDeliveryGroup { selectedDeliveryOption: CartDeliveryOption } +""" +Defines what type of merchandise is in the delivery group. +""" +enum CartDeliveryGroupType { + """ + The delivery group only contains merchandise that is either a one time purchase or a first delivery of + subscription merchandise. + """ + ONE_TIME_PURCHASE + + """ + The delivery group only contains subscription merchandise. + """ + SUBSCRIPTION +} + """ Information about a delivery option that's available for an item in a cart. Delivery options are the different ways that customers can choose to have their orders shipped. Examples include express shipping or standard @@ -1813,8 +1841,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1940,7 +1969,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2465,7 +2494,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2542,6 +2571,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2560,7 +2594,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2873,69 +2907,6 @@ input FunctionRunResult { operations: [Operation!]! } -""" -Represents a gate configuration. -""" -type GateConfiguration implements HasMetafields { - """ - An optional string identifier. - """ - appId: String - - """ - A non-unique string used to group gate configurations. - """ - handle: Handle - - """ - The ID of the gate configuration. - """ - id: ID! - - """ - A [custom field](https://shopify.dev/docs/apps/build/custom-data) that stores additional information - about a Shopify resource, such as products, orders, and - [many more](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetafieldOwnerType). - Using [metafields with Shopify Functions](https://shopify.dev/docs/apps/build/functions/input-output/metafields-for-input-queries) - enables you to customize the checkout experience. - """ - metafield( - """ - The unique identifier for the metafield within its namespace. A metafield is composed of a - namespace and a key, in the format `namespace.key`. - """ - key: String! - - """ - A category that organizes a group of metafields. Namespaces are used to prevent naming conflicts - between different apps or different parts of the same app. If omitted, then the - [app-reserved namespace](https://shopify.dev/docs/apps/build/custom-data/ownership) - is used. - """ - namespace: String - ): Metafield -} - -""" -Represents a connection from a subject to a gate configuration. -""" -type GateSubject { - """ - The bound gate configuration. - """ - configuration( - """ - The appId of the gate configurations to search for. - """ - appId: String @deprecated(reason: "Use GateSubject.handle to filter gates instead.") - ): GateConfiguration! - - """ - The ID of the gate subject. - """ - id: ID! -} - """ A function-scoped handle to a refer a resource. The Handle type appears in a JSON response as a String, but it is not intended to be human-readable. @@ -2943,21 +2914,6 @@ Example value: `"10079785100"` """ scalar Handle -""" -Gate subjects associated to the specified resource. -""" -interface HasGates { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") -} - """ Represents information about the metafields associated to the specified resource. """ @@ -4789,17 +4745,7 @@ Products can be organized by grouping them into a collection. Learn more about [managing products in a merchant's store](https://help.shopify.com/manual/products). """ -type Product implements HasGates & HasMetafields { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") - +type Product implements HasMetafields { """ A unique, human-readable string of the product's title. A handle can contain letters, hyphens (`-`), and numbers, but not spaces. The handle is used in the online store URL for the product. For example, if a product diff --git a/order-routing/rust/fulfillment-constraints/default/schema.graphql b/order-routing/rust/fulfillment-constraints/default/schema.graphql index ffc355e5..db546b6a 100644 --- a/order-routing/rust/fulfillment-constraints/default/schema.graphql +++ b/order-routing/rust/fulfillment-constraints/default/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1739,8 +1746,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1866,7 +1874,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2391,7 +2399,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2468,6 +2476,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2486,7 +2499,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/order-routing/rust/local-pickup-delivery-option-generators/default/schema.graphql b/order-routing/rust/local-pickup-delivery-option-generators/default/schema.graphql index 7476d148..00dd4660 100644 --- a/order-routing/rust/local-pickup-delivery-option-generators/default/schema.graphql +++ b/order-routing/rust/local-pickup-delivery-option-generators/default/schema.graphql @@ -113,6 +113,13 @@ type Cart implements HasMetafields { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -214,6 +221,11 @@ type CartDeliveryGroup { """ deliveryOptions: [CartDeliveryOption!]! + """ + The type of merchandise in the delivery group. + """ + groupType: CartDeliveryGroupType! + """ A [globally-unique ID](https://shopify.dev/docs/api/usage/gids) for the delivery group. @@ -226,6 +238,22 @@ type CartDeliveryGroup { selectedDeliveryOption: CartDeliveryOption } +""" +Defines what type of merchandise is in the delivery group. +""" +enum CartDeliveryGroupType { + """ + The delivery group only contains merchandise that is either a one time purchase or a first delivery of + subscription merchandise. + """ + ONE_TIME_PURCHASE + + """ + The delivery group only contains subscription merchandise. + """ + SUBSCRIPTION +} + """ Information about a delivery option that's available for an item in a cart. Delivery options are the different ways that customers can choose to have their orders shipped. Examples include express shipping or standard @@ -1767,8 +1795,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1894,7 +1923,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2419,7 +2448,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2496,6 +2525,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2514,7 +2548,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2897,69 +2931,6 @@ input FunctionRunResult { operations: [Operation!]! } -""" -Represents a gate configuration. -""" -type GateConfiguration implements HasMetafields { - """ - An optional string identifier. - """ - appId: String - - """ - A non-unique string used to group gate configurations. - """ - handle: Handle - - """ - The ID of the gate configuration. - """ - id: ID! - - """ - A [custom field](https://shopify.dev/docs/apps/build/custom-data) that stores additional information - about a Shopify resource, such as products, orders, and - [many more](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetafieldOwnerType). - Using [metafields with Shopify Functions](https://shopify.dev/docs/apps/build/functions/input-output/metafields-for-input-queries) - enables you to customize the checkout experience. - """ - metafield( - """ - The unique identifier for the metafield within its namespace. A metafield is composed of a - namespace and a key, in the format `namespace.key`. - """ - key: String! - - """ - A category that organizes a group of metafields. Namespaces are used to prevent naming conflicts - between different apps or different parts of the same app. If omitted, then the - [app-reserved namespace](https://shopify.dev/docs/apps/build/custom-data/ownership) - is used. - """ - namespace: String - ): Metafield -} - -""" -Represents a connection from a subject to a gate configuration. -""" -type GateSubject { - """ - The bound gate configuration. - """ - configuration( - """ - The appId of the gate configurations to search for. - """ - appId: String @deprecated(reason: "Use GateSubject.handle to filter gates instead.") - ): GateConfiguration! - - """ - The ID of the gate subject. - """ - id: ID! -} - """ A function-scoped handle to a refer a resource. The Handle type appears in a JSON response as a String, but it is not intended to be human-readable. @@ -2967,21 +2938,6 @@ Example value: `"10079785100"` """ scalar Handle -""" -Gate subjects associated to the specified resource. -""" -interface HasGates { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") -} - """ Represents information about the metafields associated to the specified resource. """ @@ -4595,17 +4551,7 @@ Products can be organized by grouping them into a collection. Learn more about [managing products in a merchant's store](https://help.shopify.com/manual/products). """ -type Product implements HasGates & HasMetafields { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") - +type Product implements HasMetafields { """ A unique, human-readable string of the product's title. A handle can contain letters, hyphens (`-`), and numbers, but not spaces. The handle is used in the online store URL for the product. For example, if a product diff --git a/order-routing/rust/location-rules/default/schema.graphql b/order-routing/rust/location-rules/default/schema.graphql index f2f293fa..f269d687 100644 --- a/order-routing/rust/location-rules/default/schema.graphql +++ b/order-routing/rust/location-rules/default/schema.graphql @@ -108,6 +108,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1734,8 +1741,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1861,7 +1869,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2386,7 +2394,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2463,6 +2471,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2481,7 +2494,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2939,7 +2952,7 @@ type Input { """ The backend logic that the Function uses to - [route orders](https://shopify.dev/manual/fulfillment/setup/order-routing/understanding-order-routing). + [route orders](https://help.shopify.com/manual/fulfillment/setup/order-routing/understanding-order-routing). It includes the [metafields](https://shopify.dev/docs/apps/build/custom-data) that are associated with the customization. """ diff --git a/order-routing/rust/pickup-point-delivery-option-generators/default/schema.graphql b/order-routing/rust/pickup-point-delivery-option-generators/default/schema.graphql index 6e74cd6c..7032efcd 100644 --- a/order-routing/rust/pickup-point-delivery-option-generators/default/schema.graphql +++ b/order-routing/rust/pickup-point-delivery-option-generators/default/schema.graphql @@ -159,6 +159,13 @@ type Cart implements HasMetafields { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -260,6 +267,11 @@ type CartDeliveryGroup { """ deliveryOptions: [CartDeliveryOption!]! + """ + The type of merchandise in the delivery group. + """ + groupType: CartDeliveryGroupType! + """ A [globally-unique ID](https://shopify.dev/docs/api/usage/gids) for the delivery group. @@ -272,6 +284,22 @@ type CartDeliveryGroup { selectedDeliveryOption: CartDeliveryOption } +""" +Defines what type of merchandise is in the delivery group. +""" +enum CartDeliveryGroupType { + """ + The delivery group only contains merchandise that is either a one time purchase or a first delivery of + subscription merchandise. + """ + ONE_TIME_PURCHASE + + """ + The delivery group only contains subscription merchandise. + """ + SUBSCRIPTION +} + """ Information about a delivery option that's available for an item in a cart. Delivery options are the different ways that customers can choose to have their orders shipped. Examples include express shipping or standard @@ -1813,8 +1841,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1940,7 +1969,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2465,7 +2494,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2542,6 +2571,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2560,7 +2594,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2873,69 +2907,6 @@ input FunctionRunResult { operations: [Operation!]! } -""" -Represents a gate configuration. -""" -type GateConfiguration implements HasMetafields { - """ - An optional string identifier. - """ - appId: String - - """ - A non-unique string used to group gate configurations. - """ - handle: Handle - - """ - The ID of the gate configuration. - """ - id: ID! - - """ - A [custom field](https://shopify.dev/docs/apps/build/custom-data) that stores additional information - about a Shopify resource, such as products, orders, and - [many more](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetafieldOwnerType). - Using [metafields with Shopify Functions](https://shopify.dev/docs/apps/build/functions/input-output/metafields-for-input-queries) - enables you to customize the checkout experience. - """ - metafield( - """ - The unique identifier for the metafield within its namespace. A metafield is composed of a - namespace and a key, in the format `namespace.key`. - """ - key: String! - - """ - A category that organizes a group of metafields. Namespaces are used to prevent naming conflicts - between different apps or different parts of the same app. If omitted, then the - [app-reserved namespace](https://shopify.dev/docs/apps/build/custom-data/ownership) - is used. - """ - namespace: String - ): Metafield -} - -""" -Represents a connection from a subject to a gate configuration. -""" -type GateSubject { - """ - The bound gate configuration. - """ - configuration( - """ - The appId of the gate configurations to search for. - """ - appId: String @deprecated(reason: "Use GateSubject.handle to filter gates instead.") - ): GateConfiguration! - - """ - The ID of the gate subject. - """ - id: ID! -} - """ A function-scoped handle to a refer a resource. The Handle type appears in a JSON response as a String, but it is not intended to be human-readable. @@ -2943,21 +2914,6 @@ Example value: `"10079785100"` """ scalar Handle -""" -Gate subjects associated to the specified resource. -""" -interface HasGates { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") -} - """ Represents information about the metafields associated to the specified resource. """ @@ -4789,17 +4745,7 @@ Products can be organized by grouping them into a collection. Learn more about [managing products in a merchant's store](https://help.shopify.com/manual/products). """ -type Product implements HasGates & HasMetafields { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") - +type Product implements HasMetafields { """ A unique, human-readable string of the product's title. A handle can contain letters, hyphens (`-`), and numbers, but not spaces. The handle is used in the online store URL for the product. For example, if a product diff --git a/order-routing/typescript/pickup-point-delivery-option-generators/default/schema.graphql b/order-routing/typescript/pickup-point-delivery-option-generators/default/schema.graphql index 6e74cd6c..7032efcd 100644 --- a/order-routing/typescript/pickup-point-delivery-option-generators/default/schema.graphql +++ b/order-routing/typescript/pickup-point-delivery-option-generators/default/schema.graphql @@ -159,6 +159,13 @@ type Cart implements HasMetafields { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -260,6 +267,11 @@ type CartDeliveryGroup { """ deliveryOptions: [CartDeliveryOption!]! + """ + The type of merchandise in the delivery group. + """ + groupType: CartDeliveryGroupType! + """ A [globally-unique ID](https://shopify.dev/docs/api/usage/gids) for the delivery group. @@ -272,6 +284,22 @@ type CartDeliveryGroup { selectedDeliveryOption: CartDeliveryOption } +""" +Defines what type of merchandise is in the delivery group. +""" +enum CartDeliveryGroupType { + """ + The delivery group only contains merchandise that is either a one time purchase or a first delivery of + subscription merchandise. + """ + ONE_TIME_PURCHASE + + """ + The delivery group only contains subscription merchandise. + """ + SUBSCRIPTION +} + """ Information about a delivery option that's available for an item in a cart. Delivery options are the different ways that customers can choose to have their orders shipped. Examples include express shipping or standard @@ -1813,8 +1841,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1940,7 +1969,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2465,7 +2494,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2542,6 +2571,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2560,7 +2594,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2873,69 +2907,6 @@ input FunctionRunResult { operations: [Operation!]! } -""" -Represents a gate configuration. -""" -type GateConfiguration implements HasMetafields { - """ - An optional string identifier. - """ - appId: String - - """ - A non-unique string used to group gate configurations. - """ - handle: Handle - - """ - The ID of the gate configuration. - """ - id: ID! - - """ - A [custom field](https://shopify.dev/docs/apps/build/custom-data) that stores additional information - about a Shopify resource, such as products, orders, and - [many more](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetafieldOwnerType). - Using [metafields with Shopify Functions](https://shopify.dev/docs/apps/build/functions/input-output/metafields-for-input-queries) - enables you to customize the checkout experience. - """ - metafield( - """ - The unique identifier for the metafield within its namespace. A metafield is composed of a - namespace and a key, in the format `namespace.key`. - """ - key: String! - - """ - A category that organizes a group of metafields. Namespaces are used to prevent naming conflicts - between different apps or different parts of the same app. If omitted, then the - [app-reserved namespace](https://shopify.dev/docs/apps/build/custom-data/ownership) - is used. - """ - namespace: String - ): Metafield -} - -""" -Represents a connection from a subject to a gate configuration. -""" -type GateSubject { - """ - The bound gate configuration. - """ - configuration( - """ - The appId of the gate configurations to search for. - """ - appId: String @deprecated(reason: "Use GateSubject.handle to filter gates instead.") - ): GateConfiguration! - - """ - The ID of the gate subject. - """ - id: ID! -} - """ A function-scoped handle to a refer a resource. The Handle type appears in a JSON response as a String, but it is not intended to be human-readable. @@ -2943,21 +2914,6 @@ Example value: `"10079785100"` """ scalar Handle -""" -Gate subjects associated to the specified resource. -""" -interface HasGates { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") -} - """ Represents information about the metafields associated to the specified resource. """ @@ -4789,17 +4745,7 @@ Products can be organized by grouping them into a collection. Learn more about [managing products in a merchant's store](https://help.shopify.com/manual/products). """ -type Product implements HasGates & HasMetafields { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") - +type Product implements HasMetafields { """ A unique, human-readable string of the product's title. A handle can contain letters, hyphens (`-`), and numbers, but not spaces. The handle is used in the online store URL for the product. For example, if a product diff --git a/order-routing/wasm/fulfillment-constraints/default/schema.graphql b/order-routing/wasm/fulfillment-constraints/default/schema.graphql index ffc355e5..db546b6a 100644 --- a/order-routing/wasm/fulfillment-constraints/default/schema.graphql +++ b/order-routing/wasm/fulfillment-constraints/default/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1739,8 +1746,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1866,7 +1874,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2391,7 +2399,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2468,6 +2476,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2486,7 +2499,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/order-routing/wasm/local-pickup-delivery-option-generators/default/schema.graphql b/order-routing/wasm/local-pickup-delivery-option-generators/default/schema.graphql index 7476d148..00dd4660 100644 --- a/order-routing/wasm/local-pickup-delivery-option-generators/default/schema.graphql +++ b/order-routing/wasm/local-pickup-delivery-option-generators/default/schema.graphql @@ -113,6 +113,13 @@ type Cart implements HasMetafields { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -214,6 +221,11 @@ type CartDeliveryGroup { """ deliveryOptions: [CartDeliveryOption!]! + """ + The type of merchandise in the delivery group. + """ + groupType: CartDeliveryGroupType! + """ A [globally-unique ID](https://shopify.dev/docs/api/usage/gids) for the delivery group. @@ -226,6 +238,22 @@ type CartDeliveryGroup { selectedDeliveryOption: CartDeliveryOption } +""" +Defines what type of merchandise is in the delivery group. +""" +enum CartDeliveryGroupType { + """ + The delivery group only contains merchandise that is either a one time purchase or a first delivery of + subscription merchandise. + """ + ONE_TIME_PURCHASE + + """ + The delivery group only contains subscription merchandise. + """ + SUBSCRIPTION +} + """ Information about a delivery option that's available for an item in a cart. Delivery options are the different ways that customers can choose to have their orders shipped. Examples include express shipping or standard @@ -1767,8 +1795,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1894,7 +1923,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2419,7 +2448,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2496,6 +2525,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2514,7 +2548,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2897,69 +2931,6 @@ input FunctionRunResult { operations: [Operation!]! } -""" -Represents a gate configuration. -""" -type GateConfiguration implements HasMetafields { - """ - An optional string identifier. - """ - appId: String - - """ - A non-unique string used to group gate configurations. - """ - handle: Handle - - """ - The ID of the gate configuration. - """ - id: ID! - - """ - A [custom field](https://shopify.dev/docs/apps/build/custom-data) that stores additional information - about a Shopify resource, such as products, orders, and - [many more](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetafieldOwnerType). - Using [metafields with Shopify Functions](https://shopify.dev/docs/apps/build/functions/input-output/metafields-for-input-queries) - enables you to customize the checkout experience. - """ - metafield( - """ - The unique identifier for the metafield within its namespace. A metafield is composed of a - namespace and a key, in the format `namespace.key`. - """ - key: String! - - """ - A category that organizes a group of metafields. Namespaces are used to prevent naming conflicts - between different apps or different parts of the same app. If omitted, then the - [app-reserved namespace](https://shopify.dev/docs/apps/build/custom-data/ownership) - is used. - """ - namespace: String - ): Metafield -} - -""" -Represents a connection from a subject to a gate configuration. -""" -type GateSubject { - """ - The bound gate configuration. - """ - configuration( - """ - The appId of the gate configurations to search for. - """ - appId: String @deprecated(reason: "Use GateSubject.handle to filter gates instead.") - ): GateConfiguration! - - """ - The ID of the gate subject. - """ - id: ID! -} - """ A function-scoped handle to a refer a resource. The Handle type appears in a JSON response as a String, but it is not intended to be human-readable. @@ -2967,21 +2938,6 @@ Example value: `"10079785100"` """ scalar Handle -""" -Gate subjects associated to the specified resource. -""" -interface HasGates { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") -} - """ Represents information about the metafields associated to the specified resource. """ @@ -4595,17 +4551,7 @@ Products can be organized by grouping them into a collection. Learn more about [managing products in a merchant's store](https://help.shopify.com/manual/products). """ -type Product implements HasGates & HasMetafields { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") - +type Product implements HasMetafields { """ A unique, human-readable string of the product's title. A handle can contain letters, hyphens (`-`), and numbers, but not spaces. The handle is used in the online store URL for the product. For example, if a product diff --git a/order-routing/wasm/location-rules/default/schema.graphql b/order-routing/wasm/location-rules/default/schema.graphql index f2f293fa..f269d687 100644 --- a/order-routing/wasm/location-rules/default/schema.graphql +++ b/order-routing/wasm/location-rules/default/schema.graphql @@ -108,6 +108,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1734,8 +1741,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1861,7 +1869,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2386,7 +2394,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2463,6 +2471,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2481,7 +2494,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2939,7 +2952,7 @@ type Input { """ The backend logic that the Function uses to - [route orders](https://shopify.dev/manual/fulfillment/setup/order-routing/understanding-order-routing). + [route orders](https://help.shopify.com/manual/fulfillment/setup/order-routing/understanding-order-routing). It includes the [metafields](https://shopify.dev/docs/apps/build/custom-data) that are associated with the customization. """ diff --git a/order-routing/wasm/pickup-point-delivery-option-generators/default/schema.graphql b/order-routing/wasm/pickup-point-delivery-option-generators/default/schema.graphql index 6e74cd6c..7032efcd 100644 --- a/order-routing/wasm/pickup-point-delivery-option-generators/default/schema.graphql +++ b/order-routing/wasm/pickup-point-delivery-option-generators/default/schema.graphql @@ -159,6 +159,13 @@ type Cart implements HasMetafields { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -260,6 +267,11 @@ type CartDeliveryGroup { """ deliveryOptions: [CartDeliveryOption!]! + """ + The type of merchandise in the delivery group. + """ + groupType: CartDeliveryGroupType! + """ A [globally-unique ID](https://shopify.dev/docs/api/usage/gids) for the delivery group. @@ -272,6 +284,22 @@ type CartDeliveryGroup { selectedDeliveryOption: CartDeliveryOption } +""" +Defines what type of merchandise is in the delivery group. +""" +enum CartDeliveryGroupType { + """ + The delivery group only contains merchandise that is either a one time purchase or a first delivery of + subscription merchandise. + """ + ONE_TIME_PURCHASE + + """ + The delivery group only contains subscription merchandise. + """ + SUBSCRIPTION +} + """ Information about a delivery option that's available for an item in a cart. Delivery options are the different ways that customers can choose to have their orders shipped. Examples include express shipping or standard @@ -1813,8 +1841,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1940,7 +1969,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2465,7 +2494,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2542,6 +2571,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2560,7 +2594,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2873,69 +2907,6 @@ input FunctionRunResult { operations: [Operation!]! } -""" -Represents a gate configuration. -""" -type GateConfiguration implements HasMetafields { - """ - An optional string identifier. - """ - appId: String - - """ - A non-unique string used to group gate configurations. - """ - handle: Handle - - """ - The ID of the gate configuration. - """ - id: ID! - - """ - A [custom field](https://shopify.dev/docs/apps/build/custom-data) that stores additional information - about a Shopify resource, such as products, orders, and - [many more](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetafieldOwnerType). - Using [metafields with Shopify Functions](https://shopify.dev/docs/apps/build/functions/input-output/metafields-for-input-queries) - enables you to customize the checkout experience. - """ - metafield( - """ - The unique identifier for the metafield within its namespace. A metafield is composed of a - namespace and a key, in the format `namespace.key`. - """ - key: String! - - """ - A category that organizes a group of metafields. Namespaces are used to prevent naming conflicts - between different apps or different parts of the same app. If omitted, then the - [app-reserved namespace](https://shopify.dev/docs/apps/build/custom-data/ownership) - is used. - """ - namespace: String - ): Metafield -} - -""" -Represents a connection from a subject to a gate configuration. -""" -type GateSubject { - """ - The bound gate configuration. - """ - configuration( - """ - The appId of the gate configurations to search for. - """ - appId: String @deprecated(reason: "Use GateSubject.handle to filter gates instead.") - ): GateConfiguration! - - """ - The ID of the gate subject. - """ - id: ID! -} - """ A function-scoped handle to a refer a resource. The Handle type appears in a JSON response as a String, but it is not intended to be human-readable. @@ -2943,21 +2914,6 @@ Example value: `"10079785100"` """ scalar Handle -""" -Gate subjects associated to the specified resource. -""" -interface HasGates { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") -} - """ Represents information about the metafields associated to the specified resource. """ @@ -4789,17 +4745,7 @@ Products can be organized by grouping them into a collection. Learn more about [managing products in a merchant's store](https://help.shopify.com/manual/products). """ -type Product implements HasGates & HasMetafields { - """ - Returns active gate subjects bound to the resource. - """ - gates( - """ - The handle of the gate configurations to search for. - """ - handle: Handle - ): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.") - +type Product implements HasMetafields { """ A unique, human-readable string of the product's title. A handle can contain letters, hyphens (`-`), and numbers, but not spaces. The handle is used in the online store URL for the product. For example, if a product diff --git a/sample-apps/bundles-cart-transform/extensions/cart-expand-js/schema.graphql b/sample-apps/bundles-cart-transform/extensions/cart-expand-js/schema.graphql index 1de58faf..5e1818c9 100644 --- a/sample-apps/bundles-cart-transform/extensions/cart-expand-js/schema.graphql +++ b/sample-apps/bundles-cart-transform/extensions/cart-expand-js/schema.graphql @@ -1694,8 +1694,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1821,7 +1822,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2346,7 +2347,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2423,6 +2424,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2441,7 +2447,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/sample-apps/bundles-cart-transform/extensions/cart-merge-expand_rust/schema.graphql b/sample-apps/bundles-cart-transform/extensions/cart-merge-expand_rust/schema.graphql index 1de58faf..5e1818c9 100644 --- a/sample-apps/bundles-cart-transform/extensions/cart-merge-expand_rust/schema.graphql +++ b/sample-apps/bundles-cart-transform/extensions/cart-merge-expand_rust/schema.graphql @@ -1694,8 +1694,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1821,7 +1822,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2346,7 +2347,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2423,6 +2424,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2441,7 +2447,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/sample-apps/bundles-price-per-component/extensions/price-per-component-js/schema.graphql b/sample-apps/bundles-price-per-component/extensions/price-per-component-js/schema.graphql index 1de58faf..5e1818c9 100644 --- a/sample-apps/bundles-price-per-component/extensions/price-per-component-js/schema.graphql +++ b/sample-apps/bundles-price-per-component/extensions/price-per-component-js/schema.graphql @@ -1694,8 +1694,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1821,7 +1822,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2346,7 +2347,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2423,6 +2424,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2441,7 +2447,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/sample-apps/bundles-price-per-component/extensions/price-per-component-rs/schema.graphql b/sample-apps/bundles-price-per-component/extensions/price-per-component-rs/schema.graphql index a57e44c6..05d52158 100644 --- a/sample-apps/bundles-price-per-component/extensions/price-per-component-rs/schema.graphql +++ b/sample-apps/bundles-price-per-component/extensions/price-per-component-rs/schema.graphql @@ -1694,8 +1694,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1821,7 +1822,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2346,7 +2347,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2423,6 +2424,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2441,7 +2447,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/sample-apps/delivery-customizations/extensions/delivery-customization-js/schema.graphql b/sample-apps/delivery-customizations/extensions/delivery-customization-js/schema.graphql index 5c40d172..61e5bbae 100644 --- a/sample-apps/delivery-customizations/extensions/delivery-customization-js/schema.graphql +++ b/sample-apps/delivery-customizations/extensions/delivery-customization-js/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1728,8 +1735,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1855,7 +1863,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2380,7 +2388,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2457,6 +2465,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2475,7 +2488,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/sample-apps/delivery-customizations/extensions/delivery-customization-rust/schema.graphql b/sample-apps/delivery-customizations/extensions/delivery-customization-rust/schema.graphql index 5c40d172..61e5bbae 100644 --- a/sample-apps/delivery-customizations/extensions/delivery-customization-rust/schema.graphql +++ b/sample-apps/delivery-customizations/extensions/delivery-customization-rust/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1728,8 +1735,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1855,7 +1863,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2380,7 +2388,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2457,6 +2465,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2475,7 +2488,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/sample-apps/discounts/extensions/product-discount-js/schema.graphql b/sample-apps/discounts/extensions/product-discount-js/schema.graphql index 11a1700f..09833eac 100644 --- a/sample-apps/discounts/extensions/product-discount-js/schema.graphql +++ b/sample-apps/discounts/extensions/product-discount-js/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1728,8 +1735,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1855,7 +1863,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2380,7 +2388,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2457,6 +2465,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2475,7 +2488,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2777,8 +2790,10 @@ customers. """ input Discount { """ - A notification that informs customers about available discounts. - The message is displayed on the **Cart** page. For example, "Save 20% on all t-shirts." + A notification on the **Cart** page informs customers about available + discounts. If an automatic discount applies, the notification displays this + message, such as "Save 20% on all t-shirts." If a discount code is entered, + the notification displays the code instead. """ message: String diff --git a/sample-apps/discounts/extensions/product-discount-rust/schema.graphql b/sample-apps/discounts/extensions/product-discount-rust/schema.graphql index 11a1700f..09833eac 100644 --- a/sample-apps/discounts/extensions/product-discount-rust/schema.graphql +++ b/sample-apps/discounts/extensions/product-discount-rust/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1728,8 +1735,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1855,7 +1863,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2380,7 +2388,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2457,6 +2465,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2475,7 +2488,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). @@ -2777,8 +2790,10 @@ customers. """ input Discount { """ - A notification that informs customers about available discounts. - The message is displayed on the **Cart** page. For example, "Save 20% on all t-shirts." + A notification on the **Cart** page informs customers about available + discounts. If an automatic discount applies, the notification displays this + message, such as "Save 20% on all t-shirts." If a discount code is entered, + the notification displays the code instead. """ message: String diff --git a/sample-apps/optional-add-ons-cart-transform/extensions/optional-add-ons-js/schema.graphql b/sample-apps/optional-add-ons-cart-transform/extensions/optional-add-ons-js/schema.graphql index 1de58faf..5e1818c9 100644 --- a/sample-apps/optional-add-ons-cart-transform/extensions/optional-add-ons-js/schema.graphql +++ b/sample-apps/optional-add-ons-cart-transform/extensions/optional-add-ons-js/schema.graphql @@ -1694,8 +1694,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1821,7 +1822,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2346,7 +2347,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2423,6 +2424,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2441,7 +2447,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/sample-apps/optional-add-ons-cart-transform/extensions/optional-add-ons-rust/schema.graphql b/sample-apps/optional-add-ons-cart-transform/extensions/optional-add-ons-rust/schema.graphql index 1de58faf..5e1818c9 100644 --- a/sample-apps/optional-add-ons-cart-transform/extensions/optional-add-ons-rust/schema.graphql +++ b/sample-apps/optional-add-ons-cart-transform/extensions/optional-add-ons-rust/schema.graphql @@ -1694,8 +1694,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1821,7 +1822,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2346,7 +2347,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2423,6 +2424,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2441,7 +2447,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/sample-apps/payment-customizations/extensions/payment-customization-js/schema.graphql b/sample-apps/payment-customizations/extensions/payment-customization-js/schema.graphql index 893c6dc2..b61bdcd3 100644 --- a/sample-apps/payment-customizations/extensions/payment-customization-js/schema.graphql +++ b/sample-apps/payment-customizations/extensions/payment-customization-js/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1728,8 +1735,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1855,7 +1863,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2380,7 +2388,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2457,6 +2465,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2475,7 +2488,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/sample-apps/payment-customizations/extensions/payment-customization-rust/schema.graphql b/sample-apps/payment-customizations/extensions/payment-customization-rust/schema.graphql index 893c6dc2..b61bdcd3 100644 --- a/sample-apps/payment-customizations/extensions/payment-customization-rust/schema.graphql +++ b/sample-apps/payment-customizations/extensions/payment-customization-rust/schema.graphql @@ -113,6 +113,13 @@ type Cart { fulfillment by organizing items that can be shipped together, based on the customer's shipping address. For example, if a customer orders a t-shirt and a pair of shoes that can be shipped together, then the items are included in the same delivery group. + + In the [Order Discount](https://shopify.dev/docs/api/functions/reference/order-discounts) and + [Product Discount](https://shopify.dev/docs/api/functions/reference/product-discounts) legacy APIs, + the `cart.deliveryGroups` input is always an empty array. This means you can't access delivery groups when + creating Order Discount or Product Discount Functions. If you need to apply discounts to shipping costs, + then use the [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount) + instead. """ deliveryGroups: [CartDeliveryGroup!]! @@ -1728,8 +1735,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1855,7 +1863,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2380,7 +2388,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2457,6 +2465,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2475,7 +2488,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES). diff --git a/sample-apps/update-line-item/extensions/update-line-item-js/schema.graphql b/sample-apps/update-line-item/extensions/update-line-item-js/schema.graphql index 1de58faf..5e1818c9 100644 --- a/sample-apps/update-line-item/extensions/update-line-item-js/schema.graphql +++ b/sample-apps/update-line-item/extensions/update-line-item-js/schema.graphql @@ -1694,8 +1694,9 @@ enum CountryCode { } """ -The three-letter currency codes that represent the world currencies used in stores. Currency codes include -[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, and non-standard codes. +The currency codes that represent the world currencies throughout the Admin API. Currency codes include +[standard ISO 4217 codes](https://en.wikipedia.org/wiki/ISO_4217), legacy codes, non-standard codes, +digital currency codes. """ enum CurrencyCode { """ @@ -1821,7 +1822,7 @@ enum CurrencyCode { """ Belarusian Ruble (BYR). """ - BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.") + BYR @deprecated(reason: "Use `BYN` instead.") """ Belize Dollar (BZD). @@ -2346,7 +2347,7 @@ enum CurrencyCode { """ Sao Tome And Principe Dobra (STD). """ - STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.") + STD @deprecated(reason: "Use `STN` instead.") """ Sao Tome And Principe Dobra (STN). @@ -2423,6 +2424,11 @@ enum CurrencyCode { """ USD + """ + United States Dollars Coin (USDC). + """ + USDC + """ Uruguayan Pesos (UYU). """ @@ -2441,7 +2447,7 @@ enum CurrencyCode { """ Venezuelan Bolivares (VEF). """ - VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.") + VEF @deprecated(reason: "Use `VES` instead.") """ Venezuelan Bolivares Soberanos (VES).