From 20230f840d3b561b079a1664eb454e1723e65e2f Mon Sep 17 00:00:00 2001 From: tiagocandido Date: Thu, 21 May 2026 16:51:02 +0200 Subject: [PATCH] Update sample Storefront API version --- .../samples/MobileBuyIntegration/README.md | 2 +- .../MobileBuyIntegration/app/build.gradle | 2 +- .../app/src/main/graphql/schema.graphqls | 381 +++---- .../android/scripts/apollo_download_schema | 2 +- .../CartDeliveryGroupFragment.graphql.swift | 513 ++++----- .../Fragments/CartFragment.graphql.swift | 786 +++++--------- .../Fragments/CartLineFragment.graphql.swift | 581 ++++------ .../CartUserErrorFragment.graphql.swift | 71 +- .../CartCreateMutation.graphql.swift | 377 +++---- .../CartLinesAddMutation.graphql.swift | 391 +++---- .../CartLinesUpdateMutation.graphql.swift | 391 +++---- .../Queries/GetCartQuery.graphql.swift | 234 ++-- .../Queries/GetProductsQuery.graphql.swift | 628 +++++------ .../Enums/CartDeliveryGroupType.graphql.swift | 19 +- .../Schema/Enums/CartErrorCode.graphql.swift | 225 ++-- .../Schema/Enums/CountryCode.graphql.swift | 995 +++++++++--------- .../Schema/Enums/CurrencyCode.graphql.swift | 669 ++++++------ ...eryAddressValidationStrategy.graphql.swift | 23 +- .../Enums/DeliveryMethodType.graphql.swift | 33 +- .../Schema/Enums/LanguageCode.graphql.swift | 589 +++++------ ...PreferenceDeliveryMethodType.graphql.swift | 21 +- .../InputObjects/AttributeInput.graphql.swift | 53 +- .../CartAddressInput.graphql.swift | 53 +- .../CartBuyerIdentityInput.graphql.swift | 121 +-- .../CartDeliveryAddressInput.graphql.swift | 169 +-- ...ryCoordinatesPreferenceInput.graphql.swift | 81 +- .../CartDeliveryInput.graphql.swift | 43 +- .../CartDeliveryPreferenceInput.graphql.swift | 87 +- .../InputObjects/CartInput.graphql.swift | 165 +-- .../CartInputMetafieldInput.graphql.swift | 83 +- .../InputObjects/CartLineInput.graphql.swift | 107 +- .../CartLineParentInput.graphql.swift | 38 + .../CartLineUpdateInput.graphql.swift | 103 +- .../CartPreferencesInput.graphql.swift | 59 +- .../CartSelectableAddressInput.graphql.swift | 97 +- .../Interfaces/BaseCartLine.graphql.swift | 24 +- .../Interfaces/DisplayableError.graphql.swift | 28 +- .../Interfaces/HasMetafields.graphql.swift | 50 +- .../Schema/Interfaces/Media.graphql.swift | 28 +- .../Schema/Interfaces/Node.graphql.swift | 90 +- .../OnlineStorePublishable.graphql.swift | 28 +- .../Schema/Interfaces/Trackable.graphql.swift | 26 +- .../Objects/AppliedGiftCard.graphql.swift | 14 +- .../Schema/Objects/Article.graphql.swift | 28 +- .../BaseCartLineConnection.graphql.swift | 14 +- .../Schema/Objects/Blog.graphql.swift | 26 +- .../Schema/Objects/Cart.graphql.swift | 28 +- .../Objects/CartBuyerIdentity.graphql.swift | 18 +- .../Schema/Objects/CartCost.graphql.swift | 18 +- .../Objects/CartCreatePayload.graphql.swift | 14 +- .../Objects/CartDeliveryGroup.graphql.swift | 18 +- .../CartDeliveryGroupConnection.graphql.swift | 14 +- .../Objects/CartDeliveryOption.graphql.swift | 18 +- .../Schema/Objects/CartLine.graphql.swift | 24 +- .../Schema/Objects/CartLineCost.graphql.swift | 18 +- .../Objects/CartLinesAddPayload.graphql.swift | 14 +- .../CartLinesUpdatePayload.graphql.swift | 14 +- .../Objects/CartUserError.graphql.swift | 14 +- .../Schema/Objects/Collection.graphql.swift | 28 +- .../CollectionConnection.graphql.swift | 14 +- .../Schema/Objects/Comment.graphql.swift | 14 +- .../Schema/Objects/Company.graphql.swift | 24 +- .../Objects/CompanyContact.graphql.swift | 14 +- .../Objects/CompanyLocation.graphql.swift | 24 +- .../ComponentizableCartLine.graphql.swift | 20 +- .../Schema/Objects/Customer.graphql.swift | 22 +- .../Objects/CustomerUserError.graphql.swift | 14 +- .../Objects/ExternalVideo.graphql.swift | 20 +- .../Schema/Objects/GenericFile.graphql.swift | 22 +- .../Schema/Objects/Image.graphql.swift | 18 +- .../Schema/Objects/Location.graphql.swift | 24 +- .../Objects/MailingAddress.graphql.swift | 18 +- .../Schema/Objects/Market.graphql.swift | 24 +- .../Schema/Objects/MediaImage.graphql.swift | 24 +- .../Objects/MediaPresentation.graphql.swift | 14 +- .../Schema/Objects/Menu.graphql.swift | 18 +- .../Schema/Objects/MenuItem.graphql.swift | 18 +- .../Schema/Objects/Metafield.graphql.swift | 18 +- .../MetafieldDeleteUserError.graphql.swift | 14 +- .../MetafieldsSetUserError.graphql.swift | 14 +- .../Schema/Objects/Metaobject.graphql.swift | 24 +- .../Schema/Objects/Model3d.graphql.swift | 20 +- .../Schema/Objects/MoneyV2.graphql.swift | 14 +- .../Schema/Objects/Mutation.graphql.swift | 14 +- .../Schema/Objects/Order.graphql.swift | 20 +- .../Schema/Objects/Page.graphql.swift | 28 +- .../Schema/Objects/Product.graphql.swift | 36 +- .../Objects/ProductConnection.graphql.swift | 14 +- .../Objects/ProductOption.graphql.swift | 22 +- .../Objects/ProductOptionValue.graphql.swift | 22 +- .../Objects/ProductVariant.graphql.swift | 28 +- .../ProductVariantConnection.graphql.swift | 14 +- .../Schema/Objects/QueryRoot.graphql.swift | 22 +- .../SearchQuerySuggestion.graphql.swift | 18 +- .../Schema/Objects/SellingPlan.graphql.swift | 14 +- .../Schema/Objects/Shop.graphql.swift | 24 +- ...PayInstallmentsFinancingPlan.graphql.swift | 14 +- ...nstallmentsFinancingPlanTerm.graphql.swift | 14 +- ...llmentsProductVariantPricing.graphql.swift | 14 +- .../Schema/Objects/ShopPolicy.graphql.swift | 14 +- .../Objects/TaxonomyCategory.graphql.swift | 22 +- .../Schema/Objects/UrlRedirect.graphql.swift | 14 +- .../Schema/Objects/UserError.graphql.swift | 14 +- ...mentRequestSessionUserErrors.graphql.swift | 14 +- .../Schema/Objects/Video.graphql.swift | 24 +- .../Schema/SchemaMetadata.graphql.swift | 174 +-- .../Schema/Unions/Merchandise.graphql.swift | 12 +- .../Generated/Storefront.graphql.swift | 2 +- .../Sources/Lib/InfoDictionary.swift | 2 +- .../Samples/MobileBuyIntegration/README.md | 2 +- .../Storefront.xcconfig.example | 2 +- .../apollo-codegen-config.json | 2 +- .../CartDeliveryGroupFragment.graphql.swift | 513 ++++----- .../Fragments/CartFragment.graphql.swift | 786 +++++--------- .../Fragments/CartLineFragment.graphql.swift | 581 ++++------ .../CartUserErrorFragment.graphql.swift | 71 +- .../CartCreateMutation.graphql.swift | 377 +++---- .../Queries/GetCartQuery.graphql.swift | 234 ++-- .../Queries/GetProductsQuery.graphql.swift | 552 ++++------ .../Enums/CartDeliveryGroupType.graphql.swift | 19 +- .../Schema/Enums/CartErrorCode.graphql.swift | 225 ++-- .../Schema/Enums/CountryCode.graphql.swift | 995 +++++++++--------- .../Schema/Enums/CurrencyCode.graphql.swift | 669 ++++++------ ...eryAddressValidationStrategy.graphql.swift | 23 +- .../Enums/DeliveryMethodType.graphql.swift | 33 +- .../Schema/Enums/LanguageCode.graphql.swift | 589 +++++------ ...PreferenceDeliveryMethodType.graphql.swift | 21 +- .../InputObjects/AttributeInput.graphql.swift | 53 +- .../CartAddressInput.graphql.swift | 53 +- .../CartBuyerIdentityInput.graphql.swift | 121 +-- .../CartDeliveryAddressInput.graphql.swift | 169 +-- ...ryCoordinatesPreferenceInput.graphql.swift | 81 +- .../CartDeliveryInput.graphql.swift | 43 +- .../CartDeliveryPreferenceInput.graphql.swift | 87 +- .../InputObjects/CartInput.graphql.swift | 165 +-- .../CartInputMetafieldInput.graphql.swift | 83 +- .../InputObjects/CartLineInput.graphql.swift | 107 +- .../CartLineParentInput.graphql.swift | 38 + .../CartPreferencesInput.graphql.swift | 59 +- .../CartSelectableAddressInput.graphql.swift | 97 +- .../Interfaces/BaseCartLine.graphql.swift | 24 +- .../Interfaces/DisplayableError.graphql.swift | 28 +- .../Interfaces/HasMetafields.graphql.swift | 50 +- .../Schema/Interfaces/Media.graphql.swift | 28 +- .../Schema/Interfaces/Node.graphql.swift | 90 +- .../OnlineStorePublishable.graphql.swift | 28 +- .../Schema/Interfaces/Trackable.graphql.swift | 26 +- .../Objects/AppliedGiftCard.graphql.swift | 14 +- .../Schema/Objects/Article.graphql.swift | 28 +- .../BaseCartLineConnection.graphql.swift | 14 +- .../Schema/Objects/Blog.graphql.swift | 26 +- .../Schema/Objects/Cart.graphql.swift | 28 +- .../Objects/CartBuyerIdentity.graphql.swift | 18 +- .../Schema/Objects/CartCost.graphql.swift | 18 +- .../Objects/CartCreatePayload.graphql.swift | 14 +- .../Objects/CartDeliveryGroup.graphql.swift | 18 +- .../CartDeliveryGroupConnection.graphql.swift | 14 +- .../Objects/CartDeliveryOption.graphql.swift | 18 +- .../Schema/Objects/CartLine.graphql.swift | 24 +- .../Schema/Objects/CartLineCost.graphql.swift | 18 +- .../Objects/CartUserError.graphql.swift | 14 +- .../Schema/Objects/Collection.graphql.swift | 28 +- .../Schema/Objects/Comment.graphql.swift | 14 +- .../Schema/Objects/Company.graphql.swift | 24 +- .../Objects/CompanyContact.graphql.swift | 14 +- .../Objects/CompanyLocation.graphql.swift | 24 +- .../ComponentizableCartLine.graphql.swift | 20 +- .../Schema/Objects/Customer.graphql.swift | 22 +- .../Objects/CustomerUserError.graphql.swift | 14 +- .../Objects/ExternalVideo.graphql.swift | 20 +- .../Schema/Objects/GenericFile.graphql.swift | 22 +- .../Schema/Objects/Image.graphql.swift | 18 +- .../Schema/Objects/Location.graphql.swift | 24 +- .../Objects/MailingAddress.graphql.swift | 18 +- .../Schema/Objects/Market.graphql.swift | 24 +- .../Schema/Objects/MediaImage.graphql.swift | 24 +- .../Objects/MediaPresentation.graphql.swift | 14 +- .../Schema/Objects/Menu.graphql.swift | 18 +- .../Schema/Objects/MenuItem.graphql.swift | 18 +- .../Schema/Objects/Metafield.graphql.swift | 18 +- .../MetafieldDeleteUserError.graphql.swift | 14 +- .../MetafieldsSetUserError.graphql.swift | 14 +- .../Schema/Objects/Metaobject.graphql.swift | 24 +- .../Schema/Objects/Model3d.graphql.swift | 20 +- .../Schema/Objects/MoneyV2.graphql.swift | 14 +- .../Schema/Objects/Mutation.graphql.swift | 14 +- .../Schema/Objects/Order.graphql.swift | 20 +- .../Schema/Objects/Page.graphql.swift | 28 +- .../Schema/Objects/Product.graphql.swift | 36 +- .../Objects/ProductConnection.graphql.swift | 14 +- .../Objects/ProductOption.graphql.swift | 22 +- .../Objects/ProductOptionValue.graphql.swift | 22 +- .../Objects/ProductVariant.graphql.swift | 28 +- .../ProductVariantConnection.graphql.swift | 14 +- .../Schema/Objects/QueryRoot.graphql.swift | 22 +- .../SearchQuerySuggestion.graphql.swift | 18 +- .../Schema/Objects/SellingPlan.graphql.swift | 14 +- .../Schema/Objects/Shop.graphql.swift | 24 +- ...PayInstallmentsFinancingPlan.graphql.swift | 14 +- ...nstallmentsFinancingPlanTerm.graphql.swift | 14 +- ...llmentsProductVariantPricing.graphql.swift | 14 +- .../Schema/Objects/ShopPolicy.graphql.swift | 14 +- .../Objects/TaxonomyCategory.graphql.swift | 22 +- .../Schema/Objects/UrlRedirect.graphql.swift | 14 +- .../Schema/Objects/UserError.graphql.swift | 14 +- ...mentRequestSessionUserErrors.graphql.swift | 14 +- .../Schema/Objects/Video.graphql.swift | 24 +- .../Schema/SchemaMetadata.graphql.swift | 159 +-- .../Schema/Unions/Merchandise.graphql.swift | 12 +- .../Generated/Storefront.graphql.swift | 2 +- .../Storefront.xcconfig.example | 2 +- .../swift/Scripts/apollo_download_schema | 2 +- 212 files changed, 8397 insertions(+), 9902 deletions(-) create mode 100644 platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartLineParentInput.graphql.swift create mode 100644 platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartLineParentInput.graphql.swift diff --git a/platforms/android/samples/MobileBuyIntegration/README.md b/platforms/android/samples/MobileBuyIntegration/README.md index 6db7d032..ded94669 100644 --- a/platforms/android/samples/MobileBuyIntegration/README.md +++ b/platforms/android/samples/MobileBuyIntegration/README.md @@ -77,7 +77,7 @@ Edit `.env`: ```text STOREFRONT_DOMAIN=your-store.myshopify.com STOREFRONT_ACCESS_TOKEN=your-token -API_VERSION=2025-07 +API_VERSION=2026-04 ``` Optional values enable Customer Account API and buyer identity demo flows: diff --git a/platforms/android/samples/MobileBuyIntegration/app/build.gradle b/platforms/android/samples/MobileBuyIntegration/app/build.gradle index d0d76b6a..8a8b2f63 100644 --- a/platforms/android/samples/MobileBuyIntegration/app/build.gradle +++ b/platforms/android/samples/MobileBuyIntegration/app/build.gradle @@ -23,7 +23,7 @@ def properties = loadProperties() // Storefront API def storefrontDomain = properties.getProperty("STOREFRONT_DOMAIN") def accessToken = properties.getProperty("STOREFRONT_ACCESS_TOKEN") -def apiVersion = properties.getProperty("API_VERSION", "2025-07") +def apiVersion = properties.getProperty("API_VERSION", "2026-04") // Customer Account API def customerAccountApiClientId = properties.getProperty("CUSTOMER_ACCOUNT_API_CLIENT_ID") diff --git a/platforms/android/samples/MobileBuyIntegration/app/src/main/graphql/schema.graphqls b/platforms/android/samples/MobileBuyIntegration/app/src/main/graphql/schema.graphqls index b5b12a6d..3f700725 100644 --- a/platforms/android/samples/MobileBuyIntegration/app/src/main/graphql/schema.graphqls +++ b/platforms/android/samples/MobileBuyIntegration/app/src/main/graphql/schema.graphqls @@ -145,7 +145,7 @@ type Article implements HasMetafields & Node & OnlineStorePublishable & Trackabl metafields( """ The list of metafields to retrieve by namespace and key. - + The input must not contain more than `250` values. """ identifiers: [HasMetafieldsIdentifier!]! @@ -308,7 +308,7 @@ type Blog implements HasMetafields & Node & OnlineStorePublishable { metafields( """ The list of metafields to retrieve by namespace and key. - + The input must not contain more than `250` values. """ identifiers: [HasMetafieldsIdentifier!]! @@ -419,15 +419,15 @@ type Cart implements HasMetafields & Node { reverse: Boolean = false, """ Whether to include [carrier-calculated delivery rates](https://help.shopify.com/en/manual/shipping/setting-up-and-managing-your-shipping/enabling-shipping-carriers) in the response. - + By default, only static shipping rates are returned. This argument requires mandatory usage of the [`@defer` directive](https://shopify.dev/docs/api/storefront#directives). - + For more information, refer to [fetching carrier-calculated rates for the cart using `@defer`](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/defer#fetching-carrier-calculated-rates-for-the-cart-using-defer). """ withCarrierRates: Boolean = false ): CartDeliveryGroupConnection! "The discounts that have been applied to the entire cart." - discountAllocations: [CartDiscountAllocation!]! + discountAllocations: [CartDiscountAllocation!]! @deprecated(reason: "Use `cart.lines[].discountAllocations(lineLevelOnly: false)` and `cart.deliveryGroups[].discountAllocations` instead.") "The case-insensitive discount codes that the customer added at checkout." discountCodes: [CartDiscountCode!]! "The estimated costs that the buyer will pay at checkout. The estimated costs are subject to change and changes will be reflected at checkout. The `estimatedCost` field uses the `buyerIdentity` field to determine [international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing)." @@ -458,7 +458,7 @@ type Cart implements HasMetafields & Node { metafields( """ The list of metafields to retrieve by namespace and key. - + The input must not contain more than `250` values. """ identifiers: [HasMetafieldsIdentifier!]! @@ -484,7 +484,7 @@ A discount allocation [that applies automatically](https://help.shopify.com/manu """ type CartAutomaticDiscountAllocation implements CartDiscountAllocation { "The discount that have been applied on the cart line." - discountApplication: CartDiscountApplication! + discountApplication: CartDiscountApplication! @deprecated(reason: "Use `sourceDiscountApplication` instead.") "The discounted amount that has been applied to the cart line." discountedAmount: MoneyV2! "The type of line that the discount is applicable towards." @@ -515,7 +515,7 @@ type CartBuyerIdentity { An ordered set of delivery addresses tied to the buyer that is interacting with the cart. The rank of the preferences is determined by the order of the addresses in the array. Preferences can be used to populate relevant fields in the checkout flow. - + As of the `2025-01` release, `buyerIdentity.deliveryAddressPreferences` is deprecated. Delivery addresses are now part of the `CartDelivery` object and managed with three new mutations: - `cartDeliveryAddressAdd` @@ -560,7 +560,7 @@ type CartCodeDiscountAllocation implements CartDiscountAllocation { "The code used to apply the discount." code: String! "The discount that have been applied on the cart line." - discountApplication: CartDiscountApplication! + discountApplication: CartDiscountApplication! @deprecated(reason: "Use `sourceDiscountApplication` instead.") "The discounted amount that has been applied to the cart line." discountedAmount: MoneyV2! "The type of line that the discount is applicable towards." @@ -647,7 +647,7 @@ type CartCreatePayload { "The discounts automatically applied to the cart line based on prerequisites that have been met." type CartCustomDiscountAllocation implements CartDiscountAllocation { "The discount that have been applied on the cart line." - discountApplication: CartDiscountApplication! + discountApplication: CartDiscountApplication! @deprecated(reason: "Use `sourceDiscountApplication` instead.") "The discounted amount that has been applied to the cart line." discountedAmount: MoneyV2! "The type of line that the discount is applicable towards." @@ -679,7 +679,7 @@ type CartDeliveryAddress { company: String """ The two-letter code for the country of the address. - + For example, US. """ countryCode: String @@ -704,13 +704,13 @@ type CartDeliveryAddress { name: String """ A unique phone number for the customer. - + Formatted using E.164 standard. For example, _+16135551111_. """ phone: String """ The alphanumeric code for the region. - + For example, ON. """ provinceCode: String @@ -757,7 +757,7 @@ type CartDeliveryAddressesUpdatePayload { type CartDeliveryCoordinatesPreference { """ The two-letter code for the country of the preferred location. - + For example, US. """ countryCode: CountryCode! @@ -836,7 +836,7 @@ type CartDeliveryOption { title: String } """ -A set of preferences tied to the buyer interacting with the cart. Preferences are used to prefill fields in at checkout to streamline information collection. +A set of preferences tied to the buyer interacting with the cart. Preferences are used to prefill fields in at checkout to streamline information collection. Preferences are not synced back to the cart if they are overwritten. """ type CartDeliveryPreference { @@ -1068,7 +1068,7 @@ type CartPaymentUpdatePayload { warnings: [CartWarning!]! } """ -A set of preferences tied to the buyer interacting with the cart. Preferences are used to prefill fields in at checkout to streamline information collection. +A set of preferences tied to the buyer interacting with the cart. Preferences are used to prefill fields in at checkout to streamline information collection. Preferences are not synced back to the cart if they are overwritten. """ type CartPreferences { @@ -1202,7 +1202,7 @@ type Collection implements HasMetafields & Node & OnlineStorePublishable & Track metafields( """ The list of metafields to retrieve by namespace and key. - + The input must not contain more than `250` values. """ identifiers: [HasMetafieldsIdentifier!]! @@ -1225,7 +1225,7 @@ type Collection implements HasMetafields & Node & OnlineStorePublishable & Track sortKey: ProductCollectionSortKeys = COLLECTION_DEFAULT, """ Returns a subset of products matching all product filters. - + The input must not contain more than `250` values. """ filters: [ProductFilter!] @@ -1325,7 +1325,7 @@ type Company implements HasMetafields & Node { metafields( """ The list of metafields to retrieve by namespace and key. - + The input must not contain more than `250` values. """ identifiers: [HasMetafieldsIdentifier!]! @@ -1373,7 +1373,7 @@ type CompanyLocation implements HasMetafields & Node { metafields( """ The list of metafields to retrieve by namespace and key. - + The input must not contain more than `250` values. """ identifiers: [HasMetafieldsIdentifier!]! @@ -1428,7 +1428,11 @@ type Count { "Precision of count, how exact is the value." precision: CountPrecision! } -"A country." +""" +A country with localization settings for a storefront. Includes the country's currency, available languages, default language, and unit system (metric or imperial). + +Access countries through the [localization](https://shopify.dev/docs/api/storefront/current/queries/localization) query, which returns both the list of available countries and the currently active country. Use the [`@inContext`](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/in-context) directive to change the active country context. +""" type Country { "The languages available for the country." availableLanguages: [Language!]! @@ -1504,7 +1508,7 @@ type Customer implements HasMetafields { metafields( """ The list of metafields to retrieve by namespace and key. - + The input must not contain more than `250` values. """ identifiers: [HasMetafieldsIdentifier!]! @@ -1823,7 +1827,7 @@ type FilterValue { image: MediaImage """ An input object that can be used to filter by this value on the parent field. - + The value is provided as a helper for building dynamic filtering UI. For example, if you have a list of selected `FilterValue` objects, you can combine their respective `input` values to use in a subsequent query. @@ -1935,7 +1939,7 @@ type Image { id: ID """ The location of the original image as a URL. - + If there are any existing transformations in the original source URL, they will remain and not be stripped. """ originalSrc: URL! @deprecated(reason: "Use `url` instead.") @@ -1943,15 +1947,15 @@ type Image { src: URL! @deprecated(reason: "Use `url` instead.") """ The ThumbHash of the image. - + Useful to display placeholder images while the original image is loading. - + See https://evanw.github.io/thumbhash/ for details on how to use it. """ thumbhash: String """ The location of the transformed image as a URL. - + All transformation arguments are considered "best-effort". If they can be applied to an image, they will be. Otherwise any transformations which an image type doesn't support will be ignored. """ @@ -1969,11 +1973,11 @@ type Image { ): URL! @deprecated(reason: "Use `url(transform:)` instead") """ The location of the image as a URL. - + If no transform options are specified, then the original image will be preserved including any pre-applied transforms. - + All transformation options are considered "best-effort". Any transformation that the original image type doesn't support will be ignored. - + If you need multiple variations of the same image, then you can use [GraphQL aliases](https://graphql.org/learn/queries/#aliases). """ url( @@ -2015,7 +2019,11 @@ type InContextAnnotationType { kind: String! name: String! } -"A language." +""" +A language available for a localized storefront experience. Provides the language name in both its native form (endonym) and translated into the current language, along with its [`LanguageCode`](https://shopify.dev/docs/api/storefront/current/enums/LanguageCode). + +Returned by the [`Localization`](https://shopify.dev/docs/api/storefront/current/objects/Localization) and [`Country`](https://shopify.dev/docs/api/storefront/current/objects/Country) objects to indicate available and active languages. Pass the `isoCode` to the [`@inContext`](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/in-context) directive to retrieve translated content in that language. +""" type Language { "The name of the language in the language itself. If the language uses capitalization, it is capitalized for a mid-sentence position." endonymName: String! @@ -2042,7 +2050,7 @@ type Localization { market: Market! @deprecated(reason: "This `market` field will be removed in a future version of the API.") } """ -A physical store location where product inventory is held and that supports in-store pickup. Provides the location's name, address, and geographic coordinates for proximity-based sorting. Use with [`StoreAvailability`](https://shopify.dev/docs/api/storefront/current/objects/StoreAvailability) to show customers where a [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) is available for pickup. +A physical store location where product inventory is held and that supports in-store pickup. Provides the location's name, address, and geographic coordinates for proximity-based sorting. Use with [`StoreAvailability`](https://shopify.dev/docs/api/storefront/current/objects/StoreAvailability) to show customers where a [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) is available for pickup. Learn more about [supporting local pickup on storefronts](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/products-collections/local-pickup). """ @@ -2062,7 +2070,7 @@ type Location implements HasMetafields & Node { metafields( """ The list of metafields to retrieve by namespace and key. - + The input must not contain more than `250` values. """ identifiers: [HasMetafieldsIdentifier!]! @@ -2141,13 +2149,13 @@ type MailingAddress implements Node { country: String """ The two-letter code for the country of the address. - + For example, US. """ countryCode: String @deprecated(reason: "Use `countryCodeV2` instead.") """ The two-letter code for the country of the address. - + For example, US. """ countryCodeV2: CountryCode @@ -2174,7 +2182,7 @@ type MailingAddress implements Node { name: String """ A unique phone number for the customer. - + Formatted using E.164 standard. For example, _+16135551111_. """ phone: String @@ -2182,7 +2190,7 @@ type MailingAddress implements Node { province: String """ The alphanumeric code for the region. - + For example, ON. """ provinceCode: String @@ -2226,7 +2234,11 @@ type ManualDiscountApplication implements DiscountApplication { "The value of the discount application." value: PricingValue! } -"A group of one or more regions of the world that a merchant is targeting for sales. To learn more about markets, refer to [the Shopify Markets conceptual overview](/docs/apps/markets)." +""" +An audience of buyers that a merchant targets for sales. Audiences can include geographic regions, company locations, and retail locations. Markets enable localized shopping experiences with region-specific languages, currencies, and pricing. + +Each market has a unique [`handle`](https://shopify.dev/docs/api/storefront/current/objects/Market#field-Market.fields.handle) for identification and supports custom data through [`metafields`](https://shopify.dev/docs/api/storefront/current/objects/Metafield). Learn more about [building localized experiences with Shopify Markets](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets). +""" type Market implements HasMetafields & Node { """ A human-readable unique string for the market automatically generated from its title. @@ -2245,7 +2257,7 @@ type Market implements HasMetafields & Node { metafields( """ The list of metafields to retrieve by namespace and key. - + The input must not contain more than `250` values. """ identifiers: [HasMetafieldsIdentifier!]! @@ -2354,6 +2366,8 @@ type Metafield implements Node { id: ID! "The unique identifier for the metafield within its namespace." key: String! + "Whether the metafield's type is a list type. Returns `true` for types like `list.color` or `list.single_line_text_field`." + list: Boolean! "The container for a group of metafields that the metafield is associated with." namespace: String! "The type of resource that the metafield is attached to." @@ -2550,7 +2564,7 @@ type Mutation { cartAttributesUpdate( """ An array of key-value pairs that contains additional information about the cart. - + The input must not contain more than `250` values. """ attributes: [AttributeInput!]!, @@ -2566,7 +2580,7 @@ type Mutation { ): CartBillingAddressUpdatePayload """ Updates the buyer identity on a [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart), including contact information, location, and checkout preferences. The buyer's country determines [international pricing](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets/international-pricing) and should match their shipping address. - + Use this mutation to associate a logged-in customer via access token, set a B2B company location, or configure checkout preferences like delivery method. Preferences prefill checkout fields but don't sync back to the cart if overwritten at checkout. """ cartBuyerIdentityUpdate( @@ -2586,7 +2600,7 @@ type Mutation { ): CartClonePayload """ Creates a new [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart) for a buyer session. You can optionally initialize the cart with merchandise lines, discount codes, gift card codes, buyer identity for international pricing, and custom attributes. - + The returned cart includes a `checkoutUrl` that directs the buyer to complete their purchase. """ cartCreate( @@ -2601,7 +2615,7 @@ type Mutation { cartId: ID!, """ A list of delivery addresses to add to the cart. - + The input must not contain more than `250` values. """ addresses: [CartSelectableAddressInput!]! @@ -2614,14 +2628,14 @@ type Mutation { cartId: ID!, """ A list of delivery addresses by handle to remove from the cart. - + The input must not contain more than `250` values. """ addressIds: [ID!]! ): CartDeliveryAddressesRemovePayload """ Replaces all delivery addresses on a [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart) with a new set of addresses in a single operation. Unlike [`cartDeliveryAddressesUpdate`](https://shopify.dev/docs/api/storefront/current/mutations/cartDeliveryAddressesUpdate), which modifies existing addresses, this mutation removes all current addresses and sets the provided list as the new delivery addresses. - + One address can be marked as selected, and each address can be flagged for one-time use or configured with a specific validation strategy. """ cartDeliveryAddressesReplace( @@ -2629,7 +2643,7 @@ type Mutation { cartId: ID!, """ A list of delivery addresses to replace on the cart. - + The input must not contain more than `250` values. """ addresses: [CartSelectableAddressInput!]! @@ -2642,14 +2656,14 @@ type Mutation { cartId: ID!, """ The delivery addresses to update. - + The input must not contain more than `250` values. """ addresses: [CartSelectableAddressUpdateInput!]! ): CartDeliveryAddressesUpdatePayload """ Updates the discount codes applied to a [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart). This mutation replaces all existing discount codes with the provided list, so pass an empty array to remove all codes. Discount codes are case-insensitive. - + After updating, check each [`CartDiscountCode`](https://shopify.dev/docs/api/storefront/current/objects/CartDiscountCode) in the cart's [`discountCodes`](https://shopify.dev/docs/api/storefront/current/objects/Cart#field-Cart.fields.discountCodes) field to see whether the code is applicable to the cart's current contents. """ cartDiscountCodesUpdate( @@ -2657,14 +2671,14 @@ type Mutation { cartId: ID!, """ The case-insensitive discount codes that the customer added at checkout. - + The input must not contain more than `250` values. """ discountCodes: [String!]! ): CartDiscountCodesUpdatePayload """ Adds gift card codes to a [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart) without replacing any codes already applied. Gift card codes are case-insensitive. - + To replace all gift card codes instead of adding to them, use [`cartGiftCardCodesUpdate`](https://shopify.dev/docs/api/storefront/current/mutations/cartGiftCardCodesUpdate). """ cartGiftCardCodesAdd( @@ -2672,7 +2686,7 @@ type Mutation { cartId: ID!, """ The case-insensitive gift card codes to add. - + The input must not contain more than `250` values. """ giftCardCodes: [String!]! @@ -2685,7 +2699,7 @@ type Mutation { cartId: ID!, """ The gift cards to remove. - + The input must not contain more than `250` values. """ appliedGiftCardIds: [ID!]! @@ -2698,14 +2712,14 @@ type Mutation { cartId: ID!, """ The case-insensitive gift card codes. - + The input must not contain more than `250` values. """ giftCardCodes: [String!]! ): CartGiftCardCodesUpdatePayload """ Adds one or more merchandise lines to an existing [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart). Each line specifies the [product variant](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) to purchase. Quantity defaults to `1` if not provided. - + You can add up to 250 lines in a single request. Use [`CartLineInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartLineInput) to configure each line's merchandise, quantity, selling plan, custom attributes, and any parent relationships for nested line items such as warranties or add-ons. """ cartLinesAdd( @@ -2713,7 +2727,7 @@ type Mutation { cartId: ID!, """ A list of merchandise lines to add to the cart. - + The input must not contain more than `250` values. """ lines: [CartLineInput!]! @@ -2726,14 +2740,14 @@ type Mutation { cartId: ID!, """ The merchandise line IDs to remove. - + The input must not contain more than `250` values. """ lineIds: [ID!]! ): CartLinesRemovePayload """ Updates one or more merchandise lines on a [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart). You can modify the quantity, swap the merchandise, change custom attributes, or update the selling plan for each line. You can update a maximum of 250 lines per request. - + Omitting the [`attributes`](https://shopify.dev/docs/api/storefront/current/mutations/cartLinesUpdate#arguments-lines.fields.attributes) field or setting it to null preserves existing line attributes. Pass an empty array to clear all attributes from a line. """ cartLinesUpdate( @@ -2741,14 +2755,14 @@ type Mutation { cartId: ID!, """ The merchandise lines to update. - + The input must not contain more than `250` values. """ lines: [CartLineUpdateInput!]! ): CartLinesUpdatePayload """ Deletes a cart metafield. - + > Note: > This mutation won't trigger [Shopify Functions](https://shopify.dev/docs/api/functions). The changes won't be available to Shopify Functions until the buyer goes to checkout or performs another cart interaction that triggers the functions. """ @@ -2758,16 +2772,16 @@ type Mutation { ): CartMetafieldDeletePayload """ Sets [`Metafield`](https://shopify.dev/docs/api/storefront/current/objects/Metafield) values on a cart, creating new metafields or updating existing ones. Accepts up to 25 metafields per request. - + Cart metafields can automatically copy to order metafields when an order is created, if there's a matching order metafield definition with the [cart to order copyable](https://shopify.dev/docs/apps/build/metafields/use-metafield-capabilities#cart-to-order-copyable) capability enabled. - + > Note: > This mutation doesn't trigger [Shopify Functions](https://shopify.dev/docs/api/functions). Changes aren't available to Shopify Functions until the buyer goes to checkout or performs another cart interaction that triggers the functions. """ cartMetafieldsSet( """ The list of Cart metafield values to set. Maximum of 25. - + The input must not contain more than `250` values. """ metafields: [CartMetafieldsSetInput!]! @@ -2800,7 +2814,7 @@ type Mutation { ): CartRemovePersonalDataPayload """ Updates the selected delivery option for one or more [`CartDeliveryGroup`](https://shopify.dev/docs/api/storefront/current/objects/CartDeliveryGroup) objects in a cart. Each delivery group represents items shipping to a specific address and offers multiple delivery options with different costs and methods. - + Use this mutation when a customer chooses their preferred shipping method during checkout. The [`deliveryOptionHandle`](https://shopify.dev/docs/api/storefront/current/input-objects/CartSelectedDeliveryOptionInput#field-CartSelectedDeliveryOptionInput.fields.deliveryOptionHandle) identifies which [`CartDeliveryOption`](https://shopify.dev/docs/api/storefront/current/objects/CartDeliveryOption) to select for each delivery group. """ cartSelectedDeliveryOptionsUpdate( @@ -2808,7 +2822,7 @@ type Mutation { cartId: ID!, """ The selected delivery options. - + The input must not contain more than `250` values. """ selectedDeliveryOptions: [CartSelectedDeliveryOptionInput!]! @@ -2825,11 +2839,11 @@ type Mutation { ): CartSubmitForCompletionPayload """ For legacy customer accounts only. - + Creates a [`CustomerAccessToken`](https://shopify.dev/docs/api/storefront/current/objects/CustomerAccessToken) using the customer's email and password. The access token is required to read or modify the [`Customer`](https://shopify.dev/docs/api/storefront/current/objects/Customer) object, such as updating account information or managing addresses. - + The token has an expiration time. Use [`customerAccessTokenRenew`](https://shopify.dev/docs/api/storefront/current/mutations/customerAccessTokenRenew) to extend the token before it expires, or create a new token if it's already expired. - + > Caution: > This mutation handles customer credentials. Always transmit requests over HTTPS and never log or expose the password. """ @@ -2839,9 +2853,9 @@ type Mutation { ): CustomerAccessTokenCreatePayload """ Creates a [`CustomerAccessToken`](https://shopify.dev/docs/api/storefront/current/objects/CustomerAccessToken) using a [multipass token](https://shopify.dev/docs/api/multipass) instead of email and password. This enables single sign-on for customers who authenticate through an external system. - + If the customer doesn't exist in Shopify, then a new customer record is created automatically. If the customer exists but the record is disabled, then the customer record is re-enabled. - + > Caution: > Multipass tokens are only valid for 15 minutes and can only be used once. Generate tokens on-the-fly when needed rather than in advance. """ @@ -2851,7 +2865,7 @@ type Mutation { ): CustomerAccessTokenCreateWithMultipassPayload """ Permanently destroys a [`CustomerAccessToken`](https://shopify.dev/docs/api/storefront/current/objects/CustomerAccessToken). Use this mutation when a customer explicitly signs out or when you need to revoke the token. Use [`customerAccessTokenCreate`](https://shopify.dev/docs/api/storefront/current/mutations/customerAccessTokenCreate) to generate a new token with the customer's credentials. - + > Caution: > This action is irreversible. The customer needs to sign in again to obtain a new access token. """ @@ -2861,9 +2875,9 @@ type Mutation { ): CustomerAccessTokenDeletePayload """ Extends the validity of a [`CustomerAccessToken`](https://shopify.dev/docs/api/storefront/current/objects/CustomerAccessToken) before it expires. The renewed token maintains authenticated access to customer operations. - + Renewal must happen before the token's [`expiresAt`](https://shopify.dev/docs/api/storefront/current/objects/CustomerAccessToken#field-CustomerAccessToken.fields.expiresAt) time. If a token has already expired, then use [`customerAccessTokenCreate`](https://shopify.dev/docs/api/storefront/current/mutations/customerAccessTokenCreate) to generate a new token with the customer's credentials. - + > Caution: > Store access tokens securely. Never store tokens in plain text or insecure locations, and avoid exposing them in URLs or logs. """ @@ -2873,9 +2887,9 @@ type Mutation { ): CustomerAccessTokenRenewPayload """ Activates a customer account using an activation token received from the [`customerCreate`](https://shopify.dev/docs/api/storefront/current/mutations/customerCreate) mutation. The customer sets their password during activation and receives a [`CustomerAccessToken`](https://shopify.dev/docs/api/storefront/current/objects/CustomerAccessToken) for authenticated access. - + For a simpler approach that doesn't require parsing the activation URL, use [`customerActivateByUrl`](https://shopify.dev/docs/api/storefront/current/mutations/customerActivateByUrl) instead. - + > Caution: > This mutation handles customer credentials. Always use HTTPS and never log or expose the password or access token. """ @@ -2887,7 +2901,7 @@ type Mutation { ): CustomerActivatePayload """ Activates a customer account using the full activation URL from the [`customerCreate`](https://shopify.dev/docs/api/storefront/current/mutations/customerCreate) mutation. This approach simplifies activation by accepting the complete URL directly, eliminating the need to parse it for the customer ID and activation token. Returns a [`CustomerAccessToken`](https://shopify.dev/docs/api/storefront/current/objects/CustomerAccessToken) for authenticating subsequent requests. - + > Caution: > Store the returned access token securely. It grants access to the customer's account data. """ @@ -2898,8 +2912,8 @@ type Mutation { password: String! ): CustomerActivateByUrlPayload """ - Creates a new [`MailingAddress`](https://shopify.dev/docs/api/storefront/current/objects/MailingAddress) for a [`Customer`](https://shopify.dev/docs/api/storefront/current/objects/Customer). Use the customer's [access token](https://shopify.dev/docs/api/storefront/current/mutations/customerAddressCreate#arguments-customerAccessToken) to identify them. Successful creation returns the new address. - + Creates a new [`MailingAddress`](https://shopify.dev/docs/api/storefront/current/objects/MailingAddress) for a [`Customer`](https://shopify.dev/docs/api/storefront/current/objects/Customer). Use the customer's [access token](https://shopify.dev/docs/api/storefront/current/mutations/customerAddressCreate#arguments-customerAccessToken) to identify them. Successful creation returns the new address. + Each customer can have multiple addresses. """ customerAddressCreate( @@ -2910,7 +2924,7 @@ type Mutation { ): CustomerAddressCreatePayload """ Permanently deletes a specific [`MailingAddress`](https://shopify.dev/docs/api/storefront/current/objects/MailingAddress) for a [`Customer`](https://shopify.dev/docs/api/storefront/current/objects/Customer). Requires a valid [customer access token](https://shopify.dev/docs/api/storefront/current/mutations/customerAddressDelete#arguments-customerAccessToken) to authenticate the request. - + > Caution: > This action is irreversible. You can't recover the deleted address. """ @@ -2922,7 +2936,7 @@ type Mutation { ): CustomerAddressDeletePayload """ Updates an existing [`MailingAddress`](https://shopify.dev/docs/api/storefront/current/objects/MailingAddress) for a [`Customer`](https://shopify.dev/docs/api/storefront/current/objects/Customer). Requires a [customer access token](https://shopify.dev/docs/api/storefront/current/mutations/customerAddressUpdate#arguments-customerAccessToken) to identify the customer, an ID to specify which address to modify, and an [`address`](https://shopify.dev/docs/api/storefront/current/input-objects/MailingAddressInput) with the updated fields. - + Successful update returns the updated [`MailingAddress`](https://shopify.dev/docs/api/storefront/current/objects/MailingAddress). """ customerAddressUpdate( @@ -2935,7 +2949,7 @@ type Mutation { ): CustomerAddressUpdatePayload """ Creates a new [`Customer`](https://shopify.dev/docs/api/storefront/current/objects/Customer) account with the provided contact information and login credentials. The customer can then sign in for things such as accessing their account, viewing order history, and managing saved addresses. - + > Caution: > This mutation creates customer credentials. Ensure passwords are collected securely and never logged or exposed in client-side code. """ @@ -2954,9 +2968,9 @@ type Mutation { ): CustomerDefaultAddressUpdatePayload """ Sends a reset password email to the customer. The email contains a reset password URL and token that you can pass to the [`customerResetByUrl`](https://shopify.dev/docs/api/storefront/current/mutations/customerResetByUrl) or [`customerReset`](https://shopify.dev/docs/api/storefront/current/mutations/customerReset) mutation to reset the customer's password. - + This mutation is throttled by IP. With private access, you can provide a [`Shopify-Storefront-Buyer-IP` header](https://shopify.dev/docs/api/usage/authentication#optional-ip-header) instead of the request IP. The header is case-sensitive. - + > Caution: > Ensure the value provided to `Shopify-Storefront-Buyer-IP` is trusted. Unthrottled access to this mutation presents a security risk. """ @@ -2966,9 +2980,9 @@ type Mutation { ): CustomerRecoverPayload """ Resets a customer's password using the reset token from a password recovery email. On success, returns the updated [`Customer`](https://shopify.dev/docs/api/storefront/current/objects/Customer) and a new [`CustomerAccessToken`](https://shopify.dev/docs/api/storefront/current/objects/CustomerAccessToken) for immediate authentication. - + Use the [`customerRecover`](https://shopify.dev/docs/api/storefront/current/mutations/customerRecover) mutation to send the password recovery email that provides the reset token. Alternatively, use [`customerResetByUrl`](https://shopify.dev/docs/api/storefront/current/mutations/customerResetByUrl) if you have the full reset URL instead of the customer ID and token. - + > Caution: > This mutation handles sensitive customer credentials. Validate password requirements on the client before submission. """ @@ -2980,9 +2994,9 @@ type Mutation { ): CustomerResetPayload """ Resets a customer's password using the reset URL from a password recovery email. The reset URL is generated by the [`customerRecover`](https://shopify.dev/docs/api/storefront/current/mutations/customerRecover) mutation. - + On success, returns the updated [`Customer`](https://shopify.dev/docs/api/storefront/current/objects/Customer) and a new [`CustomerAccessToken`](https://shopify.dev/docs/api/storefront/current/objects/CustomerAccessToken) for immediate authentication. - + > Caution: > This mutation handles customer credentials. Ensure the new password is transmitted securely and never logged or exposed in client-side code. """ @@ -2994,9 +3008,9 @@ type Mutation { ): CustomerResetByUrlPayload """ Updates a [customer's](https://shopify.dev/docs/api/storefront/current/objects/Customer) personal information such as name, password, and marketing preferences. Requires a valid [`CustomerAccessToken`](https://shopify.dev/docs/api/storefront/current/objects/CustomerAccessToken) to authenticate the customer making the update. - + If the customer's password is updated, then all previous access tokens become invalid. The mutation returns a new access token in the payload to maintain the customer's session. - + > Caution: > Password changes invalidate all existing access tokens. Ensure your app handles the new token returned in the response to avoid logging the customer out. """ @@ -3008,9 +3022,9 @@ type Mutation { ): CustomerUpdatePayload """ Creates a [Shop Pay payment request session](https://shopify.dev/docs/api/storefront/current/objects/ShopPayPaymentRequestSession) for processing payments. The session includes a checkout URL where customers complete their purchase and a token for subsequent operations like submitting the payment. - + The `sourceIdentifier` must be unique across all orders to ensure accurate reconciliation. - + For a complete integration guide including the JavaScript SDK setup and checkout flow, refer to the [Shop Component API documentation](https://shopify.dev/docs/api/commerce-components/pay). For implementation steps, see the [development journey guide](https://shopify.dev/docs/api/commerce-components/pay/development-journey). For common error scenarios, see the [troubleshooting guide](https://shopify.dev/docs/api/commerce-components/pay/troubleshooting-guide). """ shopPayPaymentRequestSessionCreate( @@ -3021,9 +3035,9 @@ type Mutation { ): ShopPayPaymentRequestSessionCreatePayload """ Finalizes a [Shop Pay payment request session](https://shopify.dev/docs/api/storefront/current/objects/ShopPayPaymentRequestSession). Call this mutation after creating a session with [`shopPayPaymentRequestSessionCreate`](https://shopify.dev/docs/api/storefront/current/mutations/shopPayPaymentRequestSessionCreate). - + The [`idempotencyKey`](https://shopify.dev/docs/api/storefront/current/mutations/shopPayPaymentRequestSessionSubmit#arguments-idempotencyKey) argument ensures the payment transaction occurs only once, preventing duplicate charges. On success, returns a [`ShopPayPaymentRequestReceipt`](https://shopify.dev/docs/api/storefront/current/objects/ShopPayPaymentRequestReceipt) with the processing status and a receipt token. - + For a complete integration guide including the JavaScript SDK setup and checkout flow, refer to the [Shop Component API documentation](https://shopify.dev/docs/api/commerce-components/pay). For implementation steps, see the [development journey guide](https://shopify.dev/docs/api/commerce-components/pay/development-journey). For common error scenarios, see the [troubleshooting guide](https://shopify.dev/docs/api/commerce-components/pay/troubleshooting-guide). """ shopPayPaymentRequestSessionSubmit( @@ -3110,7 +3124,7 @@ type Order implements HasMetafields & Node { metafields( """ The list of metafields to retrieve by namespace and key. - + The input must not contain more than `250` values. """ identifiers: [HasMetafieldsIdentifier!]! @@ -3256,7 +3270,7 @@ type Page implements HasMetafields & Node & OnlineStorePublishable & Trackable { metafields( """ The list of metafields to retrieve by namespace and key. - + The input must not contain more than `250` values. """ identifiers: [HasMetafieldsIdentifier!]! @@ -3372,18 +3386,18 @@ type Product implements HasMetafields & Node & OnlineStorePublishable & Trackabl """ A list of variants whose selected options differ with the provided selected options by one, ordered by variant id. If selected options are not provided, adjacent variants to the first available variant is returned. - + Note that this field returns an array of variants. In most cases, the number of variants in this array will be low. However, with a low number of options and a high number of values per option, the number of variants returned here can be high. In such cases, it recommended to avoid using this field. - + This list of variants can be used in combination with the `options` field to build a rich variant picker that includes variant availability or other variant information. """ adjacentVariants( """ The input fields used for a selected option. - + The input must not contain more than `250` values. """ selectedOptions: [SelectedOptionInput!], @@ -3427,65 +3441,65 @@ type Product implements HasMetafields & Node & OnlineStorePublishable & Trackabl """ An encoded string containing all option value combinations with a corresponding variant that is currently available for sale. - + Integers represent option and values: [0,1] represents option_value at array index 0 for the option at array index 0 - + `:`, `,`, ` ` and `-` are control characters. `:` indicates a new option. ex: 0:1 indicates value 0 for the option in position 1, value 1 for the option in position 2. `,` indicates the end of a repeated prefix, mulitple consecutive commas indicate the end of multiple repeated prefixes. ` ` indicates a gap in the sequence of option values. ex: 0 4 indicates option values in position 0 and 4 are present. `-` indicates a continuous range of option values. ex: 0 1-3 4 - + Decoding process: - + Example options: [Size, Color, Material] Example values: [[Small, Medium, Large], [Red, Blue], [Cotton, Wool]] Example encoded string: "0:0:0,1:0-1,,1:0:0-1,1:1,,2:0:1,1:0,," - + Step 1: Expand ranges into the numbers they represent: "0:0:0,1:0 1,,1:0:0 1,1:1,,2:0:1,1:0,," Step 2: Expand repeated prefixes: "0:0:0,0:1:0 1,1:0:0 1,1:1:1,2:0:1,2:1:0," Step 3: Expand shared prefixes so data is encoded as a string: "0:0:0,0:1:0,0:1:1,1:0:0,1:0:1,1:1:1,2:0:1,2:1:0," Step 4: Map to options + option values to determine existing variants: - + [Small, Red, Cotton] (0:0:0), [Small, Blue, Cotton] (0:1:0), [Small, Blue, Wool] (0:1:1), [Medium, Red, Cotton] (1:0:0), [Medium, Red, Wool] (1:0:1), [Medium, Blue, Wool] (1:1:1), [Large, Red, Wool] (2:0:1), [Large, Blue, Cotton] (2:1:0). - + """ encodedVariantAvailability: String """ An encoded string containing all option value combinations with a corresponding variant. - + Integers represent option and values: [0,1] represents option_value at array index 0 for the option at array index 0 - + `:`, `,`, ` ` and `-` are control characters. `:` indicates a new option. ex: 0:1 indicates value 0 for the option in position 1, value 1 for the option in position 2. `,` indicates the end of a repeated prefix, mulitple consecutive commas indicate the end of multiple repeated prefixes. ` ` indicates a gap in the sequence of option values. ex: 0 4 indicates option values in position 0 and 4 are present. `-` indicates a continuous range of option values. ex: 0 1-3 4 - + Decoding process: - + Example options: [Size, Color, Material] Example values: [[Small, Medium, Large], [Red, Blue], [Cotton, Wool]] Example encoded string: "0:0:0,1:0-1,,1:0:0-1,1:1,,2:0:1,1:0,," - + Step 1: Expand ranges into the numbers they represent: "0:0:0,1:0 1,,1:0:0 1,1:1,,2:0:1,1:0,," Step 2: Expand repeated prefixes: "0:0:0,0:1:0 1,1:0:0 1,1:1:1,2:0:1,2:1:0," Step 3: Expand shared prefixes so data is encoded as a string: "0:0:0,0:1:0,0:1:1,1:0:0,1:0:1,1:1:1,2:0:1,2:1:0," Step 4: Map to options + option values to determine existing variants: - + [Small, Red, Cotton] (0:0:0), [Small, Blue, Cotton] (0:1:0), [Small, Blue, Wool] (0:1:1), [Medium, Red, Cotton] (1:0:0), [Medium, Red, Wool] (1:0:1), [Medium, Blue, Wool] (1:1:1), [Large, Red, Wool] (2:0:1), [Large, Blue, Cotton] (2:1:0). - + """ encodedVariantExistence: String """ The featured image for the product. - + This field is functionally equivalent to `images(first: 1)`. """ featuredImage: Image @@ -3540,7 +3554,7 @@ type Product implements HasMetafields & Node & OnlineStorePublishable & Trackabl metafields( """ The list of metafields to retrieve by namespace and key. - + The input must not contain more than `250` values. """ identifiers: [HasMetafieldsIdentifier!]! @@ -3572,14 +3586,14 @@ type Product implements HasMetafields & Node & OnlineStorePublishable & Trackabl requiresSellingPlan: Boolean! """ Find an active product variant based on selected options, availability or the first variant. - + All arguments are optional. If no selected options are provided, the first available variant is returned. If no variants are available, the first variant is returned. """ selectedOrFirstAvailableVariant( """ The input fields used for a selected option. - + The input must not contain more than `250` values. """ selectedOptions: [SelectedOptionInput!], @@ -3640,7 +3654,7 @@ type Product implements HasMetafields & Node & OnlineStorePublishable & Trackabl variantBySelectedOptions( """ The input fields used for a selected option. - + The input must not contain more than `250` values. """ selectedOptions: [SelectedOptionInput!]!, @@ -3719,7 +3733,7 @@ type ProductOptionValue implements Node { """ The product variant that combines this option value with the lowest-position option values for all other options. - + This field will always return a variant, provided a variant including this option value exists. """ firstSelectableVariant: ProductVariant @@ -3807,7 +3821,7 @@ type ProductVariant implements HasMetafields & Node { metafields( """ The list of metafields to retrieve by namespace and key. - + The input must not contain more than `250` values. """ identifiers: [HasMetafieldsIdentifier!]! @@ -3988,7 +4002,7 @@ type QuantityRule { """ The value that specifies the quantity increment between minimum and maximum of the rule. Only quantities divisible by this value will be considered valid. - + The increment must be lower than or equal to the minimum and the maximum, and both minimum and maximum must be divisible by this value. """ @@ -4021,7 +4035,7 @@ type QueryRoot { ): Article """ Returns a paginated list of [`Article`](https://shopify.dev/docs/api/storefront/current/objects/Article) objects from the shop's [`Blog`](https://shopify.dev/docs/api/storefront/current/objects/Blog) objects. Each article is a blog post containing content, author information, tags, and optional images. - + Use the `query` argument to filter results by author, blog title, tags, or date fields. Sort results using the `sortKey` argument and reverse them with the `reverse` argument. """ articles( @@ -4097,7 +4111,7 @@ type QueryRoot { ): BlogConnection! """ Returns a [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart) by its ID. The cart contains the merchandise lines a buyer intends to purchase, along with estimated costs, applied discounts, gift cards, and delivery options. - + Use the [`checkoutUrl`](https://shopify.dev/docs/api/storefront/latest/queries/cart#returns-Cart.fields.checkoutUrl) field to redirect buyers to Shopify's web checkout when they're ready to complete their purchase. For more information, refer to [Manage a cart with the Storefront API](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/cart/manage). """ cart( @@ -4156,7 +4170,7 @@ type QueryRoot { ): CollectionConnection! """ Retrieves the [`Customer`](https://shopify.dev/docs/api/storefront/current/objects/Customer) associated with the provided access token. Use the [`customerAccessTokenCreate`](https://shopify.dev/docs/api/storefront/current/mutations/customerAccessTokenCreate) mutation to obtain an access token using legacy customer account authentication (email and password). - + The returned customer includes data such as contact information, [addresses](https://shopify.dev/docs/api/storefront/current/objects/MailingAddress), [orders](https://shopify.dev/docs/api/storefront/current/objects/Order), and [custom data](https://shopify.dev/docs/apps/build/custom-data) associated with the customer. """ customer( @@ -4165,15 +4179,15 @@ type QueryRoot { ): Customer """ Returns the shop's localization settings. Use this query to build [country and language selectors](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets) for your storefront. - + The [`country`](https://shopify.dev/docs/api/storefront/latest/queries/localization#returns-Localization.fields.country) and [`language`](https://shopify.dev/docs/api/storefront/latest/queries/localization#returns-Localization.fields.language) fields reflect the active localized experience. To change the context, use the [`@inContext`](https://shopify.dev/docs/api/storefront#directives) directive with your desired country or language code. """ localization: Localization! """ Returns shop locations that support in-store pickup. Use the `near` argument with [`GeoCoordinateInput`](https://shopify.dev/docs/api/storefront/current/input-objects/GeoCoordinateInput) to sort results by proximity to the customer's location. - + When sorting by distance, set `sortKey` to [`DISTANCE`](https://shopify.dev/docs/api/storefront/current/queries/locations#arguments-sortKey.enums.DISTANCE) and provide coordinates using the [`near`](https://shopify.dev/docs/api/storefront/current/queries/locations#arguments-near) argument. - + Learn more about [supporting local pickup on storefronts](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/products-collections/local-pickup). """ locations( @@ -4194,7 +4208,7 @@ type QueryRoot { ): LocationConnection! """ Retrieves a [`Menu`](https://shopify.dev/docs/api/storefront/current/objects/Menu) by its handle. Menus are [hierarchical navigation structures](https://help.shopify.com/manual/online-store/menus-and-links) that merchants configure for their storefront, such as header and footer navigation. - + Each menu contains [`MenuItem`](https://shopify.dev/docs/api/storefront/current/objects/MenuItem) objects that can nest up to three levels deep, with each item linking to [collections](https://shopify.dev/docs/api/storefront/current/objects/Collection), [products](https://shopify.dev/docs/api/storefront/current/objects/Product), [pages](https://shopify.dev/docs/api/storefront/current/objects/Page), [blogs](https://shopify.dev/docs/api/storefront/current/objects/Blog), or external URLs. """ menu( @@ -4203,7 +4217,7 @@ type QueryRoot { ): Menu """ Retrieves a single [`Metaobject`](https://shopify.dev/docs/api/storefront/current/objects/Metaobject) by either its [`global ID`](https://shopify.dev/docs/api/storefront/current/queries/metaobject#arguments-id) or its [`handle`](https://shopify.dev/docs/api/storefront/current/queries/metaobject#arguments-handle). - + > Note: > When using the handle, you must also provide the metaobject type because handles are only unique within a type. """ @@ -4215,7 +4229,7 @@ type QueryRoot { ): Metaobject """ Returns a paginated list of [`Metaobject`](https://shopify.dev/docs/api/storefront/current/objects/Metaobject) entries for a specific type. Metaobjects are [custom data structures](https://shopify.dev/docs/apps/build/metaobjects) that extend Shopify's data model with merchant-defined or app-defined content like size charts, product highlights, or custom sections. - + The required `type` argument specifies which metaobject type to retrieve. You can sort results by `id` or `updated_at` using the `sortKey` argument. """ metaobjects( @@ -4238,7 +4252,7 @@ type QueryRoot { ): MetaobjectConnection! """ Retrieves any object that implements the [`Node`](https://shopify.dev/docs/api/storefront/current/interfaces/Node) interface by its globally-unique ID. Use inline fragments to access type-specific fields on the returned object. - + This query follows the [Relay specification](https://relay.dev/graphql/objectidentification.htm#sec-Node-Interface) and is commonly used for refetching objects when you have their ID but need updated data. """ node( @@ -4247,20 +4261,20 @@ type QueryRoot { ): Node """ Retrieves multiple objects by their global IDs in a single request. Any object that implements the [`Node`](https://shopify.dev/docs/api/storefront/current/interfaces/Node) interface can be fetched, including [products](https://shopify.dev/docs/api/storefront/current/objects/Product), [collections](https://shopify.dev/docs/api/storefront/current/objects/Collection), and [pages](https://shopify.dev/docs/api/storefront/current/objects/Page). - + Use inline fragments to access type-specific fields on the returned objects. The input accepts up to 250 IDs. """ nodes( """ The IDs of the Nodes to return. - + The input must not contain more than `250` values. """ ids: [ID!]! ): [Node]! """ Retrieves a [`Page`](https://shopify.dev/docs/api/storefront/current/objects/Page) by its [`handle`](https://shopify.dev/docs/api/storefront/current/queries/page#arguments-handle) or [`id`](https://shopify.dev/docs/api/storefront/current/queries/page#arguments-id). Pages are static content pages that merchants display outside their product catalog, such as "About Us," "Contact," or policy pages. - + The returned page includes information such as the [HTML body content](https://shopify.dev/docs/api/storefront/current/queries/page#returns-Page.fields.body), [`SEO`](https://shopify.dev/docs/api/storefront/current/objects/SEO) information, and any associated [`Metafield`](https://shopify.dev/docs/api/storefront/current/objects/Metafield) objects. """ page( @@ -4308,7 +4322,7 @@ type QueryRoot { paymentSettings: PaymentSettings! """ Returns suggested results as customers type in a search field, enabling type-ahead search experiences. The query matches [products](https://shopify.dev/docs/api/storefront/current/objects/Product), [collections](https://shopify.dev/docs/api/storefront/current/objects/Collection), [pages](https://shopify.dev/docs/api/storefront/current/objects/Page), and [articles](https://shopify.dev/docs/api/storefront/current/objects/Article) based on partial search terms, and also provides [search query suggestions](https://shopify.dev/docs/api/storefront/current/objects/SearchQuerySuggestion) to help customers refine their search. - + You can filter results by resource type and limit the quantity. The [`limitScope`](https://shopify.dev/docs/api/storefront/current/queries/predictiveSearch#arguments-limitScope) argument controls whether limits apply across all result types or per type. Use [`unavailableProducts`](https://shopify.dev/docs/api/storefront/current/queries/predictiveSearch#arguments-unavailableProducts) to control how out-of-stock products appear in results. """ predictiveSearch( @@ -4320,13 +4334,13 @@ type QueryRoot { query: String!, """ Specifies the list of resource fields to use for search. The default fields searched on are TITLE, PRODUCT_TYPE, VARIANT_TITLE, and VENDOR. For the best search experience, you should search on the default field set. - + The input must not contain more than `250` values. """ searchableFields: [SearchableField!], """ The types of resources to search for. - + The input must not contain more than `250` values. """ types: [PredictiveSearchType!], @@ -4355,7 +4369,7 @@ type QueryRoot { ): Product @deprecated(reason: "Use `product` instead.") """ Returns recommended products for a given product, identified by either ID or handle. Use the [`intent`](https://shopify.dev/docs/api/storefront/current/enums/ProductRecommendationIntent) argument to control the recommendation strategy. - + Shopify [auto-generates related recommendations](https://shopify.dev/docs/storefronts/themes/product-merchandising/recommendations) based on sales data, product descriptions, and collection relationships. Complementary recommendations require [manual configuration](https://help.shopify.com/manual/online-store/storefront-search/search-and-discovery-recommendations) through the Shopify Search & Discovery app. Returns up to ten [`Product`](https://shopify.dev/docs/api/storefront/current/objects/Product) objects. """ productRecommendations( @@ -4382,7 +4396,7 @@ type QueryRoot { ): StringConnection! """ Returns a paginated list of the shop's [products](https://shopify.dev/docs/api/storefront/current/objects/Product). - + For full-text storefront search, use the [`search`](https://shopify.dev/docs/api/storefront/current/queries/search) query instead. """ products( @@ -4421,7 +4435,7 @@ type QueryRoot { publicApiVersions: [ApiVersion!]! """ Returns paginated search results for [`Product`](https://shopify.dev/docs/api/storefront/current/objects/Product), [`Page`](https://shopify.dev/docs/api/storefront/current/objects/Page), and [`Article`](https://shopify.dev/docs/api/storefront/current/objects/Article) resources based on a query string. Results are sorted by relevance by default. - + The response includes the total result count and available product filters for building [faceted search interfaces](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/products-collections/filter-products). Use the [`prefix`](https://shopify.dev/docs/api/storefront/current/enums/SearchPrefixQueryType) argument to enable partial word matching on the last search term, allowing queries like "winter snow" to match "snowboard" or "snowshoe". """ search( @@ -4443,13 +4457,13 @@ type QueryRoot { prefix: SearchPrefixQueryType, """ Returns a subset of products matching all product filters. - + The input must not contain more than `250` values. """ productFilters: [ProductFilter!], """ The types of resources to search for. - + The input must not contain more than `250` values. """ types: [SearchType!], @@ -4458,13 +4472,13 @@ type QueryRoot { ): SearchResultItemConnection! """ Returns the [`Shop`](https://shopify.dev/docs/api/storefront/current/objects/Shop) associated with the storefront access token. The `Shop` object provides general store information such as the shop name, description, and primary domain. - + Use this query to access data like store policies, [`PaymentSettings`](https://shopify.dev/docs/api/storefront/current/objects/PaymentSettings), [`Brand`](https://shopify.dev/docs/api/storefront/current/objects/Brand) configuration, and shipping destinations. It also exposes [`ShopPayInstallmentsPricing`](https://shopify.dev/docs/api/storefront/current/objects/ShopPayInstallmentsPricing) and [`SocialLoginProvider`](https://shopify.dev/docs/api/storefront/current/objects/SocialLoginProvider) options for customer accounts. """ shop: Shop! """ Returns sitemap data for a specific resource type, enabling headless storefronts to generate XML sitemaps for search engine optimization. The query provides a page count and paginated access to resources like [`Product`](https://shopify.dev/docs/api/storefront/current/objects/Product), [`Collection`](https://shopify.dev/docs/api/storefront/current/objects/Collection), [`Page`](https://shopify.dev/docs/api/storefront/current/objects/Page), and [`Blog`](https://shopify.dev/docs/api/storefront/current/objects/Blog) objects. - + When paginating through resources, the number of items per page varies from 0 to 250, and empty pages can occur without indicating the end of results. Always check [`hasNextPage`](https://shopify.dev/docs/api/storefront/current/objects/PaginatedSitemapResources#field-PaginatedSitemapResources.fields.hasNextPage) to determine if more pages are available. """ sitemap( @@ -4592,7 +4606,7 @@ type SellingPlan implements HasMetafields { metafields( """ The list of metafields to retrieve by namespace and key. - + The input must not contain more than `250` values. """ identifiers: [HasMetafieldsIdentifier!]! @@ -4796,6 +4810,8 @@ Access store policies such as privacy, refund, shipping, and terms of service vi type Shop implements HasMetafields & Node { "The shop's branding configuration." brand: Brand + "The shop's contact information." + contactInformation: ShopPolicy "Translations for customer accounts." customerAccountTranslations: [Translation!] "The URL for the customer account (only present if shop has a customer account vanity domain)." @@ -4804,6 +4820,8 @@ type Shop implements HasMetafields & Node { description: String "A globally-unique ID." id: ID! + "The shop's legal notice." + legalNotice: ShopPolicy "A [custom field](https://shopify.dev/docs/apps/build/custom-data), including its `namespace` and `key`, that's associated with a Shopify resource for the purposes of adding and storing additional information." metafield( "The container the metafield belongs to. If omitted, the app-reserved namespace will be used." @@ -4815,7 +4833,7 @@ type Shop implements HasMetafields & Node { metafields( """ The list of metafields to retrieve by namespace and key. - + The input must not contain more than `250` values. """ identifiers: [HasMetafieldsIdentifier!]! @@ -4842,6 +4860,8 @@ type Shop implements HasMetafields & Node { socialLoginProviders: [SocialLoginProvider!]! "The shop’s subscription policy." subscriptionPolicy: ShopPolicyWithDefault + "The shop's terms of sale." + termsOfSale: ShopPolicy "The shop’s terms of service." termsOfService: ShopPolicy } @@ -5091,7 +5111,7 @@ type Sitemap { pagesCount: Count """ A list of sitemap's resources for a given type. - + Important Notes: - The number of items per page varies from 0 to 250. - Empty pages (0 items) may occur and do not necessarily indicate the end of results. @@ -5144,7 +5164,7 @@ type SocialLoginProvider { """ Inventory information for a product variant at a physical store location that offers local pickup. Includes stock availability, quantity on hand, and estimated pickup readiness time. -Local pickup must be [enabled in the store's shipping settings](https://help.shopify.com/manual/shipping/setting-up-and-managing-your-shipping/local-methods/local-pickup) for this data to be returned. Results can be sorted by proximity to a customer's location using the `near` argument on the [`ProductVariant.storeAvailability`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant#field-ProductVariant.fields.storeAvailability) connection. +Local pickup must be [enabled in the store's shipping settings](https://help.shopify.com/manual/shipping/setting-up-and-managing-your-shipping/local-methods/local-pickup) for this data to be returned. Results can be sorted by proximity to a customer's location using the `near` argument on the [`ProductVariant.storeAvailability`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant#field-ProductVariant.fields.storeAvailability) connection. Learn more about [supporting local pickup on storefronts](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/products-collections/local-pickup). """ @@ -5393,7 +5413,7 @@ Tracks how a discount distributes across [cart lines](https://shopify.dev/docs/a """ interface CartDiscountAllocation { "The discount that have been applied on the cart line." - discountApplication: CartDiscountApplication! + discountApplication: CartDiscountApplication! @deprecated(reason: "Use `sourceDiscountApplication` instead.") "The discounted amount that has been applied to the cart line." discountedAmount: MoneyV2! "The type of line that the discount is applicable towards." @@ -5438,7 +5458,7 @@ interface HasMetafields { metafields( """ The list of metafields to retrieve by namespace and key. - + The input must not contain more than `250` values. """ identifiers: [HasMetafieldsIdentifier!]! @@ -5612,6 +5632,8 @@ enum CartErrorCode { INVALID_MERCHANDISE_LINE "Item cannot be purchased as configured." MERCHANDISE_NOT_APPLICABLE + "An error occurred while processing cart transformations." + MERCHANDISE_LINE_TRANSFORMERS_RUN_ERROR "Missing discount code." MISSING_DISCOUNT_CODE "Missing note." @@ -6778,7 +6800,11 @@ enum ImageContentType { "A WEBP image." WEBP } -"Language codes supported by Shopify." +""" +Supported languages for retrieving translated storefront content. Pass a language code to the [`@inContext`](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/in-context) directive to return product titles, descriptions, and other translatable fields in that language. + +The [`Localization`](https://shopify.dev/docs/api/storefront/current/objects/Localization) object provides the list of available languages for the active country, and each [`Country`](https://shopify.dev/docs/api/storefront/current/objects/Country) in [`availableCountries`](https://shopify.dev/docs/api/storefront/current/objects/Localization#field-Localization.fields.availableCountries) includes its own available languages. +""" enum LanguageCode { "Afrikaans." AF @@ -7199,7 +7225,7 @@ enum OrderFinancialStatus { REFUNDED } """ -The aggregated fulfillment status of an [`Order`](https://shopify.dev/docs/api/storefront/current/objects/Order), summarizing the state of all line items. Used for display purposes. +The aggregated fulfillment status of an [`Order`](https://shopify.dev/docs/api/storefront/current/objects/Order), summarizing the state of all line items. Used for display purposes. Statuses range from unfulfilled to fully fulfilled, with intermediate states such as in progress and on hold. @@ -7351,7 +7377,7 @@ enum ProductRecommendationIntent { COMPLEMENTARY } """ -Sorting options for the [`products`](https://shopify.dev/docs/api/storefront/current/queries/products) query. Supports sorting products by criteria such as best-selling and price, and by product attributes such as type, and vendor. +Sorting options for the [`products`](https://shopify.dev/docs/api/storefront/current/queries/products) query. Supports sorting products by criteria such as best-selling and price, and by product attributes such as type, and vendor. > Note: Use the [`RELEVANCE`](https://shopify.dev/docs/api/storefront/current/enums/ProductSortKeys#enums-RELEVANCE) key only when a search query is specified. """ @@ -7810,7 +7836,7 @@ input CartDeliveryAddressInput { lastName: String """ A unique phone number for the customer. - + Formatted using E.164 standard. For example, _+16135551111_. """ phone: String @@ -7827,7 +7853,7 @@ input CartDeliveryCoordinatesPreferenceInput { longitude: Float! """ The two-letter code for the country of the preferred location. - + For example, US. """ countryCode: CountryCode! @@ -7836,7 +7862,7 @@ input CartDeliveryCoordinatesPreferenceInput { input CartDeliveryInput { """ Selectable addresses to present to the buyer on the cart. - + The input must not contain more than `250` values. """ addresses: [CartSelectableAddressInput!] @@ -7845,14 +7871,14 @@ input CartDeliveryInput { input CartDeliveryPreferenceInput { """ The preferred delivery methods such as shipping, local pickup or through pickup points. - + The input must not contain more than `250` values. """ deliveryMethod: [PreferenceDeliveryMethodType!] """ The pickup handle prefills checkout fields with the location for either local pickup or pickup points delivery methods. It accepts both location ID for local pickup and external IDs for pickup points. - + The input must not contain more than `250` values. """ pickupHandle: [String!] @@ -7887,25 +7913,25 @@ Accepts merchandise lines, discount codes, gift card codes, and a note. You can input CartInput { """ An array of key-value pairs that contains additional information about the cart. - + The input must not contain more than `250` values. """ attributes: [AttributeInput!] """ A list of merchandise lines to add to the cart. - + The input must not contain more than `250` values. """ lines: [CartLineInput!] """ The case-insensitive discount codes that the customer added at checkout. - + The input must not contain more than `250` values. """ discountCodes: [String!] """ The case-insensitive gift card codes. - + The input must not contain more than `250` values. """ giftCardCodes: [String!] @@ -7923,7 +7949,7 @@ input CartInput { delivery: CartDeliveryInput """ The metafields to associate with this cart. - + The input must not contain more than `250` values. """ metafields: [CartInputMetafieldInput!] @@ -7954,7 +7980,7 @@ Used by the [`cartCreate`](https://shopify.dev/docs/api/storefront/current/mutat input CartLineInput { """ An array of key-value pairs that contains additional information about the merchandise line. - + The input must not contain more than `250` values. """ attributes: [AttributeInput!] @@ -7988,7 +8014,7 @@ input CartLineUpdateInput { merchandiseId: ID """ An array of key-value pairs that contains additional information about the merchandise line. - + The input must not contain more than `250` values. """ attributes: [AttributeInput!] @@ -8009,7 +8035,10 @@ input CartMetafieldDeleteInput { input CartMetafieldsSetInput { "The ID of the cart resource." ownerId: ID! - "The key name of the cart metafield." + """ + The key name of the cart metafield. This can either be a composite key (`namespace.key`) or a simple key + that relies on the default app-reserved namespace. + """ key: String! """ The data to store in the cart metafield. The data is always stored as a string, regardless of the metafield's type. @@ -8053,7 +8082,7 @@ input CartPreferencesInput { """ Wallet preferences are used to populate relevant payment fields in the checkout flow. Accepted value: `["shop_pay"]`. - + The input must not contain more than `250` values. """ wallet: [String!] @@ -8144,7 +8173,7 @@ input CustomerCreateInput { email: String! """ A unique phone number for the customer. - + Formatted using E.164 standard. For example, _+16135551111_. """ phone: String @@ -8175,7 +8204,7 @@ input CustomerUpdateInput { email: String """ A unique phone number for the customer. - + Formatted using E.164 standard. For example, _+16135551111_. To remove the phone number, specify `null`. """ phone: String @@ -8285,7 +8314,7 @@ input MailingAddressInput { lastName: String """ A unique phone number for the customer. - + Formatted using E.164 standard. For example, _+16135551111_. """ phone: String @@ -8401,19 +8430,19 @@ input ShopPayPaymentRequestImageInput { input ShopPayPaymentRequestInput { """ The discount codes for the payment request. - + The input must not contain more than `250` values. """ discountCodes: [String!] """ The line items for the payment request. - + The input must not contain more than `250` values. """ lineItems: [ShopPayPaymentRequestLineItemInput!] """ The shipping lines for the payment request. - + The input must not contain more than `250` values. """ shippingLines: [ShopPayPaymentRequestShippingLineInput!] @@ -8423,7 +8452,7 @@ input ShopPayPaymentRequestInput { subtotal: MoneyInput! """ The discounts for the payment request order. - + The input must not contain more than `250` values. """ discounts: [ShopPayPaymentRequestDiscountInput!] @@ -8433,7 +8462,7 @@ input ShopPayPaymentRequestInput { totalTax: MoneyInput """ The delivery methods for the payment request. - + The input must not contain more than `250` values. """ deliveryMethods: [ShopPayPaymentRequestDeliveryMethodInput!] @@ -8464,7 +8493,7 @@ input ShopPayPaymentRequestLineItemInput { finalLinePrice: MoneyInput """ The line discounts for the line item. - + The input must not contain more than `250` values. """ lineDiscounts: [ShopPayPaymentRequestDiscountInput!] @@ -8474,7 +8503,7 @@ input ShopPayPaymentRequestLineItemInput { finalItemPrice: MoneyInput """ The item discounts for the line item. - + The input must not contain more than `250` values. """ itemDiscounts: [ShopPayPaymentRequestDiscountInput!] @@ -8492,7 +8521,7 @@ input ShopPayPaymentRequestShippingLineInput { input ShopPayPaymentRequestTotalShippingPriceInput { """ The discounts for the shipping total. - + The input must not contain more than `250` values. """ discounts: [ShopPayPaymentRequestDiscountInput!] diff --git a/platforms/android/scripts/apollo_download_schema b/platforms/android/scripts/apollo_download_schema index 9a545d85..d8ab6283 100755 --- a/platforms/android/scripts/apollo_download_schema +++ b/platforms/android/scripts/apollo_download_schema @@ -24,7 +24,7 @@ npx -y dotenv-cli -e .env -- sh -c ' fi if [ -z "$VERSION" ]; then echo "❌ API_VERSION is not set. Check your .env file." - echo " Add API_VERSION=2025-07 to your .env" + echo " Add API_VERSION=2026-04 to your .env" exit 1 fi diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Fragments/CartDeliveryGroupFragment.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Fragments/CartDeliveryGroupFragment.graphql.swift index 6b788629..dc69b5aa 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Fragments/CartDeliveryGroupFragment.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Fragments/CartDeliveryGroupFragment.graphql.swift @@ -5,332 +5,195 @@ @_spi(Execution) @_spi(Unsafe) import ApolloAPI extension Storefront { - struct CartDeliveryGroupFragment: Storefront.SelectionSet, Fragment { - static var fragmentDefinition: StaticString { - #"fragment CartDeliveryGroupFragment on CartDeliveryGroup { __typename id groupType deliveryAddress { __typename address1 address2 city countryCodeV2 firstName lastName phone province zip } deliveryOptions { __typename handle title code deliveryMethodType description estimatedCost { __typename amount currencyCode } } selectedDeliveryOption { __typename description title handle estimatedCost { __typename amount currencyCode } } }"# - } - - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartDeliveryGroup - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("id", Storefront.ID.self), - .field("groupType", GraphQLEnum.self), - .field("deliveryAddress", DeliveryAddress.self), - .field("deliveryOptions", [DeliveryOption].self), - .field("selectedDeliveryOption", SelectedDeliveryOption?.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartDeliveryGroupFragment.self - ] - } - - /// The ID for the delivery group. - var id: Storefront.ID { - __data["id"] - } - - /// The type of merchandise in the delivery group. - var groupType: GraphQLEnum { - __data["groupType"] - } - - /// The destination address for the delivery group. - var deliveryAddress: DeliveryAddress { - __data["deliveryAddress"] - } - - /// The delivery options available for the delivery group. - var deliveryOptions: [DeliveryOption] { - __data["deliveryOptions"] - } - - /// The selected delivery option for the delivery group. - var selectedDeliveryOption: SelectedDeliveryOption? { - __data["selectedDeliveryOption"] - } - - /// DeliveryAddress - /// - /// Parent Type: `MailingAddress` - struct DeliveryAddress: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.MailingAddress - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("address1", String?.self), - .field("address2", String?.self), - .field("city", String?.self), - .field("countryCodeV2", GraphQLEnum?.self), - .field("firstName", String?.self), - .field("lastName", String?.self), - .field("phone", String?.self), - .field("province", String?.self), - .field("zip", String?.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartDeliveryGroupFragment.DeliveryAddress.self - ] - } - - /// The first line of the address. Typically the street address or PO Box number. - var address1: String? { - __data["address1"] - } - - /// The second line of the address. Typically the number of the apartment, suite, or unit. - var address2: String? { - __data["address2"] - } - - /// The name of the city, district, village, or town. - var city: String? { - __data["city"] - } - - /// The two-letter code for the country of the address. - /// - /// For example, US. - var countryCodeV2: GraphQLEnum? { - __data["countryCodeV2"] - } - - /// The first name of the customer. - var firstName: String? { - __data["firstName"] - } - - /// The last name of the customer. - var lastName: String? { - __data["lastName"] - } - - /// A unique phone number for the customer. - /// - /// Formatted using E.164 standard. For example, _+16135551111_. - var phone: String? { - __data["phone"] - } - - /// The region of the address, such as the province, state, or district. - var province: String? { - __data["province"] - } - - /// The zip or postal code of the address. - var zip: String? { - __data["zip"] - } - } - - /// DeliveryOption - /// - /// Parent Type: `CartDeliveryOption` - struct DeliveryOption: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartDeliveryOption - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("handle", String.self), - .field("title", String?.self), - .field("code", String?.self), - .field("deliveryMethodType", GraphQLEnum.self), - .field("description", String?.self), - .field("estimatedCost", EstimatedCost.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartDeliveryGroupFragment.DeliveryOption.self - ] - } - - /// The unique identifier of the delivery option. - var handle: String { - __data["handle"] - } - - /// The title of the delivery option. - var title: String? { - __data["title"] - } - - /// The code of the delivery option. - var code: String? { - __data["code"] - } - - /// The method for the delivery option. - var deliveryMethodType: GraphQLEnum { - __data["deliveryMethodType"] - } - - /// The description of the delivery option. - var description: String? { - __data["description"] - } - - /// The estimated cost for the delivery option. - var estimatedCost: EstimatedCost { - __data["estimatedCost"] - } - - /// DeliveryOption.EstimatedCost - /// - /// Parent Type: `MoneyV2` - struct EstimatedCost: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.MoneyV2 - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("amount", Storefront.Decimal.self), - .field("currencyCode", GraphQLEnum.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartDeliveryGroupFragment.DeliveryOption.EstimatedCost.self - ] - } - - /// Decimal money amount. - var amount: Storefront.Decimal { - __data["amount"] - } - - /// Currency of the money. - var currencyCode: GraphQLEnum { - __data["currencyCode"] - } - } - } - - /// SelectedDeliveryOption - /// - /// Parent Type: `CartDeliveryOption` - struct SelectedDeliveryOption: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartDeliveryOption - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("description", String?.self), - .field("title", String?.self), - .field("handle", String.self), - .field("estimatedCost", EstimatedCost.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartDeliveryGroupFragment.SelectedDeliveryOption.self - ] - } - - /// The description of the delivery option. - var description: String? { - __data["description"] - } - - /// The title of the delivery option. - var title: String? { - __data["title"] - } - - /// The unique identifier of the delivery option. - var handle: String { - __data["handle"] - } - - /// The estimated cost for the delivery option. - var estimatedCost: EstimatedCost { - __data["estimatedCost"] - } - - /// SelectedDeliveryOption.EstimatedCost - /// - /// Parent Type: `MoneyV2` - struct EstimatedCost: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.MoneyV2 - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("amount", Storefront.Decimal.self), - .field("currencyCode", GraphQLEnum.self) - ] - } + nonisolated struct CartDeliveryGroupFragment: Storefront.SelectionSet, Fragment { + static var fragmentDefinition: StaticString { + #"fragment CartDeliveryGroupFragment on CartDeliveryGroup { __typename id groupType deliveryAddress { __typename address1 address2 city countryCodeV2 firstName lastName phone province zip } deliveryOptions { __typename handle title code deliveryMethodType description estimatedCost { __typename amount currencyCode } } selectedDeliveryOption { __typename description title handle estimatedCost { __typename amount currencyCode } } }"# + } - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartDeliveryGroupFragment.SelectedDeliveryOption.EstimatedCost.self - ] - } + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartDeliveryGroup } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("id", Storefront.ID.self), + .field("groupType", GraphQLEnum.self), + .field("deliveryAddress", DeliveryAddress.self), + .field("deliveryOptions", [DeliveryOption].self), + .field("selectedDeliveryOption", SelectedDeliveryOption?.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartDeliveryGroupFragment.self + ] } + + /// The ID for the delivery group. + var id: Storefront.ID { __data["id"] } + /// The type of merchandise in the delivery group. + var groupType: GraphQLEnum { __data["groupType"] } + /// The destination address for the delivery group. + var deliveryAddress: DeliveryAddress { __data["deliveryAddress"] } + /// The delivery options available for the delivery group. + var deliveryOptions: [DeliveryOption] { __data["deliveryOptions"] } + /// The selected delivery option for the delivery group. + var selectedDeliveryOption: SelectedDeliveryOption? { __data["selectedDeliveryOption"] } + + /// DeliveryAddress + /// + /// Parent Type: `MailingAddress` + nonisolated struct DeliveryAddress: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.MailingAddress } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("address1", String?.self), + .field("address2", String?.self), + .field("city", String?.self), + .field("countryCodeV2", GraphQLEnum?.self), + .field("firstName", String?.self), + .field("lastName", String?.self), + .field("phone", String?.self), + .field("province", String?.self), + .field("zip", String?.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartDeliveryGroupFragment.DeliveryAddress.self + ] } + + /// The first line of the address. Typically the street address or PO Box number. + var address1: String? { __data["address1"] } + /// The second line of the address. Typically the number of the apartment, suite, or unit. + var address2: String? { __data["address2"] } + /// The name of the city, district, village, or town. + var city: String? { __data["city"] } + /// The two-letter code for the country of the address. + /// + /// For example, US. + var countryCodeV2: GraphQLEnum? { __data["countryCodeV2"] } + /// The first name of the customer. + var firstName: String? { __data["firstName"] } + /// The last name of the customer. + var lastName: String? { __data["lastName"] } + /// A unique phone number for the customer. + /// + /// Formatted using E.164 standard. For example, _+16135551111_. + var phone: String? { __data["phone"] } + /// The region of the address, such as the province, state, or district. + var province: String? { __data["province"] } + /// The zip or postal code of the address. + var zip: String? { __data["zip"] } + } - /// Decimal money amount. - var amount: Storefront.Decimal { - __data["amount"] - } + /// DeliveryOption + /// + /// Parent Type: `CartDeliveryOption` + nonisolated struct DeliveryOption: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartDeliveryOption } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("handle", String.self), + .field("title", String?.self), + .field("code", String?.self), + .field("deliveryMethodType", GraphQLEnum.self), + .field("description", String?.self), + .field("estimatedCost", EstimatedCost.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartDeliveryGroupFragment.DeliveryOption.self + ] } + + /// The unique identifier of the delivery option. + var handle: String { __data["handle"] } + /// The title of the delivery option. + var title: String? { __data["title"] } + /// The code of the delivery option. + var code: String? { __data["code"] } + /// The method for the delivery option. + var deliveryMethodType: GraphQLEnum { __data["deliveryMethodType"] } + /// The description of the delivery option. + var description: String? { __data["description"] } + /// The estimated cost for the delivery option. + var estimatedCost: EstimatedCost { __data["estimatedCost"] } + + /// DeliveryOption.EstimatedCost + /// + /// Parent Type: `MoneyV2` + nonisolated struct EstimatedCost: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.MoneyV2 } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("amount", Storefront.Decimal.self), + .field("currencyCode", GraphQLEnum.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartDeliveryGroupFragment.DeliveryOption.EstimatedCost.self + ] } + + /// Decimal money amount. + var amount: Storefront.Decimal { __data["amount"] } + /// Currency of the money. + var currencyCode: GraphQLEnum { __data["currencyCode"] } + } + } - /// Currency of the money. - var currencyCode: GraphQLEnum { - __data["currencyCode"] - } - } - } + /// SelectedDeliveryOption + /// + /// Parent Type: `CartDeliveryOption` + nonisolated struct SelectedDeliveryOption: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartDeliveryOption } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("description", String?.self), + .field("title", String?.self), + .field("handle", String.self), + .field("estimatedCost", EstimatedCost.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartDeliveryGroupFragment.SelectedDeliveryOption.self + ] } + + /// The description of the delivery option. + var description: String? { __data["description"] } + /// The title of the delivery option. + var title: String? { __data["title"] } + /// The unique identifier of the delivery option. + var handle: String { __data["handle"] } + /// The estimated cost for the delivery option. + var estimatedCost: EstimatedCost { __data["estimatedCost"] } + + /// SelectedDeliveryOption.EstimatedCost + /// + /// Parent Type: `MoneyV2` + nonisolated struct EstimatedCost: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.MoneyV2 } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("amount", Storefront.Decimal.self), + .field("currencyCode", GraphQLEnum.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartDeliveryGroupFragment.SelectedDeliveryOption.EstimatedCost.self + ] } + + /// Decimal money amount. + var amount: Storefront.Decimal { __data["amount"] } + /// Currency of the money. + var currencyCode: GraphQLEnum { __data["currencyCode"] } + } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Fragments/CartFragment.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Fragments/CartFragment.graphql.swift index f6d1c178..bfe527ba 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Fragments/CartFragment.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Fragments/CartFragment.graphql.swift @@ -5,511 +5,309 @@ @_spi(Execution) @_spi(Unsafe) import ApolloAPI extension Storefront { - struct CartFragment: Storefront.SelectionSet, Fragment { - static var fragmentDefinition: StaticString { - #"fragment CartFragment on Cart { __typename id checkoutUrl totalQuantity buyerIdentity { __typename email phone customer { __typename email phone } } deliveryGroups(first: 10) { __typename nodes { __typename ...CartDeliveryGroupFragment } } lines(first: 250) { __typename nodes { __typename ...CartLineFragment } } cost { __typename totalAmount { __typename amount currencyCode } subtotalAmount { __typename amount currencyCode } totalTaxAmount { __typename amount currencyCode } } }"# - } + nonisolated struct CartFragment: Storefront.SelectionSet, Fragment { + static var fragmentDefinition: StaticString { + #"fragment CartFragment on Cart { __typename id checkoutUrl totalQuantity buyerIdentity { __typename email phone customer { __typename email phone } } deliveryGroups(first: 10) { __typename nodes { __typename ...CartDeliveryGroupFragment } } lines(first: 250) { __typename nodes { __typename ...CartLineFragment } } cost { __typename totalAmount { __typename amount currencyCode } subtotalAmount { __typename amount currencyCode } totalTaxAmount { __typename amount currencyCode } } }"# + } + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Cart } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("id", Storefront.ID.self), + .field("checkoutUrl", Storefront.URL.self), + .field("totalQuantity", Int.self), + .field("buyerIdentity", BuyerIdentity.self), + .field("deliveryGroups", DeliveryGroups.self, arguments: ["first": 10]), + .field("lines", Lines.self, arguments: ["first": 250]), + .field("cost", Cost.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartFragment.self + ] } + + /// A globally-unique ID. + var id: Storefront.ID { __data["id"] } + /// The URL of the checkout for the cart. + var checkoutUrl: Storefront.URL { __data["checkoutUrl"] } + /// The total number of items in the cart. + var totalQuantity: Int { __data["totalQuantity"] } + /// Information about the buyer that's interacting with the cart. + var buyerIdentity: BuyerIdentity { __data["buyerIdentity"] } + /// The delivery groups available for the cart, based on the buyer identity default + /// delivery address preference or the default address of the logged-in customer. + var deliveryGroups: DeliveryGroups { __data["deliveryGroups"] } + /// A list of lines containing information about the items the customer intends to purchase. + var lines: Lines { __data["lines"] } + /// The estimated costs that the buyer will pay at checkout. The costs are subject to change and changes will be reflected at checkout. The `cost` field uses the `buyerIdentity` field to determine [international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing). + var cost: Cost { __data["cost"] } + + /// BuyerIdentity + /// + /// Parent Type: `CartBuyerIdentity` + nonisolated struct BuyerIdentity: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartBuyerIdentity } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("email", String?.self), + .field("phone", String?.self), + .field("customer", Customer?.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartFragment.BuyerIdentity.self + ] } + + /// The email address of the buyer that's interacting with the cart. + var email: String? { __data["email"] } + /// The phone number of the buyer that's interacting with the cart. + var phone: String? { __data["phone"] } + /// The customer account associated with the cart. + var customer: Customer? { __data["customer"] } + + /// BuyerIdentity.Customer + /// + /// Parent Type: `Customer` + nonisolated struct Customer: Storefront.SelectionSet { let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Cart - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("id", Storefront.ID.self), - .field("checkoutUrl", Storefront.URL.self), - .field("totalQuantity", Int.self), - .field("buyerIdentity", BuyerIdentity.self), - .field("deliveryGroups", DeliveryGroups.self, arguments: ["first": 10]), - .field("lines", Lines.self, arguments: ["first": 250]), - .field("cost", Cost.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartFragment.self - ] - } - - /// A globally-unique ID. - var id: Storefront.ID { - __data["id"] - } + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Customer } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("email", String?.self), + .field("phone", String?.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartFragment.BuyerIdentity.Customer.self + ] } + + /// The customer’s email address. + var email: String? { __data["email"] } + /// The customer’s phone number. + var phone: String? { __data["phone"] } + } + } - /// The URL of the checkout for the cart. - var checkoutUrl: Storefront.URL { - __data["checkoutUrl"] + /// DeliveryGroups + /// + /// Parent Type: `CartDeliveryGroupConnection` + nonisolated struct DeliveryGroups: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartDeliveryGroupConnection } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("nodes", [Node].self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartFragment.DeliveryGroups.self + ] } + + /// A list of the nodes contained in CartDeliveryGroupEdge. + var nodes: [Node] { __data["nodes"] } + + /// DeliveryGroups.Node + /// + /// Parent Type: `CartDeliveryGroup` + nonisolated struct Node: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartDeliveryGroup } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .fragment(CartDeliveryGroupFragment.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartFragment.DeliveryGroups.Node.self, + CartDeliveryGroupFragment.self + ] } + + /// The ID for the delivery group. + var id: Storefront.ID { __data["id"] } + /// The type of merchandise in the delivery group. + var groupType: GraphQLEnum { __data["groupType"] } + /// The destination address for the delivery group. + var deliveryAddress: DeliveryAddress { __data["deliveryAddress"] } + /// The delivery options available for the delivery group. + var deliveryOptions: [DeliveryOption] { __data["deliveryOptions"] } + /// The selected delivery option for the delivery group. + var selectedDeliveryOption: SelectedDeliveryOption? { __data["selectedDeliveryOption"] } + + struct Fragments: FragmentContainer { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + var cartDeliveryGroupFragment: CartDeliveryGroupFragment { _toFragment() } } - /// The total number of items in the cart. - var totalQuantity: Int { - __data["totalQuantity"] - } + typealias DeliveryAddress = CartDeliveryGroupFragment.DeliveryAddress - /// Information about the buyer that's interacting with the cart. - var buyerIdentity: BuyerIdentity { - __data["buyerIdentity"] - } + typealias DeliveryOption = CartDeliveryGroupFragment.DeliveryOption - /// The delivery groups available for the cart, based on the buyer identity default - /// delivery address preference or the default address of the logged-in customer. - var deliveryGroups: DeliveryGroups { - __data["deliveryGroups"] - } - - /// A list of lines containing information about the items the customer intends to purchase. - var lines: Lines { - __data["lines"] - } + typealias SelectedDeliveryOption = CartDeliveryGroupFragment.SelectedDeliveryOption + } + } - /// The estimated costs that the buyer will pay at checkout. The costs are subject to change and changes will be reflected at checkout. The `cost` field uses the `buyerIdentity` field to determine [international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing). - var cost: Cost { - __data["cost"] - } + /// Lines + /// + /// Parent Type: `BaseCartLineConnection` + nonisolated struct Lines: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.BaseCartLineConnection } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("nodes", [Node].self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartFragment.Lines.self + ] } + + /// A list of the nodes contained in BaseCartLineEdge. + var nodes: [Node] { __data["nodes"] } + + /// Lines.Node + /// + /// Parent Type: `BaseCartLine` + nonisolated struct Node: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Interfaces.BaseCartLine } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .fragment(CartLineFragment.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartFragment.Lines.Node.self, + CartLineFragment.self + ] } - /// BuyerIdentity - /// - /// Parent Type: `CartBuyerIdentity` - struct BuyerIdentity: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartBuyerIdentity - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("email", String?.self), - .field("phone", String?.self), - .field("customer", Customer?.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartFragment.BuyerIdentity.self - ] - } - - /// The email address of the buyer that's interacting with the cart. - var email: String? { - __data["email"] - } - - /// The phone number of the buyer that's interacting with the cart. - var phone: String? { - __data["phone"] - } - - /// The customer account associated with the cart. - var customer: Customer? { - __data["customer"] - } - - /// BuyerIdentity.Customer - /// - /// Parent Type: `Customer` - struct Customer: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Customer - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("email", String?.self), - .field("phone", String?.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartFragment.BuyerIdentity.Customer.self - ] - } - - /// The customer’s email address. - var email: String? { - __data["email"] - } - - /// The customer’s phone number. - var phone: String? { - __data["phone"] - } - } + /// A globally-unique ID. + var id: Storefront.ID { __data["id"] } + /// The quantity of the merchandise that the customer intends to purchase. + var quantity: Int { __data["quantity"] } + /// The merchandise that the buyer intends to purchase. + var merchandise: Merchandise { __data["merchandise"] } + /// The cost of the merchandise that the buyer will pay for at checkout. The costs are subject to change and changes will be reflected at checkout. + var cost: Cost { __data["cost"] } + + struct Fragments: FragmentContainer { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + var cartLineFragment: CartLineFragment { _toFragment() } } - /// DeliveryGroups - /// - /// Parent Type: `CartDeliveryGroupConnection` - struct DeliveryGroups: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartDeliveryGroupConnection - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("nodes", [Node].self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartFragment.DeliveryGroups.self - ] - } - - /// A list of the nodes contained in CartDeliveryGroupEdge. - var nodes: [Node] { - __data["nodes"] - } - - /// DeliveryGroups.Node - /// - /// Parent Type: `CartDeliveryGroup` - struct Node: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartDeliveryGroup - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .fragment(CartDeliveryGroupFragment.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartFragment.DeliveryGroups.Node.self, - CartDeliveryGroupFragment.self - ] - } - - /// The ID for the delivery group. - var id: Storefront.ID { - __data["id"] - } - - /// The type of merchandise in the delivery group. - var groupType: GraphQLEnum { - __data["groupType"] - } - - /// The destination address for the delivery group. - var deliveryAddress: DeliveryAddress { - __data["deliveryAddress"] - } - - /// The delivery options available for the delivery group. - var deliveryOptions: [DeliveryOption] { - __data["deliveryOptions"] - } - - /// The selected delivery option for the delivery group. - var selectedDeliveryOption: SelectedDeliveryOption? { - __data["selectedDeliveryOption"] - } - - struct Fragments: FragmentContainer { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - var cartDeliveryGroupFragment: CartDeliveryGroupFragment { - _toFragment() - } - } - - typealias DeliveryAddress = CartDeliveryGroupFragment.DeliveryAddress - - typealias DeliveryOption = CartDeliveryGroupFragment.DeliveryOption - - typealias SelectedDeliveryOption = CartDeliveryGroupFragment.SelectedDeliveryOption - } - } + typealias Merchandise = CartLineFragment.Merchandise - /// Lines - /// - /// Parent Type: `BaseCartLineConnection` - struct Lines: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.BaseCartLineConnection - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("nodes", [Node].self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartFragment.Lines.self - ] - } - - /// A list of the nodes contained in BaseCartLineEdge. - var nodes: [Node] { - __data["nodes"] - } - - /// Lines.Node - /// - /// Parent Type: `BaseCartLine` - struct Node: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Interfaces.BaseCartLine - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .fragment(CartLineFragment.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartFragment.Lines.Node.self, - CartLineFragment.self - ] - } - - /// A globally-unique ID. - var id: Storefront.ID { - __data["id"] - } - - /// The quantity of the merchandise that the customer intends to purchase. - var quantity: Int { - __data["quantity"] - } - - /// The merchandise that the buyer intends to purchase. - var merchandise: Merchandise { - __data["merchandise"] - } - - /// The cost of the merchandise that the buyer will pay for at checkout. The costs are subject to change and changes will be reflected at checkout. - var cost: Cost { - __data["cost"] - } - - struct Fragments: FragmentContainer { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - var cartLineFragment: CartLineFragment { - _toFragment() - } - } - - typealias Merchandise = CartLineFragment.Merchandise - - typealias Cost = CartLineFragment.Cost - } - } + typealias Cost = CartLineFragment.Cost + } + } - /// Cost - /// - /// Parent Type: `CartCost` - struct Cost: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartCost - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("totalAmount", TotalAmount.self), - .field("subtotalAmount", SubtotalAmount.self), - .field("totalTaxAmount", TotalTaxAmount?.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartFragment.Cost.self - ] - } - - /// The total amount for the customer to pay. - var totalAmount: TotalAmount { - __data["totalAmount"] - } - - /// The amount, before taxes and cart-level discounts, for the customer to pay. - var subtotalAmount: SubtotalAmount { - __data["subtotalAmount"] - } - - /// The tax amount for the customer to pay at checkout. - @available(*, deprecated, message: "Tax and duty amounts are no longer available and will be removed in a future version.\nPlease see [the changelog](https://shopify.dev/changelog/tax-and-duties-are-deprecated-in-storefront-cart-api)\nfor more information.") - var totalTaxAmount: TotalTaxAmount? { - __data["totalTaxAmount"] - } - - /// Cost.TotalAmount - /// - /// Parent Type: `MoneyV2` - struct TotalAmount: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.MoneyV2 - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("amount", Storefront.Decimal.self), - .field("currencyCode", GraphQLEnum.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartFragment.Cost.TotalAmount.self - ] - } - - /// Decimal money amount. - var amount: Storefront.Decimal { - __data["amount"] - } - - /// Currency of the money. - var currencyCode: GraphQLEnum { - __data["currencyCode"] - } - } - - /// Cost.SubtotalAmount - /// - /// Parent Type: `MoneyV2` - struct SubtotalAmount: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.MoneyV2 - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("amount", Storefront.Decimal.self), - .field("currencyCode", GraphQLEnum.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartFragment.Cost.SubtotalAmount.self - ] - } - - /// Decimal money amount. - var amount: Storefront.Decimal { - __data["amount"] - } - - /// Currency of the money. - var currencyCode: GraphQLEnum { - __data["currencyCode"] - } - } - - /// Cost.TotalTaxAmount - /// - /// Parent Type: `MoneyV2` - struct TotalTaxAmount: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.MoneyV2 - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("amount", Storefront.Decimal.self), - .field("currencyCode", GraphQLEnum.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartFragment.Cost.TotalTaxAmount.self - ] - } - - /// Decimal money amount. - var amount: Storefront.Decimal { - __data["amount"] - } - - /// Currency of the money. - var currencyCode: GraphQLEnum { - __data["currencyCode"] - } - } - } + /// Cost + /// + /// Parent Type: `CartCost` + nonisolated struct Cost: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartCost } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("totalAmount", TotalAmount.self), + .field("subtotalAmount", SubtotalAmount.self), + .field("totalTaxAmount", TotalTaxAmount?.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartFragment.Cost.self + ] } + + /// The total amount for the customer to pay. + var totalAmount: TotalAmount { __data["totalAmount"] } + /// The amount, before taxes and cart-level discounts, for the customer to pay. + var subtotalAmount: SubtotalAmount { __data["subtotalAmount"] } + /// The tax amount for the customer to pay at checkout. + @available(*, deprecated, message: "Tax and duty amounts are no longer available and will be removed in a future version.\nPlease see [the changelog](https://shopify.dev/changelog/tax-and-duties-are-deprecated-in-storefront-cart-api)\nfor more information.") + var totalTaxAmount: TotalTaxAmount? { __data["totalTaxAmount"] } + + /// Cost.TotalAmount + /// + /// Parent Type: `MoneyV2` + nonisolated struct TotalAmount: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.MoneyV2 } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("amount", Storefront.Decimal.self), + .field("currencyCode", GraphQLEnum.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartFragment.Cost.TotalAmount.self + ] } + + /// Decimal money amount. + var amount: Storefront.Decimal { __data["amount"] } + /// Currency of the money. + var currencyCode: GraphQLEnum { __data["currencyCode"] } + } + + /// Cost.SubtotalAmount + /// + /// Parent Type: `MoneyV2` + nonisolated struct SubtotalAmount: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.MoneyV2 } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("amount", Storefront.Decimal.self), + .field("currencyCode", GraphQLEnum.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartFragment.Cost.SubtotalAmount.self + ] } + + /// Decimal money amount. + var amount: Storefront.Decimal { __data["amount"] } + /// Currency of the money. + var currencyCode: GraphQLEnum { __data["currencyCode"] } + } + + /// Cost.TotalTaxAmount + /// + /// Parent Type: `MoneyV2` + nonisolated struct TotalTaxAmount: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.MoneyV2 } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("amount", Storefront.Decimal.self), + .field("currencyCode", GraphQLEnum.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartFragment.Cost.TotalTaxAmount.self + ] } + + /// Decimal money amount. + var amount: Storefront.Decimal { __data["amount"] } + /// Currency of the money. + var currencyCode: GraphQLEnum { __data["currencyCode"] } + } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Fragments/CartLineFragment.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Fragments/CartLineFragment.graphql.swift index ffea3e41..32e47dd8 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Fragments/CartLineFragment.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Fragments/CartLineFragment.graphql.swift @@ -5,379 +5,236 @@ @_spi(Execution) @_spi(Unsafe) import ApolloAPI extension Storefront { - struct CartLineFragment: Storefront.SelectionSet, Fragment { - static var fragmentDefinition: StaticString { - #"fragment CartLineFragment on BaseCartLine { __typename id quantity merchandise { __typename ... on ProductVariant { id title image { __typename url } price { __typename amount currencyCode } product { __typename title vendor featuredImage { __typename url } } requiresShipping } } cost { __typename totalAmount { __typename amount currencyCode } } }"# - } + nonisolated struct CartLineFragment: Storefront.SelectionSet, Fragment { + static var fragmentDefinition: StaticString { + #"fragment CartLineFragment on BaseCartLine { __typename id quantity merchandise { __typename ... on ProductVariant { id title image { __typename url } price { __typename amount currencyCode } product { __typename title vendor featuredImage { __typename url } } requiresShipping } } cost { __typename totalAmount { __typename amount currencyCode } } }"# + } + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Interfaces.BaseCartLine } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("id", Storefront.ID.self), + .field("quantity", Int.self), + .field("merchandise", Merchandise.self), + .field("cost", Cost.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLineFragment.self + ] } + + /// A globally-unique ID. + var id: Storefront.ID { __data["id"] } + /// The quantity of the merchandise that the customer intends to purchase. + var quantity: Int { __data["quantity"] } + /// The merchandise that the buyer intends to purchase. + var merchandise: Merchandise { __data["merchandise"] } + /// The cost of the merchandise that the buyer will pay for at checkout. The costs are subject to change and changes will be reflected at checkout. + var cost: Cost { __data["cost"] } + + /// Merchandise + /// + /// Parent Type: `Merchandise` + nonisolated struct Merchandise: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Unions.Merchandise } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .inlineFragment(AsProductVariant.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLineFragment.Merchandise.self + ] } + + var asProductVariant: AsProductVariant? { _asInlineFragment() } + + /// Merchandise.AsProductVariant + /// + /// Parent Type: `ProductVariant` + nonisolated struct AsProductVariant: Storefront.InlineFragment { let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Interfaces.BaseCartLine - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("id", Storefront.ID.self), - .field("quantity", Int.self), - .field("merchandise", Merchandise.self), - .field("cost", Cost.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLineFragment.self - ] - } + init(_dataDict: DataDict) { __data = _dataDict } + + typealias RootEntityType = CartLineFragment.Merchandise + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.ProductVariant } + static var __selections: [ApolloAPI.Selection] { [ + .field("id", Storefront.ID.self), + .field("title", String.self), + .field("image", Image?.self), + .field("price", Price.self), + .field("product", Product.self), + .field("requiresShipping", Bool.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLineFragment.Merchandise.self, + CartLineFragment.Merchandise.AsProductVariant.self + ] } /// A globally-unique ID. - var id: Storefront.ID { - __data["id"] - } - - /// The quantity of the merchandise that the customer intends to purchase. - var quantity: Int { - __data["quantity"] - } - - /// The merchandise that the buyer intends to purchase. - var merchandise: Merchandise { - __data["merchandise"] - } - - /// The cost of the merchandise that the buyer will pay for at checkout. The costs are subject to change and changes will be reflected at checkout. - var cost: Cost { - __data["cost"] + var id: Storefront.ID { __data["id"] } + /// The product variant’s title. + var title: String { __data["title"] } + /// Image associated with the product variant. This field falls back to the product image if no image is available. + var image: Image? { __data["image"] } + /// The product variant’s price. + var price: Price { __data["price"] } + /// The product object that the product variant belongs to. + var product: Product { __data["product"] } + /// Whether a customer needs to provide a shipping address when placing an order for the product variant. + var requiresShipping: Bool { __data["requiresShipping"] } + + /// Merchandise.AsProductVariant.Image + /// + /// Parent Type: `Image` + nonisolated struct Image: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Image } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("url", Storefront.URL.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLineFragment.Merchandise.AsProductVariant.Image.self + ] } + + /// The location of the image as a URL. + /// + /// If no transform options are specified, then the original image will be preserved including any pre-applied transforms. + /// + /// All transformation options are considered "best-effort". Any transformation that the original image type doesn't support will be ignored. + /// + /// If you need multiple variations of the same image, then you can use [GraphQL aliases](https://graphql.org/learn/queries/#aliases). + var url: Storefront.URL { __data["url"] } } - /// Merchandise + /// Merchandise.AsProductVariant.Price /// - /// Parent Type: `Merchandise` - struct Merchandise: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Unions.Merchandise - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .inlineFragment(AsProductVariant.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLineFragment.Merchandise.self - ] - } - - var asProductVariant: AsProductVariant? { - _asInlineFragment() - } - - /// Merchandise.AsProductVariant - /// - /// Parent Type: `ProductVariant` - struct AsProductVariant: Storefront.InlineFragment { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - typealias RootEntityType = CartLineFragment.Merchandise - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.ProductVariant - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("id", Storefront.ID.self), - .field("title", String.self), - .field("image", Image?.self), - .field("price", Price.self), - .field("product", Product.self), - .field("requiresShipping", Bool.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLineFragment.Merchandise.self, - CartLineFragment.Merchandise.AsProductVariant.self - ] - } - - /// A globally-unique ID. - var id: Storefront.ID { - __data["id"] - } - - /// The product variant’s title. - var title: String { - __data["title"] - } - - /// Image associated with the product variant. This field falls back to the product image if no image is available. - var image: Image? { - __data["image"] - } - - /// The product variant’s price. - var price: Price { - __data["price"] - } - - /// The product object that the product variant belongs to. - var product: Product { - __data["product"] - } - - /// Whether a customer needs to provide a shipping address when placing an order for the product variant. - var requiresShipping: Bool { - __data["requiresShipping"] - } - - /// Merchandise.AsProductVariant.Image - /// - /// Parent Type: `Image` - struct Image: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Image - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("url", Storefront.URL.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLineFragment.Merchandise.AsProductVariant.Image.self - ] - } - - /// The location of the image as a URL. - /// - /// If no transform options are specified, then the original image will be preserved including any pre-applied transforms. - /// - /// All transformation options are considered "best-effort". Any transformation that the original image type doesn't support will be ignored. - /// - /// If you need multiple variations of the same image, then you can use [GraphQL aliases](https://graphql.org/learn/queries/#aliases). - var url: Storefront.URL { - __data["url"] - } - } - - /// Merchandise.AsProductVariant.Price - /// - /// Parent Type: `MoneyV2` - struct Price: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.MoneyV2 - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("amount", Storefront.Decimal.self), - .field("currencyCode", GraphQLEnum.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLineFragment.Merchandise.AsProductVariant.Price.self - ] - } - - /// Decimal money amount. - var amount: Storefront.Decimal { - __data["amount"] - } - - /// Currency of the money. - var currencyCode: GraphQLEnum { - __data["currencyCode"] - } - } - - /// Merchandise.AsProductVariant.Product - /// - /// Parent Type: `Product` - struct Product: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Product - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("title", String.self), - .field("vendor", String.self), - .field("featuredImage", FeaturedImage?.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLineFragment.Merchandise.AsProductVariant.Product.self - ] - } - - /// The name for the product that displays to customers. The title is used to construct the product's handle. - /// For example, if a product is titled "Black Sunglasses", then the handle is `black-sunglasses`. - var title: String { - __data["title"] - } - - /// The name of the product's vendor. - var vendor: String { - __data["vendor"] - } - - /// The featured image for the product. - /// - /// This field is functionally equivalent to `images(first: 1)`. - var featuredImage: FeaturedImage? { - __data["featuredImage"] - } - - /// Merchandise.AsProductVariant.Product.FeaturedImage - /// - /// Parent Type: `Image` - struct FeaturedImage: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Image - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("url", Storefront.URL.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLineFragment.Merchandise.AsProductVariant.Product.FeaturedImage.self - ] - } - - /// The location of the image as a URL. - /// - /// If no transform options are specified, then the original image will be preserved including any pre-applied transforms. - /// - /// All transformation options are considered "best-effort". Any transformation that the original image type doesn't support will be ignored. - /// - /// If you need multiple variations of the same image, then you can use [GraphQL aliases](https://graphql.org/learn/queries/#aliases). - var url: Storefront.URL { - __data["url"] - } - } - } - } + /// Parent Type: `MoneyV2` + nonisolated struct Price: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.MoneyV2 } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("amount", Storefront.Decimal.self), + .field("currencyCode", GraphQLEnum.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLineFragment.Merchandise.AsProductVariant.Price.self + ] } + + /// Decimal money amount. + var amount: Storefront.Decimal { __data["amount"] } + /// Currency of the money. + var currencyCode: GraphQLEnum { __data["currencyCode"] } } - /// Cost + /// Merchandise.AsProductVariant.Product /// - /// Parent Type: `CartLineCost` - struct Cost: Storefront.SelectionSet { + /// Parent Type: `Product` + nonisolated struct Product: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Product } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("title", String.self), + .field("vendor", String.self), + .field("featuredImage", FeaturedImage?.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLineFragment.Merchandise.AsProductVariant.Product.self + ] } + + /// The name for the product that displays to customers. The title is used to construct the product's handle. + /// For example, if a product is titled "Black Sunglasses", then the handle is `black-sunglasses`. + var title: String { __data["title"] } + /// The name of the product's vendor. + var vendor: String { __data["vendor"] } + /// The featured image for the product. + /// + /// This field is functionally equivalent to `images(first: 1)`. + var featuredImage: FeaturedImage? { __data["featuredImage"] } + + /// Merchandise.AsProductVariant.Product.FeaturedImage + /// + /// Parent Type: `Image` + nonisolated struct FeaturedImage: Storefront.SelectionSet { let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartLineCost - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("totalAmount", TotalAmount.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLineFragment.Cost.self - ] - } - - /// The total cost of the merchandise line. - var totalAmount: TotalAmount { - __data["totalAmount"] - } - - /// Cost.TotalAmount + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Image } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("url", Storefront.URL.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLineFragment.Merchandise.AsProductVariant.Product.FeaturedImage.self + ] } + + /// The location of the image as a URL. /// - /// Parent Type: `MoneyV2` - struct TotalAmount: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.MoneyV2 - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("amount", Storefront.Decimal.self), - .field("currencyCode", GraphQLEnum.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLineFragment.Cost.TotalAmount.self - ] - } - - /// Decimal money amount. - var amount: Storefront.Decimal { - __data["amount"] - } - - /// Currency of the money. - var currencyCode: GraphQLEnum { - __data["currencyCode"] - } - } + /// If no transform options are specified, then the original image will be preserved including any pre-applied transforms. + /// + /// All transformation options are considered "best-effort". Any transformation that the original image type doesn't support will be ignored. + /// + /// If you need multiple variations of the same image, then you can use [GraphQL aliases](https://graphql.org/learn/queries/#aliases). + var url: Storefront.URL { __data["url"] } + } } + } } -} + + /// Cost + /// + /// Parent Type: `CartLineCost` + nonisolated struct Cost: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartLineCost } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("totalAmount", TotalAmount.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLineFragment.Cost.self + ] } + + /// The total cost of the merchandise line. + var totalAmount: TotalAmount { __data["totalAmount"] } + + /// Cost.TotalAmount + /// + /// Parent Type: `MoneyV2` + nonisolated struct TotalAmount: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.MoneyV2 } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("amount", Storefront.Decimal.self), + .field("currencyCode", GraphQLEnum.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLineFragment.Cost.TotalAmount.self + ] } + + /// Decimal money amount. + var amount: Storefront.Decimal { __data["amount"] } + /// Currency of the money. + var currencyCode: GraphQLEnum { __data["currencyCode"] } + } + } + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Fragments/CartUserErrorFragment.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Fragments/CartUserErrorFragment.graphql.swift index 9364e48f..a464a177 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Fragments/CartUserErrorFragment.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Fragments/CartUserErrorFragment.graphql.swift @@ -5,48 +5,31 @@ @_spi(Execution) @_spi(Unsafe) import ApolloAPI extension Storefront { - struct CartUserErrorFragment: Storefront.SelectionSet, Fragment { - static var fragmentDefinition: StaticString { - #"fragment CartUserErrorFragment on CartUserError { __typename code message field }"# - } - - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartUserError - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("code", GraphQLEnum?.self), - .field("message", String.self), - .field("field", [String]?.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartUserErrorFragment.self - ] - } - - /// The error code. - var code: GraphQLEnum? { - __data["code"] - } - - /// The error message. - var message: String { - __data["message"] - } - - /// The path to the input field that caused the error. - var field: [String]? { - __data["field"] - } + nonisolated struct CartUserErrorFragment: Storefront.SelectionSet, Fragment { + static var fragmentDefinition: StaticString { + #"fragment CartUserErrorFragment on CartUserError { __typename code message field }"# } -} + + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartUserError } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("code", GraphQLEnum?.self), + .field("message", String.self), + .field("field", [String]?.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartUserErrorFragment.self + ] } + + /// The error code. + var code: GraphQLEnum? { __data["code"] } + /// The error message. + var message: String { __data["message"] } + /// The path to the input field that caused the error. + var field: [String]? { __data["field"] } + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Operations/Mutations/CartCreateMutation.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Operations/Mutations/CartCreateMutation.graphql.swift index 22518f5f..ae4a14ec 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Operations/Mutations/CartCreateMutation.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Operations/Mutations/CartCreateMutation.graphql.swift @@ -5,240 +5,155 @@ @_spi(Execution) @_spi(Unsafe) import ApolloAPI extension Storefront { - struct CartCreateMutation: GraphQLMutation { - static let operationName: String = "CartCreate" - static let operationDocument: ApolloAPI.OperationDocument = .init( - definition: .init( - #"mutation CartCreate($input: CartInput!, $country: CountryCode!, $language: LanguageCode!) @inContext(country: $country, language: $language) { cartCreate(input: $input) { __typename cart { __typename ...CartFragment } userErrors { __typename ...CartUserErrorFragment } } }"#, - fragments: [CartDeliveryGroupFragment.self, CartFragment.self, CartLineFragment.self, CartUserErrorFragment.self] - ) - ) - - public var input: CartInput - public var country: GraphQLEnum - public var language: GraphQLEnum - - public init( - input: CartInput, - country: GraphQLEnum, - language: GraphQLEnum - ) { - self.input = input - self.country = country - self.language = language - } + nonisolated struct CartCreateMutation: GraphQLMutation { + static let operationName: String = "CartCreate" + static let operationDocument: ApolloAPI.OperationDocument = .init( + definition: .init( + #"mutation CartCreate($input: CartInput!, $country: CountryCode!, $language: LanguageCode!) @inContext(country: $country, language: $language) { cartCreate(input: $input) { __typename cart { __typename ...CartFragment } userErrors { __typename ...CartUserErrorFragment } } }"#, + fragments: [CartDeliveryGroupFragment.self, CartFragment.self, CartLineFragment.self, CartUserErrorFragment.self] + )) + + public var input: CartInput + public var country: GraphQLEnum + public var language: GraphQLEnum + + public init( + input: CartInput, + country: GraphQLEnum, + language: GraphQLEnum + ) { + self.input = input + self.country = country + self.language = language + } + + @_spi(Unsafe) public var __variables: Variables? { [ + "input": input, + "country": country, + "language": language + ] } + + nonisolated struct Data: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Mutation } + static var __selections: [ApolloAPI.Selection] { [ + .field("cartCreate", CartCreate?.self, arguments: ["input": .variable("input")]), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartCreateMutation.Data.self + ] } + + /// Creates a new [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart) for a buyer session. You can optionally initialize the cart with merchandise lines, discount codes, gift card codes, buyer identity for international pricing, and custom attributes. + /// + /// The returned cart includes a `checkoutUrl` that directs the buyer to complete their purchase. + var cartCreate: CartCreate? { __data["cartCreate"] } + + /// CartCreate + /// + /// Parent Type: `CartCreatePayload` + nonisolated struct CartCreate: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartCreatePayload } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("cart", Cart?.self), + .field("userErrors", [UserError].self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartCreateMutation.Data.CartCreate.self + ] } + + /// The new cart. + var cart: Cart? { __data["cart"] } + /// The list of errors that occurred from executing the mutation. + var userErrors: [UserError] { __data["userErrors"] } + + /// CartCreate.Cart + /// + /// Parent Type: `Cart` + nonisolated struct Cart: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Cart } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .fragment(CartFragment.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartCreateMutation.Data.CartCreate.Cart.self, + CartFragment.self + ] } + + /// A globally-unique ID. + var id: Storefront.ID { __data["id"] } + /// The URL of the checkout for the cart. + var checkoutUrl: Storefront.URL { __data["checkoutUrl"] } + /// The total number of items in the cart. + var totalQuantity: Int { __data["totalQuantity"] } + /// Information about the buyer that's interacting with the cart. + var buyerIdentity: BuyerIdentity { __data["buyerIdentity"] } + /// The delivery groups available for the cart, based on the buyer identity default + /// delivery address preference or the default address of the logged-in customer. + var deliveryGroups: DeliveryGroups { __data["deliveryGroups"] } + /// A list of lines containing information about the items the customer intends to purchase. + var lines: Lines { __data["lines"] } + /// The estimated costs that the buyer will pay at checkout. The costs are subject to change and changes will be reflected at checkout. The `cost` field uses the `buyerIdentity` field to determine [international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing). + var cost: Cost { __data["cost"] } + + struct Fragments: FragmentContainer { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + var cartFragment: CartFragment { _toFragment() } + } - @_spi(Unsafe) public var __variables: Variables? { - [ - "input": input, - "country": country, - "language": language - ] + typealias BuyerIdentity = CartFragment.BuyerIdentity + + typealias DeliveryGroups = CartFragment.DeliveryGroups + + typealias Lines = CartFragment.Lines + + typealias Cost = CartFragment.Cost } - struct Data: Storefront.SelectionSet { + /// CartCreate.UserError + /// + /// Parent Type: `CartUserError` + nonisolated struct UserError: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartUserError } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .fragment(CartUserErrorFragment.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartCreateMutation.Data.CartCreate.UserError.self, + CartUserErrorFragment.self + ] } + + /// The error code. + var code: GraphQLEnum? { __data["code"] } + /// The error message. + var message: String { __data["message"] } + /// The path to the input field that caused the error. + var field: [String]? { __data["field"] } + + struct Fragments: FragmentContainer { let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Mutation - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("cartCreate", CartCreate?.self, arguments: ["input": .variable("input")]) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartCreateMutation.Data.self - ] - } - - /// Creates a new [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart) for a buyer session. You can optionally initialize the cart with merchandise lines, discount codes, gift card codes, buyer identity for international pricing, and custom attributes. - /// - /// The returned cart includes a `checkoutUrl` that directs the buyer to complete their purchase. - var cartCreate: CartCreate? { - __data["cartCreate"] - } - - /// CartCreate - /// - /// Parent Type: `CartCreatePayload` - struct CartCreate: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartCreatePayload - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("cart", Cart?.self), - .field("userErrors", [UserError].self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartCreateMutation.Data.CartCreate.self - ] - } - - /// The new cart. - var cart: Cart? { - __data["cart"] - } - - /// The list of errors that occurred from executing the mutation. - var userErrors: [UserError] { - __data["userErrors"] - } - - /// CartCreate.Cart - /// - /// Parent Type: `Cart` - struct Cart: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Cart - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .fragment(CartFragment.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartCreateMutation.Data.CartCreate.Cart.self, - CartFragment.self - ] - } - - /// A globally-unique ID. - var id: Storefront.ID { - __data["id"] - } - - /// The URL of the checkout for the cart. - var checkoutUrl: Storefront.URL { - __data["checkoutUrl"] - } - - /// The total number of items in the cart. - var totalQuantity: Int { - __data["totalQuantity"] - } - - /// Information about the buyer that's interacting with the cart. - var buyerIdentity: BuyerIdentity { - __data["buyerIdentity"] - } - - /// The delivery groups available for the cart, based on the buyer identity default - /// delivery address preference or the default address of the logged-in customer. - var deliveryGroups: DeliveryGroups { - __data["deliveryGroups"] - } - - /// A list of lines containing information about the items the customer intends to purchase. - var lines: Lines { - __data["lines"] - } - - /// The estimated costs that the buyer will pay at checkout. The costs are subject to change and changes will be reflected at checkout. The `cost` field uses the `buyerIdentity` field to determine [international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing). - var cost: Cost { - __data["cost"] - } - - struct Fragments: FragmentContainer { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - var cartFragment: CartFragment { - _toFragment() - } - } - - typealias BuyerIdentity = CartFragment.BuyerIdentity - - typealias DeliveryGroups = CartFragment.DeliveryGroups - - typealias Lines = CartFragment.Lines - - typealias Cost = CartFragment.Cost - } - - /// CartCreate.UserError - /// - /// Parent Type: `CartUserError` - struct UserError: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartUserError - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .fragment(CartUserErrorFragment.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartCreateMutation.Data.CartCreate.UserError.self, - CartUserErrorFragment.self - ] - } - - /// The error code. - var code: GraphQLEnum? { - __data["code"] - } - - /// The error message. - var message: String { - __data["message"] - } - - /// The path to the input field that caused the error. - var field: [String]? { - __data["field"] - } - - struct Fragments: FragmentContainer { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - var cartUserErrorFragment: CartUserErrorFragment { - _toFragment() - } - } - } - } + init(_dataDict: DataDict) { __data = _dataDict } + + var cartUserErrorFragment: CartUserErrorFragment { _toFragment() } + } } + } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Operations/Mutations/CartLinesAddMutation.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Operations/Mutations/CartLinesAddMutation.graphql.swift index 3af3c640..6bbb61f6 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Operations/Mutations/CartLinesAddMutation.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Operations/Mutations/CartLinesAddMutation.graphql.swift @@ -5,247 +5,162 @@ @_spi(Execution) @_spi(Unsafe) import ApolloAPI extension Storefront { - struct CartLinesAddMutation: GraphQLMutation { - static let operationName: String = "CartLinesAdd" - static let operationDocument: ApolloAPI.OperationDocument = .init( - definition: .init( - #"mutation CartLinesAdd($cartId: ID!, $lines: [CartLineInput!]!, $country: CountryCode!, $language: LanguageCode!) @inContext(country: $country, language: $language) { cartLinesAdd(cartId: $cartId, lines: $lines) { __typename cart { __typename ...CartFragment } userErrors { __typename ...CartUserErrorFragment } } }"#, - fragments: [CartDeliveryGroupFragment.self, CartFragment.self, CartLineFragment.self, CartUserErrorFragment.self] - ) - ) - - public var cartId: ID - public var lines: [CartLineInput] - public var country: GraphQLEnum - public var language: GraphQLEnum - - public init( - cartId: ID, - lines: [CartLineInput], - country: GraphQLEnum, - language: GraphQLEnum - ) { - self.cartId = cartId - self.lines = lines - self.country = country - self.language = language - } + nonisolated struct CartLinesAddMutation: GraphQLMutation { + static let operationName: String = "CartLinesAdd" + static let operationDocument: ApolloAPI.OperationDocument = .init( + definition: .init( + #"mutation CartLinesAdd($cartId: ID!, $lines: [CartLineInput!]!, $country: CountryCode!, $language: LanguageCode!) @inContext(country: $country, language: $language) { cartLinesAdd(cartId: $cartId, lines: $lines) { __typename cart { __typename ...CartFragment } userErrors { __typename ...CartUserErrorFragment } } }"#, + fragments: [CartDeliveryGroupFragment.self, CartFragment.self, CartLineFragment.self, CartUserErrorFragment.self] + )) + + public var cartId: ID + public var lines: [CartLineInput] + public var country: GraphQLEnum + public var language: GraphQLEnum + + public init( + cartId: ID, + lines: [CartLineInput], + country: GraphQLEnum, + language: GraphQLEnum + ) { + self.cartId = cartId + self.lines = lines + self.country = country + self.language = language + } + + @_spi(Unsafe) public var __variables: Variables? { [ + "cartId": cartId, + "lines": lines, + "country": country, + "language": language + ] } + + nonisolated struct Data: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Mutation } + static var __selections: [ApolloAPI.Selection] { [ + .field("cartLinesAdd", CartLinesAdd?.self, arguments: [ + "cartId": .variable("cartId"), + "lines": .variable("lines") + ]), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLinesAddMutation.Data.self + ] } + + /// Adds one or more merchandise lines to an existing [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart). Each line specifies the [product variant](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) to purchase. Quantity defaults to `1` if not provided. + /// + /// You can add up to 250 lines in a single request. Use [`CartLineInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartLineInput) to configure each line's merchandise, quantity, selling plan, custom attributes, and any parent relationships for nested line items such as warranties or add-ons. + var cartLinesAdd: CartLinesAdd? { __data["cartLinesAdd"] } + + /// CartLinesAdd + /// + /// Parent Type: `CartLinesAddPayload` + nonisolated struct CartLinesAdd: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartLinesAddPayload } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("cart", Cart?.self), + .field("userErrors", [UserError].self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLinesAddMutation.Data.CartLinesAdd.self + ] } + + /// The updated cart. + var cart: Cart? { __data["cart"] } + /// The list of errors that occurred from executing the mutation. + var userErrors: [UserError] { __data["userErrors"] } + + /// CartLinesAdd.Cart + /// + /// Parent Type: `Cart` + nonisolated struct Cart: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Cart } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .fragment(CartFragment.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLinesAddMutation.Data.CartLinesAdd.Cart.self, + CartFragment.self + ] } + + /// A globally-unique ID. + var id: Storefront.ID { __data["id"] } + /// The URL of the checkout for the cart. + var checkoutUrl: Storefront.URL { __data["checkoutUrl"] } + /// The total number of items in the cart. + var totalQuantity: Int { __data["totalQuantity"] } + /// Information about the buyer that's interacting with the cart. + var buyerIdentity: BuyerIdentity { __data["buyerIdentity"] } + /// The delivery groups available for the cart, based on the buyer identity default + /// delivery address preference or the default address of the logged-in customer. + var deliveryGroups: DeliveryGroups { __data["deliveryGroups"] } + /// A list of lines containing information about the items the customer intends to purchase. + var lines: Lines { __data["lines"] } + /// The estimated costs that the buyer will pay at checkout. The costs are subject to change and changes will be reflected at checkout. The `cost` field uses the `buyerIdentity` field to determine [international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing). + var cost: Cost { __data["cost"] } + + struct Fragments: FragmentContainer { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + var cartFragment: CartFragment { _toFragment() } + } - @_spi(Unsafe) public var __variables: Variables? { - [ - "cartId": cartId, - "lines": lines, - "country": country, - "language": language - ] + typealias BuyerIdentity = CartFragment.BuyerIdentity + + typealias DeliveryGroups = CartFragment.DeliveryGroups + + typealias Lines = CartFragment.Lines + + typealias Cost = CartFragment.Cost } - struct Data: Storefront.SelectionSet { + /// CartLinesAdd.UserError + /// + /// Parent Type: `CartUserError` + nonisolated struct UserError: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartUserError } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .fragment(CartUserErrorFragment.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLinesAddMutation.Data.CartLinesAdd.UserError.self, + CartUserErrorFragment.self + ] } + + /// The error code. + var code: GraphQLEnum? { __data["code"] } + /// The error message. + var message: String { __data["message"] } + /// The path to the input field that caused the error. + var field: [String]? { __data["field"] } + + struct Fragments: FragmentContainer { let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Mutation - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("cartLinesAdd", CartLinesAdd?.self, arguments: [ - "cartId": .variable("cartId"), - "lines": .variable("lines") - ]) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLinesAddMutation.Data.self - ] - } - - /// Adds one or more merchandise lines to an existing [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart). Each line specifies the [product variant](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) to purchase. Quantity defaults to `1` if not provided. - /// - /// You can add up to 250 lines in a single request. Use [`CartLineInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartLineInput) to configure each line's merchandise, quantity, selling plan, custom attributes, and any parent relationships for nested line items such as warranties or add-ons. - var cartLinesAdd: CartLinesAdd? { - __data["cartLinesAdd"] - } - - /// CartLinesAdd - /// - /// Parent Type: `CartLinesAddPayload` - struct CartLinesAdd: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartLinesAddPayload - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("cart", Cart?.self), - .field("userErrors", [UserError].self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLinesAddMutation.Data.CartLinesAdd.self - ] - } - - /// The updated cart. - var cart: Cart? { - __data["cart"] - } - - /// The list of errors that occurred from executing the mutation. - var userErrors: [UserError] { - __data["userErrors"] - } - - /// CartLinesAdd.Cart - /// - /// Parent Type: `Cart` - struct Cart: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Cart - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .fragment(CartFragment.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLinesAddMutation.Data.CartLinesAdd.Cart.self, - CartFragment.self - ] - } - - /// A globally-unique ID. - var id: Storefront.ID { - __data["id"] - } - - /// The URL of the checkout for the cart. - var checkoutUrl: Storefront.URL { - __data["checkoutUrl"] - } - - /// The total number of items in the cart. - var totalQuantity: Int { - __data["totalQuantity"] - } - - /// Information about the buyer that's interacting with the cart. - var buyerIdentity: BuyerIdentity { - __data["buyerIdentity"] - } - - /// The delivery groups available for the cart, based on the buyer identity default - /// delivery address preference or the default address of the logged-in customer. - var deliveryGroups: DeliveryGroups { - __data["deliveryGroups"] - } - - /// A list of lines containing information about the items the customer intends to purchase. - var lines: Lines { - __data["lines"] - } - - /// The estimated costs that the buyer will pay at checkout. The costs are subject to change and changes will be reflected at checkout. The `cost` field uses the `buyerIdentity` field to determine [international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing). - var cost: Cost { - __data["cost"] - } - - struct Fragments: FragmentContainer { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - var cartFragment: CartFragment { - _toFragment() - } - } - - typealias BuyerIdentity = CartFragment.BuyerIdentity - - typealias DeliveryGroups = CartFragment.DeliveryGroups - - typealias Lines = CartFragment.Lines - - typealias Cost = CartFragment.Cost - } - - /// CartLinesAdd.UserError - /// - /// Parent Type: `CartUserError` - struct UserError: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartUserError - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .fragment(CartUserErrorFragment.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLinesAddMutation.Data.CartLinesAdd.UserError.self, - CartUserErrorFragment.self - ] - } - - /// The error code. - var code: GraphQLEnum? { - __data["code"] - } - - /// The error message. - var message: String { - __data["message"] - } - - /// The path to the input field that caused the error. - var field: [String]? { - __data["field"] - } - - struct Fragments: FragmentContainer { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - var cartUserErrorFragment: CartUserErrorFragment { - _toFragment() - } - } - } - } + init(_dataDict: DataDict) { __data = _dataDict } + + var cartUserErrorFragment: CartUserErrorFragment { _toFragment() } + } } + } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Operations/Mutations/CartLinesUpdateMutation.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Operations/Mutations/CartLinesUpdateMutation.graphql.swift index 3c7f746b..a28cfc4b 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Operations/Mutations/CartLinesUpdateMutation.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Operations/Mutations/CartLinesUpdateMutation.graphql.swift @@ -5,247 +5,162 @@ @_spi(Execution) @_spi(Unsafe) import ApolloAPI extension Storefront { - struct CartLinesUpdateMutation: GraphQLMutation { - static let operationName: String = "CartLinesUpdate" - static let operationDocument: ApolloAPI.OperationDocument = .init( - definition: .init( - #"mutation CartLinesUpdate($cartId: ID!, $lines: [CartLineUpdateInput!]!, $country: CountryCode!, $language: LanguageCode!) @inContext(country: $country, language: $language) { cartLinesUpdate(cartId: $cartId, lines: $lines) { __typename cart { __typename ...CartFragment } userErrors { __typename ...CartUserErrorFragment } } }"#, - fragments: [CartDeliveryGroupFragment.self, CartFragment.self, CartLineFragment.self, CartUserErrorFragment.self] - ) - ) - - public var cartId: ID - public var lines: [CartLineUpdateInput] - public var country: GraphQLEnum - public var language: GraphQLEnum - - public init( - cartId: ID, - lines: [CartLineUpdateInput], - country: GraphQLEnum, - language: GraphQLEnum - ) { - self.cartId = cartId - self.lines = lines - self.country = country - self.language = language - } + nonisolated struct CartLinesUpdateMutation: GraphQLMutation { + static let operationName: String = "CartLinesUpdate" + static let operationDocument: ApolloAPI.OperationDocument = .init( + definition: .init( + #"mutation CartLinesUpdate($cartId: ID!, $lines: [CartLineUpdateInput!]!, $country: CountryCode!, $language: LanguageCode!) @inContext(country: $country, language: $language) { cartLinesUpdate(cartId: $cartId, lines: $lines) { __typename cart { __typename ...CartFragment } userErrors { __typename ...CartUserErrorFragment } } }"#, + fragments: [CartDeliveryGroupFragment.self, CartFragment.self, CartLineFragment.self, CartUserErrorFragment.self] + )) + + public var cartId: ID + public var lines: [CartLineUpdateInput] + public var country: GraphQLEnum + public var language: GraphQLEnum + + public init( + cartId: ID, + lines: [CartLineUpdateInput], + country: GraphQLEnum, + language: GraphQLEnum + ) { + self.cartId = cartId + self.lines = lines + self.country = country + self.language = language + } + + @_spi(Unsafe) public var __variables: Variables? { [ + "cartId": cartId, + "lines": lines, + "country": country, + "language": language + ] } + + nonisolated struct Data: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Mutation } + static var __selections: [ApolloAPI.Selection] { [ + .field("cartLinesUpdate", CartLinesUpdate?.self, arguments: [ + "cartId": .variable("cartId"), + "lines": .variable("lines") + ]), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLinesUpdateMutation.Data.self + ] } + + /// Updates one or more merchandise lines on a [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart). You can modify the quantity, swap the merchandise, change custom attributes, or update the selling plan for each line. You can update a maximum of 250 lines per request. + /// + /// Omitting the [`attributes`](https://shopify.dev/docs/api/storefront/current/mutations/cartLinesUpdate#arguments-lines.fields.attributes) field or setting it to null preserves existing line attributes. Pass an empty array to clear all attributes from a line. + var cartLinesUpdate: CartLinesUpdate? { __data["cartLinesUpdate"] } + + /// CartLinesUpdate + /// + /// Parent Type: `CartLinesUpdatePayload` + nonisolated struct CartLinesUpdate: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartLinesUpdatePayload } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("cart", Cart?.self), + .field("userErrors", [UserError].self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLinesUpdateMutation.Data.CartLinesUpdate.self + ] } + + /// The updated cart. + var cart: Cart? { __data["cart"] } + /// The list of errors that occurred from executing the mutation. + var userErrors: [UserError] { __data["userErrors"] } + + /// CartLinesUpdate.Cart + /// + /// Parent Type: `Cart` + nonisolated struct Cart: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Cart } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .fragment(CartFragment.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLinesUpdateMutation.Data.CartLinesUpdate.Cart.self, + CartFragment.self + ] } + + /// A globally-unique ID. + var id: Storefront.ID { __data["id"] } + /// The URL of the checkout for the cart. + var checkoutUrl: Storefront.URL { __data["checkoutUrl"] } + /// The total number of items in the cart. + var totalQuantity: Int { __data["totalQuantity"] } + /// Information about the buyer that's interacting with the cart. + var buyerIdentity: BuyerIdentity { __data["buyerIdentity"] } + /// The delivery groups available for the cart, based on the buyer identity default + /// delivery address preference or the default address of the logged-in customer. + var deliveryGroups: DeliveryGroups { __data["deliveryGroups"] } + /// A list of lines containing information about the items the customer intends to purchase. + var lines: Lines { __data["lines"] } + /// The estimated costs that the buyer will pay at checkout. The costs are subject to change and changes will be reflected at checkout. The `cost` field uses the `buyerIdentity` field to determine [international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing). + var cost: Cost { __data["cost"] } + + struct Fragments: FragmentContainer { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + var cartFragment: CartFragment { _toFragment() } + } - @_spi(Unsafe) public var __variables: Variables? { - [ - "cartId": cartId, - "lines": lines, - "country": country, - "language": language - ] + typealias BuyerIdentity = CartFragment.BuyerIdentity + + typealias DeliveryGroups = CartFragment.DeliveryGroups + + typealias Lines = CartFragment.Lines + + typealias Cost = CartFragment.Cost } - struct Data: Storefront.SelectionSet { + /// CartLinesUpdate.UserError + /// + /// Parent Type: `CartUserError` + nonisolated struct UserError: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartUserError } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .fragment(CartUserErrorFragment.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLinesUpdateMutation.Data.CartLinesUpdate.UserError.self, + CartUserErrorFragment.self + ] } + + /// The error code. + var code: GraphQLEnum? { __data["code"] } + /// The error message. + var message: String { __data["message"] } + /// The path to the input field that caused the error. + var field: [String]? { __data["field"] } + + struct Fragments: FragmentContainer { let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Mutation - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("cartLinesUpdate", CartLinesUpdate?.self, arguments: [ - "cartId": .variable("cartId"), - "lines": .variable("lines") - ]) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLinesUpdateMutation.Data.self - ] - } - - /// Updates one or more merchandise lines on a [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart). You can modify the quantity, swap the merchandise, change custom attributes, or update the selling plan for each line. You can update a maximum of 250 lines per request. - /// - /// Omitting the [`attributes`](https://shopify.dev/docs/api/storefront/current/mutations/cartLinesUpdate#arguments-lines.fields.attributes) field or setting it to null preserves existing line attributes. Pass an empty array to clear all attributes from a line. - var cartLinesUpdate: CartLinesUpdate? { - __data["cartLinesUpdate"] - } - - /// CartLinesUpdate - /// - /// Parent Type: `CartLinesUpdatePayload` - struct CartLinesUpdate: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartLinesUpdatePayload - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("cart", Cart?.self), - .field("userErrors", [UserError].self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLinesUpdateMutation.Data.CartLinesUpdate.self - ] - } - - /// The updated cart. - var cart: Cart? { - __data["cart"] - } - - /// The list of errors that occurred from executing the mutation. - var userErrors: [UserError] { - __data["userErrors"] - } - - /// CartLinesUpdate.Cart - /// - /// Parent Type: `Cart` - struct Cart: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Cart - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .fragment(CartFragment.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLinesUpdateMutation.Data.CartLinesUpdate.Cart.self, - CartFragment.self - ] - } - - /// A globally-unique ID. - var id: Storefront.ID { - __data["id"] - } - - /// The URL of the checkout for the cart. - var checkoutUrl: Storefront.URL { - __data["checkoutUrl"] - } - - /// The total number of items in the cart. - var totalQuantity: Int { - __data["totalQuantity"] - } - - /// Information about the buyer that's interacting with the cart. - var buyerIdentity: BuyerIdentity { - __data["buyerIdentity"] - } - - /// The delivery groups available for the cart, based on the buyer identity default - /// delivery address preference or the default address of the logged-in customer. - var deliveryGroups: DeliveryGroups { - __data["deliveryGroups"] - } - - /// A list of lines containing information about the items the customer intends to purchase. - var lines: Lines { - __data["lines"] - } - - /// The estimated costs that the buyer will pay at checkout. The costs are subject to change and changes will be reflected at checkout. The `cost` field uses the `buyerIdentity` field to determine [international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing). - var cost: Cost { - __data["cost"] - } - - struct Fragments: FragmentContainer { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - var cartFragment: CartFragment { - _toFragment() - } - } - - typealias BuyerIdentity = CartFragment.BuyerIdentity - - typealias DeliveryGroups = CartFragment.DeliveryGroups - - typealias Lines = CartFragment.Lines - - typealias Cost = CartFragment.Cost - } - - /// CartLinesUpdate.UserError - /// - /// Parent Type: `CartUserError` - struct UserError: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartUserError - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .fragment(CartUserErrorFragment.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLinesUpdateMutation.Data.CartLinesUpdate.UserError.self, - CartUserErrorFragment.self - ] - } - - /// The error code. - var code: GraphQLEnum? { - __data["code"] - } - - /// The error message. - var message: String { - __data["message"] - } - - /// The path to the input field that caused the error. - var field: [String]? { - __data["field"] - } - - struct Fragments: FragmentContainer { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - var cartUserErrorFragment: CartUserErrorFragment { - _toFragment() - } - } - } - } + init(_dataDict: DataDict) { __data = _dataDict } + + var cartUserErrorFragment: CartUserErrorFragment { _toFragment() } + } } + } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Operations/Queries/GetCartQuery.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Operations/Queries/GetCartQuery.graphql.swift index 9384386f..35cb0b8e 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Operations/Queries/GetCartQuery.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Operations/Queries/GetCartQuery.graphql.swift @@ -5,148 +5,100 @@ @_spi(Execution) @_spi(Unsafe) import ApolloAPI extension Storefront { - struct GetCartQuery: GraphQLQuery { - static let operationName: String = "GetCart" - static let operationDocument: ApolloAPI.OperationDocument = .init( - definition: .init( - #"query GetCart($id: ID!, $country: CountryCode!, $language: LanguageCode!) @inContext(country: $country, language: $language) { cart(id: $id) { __typename ...CartFragment } }"#, - fragments: [CartDeliveryGroupFragment.self, CartFragment.self, CartLineFragment.self] - ) - ) - - public var id: ID - public var country: GraphQLEnum - public var language: GraphQLEnum - - public init( - id: ID, - country: GraphQLEnum, - language: GraphQLEnum - ) { - self.id = id - self.country = country - self.language = language - } + nonisolated struct GetCartQuery: GraphQLQuery { + static let operationName: String = "GetCart" + static let operationDocument: ApolloAPI.OperationDocument = .init( + definition: .init( + #"query GetCart($id: ID!, $country: CountryCode!, $language: LanguageCode!) @inContext(country: $country, language: $language) { cart(id: $id) { __typename ...CartFragment } }"#, + fragments: [CartDeliveryGroupFragment.self, CartFragment.self, CartLineFragment.self] + )) + + public var id: ID + public var country: GraphQLEnum + public var language: GraphQLEnum + + public init( + id: ID, + country: GraphQLEnum, + language: GraphQLEnum + ) { + self.id = id + self.country = country + self.language = language + } - @_spi(Unsafe) public var __variables: Variables? { - [ - "id": id, - "country": country, - "language": language - ] + @_spi(Unsafe) public var __variables: Variables? { [ + "id": id, + "country": country, + "language": language + ] } + + nonisolated struct Data: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.QueryRoot } + static var __selections: [ApolloAPI.Selection] { [ + .field("cart", Cart?.self, arguments: ["id": .variable("id")]), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + GetCartQuery.Data.self + ] } + + /// Returns a [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart) by its ID. The cart contains the merchandise lines a buyer intends to purchase, along with estimated costs, applied discounts, gift cards, and delivery options. + /// + /// Use the [`checkoutUrl`](https://shopify.dev/docs/api/storefront/latest/queries/cart#returns-Cart.fields.checkoutUrl) field to redirect buyers to Shopify's web checkout when they're ready to complete their purchase. For more information, refer to [Manage a cart with the Storefront API](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/cart/manage). + var cart: Cart? { __data["cart"] } + + /// Cart + /// + /// Parent Type: `Cart` + nonisolated struct Cart: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Cart } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .fragment(CartFragment.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + GetCartQuery.Data.Cart.self, + CartFragment.self + ] } + + /// A globally-unique ID. + var id: Storefront.ID { __data["id"] } + /// The URL of the checkout for the cart. + var checkoutUrl: Storefront.URL { __data["checkoutUrl"] } + /// The total number of items in the cart. + var totalQuantity: Int { __data["totalQuantity"] } + /// Information about the buyer that's interacting with the cart. + var buyerIdentity: BuyerIdentity { __data["buyerIdentity"] } + /// The delivery groups available for the cart, based on the buyer identity default + /// delivery address preference or the default address of the logged-in customer. + var deliveryGroups: DeliveryGroups { __data["deliveryGroups"] } + /// A list of lines containing information about the items the customer intends to purchase. + var lines: Lines { __data["lines"] } + /// The estimated costs that the buyer will pay at checkout. The costs are subject to change and changes will be reflected at checkout. The `cost` field uses the `buyerIdentity` field to determine [international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing). + var cost: Cost { __data["cost"] } + + struct Fragments: FragmentContainer { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + var cartFragment: CartFragment { _toFragment() } } - struct Data: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.QueryRoot - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("cart", Cart?.self, arguments: ["id": .variable("id")]) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - GetCartQuery.Data.self - ] - } - - /// Returns a [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart) by its ID. The cart contains the merchandise lines a buyer intends to purchase, along with estimated costs, applied discounts, gift cards, and delivery options. - /// - /// Use the [`checkoutUrl`](https://shopify.dev/docs/api/storefront/latest/queries/cart#returns-Cart.fields.checkoutUrl) field to redirect buyers to Shopify's web checkout when they're ready to complete their purchase. For more information, refer to [Manage a cart with the Storefront API](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/cart/manage). - var cart: Cart? { - __data["cart"] - } - - /// Cart - /// - /// Parent Type: `Cart` - struct Cart: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Cart - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .fragment(CartFragment.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - GetCartQuery.Data.Cart.self, - CartFragment.self - ] - } - - /// A globally-unique ID. - var id: Storefront.ID { - __data["id"] - } - - /// The URL of the checkout for the cart. - var checkoutUrl: Storefront.URL { - __data["checkoutUrl"] - } - - /// The total number of items in the cart. - var totalQuantity: Int { - __data["totalQuantity"] - } - - /// Information about the buyer that's interacting with the cart. - var buyerIdentity: BuyerIdentity { - __data["buyerIdentity"] - } - - /// The delivery groups available for the cart, based on the buyer identity default - /// delivery address preference or the default address of the logged-in customer. - var deliveryGroups: DeliveryGroups { - __data["deliveryGroups"] - } - - /// A list of lines containing information about the items the customer intends to purchase. - var lines: Lines { - __data["lines"] - } - - /// The estimated costs that the buyer will pay at checkout. The costs are subject to change and changes will be reflected at checkout. The `cost` field uses the `buyerIdentity` field to determine [international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing). - var cost: Cost { - __data["cost"] - } - - struct Fragments: FragmentContainer { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - var cartFragment: CartFragment { - _toFragment() - } - } - - typealias BuyerIdentity = CartFragment.BuyerIdentity - - typealias DeliveryGroups = CartFragment.DeliveryGroups - - typealias Lines = CartFragment.Lines - - typealias Cost = CartFragment.Cost - } - } + typealias BuyerIdentity = CartFragment.BuyerIdentity + + typealias DeliveryGroups = CartFragment.DeliveryGroups + + typealias Lines = CartFragment.Lines + + typealias Cost = CartFragment.Cost + } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Operations/Queries/GetProductsQuery.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Operations/Queries/GetProductsQuery.graphql.swift index f5920c6b..718bb350 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Operations/Queries/GetProductsQuery.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Operations/Queries/GetProductsQuery.graphql.swift @@ -5,403 +5,257 @@ @_spi(Execution) @_spi(Unsafe) import ApolloAPI extension Storefront { - struct GetProductsQuery: GraphQLQuery { - static let operationName: String = "GetProducts" - static let operationDocument: ApolloAPI.OperationDocument = .init( - definition: .init( - #"query GetProducts($first: Int = 20, $country: CountryCode!, $language: LanguageCode!) @inContext(country: $country, language: $language) { products(first: $first) { __typename nodes { __typename id title handle description vendor featuredImage { __typename url } collections(first: 1) { __typename nodes { __typename id title } } variants(first: 1) { __typename nodes { __typename id title availableForSale price { __typename amount currencyCode } } } } } }"# - ) - ) - - public var first: GraphQLNullable - public var country: GraphQLEnum - public var language: GraphQLEnum - - public init( - first: GraphQLNullable = 20, - country: GraphQLEnum, - language: GraphQLEnum - ) { - self.first = first - self.country = country - self.language = language - } - - @_spi(Unsafe) public var __variables: Variables? { - [ - "first": first, - "country": country, - "language": language - ] - } + nonisolated struct GetProductsQuery: GraphQLQuery { + static let operationName: String = "GetProducts" + static let operationDocument: ApolloAPI.OperationDocument = .init( + definition: .init( + #"query GetProducts($first: Int = 20, $country: CountryCode!, $language: LanguageCode!) @inContext(country: $country, language: $language) { products(first: $first) { __typename nodes { __typename id title handle description vendor featuredImage { __typename url } collections(first: 1) { __typename nodes { __typename id title } } variants(first: 1) { __typename nodes { __typename id title availableForSale price { __typename amount currencyCode } } } } } }"# + )) + + public var first: GraphQLNullable + public var country: GraphQLEnum + public var language: GraphQLEnum + + public init( + first: GraphQLNullable = 20, + country: GraphQLEnum, + language: GraphQLEnum + ) { + self.first = first + self.country = country + self.language = language + } - struct Data: Storefront.SelectionSet { + @_spi(Unsafe) public var __variables: Variables? { [ + "first": first, + "country": country, + "language": language + ] } + + nonisolated struct Data: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.QueryRoot } + static var __selections: [ApolloAPI.Selection] { [ + .field("products", Products.self, arguments: ["first": .variable("first")]), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + GetProductsQuery.Data.self + ] } + + /// Returns a paginated list of the shop's [products](https://shopify.dev/docs/api/storefront/current/objects/Product). + /// + /// For full-text storefront search, use the [`search`](https://shopify.dev/docs/api/storefront/current/queries/search) query instead. + var products: Products { __data["products"] } + + /// Products + /// + /// Parent Type: `ProductConnection` + nonisolated struct Products: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.ProductConnection } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("nodes", [Node].self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + GetProductsQuery.Data.Products.self + ] } + + /// A list of the nodes contained in ProductEdge. + var nodes: [Node] { __data["nodes"] } + + /// Products.Node + /// + /// Parent Type: `Product` + nonisolated struct Node: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Product } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("id", Storefront.ID.self), + .field("title", String.self), + .field("handle", String.self), + .field("description", String.self), + .field("vendor", String.self), + .field("featuredImage", FeaturedImage?.self), + .field("collections", Collections.self, arguments: ["first": 1]), + .field("variants", Variants.self, arguments: ["first": 1]), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + GetProductsQuery.Data.Products.Node.self + ] } + + /// A globally-unique ID. + var id: Storefront.ID { __data["id"] } + /// The name for the product that displays to customers. The title is used to construct the product's handle. + /// For example, if a product is titled "Black Sunglasses", then the handle is `black-sunglasses`. + var title: String { __data["title"] } + /// A unique, human-readable string of the product's title. + /// A handle can contain letters, hyphens (`-`), and numbers, but no spaces. + /// The handle is used in the online store URL for the product. + var handle: String { __data["handle"] } + /// A single-line description of the product, with [HTML tags](https://developer.mozilla.org/en-US/docs/Web/HTML) removed. + var description: String { __data["description"] } + /// The name of the product's vendor. + var vendor: String { __data["vendor"] } + /// The featured image for the product. + /// + /// This field is functionally equivalent to `images(first: 1)`. + var featuredImage: FeaturedImage? { __data["featuredImage"] } + /// A list of [collections](/docs/api/storefront/latest/objects/Collection) that include the product. + var collections: Collections { __data["collections"] } + /// A list of [variants](/docs/api/storefront/latest/objects/ProductVariant) that are associated with the product. + var variants: Variants { __data["variants"] } + + /// Products.Node.FeaturedImage + /// + /// Parent Type: `Image` + nonisolated struct FeaturedImage: Storefront.SelectionSet { let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.QueryRoot - } + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Image } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("url", Storefront.URL.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + GetProductsQuery.Data.Products.Node.FeaturedImage.self + ] } + + /// The location of the image as a URL. + /// + /// If no transform options are specified, then the original image will be preserved including any pre-applied transforms. + /// + /// All transformation options are considered "best-effort". Any transformation that the original image type doesn't support will be ignored. + /// + /// If you need multiple variations of the same image, then you can use [GraphQL aliases](https://graphql.org/learn/queries/#aliases). + var url: Storefront.URL { __data["url"] } + } + + /// Products.Node.Collections + /// + /// Parent Type: `CollectionConnection` + nonisolated struct Collections: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } - static var __selections: [ApolloAPI.Selection] { - [ - .field("products", Products.self, arguments: ["first": .variable("first")]) - ] - } + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CollectionConnection } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("nodes", [Node].self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + GetProductsQuery.Data.Products.Node.Collections.self + ] } - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - GetProductsQuery.Data.self - ] - } + /// A list of the nodes contained in CollectionEdge. + var nodes: [Node] { __data["nodes"] } - /// Returns a paginated list of the shop's [products](https://shopify.dev/docs/api/storefront/current/objects/Product). + /// Products.Node.Collections.Node /// - /// For full-text storefront search, use the [`search`](https://shopify.dev/docs/api/storefront/current/queries/search) query instead. - var products: Products { - __data["products"] + /// Parent Type: `Collection` + nonisolated struct Node: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Collection } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("id", Storefront.ID.self), + .field("title", String.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + GetProductsQuery.Data.Products.Node.Collections.Node.self + ] } + + /// A globally-unique ID. + var id: Storefront.ID { __data["id"] } + /// The collection’s name. Limit of 255 characters. + var title: String { __data["title"] } } + } - /// Products + /// Products.Node.Variants + /// + /// Parent Type: `ProductVariantConnection` + nonisolated struct Variants: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.ProductVariantConnection } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("nodes", [Node].self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + GetProductsQuery.Data.Products.Node.Variants.self + ] } + + /// A list of the nodes contained in ProductVariantEdge. + var nodes: [Node] { __data["nodes"] } + + /// Products.Node.Variants.Node /// - /// Parent Type: `ProductConnection` - struct Products: Storefront.SelectionSet { + /// Parent Type: `ProductVariant` + nonisolated struct Node: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.ProductVariant } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("id", Storefront.ID.self), + .field("title", String.self), + .field("availableForSale", Bool.self), + .field("price", Price.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + GetProductsQuery.Data.Products.Node.Variants.Node.self + ] } + + /// A globally-unique ID. + var id: Storefront.ID { __data["id"] } + /// The product variant’s title. + var title: String { __data["title"] } + /// Indicates if the product variant is available for sale. + var availableForSale: Bool { __data["availableForSale"] } + /// The product variant’s price. + var price: Price { __data["price"] } + + /// Products.Node.Variants.Node.Price + /// + /// Parent Type: `MoneyV2` + nonisolated struct Price: Storefront.SelectionSet { let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.ProductConnection - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("nodes", [Node].self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - GetProductsQuery.Data.Products.self - ] - } - - /// A list of the nodes contained in ProductEdge. - var nodes: [Node] { - __data["nodes"] - } - - /// Products.Node - /// - /// Parent Type: `Product` - struct Node: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Product - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("id", Storefront.ID.self), - .field("title", String.self), - .field("handle", String.self), - .field("description", String.self), - .field("vendor", String.self), - .field("featuredImage", FeaturedImage?.self), - .field("collections", Collections.self, arguments: ["first": 1]), - .field("variants", Variants.self, arguments: ["first": 1]) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - GetProductsQuery.Data.Products.Node.self - ] - } - - /// A globally-unique ID. - var id: Storefront.ID { - __data["id"] - } - - /// The name for the product that displays to customers. The title is used to construct the product's handle. - /// For example, if a product is titled "Black Sunglasses", then the handle is `black-sunglasses`. - var title: String { - __data["title"] - } - - /// A unique, human-readable string of the product's title. - /// A handle can contain letters, hyphens (`-`), and numbers, but no spaces. - /// The handle is used in the online store URL for the product. - var handle: String { - __data["handle"] - } - - /// A single-line description of the product, with [HTML tags](https://developer.mozilla.org/en-US/docs/Web/HTML) removed. - var description: String { - __data["description"] - } - - /// The name of the product's vendor. - var vendor: String { - __data["vendor"] - } - - /// The featured image for the product. - /// - /// This field is functionally equivalent to `images(first: 1)`. - var featuredImage: FeaturedImage? { - __data["featuredImage"] - } - - /// A list of [collections](/docs/api/storefront/latest/objects/Collection) that include the product. - var collections: Collections { - __data["collections"] - } - - /// A list of [variants](/docs/api/storefront/latest/objects/ProductVariant) that are associated with the product. - var variants: Variants { - __data["variants"] - } - - /// Products.Node.FeaturedImage - /// - /// Parent Type: `Image` - struct FeaturedImage: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Image - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("url", Storefront.URL.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - GetProductsQuery.Data.Products.Node.FeaturedImage.self - ] - } - - /// The location of the image as a URL. - /// - /// If no transform options are specified, then the original image will be preserved including any pre-applied transforms. - /// - /// All transformation options are considered "best-effort". Any transformation that the original image type doesn't support will be ignored. - /// - /// If you need multiple variations of the same image, then you can use [GraphQL aliases](https://graphql.org/learn/queries/#aliases). - var url: Storefront.URL { - __data["url"] - } - } - - /// Products.Node.Collections - /// - /// Parent Type: `CollectionConnection` - struct Collections: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CollectionConnection - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("nodes", [Node].self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - GetProductsQuery.Data.Products.Node.Collections.self - ] - } - - /// A list of the nodes contained in CollectionEdge. - var nodes: [Node] { - __data["nodes"] - } - - /// Products.Node.Collections.Node - /// - /// Parent Type: `Collection` - struct Node: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Collection - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("id", Storefront.ID.self), - .field("title", String.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - GetProductsQuery.Data.Products.Node.Collections.Node.self - ] - } - - /// A globally-unique ID. - var id: Storefront.ID { - __data["id"] - } - - /// The collection’s name. Limit of 255 characters. - var title: String { - __data["title"] - } - } - } - - /// Products.Node.Variants - /// - /// Parent Type: `ProductVariantConnection` - struct Variants: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.ProductVariantConnection - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("nodes", [Node].self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - GetProductsQuery.Data.Products.Node.Variants.self - ] - } - - /// A list of the nodes contained in ProductVariantEdge. - var nodes: [Node] { - __data["nodes"] - } - - /// Products.Node.Variants.Node - /// - /// Parent Type: `ProductVariant` - struct Node: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.ProductVariant - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("id", Storefront.ID.self), - .field("title", String.self), - .field("availableForSale", Bool.self), - .field("price", Price.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - GetProductsQuery.Data.Products.Node.Variants.Node.self - ] - } - - /// A globally-unique ID. - var id: Storefront.ID { - __data["id"] - } - - /// The product variant’s title. - var title: String { - __data["title"] - } - - /// Indicates if the product variant is available for sale. - var availableForSale: Bool { - __data["availableForSale"] - } - - /// The product variant’s price. - var price: Price { - __data["price"] - } - - /// Products.Node.Variants.Node.Price - /// - /// Parent Type: `MoneyV2` - struct Price: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.MoneyV2 - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("amount", Storefront.Decimal.self), - .field("currencyCode", GraphQLEnum.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - GetProductsQuery.Data.Products.Node.Variants.Node.Price.self - ] - } - - /// Decimal money amount. - var amount: Storefront.Decimal { - __data["amount"] - } - - /// Currency of the money. - var currencyCode: GraphQLEnum { - __data["currencyCode"] - } - } - } - } - } + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.MoneyV2 } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("amount", Storefront.Decimal.self), + .field("currencyCode", GraphQLEnum.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + GetProductsQuery.Data.Products.Node.Variants.Node.Price.self + ] } + + /// Decimal money amount. + var amount: Storefront.Decimal { __data["amount"] } + /// Currency of the money. + var currencyCode: GraphQLEnum { __data["currencyCode"] } + } } + } } + } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/CartDeliveryGroupType.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/CartDeliveryGroupType.graphql.swift index a6e40550..fdc6016f 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/CartDeliveryGroupType.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/CartDeliveryGroupType.graphql.swift @@ -4,12 +4,13 @@ @_spi(Internal) import ApolloAPI extension Storefront { - /// Defines what type of merchandise is in the delivery group. - enum CartDeliveryGroupType: String, EnumType { - /// The delivery group only contains subscription merchandise. - case subscription = "SUBSCRIPTION" - /// The delivery group only contains merchandise that is either a one time purchase or a first delivery of - /// subscription merchandise. - case oneTimePurchase = "ONE_TIME_PURCHASE" - } -} + /// Defines what type of merchandise is in the delivery group. + nonisolated enum CartDeliveryGroupType: String, EnumType { + /// The delivery group only contains subscription merchandise. + case subscription = "SUBSCRIPTION" + /// The delivery group only contains merchandise that is either a one time purchase or a first delivery of + /// subscription merchandise. + case oneTimePurchase = "ONE_TIME_PURCHASE" + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/CartErrorCode.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/CartErrorCode.graphql.swift index 20642961..33f3984a 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/CartErrorCode.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/CartErrorCode.graphql.swift @@ -4,107 +4,124 @@ @_spi(Internal) import ApolloAPI extension Storefront { - /// Error codes returned by [`CartUserError`](https://shopify.dev/docs/api/storefront/current/objects/CartUserError) during cart mutations. Covers validation failures for addresses, quantities, delivery options, merchandise lines, discount codes, and metafields. - enum CartErrorCode: String, EnumType { - /// The input value is invalid. - case invalid = "INVALID" - /// The input value should be less than the maximum value allowed. - case lessThan = "LESS_THAN" - /// Merchandise line was not found in cart. - case invalidMerchandiseLine = "INVALID_MERCHANDISE_LINE" - /// Missing discount code. - case missingDiscountCode = "MISSING_DISCOUNT_CODE" - /// Missing note. - case missingNote = "MISSING_NOTE" - /// The note length must be below the specified maximum. - case noteTooLong = "NOTE_TOO_LONG" - /// Delivery group was not found in cart. - case invalidDeliveryGroup = "INVALID_DELIVERY_GROUP" - /// Delivery option was not valid. - case invalidDeliveryOption = "INVALID_DELIVERY_OPTION" - /// The delivery group is in a pending state. - case pendingDeliveryGroups = "PENDING_DELIVERY_GROUPS" - /// The payment wasn't valid. - case invalidPayment = "INVALID_PAYMENT" - /// The payment method is not supported. - case paymentMethodNotSupported = "PAYMENT_METHOD_NOT_SUPPORTED" - /// The payment method is not applicable. - case paymentMethodNotApplicable = "PAYMENT_METHOD_NOT_APPLICABLE" - /// The payment is invalid. Deferred payment is required. - case invalidPaymentDeferredPaymentRequired = "INVALID_PAYMENT_DEFERRED_PAYMENT_REQUIRED" - /// Cannot update payment on an empty cart - case invalidPaymentEmptyCart = "INVALID_PAYMENT_EMPTY_CART" - /// Validation failed. - case validationCustom = "VALIDATION_CUSTOM" - /// The metafields were not valid. - case invalidMetafields = "INVALID_METAFIELDS" - /// The customer access token is required when setting a company location. - case missingCustomerAccessToken = "MISSING_CUSTOMER_ACCESS_TOKEN" - /// Company location not found or not allowed. - case invalidCompanyLocation = "INVALID_COMPANY_LOCATION" - /// The quantity must be a multiple of the specified increment. - case invalidIncrement = "INVALID_INCREMENT" - /// The quantity must be above the specified minimum for the item. - case minimumNotMet = "MINIMUM_NOT_MET" - /// The quantity must be below the specified maximum for the item. - case maximumExceeded = "MAXIMUM_EXCEEDED" - /// Too many delivery addresses on Cart. - case tooManyDeliveryAddresses = "TOO_MANY_DELIVERY_ADDRESSES" - /// Only one delivery address can be selected. - case onlyOneDeliveryAddressCanBeSelected = "ONLY_ONE_DELIVERY_ADDRESS_CAN_BE_SELECTED" - /// The delivery address was not found. - case invalidDeliveryAddressId = "INVALID_DELIVERY_ADDRESS_ID" - /// Buyer cannot purchase for company location. - case buyerCannotPurchaseForCompanyLocation = "BUYER_CANNOT_PURCHASE_FOR_COMPANY_LOCATION" - /// The specified address field is required. - case addressFieldIsRequired = "ADDRESS_FIELD_IS_REQUIRED" - /// The specified address field is too long. - case addressFieldIsTooLong = "ADDRESS_FIELD_IS_TOO_LONG" - /// The specified address field contains emojis. - case addressFieldContainsEmojis = "ADDRESS_FIELD_CONTAINS_EMOJIS" - /// The specified address field contains HTML tags. - case addressFieldContainsHtmlTags = "ADDRESS_FIELD_CONTAINS_HTML_TAGS" - /// The specified address field contains a URL. - case addressFieldContainsUrl = "ADDRESS_FIELD_CONTAINS_URL" - /// The specified address field does not match the expected pattern. - case addressFieldDoesNotMatchExpectedPattern = "ADDRESS_FIELD_DOES_NOT_MATCH_EXPECTED_PATTERN" - /// The given zip code is invalid for the provided province. - case invalidZipCodeForProvince = "INVALID_ZIP_CODE_FOR_PROVINCE" - /// The given zip code is invalid for the provided country. - case invalidZipCodeForCountry = "INVALID_ZIP_CODE_FOR_COUNTRY" - /// The given zip code is unsupported. - case zipCodeNotSupported = "ZIP_CODE_NOT_SUPPORTED" - /// The given province cannot be found. - case provinceNotFound = "PROVINCE_NOT_FOUND" - /// A general error occurred during address validation. - case unspecifiedAddressError = "UNSPECIFIED_ADDRESS_ERROR" - /// Credit card has expired. - case paymentsCreditCardBaseExpired = "PAYMENTS_CREDIT_CARD_BASE_EXPIRED" - /// Credit card gateway is not supported. - case paymentsCreditCardBaseGatewayNotSupported = "PAYMENTS_CREDIT_CARD_BASE_GATEWAY_NOT_SUPPORTED" - /// Credit card error. - case paymentsCreditCardGeneric = "PAYMENTS_CREDIT_CARD_GENERIC" - /// Credit card month is invalid. - case paymentsCreditCardMonthInclusion = "PAYMENTS_CREDIT_CARD_MONTH_INCLUSION" - /// Credit card number is invalid. - case paymentsCreditCardNumberInvalid = "PAYMENTS_CREDIT_CARD_NUMBER_INVALID" - /// Credit card number format is invalid. - case paymentsCreditCardNumberInvalidFormat = "PAYMENTS_CREDIT_CARD_NUMBER_INVALID_FORMAT" - /// Credit card verification value is blank. - case paymentsCreditCardVerificationValueBlank = "PAYMENTS_CREDIT_CARD_VERIFICATION_VALUE_BLANK" - /// Credit card verification value is invalid for card type. - case paymentsCreditCardVerificationValueInvalidForCardType = "PAYMENTS_CREDIT_CARD_VERIFICATION_VALUE_INVALID_FOR_CARD_TYPE" - /// Credit card has expired. - case paymentsCreditCardYearExpired = "PAYMENTS_CREDIT_CARD_YEAR_EXPIRED" - /// Credit card expiry year is invalid. - case paymentsCreditCardYearInvalidExpiryYear = "PAYMENTS_CREDIT_CARD_YEAR_INVALID_EXPIRY_YEAR" - /// Variant can only be purchased with a selling plan. - case variantRequiresSellingPlan = "VARIANT_REQUIRES_SELLING_PLAN" - /// Selling plan is not applicable. - case sellingPlanNotApplicable = "SELLING_PLAN_NOT_APPLICABLE" - /// An error occurred while saving the cart. - case serviceUnavailable = "SERVICE_UNAVAILABLE" - /// The cart is too large to save. - case cartTooLarge = "CART_TOO_LARGE" - } -} + /// Error codes returned by [`CartUserError`](https://shopify.dev/docs/api/storefront/current/objects/CartUserError) during cart mutations. Covers validation failures for addresses, quantities, delivery options, merchandise lines, discount codes, and metafields. + nonisolated enum CartErrorCode: String, EnumType { + /// The input value is invalid. + case invalid = "INVALID" + /// The input value should be less than the maximum value allowed. + case lessThan = "LESS_THAN" + /// Merchandise line was not found in cart. + case invalidMerchandiseLine = "INVALID_MERCHANDISE_LINE" + /// Item cannot be purchased as configured. + case merchandiseNotApplicable = "MERCHANDISE_NOT_APPLICABLE" + /// An error occurred while processing cart transformations. + case merchandiseLineTransformersRunError = "MERCHANDISE_LINE_TRANSFORMERS_RUN_ERROR" + /// Missing discount code. + case missingDiscountCode = "MISSING_DISCOUNT_CODE" + /// Missing note. + case missingNote = "MISSING_NOTE" + /// The note length must be below the specified maximum. + case noteTooLong = "NOTE_TOO_LONG" + /// Delivery group was not found in cart. + case invalidDeliveryGroup = "INVALID_DELIVERY_GROUP" + /// Delivery option was not valid. + case invalidDeliveryOption = "INVALID_DELIVERY_OPTION" + /// The delivery group is in a pending state. + case pendingDeliveryGroups = "PENDING_DELIVERY_GROUPS" + /// The payment wasn't valid. + case invalidPayment = "INVALID_PAYMENT" + /// The payment method is not supported. + case paymentMethodNotSupported = "PAYMENT_METHOD_NOT_SUPPORTED" + /// The payment method is not applicable. + case paymentMethodNotApplicable = "PAYMENT_METHOD_NOT_APPLICABLE" + /// The payment is invalid. Deferred payment is required. + case invalidPaymentDeferredPaymentRequired = "INVALID_PAYMENT_DEFERRED_PAYMENT_REQUIRED" + /// Cannot update payment on an empty cart + case invalidPaymentEmptyCart = "INVALID_PAYMENT_EMPTY_CART" + /// Validation failed. + case validationCustom = "VALIDATION_CUSTOM" + /// The metafields were not valid. + case invalidMetafields = "INVALID_METAFIELDS" + /// The customer access token is required when setting a company location. + case missingCustomerAccessToken = "MISSING_CUSTOMER_ACCESS_TOKEN" + /// Company location not found or not allowed. + case invalidCompanyLocation = "INVALID_COMPANY_LOCATION" + /// The quantity must be a multiple of the specified increment. + case invalidIncrement = "INVALID_INCREMENT" + /// The quantity must be above the specified minimum for the item. + case minimumNotMet = "MINIMUM_NOT_MET" + /// The quantity must be below the specified maximum for the item. + case maximumExceeded = "MAXIMUM_EXCEEDED" + /// Too many delivery addresses on Cart. + case tooManyDeliveryAddresses = "TOO_MANY_DELIVERY_ADDRESSES" + /// Only one delivery address can be selected. + case onlyOneDeliveryAddressCanBeSelected = "ONLY_ONE_DELIVERY_ADDRESS_CAN_BE_SELECTED" + /// The delivery address was not found. + case invalidDeliveryAddressId = "INVALID_DELIVERY_ADDRESS_ID" + /// Buyer cannot purchase for company location. + case buyerCannotPurchaseForCompanyLocation = "BUYER_CANNOT_PURCHASE_FOR_COMPANY_LOCATION" + /// Bundles and addons cannot be mixed. + case bundlesAndAddonsCannotBeMixed = "BUNDLES_AND_ADDONS_CANNOT_BE_MIXED" + /// Cannot reference existing parent lines by variant_id. + case parentLineInvalidReference = "PARENT_LINE_INVALID_REFERENCE" + /// Parent line not found. + case parentLineNotFound = "PARENT_LINE_NOT_FOUND" + /// Parent line nesting is too deep or circular. + case parentLineNestingTooDeep = "PARENT_LINE_NESTING_TOO_DEEP" + /// Nested cartlines are blocked due to an incompatibility. + case parentLineOperationBlocked = "PARENT_LINE_OPERATION_BLOCKED" + /// The specified gift card recipient is invalid. + case giftCardRecipientInvalid = "GIFT_CARD_RECIPIENT_INVALID" + /// The specified address field is required. + case addressFieldIsRequired = "ADDRESS_FIELD_IS_REQUIRED" + /// The specified address field is too long. + case addressFieldIsTooLong = "ADDRESS_FIELD_IS_TOO_LONG" + /// The specified address field contains emojis. + case addressFieldContainsEmojis = "ADDRESS_FIELD_CONTAINS_EMOJIS" + /// The specified address field contains HTML tags. + case addressFieldContainsHtmlTags = "ADDRESS_FIELD_CONTAINS_HTML_TAGS" + /// The specified address field contains a URL. + case addressFieldContainsUrl = "ADDRESS_FIELD_CONTAINS_URL" + /// The specified address field does not match the expected pattern. + case addressFieldDoesNotMatchExpectedPattern = "ADDRESS_FIELD_DOES_NOT_MATCH_EXPECTED_PATTERN" + /// The given zip code is invalid for the provided province. + case invalidZipCodeForProvince = "INVALID_ZIP_CODE_FOR_PROVINCE" + /// The given zip code is invalid for the provided country. + case invalidZipCodeForCountry = "INVALID_ZIP_CODE_FOR_COUNTRY" + /// The given zip code is unsupported. + case zipCodeNotSupported = "ZIP_CODE_NOT_SUPPORTED" + /// The given province cannot be found. + case provinceNotFound = "PROVINCE_NOT_FOUND" + /// A general error occurred during address validation. + case unspecifiedAddressError = "UNSPECIFIED_ADDRESS_ERROR" + /// Credit card has expired. + case paymentsCreditCardBaseExpired = "PAYMENTS_CREDIT_CARD_BASE_EXPIRED" + /// Credit card gateway is not supported. + case paymentsCreditCardBaseGatewayNotSupported = "PAYMENTS_CREDIT_CARD_BASE_GATEWAY_NOT_SUPPORTED" + /// Credit card error. + case paymentsCreditCardGeneric = "PAYMENTS_CREDIT_CARD_GENERIC" + /// Credit card month is invalid. + case paymentsCreditCardMonthInclusion = "PAYMENTS_CREDIT_CARD_MONTH_INCLUSION" + /// Credit card number is invalid. + case paymentsCreditCardNumberInvalid = "PAYMENTS_CREDIT_CARD_NUMBER_INVALID" + /// Credit card number format is invalid. + case paymentsCreditCardNumberInvalidFormat = "PAYMENTS_CREDIT_CARD_NUMBER_INVALID_FORMAT" + /// Credit card verification value is blank. + case paymentsCreditCardVerificationValueBlank = "PAYMENTS_CREDIT_CARD_VERIFICATION_VALUE_BLANK" + /// Credit card verification value is invalid for card type. + case paymentsCreditCardVerificationValueInvalidForCardType = "PAYMENTS_CREDIT_CARD_VERIFICATION_VALUE_INVALID_FOR_CARD_TYPE" + /// Credit card has expired. + case paymentsCreditCardYearExpired = "PAYMENTS_CREDIT_CARD_YEAR_EXPIRED" + /// Credit card expiry year is invalid. + case paymentsCreditCardYearInvalidExpiryYear = "PAYMENTS_CREDIT_CARD_YEAR_INVALID_EXPIRY_YEAR" + /// Variant can only be purchased with a selling plan. + case variantRequiresSellingPlan = "VARIANT_REQUIRES_SELLING_PLAN" + /// Selling plan is not applicable. + case sellingPlanNotApplicable = "SELLING_PLAN_NOT_APPLICABLE" + /// An error occurred while saving the cart. + case serviceUnavailable = "SERVICE_UNAVAILABLE" + /// The cart is too large to save. + case cartTooLarge = "CART_TOO_LARGE" + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/CountryCode.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/CountryCode.graphql.swift index 92f2ee22..5bcc55f7 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/CountryCode.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/CountryCode.graphql.swift @@ -4,500 +4,501 @@ @_spi(Internal) import ApolloAPI extension Storefront { - /// The code designating a country/region, which generally follows ISO 3166-1 alpha-2 guidelines. - /// If a territory doesn't have a country code value in the `CountryCode` enum, then it might be considered a subdivision - /// of another country. For example, the territories associated with Spain are represented by the country code `ES`, - /// and the territories associated with the United States of America are represented by the country code `US`. - enum CountryCode: String, EnumType { - /// Afghanistan. - case af = "AF" - /// Åland Islands. - case ax = "AX" - /// Albania. - case al = "AL" - /// Algeria. - case dz = "DZ" - /// Andorra. - case ad = "AD" - /// Angola. - case ao = "AO" - /// Anguilla. - case ai = "AI" - /// Antigua & Barbuda. - case ag = "AG" - /// Argentina. - case ar = "AR" - /// Armenia. - case am = "AM" - /// Aruba. - case aw = "AW" - /// Ascension Island. - case ac = "AC" - /// Australia. - case au = "AU" - /// Austria. - case at = "AT" - /// Azerbaijan. - case az = "AZ" - /// Bahamas. - case bs = "BS" - /// Bahrain. - case bh = "BH" - /// Bangladesh. - case bd = "BD" - /// Barbados. - case bb = "BB" - /// Belarus. - case by = "BY" - /// Belgium. - case be = "BE" - /// Belize. - case bz = "BZ" - /// Benin. - case bj = "BJ" - /// Bermuda. - case bm = "BM" - /// Bhutan. - case bt = "BT" - /// Bolivia. - case bo = "BO" - /// Bosnia & Herzegovina. - case ba = "BA" - /// Botswana. - case bw = "BW" - /// Bouvet Island. - case bv = "BV" - /// Brazil. - case br = "BR" - /// British Indian Ocean Territory. - case io = "IO" - /// Brunei. - case bn = "BN" - /// Bulgaria. - case bg = "BG" - /// Burkina Faso. - case bf = "BF" - /// Burundi. - case bi = "BI" - /// Cambodia. - case kh = "KH" - /// Canada. - case ca = "CA" - /// Cape Verde. - case cv = "CV" - /// Caribbean Netherlands. - case bq = "BQ" - /// Cayman Islands. - case ky = "KY" - /// Central African Republic. - case cf = "CF" - /// Chad. - case td = "TD" - /// Chile. - case cl = "CL" - /// China. - case cn = "CN" - /// Christmas Island. - case cx = "CX" - /// Cocos (Keeling) Islands. - case cc = "CC" - /// Colombia. - case co = "CO" - /// Comoros. - case km = "KM" - /// Congo - Brazzaville. - case cg = "CG" - /// Congo - Kinshasa. - case cd = "CD" - /// Cook Islands. - case ck = "CK" - /// Costa Rica. - case cr = "CR" - /// Croatia. - case hr = "HR" - /// Cuba. - case cu = "CU" - /// Curaçao. - case cw = "CW" - /// Cyprus. - case cy = "CY" - /// Czechia. - case cz = "CZ" - /// Côte d’Ivoire. - case ci = "CI" - /// Denmark. - case dk = "DK" - /// Djibouti. - case dj = "DJ" - /// Dominica. - case dm = "DM" - /// Dominican Republic. - case `do` = "DO" - /// Ecuador. - case ec = "EC" - /// Egypt. - case eg = "EG" - /// El Salvador. - case sv = "SV" - /// Equatorial Guinea. - case gq = "GQ" - /// Eritrea. - case er = "ER" - /// Estonia. - case ee = "EE" - /// Eswatini. - case sz = "SZ" - /// Ethiopia. - case et = "ET" - /// Falkland Islands. - case fk = "FK" - /// Faroe Islands. - case fo = "FO" - /// Fiji. - case fj = "FJ" - /// Finland. - case fi = "FI" - /// France. - case fr = "FR" - /// French Guiana. - case gf = "GF" - /// French Polynesia. - case pf = "PF" - /// French Southern Territories. - case tf = "TF" - /// Gabon. - case ga = "GA" - /// Gambia. - case gm = "GM" - /// Georgia. - case ge = "GE" - /// Germany. - case de = "DE" - /// Ghana. - case gh = "GH" - /// Gibraltar. - case gi = "GI" - /// Greece. - case gr = "GR" - /// Greenland. - case gl = "GL" - /// Grenada. - case gd = "GD" - /// Guadeloupe. - case gp = "GP" - /// Guatemala. - case gt = "GT" - /// Guernsey. - case gg = "GG" - /// Guinea. - case gn = "GN" - /// Guinea-Bissau. - case gw = "GW" - /// Guyana. - case gy = "GY" - /// Haiti. - case ht = "HT" - /// Heard & McDonald Islands. - case hm = "HM" - /// Vatican City. - case va = "VA" - /// Honduras. - case hn = "HN" - /// Hong Kong SAR. - case hk = "HK" - /// Hungary. - case hu = "HU" - /// Iceland. - case `is` = "IS" - /// India. - case `in` = "IN" - /// Indonesia. - case id = "ID" - /// Iran. - case ir = "IR" - /// Iraq. - case iq = "IQ" - /// Ireland. - case ie = "IE" - /// Isle of Man. - case im = "IM" - /// Israel. - case il = "IL" - /// Italy. - case it = "IT" - /// Jamaica. - case jm = "JM" - /// Japan. - case jp = "JP" - /// Jersey. - case je = "JE" - /// Jordan. - case jo = "JO" - /// Kazakhstan. - case kz = "KZ" - /// Kenya. - case ke = "KE" - /// Kiribati. - case ki = "KI" - /// North Korea. - case kp = "KP" - /// Kosovo. - case xk = "XK" - /// Kuwait. - case kw = "KW" - /// Kyrgyzstan. - case kg = "KG" - /// Laos. - case la = "LA" - /// Latvia. - case lv = "LV" - /// Lebanon. - case lb = "LB" - /// Lesotho. - case ls = "LS" - /// Liberia. - case lr = "LR" - /// Libya. - case ly = "LY" - /// Liechtenstein. - case li = "LI" - /// Lithuania. - case lt = "LT" - /// Luxembourg. - case lu = "LU" - /// Macao SAR. - case mo = "MO" - /// Madagascar. - case mg = "MG" - /// Malawi. - case mw = "MW" - /// Malaysia. - case my = "MY" - /// Maldives. - case mv = "MV" - /// Mali. - case ml = "ML" - /// Malta. - case mt = "MT" - /// Martinique. - case mq = "MQ" - /// Mauritania. - case mr = "MR" - /// Mauritius. - case mu = "MU" - /// Mayotte. - case yt = "YT" - /// Mexico. - case mx = "MX" - /// Moldova. - case md = "MD" - /// Monaco. - case mc = "MC" - /// Mongolia. - case mn = "MN" - /// Montenegro. - case me = "ME" - /// Montserrat. - case ms = "MS" - /// Morocco. - case ma = "MA" - /// Mozambique. - case mz = "MZ" - /// Myanmar (Burma). - case mm = "MM" - /// Namibia. - case na = "NA" - /// Nauru. - case nr = "NR" - /// Nepal. - case np = "NP" - /// Netherlands. - case nl = "NL" - /// Netherlands Antilles. - case an = "AN" - /// New Caledonia. - case nc = "NC" - /// New Zealand. - case nz = "NZ" - /// Nicaragua. - case ni = "NI" - /// Niger. - case ne = "NE" - /// Nigeria. - case ng = "NG" - /// Niue. - case nu = "NU" - /// Norfolk Island. - case nf = "NF" - /// North Macedonia. - case mk = "MK" - /// Norway. - case no = "NO" - /// Oman. - case om = "OM" - /// Pakistan. - case pk = "PK" - /// Palestinian Territories. - case ps = "PS" - /// Panama. - case pa = "PA" - /// Papua New Guinea. - case pg = "PG" - /// Paraguay. - case py = "PY" - /// Peru. - case pe = "PE" - /// Philippines. - case ph = "PH" - /// Pitcairn Islands. - case pn = "PN" - /// Poland. - case pl = "PL" - /// Portugal. - case pt = "PT" - /// Qatar. - case qa = "QA" - /// Cameroon. - case cm = "CM" - /// Réunion. - case re = "RE" - /// Romania. - case ro = "RO" - /// Russia. - case ru = "RU" - /// Rwanda. - case rw = "RW" - /// St. Barthélemy. - case bl = "BL" - /// St. Helena. - case sh = "SH" - /// St. Kitts & Nevis. - case kn = "KN" - /// St. Lucia. - case lc = "LC" - /// St. Martin. - case mf = "MF" - /// St. Pierre & Miquelon. - case pm = "PM" - /// Samoa. - case ws = "WS" - /// San Marino. - case sm = "SM" - /// São Tomé & Príncipe. - case st = "ST" - /// Saudi Arabia. - case sa = "SA" - /// Senegal. - case sn = "SN" - /// Serbia. - case rs = "RS" - /// Seychelles. - case sc = "SC" - /// Sierra Leone. - case sl = "SL" - /// Singapore. - case sg = "SG" - /// Sint Maarten. - case sx = "SX" - /// Slovakia. - case sk = "SK" - /// Slovenia. - case si = "SI" - /// Solomon Islands. - case sb = "SB" - /// Somalia. - case so = "SO" - /// South Africa. - case za = "ZA" - /// South Georgia & South Sandwich Islands. - case gs = "GS" - /// South Korea. - case kr = "KR" - /// South Sudan. - case ss = "SS" - /// Spain. - case es = "ES" - /// Sri Lanka. - case lk = "LK" - /// St. Vincent & Grenadines. - case vc = "VC" - /// Sudan. - case sd = "SD" - /// Suriname. - case sr = "SR" - /// Svalbard & Jan Mayen. - case sj = "SJ" - /// Sweden. - case se = "SE" - /// Switzerland. - case ch = "CH" - /// Syria. - case sy = "SY" - /// Taiwan. - case tw = "TW" - /// Tajikistan. - case tj = "TJ" - /// Tanzania. - case tz = "TZ" - /// Thailand. - case th = "TH" - /// Timor-Leste. - case tl = "TL" - /// Togo. - case tg = "TG" - /// Tokelau. - case tk = "TK" - /// Tonga. - case to = "TO" - /// Trinidad & Tobago. - case tt = "TT" - /// Tristan da Cunha. - case ta = "TA" - /// Tunisia. - case tn = "TN" - /// Türkiye. - case tr = "TR" - /// Turkmenistan. - case tm = "TM" - /// Turks & Caicos Islands. - case tc = "TC" - /// Tuvalu. - case tv = "TV" - /// Uganda. - case ug = "UG" - /// Ukraine. - case ua = "UA" - /// United Arab Emirates. - case ae = "AE" - /// United Kingdom. - case gb = "GB" - /// United States. - case us = "US" - /// U.S. Outlying Islands. - case um = "UM" - /// Uruguay. - case uy = "UY" - /// Uzbekistan. - case uz = "UZ" - /// Vanuatu. - case vu = "VU" - /// Venezuela. - case ve = "VE" - /// Vietnam. - case vn = "VN" - /// British Virgin Islands. - case vg = "VG" - /// Wallis & Futuna. - case wf = "WF" - /// Western Sahara. - case eh = "EH" - /// Yemen. - case ye = "YE" - /// Zambia. - case zm = "ZM" - /// Zimbabwe. - case zw = "ZW" - /// Unknown Region. - case zz = "ZZ" - } -} + /// The code designating a country/region, which generally follows ISO 3166-1 alpha-2 guidelines. + /// If a territory doesn't have a country code value in the `CountryCode` enum, then it might be considered a subdivision + /// of another country. For example, the territories associated with Spain are represented by the country code `ES`, + /// and the territories associated with the United States of America are represented by the country code `US`. + nonisolated enum CountryCode: String, EnumType { + /// Afghanistan. + case af = "AF" + /// Åland Islands. + case ax = "AX" + /// Albania. + case al = "AL" + /// Algeria. + case dz = "DZ" + /// Andorra. + case ad = "AD" + /// Angola. + case ao = "AO" + /// Anguilla. + case ai = "AI" + /// Antigua & Barbuda. + case ag = "AG" + /// Argentina. + case ar = "AR" + /// Armenia. + case am = "AM" + /// Aruba. + case aw = "AW" + /// Ascension Island. + case ac = "AC" + /// Australia. + case au = "AU" + /// Austria. + case at = "AT" + /// Azerbaijan. + case az = "AZ" + /// Bahamas. + case bs = "BS" + /// Bahrain. + case bh = "BH" + /// Bangladesh. + case bd = "BD" + /// Barbados. + case bb = "BB" + /// Belarus. + case by = "BY" + /// Belgium. + case be = "BE" + /// Belize. + case bz = "BZ" + /// Benin. + case bj = "BJ" + /// Bermuda. + case bm = "BM" + /// Bhutan. + case bt = "BT" + /// Bolivia. + case bo = "BO" + /// Bosnia & Herzegovina. + case ba = "BA" + /// Botswana. + case bw = "BW" + /// Bouvet Island. + case bv = "BV" + /// Brazil. + case br = "BR" + /// British Indian Ocean Territory. + case io = "IO" + /// Brunei. + case bn = "BN" + /// Bulgaria. + case bg = "BG" + /// Burkina Faso. + case bf = "BF" + /// Burundi. + case bi = "BI" + /// Cambodia. + case kh = "KH" + /// Canada. + case ca = "CA" + /// Cape Verde. + case cv = "CV" + /// Caribbean Netherlands. + case bq = "BQ" + /// Cayman Islands. + case ky = "KY" + /// Central African Republic. + case cf = "CF" + /// Chad. + case td = "TD" + /// Chile. + case cl = "CL" + /// China. + case cn = "CN" + /// Christmas Island. + case cx = "CX" + /// Cocos (Keeling) Islands. + case cc = "CC" + /// Colombia. + case co = "CO" + /// Comoros. + case km = "KM" + /// Congo - Brazzaville. + case cg = "CG" + /// Congo - Kinshasa. + case cd = "CD" + /// Cook Islands. + case ck = "CK" + /// Costa Rica. + case cr = "CR" + /// Croatia. + case hr = "HR" + /// Cuba. + case cu = "CU" + /// Curaçao. + case cw = "CW" + /// Cyprus. + case cy = "CY" + /// Czechia. + case cz = "CZ" + /// Côte d’Ivoire. + case ci = "CI" + /// Denmark. + case dk = "DK" + /// Djibouti. + case dj = "DJ" + /// Dominica. + case dm = "DM" + /// Dominican Republic. + case `do` = "DO" + /// Ecuador. + case ec = "EC" + /// Egypt. + case eg = "EG" + /// El Salvador. + case sv = "SV" + /// Equatorial Guinea. + case gq = "GQ" + /// Eritrea. + case er = "ER" + /// Estonia. + case ee = "EE" + /// Eswatini. + case sz = "SZ" + /// Ethiopia. + case et = "ET" + /// Falkland Islands. + case fk = "FK" + /// Faroe Islands. + case fo = "FO" + /// Fiji. + case fj = "FJ" + /// Finland. + case fi = "FI" + /// France. + case fr = "FR" + /// French Guiana. + case gf = "GF" + /// French Polynesia. + case pf = "PF" + /// French Southern Territories. + case tf = "TF" + /// Gabon. + case ga = "GA" + /// Gambia. + case gm = "GM" + /// Georgia. + case ge = "GE" + /// Germany. + case de = "DE" + /// Ghana. + case gh = "GH" + /// Gibraltar. + case gi = "GI" + /// Greece. + case gr = "GR" + /// Greenland. + case gl = "GL" + /// Grenada. + case gd = "GD" + /// Guadeloupe. + case gp = "GP" + /// Guatemala. + case gt = "GT" + /// Guernsey. + case gg = "GG" + /// Guinea. + case gn = "GN" + /// Guinea-Bissau. + case gw = "GW" + /// Guyana. + case gy = "GY" + /// Haiti. + case ht = "HT" + /// Heard & McDonald Islands. + case hm = "HM" + /// Vatican City. + case va = "VA" + /// Honduras. + case hn = "HN" + /// Hong Kong SAR. + case hk = "HK" + /// Hungary. + case hu = "HU" + /// Iceland. + case `is` = "IS" + /// India. + case `in` = "IN" + /// Indonesia. + case id = "ID" + /// Iran. + case ir = "IR" + /// Iraq. + case iq = "IQ" + /// Ireland. + case ie = "IE" + /// Isle of Man. + case im = "IM" + /// Israel. + case il = "IL" + /// Italy. + case it = "IT" + /// Jamaica. + case jm = "JM" + /// Japan. + case jp = "JP" + /// Jersey. + case je = "JE" + /// Jordan. + case jo = "JO" + /// Kazakhstan. + case kz = "KZ" + /// Kenya. + case ke = "KE" + /// Kiribati. + case ki = "KI" + /// North Korea. + case kp = "KP" + /// Kosovo. + case xk = "XK" + /// Kuwait. + case kw = "KW" + /// Kyrgyzstan. + case kg = "KG" + /// Laos. + case la = "LA" + /// Latvia. + case lv = "LV" + /// Lebanon. + case lb = "LB" + /// Lesotho. + case ls = "LS" + /// Liberia. + case lr = "LR" + /// Libya. + case ly = "LY" + /// Liechtenstein. + case li = "LI" + /// Lithuania. + case lt = "LT" + /// Luxembourg. + case lu = "LU" + /// Macao SAR. + case mo = "MO" + /// Madagascar. + case mg = "MG" + /// Malawi. + case mw = "MW" + /// Malaysia. + case my = "MY" + /// Maldives. + case mv = "MV" + /// Mali. + case ml = "ML" + /// Malta. + case mt = "MT" + /// Martinique. + case mq = "MQ" + /// Mauritania. + case mr = "MR" + /// Mauritius. + case mu = "MU" + /// Mayotte. + case yt = "YT" + /// Mexico. + case mx = "MX" + /// Moldova. + case md = "MD" + /// Monaco. + case mc = "MC" + /// Mongolia. + case mn = "MN" + /// Montenegro. + case me = "ME" + /// Montserrat. + case ms = "MS" + /// Morocco. + case ma = "MA" + /// Mozambique. + case mz = "MZ" + /// Myanmar (Burma). + case mm = "MM" + /// Namibia. + case na = "NA" + /// Nauru. + case nr = "NR" + /// Nepal. + case np = "NP" + /// Netherlands. + case nl = "NL" + /// Netherlands Antilles. + case an = "AN" + /// New Caledonia. + case nc = "NC" + /// New Zealand. + case nz = "NZ" + /// Nicaragua. + case ni = "NI" + /// Niger. + case ne = "NE" + /// Nigeria. + case ng = "NG" + /// Niue. + case nu = "NU" + /// Norfolk Island. + case nf = "NF" + /// North Macedonia. + case mk = "MK" + /// Norway. + case no = "NO" + /// Oman. + case om = "OM" + /// Pakistan. + case pk = "PK" + /// Palestinian Territories. + case ps = "PS" + /// Panama. + case pa = "PA" + /// Papua New Guinea. + case pg = "PG" + /// Paraguay. + case py = "PY" + /// Peru. + case pe = "PE" + /// Philippines. + case ph = "PH" + /// Pitcairn Islands. + case pn = "PN" + /// Poland. + case pl = "PL" + /// Portugal. + case pt = "PT" + /// Qatar. + case qa = "QA" + /// Cameroon. + case cm = "CM" + /// Réunion. + case re = "RE" + /// Romania. + case ro = "RO" + /// Russia. + case ru = "RU" + /// Rwanda. + case rw = "RW" + /// St. Barthélemy. + case bl = "BL" + /// St. Helena. + case sh = "SH" + /// St. Kitts & Nevis. + case kn = "KN" + /// St. Lucia. + case lc = "LC" + /// St. Martin. + case mf = "MF" + /// St. Pierre & Miquelon. + case pm = "PM" + /// Samoa. + case ws = "WS" + /// San Marino. + case sm = "SM" + /// São Tomé & Príncipe. + case st = "ST" + /// Saudi Arabia. + case sa = "SA" + /// Senegal. + case sn = "SN" + /// Serbia. + case rs = "RS" + /// Seychelles. + case sc = "SC" + /// Sierra Leone. + case sl = "SL" + /// Singapore. + case sg = "SG" + /// Sint Maarten. + case sx = "SX" + /// Slovakia. + case sk = "SK" + /// Slovenia. + case si = "SI" + /// Solomon Islands. + case sb = "SB" + /// Somalia. + case so = "SO" + /// South Africa. + case za = "ZA" + /// South Georgia & South Sandwich Islands. + case gs = "GS" + /// South Korea. + case kr = "KR" + /// South Sudan. + case ss = "SS" + /// Spain. + case es = "ES" + /// Sri Lanka. + case lk = "LK" + /// St. Vincent & Grenadines. + case vc = "VC" + /// Sudan. + case sd = "SD" + /// Suriname. + case sr = "SR" + /// Svalbard & Jan Mayen. + case sj = "SJ" + /// Sweden. + case se = "SE" + /// Switzerland. + case ch = "CH" + /// Syria. + case sy = "SY" + /// Taiwan. + case tw = "TW" + /// Tajikistan. + case tj = "TJ" + /// Tanzania. + case tz = "TZ" + /// Thailand. + case th = "TH" + /// Timor-Leste. + case tl = "TL" + /// Togo. + case tg = "TG" + /// Tokelau. + case tk = "TK" + /// Tonga. + case to = "TO" + /// Trinidad & Tobago. + case tt = "TT" + /// Tristan da Cunha. + case ta = "TA" + /// Tunisia. + case tn = "TN" + /// Türkiye. + case tr = "TR" + /// Turkmenistan. + case tm = "TM" + /// Turks & Caicos Islands. + case tc = "TC" + /// Tuvalu. + case tv = "TV" + /// Uganda. + case ug = "UG" + /// Ukraine. + case ua = "UA" + /// United Arab Emirates. + case ae = "AE" + /// United Kingdom. + case gb = "GB" + /// United States. + case us = "US" + /// U.S. Outlying Islands. + case um = "UM" + /// Uruguay. + case uy = "UY" + /// Uzbekistan. + case uz = "UZ" + /// Vanuatu. + case vu = "VU" + /// Venezuela. + case ve = "VE" + /// Vietnam. + case vn = "VN" + /// British Virgin Islands. + case vg = "VG" + /// Wallis & Futuna. + case wf = "WF" + /// Western Sahara. + case eh = "EH" + /// Yemen. + case ye = "YE" + /// Zambia. + case zm = "ZM" + /// Zimbabwe. + case zw = "ZW" + /// Unknown Region. + case zz = "ZZ" + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/CurrencyCode.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/CurrencyCode.graphql.swift index aedcd5ea..f119bc53 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/CurrencyCode.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/CurrencyCode.graphql.swift @@ -4,337 +4,338 @@ @_spi(Internal) import ApolloAPI extension Storefront { - /// The three-letter currency codes that represent the world currencies used in - /// stores. These include standard ISO 4217 codes, legacy codes, - /// and non-standard codes. - enum CurrencyCode: String, EnumType { - /// United States Dollars (USD). - case usd = "USD" - /// Euro (EUR). - case eur = "EUR" - /// United Kingdom Pounds (GBP). - case gbp = "GBP" - /// Canadian Dollars (CAD). - case cad = "CAD" - /// Afghan Afghani (AFN). - case afn = "AFN" - /// Albanian Lek (ALL). - case all = "ALL" - /// Algerian Dinar (DZD). - case dzd = "DZD" - /// Angolan Kwanza (AOA). - case aoa = "AOA" - /// Argentine Pesos (ARS). - case ars = "ARS" - /// Armenian Dram (AMD). - case amd = "AMD" - /// Aruban Florin (AWG). - case awg = "AWG" - /// Australian Dollars (AUD). - case aud = "AUD" - /// Barbadian Dollar (BBD). - case bbd = "BBD" - /// Azerbaijani Manat (AZN). - case azn = "AZN" - /// Bangladesh Taka (BDT). - case bdt = "BDT" - /// Bahamian Dollar (BSD). - case bsd = "BSD" - /// Bahraini Dinar (BHD). - case bhd = "BHD" - /// Burundian Franc (BIF). - case bif = "BIF" - /// Belize Dollar (BZD). - case bzd = "BZD" - /// Bermudian Dollar (BMD). - case bmd = "BMD" - /// Bhutanese Ngultrum (BTN). - case btn = "BTN" - /// Bosnia and Herzegovina Convertible Mark (BAM). - case bam = "BAM" - /// Brazilian Real (BRL). - case brl = "BRL" - /// Bolivian Boliviano (BOB). - case bob = "BOB" - /// Botswana Pula (BWP). - case bwp = "BWP" - /// Brunei Dollar (BND). - case bnd = "BND" - /// Bulgarian Lev (BGN). - case bgn = "BGN" - /// Burmese Kyat (MMK). - case mmk = "MMK" - /// Cambodian Riel. - case khr = "KHR" - /// Cape Verdean escudo (CVE). - case cve = "CVE" - /// Cayman Dollars (KYD). - case kyd = "KYD" - /// Central African CFA Franc (XAF). - case xaf = "XAF" - /// Chilean Peso (CLP). - case clp = "CLP" - /// Chinese Yuan Renminbi (CNY). - case cny = "CNY" - /// Colombian Peso (COP). - case cop = "COP" - /// Comorian Franc (KMF). - case kmf = "KMF" - /// Congolese franc (CDF). - case cdf = "CDF" - /// Costa Rican Colones (CRC). - case crc = "CRC" - /// Croatian Kuna (HRK). - case hrk = "HRK" - /// Czech Koruny (CZK). - case czk = "CZK" - /// Danish Kroner (DKK). - case dkk = "DKK" - /// Dominican Peso (DOP). - case dop = "DOP" - /// East Caribbean Dollar (XCD). - case xcd = "XCD" - /// Egyptian Pound (EGP). - case egp = "EGP" - /// Eritrean Nakfa (ERN). - case ern = "ERN" - /// Ethiopian Birr (ETB). - case etb = "ETB" - /// Falkland Islands Pounds (FKP). - case fkp = "FKP" - /// CFP Franc (XPF). - case xpf = "XPF" - /// Fijian Dollars (FJD). - case fjd = "FJD" - /// Gibraltar Pounds (GIP). - case gip = "GIP" - /// Gambian Dalasi (GMD). - case gmd = "GMD" - /// Ghanaian Cedi (GHS). - case ghs = "GHS" - /// Guatemalan Quetzal (GTQ). - case gtq = "GTQ" - /// Guyanese Dollar (GYD). - case gyd = "GYD" - /// Georgian Lari (GEL). - case gel = "GEL" - /// Haitian Gourde (HTG). - case htg = "HTG" - /// Honduran Lempira (HNL). - case hnl = "HNL" - /// Hong Kong Dollars (HKD). - case hkd = "HKD" - /// Hungarian Forint (HUF). - case huf = "HUF" - /// Icelandic Kronur (ISK). - case isk = "ISK" - /// Indian Rupees (INR). - case inr = "INR" - /// Indonesian Rupiah (IDR). - case idr = "IDR" - /// Israeli New Shekel (NIS). - case ils = "ILS" - /// Iraqi Dinar (IQD). - case iqd = "IQD" - /// Jamaican Dollars (JMD). - case jmd = "JMD" - /// Japanese Yen (JPY). - case jpy = "JPY" - /// Jersey Pound. - case jep = "JEP" - /// Jordanian Dinar (JOD). - case jod = "JOD" - /// Kazakhstani Tenge (KZT). - case kzt = "KZT" - /// Kenyan Shilling (KES). - case kes = "KES" - /// Kiribati Dollar (KID). - case kid = "KID" - /// Kuwaiti Dinar (KWD). - case kwd = "KWD" - /// Kyrgyzstani Som (KGS). - case kgs = "KGS" - /// Laotian Kip (LAK). - case lak = "LAK" - /// Latvian Lati (LVL). - case lvl = "LVL" - /// Lebanese Pounds (LBP). - case lbp = "LBP" - /// Lesotho Loti (LSL). - case lsl = "LSL" - /// Liberian Dollar (LRD). - case lrd = "LRD" - /// Lithuanian Litai (LTL). - case ltl = "LTL" - /// Malagasy Ariary (MGA). - case mga = "MGA" - /// Macedonia Denar (MKD). - case mkd = "MKD" - /// Macanese Pataca (MOP). - case mop = "MOP" - /// Malawian Kwacha (MWK). - case mwk = "MWK" - /// Maldivian Rufiyaa (MVR). - case mvr = "MVR" - /// Mauritanian Ouguiya (MRU). - case mru = "MRU" - /// Mexican Pesos (MXN). - case mxn = "MXN" - /// Malaysian Ringgits (MYR). - case myr = "MYR" - /// Mauritian Rupee (MUR). - case mur = "MUR" - /// Moldovan Leu (MDL). - case mdl = "MDL" - /// Moroccan Dirham. - case mad = "MAD" - /// Mongolian Tugrik. - case mnt = "MNT" - /// Mozambican Metical. - case mzn = "MZN" - /// Namibian Dollar. - case nad = "NAD" - /// Nepalese Rupee (NPR). - case npr = "NPR" - /// Netherlands Antillean Guilder. - case ang = "ANG" - /// New Zealand Dollars (NZD). - case nzd = "NZD" - /// Nicaraguan Córdoba (NIO). - case nio = "NIO" - /// Nigerian Naira (NGN). - case ngn = "NGN" - /// Norwegian Kroner (NOK). - case nok = "NOK" - /// Omani Rial (OMR). - case omr = "OMR" - /// Panamian Balboa (PAB). - case pab = "PAB" - /// Pakistani Rupee (PKR). - case pkr = "PKR" - /// Papua New Guinean Kina (PGK). - case pgk = "PGK" - /// Paraguayan Guarani (PYG). - case pyg = "PYG" - /// Peruvian Nuevo Sol (PEN). - case pen = "PEN" - /// Philippine Peso (PHP). - case php = "PHP" - /// Polish Zlotych (PLN). - case pln = "PLN" - /// Qatari Rial (QAR). - case qar = "QAR" - /// Romanian Lei (RON). - case ron = "RON" - /// Russian Rubles (RUB). - case rub = "RUB" - /// Rwandan Franc (RWF). - case rwf = "RWF" - /// Samoan Tala (WST). - case wst = "WST" - /// Saint Helena Pounds (SHP). - case shp = "SHP" - /// Saudi Riyal (SAR). - case sar = "SAR" - /// Serbian dinar (RSD). - case rsd = "RSD" - /// Seychellois Rupee (SCR). - case scr = "SCR" - /// Singapore Dollars (SGD). - case sgd = "SGD" - /// Sudanese Pound (SDG). - case sdg = "SDG" - /// Somali Shilling (SOS). - case sos = "SOS" - /// Syrian Pound (SYP). - case syp = "SYP" - /// South African Rand (ZAR). - case zar = "ZAR" - /// South Korean Won (KRW). - case krw = "KRW" - /// South Sudanese Pound (SSP). - case ssp = "SSP" - /// Solomon Islands Dollar (SBD). - case sbd = "SBD" - /// Sri Lankan Rupees (LKR). - case lkr = "LKR" - /// Surinamese Dollar (SRD). - case srd = "SRD" - /// Swazi Lilangeni (SZL). - case szl = "SZL" - /// Swedish Kronor (SEK). - case sek = "SEK" - /// Swiss Francs (CHF). - case chf = "CHF" - /// Taiwan Dollars (TWD). - case twd = "TWD" - /// Thai baht (THB). - case thb = "THB" - /// Tanzanian Shilling (TZS). - case tzs = "TZS" - /// Trinidad and Tobago Dollars (TTD). - case ttd = "TTD" - /// Tunisian Dinar (TND). - case tnd = "TND" - /// Turkish Lira (TRY). - case `try` = "TRY" - /// Turkmenistani Manat (TMT). - case tmt = "TMT" - /// Ugandan Shilling (UGX). - case ugx = "UGX" - /// Ukrainian Hryvnia (UAH). - case uah = "UAH" - /// United Arab Emirates Dirham (AED). - case aed = "AED" - /// Uruguayan Pesos (UYU). - case uyu = "UYU" - /// Uzbekistan som (UZS). - case uzs = "UZS" - /// Vanuatu Vatu (VUV). - case vuv = "VUV" - /// Venezuelan Bolivares Soberanos (VES). - case ves = "VES" - /// Vietnamese đồng (VND). - case vnd = "VND" - /// West African CFA franc (XOF). - case xof = "XOF" - /// Yemeni Rial (YER). - case yer = "YER" - /// Zambian Kwacha (ZMW). - case zmw = "ZMW" - /// Belarusian Ruble (BYN). - case byn = "BYN" - /// Belarusian Ruble (BYR). - /// - /// **Deprecated**: `BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead. - case byr = "BYR" - /// Djiboutian Franc (DJF). - case djf = "DJF" - /// Guinean Franc (GNF). - case gnf = "GNF" - /// Iranian Rial (IRR). - case irr = "IRR" - /// Libyan Dinar (LYD). - case lyd = "LYD" - /// Sierra Leonean Leone (SLL). - case sll = "SLL" - /// Sao Tome And Principe Dobra (STD). - /// - /// **Deprecated**: `STD` is deprecated. Use `STN` available from version `2022-07` onwards instead. - case std = "STD" - /// Sao Tome And Principe Dobra (STN). - case stn = "STN" - /// Tajikistani Somoni (TJS). - case tjs = "TJS" - /// Tongan Pa'anga (TOP). - case top = "TOP" - /// Venezuelan Bolivares (VED). - case ved = "VED" - /// Venezuelan Bolivares (VEF). - /// - /// **Deprecated**: `VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead. - case vef = "VEF" - /// Unrecognized currency. - case xxx = "XXX" - } -} + /// The three-letter currency codes that represent the world currencies used in + /// stores. These include standard ISO 4217 codes, legacy codes, + /// and non-standard codes. + nonisolated enum CurrencyCode: String, EnumType { + /// United States Dollars (USD). + case usd = "USD" + /// Euro (EUR). + case eur = "EUR" + /// United Kingdom Pounds (GBP). + case gbp = "GBP" + /// Canadian Dollars (CAD). + case cad = "CAD" + /// Afghan Afghani (AFN). + case afn = "AFN" + /// Albanian Lek (ALL). + case all = "ALL" + /// Algerian Dinar (DZD). + case dzd = "DZD" + /// Angolan Kwanza (AOA). + case aoa = "AOA" + /// Argentine Pesos (ARS). + case ars = "ARS" + /// Armenian Dram (AMD). + case amd = "AMD" + /// Aruban Florin (AWG). + case awg = "AWG" + /// Australian Dollars (AUD). + case aud = "AUD" + /// Barbadian Dollar (BBD). + case bbd = "BBD" + /// Azerbaijani Manat (AZN). + case azn = "AZN" + /// Bangladesh Taka (BDT). + case bdt = "BDT" + /// Bahamian Dollar (BSD). + case bsd = "BSD" + /// Bahraini Dinar (BHD). + case bhd = "BHD" + /// Burundian Franc (BIF). + case bif = "BIF" + /// Belize Dollar (BZD). + case bzd = "BZD" + /// Bermudian Dollar (BMD). + case bmd = "BMD" + /// Bhutanese Ngultrum (BTN). + case btn = "BTN" + /// Bosnia and Herzegovina Convertible Mark (BAM). + case bam = "BAM" + /// Brazilian Real (BRL). + case brl = "BRL" + /// Bolivian Boliviano (BOB). + case bob = "BOB" + /// Botswana Pula (BWP). + case bwp = "BWP" + /// Brunei Dollar (BND). + case bnd = "BND" + /// Bulgarian Lev (BGN). + case bgn = "BGN" + /// Burmese Kyat (MMK). + case mmk = "MMK" + /// Cambodian Riel. + case khr = "KHR" + /// Cape Verdean escudo (CVE). + case cve = "CVE" + /// Cayman Dollars (KYD). + case kyd = "KYD" + /// Central African CFA Franc (XAF). + case xaf = "XAF" + /// Chilean Peso (CLP). + case clp = "CLP" + /// Chinese Yuan Renminbi (CNY). + case cny = "CNY" + /// Colombian Peso (COP). + case cop = "COP" + /// Comorian Franc (KMF). + case kmf = "KMF" + /// Congolese franc (CDF). + case cdf = "CDF" + /// Costa Rican Colones (CRC). + case crc = "CRC" + /// Croatian Kuna (HRK). + case hrk = "HRK" + /// Czech Koruny (CZK). + case czk = "CZK" + /// Danish Kroner (DKK). + case dkk = "DKK" + /// Dominican Peso (DOP). + case dop = "DOP" + /// East Caribbean Dollar (XCD). + case xcd = "XCD" + /// Egyptian Pound (EGP). + case egp = "EGP" + /// Eritrean Nakfa (ERN). + case ern = "ERN" + /// Ethiopian Birr (ETB). + case etb = "ETB" + /// Falkland Islands Pounds (FKP). + case fkp = "FKP" + /// CFP Franc (XPF). + case xpf = "XPF" + /// Fijian Dollars (FJD). + case fjd = "FJD" + /// Gibraltar Pounds (GIP). + case gip = "GIP" + /// Gambian Dalasi (GMD). + case gmd = "GMD" + /// Ghanaian Cedi (GHS). + case ghs = "GHS" + /// Guatemalan Quetzal (GTQ). + case gtq = "GTQ" + /// Guyanese Dollar (GYD). + case gyd = "GYD" + /// Georgian Lari (GEL). + case gel = "GEL" + /// Haitian Gourde (HTG). + case htg = "HTG" + /// Honduran Lempira (HNL). + case hnl = "HNL" + /// Hong Kong Dollars (HKD). + case hkd = "HKD" + /// Hungarian Forint (HUF). + case huf = "HUF" + /// Icelandic Kronur (ISK). + case isk = "ISK" + /// Indian Rupees (INR). + case inr = "INR" + /// Indonesian Rupiah (IDR). + case idr = "IDR" + /// Israeli New Shekel (NIS). + case ils = "ILS" + /// Iraqi Dinar (IQD). + case iqd = "IQD" + /// Jamaican Dollars (JMD). + case jmd = "JMD" + /// Japanese Yen (JPY). + case jpy = "JPY" + /// Jersey Pound. + case jep = "JEP" + /// Jordanian Dinar (JOD). + case jod = "JOD" + /// Kazakhstani Tenge (KZT). + case kzt = "KZT" + /// Kenyan Shilling (KES). + case kes = "KES" + /// Kiribati Dollar (KID). + case kid = "KID" + /// Kuwaiti Dinar (KWD). + case kwd = "KWD" + /// Kyrgyzstani Som (KGS). + case kgs = "KGS" + /// Laotian Kip (LAK). + case lak = "LAK" + /// Latvian Lati (LVL). + case lvl = "LVL" + /// Lebanese Pounds (LBP). + case lbp = "LBP" + /// Lesotho Loti (LSL). + case lsl = "LSL" + /// Liberian Dollar (LRD). + case lrd = "LRD" + /// Lithuanian Litai (LTL). + case ltl = "LTL" + /// Malagasy Ariary (MGA). + case mga = "MGA" + /// Macedonia Denar (MKD). + case mkd = "MKD" + /// Macanese Pataca (MOP). + case mop = "MOP" + /// Malawian Kwacha (MWK). + case mwk = "MWK" + /// Maldivian Rufiyaa (MVR). + case mvr = "MVR" + /// Mauritanian Ouguiya (MRU). + case mru = "MRU" + /// Mexican Pesos (MXN). + case mxn = "MXN" + /// Malaysian Ringgits (MYR). + case myr = "MYR" + /// Mauritian Rupee (MUR). + case mur = "MUR" + /// Moldovan Leu (MDL). + case mdl = "MDL" + /// Moroccan Dirham. + case mad = "MAD" + /// Mongolian Tugrik. + case mnt = "MNT" + /// Mozambican Metical. + case mzn = "MZN" + /// Namibian Dollar. + case nad = "NAD" + /// Nepalese Rupee (NPR). + case npr = "NPR" + /// Netherlands Antillean Guilder. + case ang = "ANG" + /// New Zealand Dollars (NZD). + case nzd = "NZD" + /// Nicaraguan Córdoba (NIO). + case nio = "NIO" + /// Nigerian Naira (NGN). + case ngn = "NGN" + /// Norwegian Kroner (NOK). + case nok = "NOK" + /// Omani Rial (OMR). + case omr = "OMR" + /// Panamian Balboa (PAB). + case pab = "PAB" + /// Pakistani Rupee (PKR). + case pkr = "PKR" + /// Papua New Guinean Kina (PGK). + case pgk = "PGK" + /// Paraguayan Guarani (PYG). + case pyg = "PYG" + /// Peruvian Nuevo Sol (PEN). + case pen = "PEN" + /// Philippine Peso (PHP). + case php = "PHP" + /// Polish Zlotych (PLN). + case pln = "PLN" + /// Qatari Rial (QAR). + case qar = "QAR" + /// Romanian Lei (RON). + case ron = "RON" + /// Russian Rubles (RUB). + case rub = "RUB" + /// Rwandan Franc (RWF). + case rwf = "RWF" + /// Samoan Tala (WST). + case wst = "WST" + /// Saint Helena Pounds (SHP). + case shp = "SHP" + /// Saudi Riyal (SAR). + case sar = "SAR" + /// Serbian dinar (RSD). + case rsd = "RSD" + /// Seychellois Rupee (SCR). + case scr = "SCR" + /// Singapore Dollars (SGD). + case sgd = "SGD" + /// Sudanese Pound (SDG). + case sdg = "SDG" + /// Somali Shilling (SOS). + case sos = "SOS" + /// Syrian Pound (SYP). + case syp = "SYP" + /// South African Rand (ZAR). + case zar = "ZAR" + /// South Korean Won (KRW). + case krw = "KRW" + /// South Sudanese Pound (SSP). + case ssp = "SSP" + /// Solomon Islands Dollar (SBD). + case sbd = "SBD" + /// Sri Lankan Rupees (LKR). + case lkr = "LKR" + /// Surinamese Dollar (SRD). + case srd = "SRD" + /// Swazi Lilangeni (SZL). + case szl = "SZL" + /// Swedish Kronor (SEK). + case sek = "SEK" + /// Swiss Francs (CHF). + case chf = "CHF" + /// Taiwan Dollars (TWD). + case twd = "TWD" + /// Thai baht (THB). + case thb = "THB" + /// Tanzanian Shilling (TZS). + case tzs = "TZS" + /// Trinidad and Tobago Dollars (TTD). + case ttd = "TTD" + /// Tunisian Dinar (TND). + case tnd = "TND" + /// Turkish Lira (TRY). + case `try` = "TRY" + /// Turkmenistani Manat (TMT). + case tmt = "TMT" + /// Ugandan Shilling (UGX). + case ugx = "UGX" + /// Ukrainian Hryvnia (UAH). + case uah = "UAH" + /// United Arab Emirates Dirham (AED). + case aed = "AED" + /// Uruguayan Pesos (UYU). + case uyu = "UYU" + /// Uzbekistan som (UZS). + case uzs = "UZS" + /// Vanuatu Vatu (VUV). + case vuv = "VUV" + /// Venezuelan Bolivares Soberanos (VES). + case ves = "VES" + /// Vietnamese đồng (VND). + case vnd = "VND" + /// West African CFA franc (XOF). + case xof = "XOF" + /// Yemeni Rial (YER). + case yer = "YER" + /// Zambian Kwacha (ZMW). + case zmw = "ZMW" + /// Belarusian Ruble (BYN). + case byn = "BYN" + /// Belarusian Ruble (BYR). + /// + /// **Deprecated**: `BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead. + case byr = "BYR" + /// Djiboutian Franc (DJF). + case djf = "DJF" + /// Guinean Franc (GNF). + case gnf = "GNF" + /// Iranian Rial (IRR). + case irr = "IRR" + /// Libyan Dinar (LYD). + case lyd = "LYD" + /// Sierra Leonean Leone (SLL). + case sll = "SLL" + /// Sao Tome And Principe Dobra (STD). + /// + /// **Deprecated**: `STD` is deprecated. Use `STN` available from version `2022-07` onwards instead. + case std = "STD" + /// Sao Tome And Principe Dobra (STN). + case stn = "STN" + /// Tajikistani Somoni (TJS). + case tjs = "TJS" + /// Tongan Pa'anga (TOP). + case top = "TOP" + /// Venezuelan Bolivares (VED). + case ved = "VED" + /// Venezuelan Bolivares (VEF). + /// + /// **Deprecated**: `VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead. + case vef = "VEF" + /// Unrecognized currency. + case xxx = "XXX" + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/DeliveryAddressValidationStrategy.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/DeliveryAddressValidationStrategy.graphql.swift index ecc12a00..2108f7bc 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/DeliveryAddressValidationStrategy.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/DeliveryAddressValidationStrategy.graphql.swift @@ -4,14 +4,15 @@ @_spi(Internal) import ApolloAPI extension Storefront { - /// Controls how delivery addresses are validated during cart operations. The default validation checks only the country code, while strict validation verifies all address fields against Shopify's checkout rules and rejects invalid addresses. - /// - /// Used by [`DeliveryAddressInput`](https://shopify.dev/docs/api/storefront/current/input-objects/DeliveryAddressInput) when setting buyer identity preferences, and by [`CartSelectableAddressInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartSelectableAddressInput) and [`CartSelectableAddressUpdateInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartSelectableAddressUpdateInput) when managing cart delivery addresses. - enum DeliveryAddressValidationStrategy: String, EnumType { - /// Only the country code is validated. - case countryCodeOnly = "COUNTRY_CODE_ONLY" - /// Strict validation is performed, i.e. all fields in the address are validated - /// according to Shopify's checkout rules. If the address fails validation, the cart will not be updated. - case strict = "STRICT" - } -} + /// Controls how delivery addresses are validated during cart operations. The default validation checks only the country code, while strict validation verifies all address fields against Shopify's checkout rules and rejects invalid addresses. + /// + /// Used by [`DeliveryAddressInput`](https://shopify.dev/docs/api/storefront/current/input-objects/DeliveryAddressInput) when setting buyer identity preferences, and by [`CartSelectableAddressInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartSelectableAddressInput) and [`CartSelectableAddressUpdateInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartSelectableAddressUpdateInput) when managing cart delivery addresses. + nonisolated enum DeliveryAddressValidationStrategy: String, EnumType { + /// Only the country code is validated. + case countryCodeOnly = "COUNTRY_CODE_ONLY" + /// Strict validation is performed, i.e. all fields in the address are validated + /// according to Shopify's checkout rules. If the address fails validation, the cart will not be updated. + case strict = "STRICT" + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/DeliveryMethodType.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/DeliveryMethodType.graphql.swift index a7aabf21..4c927677 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/DeliveryMethodType.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/DeliveryMethodType.graphql.swift @@ -4,19 +4,20 @@ @_spi(Internal) import ApolloAPI extension Storefront { - /// List of different delivery method types. - enum DeliveryMethodType: String, EnumType { - /// Shipping. - case shipping = "SHIPPING" - /// Local Pickup. - case pickUp = "PICK_UP" - /// Retail. - case retail = "RETAIL" - /// Local Delivery. - case local = "LOCAL" - /// Shipping to a Pickup Point. - case pickupPoint = "PICKUP_POINT" - /// None. - case none = "NONE" - } -} + /// List of different delivery method types. + nonisolated enum DeliveryMethodType: String, EnumType { + /// Shipping. + case shipping = "SHIPPING" + /// Local Pickup. + case pickUp = "PICK_UP" + /// Retail. + case retail = "RETAIL" + /// Local Delivery. + case local = "LOCAL" + /// Shipping to a Pickup Point. + case pickupPoint = "PICKUP_POINT" + /// None. + case none = "NONE" + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/LanguageCode.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/LanguageCode.graphql.swift index 245b415f..1b27c100 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/LanguageCode.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/LanguageCode.graphql.swift @@ -4,297 +4,298 @@ @_spi(Internal) import ApolloAPI extension Storefront { - /// Supported languages for retrieving translated storefront content. Pass a language code to the [`@inContext`](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/in-context) directive to return product titles, descriptions, and other translatable fields in that language. - /// - /// The [`Localization`](https://shopify.dev/docs/api/storefront/current/objects/Localization) object provides the list of available languages for the active country, and each [`Country`](https://shopify.dev/docs/api/storefront/current/objects/Country) in [`availableCountries`](https://shopify.dev/docs/api/storefront/current/objects/Localization#field-Localization.fields.availableCountries) includes its own available languages. - enum LanguageCode: String, EnumType { - /// Afrikaans. - case af = "AF" - /// Akan. - case ak = "AK" - /// Amharic. - case am = "AM" - /// Arabic. - case ar = "AR" - /// Assamese. - case `as` = "AS" - /// Azerbaijani. - case az = "AZ" - /// Belarusian. - case be = "BE" - /// Bulgarian. - case bg = "BG" - /// Bambara. - case bm = "BM" - /// Bangla. - case bn = "BN" - /// Tibetan. - case bo = "BO" - /// Breton. - case br = "BR" - /// Bosnian. - case bs = "BS" - /// Catalan. - case ca = "CA" - /// Chechen. - case ce = "CE" - /// Central Kurdish. - case ckb = "CKB" - /// Czech. - case cs = "CS" - /// Welsh. - case cy = "CY" - /// Danish. - case da = "DA" - /// German. - case de = "DE" - /// Dzongkha. - case dz = "DZ" - /// Ewe. - case ee = "EE" - /// Greek. - case el = "EL" - /// English. - case en = "EN" - /// Esperanto. - case eo = "EO" - /// Spanish. - case es = "ES" - /// Estonian. - case et = "ET" - /// Basque. - case eu = "EU" - /// Persian. - case fa = "FA" - /// Fulah. - case ff = "FF" - /// Finnish. - case fi = "FI" - /// Filipino. - case fil = "FIL" - /// Faroese. - case fo = "FO" - /// French. - case fr = "FR" - /// Western Frisian. - case fy = "FY" - /// Irish. - case ga = "GA" - /// Scottish Gaelic. - case gd = "GD" - /// Galician. - case gl = "GL" - /// Gujarati. - case gu = "GU" - /// Manx. - case gv = "GV" - /// Hausa. - case ha = "HA" - /// Hebrew. - case he = "HE" - /// Hindi. - case hi = "HI" - /// Croatian. - case hr = "HR" - /// Hungarian. - case hu = "HU" - /// Armenian. - case hy = "HY" - /// Interlingua. - case ia = "IA" - /// Indonesian. - case id = "ID" - /// Igbo. - case ig = "IG" - /// Sichuan Yi. - case ii = "II" - /// Icelandic. - case `is` = "IS" - /// Italian. - case it = "IT" - /// Japanese. - case ja = "JA" - /// Javanese. - case jv = "JV" - /// Georgian. - case ka = "KA" - /// Kikuyu. - case ki = "KI" - /// Kazakh. - case kk = "KK" - /// Kalaallisut. - case kl = "KL" - /// Khmer. - case km = "KM" - /// Kannada. - case kn = "KN" - /// Korean. - case ko = "KO" - /// Kashmiri. - case ks = "KS" - /// Kurdish. - case ku = "KU" - /// Cornish. - case kw = "KW" - /// Kyrgyz. - case ky = "KY" - /// Luxembourgish. - case lb = "LB" - /// Ganda. - case lg = "LG" - /// Lingala. - case ln = "LN" - /// Lao. - case lo = "LO" - /// Lithuanian. - case lt = "LT" - /// Luba-Katanga. - case lu = "LU" - /// Latvian. - case lv = "LV" - /// Malagasy. - case mg = "MG" - /// Māori. - case mi = "MI" - /// Macedonian. - case mk = "MK" - /// Malayalam. - case ml = "ML" - /// Mongolian. - case mn = "MN" - /// Marathi. - case mr = "MR" - /// Malay. - case ms = "MS" - /// Maltese. - case mt = "MT" - /// Burmese. - case my = "MY" - /// Norwegian (Bokmål). - case nb = "NB" - /// North Ndebele. - case nd = "ND" - /// Nepali. - case ne = "NE" - /// Dutch. - case nl = "NL" - /// Norwegian Nynorsk. - case nn = "NN" - /// Norwegian. - case no = "NO" - /// Oromo. - case om = "OM" - /// Odia. - case or = "OR" - /// Ossetic. - case os = "OS" - /// Punjabi. - case pa = "PA" - /// Polish. - case pl = "PL" - /// Pashto. - case ps = "PS" - /// Portuguese (Brazil). - case ptBr = "PT_BR" - /// Portuguese (Portugal). - case ptPt = "PT_PT" - /// Quechua. - case qu = "QU" - /// Romansh. - case rm = "RM" - /// Rundi. - case rn = "RN" - /// Romanian. - case ro = "RO" - /// Russian. - case ru = "RU" - /// Kinyarwanda. - case rw = "RW" - /// Sanskrit. - case sa = "SA" - /// Sardinian. - case sc = "SC" - /// Sindhi. - case sd = "SD" - /// Northern Sami. - case se = "SE" - /// Sango. - case sg = "SG" - /// Sinhala. - case si = "SI" - /// Slovak. - case sk = "SK" - /// Slovenian. - case sl = "SL" - /// Shona. - case sn = "SN" - /// Somali. - case so = "SO" - /// Albanian. - case sq = "SQ" - /// Serbian. - case sr = "SR" - /// Sundanese. - case su = "SU" - /// Swedish. - case sv = "SV" - /// Swahili. - case sw = "SW" - /// Tamil. - case ta = "TA" - /// Telugu. - case te = "TE" - /// Tajik. - case tg = "TG" - /// Thai. - case th = "TH" - /// Tigrinya. - case ti = "TI" - /// Turkmen. - case tk = "TK" - /// Tongan. - case to = "TO" - /// Turkish. - case tr = "TR" - /// Tatar. - case tt = "TT" - /// Uyghur. - case ug = "UG" - /// Ukrainian. - case uk = "UK" - /// Urdu. - case ur = "UR" - /// Uzbek. - case uz = "UZ" - /// Vietnamese. - case vi = "VI" - /// Wolof. - case wo = "WO" - /// Xhosa. - case xh = "XH" - /// Yiddish. - case yi = "YI" - /// Yoruba. - case yo = "YO" - /// Chinese (Simplified). - case zhCn = "ZH_CN" - /// Chinese (Traditional). - case zhTw = "ZH_TW" - /// Zulu. - case zu = "ZU" - /// Chinese. - case zh = "ZH" - /// Portuguese. - case pt = "PT" - /// Church Slavic. - case cu = "CU" - /// Volapük. - case vo = "VO" - /// Latin. - case la = "LA" - /// Serbo-Croatian. - case sh = "SH" - /// Moldavian. - case mo = "MO" - } -} + /// Supported languages for retrieving translated storefront content. Pass a language code to the [`@inContext`](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/in-context) directive to return product titles, descriptions, and other translatable fields in that language. + /// + /// The [`Localization`](https://shopify.dev/docs/api/storefront/current/objects/Localization) object provides the list of available languages for the active country, and each [`Country`](https://shopify.dev/docs/api/storefront/current/objects/Country) in [`availableCountries`](https://shopify.dev/docs/api/storefront/current/objects/Localization#field-Localization.fields.availableCountries) includes its own available languages. + nonisolated enum LanguageCode: String, EnumType { + /// Afrikaans. + case af = "AF" + /// Akan. + case ak = "AK" + /// Amharic. + case am = "AM" + /// Arabic. + case ar = "AR" + /// Assamese. + case `as` = "AS" + /// Azerbaijani. + case az = "AZ" + /// Belarusian. + case be = "BE" + /// Bulgarian. + case bg = "BG" + /// Bambara. + case bm = "BM" + /// Bangla. + case bn = "BN" + /// Tibetan. + case bo = "BO" + /// Breton. + case br = "BR" + /// Bosnian. + case bs = "BS" + /// Catalan. + case ca = "CA" + /// Chechen. + case ce = "CE" + /// Central Kurdish. + case ckb = "CKB" + /// Czech. + case cs = "CS" + /// Welsh. + case cy = "CY" + /// Danish. + case da = "DA" + /// German. + case de = "DE" + /// Dzongkha. + case dz = "DZ" + /// Ewe. + case ee = "EE" + /// Greek. + case el = "EL" + /// English. + case en = "EN" + /// Esperanto. + case eo = "EO" + /// Spanish. + case es = "ES" + /// Estonian. + case et = "ET" + /// Basque. + case eu = "EU" + /// Persian. + case fa = "FA" + /// Fulah. + case ff = "FF" + /// Finnish. + case fi = "FI" + /// Filipino. + case fil = "FIL" + /// Faroese. + case fo = "FO" + /// French. + case fr = "FR" + /// Western Frisian. + case fy = "FY" + /// Irish. + case ga = "GA" + /// Scottish Gaelic. + case gd = "GD" + /// Galician. + case gl = "GL" + /// Gujarati. + case gu = "GU" + /// Manx. + case gv = "GV" + /// Hausa. + case ha = "HA" + /// Hebrew. + case he = "HE" + /// Hindi. + case hi = "HI" + /// Croatian. + case hr = "HR" + /// Hungarian. + case hu = "HU" + /// Armenian. + case hy = "HY" + /// Interlingua. + case ia = "IA" + /// Indonesian. + case id = "ID" + /// Igbo. + case ig = "IG" + /// Sichuan Yi. + case ii = "II" + /// Icelandic. + case `is` = "IS" + /// Italian. + case it = "IT" + /// Japanese. + case ja = "JA" + /// Javanese. + case jv = "JV" + /// Georgian. + case ka = "KA" + /// Kikuyu. + case ki = "KI" + /// Kazakh. + case kk = "KK" + /// Kalaallisut. + case kl = "KL" + /// Khmer. + case km = "KM" + /// Kannada. + case kn = "KN" + /// Korean. + case ko = "KO" + /// Kashmiri. + case ks = "KS" + /// Kurdish. + case ku = "KU" + /// Cornish. + case kw = "KW" + /// Kyrgyz. + case ky = "KY" + /// Luxembourgish. + case lb = "LB" + /// Ganda. + case lg = "LG" + /// Lingala. + case ln = "LN" + /// Lao. + case lo = "LO" + /// Lithuanian. + case lt = "LT" + /// Luba-Katanga. + case lu = "LU" + /// Latvian. + case lv = "LV" + /// Malagasy. + case mg = "MG" + /// Māori. + case mi = "MI" + /// Macedonian. + case mk = "MK" + /// Malayalam. + case ml = "ML" + /// Mongolian. + case mn = "MN" + /// Marathi. + case mr = "MR" + /// Malay. + case ms = "MS" + /// Maltese. + case mt = "MT" + /// Burmese. + case my = "MY" + /// Norwegian (Bokmål). + case nb = "NB" + /// North Ndebele. + case nd = "ND" + /// Nepali. + case ne = "NE" + /// Dutch. + case nl = "NL" + /// Norwegian Nynorsk. + case nn = "NN" + /// Norwegian. + case no = "NO" + /// Oromo. + case om = "OM" + /// Odia. + case or = "OR" + /// Ossetic. + case os = "OS" + /// Punjabi. + case pa = "PA" + /// Polish. + case pl = "PL" + /// Pashto. + case ps = "PS" + /// Portuguese (Brazil). + case ptBr = "PT_BR" + /// Portuguese (Portugal). + case ptPt = "PT_PT" + /// Quechua. + case qu = "QU" + /// Romansh. + case rm = "RM" + /// Rundi. + case rn = "RN" + /// Romanian. + case ro = "RO" + /// Russian. + case ru = "RU" + /// Kinyarwanda. + case rw = "RW" + /// Sanskrit. + case sa = "SA" + /// Sardinian. + case sc = "SC" + /// Sindhi. + case sd = "SD" + /// Northern Sami. + case se = "SE" + /// Sango. + case sg = "SG" + /// Sinhala. + case si = "SI" + /// Slovak. + case sk = "SK" + /// Slovenian. + case sl = "SL" + /// Shona. + case sn = "SN" + /// Somali. + case so = "SO" + /// Albanian. + case sq = "SQ" + /// Serbian. + case sr = "SR" + /// Sundanese. + case su = "SU" + /// Swedish. + case sv = "SV" + /// Swahili. + case sw = "SW" + /// Tamil. + case ta = "TA" + /// Telugu. + case te = "TE" + /// Tajik. + case tg = "TG" + /// Thai. + case th = "TH" + /// Tigrinya. + case ti = "TI" + /// Turkmen. + case tk = "TK" + /// Tongan. + case to = "TO" + /// Turkish. + case tr = "TR" + /// Tatar. + case tt = "TT" + /// Uyghur. + case ug = "UG" + /// Ukrainian. + case uk = "UK" + /// Urdu. + case ur = "UR" + /// Uzbek. + case uz = "UZ" + /// Vietnamese. + case vi = "VI" + /// Wolof. + case wo = "WO" + /// Xhosa. + case xh = "XH" + /// Yiddish. + case yi = "YI" + /// Yoruba. + case yo = "YO" + /// Chinese (Simplified). + case zhCn = "ZH_CN" + /// Chinese (Traditional). + case zhTw = "ZH_TW" + /// Zulu. + case zu = "ZU" + /// Chinese. + case zh = "ZH" + /// Portuguese. + case pt = "PT" + /// Church Slavic. + case cu = "CU" + /// Volapük. + case vo = "VO" + /// Latin. + case la = "LA" + /// Serbo-Croatian. + case sh = "SH" + /// Moldavian. + case mo = "MO" + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/PreferenceDeliveryMethodType.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/PreferenceDeliveryMethodType.graphql.swift index 6ab63f63..041f6619 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/PreferenceDeliveryMethodType.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Enums/PreferenceDeliveryMethodType.graphql.swift @@ -4,13 +4,14 @@ @_spi(Internal) import ApolloAPI extension Storefront { - /// The preferred delivery methods such as shipping, local pickup or through pickup points. - enum PreferenceDeliveryMethodType: String, EnumType { - /// A delivery method used to send items directly to a buyer’s specified address. - case shipping = "SHIPPING" - /// A delivery method used to let buyers receive items directly from a specific location within an area. - case pickUp = "PICK_UP" - /// A delivery method used to let buyers collect purchases at designated locations like parcel lockers. - case pickupPoint = "PICKUP_POINT" - } -} + /// The preferred delivery methods such as shipping, local pickup or through pickup points. + nonisolated enum PreferenceDeliveryMethodType: String, EnumType { + /// A delivery method used to send items directly to a buyer’s specified address. + case shipping = "SHIPPING" + /// A delivery method used to let buyers receive items directly from a specific location within an area. + case pickUp = "PICK_UP" + /// A delivery method used to let buyers collect purchases at designated locations like parcel lockers. + case pickupPoint = "PICKUP_POINT" + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/AttributeInput.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/AttributeInput.graphql.swift index 11058cc4..fdba711e 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/AttributeInput.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/AttributeInput.graphql.swift @@ -4,34 +4,35 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// A custom key-value pair that stores additional information on a [cart](https://shopify.dev/docs/api/storefront/current/objects/Cart) or [cart line](https://shopify.dev/docs/api/storefront/current/objects/CartLine). Attributes capture additional information like gift messages, special instructions, or custom order details. Learn more about [managing carts with the Storefront API](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/cart/manage). - struct AttributeInput: InputObject { - private(set) var __data: InputDict + /// A custom key-value pair that stores additional information on a [cart](https://shopify.dev/docs/api/storefront/current/objects/Cart) or [cart line](https://shopify.dev/docs/api/storefront/current/objects/CartLine). Attributes capture additional information like gift messages, special instructions, or custom order details. Learn more about [managing carts with the Storefront API](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/cart/manage). + nonisolated struct AttributeInput: InputObject { + private(set) var __data: InputDict - init(_ data: InputDict) { - __data = data - } + init(_ data: InputDict) { + __data = data + } - init( - key: String, - value: String - ) { - __data = InputDict([ - "key": key, - "value": value - ]) - } + init( + key: String, + value: String + ) { + __data = InputDict([ + "key": key, + "value": value + ]) + } - /// Key or name of the attribute. - var key: String { - get { __data["key"] } - set { __data["key"] = newValue } - } + /// Key or name of the attribute. + var key: String { + get { __data["key"] } + set { __data["key"] = newValue } + } - /// Value of the attribute. - var value: String { - get { __data["value"] } - set { __data["value"] = newValue } - } + /// Value of the attribute. + var value: String { + get { __data["value"] } + set { __data["value"] = newValue } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartAddressInput.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartAddressInput.graphql.swift index acc3c221..a3ba7125 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartAddressInput.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartAddressInput.graphql.swift @@ -4,34 +4,35 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// Specifies a delivery address for a cart. Provide either a [`deliveryAddress`](https://shopify.dev/docs/api/storefront/current/input-objects/CartAddressInput#fields-deliveryAddress) with full address details, or a [`copyFromCustomerAddressId`](https://shopify.dev/docs/api/storefront/current/input-objects/CartAddressInput#fields-copyFromCustomerAddressId) to copy from an existing customer address. Used by [`CartSelectableAddressInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartSelectableAddressInput) and [`CartSelectableAddressUpdateInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartSelectableAddressUpdateInput). - struct CartAddressInput: InputObject { - private(set) var __data: InputDict + /// Specifies a delivery address for a cart. Provide either a [`deliveryAddress`](https://shopify.dev/docs/api/storefront/current/input-objects/CartAddressInput#fields-deliveryAddress) with full address details, or a [`copyFromCustomerAddressId`](https://shopify.dev/docs/api/storefront/current/input-objects/CartAddressInput#fields-copyFromCustomerAddressId) to copy from an existing customer address. Used by [`CartSelectableAddressInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartSelectableAddressInput) and [`CartSelectableAddressUpdateInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartSelectableAddressUpdateInput). + nonisolated struct CartAddressInput: InputObject { + private(set) var __data: InputDict - init(_ data: InputDict) { - __data = data - } + init(_ data: InputDict) { + __data = data + } - init( - deliveryAddress: GraphQLNullable = nil, - copyFromCustomerAddressId: GraphQLNullable = nil - ) { - __data = InputDict([ - "deliveryAddress": deliveryAddress, - "copyFromCustomerAddressId": copyFromCustomerAddressId - ]) - } + init( + deliveryAddress: GraphQLNullable = nil, + copyFromCustomerAddressId: GraphQLNullable = nil + ) { + __data = InputDict([ + "deliveryAddress": deliveryAddress, + "copyFromCustomerAddressId": copyFromCustomerAddressId + ]) + } - /// A delivery address stored on this cart. - var deliveryAddress: GraphQLNullable { - get { __data["deliveryAddress"] } - set { __data["deliveryAddress"] = newValue } - } + /// A delivery address stored on this cart. + var deliveryAddress: GraphQLNullable { + get { __data["deliveryAddress"] } + set { __data["deliveryAddress"] = newValue } + } - /// Copies details from the customer address to an address on this cart. - var copyFromCustomerAddressId: GraphQLNullable { - get { __data["copyFromCustomerAddressId"] } - set { __data["copyFromCustomerAddressId"] = newValue } - } + /// Copies details from the customer address to an address on this cart. + var copyFromCustomerAddressId: GraphQLNullable { + get { __data["copyFromCustomerAddressId"] } + set { __data["copyFromCustomerAddressId"] = newValue } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartBuyerIdentityInput.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartBuyerIdentityInput.graphql.swift index e2cdd085..e44c143c 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartBuyerIdentityInput.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartBuyerIdentityInput.graphql.swift @@ -4,72 +4,73 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// The input fields for identifying the buyer associated with a cart. Buyer identity determines [international pricing](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets/international-pricing) and should match the customer's shipping address. - /// - /// Used by [`cartCreate`](https://shopify.dev/docs/api/storefront/current/mutations/cartCreate) and [`cartBuyerIdentityUpdate`](https://shopify.dev/docs/api/storefront/current/mutations/cartBuyerIdentityUpdate) to set contact information, location, and checkout preferences. - /// - /// > Note: - /// > Preferences prefill fields at checkout but don't sync back to the cart if overwritten. - struct CartBuyerIdentityInput: InputObject { - private(set) var __data: InputDict + /// The input fields for identifying the buyer associated with a cart. Buyer identity determines [international pricing](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets/international-pricing) and should match the customer's shipping address. + /// + /// Used by [`cartCreate`](https://shopify.dev/docs/api/storefront/current/mutations/cartCreate) and [`cartBuyerIdentityUpdate`](https://shopify.dev/docs/api/storefront/current/mutations/cartBuyerIdentityUpdate) to set contact information, location, and checkout preferences. + /// + /// > Note: + /// > Preferences prefill fields at checkout but don't sync back to the cart if overwritten. + nonisolated struct CartBuyerIdentityInput: InputObject { + private(set) var __data: InputDict - init(_ data: InputDict) { - __data = data - } + init(_ data: InputDict) { + __data = data + } - init( - email: GraphQLNullable = nil, - phone: GraphQLNullable = nil, - companyLocationId: GraphQLNullable = nil, - countryCode: GraphQLNullable> = nil, - customerAccessToken: GraphQLNullable = nil, - preferences: GraphQLNullable = nil - ) { - __data = InputDict([ - "email": email, - "phone": phone, - "companyLocationId": companyLocationId, - "countryCode": countryCode, - "customerAccessToken": customerAccessToken, - "preferences": preferences - ]) - } + init( + email: GraphQLNullable = nil, + phone: GraphQLNullable = nil, + companyLocationId: GraphQLNullable = nil, + countryCode: GraphQLNullable> = nil, + customerAccessToken: GraphQLNullable = nil, + preferences: GraphQLNullable = nil + ) { + __data = InputDict([ + "email": email, + "phone": phone, + "companyLocationId": companyLocationId, + "countryCode": countryCode, + "customerAccessToken": customerAccessToken, + "preferences": preferences + ]) + } - /// The email address of the buyer that is interacting with the cart. - var email: GraphQLNullable { - get { __data["email"] } - set { __data["email"] = newValue } - } + /// The email address of the buyer that is interacting with the cart. + var email: GraphQLNullable { + get { __data["email"] } + set { __data["email"] = newValue } + } - /// The phone number of the buyer that is interacting with the cart. - var phone: GraphQLNullable { - get { __data["phone"] } - set { __data["phone"] = newValue } - } + /// The phone number of the buyer that is interacting with the cart. + var phone: GraphQLNullable { + get { __data["phone"] } + set { __data["phone"] = newValue } + } - /// The company location of the buyer that is interacting with the cart. - var companyLocationId: GraphQLNullable { - get { __data["companyLocationId"] } - set { __data["companyLocationId"] = newValue } - } + /// The company location of the buyer that is interacting with the cart. + var companyLocationId: GraphQLNullable { + get { __data["companyLocationId"] } + set { __data["companyLocationId"] = newValue } + } - /// The country where the buyer is located. - var countryCode: GraphQLNullable> { - get { __data["countryCode"] } - set { __data["countryCode"] = newValue } - } + /// The country where the buyer is located. + var countryCode: GraphQLNullable> { + get { __data["countryCode"] } + set { __data["countryCode"] = newValue } + } - /// The access token used to identify the customer associated with the cart. - var customerAccessToken: GraphQLNullable { - get { __data["customerAccessToken"] } - set { __data["customerAccessToken"] = newValue } - } + /// The access token used to identify the customer associated with the cart. + var customerAccessToken: GraphQLNullable { + get { __data["customerAccessToken"] } + set { __data["customerAccessToken"] = newValue } + } - /// A set of preferences tied to the buyer interacting with the cart. Preferences are used to prefill fields in at checkout to streamline information collection. - /// Preferences are not synced back to the cart if they are overwritten. - var preferences: GraphQLNullable { - get { __data["preferences"] } - set { __data["preferences"] = newValue } - } + /// A set of preferences tied to the buyer interacting with the cart. Preferences are used to prefill fields in at checkout to streamline information collection. + /// Preferences are not synced back to the cart if they are overwritten. + var preferences: GraphQLNullable { + get { __data["preferences"] } + set { __data["preferences"] = newValue } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartDeliveryAddressInput.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartDeliveryAddressInput.graphql.swift index 2513370b..974f7605 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartDeliveryAddressInput.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartDeliveryAddressInput.graphql.swift @@ -4,100 +4,101 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// The input fields to create or update a cart address. - struct CartDeliveryAddressInput: InputObject { - private(set) var __data: InputDict + /// The input fields to create or update a cart address. + nonisolated struct CartDeliveryAddressInput: InputObject { + private(set) var __data: InputDict - init(_ data: InputDict) { - __data = data - } + init(_ data: InputDict) { + __data = data + } - init( - address1: GraphQLNullable = nil, - address2: GraphQLNullable = nil, - city: GraphQLNullable = nil, - company: GraphQLNullable = nil, - countryCode: GraphQLNullable> = nil, - firstName: GraphQLNullable = nil, - lastName: GraphQLNullable = nil, - phone: GraphQLNullable = nil, - provinceCode: GraphQLNullable = nil, - zip: GraphQLNullable = nil - ) { - __data = InputDict([ - "address1": address1, - "address2": address2, - "city": city, - "company": company, - "countryCode": countryCode, - "firstName": firstName, - "lastName": lastName, - "phone": phone, - "provinceCode": provinceCode, - "zip": zip - ]) - } + init( + address1: GraphQLNullable = nil, + address2: GraphQLNullable = nil, + city: GraphQLNullable = nil, + company: GraphQLNullable = nil, + countryCode: GraphQLNullable> = nil, + firstName: GraphQLNullable = nil, + lastName: GraphQLNullable = nil, + phone: GraphQLNullable = nil, + provinceCode: GraphQLNullable = nil, + zip: GraphQLNullable = nil + ) { + __data = InputDict([ + "address1": address1, + "address2": address2, + "city": city, + "company": company, + "countryCode": countryCode, + "firstName": firstName, + "lastName": lastName, + "phone": phone, + "provinceCode": provinceCode, + "zip": zip + ]) + } - /// The first line of the address. Typically the street address or PO Box number. - var address1: GraphQLNullable { - get { __data["address1"] } - set { __data["address1"] = newValue } - } + /// The first line of the address. Typically the street address or PO Box number. + var address1: GraphQLNullable { + get { __data["address1"] } + set { __data["address1"] = newValue } + } - /// The second line of the address. Typically the number of the apartment, suite, or unit. - var address2: GraphQLNullable { - get { __data["address2"] } - set { __data["address2"] = newValue } - } + /// The second line of the address. Typically the number of the apartment, suite, or unit. + var address2: GraphQLNullable { + get { __data["address2"] } + set { __data["address2"] = newValue } + } - /// The name of the city, district, village, or town. - var city: GraphQLNullable { - get { __data["city"] } - set { __data["city"] = newValue } - } + /// The name of the city, district, village, or town. + var city: GraphQLNullable { + get { __data["city"] } + set { __data["city"] = newValue } + } - /// The name of the customer's company or organization. - var company: GraphQLNullable { - get { __data["company"] } - set { __data["company"] = newValue } - } + /// The name of the customer's company or organization. + var company: GraphQLNullable { + get { __data["company"] } + set { __data["company"] = newValue } + } - /// The name of the country. - var countryCode: GraphQLNullable> { - get { __data["countryCode"] } - set { __data["countryCode"] = newValue } - } + /// The name of the country. + var countryCode: GraphQLNullable> { + get { __data["countryCode"] } + set { __data["countryCode"] = newValue } + } - /// The first name of the customer. - var firstName: GraphQLNullable { - get { __data["firstName"] } - set { __data["firstName"] = newValue } - } + /// The first name of the customer. + var firstName: GraphQLNullable { + get { __data["firstName"] } + set { __data["firstName"] = newValue } + } - /// The last name of the customer. - var lastName: GraphQLNullable { - get { __data["lastName"] } - set { __data["lastName"] = newValue } - } + /// The last name of the customer. + var lastName: GraphQLNullable { + get { __data["lastName"] } + set { __data["lastName"] = newValue } + } - /// A unique phone number for the customer. - /// - /// Formatted using E.164 standard. For example, _+16135551111_. - var phone: GraphQLNullable { - get { __data["phone"] } - set { __data["phone"] = newValue } - } + /// A unique phone number for the customer. + /// + /// Formatted using E.164 standard. For example, _+16135551111_. + var phone: GraphQLNullable { + get { __data["phone"] } + set { __data["phone"] = newValue } + } - /// The region of the address, such as the province, state, or district. - var provinceCode: GraphQLNullable { - get { __data["provinceCode"] } - set { __data["provinceCode"] = newValue } - } + /// The region of the address, such as the province, state, or district. + var provinceCode: GraphQLNullable { + get { __data["provinceCode"] } + set { __data["provinceCode"] = newValue } + } - /// The zip or postal code of the address. - var zip: GraphQLNullable { - get { __data["zip"] } - set { __data["zip"] = newValue } - } + /// The zip or postal code of the address. + var zip: GraphQLNullable { + get { __data["zip"] } + set { __data["zip"] = newValue } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartDeliveryCoordinatesPreferenceInput.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartDeliveryCoordinatesPreferenceInput.graphql.swift index eb0f0c3e..f5a2e237 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartDeliveryCoordinatesPreferenceInput.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartDeliveryCoordinatesPreferenceInput.graphql.swift @@ -4,44 +4,45 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// Preferred location used to find the closest pick up point based on coordinates. - struct CartDeliveryCoordinatesPreferenceInput: InputObject { - private(set) var __data: InputDict - - init(_ data: InputDict) { - __data = data - } - - init( - latitude: Double, - longitude: Double, - countryCode: GraphQLEnum - ) { - __data = InputDict([ - "latitude": latitude, - "longitude": longitude, - "countryCode": countryCode - ]) - } - - /// The geographic latitude for a given location. Coordinates are required in order to set pickUpHandle for pickup points. - var latitude: Double { - get { __data["latitude"] } - set { __data["latitude"] = newValue } - } - - /// The geographic longitude for a given location. Coordinates are required in order to set pickUpHandle for pickup points. - var longitude: Double { - get { __data["longitude"] } - set { __data["longitude"] = newValue } - } - - /// The two-letter code for the country of the preferred location. - /// - /// For example, US. - var countryCode: GraphQLEnum { - get { __data["countryCode"] } - set { __data["countryCode"] = newValue } - } + /// Preferred location used to find the closest pick up point based on coordinates. + nonisolated struct CartDeliveryCoordinatesPreferenceInput: InputObject { + private(set) var __data: InputDict + + init(_ data: InputDict) { + __data = data + } + + init( + latitude: Double, + longitude: Double, + countryCode: GraphQLEnum + ) { + __data = InputDict([ + "latitude": latitude, + "longitude": longitude, + "countryCode": countryCode + ]) + } + + /// The geographic latitude for a given location. Coordinates are required in order to set pickUpHandle for pickup points. + var latitude: Double { + get { __data["latitude"] } + set { __data["latitude"] = newValue } } -} + + /// The geographic longitude for a given location. Coordinates are required in order to set pickUpHandle for pickup points. + var longitude: Double { + get { __data["longitude"] } + set { __data["longitude"] = newValue } + } + + /// The two-letter code for the country of the preferred location. + /// + /// For example, US. + var countryCode: GraphQLEnum { + get { __data["countryCode"] } + set { __data["countryCode"] = newValue } + } + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartDeliveryInput.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartDeliveryInput.graphql.swift index 19432992..195a443b 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartDeliveryInput.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartDeliveryInput.graphql.swift @@ -4,28 +4,29 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// The input fields for the cart's delivery properties. - struct CartDeliveryInput: InputObject { - private(set) var __data: InputDict + /// The input fields for the cart's delivery properties. + nonisolated struct CartDeliveryInput: InputObject { + private(set) var __data: InputDict - init(_ data: InputDict) { - __data = data - } + init(_ data: InputDict) { + __data = data + } - init( - addresses: GraphQLNullable<[CartSelectableAddressInput]> = nil - ) { - __data = InputDict([ - "addresses": addresses - ]) - } + init( + addresses: GraphQLNullable<[CartSelectableAddressInput]> = nil + ) { + __data = InputDict([ + "addresses": addresses + ]) + } - /// Selectable addresses to present to the buyer on the cart. - /// - /// The input must not contain more than `250` values. - var addresses: GraphQLNullable<[CartSelectableAddressInput]> { - get { __data["addresses"] } - set { __data["addresses"] = newValue } - } + /// Selectable addresses to present to the buyer on the cart. + /// + /// The input must not contain more than `250` values. + var addresses: GraphQLNullable<[CartSelectableAddressInput]> { + get { __data["addresses"] } + set { __data["addresses"] = newValue } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartDeliveryPreferenceInput.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartDeliveryPreferenceInput.graphql.swift index 7ccd890c..df0d6935 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartDeliveryPreferenceInput.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartDeliveryPreferenceInput.graphql.swift @@ -4,47 +4,48 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// Delivery preferences can be used to prefill the delivery section at checkout. - struct CartDeliveryPreferenceInput: InputObject { - private(set) var __data: InputDict - - init(_ data: InputDict) { - __data = data - } - - init( - deliveryMethod: GraphQLNullable<[GraphQLEnum]> = nil, - pickupHandle: GraphQLNullable<[String]> = nil, - coordinates: GraphQLNullable = nil - ) { - __data = InputDict([ - "deliveryMethod": deliveryMethod, - "pickupHandle": pickupHandle, - "coordinates": coordinates - ]) - } - - /// The preferred delivery methods such as shipping, local pickup or through pickup points. - /// - /// The input must not contain more than `250` values. - var deliveryMethod: GraphQLNullable<[GraphQLEnum]> { - get { __data["deliveryMethod"] } - set { __data["deliveryMethod"] = newValue } - } - - /// The pickup handle prefills checkout fields with the location for either local pickup or pickup points delivery methods. - /// It accepts both location ID for local pickup and external IDs for pickup points. - /// - /// The input must not contain more than `250` values. - var pickupHandle: GraphQLNullable<[String]> { - get { __data["pickupHandle"] } - set { __data["pickupHandle"] = newValue } - } - - /// The coordinates of a delivery location in order of preference. - var coordinates: GraphQLNullable { - get { __data["coordinates"] } - set { __data["coordinates"] = newValue } - } + /// Delivery preferences can be used to prefill the delivery section at checkout. + nonisolated struct CartDeliveryPreferenceInput: InputObject { + private(set) var __data: InputDict + + init(_ data: InputDict) { + __data = data + } + + init( + deliveryMethod: GraphQLNullable<[GraphQLEnum]> = nil, + pickupHandle: GraphQLNullable<[String]> = nil, + coordinates: GraphQLNullable = nil + ) { + __data = InputDict([ + "deliveryMethod": deliveryMethod, + "pickupHandle": pickupHandle, + "coordinates": coordinates + ]) + } + + /// The preferred delivery methods such as shipping, local pickup or through pickup points. + /// + /// The input must not contain more than `250` values. + var deliveryMethod: GraphQLNullable<[GraphQLEnum]> { + get { __data["deliveryMethod"] } + set { __data["deliveryMethod"] = newValue } } -} + + /// The pickup handle prefills checkout fields with the location for either local pickup or pickup points delivery methods. + /// It accepts both location ID for local pickup and external IDs for pickup points. + /// + /// The input must not contain more than `250` values. + var pickupHandle: GraphQLNullable<[String]> { + get { __data["pickupHandle"] } + set { __data["pickupHandle"] = newValue } + } + + /// The coordinates of a delivery location in order of preference. + var coordinates: GraphQLNullable { + get { __data["coordinates"] } + set { __data["coordinates"] = newValue } + } + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartInput.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartInput.graphql.swift index 7faf377f..b9481ee4 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartInput.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartInput.graphql.swift @@ -4,96 +4,97 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// The input fields for creating a [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart). Used by the [`cartCreate`](https://shopify.dev/docs/api/storefront/current/mutations/cartCreate) mutation. - /// - /// Accepts merchandise lines, discount codes, gift card codes, and a note. You can also set custom attributes, metafields, buyer identity for international pricing, and delivery addresses. - struct CartInput: InputObject { - private(set) var __data: InputDict + /// The input fields for creating a [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart). Used by the [`cartCreate`](https://shopify.dev/docs/api/storefront/current/mutations/cartCreate) mutation. + /// + /// Accepts merchandise lines, discount codes, gift card codes, and a note. You can also set custom attributes, metafields, buyer identity for international pricing, and delivery addresses. + nonisolated struct CartInput: InputObject { + private(set) var __data: InputDict - init(_ data: InputDict) { - __data = data - } + init(_ data: InputDict) { + __data = data + } - init( - attributes: GraphQLNullable<[AttributeInput]> = nil, - lines: GraphQLNullable<[CartLineInput]> = nil, - discountCodes: GraphQLNullable<[String]> = nil, - giftCardCodes: GraphQLNullable<[String]> = nil, - note: GraphQLNullable = nil, - buyerIdentity: GraphQLNullable = nil, - delivery: GraphQLNullable = nil, - metafields: GraphQLNullable<[CartInputMetafieldInput]> = nil - ) { - __data = InputDict([ - "attributes": attributes, - "lines": lines, - "discountCodes": discountCodes, - "giftCardCodes": giftCardCodes, - "note": note, - "buyerIdentity": buyerIdentity, - "delivery": delivery, - "metafields": metafields - ]) - } + init( + attributes: GraphQLNullable<[AttributeInput]> = nil, + lines: GraphQLNullable<[CartLineInput]> = nil, + discountCodes: GraphQLNullable<[String]> = nil, + giftCardCodes: GraphQLNullable<[String]> = nil, + note: GraphQLNullable = nil, + buyerIdentity: GraphQLNullable = nil, + delivery: GraphQLNullable = nil, + metafields: GraphQLNullable<[CartInputMetafieldInput]> = nil + ) { + __data = InputDict([ + "attributes": attributes, + "lines": lines, + "discountCodes": discountCodes, + "giftCardCodes": giftCardCodes, + "note": note, + "buyerIdentity": buyerIdentity, + "delivery": delivery, + "metafields": metafields + ]) + } - /// An array of key-value pairs that contains additional information about the cart. - /// - /// The input must not contain more than `250` values. - var attributes: GraphQLNullable<[AttributeInput]> { - get { __data["attributes"] } - set { __data["attributes"] = newValue } - } + /// An array of key-value pairs that contains additional information about the cart. + /// + /// The input must not contain more than `250` values. + var attributes: GraphQLNullable<[AttributeInput]> { + get { __data["attributes"] } + set { __data["attributes"] = newValue } + } - /// A list of merchandise lines to add to the cart. - /// - /// The input must not contain more than `250` values. - var lines: GraphQLNullable<[CartLineInput]> { - get { __data["lines"] } - set { __data["lines"] = newValue } - } + /// A list of merchandise lines to add to the cart. + /// + /// The input must not contain more than `250` values. + var lines: GraphQLNullable<[CartLineInput]> { + get { __data["lines"] } + set { __data["lines"] = newValue } + } - /// The case-insensitive discount codes that the customer added at checkout. - /// - /// The input must not contain more than `250` values. - var discountCodes: GraphQLNullable<[String]> { - get { __data["discountCodes"] } - set { __data["discountCodes"] = newValue } - } + /// The case-insensitive discount codes that the customer added at checkout. + /// + /// The input must not contain more than `250` values. + var discountCodes: GraphQLNullable<[String]> { + get { __data["discountCodes"] } + set { __data["discountCodes"] = newValue } + } - /// The case-insensitive gift card codes. - /// - /// The input must not contain more than `250` values. - var giftCardCodes: GraphQLNullable<[String]> { - get { __data["giftCardCodes"] } - set { __data["giftCardCodes"] = newValue } - } + /// The case-insensitive gift card codes. + /// + /// The input must not contain more than `250` values. + var giftCardCodes: GraphQLNullable<[String]> { + get { __data["giftCardCodes"] } + set { __data["giftCardCodes"] = newValue } + } - /// A note that's associated with the cart. For example, the note can be a personalized message to the buyer. - var note: GraphQLNullable { - get { __data["note"] } - set { __data["note"] = newValue } - } + /// A note that's associated with the cart. For example, the note can be a personalized message to the buyer. + var note: GraphQLNullable { + get { __data["note"] } + set { __data["note"] = newValue } + } - /// The customer associated with the cart. Used to determine [international pricing] - /// (https://shopify.dev/custom-storefronts/internationalization/international-pricing). - /// Buyer identity should match the customer's shipping address. - var buyerIdentity: GraphQLNullable { - get { __data["buyerIdentity"] } - set { __data["buyerIdentity"] = newValue } - } + /// The customer associated with the cart. Used to determine [international pricing] + /// (https://shopify.dev/custom-storefronts/internationalization/international-pricing). + /// Buyer identity should match the customer's shipping address. + var buyerIdentity: GraphQLNullable { + get { __data["buyerIdentity"] } + set { __data["buyerIdentity"] = newValue } + } - /// The delivery-related fields for the cart. - var delivery: GraphQLNullable { - get { __data["delivery"] } - set { __data["delivery"] = newValue } - } + /// The delivery-related fields for the cart. + var delivery: GraphQLNullable { + get { __data["delivery"] } + set { __data["delivery"] = newValue } + } - /// The metafields to associate with this cart. - /// - /// The input must not contain more than `250` values. - var metafields: GraphQLNullable<[CartInputMetafieldInput]> { - get { __data["metafields"] } - set { __data["metafields"] = newValue } - } + /// The metafields to associate with this cart. + /// + /// The input must not contain more than `250` values. + var metafields: GraphQLNullable<[CartInputMetafieldInput]> { + get { __data["metafields"] } + set { __data["metafields"] = newValue } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartInputMetafieldInput.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartInputMetafieldInput.graphql.swift index 353b89f0..14287d20 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartInputMetafieldInput.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartInputMetafieldInput.graphql.swift @@ -4,45 +4,46 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// The input fields for a cart metafield value to set. - /// - /// Cart metafields will be copied to order metafields at order creation time if there is a matching order metafield definition with the [`cart to order copyable`](https://shopify.dev/docs/apps/build/metafields/use-metafield-capabilities#cart-to-order-copyable) capability enabled. - struct CartInputMetafieldInput: InputObject { - private(set) var __data: InputDict - - init(_ data: InputDict) { - __data = data - } - - init( - key: String, - value: String, - type: String - ) { - __data = InputDict([ - "key": key, - "value": value, - "type": type - ]) - } - - /// The key name of the metafield. - var key: String { - get { __data["key"] } - set { __data["key"] = newValue } - } - - /// The data to store in the cart metafield. The data is always stored as a string, regardless of the metafield's type. - var value: String { - get { __data["value"] } - set { __data["value"] = newValue } - } - - /// The type of data that the cart metafield stores. - /// The type of data must be a [supported type](https://shopify.dev/apps/metafields/types). - var type: String { - get { __data["type"] } - set { __data["type"] = newValue } - } + /// The input fields for a cart metafield value to set. + /// + /// Cart metafields will be copied to order metafields at order creation time if there is a matching order metafield definition with the [`cart to order copyable`](https://shopify.dev/docs/apps/build/metafields/use-metafield-capabilities#cart-to-order-copyable) capability enabled. + nonisolated struct CartInputMetafieldInput: InputObject { + private(set) var __data: InputDict + + init(_ data: InputDict) { + __data = data + } + + init( + key: String, + value: String, + type: String + ) { + __data = InputDict([ + "key": key, + "value": value, + "type": type + ]) + } + + /// The key name of the metafield. + var key: String { + get { __data["key"] } + set { __data["key"] = newValue } } -} + + /// The data to store in the cart metafield. The data is always stored as a string, regardless of the metafield's type. + var value: String { + get { __data["value"] } + set { __data["value"] = newValue } + } + + /// The type of data that the cart metafield stores. + /// The type of data must be a [supported type](https://shopify.dev/apps/metafields/types). + var type: String { + get { __data["type"] } + set { __data["type"] = newValue } + } + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartLineInput.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartLineInput.graphql.swift index bee7ff32..ad83e0a3 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartLineInput.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartLineInput.graphql.swift @@ -4,54 +4,63 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// The input fields for adding a merchandise line to a cart. Each line represents a [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) the buyer intends to purchase, along with the quantity and optional [`SellingPlan`](https://shopify.dev/docs/api/storefront/current/objects/SellingPlan) for subscriptions. + /// The input fields for adding a merchandise line to a cart. Each line represents a [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) the buyer intends to purchase, along with the quantity and optional [`SellingPlan`](https://shopify.dev/docs/api/storefront/current/objects/SellingPlan) for subscriptions. + /// + /// Used by the [`cartCreate`](https://shopify.dev/docs/api/storefront/current/mutations/cartCreate) mutation when creating a cart with initial items, and the [`cartLinesAdd`](https://shopify.dev/docs/api/storefront/current/mutations/cartLinesAdd) mutation when adding items to an existing cart. + nonisolated struct CartLineInput: InputObject { + private(set) var __data: InputDict + + init(_ data: InputDict) { + __data = data + } + + init( + attributes: GraphQLNullable<[AttributeInput]> = nil, + quantity: GraphQLNullable = nil, + merchandiseId: ID, + sellingPlanId: GraphQLNullable = nil, + parent: GraphQLNullable = nil + ) { + __data = InputDict([ + "attributes": attributes, + "quantity": quantity, + "merchandiseId": merchandiseId, + "sellingPlanId": sellingPlanId, + "parent": parent + ]) + } + + /// An array of key-value pairs that contains additional information about the merchandise line. /// - /// Used by the [`cartCreate`](https://shopify.dev/docs/api/storefront/current/mutations/cartCreate) mutation when creating a cart with initial items, and the [`cartLinesAdd`](https://shopify.dev/docs/api/storefront/current/mutations/cartLinesAdd) mutation when adding items to an existing cart. - struct CartLineInput: InputObject { - private(set) var __data: InputDict - - init(_ data: InputDict) { - __data = data - } - - init( - attributes: GraphQLNullable<[AttributeInput]> = nil, - quantity: GraphQLNullable = nil, - merchandiseId: ID, - sellingPlanId: GraphQLNullable = nil - ) { - __data = InputDict([ - "attributes": attributes, - "quantity": quantity, - "merchandiseId": merchandiseId, - "sellingPlanId": sellingPlanId - ]) - } - - /// An array of key-value pairs that contains additional information about the merchandise line. - /// - /// The input must not contain more than `250` values. - var attributes: GraphQLNullable<[AttributeInput]> { - get { __data["attributes"] } - set { __data["attributes"] = newValue } - } - - /// The quantity of the merchandise. - var quantity: GraphQLNullable { - get { __data["quantity"] } - set { __data["quantity"] = newValue } - } - - /// The ID of the merchandise that the buyer intends to purchase. - var merchandiseId: ID { - get { __data["merchandiseId"] } - set { __data["merchandiseId"] = newValue } - } - - /// The ID of the selling plan that the merchandise is being purchased with. - var sellingPlanId: GraphQLNullable { - get { __data["sellingPlanId"] } - set { __data["sellingPlanId"] = newValue } - } + /// The input must not contain more than `250` values. + var attributes: GraphQLNullable<[AttributeInput]> { + get { __data["attributes"] } + set { __data["attributes"] = newValue } + } + + /// The quantity of the merchandise. + var quantity: GraphQLNullable { + get { __data["quantity"] } + set { __data["quantity"] = newValue } } -} + + /// The ID of the merchandise that the buyer intends to purchase. + var merchandiseId: ID { + get { __data["merchandiseId"] } + set { __data["merchandiseId"] = newValue } + } + + /// The ID of the selling plan that the merchandise is being purchased with. + var sellingPlanId: GraphQLNullable { + get { __data["sellingPlanId"] } + set { __data["sellingPlanId"] = newValue } + } + + /// The parent line item of the cart line. + var parent: GraphQLNullable { + get { __data["parent"] } + set { __data["parent"] = newValue } + } + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartLineParentInput.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartLineParentInput.graphql.swift new file mode 100644 index 00000000..95db4722 --- /dev/null +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartLineParentInput.graphql.swift @@ -0,0 +1,38 @@ +// @generated +// This file was automatically generated and should not be edited. + +@_spi(Internal) @_spi(Unsafe) import ApolloAPI + +extension Storefront { + /// The parent line item of the cart line. + nonisolated struct CartLineParentInput: InputObject { + private(set) var __data: InputDict + + init(_ data: InputDict) { + __data = data + } + + init( + lineId: GraphQLNullable = nil, + merchandiseId: GraphQLNullable = nil + ) { + __data = InputDict([ + "lineId": lineId, + "merchandiseId": merchandiseId + ]) + } + + /// The id of the parent line item. + var lineId: GraphQLNullable { + get { __data["lineId"] } + set { __data["lineId"] = newValue } + } + + /// The ID of the parent line merchandise. + var merchandiseId: GraphQLNullable { + get { __data["merchandiseId"] } + set { __data["merchandiseId"] = newValue } + } + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartLineUpdateInput.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartLineUpdateInput.graphql.swift index 6f4e40d4..6143ca21 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartLineUpdateInput.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartLineUpdateInput.graphql.swift @@ -4,62 +4,63 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// The input fields for updating a merchandise line in a cart. Used by the [`cartLinesUpdate`](https://shopify.dev/docs/api/storefront/current/mutations/cartLinesUpdate) mutation. - /// - /// Specify the line item's [`id`](https://shopify.dev/docs/api/storefront/current/input-objects/CartLineUpdateInput#fields-id) along with any fields to modify. You can change the quantity, swap the merchandise, update custom attributes, or associate a different selling plan. - struct CartLineUpdateInput: InputObject { - private(set) var __data: InputDict + /// The input fields for updating a merchandise line in a cart. Used by the [`cartLinesUpdate`](https://shopify.dev/docs/api/storefront/current/mutations/cartLinesUpdate) mutation. + /// + /// Specify the line item's [`id`](https://shopify.dev/docs/api/storefront/current/input-objects/CartLineUpdateInput#fields-id) along with any fields to modify. You can change the quantity, swap the merchandise, update custom attributes, or associate a different selling plan. + nonisolated struct CartLineUpdateInput: InputObject { + private(set) var __data: InputDict - init(_ data: InputDict) { - __data = data - } + init(_ data: InputDict) { + __data = data + } - init( - id: ID, - quantity: GraphQLNullable = nil, - merchandiseId: GraphQLNullable = nil, - attributes: GraphQLNullable<[AttributeInput]> = nil, - sellingPlanId: GraphQLNullable = nil - ) { - __data = InputDict([ - "id": id, - "quantity": quantity, - "merchandiseId": merchandiseId, - "attributes": attributes, - "sellingPlanId": sellingPlanId - ]) - } + init( + id: ID, + quantity: GraphQLNullable = nil, + merchandiseId: GraphQLNullable = nil, + attributes: GraphQLNullable<[AttributeInput]> = nil, + sellingPlanId: GraphQLNullable = nil + ) { + __data = InputDict([ + "id": id, + "quantity": quantity, + "merchandiseId": merchandiseId, + "attributes": attributes, + "sellingPlanId": sellingPlanId + ]) + } - /// The ID of the merchandise line. - var id: ID { - get { __data["id"] } - set { __data["id"] = newValue } - } + /// The ID of the merchandise line. + var id: ID { + get { __data["id"] } + set { __data["id"] = newValue } + } - /// The quantity of the line item. - var quantity: GraphQLNullable { - get { __data["quantity"] } - set { __data["quantity"] = newValue } - } + /// The quantity of the line item. + var quantity: GraphQLNullable { + get { __data["quantity"] } + set { __data["quantity"] = newValue } + } - /// The ID of the merchandise for the line item. - var merchandiseId: GraphQLNullable { - get { __data["merchandiseId"] } - set { __data["merchandiseId"] = newValue } - } + /// The ID of the merchandise for the line item. + var merchandiseId: GraphQLNullable { + get { __data["merchandiseId"] } + set { __data["merchandiseId"] = newValue } + } - /// An array of key-value pairs that contains additional information about the merchandise line. - /// - /// The input must not contain more than `250` values. - var attributes: GraphQLNullable<[AttributeInput]> { - get { __data["attributes"] } - set { __data["attributes"] = newValue } - } + /// An array of key-value pairs that contains additional information about the merchandise line. + /// + /// The input must not contain more than `250` values. + var attributes: GraphQLNullable<[AttributeInput]> { + get { __data["attributes"] } + set { __data["attributes"] = newValue } + } - /// The ID of the selling plan that the merchandise is being purchased with. - var sellingPlanId: GraphQLNullable { - get { __data["sellingPlanId"] } - set { __data["sellingPlanId"] = newValue } - } + /// The ID of the selling plan that the merchandise is being purchased with. + var sellingPlanId: GraphQLNullable { + get { __data["sellingPlanId"] } + set { __data["sellingPlanId"] = newValue } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartPreferencesInput.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartPreferencesInput.graphql.swift index da09e7e9..939b3d24 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartPreferencesInput.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartPreferencesInput.graphql.swift @@ -4,37 +4,38 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// The input fields represent preferences for the buyer that is interacting with the cart. - struct CartPreferencesInput: InputObject { - private(set) var __data: InputDict + /// The input fields represent preferences for the buyer that is interacting with the cart. + nonisolated struct CartPreferencesInput: InputObject { + private(set) var __data: InputDict - init(_ data: InputDict) { - __data = data - } + init(_ data: InputDict) { + __data = data + } - init( - delivery: GraphQLNullable = nil, - wallet: GraphQLNullable<[String]> = nil - ) { - __data = InputDict([ - "delivery": delivery, - "wallet": wallet - ]) - } + init( + delivery: GraphQLNullable = nil, + wallet: GraphQLNullable<[String]> = nil + ) { + __data = InputDict([ + "delivery": delivery, + "wallet": wallet + ]) + } - /// Delivery preferences can be used to prefill the delivery section in at checkout. - var delivery: GraphQLNullable { - get { __data["delivery"] } - set { __data["delivery"] = newValue } - } + /// Delivery preferences can be used to prefill the delivery section in at checkout. + var delivery: GraphQLNullable { + get { __data["delivery"] } + set { __data["delivery"] = newValue } + } - /// Wallet preferences are used to populate relevant payment fields in the checkout flow. - /// Accepted value: `["shop_pay"]`. - /// - /// The input must not contain more than `250` values. - var wallet: GraphQLNullable<[String]> { - get { __data["wallet"] } - set { __data["wallet"] = newValue } - } + /// Wallet preferences are used to populate relevant payment fields in the checkout flow. + /// Accepted value: `["shop_pay"]`. + /// + /// The input must not contain more than `250` values. + var wallet: GraphQLNullable<[String]> { + get { __data["wallet"] } + set { __data["wallet"] = newValue } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartSelectableAddressInput.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartSelectableAddressInput.graphql.swift index 2900a738..b5623f57 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartSelectableAddressInput.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/InputObjects/CartSelectableAddressInput.graphql.swift @@ -4,52 +4,53 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// The input fields for a selectable delivery address to present to the buyer. Used by [`CartDeliveryInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartDeliveryInput) when creating a cart with the [`cartCreate`](https://shopify.dev/docs/api/storefront/current/mutations/cartCreate) mutation. - /// - /// You can pre-select an address for the buyer, mark it as one-time use so it isn't saved after checkout, and specify how strictly the address should be validated. - struct CartSelectableAddressInput: InputObject { - private(set) var __data: InputDict - - init(_ data: InputDict) { - __data = data - } - - init( - address: CartAddressInput, - selected: GraphQLNullable = nil, - oneTimeUse: GraphQLNullable = nil, - validationStrategy: GraphQLNullable> = nil - ) { - __data = InputDict([ - "address": address, - "selected": selected, - "oneTimeUse": oneTimeUse, - "validationStrategy": validationStrategy - ]) - } - - /// Exactly one kind of delivery address. - var address: CartAddressInput { - get { __data["address"] } - set { __data["address"] = newValue } - } - - /// Sets exactly one address as pre-selected for the buyer. - var selected: GraphQLNullable { - get { __data["selected"] } - set { __data["selected"] = newValue } - } - - /// When true, this delivery address will not be associated with the buyer after a successful checkout. - var oneTimeUse: GraphQLNullable { - get { __data["oneTimeUse"] } - set { __data["oneTimeUse"] = newValue } - } - - /// Defines what kind of address validation is requested. - var validationStrategy: GraphQLNullable> { - get { __data["validationStrategy"] } - set { __data["validationStrategy"] = newValue } - } + /// The input fields for a selectable delivery address to present to the buyer. Used by [`CartDeliveryInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartDeliveryInput) when creating a cart with the [`cartCreate`](https://shopify.dev/docs/api/storefront/current/mutations/cartCreate) mutation. + /// + /// You can pre-select an address for the buyer, mark it as one-time use so it isn't saved after checkout, and specify how strictly the address should be validated. + nonisolated struct CartSelectableAddressInput: InputObject { + private(set) var __data: InputDict + + init(_ data: InputDict) { + __data = data } -} + + init( + address: CartAddressInput, + selected: GraphQLNullable = nil, + oneTimeUse: GraphQLNullable = nil, + validationStrategy: GraphQLNullable> = nil + ) { + __data = InputDict([ + "address": address, + "selected": selected, + "oneTimeUse": oneTimeUse, + "validationStrategy": validationStrategy + ]) + } + + /// Exactly one kind of delivery address. + var address: CartAddressInput { + get { __data["address"] } + set { __data["address"] = newValue } + } + + /// Sets exactly one address as pre-selected for the buyer. + var selected: GraphQLNullable { + get { __data["selected"] } + set { __data["selected"] = newValue } + } + + /// When true, this delivery address will not be associated with the buyer after a successful checkout. + var oneTimeUse: GraphQLNullable { + get { __data["oneTimeUse"] } + set { __data["oneTimeUse"] = newValue } + } + + /// Defines what kind of address validation is requested. + var validationStrategy: GraphQLNullable> { + get { __data["validationStrategy"] } + set { __data["validationStrategy"] = newValue } + } + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/BaseCartLine.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/BaseCartLine.graphql.swift index 1b24703e..b6471a16 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/BaseCartLine.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/BaseCartLine.graphql.swift @@ -4,15 +4,15 @@ import ApolloAPI extension Storefront.Interfaces { - /// Defines the shared fields for items in a shopping cart. Implemented by [`CartLine`](https://shopify.dev/docs/api/storefront/current/objects/CartLine) for individual merchandise and [`ComponentizableCartLine`](https://shopify.dev/docs/api/storefront/current/objects/ComponentizableCartLine) for grouped merchandise like bundles. - /// - /// Each implementation includes the merchandise being purchased, quantity, cost breakdown, applied discounts, custom attributes, and any associated [`SellingPlan`](https://shopify.dev/docs/api/storefront/current/objects/SellingPlan). - static let BaseCartLine = ApolloAPI.Interface( - name: "BaseCartLine", - keyFields: nil, - implementingObjects: [ - "CartLine", - "ComponentizableCartLine" - ] - ) -} + /// Defines the shared fields for items in a shopping cart. Implemented by [`CartLine`](https://shopify.dev/docs/api/storefront/current/objects/CartLine) for individual merchandise and [`ComponentizableCartLine`](https://shopify.dev/docs/api/storefront/current/objects/ComponentizableCartLine) for grouped merchandise like bundles. + /// + /// Each implementation includes the merchandise being purchased, quantity, cost breakdown, applied discounts, custom attributes, and any associated [`SellingPlan`](https://shopify.dev/docs/api/storefront/current/objects/SellingPlan). + nonisolated static let BaseCartLine = ApolloAPI.Interface( + name: "BaseCartLine", + keyFields: nil, + implementingObjects: [ + "CartLine", + "ComponentizableCartLine" + ] + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/DisplayableError.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/DisplayableError.graphql.swift index 1d681ff5..8903635f 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/DisplayableError.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/DisplayableError.graphql.swift @@ -4,17 +4,17 @@ import ApolloAPI extension Storefront.Interfaces { - /// Represents an error in the input of a mutation. - static let DisplayableError = ApolloAPI.Interface( - name: "DisplayableError", - keyFields: nil, - implementingObjects: [ - "CartUserError", - "CustomerUserError", - "MetafieldDeleteUserError", - "MetafieldsSetUserError", - "UserError", - "UserErrorsShopPayPaymentRequestSessionUserErrors" - ] - ) -} + /// Represents an error in the input of a mutation. + nonisolated static let DisplayableError = ApolloAPI.Interface( + name: "DisplayableError", + keyFields: nil, + implementingObjects: [ + "CartUserError", + "CustomerUserError", + "MetafieldDeleteUserError", + "MetafieldsSetUserError", + "UserError", + "UserErrorsShopPayPaymentRequestSessionUserErrors" + ] + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/HasMetafields.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/HasMetafields.graphql.swift index 5166414f..ea00bbc5 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/HasMetafields.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/HasMetafields.graphql.swift @@ -4,28 +4,28 @@ import ApolloAPI extension Storefront.Interfaces { - /// Implemented by resources that support custom metadata through [`Metafield`](https://shopify.dev/docs/api/storefront/current/objects/Metafield) objects. Types like [`Product`](https://shopify.dev/docs/api/storefront/current/objects/Product), [`Collection`](https://shopify.dev/docs/api/storefront/current/objects/Collection), and [`Customer`](https://shopify.dev/docs/api/storefront/current/objects/Customer) implement this interface to provide consistent access to metafields. - /// - /// You can retrieve a [single metafield](https://shopify.dev/docs/api/storefront/current/interfaces/HasMetafields#fields-metafield) by namespace and key, or fetch [multiple metafields](https://shopify.dev/docs/api/storefront/current/interfaces/HasMetafields#fields-metafields) in a single request. If you omit the namespace, then the [app-reserved namespace](https://shopify.dev/docs/apps/build/metafields#app-owned-metafields) is used by default. - static let HasMetafields = ApolloAPI.Interface( - name: "HasMetafields", - keyFields: nil, - implementingObjects: [ - "Article", - "Blog", - "Cart", - "Collection", - "Company", - "CompanyLocation", - "Customer", - "Location", - "Market", - "Order", - "Page", - "Product", - "ProductVariant", - "SellingPlan", - "Shop" - ] - ) -} + /// Implemented by resources that support custom metadata through [`Metafield`](https://shopify.dev/docs/api/storefront/current/objects/Metafield) objects. Types like [`Product`](https://shopify.dev/docs/api/storefront/current/objects/Product), [`Collection`](https://shopify.dev/docs/api/storefront/current/objects/Collection), and [`Customer`](https://shopify.dev/docs/api/storefront/current/objects/Customer) implement this interface to provide consistent access to metafields. + /// + /// You can retrieve a [single metafield](https://shopify.dev/docs/api/storefront/current/interfaces/HasMetafields#fields-metafield) by namespace and key, or fetch [multiple metafields](https://shopify.dev/docs/api/storefront/current/interfaces/HasMetafields#fields-metafields) in a single request. If you omit the namespace, then the [app-reserved namespace](https://shopify.dev/docs/apps/build/metafields#app-owned-metafields) is used by default. + nonisolated static let HasMetafields = ApolloAPI.Interface( + name: "HasMetafields", + keyFields: nil, + implementingObjects: [ + "Article", + "Blog", + "Cart", + "Collection", + "Company", + "CompanyLocation", + "Customer", + "Location", + "Market", + "Order", + "Page", + "Product", + "ProductVariant", + "SellingPlan", + "Shop" + ] + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/Media.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/Media.graphql.swift index 0b485698..19e23314 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/Media.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/Media.graphql.swift @@ -4,17 +4,17 @@ import ApolloAPI extension Storefront.Interfaces { - /// A common set of fields for media content associated with [products](https://shopify.dev/docs/api/storefront/current/objects/Product). Implementations include [`MediaImage`](https://shopify.dev/docs/api/storefront/current/objects/MediaImage) for Shopify-hosted images, [`Video`](https://shopify.dev/docs/api/storefront/current/objects/Video) for Shopify-hosted videos, [`ExternalVideo`](https://shopify.dev/docs/api/storefront/current/objects/ExternalVideo) for videos hosted on platforms like YouTube or Vimeo, and [`Model3d`](https://shopify.dev/docs/api/storefront/current/objects/Model3d) for 3D models. - /// - /// Each implementation shares fields for alt text, content type, and preview images, while adding type-specific fields like embed URLs for external videos or source files for 3D models. - static let Media = ApolloAPI.Interface( - name: "Media", - keyFields: nil, - implementingObjects: [ - "ExternalVideo", - "MediaImage", - "Model3d", - "Video" - ] - ) -} + /// A common set of fields for media content associated with [products](https://shopify.dev/docs/api/storefront/current/objects/Product). Implementations include [`MediaImage`](https://shopify.dev/docs/api/storefront/current/objects/MediaImage) for Shopify-hosted images, [`Video`](https://shopify.dev/docs/api/storefront/current/objects/Video) for Shopify-hosted videos, [`ExternalVideo`](https://shopify.dev/docs/api/storefront/current/objects/ExternalVideo) for videos hosted on platforms like YouTube or Vimeo, and [`Model3d`](https://shopify.dev/docs/api/storefront/current/objects/Model3d) for 3D models. + /// + /// Each implementation shares fields for alt text, content type, and preview images, while adding type-specific fields like embed URLs for external videos or source files for 3D models. + nonisolated static let Media = ApolloAPI.Interface( + name: "Media", + keyFields: nil, + implementingObjects: [ + "ExternalVideo", + "MediaImage", + "Model3d", + "Video" + ] + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/Node.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/Node.graphql.swift index d618ab7a..708fdd3d 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/Node.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/Node.graphql.swift @@ -4,48 +4,48 @@ import ApolloAPI extension Storefront.Interfaces { - /// Enables global object identification following the [Relay specification](https://relay.dev/graphql/objectidentification.htm#sec-Node-Interface). Any type implementing this interface has a globally-unique `id` field and can be fetched directly using the [`node`](https://shopify.dev/docs/api/storefront/current/queries/node) or [`nodes`](https://shopify.dev/docs/api/storefront/current/queries/nodes) queries. - static let Node = ApolloAPI.Interface( - name: "Node", - keyFields: nil, - implementingObjects: [ - "AppliedGiftCard", - "Article", - "Blog", - "Cart", - "CartLine", - "Collection", - "Comment", - "Company", - "CompanyContact", - "CompanyLocation", - "ComponentizableCartLine", - "ExternalVideo", - "GenericFile", - "Location", - "MailingAddress", - "Market", - "MediaImage", - "MediaPresentation", - "Menu", - "MenuItem", - "Metafield", - "Metaobject", - "Model3d", - "Order", - "Page", - "Product", - "ProductOption", - "ProductOptionValue", - "ProductVariant", - "Shop", - "ShopPayInstallmentsFinancingPlan", - "ShopPayInstallmentsFinancingPlanTerm", - "ShopPayInstallmentsProductVariantPricing", - "ShopPolicy", - "TaxonomyCategory", - "UrlRedirect", - "Video" - ] - ) -} + /// Enables global object identification following the [Relay specification](https://relay.dev/graphql/objectidentification.htm#sec-Node-Interface). Any type implementing this interface has a globally-unique `id` field and can be fetched directly using the [`node`](https://shopify.dev/docs/api/storefront/current/queries/node) or [`nodes`](https://shopify.dev/docs/api/storefront/current/queries/nodes) queries. + nonisolated static let Node = ApolloAPI.Interface( + name: "Node", + keyFields: nil, + implementingObjects: [ + "AppliedGiftCard", + "Article", + "Blog", + "Cart", + "CartLine", + "Collection", + "Comment", + "Company", + "CompanyContact", + "CompanyLocation", + "ComponentizableCartLine", + "ExternalVideo", + "GenericFile", + "Location", + "MailingAddress", + "Market", + "MediaImage", + "MediaPresentation", + "Menu", + "MenuItem", + "Metafield", + "Metaobject", + "Model3d", + "Order", + "Page", + "Product", + "ProductOption", + "ProductOptionValue", + "ProductVariant", + "Shop", + "ShopPayInstallmentsFinancingPlan", + "ShopPayInstallmentsFinancingPlanTerm", + "ShopPayInstallmentsProductVariantPricing", + "ShopPolicy", + "TaxonomyCategory", + "UrlRedirect", + "Video" + ] + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/OnlineStorePublishable.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/OnlineStorePublishable.graphql.swift index 71b9061f..4eb3f1cf 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/OnlineStorePublishable.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/OnlineStorePublishable.graphql.swift @@ -4,17 +4,17 @@ import ApolloAPI extension Storefront.Interfaces { - /// Represents a resource that can be published to the Online Store sales channel. - static let OnlineStorePublishable = ApolloAPI.Interface( - name: "OnlineStorePublishable", - keyFields: nil, - implementingObjects: [ - "Article", - "Blog", - "Collection", - "Metaobject", - "Page", - "Product" - ] - ) -} + /// Represents a resource that can be published to the Online Store sales channel. + nonisolated static let OnlineStorePublishable = ApolloAPI.Interface( + name: "OnlineStorePublishable", + keyFields: nil, + implementingObjects: [ + "Article", + "Blog", + "Collection", + "Metaobject", + "Page", + "Product" + ] + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/Trackable.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/Trackable.graphql.swift index 16caf623..899a490c 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/Trackable.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Interfaces/Trackable.graphql.swift @@ -4,16 +4,16 @@ import ApolloAPI extension Storefront.Interfaces { - /// Represents a resource that you can track the origin of the search traffic. - static let Trackable = ApolloAPI.Interface( - name: "Trackable", - keyFields: nil, - implementingObjects: [ - "Article", - "Collection", - "Page", - "Product", - "SearchQuerySuggestion" - ] - ) -} + /// Represents a resource that you can track the origin of the search traffic. + nonisolated static let Trackable = ApolloAPI.Interface( + name: "Trackable", + keyFields: nil, + implementingObjects: [ + "Article", + "Collection", + "Page", + "Product", + "SearchQuerySuggestion" + ] + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/AppliedGiftCard.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/AppliedGiftCard.graphql.swift index 82cdcbf0..e8059a38 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/AppliedGiftCard.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/AppliedGiftCard.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// Details about the gift card used on the checkout. - static let AppliedGiftCard = ApolloAPI.Object( - typename: "AppliedGiftCard", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// Details about the gift card used on the checkout. + nonisolated static let AppliedGiftCard = ApolloAPI.Object( + typename: "AppliedGiftCard", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Article.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Article.graphql.swift index e00a9418..691abfb6 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Article.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Article.graphql.swift @@ -4,17 +4,17 @@ import ApolloAPI extension Storefront.Objects { - /// A post that belongs to a [`Blog`](https://shopify.dev/docs/api/storefront/current/objects/Blog). Each article includes content with optional HTML formatting, an excerpt for previews, [`ArticleAuthor`](https://shopify.dev/docs/api/storefront/current/objects/ArticleAuthor) information, and an associated [`Image`](https://shopify.dev/docs/api/storefront/current/objects/Image). - /// - /// Articles can be organized with tags and include [`SEO`](https://shopify.dev/docs/api/storefront/current/objects/SEO) metadata. You can manage [comments](https://shopify.dev/docs/api/storefront/current/objects/Comment) when the blog's comment policy enables them. - static let Article = ApolloAPI.Object( - typename: "Article", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self, - Storefront.Interfaces.OnlineStorePublishable.self, - Storefront.Interfaces.Trackable.self - ], - keyFields: nil - ) -} + /// A post that belongs to a [`Blog`](https://shopify.dev/docs/api/storefront/current/objects/Blog). Each article includes content with optional HTML formatting, an excerpt for previews, [`ArticleAuthor`](https://shopify.dev/docs/api/storefront/current/objects/ArticleAuthor) information, and an associated [`Image`](https://shopify.dev/docs/api/storefront/current/objects/Image). + /// + /// Articles can be organized with tags and include [`SEO`](https://shopify.dev/docs/api/storefront/current/objects/SEO) metadata. You can manage [comments](https://shopify.dev/docs/api/storefront/current/objects/Comment) when the blog's comment policy enables them. + nonisolated static let Article = ApolloAPI.Object( + typename: "Article", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self, + Storefront.Interfaces.OnlineStorePublishable.self, + Storefront.Interfaces.Trackable.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/BaseCartLineConnection.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/BaseCartLineConnection.graphql.swift index 397963f3..38e4c119 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/BaseCartLineConnection.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/BaseCartLineConnection.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// An auto-generated type for paginating through multiple BaseCartLines. - static let BaseCartLineConnection = ApolloAPI.Object( - typename: "BaseCartLineConnection", - implementedInterfaces: [], - keyFields: nil - ) -} + /// An auto-generated type for paginating through multiple BaseCartLines. + nonisolated static let BaseCartLineConnection = ApolloAPI.Object( + typename: "BaseCartLineConnection", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Blog.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Blog.graphql.swift index e0e0857e..720731f0 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Blog.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Blog.graphql.swift @@ -4,16 +4,16 @@ import ApolloAPI extension Storefront.Objects { - /// A blog container for [`Article`](https://shopify.dev/docs/api/storefront/current/objects/Article) objects. Stores can have multiple blogs, for example to organize content by topic or purpose. - /// - /// Each blog provides access to its articles, contributing [`ArticleAuthor`](https://shopify.dev/docs/api/storefront/current/objects/ArticleAuthor) objects, and [`SEO`](https://shopify.dev/docs/api/storefront/current/objects/SEO) information. You can retrieve articles individually [by handle](https://shopify.dev/docs/api/storefront/current/objects/Blog#field-Blog.fields.articleByHandle) or as a [paginated list](https://shopify.dev/docs/api/storefront/current/objects/Blog#field-Blog.fields.articles). - static let Blog = ApolloAPI.Object( - typename: "Blog", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self, - Storefront.Interfaces.OnlineStorePublishable.self - ], - keyFields: nil - ) -} + /// A blog container for [`Article`](https://shopify.dev/docs/api/storefront/current/objects/Article) objects. Stores can have multiple blogs, for example to organize content by topic or purpose. + /// + /// Each blog provides access to its articles, contributing [`ArticleAuthor`](https://shopify.dev/docs/api/storefront/current/objects/ArticleAuthor) objects, and [`SEO`](https://shopify.dev/docs/api/storefront/current/objects/SEO) information. You can retrieve articles individually [by handle](https://shopify.dev/docs/api/storefront/current/objects/Blog#field-Blog.fields.articleByHandle) or as a [paginated list](https://shopify.dev/docs/api/storefront/current/objects/Blog#field-Blog.fields.articles). + nonisolated static let Blog = ApolloAPI.Object( + typename: "Blog", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self, + Storefront.Interfaces.OnlineStorePublishable.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Cart.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Cart.graphql.swift index 3deb99cd..7baa8327 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Cart.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Cart.graphql.swift @@ -4,17 +4,17 @@ import ApolloAPI extension Storefront.Objects { - /// A cart represents the merchandise that a buyer intends to purchase, and the estimated cost associated with the cart, throughout a customer's session. - /// - /// Use the [`checkoutUrl`](https://shopify.dev/docs/api/storefront/current/objects/Cart#field-checkoutUrl) field to direct buyers to Shopify's web checkout to complete their purchase. - /// - /// Learn more about [interacting with carts](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/cart/manage). - static let Cart = ApolloAPI.Object( - typename: "Cart", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// A cart represents the merchandise that a buyer intends to purchase, and the estimated cost associated with the cart, throughout a customer's session. + /// + /// Use the [`checkoutUrl`](https://shopify.dev/docs/api/storefront/current/objects/Cart#field-checkoutUrl) field to direct buyers to Shopify's web checkout to complete their purchase. + /// + /// Learn more about [interacting with carts](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/cart/manage). + nonisolated static let Cart = ApolloAPI.Object( + typename: "Cart", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartBuyerIdentity.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartBuyerIdentity.graphql.swift index e61906d3..0fbd53f7 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartBuyerIdentity.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartBuyerIdentity.graphql.swift @@ -4,12 +4,12 @@ import ApolloAPI extension Storefront.Objects { - /// Contact information about the buyer interacting with a [cart](https://shopify.dev/docs/api/storefront/current/objects/Cart). The buyer's country determines [international pricing](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets/international-pricing) and should match their shipping address. - /// - /// For B2B scenarios, the [`purchasingCompany`](https://shopify.dev/docs/api/storefront/current/objects/CartBuyerIdentity#field-CartBuyerIdentity.fields.purchasingCompany) field identifies the company and location on whose behalf a business customer purchases. The [`preferences`](https://shopify.dev/docs/api/storefront/current/objects/CartBuyerIdentity#field-CartBuyerIdentity.fields.preferences) field stores delivery and wallet settings that prefill checkout fields to streamline the buying process. - static let CartBuyerIdentity = ApolloAPI.Object( - typename: "CartBuyerIdentity", - implementedInterfaces: [], - keyFields: nil - ) -} + /// Contact information about the buyer interacting with a [cart](https://shopify.dev/docs/api/storefront/current/objects/Cart). The buyer's country determines [international pricing](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets/international-pricing) and should match their shipping address. + /// + /// For B2B scenarios, the [`purchasingCompany`](https://shopify.dev/docs/api/storefront/current/objects/CartBuyerIdentity#field-CartBuyerIdentity.fields.purchasingCompany) field identifies the company and location on whose behalf a business customer purchases. The [`preferences`](https://shopify.dev/docs/api/storefront/current/objects/CartBuyerIdentity#field-CartBuyerIdentity.fields.preferences) field stores delivery and wallet settings that prefill checkout fields to streamline the buying process. + nonisolated static let CartBuyerIdentity = ApolloAPI.Object( + typename: "CartBuyerIdentity", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartCost.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartCost.graphql.swift index 4db413aa..5374e18d 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartCost.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartCost.graphql.swift @@ -4,12 +4,12 @@ import ApolloAPI extension Storefront.Objects { - /// The estimated costs that a buyer will pay at checkout. The `Cart` object's [`cost`](https://shopify.dev/docs/api/storefront/current/objects/Cart#field-Cart.fields.cost) field returns this. The costs are subject to change and changes will be reflected at checkout. Costs reflect [international pricing](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets/international-pricing) based on the buyer's context. - /// - /// Amounts include the subtotal before taxes and cart-level discounts, the checkout charge amount excluding deferred payments, and the total. The subtotal and total amounts each include a corresponding boolean field indicating whether the value is an estimate. - static let CartCost = ApolloAPI.Object( - typename: "CartCost", - implementedInterfaces: [], - keyFields: nil - ) -} + /// The estimated costs that a buyer will pay at checkout. The `Cart` object's [`cost`](https://shopify.dev/docs/api/storefront/current/objects/Cart#field-Cart.fields.cost) field returns this. The costs are subject to change and changes will be reflected at checkout. Costs reflect [international pricing](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets/international-pricing) based on the buyer's context. + /// + /// Amounts include the subtotal before taxes and cart-level discounts, the checkout charge amount excluding deferred payments, and the total. The subtotal and total amounts each include a corresponding boolean field indicating whether the value is an estimate. + nonisolated static let CartCost = ApolloAPI.Object( + typename: "CartCost", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartCreatePayload.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartCreatePayload.graphql.swift index 865172ce..fcb58f7c 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartCreatePayload.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartCreatePayload.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// Return type for `cartCreate` mutation. - static let CartCreatePayload = ApolloAPI.Object( - typename: "CartCreatePayload", - implementedInterfaces: [], - keyFields: nil - ) -} + /// Return type for `cartCreate` mutation. + nonisolated static let CartCreatePayload = ApolloAPI.Object( + typename: "CartCreatePayload", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartDeliveryGroup.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartDeliveryGroup.graphql.swift index bfdbf958..29202b85 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartDeliveryGroup.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartDeliveryGroup.graphql.swift @@ -4,12 +4,12 @@ import ApolloAPI extension Storefront.Objects { - /// Groups cart line items that share the same delivery destination. Each group provides the available [`CartDeliveryOption`](https://shopify.dev/docs/api/storefront/current/objects/CartDeliveryOption) choices for that address, along with the customer's selected option. - /// - /// Access through the [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart) object's `deliveryGroups` field. Items are grouped by merchandise type (one-time purchase vs subscription), allowing different delivery methods for each. - static let CartDeliveryGroup = ApolloAPI.Object( - typename: "CartDeliveryGroup", - implementedInterfaces: [], - keyFields: nil - ) -} + /// Groups cart line items that share the same delivery destination. Each group provides the available [`CartDeliveryOption`](https://shopify.dev/docs/api/storefront/current/objects/CartDeliveryOption) choices for that address, along with the customer's selected option. + /// + /// Access through the [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart) object's `deliveryGroups` field. Items are grouped by merchandise type (one-time purchase vs subscription), allowing different delivery methods for each. + nonisolated static let CartDeliveryGroup = ApolloAPI.Object( + typename: "CartDeliveryGroup", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartDeliveryGroupConnection.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartDeliveryGroupConnection.graphql.swift index 0ee2a8dd..7132a45d 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartDeliveryGroupConnection.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartDeliveryGroupConnection.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// An auto-generated type for paginating through multiple CartDeliveryGroups. - static let CartDeliveryGroupConnection = ApolloAPI.Object( - typename: "CartDeliveryGroupConnection", - implementedInterfaces: [], - keyFields: nil - ) -} + /// An auto-generated type for paginating through multiple CartDeliveryGroups. + nonisolated static let CartDeliveryGroupConnection = ApolloAPI.Object( + typename: "CartDeliveryGroupConnection", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartDeliveryOption.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartDeliveryOption.graphql.swift index 3cea5003..f79dfec1 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartDeliveryOption.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartDeliveryOption.graphql.swift @@ -4,12 +4,12 @@ import ApolloAPI extension Storefront.Objects { - /// A shipping or delivery choice available to customers during checkout. Each option includes a title, estimated cost, and delivery method type such as shipping or local pickup. - /// - /// Returned by the [`CartDeliveryGroup`](https://shopify.dev/docs/api/storefront/current/objects/CartDeliveryGroup) object's [`deliveryOptions`](https://shopify.dev/docs/api/storefront/current/objects/CartDeliveryGroup#field-CartDeliveryGroup.fields.deliveryOptions) field and [`selectedDeliveryOption`](https://shopify.dev/docs/api/storefront/current/objects/CartDeliveryGroup#field-CartDeliveryGroup.fields.selectedDeliveryOption) field. - static let CartDeliveryOption = ApolloAPI.Object( - typename: "CartDeliveryOption", - implementedInterfaces: [], - keyFields: nil - ) -} + /// A shipping or delivery choice available to customers during checkout. Each option includes a title, estimated cost, and delivery method type such as shipping or local pickup. + /// + /// Returned by the [`CartDeliveryGroup`](https://shopify.dev/docs/api/storefront/current/objects/CartDeliveryGroup) object's [`deliveryOptions`](https://shopify.dev/docs/api/storefront/current/objects/CartDeliveryGroup#field-CartDeliveryGroup.fields.deliveryOptions) field and [`selectedDeliveryOption`](https://shopify.dev/docs/api/storefront/current/objects/CartDeliveryGroup#field-CartDeliveryGroup.fields.selectedDeliveryOption) field. + nonisolated static let CartDeliveryOption = ApolloAPI.Object( + typename: "CartDeliveryOption", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartLine.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartLine.graphql.swift index 9b6a8139..f9ae50ca 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartLine.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartLine.graphql.swift @@ -4,15 +4,15 @@ import ApolloAPI extension Storefront.Objects { - /// An item in a customer's [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart) representing a product variant they intend to purchase. Each cart line tracks the merchandise, quantity, cost breakdown, and any applied discounts. - /// - /// Cart lines can include custom attributes for additional information like gift wrapping requests, and can be associated with a [`SellingPlanAllocation`](https://shopify.dev/docs/api/storefront/current/objects/SellingPlanAllocation) for purchase options like subscriptions, pre-orders, or try-before-you-buy. The [`instructions`](https://shopify.dev/docs/api/storefront/current/objects/CartLine#field-CartLine.fields.instructions) field indicates whether the line can be removed or have its quantity updated. - static let CartLine = ApolloAPI.Object( - typename: "CartLine", - implementedInterfaces: [ - Storefront.Interfaces.BaseCartLine.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// An item in a customer's [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart) representing a product variant they intend to purchase. Each cart line tracks the merchandise, quantity, cost breakdown, and any applied discounts. + /// + /// Cart lines can include custom attributes for additional information like gift wrapping requests, and can be associated with a [`SellingPlanAllocation`](https://shopify.dev/docs/api/storefront/current/objects/SellingPlanAllocation) for purchase options like subscriptions, pre-orders, or try-before-you-buy. The [`instructions`](https://shopify.dev/docs/api/storefront/current/objects/CartLine#field-CartLine.fields.instructions) field indicates whether the line can be removed or have its quantity updated. + nonisolated static let CartLine = ApolloAPI.Object( + typename: "CartLine", + implementedInterfaces: [ + Storefront.Interfaces.BaseCartLine.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartLineCost.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartLineCost.graphql.swift index 8f9cbadb..9ab492df 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartLineCost.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartLineCost.graphql.swift @@ -4,12 +4,12 @@ import ApolloAPI extension Storefront.Objects { - /// Cost breakdown for a single line item in a [cart](https://shopify.dev/docs/api/storefront/current/objects/Cart). Includes the per-unit price, the subtotal before line-level discounts, and the final total amount the buyer pays. - /// - /// The [`compareAtAmountPerQuantity`](https://shopify.dev/docs/api/storefront/current/objects/CartLineCost#field-CartLineCost.fields.compareAtAmountPerQuantity) field shows the original price when the item is on sale, enabling the display of savings to customers. - static let CartLineCost = ApolloAPI.Object( - typename: "CartLineCost", - implementedInterfaces: [], - keyFields: nil - ) -} + /// Cost breakdown for a single line item in a [cart](https://shopify.dev/docs/api/storefront/current/objects/Cart). Includes the per-unit price, the subtotal before line-level discounts, and the final total amount the buyer pays. + /// + /// The [`compareAtAmountPerQuantity`](https://shopify.dev/docs/api/storefront/current/objects/CartLineCost#field-CartLineCost.fields.compareAtAmountPerQuantity) field shows the original price when the item is on sale, enabling the display of savings to customers. + nonisolated static let CartLineCost = ApolloAPI.Object( + typename: "CartLineCost", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartLinesAddPayload.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartLinesAddPayload.graphql.swift index 7ec55a31..2197feb8 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartLinesAddPayload.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartLinesAddPayload.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// Return type for `cartLinesAdd` mutation. - static let CartLinesAddPayload = ApolloAPI.Object( - typename: "CartLinesAddPayload", - implementedInterfaces: [], - keyFields: nil - ) -} + /// Return type for `cartLinesAdd` mutation. + nonisolated static let CartLinesAddPayload = ApolloAPI.Object( + typename: "CartLinesAddPayload", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartLinesUpdatePayload.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartLinesUpdatePayload.graphql.swift index a4f43ad4..1113be94 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartLinesUpdatePayload.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartLinesUpdatePayload.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// Return type for `cartLinesUpdate` mutation. - static let CartLinesUpdatePayload = ApolloAPI.Object( - typename: "CartLinesUpdatePayload", - implementedInterfaces: [], - keyFields: nil - ) -} + /// Return type for `cartLinesUpdate` mutation. + nonisolated static let CartLinesUpdatePayload = ApolloAPI.Object( + typename: "CartLinesUpdatePayload", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartUserError.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartUserError.graphql.swift index 98cb6741..d51a1f13 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartUserError.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CartUserError.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// Represents an error that happens during execution of a cart mutation. - static let CartUserError = ApolloAPI.Object( - typename: "CartUserError", - implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], - keyFields: nil - ) -} + /// Represents an error that happens during execution of a cart mutation. + nonisolated static let CartUserError = ApolloAPI.Object( + typename: "CartUserError", + implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Collection.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Collection.graphql.swift index 5438ac75..0bdcac9b 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Collection.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Collection.graphql.swift @@ -4,17 +4,17 @@ import ApolloAPI extension Storefront.Objects { - /// A group of products [organized by a merchant](https://help.shopify.com/manual/products/collections) to make their store easier to browse. Collections can help customers discover related products by category, season, promotion, or other criteria. - /// - /// Query a collection's products with [filtering options](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/products-collections/filter-products) like availability, price range, vendor, and tags. Each collection includes [`SEO`](https://shopify.dev/docs/api/storefront/current/objects/SEO) information, an optional [`Image`](https://shopify.dev/docs/api/storefront/current/objects/Image), and supports custom data through [`metafields`](https://shopify.dev/docs/api/storefront/current/objects/Metafield). - static let Collection = ApolloAPI.Object( - typename: "Collection", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self, - Storefront.Interfaces.OnlineStorePublishable.self, - Storefront.Interfaces.Trackable.self - ], - keyFields: nil - ) -} + /// A group of products [organized by a merchant](https://help.shopify.com/manual/products/collections) to make their store easier to browse. Collections can help customers discover related products by category, season, promotion, or other criteria. + /// + /// Query a collection's products with [filtering options](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/products-collections/filter-products) like availability, price range, vendor, and tags. Each collection includes [`SEO`](https://shopify.dev/docs/api/storefront/current/objects/SEO) information, an optional [`Image`](https://shopify.dev/docs/api/storefront/current/objects/Image), and supports custom data through [`metafields`](https://shopify.dev/docs/api/storefront/current/objects/Metafield). + nonisolated static let Collection = ApolloAPI.Object( + typename: "Collection", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self, + Storefront.Interfaces.OnlineStorePublishable.self, + Storefront.Interfaces.Trackable.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CollectionConnection.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CollectionConnection.graphql.swift index 8bd47db0..71e8b990 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CollectionConnection.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CollectionConnection.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// An auto-generated type for paginating through multiple Collections. - static let CollectionConnection = ApolloAPI.Object( - typename: "CollectionConnection", - implementedInterfaces: [], - keyFields: nil - ) -} + /// An auto-generated type for paginating through multiple Collections. + nonisolated static let CollectionConnection = ApolloAPI.Object( + typename: "CollectionConnection", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Comment.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Comment.graphql.swift index 963a5b6f..0d2a63e8 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Comment.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Comment.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// A comment on an article. - static let Comment = ApolloAPI.Object( - typename: "Comment", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// A comment on an article. + nonisolated static let Comment = ApolloAPI.Object( + typename: "Comment", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Company.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Company.graphql.swift index bcc140a2..c4dfa172 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Company.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Company.graphql.swift @@ -4,15 +4,15 @@ import ApolloAPI extension Storefront.Objects { - /// A B2B organization that purchases from the shop. In the Storefront API, company information is accessed through the [`PurchasingCompany`](https://shopify.dev/docs/api/storefront/current/objects/PurchasingCompany) object on [`CartBuyerIdentity`](https://shopify.dev/docs/api/storefront/current/objects/CartBuyerIdentity), which provides the associated location and contact for the current purchasing context. - /// - /// You can store custom data using [metafields](https://shopify.dev/docs/apps/build/metafields). - static let Company = ApolloAPI.Object( - typename: "Company", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// A B2B organization that purchases from the shop. In the Storefront API, company information is accessed through the [`PurchasingCompany`](https://shopify.dev/docs/api/storefront/current/objects/PurchasingCompany) object on [`CartBuyerIdentity`](https://shopify.dev/docs/api/storefront/current/objects/CartBuyerIdentity), which provides the associated location and contact for the current purchasing context. + /// + /// You can store custom data using [metafields](https://shopify.dev/docs/apps/build/metafields). + nonisolated static let Company = ApolloAPI.Object( + typename: "Company", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CompanyContact.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CompanyContact.graphql.swift index 23a2afd3..58952e8f 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CompanyContact.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CompanyContact.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// A company's main point of contact. - static let CompanyContact = ApolloAPI.Object( - typename: "CompanyContact", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// A company's main point of contact. + nonisolated static let CompanyContact = ApolloAPI.Object( + typename: "CompanyContact", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CompanyLocation.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CompanyLocation.graphql.swift index ae5000e5..d9da2049 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CompanyLocation.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CompanyLocation.graphql.swift @@ -4,15 +4,15 @@ import ApolloAPI extension Storefront.Objects { - /// A branch or office of a [`Company`](https://shopify.dev/docs/api/storefront/current/objects/Company) where B2B customers can place orders. When a B2B customer selects a location after logging in, the Storefront API contextualizes product queries to return location-specific pricing and quantity rules. - /// - /// Access through the [`PurchasingCompany`](https://shopify.dev/docs/api/storefront/current/objects/PurchasingCompany) object, which associates the location with the buyer's [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart). - static let CompanyLocation = ApolloAPI.Object( - typename: "CompanyLocation", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// A branch or office of a [`Company`](https://shopify.dev/docs/api/storefront/current/objects/Company) where B2B customers can place orders. When a B2B customer selects a location after logging in, the Storefront API contextualizes product queries to return location-specific pricing and quantity rules. + /// + /// Access through the [`PurchasingCompany`](https://shopify.dev/docs/api/storefront/current/objects/PurchasingCompany) object, which associates the location with the buyer's [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart). + nonisolated static let CompanyLocation = ApolloAPI.Object( + typename: "CompanyLocation", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ComponentizableCartLine.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ComponentizableCartLine.graphql.swift index 60c9f523..ba9f64e6 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ComponentizableCartLine.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ComponentizableCartLine.graphql.swift @@ -4,13 +4,13 @@ import ApolloAPI extension Storefront.Objects { - /// Represents information about the grouped merchandise in the cart. - static let ComponentizableCartLine = ApolloAPI.Object( - typename: "ComponentizableCartLine", - implementedInterfaces: [ - Storefront.Interfaces.BaseCartLine.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// Represents information about the grouped merchandise in the cart. + nonisolated static let ComponentizableCartLine = ApolloAPI.Object( + typename: "ComponentizableCartLine", + implementedInterfaces: [ + Storefront.Interfaces.BaseCartLine.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Customer.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Customer.graphql.swift index b3f6cfdf..1170785b 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Customer.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Customer.graphql.swift @@ -4,14 +4,14 @@ import ApolloAPI extension Storefront.Objects { - /// A customer account with the shop. Includes data such as contact information, [addresses](https://shopify.dev/docs/api/storefront/current/objects/MailingAddress) and marketing preferences for logged-in customers, so they don't have to provide these details at every checkout. - /// - /// Access the customer through the [`customer`](https://shopify.dev/docs/api/storefront/current/queries/customer) query using a customer access token obtained from the [`customerAccessTokenCreate`](https://shopify.dev/docs/api/storefront/current/mutations/customerAccessTokenCreate) mutation. - /// - /// The object implements the [`HasMetafields`](https://shopify.dev/docs/api/storefront/current/interfaces/HasMetafields) interface, enabling retrieval of [custom data](https://shopify.dev/docs/apps/build/custom-data) associated with the customer. - static let Customer = ApolloAPI.Object( - typename: "Customer", - implementedInterfaces: [Storefront.Interfaces.HasMetafields.self], - keyFields: nil - ) -} + /// A customer account with the shop. Includes data such as contact information, [addresses](https://shopify.dev/docs/api/storefront/current/objects/MailingAddress) and marketing preferences for logged-in customers, so they don't have to provide these details at every checkout. + /// + /// Access the customer through the [`customer`](https://shopify.dev/docs/api/storefront/current/queries/customer) query using a customer access token obtained from the [`customerAccessTokenCreate`](https://shopify.dev/docs/api/storefront/current/mutations/customerAccessTokenCreate) mutation. + /// + /// The object implements the [`HasMetafields`](https://shopify.dev/docs/api/storefront/current/interfaces/HasMetafields) interface, enabling retrieval of [custom data](https://shopify.dev/docs/apps/build/custom-data) associated with the customer. + nonisolated static let Customer = ApolloAPI.Object( + typename: "Customer", + implementedInterfaces: [Storefront.Interfaces.HasMetafields.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CustomerUserError.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CustomerUserError.graphql.swift index 0dcd3fdb..2eb1d5f2 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CustomerUserError.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/CustomerUserError.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// Represents an error that happens during execution of a customer mutation. - static let CustomerUserError = ApolloAPI.Object( - typename: "CustomerUserError", - implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], - keyFields: nil - ) -} + /// Represents an error that happens during execution of a customer mutation. + nonisolated static let CustomerUserError = ApolloAPI.Object( + typename: "CustomerUserError", + implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ExternalVideo.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ExternalVideo.graphql.swift index 5d2249be..f6815731 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ExternalVideo.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ExternalVideo.graphql.swift @@ -4,13 +4,13 @@ import ApolloAPI extension Storefront.Objects { - /// Represents a video hosted outside of Shopify. - static let ExternalVideo = ApolloAPI.Object( - typename: "ExternalVideo", - implementedInterfaces: [ - Storefront.Interfaces.Media.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// Represents a video hosted outside of Shopify. + nonisolated static let ExternalVideo = ApolloAPI.Object( + typename: "ExternalVideo", + implementedInterfaces: [ + Storefront.Interfaces.Media.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/GenericFile.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/GenericFile.graphql.swift index 225a5c1a..925f0f7b 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/GenericFile.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/GenericFile.graphql.swift @@ -4,14 +4,14 @@ import ApolloAPI extension Storefront.Objects { - /// Any file that doesn't fit into a designated type like image or video. For example, a PDF or JSON document. Use this object to manage files in a merchant's store. - /// - /// Generic files are commonly referenced through [file reference metafields](https://shopify.dev/docs/apps/build/metafields/list-of-data-types) and returned as part of the [`MetafieldReference`](https://shopify.dev/docs/api/storefront/current/unions/MetafieldReference) union. - /// - /// Includes the file's URL, MIME type, size in bytes, and an optional preview image. - static let GenericFile = ApolloAPI.Object( - typename: "GenericFile", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// Any file that doesn't fit into a designated type like image or video. For example, a PDF or JSON document. Use this object to manage files in a merchant's store. + /// + /// Generic files are commonly referenced through [file reference metafields](https://shopify.dev/docs/apps/build/metafields/list-of-data-types) and returned as part of the [`MetafieldReference`](https://shopify.dev/docs/api/storefront/current/unions/MetafieldReference) union. + /// + /// Includes the file's URL, MIME type, size in bytes, and an optional preview image. + nonisolated static let GenericFile = ApolloAPI.Object( + typename: "GenericFile", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Image.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Image.graphql.swift index 1e5bf926..61e7b347 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Image.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Image.graphql.swift @@ -4,12 +4,12 @@ import ApolloAPI extension Storefront.Objects { - /// An image resource with URL, dimensions, and transformation options. Used for product images, collection images, media previews, and other visual content throughout the storefront. - /// - /// The [`url`](https://shopify.dev/docs/api/storefront/current/objects/Image#field-Image.fields.url) field accepts an [`ImageTransformInput`](https://shopify.dev/docs/api/storefront/current/input-objects/ImageTransformInput) argument for resizing, cropping, scaling for retina displays, and converting between image formats. Use the [`thumbhash`](https://shopify.dev/docs/api/storefront/current/objects/Image#field-Image.fields.thumbhash) field to display lightweight placeholders while images load. - static let Image = ApolloAPI.Object( - typename: "Image", - implementedInterfaces: [], - keyFields: nil - ) -} + /// An image resource with URL, dimensions, and transformation options. Used for product images, collection images, media previews, and other visual content throughout the storefront. + /// + /// The [`url`](https://shopify.dev/docs/api/storefront/current/objects/Image#field-Image.fields.url) field accepts an [`ImageTransformInput`](https://shopify.dev/docs/api/storefront/current/input-objects/ImageTransformInput) argument for resizing, cropping, scaling for retina displays, and converting between image formats. Use the [`thumbhash`](https://shopify.dev/docs/api/storefront/current/objects/Image#field-Image.fields.thumbhash) field to display lightweight placeholders while images load. + nonisolated static let Image = ApolloAPI.Object( + typename: "Image", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Location.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Location.graphql.swift index 7142b75e..998e2dea 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Location.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Location.graphql.swift @@ -4,15 +4,15 @@ import ApolloAPI extension Storefront.Objects { - /// A physical store location where product inventory is held and that supports in-store pickup. Provides the location's name, address, and geographic coordinates for proximity-based sorting. Use with [`StoreAvailability`](https://shopify.dev/docs/api/storefront/current/objects/StoreAvailability) to show customers where a [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) is available for pickup. - /// - /// Learn more about [supporting local pickup on storefronts](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/products-collections/local-pickup). - static let Location = ApolloAPI.Object( - typename: "Location", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// A physical store location where product inventory is held and that supports in-store pickup. Provides the location's name, address, and geographic coordinates for proximity-based sorting. Use with [`StoreAvailability`](https://shopify.dev/docs/api/storefront/current/objects/StoreAvailability) to show customers where a [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) is available for pickup. + /// + /// Learn more about [supporting local pickup on storefronts](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/products-collections/local-pickup). + nonisolated static let Location = ApolloAPI.Object( + typename: "Location", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MailingAddress.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MailingAddress.graphql.swift index faa5ff56..e2aeb077 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MailingAddress.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MailingAddress.graphql.swift @@ -4,12 +4,12 @@ import ApolloAPI extension Storefront.Objects { - /// A physical mailing address associated with a [`Customer`](https://shopify.dev/docs/api/storefront/current/objects/Customer) or [`Order`](https://shopify.dev/docs/api/storefront/current/objects/Order). Stores standard address components including street address, city, province, country, and postal code, along with customer name and company information. - /// - /// The address includes geographic coordinates and provides pre-formatted output through the [`formatted`](https://shopify.dev/docs/api/storefront/current/objects/MailingAddress#field-MailingAddress.fields.formatted) field, which can optionally include or exclude name and company details. - static let MailingAddress = ApolloAPI.Object( - typename: "MailingAddress", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// A physical mailing address associated with a [`Customer`](https://shopify.dev/docs/api/storefront/current/objects/Customer) or [`Order`](https://shopify.dev/docs/api/storefront/current/objects/Order). Stores standard address components including street address, city, province, country, and postal code, along with customer name and company information. + /// + /// The address includes geographic coordinates and provides pre-formatted output through the [`formatted`](https://shopify.dev/docs/api/storefront/current/objects/MailingAddress#field-MailingAddress.fields.formatted) field, which can optionally include or exclude name and company details. + nonisolated static let MailingAddress = ApolloAPI.Object( + typename: "MailingAddress", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Market.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Market.graphql.swift index 27f4a6e9..6cdbc4b7 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Market.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Market.graphql.swift @@ -4,15 +4,15 @@ import ApolloAPI extension Storefront.Objects { - /// An audience of buyers that a merchant targets for sales. Audiences can include geographic regions, company locations, and retail locations. Markets enable localized shopping experiences with region-specific languages, currencies, and pricing. - /// - /// Each market has a unique [`handle`](https://shopify.dev/docs/api/storefront/current/objects/Market#field-Market.fields.handle) for identification and supports custom data through [`metafields`](https://shopify.dev/docs/api/storefront/current/objects/Metafield). Learn more about [building localized experiences with Shopify Markets](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets). - static let Market = ApolloAPI.Object( - typename: "Market", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// An audience of buyers that a merchant targets for sales. Audiences can include geographic regions, company locations, and retail locations. Markets enable localized shopping experiences with region-specific languages, currencies, and pricing. + /// + /// Each market has a unique [`handle`](https://shopify.dev/docs/api/storefront/current/objects/Market#field-Market.fields.handle) for identification and supports custom data through [`metafields`](https://shopify.dev/docs/api/storefront/current/objects/Metafield). Learn more about [building localized experiences with Shopify Markets](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets). + nonisolated static let Market = ApolloAPI.Object( + typename: "Market", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MediaImage.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MediaImage.graphql.swift index 52ee53c8..15f13731 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MediaImage.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MediaImage.graphql.swift @@ -4,15 +4,15 @@ import ApolloAPI extension Storefront.Objects { - /// An image hosted on Shopify's content delivery network (CDN). Used for product images, brand logos, and other visual content across the storefront. - /// - /// The [`image`](https://shopify.dev/docs/api/storefront/current/objects/MediaImage#field-MediaImage.fields.image) field provides the actual image data with transformation options. Implements the [`Media`](https://shopify.dev/docs/api/storefront/current/interfaces/Media) interface alongside other media types like [`Video`](https://shopify.dev/docs/api/storefront/current/objects/Video) and [`Model3d`](https://shopify.dev/docs/api/storefront/current/objects/Model3d). - static let MediaImage = ApolloAPI.Object( - typename: "MediaImage", - implementedInterfaces: [ - Storefront.Interfaces.Media.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// An image hosted on Shopify's content delivery network (CDN). Used for product images, brand logos, and other visual content across the storefront. + /// + /// The [`image`](https://shopify.dev/docs/api/storefront/current/objects/MediaImage#field-MediaImage.fields.image) field provides the actual image data with transformation options. Implements the [`Media`](https://shopify.dev/docs/api/storefront/current/interfaces/Media) interface alongside other media types like [`Video`](https://shopify.dev/docs/api/storefront/current/objects/Video) and [`Model3d`](https://shopify.dev/docs/api/storefront/current/objects/Model3d). + nonisolated static let MediaImage = ApolloAPI.Object( + typename: "MediaImage", + implementedInterfaces: [ + Storefront.Interfaces.Media.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MediaPresentation.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MediaPresentation.graphql.swift index b0e1afa1..89b8d847 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MediaPresentation.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MediaPresentation.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// A media presentation. - static let MediaPresentation = ApolloAPI.Object( - typename: "MediaPresentation", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// A media presentation. + nonisolated static let MediaPresentation = ApolloAPI.Object( + typename: "MediaPresentation", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Menu.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Menu.graphql.swift index fc17c7c3..c3d6e302 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Menu.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Menu.graphql.swift @@ -4,12 +4,12 @@ import ApolloAPI extension Storefront.Objects { - /// A navigation structure for building store [menus](https://help.shopify.com/manual/online-store/menus-and-links). Each menu contains [`MenuItem`](https://shopify.dev/docs/api/storefront/current/objects/MenuItem) objects that can be nested to create multi-level navigation hierarchies. - /// - /// Menu items can link to [collections](https://shopify.dev/docs/api/storefront/current/objects/Collection), [products](https://shopify.dev/docs/api/storefront/current/objects/Product), [pages](https://shopify.dev/docs/api/storefront/current/objects/Page), [blogs](https://shopify.dev/docs/api/storefront/current/objects/Blog), or external URLs. Use the [`menu`](https://shopify.dev/docs/api/storefront/current/queries/menu) query to retrieve a menu by its handle. - static let Menu = ApolloAPI.Object( - typename: "Menu", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// A navigation structure for building store [menus](https://help.shopify.com/manual/online-store/menus-and-links). Each menu contains [`MenuItem`](https://shopify.dev/docs/api/storefront/current/objects/MenuItem) objects that can be nested to create multi-level navigation hierarchies. + /// + /// Menu items can link to [collections](https://shopify.dev/docs/api/storefront/current/objects/Collection), [products](https://shopify.dev/docs/api/storefront/current/objects/Product), [pages](https://shopify.dev/docs/api/storefront/current/objects/Page), [blogs](https://shopify.dev/docs/api/storefront/current/objects/Blog), or external URLs. Use the [`menu`](https://shopify.dev/docs/api/storefront/current/queries/menu) query to retrieve a menu by its handle. + nonisolated static let Menu = ApolloAPI.Object( + typename: "Menu", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MenuItem.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MenuItem.graphql.swift index 629e9607..f5454699 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MenuItem.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MenuItem.graphql.swift @@ -4,12 +4,12 @@ import ApolloAPI extension Storefront.Objects { - /// A navigation link within a [`Menu`](https://shopify.dev/docs/api/storefront/current/objects/Menu). Each item has a title, URL, and can link to store resources like [products](https://shopify.dev/docs/api/storefront/current/objects/Product), [collections](https://shopify.dev/docs/api/storefront/current/objects/Collection), [pages](https://shopify.dev/docs/api/storefront/current/objects/Page), [blogs](https://shopify.dev/docs/api/storefront/current/objects/Blog), or external URLs. - /// - /// Menu items support nested hierarchies through the [`items`](https://shopify.dev/docs/api/storefront/current/objects/MenuItem#field-MenuItem.fields.items) field, enabling dropdown or multi-level navigation structures. The [`tags`](https://shopify.dev/docs/api/storefront/current/objects/MenuItem#field-MenuItem.fields.tags) field filters results when the item links to a collection specifically. - static let MenuItem = ApolloAPI.Object( - typename: "MenuItem", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// A navigation link within a [`Menu`](https://shopify.dev/docs/api/storefront/current/objects/Menu). Each item has a title, URL, and can link to store resources like [products](https://shopify.dev/docs/api/storefront/current/objects/Product), [collections](https://shopify.dev/docs/api/storefront/current/objects/Collection), [pages](https://shopify.dev/docs/api/storefront/current/objects/Page), [blogs](https://shopify.dev/docs/api/storefront/current/objects/Blog), or external URLs. + /// + /// Menu items support nested hierarchies through the [`items`](https://shopify.dev/docs/api/storefront/current/objects/MenuItem#field-MenuItem.fields.items) field, enabling dropdown or multi-level navigation structures. The [`tags`](https://shopify.dev/docs/api/storefront/current/objects/MenuItem#field-MenuItem.fields.tags) field filters results when the item links to a collection specifically. + nonisolated static let MenuItem = ApolloAPI.Object( + typename: "MenuItem", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Metafield.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Metafield.graphql.swift index de586820..5aea7549 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Metafield.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Metafield.graphql.swift @@ -4,12 +4,12 @@ import ApolloAPI extension Storefront.Objects { - /// [Custom metadata](https://shopify.dev/docs/apps/build/metafields) attached to a Shopify resource such as a [`Product`](https://shopify.dev/docs/api/storefront/current/objects/Product), [`Collection`](https://shopify.dev/docs/api/storefront/current/objects/Collection), or [`Customer`](https://shopify.dev/docs/api/storefront/current/objects/Customer). Each metafield is identified by a namespace and key, and stores a value with an associated type. - /// - /// Values are always stored as strings, but the [`type`](https://shopify.dev/docs/api/storefront/current/objects/Metafield#field-Metafield.fields.type) field indicates how to interpret the data. When a metafield's type is a resource reference, use the [`reference`](https://shopify.dev/docs/api/storefront/current/objects/Metafield#field-Metafield.fields.reference) or [`references`](https://shopify.dev/docs/api/storefront/current/objects/Metafield#field-Metafield.fields.references) fields to retrieve the linked objects. Access metafields on any resource that implements the [`HasMetafields`](https://shopify.dev/docs/api/storefront/current/interfaces/HasMetafields) interface. - static let Metafield = ApolloAPI.Object( - typename: "Metafield", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// [Custom metadata](https://shopify.dev/docs/apps/build/metafields) attached to a Shopify resource such as a [`Product`](https://shopify.dev/docs/api/storefront/current/objects/Product), [`Collection`](https://shopify.dev/docs/api/storefront/current/objects/Collection), or [`Customer`](https://shopify.dev/docs/api/storefront/current/objects/Customer). Each metafield is identified by a namespace and key, and stores a value with an associated type. + /// + /// Values are always stored as strings, but the [`type`](https://shopify.dev/docs/api/storefront/current/objects/Metafield#field-Metafield.fields.type) field indicates how to interpret the data. When a metafield's type is a resource reference, use the [`reference`](https://shopify.dev/docs/api/storefront/current/objects/Metafield#field-Metafield.fields.reference) or [`references`](https://shopify.dev/docs/api/storefront/current/objects/Metafield#field-Metafield.fields.references) fields to retrieve the linked objects. Access metafields on any resource that implements the [`HasMetafields`](https://shopify.dev/docs/api/storefront/current/interfaces/HasMetafields) interface. + nonisolated static let Metafield = ApolloAPI.Object( + typename: "Metafield", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MetafieldDeleteUserError.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MetafieldDeleteUserError.graphql.swift index 72e248a1..fb988256 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MetafieldDeleteUserError.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MetafieldDeleteUserError.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// An error that occurs during the execution of cart metafield deletion. - static let MetafieldDeleteUserError = ApolloAPI.Object( - typename: "MetafieldDeleteUserError", - implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], - keyFields: nil - ) -} + /// An error that occurs during the execution of cart metafield deletion. + nonisolated static let MetafieldDeleteUserError = ApolloAPI.Object( + typename: "MetafieldDeleteUserError", + implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MetafieldsSetUserError.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MetafieldsSetUserError.graphql.swift index 0dd6a179..aa72a9ce 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MetafieldsSetUserError.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MetafieldsSetUserError.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// An error that occurs during the execution of `MetafieldsSet`. - static let MetafieldsSetUserError = ApolloAPI.Object( - typename: "MetafieldsSetUserError", - implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], - keyFields: nil - ) -} + /// An error that occurs during the execution of `MetafieldsSet`. + nonisolated static let MetafieldsSetUserError = ApolloAPI.Object( + typename: "MetafieldsSetUserError", + implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Metaobject.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Metaobject.graphql.swift index e9f10056..5e221dbc 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Metaobject.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Metaobject.graphql.swift @@ -4,15 +4,15 @@ import ApolloAPI extension Storefront.Objects { - /// An instance of [custom structured data](https://shopify.dev/docs/apps/build/metaobjects) defined by a metaobject definition. Metaobjects store reusable content that extends beyond standard Shopify resources, such as size charts, author profiles, or custom content sections. - /// - /// Each metaobject contains fields that match the types and validation rules specified in its definition. [`Metafield`](https://shopify.dev/docs/api/storefront/current/objects/Metafield) references can point to metaobjects, connecting custom data with products, collections, and other resources. If the definition has the `renderable` capability, then the [`seo`](https://shopify.dev/docs/api/storefront/current/objects/Metaobject#field-Metaobject.fields.seo) field provides SEO metadata. If it has the `online_store` capability, then the [`onlineStoreUrl`](https://shopify.dev/docs/api/storefront/current/objects/Metaobject#field-Metaobject.fields.onlineStoreUrl) field returns the public URL. - static let Metaobject = ApolloAPI.Object( - typename: "Metaobject", - implementedInterfaces: [ - Storefront.Interfaces.Node.self, - Storefront.Interfaces.OnlineStorePublishable.self - ], - keyFields: nil - ) -} + /// An instance of [custom structured data](https://shopify.dev/docs/apps/build/metaobjects) defined by a metaobject definition. Metaobjects store reusable content that extends beyond standard Shopify resources, such as size charts, author profiles, or custom content sections. + /// + /// Each metaobject contains fields that match the types and validation rules specified in its definition. [`Metafield`](https://shopify.dev/docs/api/storefront/current/objects/Metafield) references can point to metaobjects, connecting custom data with products, collections, and other resources. If the definition has the `renderable` capability, then the [`seo`](https://shopify.dev/docs/api/storefront/current/objects/Metaobject#field-Metaobject.fields.seo) field provides SEO metadata. If it has the `online_store` capability, then the [`onlineStoreUrl`](https://shopify.dev/docs/api/storefront/current/objects/Metaobject#field-Metaobject.fields.onlineStoreUrl) field returns the public URL. + nonisolated static let Metaobject = ApolloAPI.Object( + typename: "Metaobject", + implementedInterfaces: [ + Storefront.Interfaces.Node.self, + Storefront.Interfaces.OnlineStorePublishable.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Model3d.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Model3d.graphql.swift index 800d50eb..94a66ea8 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Model3d.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Model3d.graphql.swift @@ -4,13 +4,13 @@ import ApolloAPI extension Storefront.Objects { - /// Represents a Shopify hosted 3D model. - static let Model3d = ApolloAPI.Object( - typename: "Model3d", - implementedInterfaces: [ - Storefront.Interfaces.Media.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// Represents a Shopify hosted 3D model. + nonisolated static let Model3d = ApolloAPI.Object( + typename: "Model3d", + implementedInterfaces: [ + Storefront.Interfaces.Media.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MoneyV2.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MoneyV2.graphql.swift index fe411c16..f7594c47 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MoneyV2.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/MoneyV2.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// A precise monetary value with its associated currency. Combines a decimal amount with a three-letter [`CurrencyCode`](https://shopify.dev/docs/api/storefront/current/enums/CurrencyCode) to express prices, costs, and other financial values. For example, 12.99 USD. - static let MoneyV2 = ApolloAPI.Object( - typename: "MoneyV2", - implementedInterfaces: [], - keyFields: nil - ) -} + /// A precise monetary value with its associated currency. Combines a decimal amount with a three-letter [`CurrencyCode`](https://shopify.dev/docs/api/storefront/current/enums/CurrencyCode) to express prices, costs, and other financial values. For example, 12.99 USD. + nonisolated static let MoneyV2 = ApolloAPI.Object( + typename: "MoneyV2", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Mutation.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Mutation.graphql.swift index f9b04a22..d2ddf46b 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Mutation.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Mutation.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. - static let Mutation = ApolloAPI.Object( - typename: "Mutation", - implementedInterfaces: [], - keyFields: nil - ) -} + /// The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. + nonisolated static let Mutation = ApolloAPI.Object( + typename: "Mutation", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Order.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Order.graphql.swift index 64d9464a..532c0153 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Order.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Order.graphql.swift @@ -4,13 +4,13 @@ import ApolloAPI extension Storefront.Objects { - /// An order is a customer’s completed request to purchase one or more products from a shop. An order is created when a customer completes the checkout process, during which time they provides an email address, billing address and payment information. - static let Order = ApolloAPI.Object( - typename: "Order", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// An order is a customer’s completed request to purchase one or more products from a shop. An order is created when a customer completes the checkout process, during which time they provides an email address, billing address and payment information. + nonisolated static let Order = ApolloAPI.Object( + typename: "Order", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Page.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Page.graphql.swift index 85f252c2..aea59a08 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Page.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Page.graphql.swift @@ -4,17 +4,17 @@ import ApolloAPI extension Storefront.Objects { - /// A [custom content page](https://help.shopify.com/manual/online-store/add-edit-pages) on a merchant's store. Pages display HTML-formatted content, such as "About Us", contact details, or store policies. - /// - /// Each page has a unique [`handle`](https://shopify.dev/docs/api/storefront/current/objects/Page#field-Page.fields.handle) for URL routing and includes [`SEO`](https://shopify.dev/docs/api/storefront/current/objects/SEO) information for search engine optimization. Pages support [`Metafield`](https://shopify.dev/docs/api/storefront/current/objects/Metafield) attachments for storing additional custom data. - static let Page = ApolloAPI.Object( - typename: "Page", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self, - Storefront.Interfaces.OnlineStorePublishable.self, - Storefront.Interfaces.Trackable.self - ], - keyFields: nil - ) -} + /// A [custom content page](https://help.shopify.com/manual/online-store/add-edit-pages) on a merchant's store. Pages display HTML-formatted content, such as "About Us", contact details, or store policies. + /// + /// Each page has a unique [`handle`](https://shopify.dev/docs/api/storefront/current/objects/Page#field-Page.fields.handle) for URL routing and includes [`SEO`](https://shopify.dev/docs/api/storefront/current/objects/SEO) information for search engine optimization. Pages support [`Metafield`](https://shopify.dev/docs/api/storefront/current/objects/Metafield) attachments for storing additional custom data. + nonisolated static let Page = ApolloAPI.Object( + typename: "Page", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self, + Storefront.Interfaces.OnlineStorePublishable.self, + Storefront.Interfaces.Trackable.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Product.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Product.graphql.swift index 4fbb9c9b..817873bd 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Product.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Product.graphql.swift @@ -4,21 +4,21 @@ import ApolloAPI extension Storefront.Objects { - /// Represents an item listed in a shop's catalog. - /// - /// Products support multiple [product variants](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant), representing different versions of the same product, and can include various [media](https://shopify.dev/docs/api/storefront/current/interfaces/Media) types. Use the [`selectedOrFirstAvailableVariant`](https://shopify.dev/docs/api/storefront/current/objects/Product#field-Product.fields.selectedOrFirstAvailableVariant) or [`variantBySelectedOptions`](https://shopify.dev/docs/api/storefront/current/objects/Product#field-Product.fields.variantBySelectedOptions) fields to help customers find the right variant based on their selections. - /// - /// Products can be organized into [collections](https://shopify.dev/docs/api/storefront/current/objects/Collection), associated with [selling plans](https://shopify.dev/docs/api/storefront/current/objects/SellingPlanGroup) for subscriptions, and extended with custom data through [metafields](https://shopify.dev/docs/api/storefront/current/objects/Metafield). - /// - /// Learn more about working with [products and collections](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/products-collections). - static let Product = ApolloAPI.Object( - typename: "Product", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self, - Storefront.Interfaces.OnlineStorePublishable.self, - Storefront.Interfaces.Trackable.self - ], - keyFields: nil - ) -} + /// Represents an item listed in a shop's catalog. + /// + /// Products support multiple [product variants](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant), representing different versions of the same product, and can include various [media](https://shopify.dev/docs/api/storefront/current/interfaces/Media) types. Use the [`selectedOrFirstAvailableVariant`](https://shopify.dev/docs/api/storefront/current/objects/Product#field-Product.fields.selectedOrFirstAvailableVariant) or [`variantBySelectedOptions`](https://shopify.dev/docs/api/storefront/current/objects/Product#field-Product.fields.variantBySelectedOptions) fields to help customers find the right variant based on their selections. + /// + /// Products can be organized into [collections](https://shopify.dev/docs/api/storefront/current/objects/Collection), associated with [selling plans](https://shopify.dev/docs/api/storefront/current/objects/SellingPlanGroup) for subscriptions, and extended with custom data through [metafields](https://shopify.dev/docs/api/storefront/current/objects/Metafield). + /// + /// Learn more about working with [products and collections](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/products-collections). + nonisolated static let Product = ApolloAPI.Object( + typename: "Product", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self, + Storefront.Interfaces.OnlineStorePublishable.self, + Storefront.Interfaces.Trackable.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ProductConnection.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ProductConnection.graphql.swift index 2893db12..46ea1f7c 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ProductConnection.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ProductConnection.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// An auto-generated type for paginating through multiple Products. - static let ProductConnection = ApolloAPI.Object( - typename: "ProductConnection", - implementedInterfaces: [], - keyFields: nil - ) -} + /// An auto-generated type for paginating through multiple Products. + nonisolated static let ProductConnection = ApolloAPI.Object( + typename: "ProductConnection", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ProductOption.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ProductOption.graphql.swift index b630868c..7681d1c2 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ProductOption.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ProductOption.graphql.swift @@ -4,14 +4,14 @@ import ApolloAPI extension Storefront.Objects { - /// A customizable product attribute that customers select when purchasing, such as "Size", "Color", or "Material". Each option has a name and a set of [`ProductOptionValue`](https://shopify.dev/docs/api/storefront/current/objects/ProductOptionValue) objects representing the available choices. - /// - /// Different combinations of option values create distinct [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) objects. Option values can include visual swatches that display colors or images to help customers make selections. Option names have a 255-character limit. - /// - /// Learn more about [Shopify's product model](https://shopify.dev/docs/apps/build/product-merchandising/products-and-collections). - static let ProductOption = ApolloAPI.Object( - typename: "ProductOption", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// A customizable product attribute that customers select when purchasing, such as "Size", "Color", or "Material". Each option has a name and a set of [`ProductOptionValue`](https://shopify.dev/docs/api/storefront/current/objects/ProductOptionValue) objects representing the available choices. + /// + /// Different combinations of option values create distinct [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) objects. Option values can include visual swatches that display colors or images to help customers make selections. Option names have a 255-character limit. + /// + /// Learn more about [Shopify's product model](https://shopify.dev/docs/apps/build/product-merchandising/products-and-collections). + nonisolated static let ProductOption = ApolloAPI.Object( + typename: "ProductOption", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ProductOptionValue.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ProductOptionValue.graphql.swift index 3f0122c0..bc12d308 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ProductOptionValue.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ProductOptionValue.graphql.swift @@ -4,14 +4,14 @@ import ApolloAPI extension Storefront.Objects { - /// A specific value for a [`ProductOption`](https://shopify.dev/docs/api/storefront/current/objects/ProductOption), such as "Red" or "Blue" for a "Color" option. Option values combine across different options to create [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) objects. - /// - /// Each value can include a visual swatch that displays a color or image. The [`firstSelectableVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductOptionValue#field-ProductOptionValue.fields.firstSelectableVariant) field returns the variant that combines this option value with the lowest-position values for all other options. This is useful for building product selection interfaces. - /// - /// Learn more about [Shopify's product model](https://shopify.dev/docs/apps/build/product-merchandising/products-and-collections). - static let ProductOptionValue = ApolloAPI.Object( - typename: "ProductOptionValue", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// A specific value for a [`ProductOption`](https://shopify.dev/docs/api/storefront/current/objects/ProductOption), such as "Red" or "Blue" for a "Color" option. Option values combine across different options to create [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) objects. + /// + /// Each value can include a visual swatch that displays a color or image. The [`firstSelectableVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductOptionValue#field-ProductOptionValue.fields.firstSelectableVariant) field returns the variant that combines this option value with the lowest-position values for all other options. This is useful for building product selection interfaces. + /// + /// Learn more about [Shopify's product model](https://shopify.dev/docs/apps/build/product-merchandising/products-and-collections). + nonisolated static let ProductOptionValue = ApolloAPI.Object( + typename: "ProductOptionValue", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ProductVariant.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ProductVariant.graphql.swift index fee3dbed..8ed52236 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ProductVariant.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ProductVariant.graphql.swift @@ -4,17 +4,17 @@ import ApolloAPI extension Storefront.Objects { - /// A specific version of a [product](https://shopify.dev/docs/api/storefront/current/objects/Product) available for sale, differentiated by options like size or color. For example, a small blue t-shirt and a large blue t-shirt are separate variants of the same product. For more information, see the docs on [Shopify's product model](https://shopify.dev/docs/apps/build/product-merchandising/products-and-collections). - /// - /// For products with quantity rules, variants enforce minimum, maximum, and increment constraints on purchases. - /// - /// Variants also support subscriptions and pre-orders through [selling plan allocations](https://shopify.dev/docs/api/storefront/current/objects/SellingPlanAllocation) objects, bundle configurations through [product variant components](https://shopify.dev/docs/api/storefront/current/objects/ProductVariantComponent) objects, and [shop pay installments pricing](https://shopify.dev/docs/api/storefront/current/objects/ShopPayInstallmentsPricing) for flexible payment options. - static let ProductVariant = ApolloAPI.Object( - typename: "ProductVariant", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// A specific version of a [product](https://shopify.dev/docs/api/storefront/current/objects/Product) available for sale, differentiated by options like size or color. For example, a small blue t-shirt and a large blue t-shirt are separate variants of the same product. For more information, see the docs on [Shopify's product model](https://shopify.dev/docs/apps/build/product-merchandising/products-and-collections). + /// + /// For products with quantity rules, variants enforce minimum, maximum, and increment constraints on purchases. + /// + /// Variants also support subscriptions and pre-orders through [selling plan allocations](https://shopify.dev/docs/api/storefront/current/objects/SellingPlanAllocation) objects, bundle configurations through [product variant components](https://shopify.dev/docs/api/storefront/current/objects/ProductVariantComponent) objects, and [shop pay installments pricing](https://shopify.dev/docs/api/storefront/current/objects/ShopPayInstallmentsPricing) for flexible payment options. + nonisolated static let ProductVariant = ApolloAPI.Object( + typename: "ProductVariant", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ProductVariantConnection.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ProductVariantConnection.graphql.swift index 626b14d8..f0e27a32 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ProductVariantConnection.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ProductVariantConnection.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// An auto-generated type for paginating through multiple ProductVariants. - static let ProductVariantConnection = ApolloAPI.Object( - typename: "ProductVariantConnection", - implementedInterfaces: [], - keyFields: nil - ) -} + /// An auto-generated type for paginating through multiple ProductVariants. + nonisolated static let ProductVariantConnection = ApolloAPI.Object( + typename: "ProductVariantConnection", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/QueryRoot.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/QueryRoot.graphql.swift index 0adca9c0..6209b19f 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/QueryRoot.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/QueryRoot.graphql.swift @@ -4,14 +4,14 @@ import ApolloAPI extension Storefront.Objects { - /// The entry point for all Storefront API queries. Provides access to shop resources including products, collections, carts, and customer data, as well as content like articles and pages. This query acts as the public, top-level type from which all queries must start. - /// - /// Use individual queries like [`product`](https://shopify.dev/docs/api/storefront/current/queries/product) or [`collection`](https://shopify.dev/docs/api/storefront/current/queries/collection) to fetch specific resources by ID or handle. Use plural queries like [`products`](https://shopify.dev/docs/api/storefront/current/queries/products) or [`collections`](https://shopify.dev/docs/api/storefront/current/queries/collections) to retrieve paginated lists with optional filtering and sorting. The [`search`](https://shopify.dev/docs/api/storefront/current/queries/search) and [`predictiveSearch`](https://shopify.dev/docs/api/storefront/current/queries/predictiveSearch) queries enable storefront search functionality. - /// - /// Explore queries interactively with the [GraphiQL explorer and sample query kit](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/api-exploration). - static let QueryRoot = ApolloAPI.Object( - typename: "QueryRoot", - implementedInterfaces: [], - keyFields: nil - ) -} + /// The entry point for all Storefront API queries. Provides access to shop resources including products, collections, carts, and customer data, as well as content like articles and pages. This query acts as the public, top-level type from which all queries must start. + /// + /// Use individual queries like [`product`](https://shopify.dev/docs/api/storefront/current/queries/product) or [`collection`](https://shopify.dev/docs/api/storefront/current/queries/collection) to fetch specific resources by ID or handle. Use plural queries like [`products`](https://shopify.dev/docs/api/storefront/current/queries/products) or [`collections`](https://shopify.dev/docs/api/storefront/current/queries/collections) to retrieve paginated lists with optional filtering and sorting. The [`search`](https://shopify.dev/docs/api/storefront/current/queries/search) and [`predictiveSearch`](https://shopify.dev/docs/api/storefront/current/queries/predictiveSearch) queries enable storefront search functionality. + /// + /// Explore queries interactively with the [GraphiQL explorer and sample query kit](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/api-exploration). + nonisolated static let QueryRoot = ApolloAPI.Object( + typename: "QueryRoot", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/SearchQuerySuggestion.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/SearchQuerySuggestion.graphql.swift index fa3b0a00..ac5debda 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/SearchQuerySuggestion.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/SearchQuerySuggestion.graphql.swift @@ -4,12 +4,12 @@ import ApolloAPI extension Storefront.Objects { - /// A suggested search term returned by the [`predictiveSearch`](https://shopify.dev/docs/api/storefront/current/queries/predictiveSearch) query. Query suggestions help customers refine their searches by showing relevant terms as they type. - /// - /// The [`text`](https://shopify.dev/docs/api/storefront/current/objects/SearchQuerySuggestion#field-SearchQuerySuggestion.fields.text) field provides the plain suggestion, while [`styledText`](https://shopify.dev/docs/api/storefront/current/objects/SearchQuerySuggestion#field-SearchQuerySuggestion.fields.styledText) includes HTML tags to highlight matching portions. Implements [`Trackable`](https://shopify.dev/docs/api/storefront/current/interfaces/Trackable) for analytics reporting on search traffic origins. - static let SearchQuerySuggestion = ApolloAPI.Object( - typename: "SearchQuerySuggestion", - implementedInterfaces: [Storefront.Interfaces.Trackable.self], - keyFields: nil - ) -} + /// A suggested search term returned by the [`predictiveSearch`](https://shopify.dev/docs/api/storefront/current/queries/predictiveSearch) query. Query suggestions help customers refine their searches by showing relevant terms as they type. + /// + /// The [`text`](https://shopify.dev/docs/api/storefront/current/objects/SearchQuerySuggestion#field-SearchQuerySuggestion.fields.text) field provides the plain suggestion, while [`styledText`](https://shopify.dev/docs/api/storefront/current/objects/SearchQuerySuggestion#field-SearchQuerySuggestion.fields.styledText) includes HTML tags to highlight matching portions. Implements [`Trackable`](https://shopify.dev/docs/api/storefront/current/interfaces/Trackable) for analytics reporting on search traffic origins. + nonisolated static let SearchQuerySuggestion = ApolloAPI.Object( + typename: "SearchQuerySuggestion", + implementedInterfaces: [Storefront.Interfaces.Trackable.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/SellingPlan.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/SellingPlan.graphql.swift index b2efdd93..dd7ad9ae 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/SellingPlan.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/SellingPlan.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// Represents deferred or recurring purchase options for [products](https://shopify.dev/docs/api/storefront/current/objects/Product) and [product variants](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant), such as subscriptions, pre-orders, or try-before-you-buy. Each selling plan belongs to a [`SellingPlanGroup`](https://shopify.dev/docs/api/storefront/current/objects/SellingPlanGroup) and defines billing, pricing, inventory, and delivery policies. - static let SellingPlan = ApolloAPI.Object( - typename: "SellingPlan", - implementedInterfaces: [Storefront.Interfaces.HasMetafields.self], - keyFields: nil - ) -} + /// Represents deferred or recurring purchase options for [products](https://shopify.dev/docs/api/storefront/current/objects/Product) and [product variants](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant), such as subscriptions, pre-orders, or try-before-you-buy. Each selling plan belongs to a [`SellingPlanGroup`](https://shopify.dev/docs/api/storefront/current/objects/SellingPlanGroup) and defines billing, pricing, inventory, and delivery policies. + nonisolated static let SellingPlan = ApolloAPI.Object( + typename: "SellingPlan", + implementedInterfaces: [Storefront.Interfaces.HasMetafields.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Shop.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Shop.graphql.swift index 7569031e..c6221d8d 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Shop.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Shop.graphql.swift @@ -4,15 +4,15 @@ import ApolloAPI extension Storefront.Objects { - /// The central hub for store-wide settings and information accessible through the Storefront API. Provides the shop's name, description, and branding configuration including logos and colors through the [`Brand`](https://shopify.dev/docs/api/storefront/current/objects/Brand) object. - /// - /// Access store policies such as privacy, refund, shipping, and terms of service via [`ShopPolicy`](https://shopify.dev/docs/api/storefront/current/objects/ShopPolicy), and the subscription policy via [`ShopPolicyWithDefault`](https://shopify.dev/docs/api/storefront/current/objects/ShopPolicyWithDefault). [`PaymentSettings`](https://shopify.dev/docs/api/storefront/current/objects/PaymentSettings) expose accepted card brands, supported digital wallets, and enabled presentment currencies. The object also includes the primary [`Domain`](https://shopify.dev/docs/api/storefront/current/objects/Domain), countries the shop ships to, [`ShopPayInstallmentsPricing`](https://shopify.dev/docs/api/storefront/current/objects/ShopPayInstallmentsPricing), and [`SocialLoginProvider`](https://shopify.dev/docs/api/storefront/current/objects/SocialLoginProvider) options for customer accounts. - static let Shop = ApolloAPI.Object( - typename: "Shop", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// The central hub for store-wide settings and information accessible through the Storefront API. Provides the shop's name, description, and branding configuration including logos and colors through the [`Brand`](https://shopify.dev/docs/api/storefront/current/objects/Brand) object. + /// + /// Access store policies such as privacy, refund, shipping, and terms of service via [`ShopPolicy`](https://shopify.dev/docs/api/storefront/current/objects/ShopPolicy), and the subscription policy via [`ShopPolicyWithDefault`](https://shopify.dev/docs/api/storefront/current/objects/ShopPolicyWithDefault). [`PaymentSettings`](https://shopify.dev/docs/api/storefront/current/objects/PaymentSettings) expose accepted card brands, supported digital wallets, and enabled presentment currencies. The object also includes the primary [`Domain`](https://shopify.dev/docs/api/storefront/current/objects/Domain), countries the shop ships to, [`ShopPayInstallmentsPricing`](https://shopify.dev/docs/api/storefront/current/objects/ShopPayInstallmentsPricing), and [`SocialLoginProvider`](https://shopify.dev/docs/api/storefront/current/objects/SocialLoginProvider) options for customer accounts. + nonisolated static let Shop = ApolloAPI.Object( + typename: "Shop", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ShopPayInstallmentsFinancingPlan.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ShopPayInstallmentsFinancingPlan.graphql.swift index e0bf0737..0b98df74 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ShopPayInstallmentsFinancingPlan.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ShopPayInstallmentsFinancingPlan.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// The financing plan in Shop Pay Installments. - static let ShopPayInstallmentsFinancingPlan = ApolloAPI.Object( - typename: "ShopPayInstallmentsFinancingPlan", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// The financing plan in Shop Pay Installments. + nonisolated static let ShopPayInstallmentsFinancingPlan = ApolloAPI.Object( + typename: "ShopPayInstallmentsFinancingPlan", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ShopPayInstallmentsFinancingPlanTerm.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ShopPayInstallmentsFinancingPlanTerm.graphql.swift index 00519362..f727ced5 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ShopPayInstallmentsFinancingPlanTerm.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ShopPayInstallmentsFinancingPlanTerm.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// The terms of the financing plan in Shop Pay Installments. - static let ShopPayInstallmentsFinancingPlanTerm = ApolloAPI.Object( - typename: "ShopPayInstallmentsFinancingPlanTerm", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// The terms of the financing plan in Shop Pay Installments. + nonisolated static let ShopPayInstallmentsFinancingPlanTerm = ApolloAPI.Object( + typename: "ShopPayInstallmentsFinancingPlanTerm", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ShopPayInstallmentsProductVariantPricing.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ShopPayInstallmentsProductVariantPricing.graphql.swift index 9e6bf52e..218afa74 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ShopPayInstallmentsProductVariantPricing.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ShopPayInstallmentsProductVariantPricing.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// The shop pay installments pricing information for a product variant. - static let ShopPayInstallmentsProductVariantPricing = ApolloAPI.Object( - typename: "ShopPayInstallmentsProductVariantPricing", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// The shop pay installments pricing information for a product variant. + nonisolated static let ShopPayInstallmentsProductVariantPricing = ApolloAPI.Object( + typename: "ShopPayInstallmentsProductVariantPricing", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ShopPolicy.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ShopPolicy.graphql.swift index 9bebf5c9..d95d8167 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ShopPolicy.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/ShopPolicy.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// Policy that a merchant has configured for their store, such as their refund or privacy policy. - static let ShopPolicy = ApolloAPI.Object( - typename: "ShopPolicy", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// Policy that a merchant has configured for their store, such as their refund or privacy policy. + nonisolated static let ShopPolicy = ApolloAPI.Object( + typename: "ShopPolicy", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/TaxonomyCategory.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/TaxonomyCategory.graphql.swift index 43d4ea95..e33e6c67 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/TaxonomyCategory.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/TaxonomyCategory.graphql.swift @@ -4,14 +4,14 @@ import ApolloAPI extension Storefront.Objects { - /// A category from Shopify's [Standard Product Taxonomy](https://shopify.github.io/product-taxonomy/releases/unstable/?categoryId=sg-4-17-2-17) assigned to a [`Product`](https://shopify.dev/docs/api/storefront/current/objects/Product). Categories provide hierarchical classification through the `ancestors` field. - /// - /// The [`ancestors`](https://shopify.dev/docs/api/storefront/current/objects/TaxonomyCategory#field-TaxonomyCategory.fields.ancestors) field returns the parent chain from the immediate parent up to the root. Each ancestor category also includes its own `ancestors`. - /// - /// The [`name`](https://shopify.dev/docs/api/storefront/latest/objects/TaxonomyCategory#field-TaxonomyCategory.fields.name) field returns the localized category name based on the storefront's request language with shop locale fallbacks. If a translation isn't available for the resolved locale, the English taxonomy name is returned. - static let TaxonomyCategory = ApolloAPI.Object( - typename: "TaxonomyCategory", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// A category from Shopify's [Standard Product Taxonomy](https://shopify.github.io/product-taxonomy/releases/unstable/?categoryId=sg-4-17-2-17) assigned to a [`Product`](https://shopify.dev/docs/api/storefront/current/objects/Product). Categories provide hierarchical classification through the `ancestors` field. + /// + /// The [`ancestors`](https://shopify.dev/docs/api/storefront/current/objects/TaxonomyCategory#field-TaxonomyCategory.fields.ancestors) field returns the parent chain from the immediate parent up to the root. Each ancestor category also includes its own `ancestors`. + /// + /// The [`name`](https://shopify.dev/docs/api/storefront/latest/objects/TaxonomyCategory#field-TaxonomyCategory.fields.name) field returns the localized category name based on the storefront's request language with shop locale fallbacks. If a translation isn't available for the resolved locale, the English taxonomy name is returned. + nonisolated static let TaxonomyCategory = ApolloAPI.Object( + typename: "TaxonomyCategory", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/UrlRedirect.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/UrlRedirect.graphql.swift index c5cbdf79..599a70ce 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/UrlRedirect.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/UrlRedirect.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// A redirect on the online store. - static let UrlRedirect = ApolloAPI.Object( - typename: "UrlRedirect", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// A redirect on the online store. + nonisolated static let UrlRedirect = ApolloAPI.Object( + typename: "UrlRedirect", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/UserError.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/UserError.graphql.swift index 34e9974c..9950824e 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/UserError.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/UserError.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// Represents an error in the input of a mutation. - static let UserError = ApolloAPI.Object( - typename: "UserError", - implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], - keyFields: nil - ) -} + /// Represents an error in the input of a mutation. + nonisolated static let UserError = ApolloAPI.Object( + typename: "UserError", + implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/UserErrorsShopPayPaymentRequestSessionUserErrors.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/UserErrorsShopPayPaymentRequestSessionUserErrors.graphql.swift index 18685d1f..b125e1e4 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/UserErrorsShopPayPaymentRequestSessionUserErrors.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/UserErrorsShopPayPaymentRequestSessionUserErrors.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// Error codes for failed Shop Pay payment request session mutations. - static let UserErrorsShopPayPaymentRequestSessionUserErrors = ApolloAPI.Object( - typename: "UserErrorsShopPayPaymentRequestSessionUserErrors", - implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], - keyFields: nil - ) -} + /// Error codes for failed Shop Pay payment request session mutations. + nonisolated static let UserErrorsShopPayPaymentRequestSessionUserErrors = ApolloAPI.Object( + typename: "UserErrorsShopPayPaymentRequestSessionUserErrors", + implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Video.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Video.graphql.swift index 31761039..128216ee 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Video.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Objects/Video.graphql.swift @@ -4,15 +4,15 @@ import ApolloAPI extension Storefront.Objects { - /// A video hosted on Shopify's servers. Implements the [`Media`](https://shopify.dev/docs/api/storefront/current/interfaces/Media) interface and provides multiple video sources through the [`sources`](https://shopify.dev/docs/api/storefront/current/objects/Video#field-Video.fields.sources) field, each with [format](https://shopify.dev/docs/api/storefront/current/objects/Video#field-Video.fields.sources.format), dimensions, and [URL information](https://shopify.dev/docs/api/storefront/current/objects/Video#field-Video.fields.sources.url) for adaptive playback. - /// - /// For videos hosted on external platforms like YouTube or Vimeo, use [`ExternalVideo`](https://shopify.dev/docs/api/storefront/current/objects/ExternalVideo) instead. - static let Video = ApolloAPI.Object( - typename: "Video", - implementedInterfaces: [ - Storefront.Interfaces.Media.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// A video hosted on Shopify's servers. Implements the [`Media`](https://shopify.dev/docs/api/storefront/current/interfaces/Media) interface and provides multiple video sources through the [`sources`](https://shopify.dev/docs/api/storefront/current/objects/Video#field-Video.fields.sources) field, each with [format](https://shopify.dev/docs/api/storefront/current/objects/Video#field-Video.fields.sources.format), dimensions, and [URL information](https://shopify.dev/docs/api/storefront/current/objects/Video#field-Video.fields.sources.url) for adaptive playback. + /// + /// For videos hosted on external platforms like YouTube or Vimeo, use [`ExternalVideo`](https://shopify.dev/docs/api/storefront/current/objects/ExternalVideo) instead. + nonisolated static let Video = ApolloAPI.Object( + typename: "Video", + implementedInterfaces: [ + Storefront.Interfaces.Media.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/SchemaMetadata.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/SchemaMetadata.graphql.swift index a0386069..dc227216 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/SchemaMetadata.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/SchemaMetadata.graphql.swift @@ -3,101 +3,103 @@ import ApolloAPI -protocol Storefront_SelectionSet: ApolloAPI.SelectionSet & ApolloAPI.RootSelectionSet - where Schema == Storefront.SchemaMetadata {} +nonisolated protocol Storefront_SelectionSet: ApolloAPI.SelectionSet & ApolloAPI.RootSelectionSet +where Schema == Storefront.SchemaMetadata {} -protocol Storefront_InlineFragment: ApolloAPI.SelectionSet & ApolloAPI.InlineFragment - where Schema == Storefront.SchemaMetadata {} +nonisolated protocol Storefront_InlineFragment: ApolloAPI.SelectionSet & ApolloAPI.InlineFragment +where Schema == Storefront.SchemaMetadata {} -protocol Storefront_MutableSelectionSet: ApolloAPI.MutableRootSelectionSet - where Schema == Storefront.SchemaMetadata {} +nonisolated protocol Storefront_MutableSelectionSet: ApolloAPI.MutableRootSelectionSet +where Schema == Storefront.SchemaMetadata {} -protocol Storefront_MutableInlineFragment: ApolloAPI.MutableSelectionSet & ApolloAPI.InlineFragment - where Schema == Storefront.SchemaMetadata {} +nonisolated protocol Storefront_MutableInlineFragment: ApolloAPI.MutableSelectionSet & ApolloAPI.InlineFragment +where Schema == Storefront.SchemaMetadata {} extension Storefront { - typealias SelectionSet = Storefront_SelectionSet + typealias SelectionSet = Storefront_SelectionSet - typealias InlineFragment = Storefront_InlineFragment + typealias InlineFragment = Storefront_InlineFragment - typealias MutableSelectionSet = Storefront_MutableSelectionSet + typealias MutableSelectionSet = Storefront_MutableSelectionSet - typealias MutableInlineFragment = Storefront_MutableInlineFragment + typealias MutableInlineFragment = Storefront_MutableInlineFragment - enum SchemaMetadata: ApolloAPI.SchemaMetadata { - static let configuration: any ApolloAPI.SchemaConfiguration.Type = SchemaConfiguration.self + nonisolated enum SchemaMetadata: ApolloAPI.SchemaMetadata { + static let configuration: any ApolloAPI.SchemaConfiguration.Type = SchemaConfiguration.self - static func objectType(forTypename typename: String) -> ApolloAPI.Object? { - switch typename { - case "AppliedGiftCard": return Storefront.Objects.AppliedGiftCard - case "Article": return Storefront.Objects.Article - case "BaseCartLineConnection": return Storefront.Objects.BaseCartLineConnection - case "Blog": return Storefront.Objects.Blog - case "Cart": return Storefront.Objects.Cart - case "CartBuyerIdentity": return Storefront.Objects.CartBuyerIdentity - case "CartCost": return Storefront.Objects.CartCost - case "CartCreatePayload": return Storefront.Objects.CartCreatePayload - case "CartDeliveryGroup": return Storefront.Objects.CartDeliveryGroup - case "CartDeliveryGroupConnection": return Storefront.Objects.CartDeliveryGroupConnection - case "CartDeliveryOption": return Storefront.Objects.CartDeliveryOption - case "CartLine": return Storefront.Objects.CartLine - case "CartLineCost": return Storefront.Objects.CartLineCost - case "CartLinesAddPayload": return Storefront.Objects.CartLinesAddPayload - case "CartLinesUpdatePayload": return Storefront.Objects.CartLinesUpdatePayload - case "CartUserError": return Storefront.Objects.CartUserError - case "Collection": return Storefront.Objects.Collection - case "CollectionConnection": return Storefront.Objects.CollectionConnection - case "Comment": return Storefront.Objects.Comment - case "Company": return Storefront.Objects.Company - case "CompanyContact": return Storefront.Objects.CompanyContact - case "CompanyLocation": return Storefront.Objects.CompanyLocation - case "ComponentizableCartLine": return Storefront.Objects.ComponentizableCartLine - case "Customer": return Storefront.Objects.Customer - case "CustomerUserError": return Storefront.Objects.CustomerUserError - case "ExternalVideo": return Storefront.Objects.ExternalVideo - case "GenericFile": return Storefront.Objects.GenericFile - case "Image": return Storefront.Objects.Image - case "Location": return Storefront.Objects.Location - case "MailingAddress": return Storefront.Objects.MailingAddress - case "Market": return Storefront.Objects.Market - case "MediaImage": return Storefront.Objects.MediaImage - case "MediaPresentation": return Storefront.Objects.MediaPresentation - case "Menu": return Storefront.Objects.Menu - case "MenuItem": return Storefront.Objects.MenuItem - case "Metafield": return Storefront.Objects.Metafield - case "MetafieldDeleteUserError": return Storefront.Objects.MetafieldDeleteUserError - case "MetafieldsSetUserError": return Storefront.Objects.MetafieldsSetUserError - case "Metaobject": return Storefront.Objects.Metaobject - case "Model3d": return Storefront.Objects.Model3d - case "MoneyV2": return Storefront.Objects.MoneyV2 - case "Mutation": return Storefront.Objects.Mutation - case "Order": return Storefront.Objects.Order - case "Page": return Storefront.Objects.Page - case "Product": return Storefront.Objects.Product - case "ProductConnection": return Storefront.Objects.ProductConnection - case "ProductOption": return Storefront.Objects.ProductOption - case "ProductOptionValue": return Storefront.Objects.ProductOptionValue - case "ProductVariant": return Storefront.Objects.ProductVariant - case "ProductVariantConnection": return Storefront.Objects.ProductVariantConnection - case "QueryRoot": return Storefront.Objects.QueryRoot - case "SearchQuerySuggestion": return Storefront.Objects.SearchQuerySuggestion - case "SellingPlan": return Storefront.Objects.SellingPlan - case "Shop": return Storefront.Objects.Shop - case "ShopPayInstallmentsFinancingPlan": return Storefront.Objects.ShopPayInstallmentsFinancingPlan - case "ShopPayInstallmentsFinancingPlanTerm": return Storefront.Objects.ShopPayInstallmentsFinancingPlanTerm - case "ShopPayInstallmentsProductVariantPricing": return Storefront.Objects.ShopPayInstallmentsProductVariantPricing - case "ShopPolicy": return Storefront.Objects.ShopPolicy - case "TaxonomyCategory": return Storefront.Objects.TaxonomyCategory - case "UrlRedirect": return Storefront.Objects.UrlRedirect - case "UserError": return Storefront.Objects.UserError - case "UserErrorsShopPayPaymentRequestSessionUserErrors": return Storefront.Objects.UserErrorsShopPayPaymentRequestSessionUserErrors - case "Video": return Storefront.Objects.Video - default: return nil - } - } + private static let objectTypeMap: [String: ApolloAPI.Object] = [ + "AppliedGiftCard": Storefront.Objects.AppliedGiftCard, + "Article": Storefront.Objects.Article, + "BaseCartLineConnection": Storefront.Objects.BaseCartLineConnection, + "Blog": Storefront.Objects.Blog, + "Cart": Storefront.Objects.Cart, + "CartBuyerIdentity": Storefront.Objects.CartBuyerIdentity, + "CartCost": Storefront.Objects.CartCost, + "CartCreatePayload": Storefront.Objects.CartCreatePayload, + "CartDeliveryGroup": Storefront.Objects.CartDeliveryGroup, + "CartDeliveryGroupConnection": Storefront.Objects.CartDeliveryGroupConnection, + "CartDeliveryOption": Storefront.Objects.CartDeliveryOption, + "CartLine": Storefront.Objects.CartLine, + "CartLineCost": Storefront.Objects.CartLineCost, + "CartLinesAddPayload": Storefront.Objects.CartLinesAddPayload, + "CartLinesUpdatePayload": Storefront.Objects.CartLinesUpdatePayload, + "CartUserError": Storefront.Objects.CartUserError, + "Collection": Storefront.Objects.Collection, + "CollectionConnection": Storefront.Objects.CollectionConnection, + "Comment": Storefront.Objects.Comment, + "Company": Storefront.Objects.Company, + "CompanyContact": Storefront.Objects.CompanyContact, + "CompanyLocation": Storefront.Objects.CompanyLocation, + "ComponentizableCartLine": Storefront.Objects.ComponentizableCartLine, + "Customer": Storefront.Objects.Customer, + "CustomerUserError": Storefront.Objects.CustomerUserError, + "ExternalVideo": Storefront.Objects.ExternalVideo, + "GenericFile": Storefront.Objects.GenericFile, + "Image": Storefront.Objects.Image, + "Location": Storefront.Objects.Location, + "MailingAddress": Storefront.Objects.MailingAddress, + "Market": Storefront.Objects.Market, + "MediaImage": Storefront.Objects.MediaImage, + "MediaPresentation": Storefront.Objects.MediaPresentation, + "Menu": Storefront.Objects.Menu, + "MenuItem": Storefront.Objects.MenuItem, + "Metafield": Storefront.Objects.Metafield, + "MetafieldDeleteUserError": Storefront.Objects.MetafieldDeleteUserError, + "MetafieldsSetUserError": Storefront.Objects.MetafieldsSetUserError, + "Metaobject": Storefront.Objects.Metaobject, + "Model3d": Storefront.Objects.Model3d, + "MoneyV2": Storefront.Objects.MoneyV2, + "Mutation": Storefront.Objects.Mutation, + "Order": Storefront.Objects.Order, + "Page": Storefront.Objects.Page, + "Product": Storefront.Objects.Product, + "ProductConnection": Storefront.Objects.ProductConnection, + "ProductOption": Storefront.Objects.ProductOption, + "ProductOptionValue": Storefront.Objects.ProductOptionValue, + "ProductVariant": Storefront.Objects.ProductVariant, + "ProductVariantConnection": Storefront.Objects.ProductVariantConnection, + "QueryRoot": Storefront.Objects.QueryRoot, + "SearchQuerySuggestion": Storefront.Objects.SearchQuerySuggestion, + "SellingPlan": Storefront.Objects.SellingPlan, + "Shop": Storefront.Objects.Shop, + "ShopPayInstallmentsFinancingPlan": Storefront.Objects.ShopPayInstallmentsFinancingPlan, + "ShopPayInstallmentsFinancingPlanTerm": Storefront.Objects.ShopPayInstallmentsFinancingPlanTerm, + "ShopPayInstallmentsProductVariantPricing": Storefront.Objects.ShopPayInstallmentsProductVariantPricing, + "ShopPolicy": Storefront.Objects.ShopPolicy, + "TaxonomyCategory": Storefront.Objects.TaxonomyCategory, + "UrlRedirect": Storefront.Objects.UrlRedirect, + "UserError": Storefront.Objects.UserError, + "UserErrorsShopPayPaymentRequestSessionUserErrors": Storefront.Objects.UserErrorsShopPayPaymentRequestSessionUserErrors, + "Video": Storefront.Objects.Video + ] + + static func objectType(forTypename typename: String) -> ApolloAPI.Object? { + objectTypeMap[typename] } + } + + nonisolated enum Objects {} + nonisolated enum Interfaces {} + nonisolated enum Unions {} - enum Objects {} - enum Interfaces {} - enum Unions {} -} +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Unions/Merchandise.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Unions/Merchandise.graphql.swift index 49f0e10d..568879da 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Unions/Merchandise.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Schema/Unions/Merchandise.graphql.swift @@ -4,9 +4,9 @@ import ApolloAPI extension Storefront.Unions { - /// A [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) that a buyer intends to purchase at checkout. - static let Merchandise = Union( - name: "Merchandise", - possibleTypes: [Storefront.Objects.ProductVariant.self] - ) -} + /// A [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) that a buyer intends to purchase at checkout. + nonisolated static let Merchandise = Union( + name: "Merchandise", + possibleTypes: [Storefront.Objects.ProductVariant.self] + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Storefront.graphql.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Storefront.graphql.swift index 35be0463..edb07332 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Storefront.graphql.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Generated/Storefront.graphql.swift @@ -1,4 +1,4 @@ // @generated // This file was automatically generated and should not be edited. -enum Storefront {} +enum Storefront { } diff --git a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Lib/InfoDictionary.swift b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Lib/InfoDictionary.swift index c23157d8..fb547462 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Lib/InfoDictionary.swift +++ b/platforms/swift/Samples/MobileBuyIntegration/MobileBuyIntegration/Sources/Lib/InfoDictionary.swift @@ -65,7 +65,7 @@ final class InfoDictionary: Sendable { fatalError("Missing required configuration. Check your info.plist.") } - let apiVersion = infoPlist["API_VERSION"] as? String ?? "2025-07" + let apiVersion = infoPlist["API_VERSION"] as? String ?? "2026-04" self.apiVersion = apiVersion self.address1 = address1 diff --git a/platforms/swift/Samples/MobileBuyIntegration/README.md b/platforms/swift/Samples/MobileBuyIntegration/README.md index 65b5fcee..56bed395 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/README.md +++ b/platforms/swift/Samples/MobileBuyIntegration/README.md @@ -75,7 +75,7 @@ Edit `Storefront.xcconfig`: ```text STOREFRONT_DOMAIN = your-store.myshopify.com STOREFRONT_ACCESS_TOKEN = your-token -API_VERSION = 2025-07 +API_VERSION = 2026-04 ``` Optional values enable Customer Account API and buyer identity demo flows: diff --git a/platforms/swift/Samples/MobileBuyIntegration/Storefront.xcconfig.example b/platforms/swift/Samples/MobileBuyIntegration/Storefront.xcconfig.example index 0f30fe9d..fcb81ae6 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/Storefront.xcconfig.example +++ b/platforms/swift/Samples/MobileBuyIntegration/Storefront.xcconfig.example @@ -26,4 +26,4 @@ PROVINCE = AB ZIP = T1X 0L3 PHONE = +155565708743 -API_VERSION = 2025-07 +API_VERSION = 2026-04 diff --git a/platforms/swift/Samples/MobileBuyIntegration/apollo-codegen-config.json b/platforms/swift/Samples/MobileBuyIntegration/apollo-codegen-config.json index d67a7fb7..d15311c3 100644 --- a/platforms/swift/Samples/MobileBuyIntegration/apollo-codegen-config.json +++ b/platforms/swift/Samples/MobileBuyIntegration/apollo-codegen-config.json @@ -14,7 +14,7 @@ } }, "schemaTypes" : { - "path" : "./MobileBuyIntegration/Generated", + "path" : "./MobileBuyIntegration/Sources/Generated", "moduleType" : { "embeddedInTarget" : { "name" : "MobileBuyIntegration" diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Fragments/CartDeliveryGroupFragment.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Fragments/CartDeliveryGroupFragment.graphql.swift index 6b788629..83429431 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Fragments/CartDeliveryGroupFragment.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Fragments/CartDeliveryGroupFragment.graphql.swift @@ -5,332 +5,195 @@ @_spi(Execution) @_spi(Unsafe) import ApolloAPI extension Storefront { - struct CartDeliveryGroupFragment: Storefront.SelectionSet, Fragment { - static var fragmentDefinition: StaticString { - #"fragment CartDeliveryGroupFragment on CartDeliveryGroup { __typename id groupType deliveryAddress { __typename address1 address2 city countryCodeV2 firstName lastName phone province zip } deliveryOptions { __typename handle title code deliveryMethodType description estimatedCost { __typename amount currencyCode } } selectedDeliveryOption { __typename description title handle estimatedCost { __typename amount currencyCode } } }"# - } - - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartDeliveryGroup - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("id", Storefront.ID.self), - .field("groupType", GraphQLEnum.self), - .field("deliveryAddress", DeliveryAddress.self), - .field("deliveryOptions", [DeliveryOption].self), - .field("selectedDeliveryOption", SelectedDeliveryOption?.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartDeliveryGroupFragment.self - ] - } - - /// The ID for the delivery group. - var id: Storefront.ID { - __data["id"] - } - - /// The type of merchandise in the delivery group. - var groupType: GraphQLEnum { - __data["groupType"] - } - - /// The destination address for the delivery group. - var deliveryAddress: DeliveryAddress { - __data["deliveryAddress"] - } - - /// The delivery options available for the delivery group. - var deliveryOptions: [DeliveryOption] { - __data["deliveryOptions"] - } - - /// The selected delivery option for the delivery group. - var selectedDeliveryOption: SelectedDeliveryOption? { - __data["selectedDeliveryOption"] - } - - /// DeliveryAddress - /// - /// Parent Type: `MailingAddress` - struct DeliveryAddress: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.MailingAddress - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("address1", String?.self), - .field("address2", String?.self), - .field("city", String?.self), - .field("countryCodeV2", GraphQLEnum?.self), - .field("firstName", String?.self), - .field("lastName", String?.self), - .field("phone", String?.self), - .field("province", String?.self), - .field("zip", String?.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartDeliveryGroupFragment.DeliveryAddress.self - ] - } - - /// The first line of the address. Typically the street address or PO Box number. - var address1: String? { - __data["address1"] - } - - /// The second line of the address. Typically the number of the apartment, suite, or unit. - var address2: String? { - __data["address2"] - } - - /// The name of the city, district, village, or town. - var city: String? { - __data["city"] - } - - /// The two-letter code for the country of the address. - /// - /// For example, US. - var countryCodeV2: GraphQLEnum? { - __data["countryCodeV2"] - } - - /// The first name of the customer. - var firstName: String? { - __data["firstName"] - } - - /// The last name of the customer. - var lastName: String? { - __data["lastName"] - } - - /// A unique phone number for the customer. - /// - /// Formatted using E.164 standard. For example, _+16135551111_. - var phone: String? { - __data["phone"] - } - - /// The region of the address, such as the province, state, or district. - var province: String? { - __data["province"] - } - - /// The zip or postal code of the address. - var zip: String? { - __data["zip"] - } - } - - /// DeliveryOption - /// - /// Parent Type: `CartDeliveryOption` - struct DeliveryOption: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartDeliveryOption - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("handle", String.self), - .field("title", String?.self), - .field("code", String?.self), - .field("deliveryMethodType", GraphQLEnum.self), - .field("description", String?.self), - .field("estimatedCost", EstimatedCost.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartDeliveryGroupFragment.DeliveryOption.self - ] - } - - /// The unique identifier of the delivery option. - var handle: String { - __data["handle"] - } - - /// The title of the delivery option. - var title: String? { - __data["title"] - } - - /// The code of the delivery option. - var code: String? { - __data["code"] - } - - /// The method for the delivery option. - var deliveryMethodType: GraphQLEnum { - __data["deliveryMethodType"] - } - - /// The description of the delivery option. - var description: String? { - __data["description"] - } - - /// The estimated cost for the delivery option. - var estimatedCost: EstimatedCost { - __data["estimatedCost"] - } - - /// DeliveryOption.EstimatedCost - /// - /// Parent Type: `MoneyV2` - struct EstimatedCost: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.MoneyV2 - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("amount", Storefront.Decimal.self), - .field("currencyCode", GraphQLEnum.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartDeliveryGroupFragment.DeliveryOption.EstimatedCost.self - ] - } - - /// Decimal money amount. - var amount: Storefront.Decimal { - __data["amount"] - } - - /// Currency of the money. - var currencyCode: GraphQLEnum { - __data["currencyCode"] - } - } - } - - /// SelectedDeliveryOption - /// - /// Parent Type: `CartDeliveryOption` - struct SelectedDeliveryOption: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartDeliveryOption - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("description", String?.self), - .field("title", String?.self), - .field("handle", String.self), - .field("estimatedCost", EstimatedCost.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartDeliveryGroupFragment.SelectedDeliveryOption.self - ] - } - - /// The description of the delivery option. - var description: String? { - __data["description"] - } - - /// The title of the delivery option. - var title: String? { - __data["title"] - } - - /// The unique identifier of the delivery option. - var handle: String { - __data["handle"] - } - - /// The estimated cost for the delivery option. - var estimatedCost: EstimatedCost { - __data["estimatedCost"] - } - - /// SelectedDeliveryOption.EstimatedCost - /// - /// Parent Type: `MoneyV2` - struct EstimatedCost: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.MoneyV2 - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("amount", Storefront.Decimal.self), - .field("currencyCode", GraphQLEnum.self) - ] - } + struct CartDeliveryGroupFragment: Storefront.SelectionSet, Fragment { + static var fragmentDefinition: StaticString { + #"fragment CartDeliveryGroupFragment on CartDeliveryGroup { __typename id groupType deliveryAddress { __typename address1 address2 city countryCodeV2 firstName lastName phone province zip } deliveryOptions { __typename handle title code deliveryMethodType description estimatedCost { __typename amount currencyCode } } selectedDeliveryOption { __typename description title handle estimatedCost { __typename amount currencyCode } } }"# + } - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartDeliveryGroupFragment.SelectedDeliveryOption.EstimatedCost.self - ] - } + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartDeliveryGroup } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("id", Storefront.ID.self), + .field("groupType", GraphQLEnum.self), + .field("deliveryAddress", DeliveryAddress.self), + .field("deliveryOptions", [DeliveryOption].self), + .field("selectedDeliveryOption", SelectedDeliveryOption?.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartDeliveryGroupFragment.self + ] } + + /// The ID for the delivery group. + var id: Storefront.ID { __data["id"] } + /// The type of merchandise in the delivery group. + var groupType: GraphQLEnum { __data["groupType"] } + /// The destination address for the delivery group. + var deliveryAddress: DeliveryAddress { __data["deliveryAddress"] } + /// The delivery options available for the delivery group. + var deliveryOptions: [DeliveryOption] { __data["deliveryOptions"] } + /// The selected delivery option for the delivery group. + var selectedDeliveryOption: SelectedDeliveryOption? { __data["selectedDeliveryOption"] } + + /// DeliveryAddress + /// + /// Parent Type: `MailingAddress` + struct DeliveryAddress: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.MailingAddress } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("address1", String?.self), + .field("address2", String?.self), + .field("city", String?.self), + .field("countryCodeV2", GraphQLEnum?.self), + .field("firstName", String?.self), + .field("lastName", String?.self), + .field("phone", String?.self), + .field("province", String?.self), + .field("zip", String?.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartDeliveryGroupFragment.DeliveryAddress.self + ] } + + /// The first line of the address. Typically the street address or PO Box number. + var address1: String? { __data["address1"] } + /// The second line of the address. Typically the number of the apartment, suite, or unit. + var address2: String? { __data["address2"] } + /// The name of the city, district, village, or town. + var city: String? { __data["city"] } + /// The two-letter code for the country of the address. + /// + /// For example, US. + var countryCodeV2: GraphQLEnum? { __data["countryCodeV2"] } + /// The first name of the customer. + var firstName: String? { __data["firstName"] } + /// The last name of the customer. + var lastName: String? { __data["lastName"] } + /// A unique phone number for the customer. + /// + /// Formatted using E.164 standard. For example, _+16135551111_. + var phone: String? { __data["phone"] } + /// The region of the address, such as the province, state, or district. + var province: String? { __data["province"] } + /// The zip or postal code of the address. + var zip: String? { __data["zip"] } + } - /// Decimal money amount. - var amount: Storefront.Decimal { - __data["amount"] - } + /// DeliveryOption + /// + /// Parent Type: `CartDeliveryOption` + struct DeliveryOption: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartDeliveryOption } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("handle", String.self), + .field("title", String?.self), + .field("code", String?.self), + .field("deliveryMethodType", GraphQLEnum.self), + .field("description", String?.self), + .field("estimatedCost", EstimatedCost.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartDeliveryGroupFragment.DeliveryOption.self + ] } + + /// The unique identifier of the delivery option. + var handle: String { __data["handle"] } + /// The title of the delivery option. + var title: String? { __data["title"] } + /// The code of the delivery option. + var code: String? { __data["code"] } + /// The method for the delivery option. + var deliveryMethodType: GraphQLEnum { __data["deliveryMethodType"] } + /// The description of the delivery option. + var description: String? { __data["description"] } + /// The estimated cost for the delivery option. + var estimatedCost: EstimatedCost { __data["estimatedCost"] } + + /// DeliveryOption.EstimatedCost + /// + /// Parent Type: `MoneyV2` + struct EstimatedCost: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.MoneyV2 } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("amount", Storefront.Decimal.self), + .field("currencyCode", GraphQLEnum.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartDeliveryGroupFragment.DeliveryOption.EstimatedCost.self + ] } + + /// Decimal money amount. + var amount: Storefront.Decimal { __data["amount"] } + /// Currency of the money. + var currencyCode: GraphQLEnum { __data["currencyCode"] } + } + } - /// Currency of the money. - var currencyCode: GraphQLEnum { - __data["currencyCode"] - } - } - } + /// SelectedDeliveryOption + /// + /// Parent Type: `CartDeliveryOption` + struct SelectedDeliveryOption: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartDeliveryOption } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("description", String?.self), + .field("title", String?.self), + .field("handle", String.self), + .field("estimatedCost", EstimatedCost.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartDeliveryGroupFragment.SelectedDeliveryOption.self + ] } + + /// The description of the delivery option. + var description: String? { __data["description"] } + /// The title of the delivery option. + var title: String? { __data["title"] } + /// The unique identifier of the delivery option. + var handle: String { __data["handle"] } + /// The estimated cost for the delivery option. + var estimatedCost: EstimatedCost { __data["estimatedCost"] } + + /// SelectedDeliveryOption.EstimatedCost + /// + /// Parent Type: `MoneyV2` + struct EstimatedCost: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.MoneyV2 } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("amount", Storefront.Decimal.self), + .field("currencyCode", GraphQLEnum.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartDeliveryGroupFragment.SelectedDeliveryOption.EstimatedCost.self + ] } + + /// Decimal money amount. + var amount: Storefront.Decimal { __data["amount"] } + /// Currency of the money. + var currencyCode: GraphQLEnum { __data["currencyCode"] } + } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Fragments/CartFragment.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Fragments/CartFragment.graphql.swift index f6d1c178..3297288a 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Fragments/CartFragment.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Fragments/CartFragment.graphql.swift @@ -5,511 +5,309 @@ @_spi(Execution) @_spi(Unsafe) import ApolloAPI extension Storefront { - struct CartFragment: Storefront.SelectionSet, Fragment { - static var fragmentDefinition: StaticString { - #"fragment CartFragment on Cart { __typename id checkoutUrl totalQuantity buyerIdentity { __typename email phone customer { __typename email phone } } deliveryGroups(first: 10) { __typename nodes { __typename ...CartDeliveryGroupFragment } } lines(first: 250) { __typename nodes { __typename ...CartLineFragment } } cost { __typename totalAmount { __typename amount currencyCode } subtotalAmount { __typename amount currencyCode } totalTaxAmount { __typename amount currencyCode } } }"# - } + struct CartFragment: Storefront.SelectionSet, Fragment { + static var fragmentDefinition: StaticString { + #"fragment CartFragment on Cart { __typename id checkoutUrl totalQuantity buyerIdentity { __typename email phone customer { __typename email phone } } deliveryGroups(first: 10) { __typename nodes { __typename ...CartDeliveryGroupFragment } } lines(first: 250) { __typename nodes { __typename ...CartLineFragment } } cost { __typename totalAmount { __typename amount currencyCode } subtotalAmount { __typename amount currencyCode } totalTaxAmount { __typename amount currencyCode } } }"# + } + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Cart } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("id", Storefront.ID.self), + .field("checkoutUrl", Storefront.URL.self), + .field("totalQuantity", Int.self), + .field("buyerIdentity", BuyerIdentity.self), + .field("deliveryGroups", DeliveryGroups.self, arguments: ["first": 10]), + .field("lines", Lines.self, arguments: ["first": 250]), + .field("cost", Cost.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartFragment.self + ] } + + /// A globally-unique ID. + var id: Storefront.ID { __data["id"] } + /// The URL of the checkout for the cart. + var checkoutUrl: Storefront.URL { __data["checkoutUrl"] } + /// The total number of items in the cart. + var totalQuantity: Int { __data["totalQuantity"] } + /// Information about the buyer that's interacting with the cart. + var buyerIdentity: BuyerIdentity { __data["buyerIdentity"] } + /// The delivery groups available for the cart, based on the buyer identity default + /// delivery address preference or the default address of the logged-in customer. + var deliveryGroups: DeliveryGroups { __data["deliveryGroups"] } + /// A list of lines containing information about the items the customer intends to purchase. + var lines: Lines { __data["lines"] } + /// The estimated costs that the buyer will pay at checkout. The costs are subject to change and changes will be reflected at checkout. The `cost` field uses the `buyerIdentity` field to determine [international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing). + var cost: Cost { __data["cost"] } + + /// BuyerIdentity + /// + /// Parent Type: `CartBuyerIdentity` + struct BuyerIdentity: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartBuyerIdentity } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("email", String?.self), + .field("phone", String?.self), + .field("customer", Customer?.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartFragment.BuyerIdentity.self + ] } + + /// The email address of the buyer that's interacting with the cart. + var email: String? { __data["email"] } + /// The phone number of the buyer that's interacting with the cart. + var phone: String? { __data["phone"] } + /// The customer account associated with the cart. + var customer: Customer? { __data["customer"] } + + /// BuyerIdentity.Customer + /// + /// Parent Type: `Customer` + struct Customer: Storefront.SelectionSet { let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Cart - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("id", Storefront.ID.self), - .field("checkoutUrl", Storefront.URL.self), - .field("totalQuantity", Int.self), - .field("buyerIdentity", BuyerIdentity.self), - .field("deliveryGroups", DeliveryGroups.self, arguments: ["first": 10]), - .field("lines", Lines.self, arguments: ["first": 250]), - .field("cost", Cost.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartFragment.self - ] - } - - /// A globally-unique ID. - var id: Storefront.ID { - __data["id"] - } + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Customer } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("email", String?.self), + .field("phone", String?.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartFragment.BuyerIdentity.Customer.self + ] } + + /// The customer’s email address. + var email: String? { __data["email"] } + /// The customer’s phone number. + var phone: String? { __data["phone"] } + } + } - /// The URL of the checkout for the cart. - var checkoutUrl: Storefront.URL { - __data["checkoutUrl"] + /// DeliveryGroups + /// + /// Parent Type: `CartDeliveryGroupConnection` + struct DeliveryGroups: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartDeliveryGroupConnection } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("nodes", [Node].self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartFragment.DeliveryGroups.self + ] } + + /// A list of the nodes contained in CartDeliveryGroupEdge. + var nodes: [Node] { __data["nodes"] } + + /// DeliveryGroups.Node + /// + /// Parent Type: `CartDeliveryGroup` + struct Node: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartDeliveryGroup } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .fragment(CartDeliveryGroupFragment.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartFragment.DeliveryGroups.Node.self, + CartDeliveryGroupFragment.self + ] } + + /// The ID for the delivery group. + var id: Storefront.ID { __data["id"] } + /// The type of merchandise in the delivery group. + var groupType: GraphQLEnum { __data["groupType"] } + /// The destination address for the delivery group. + var deliveryAddress: DeliveryAddress { __data["deliveryAddress"] } + /// The delivery options available for the delivery group. + var deliveryOptions: [DeliveryOption] { __data["deliveryOptions"] } + /// The selected delivery option for the delivery group. + var selectedDeliveryOption: SelectedDeliveryOption? { __data["selectedDeliveryOption"] } + + struct Fragments: FragmentContainer { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + var cartDeliveryGroupFragment: CartDeliveryGroupFragment { _toFragment() } } - /// The total number of items in the cart. - var totalQuantity: Int { - __data["totalQuantity"] - } + typealias DeliveryAddress = CartDeliveryGroupFragment.DeliveryAddress - /// Information about the buyer that's interacting with the cart. - var buyerIdentity: BuyerIdentity { - __data["buyerIdentity"] - } + typealias DeliveryOption = CartDeliveryGroupFragment.DeliveryOption - /// The delivery groups available for the cart, based on the buyer identity default - /// delivery address preference or the default address of the logged-in customer. - var deliveryGroups: DeliveryGroups { - __data["deliveryGroups"] - } - - /// A list of lines containing information about the items the customer intends to purchase. - var lines: Lines { - __data["lines"] - } + typealias SelectedDeliveryOption = CartDeliveryGroupFragment.SelectedDeliveryOption + } + } - /// The estimated costs that the buyer will pay at checkout. The costs are subject to change and changes will be reflected at checkout. The `cost` field uses the `buyerIdentity` field to determine [international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing). - var cost: Cost { - __data["cost"] - } + /// Lines + /// + /// Parent Type: `BaseCartLineConnection` + struct Lines: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.BaseCartLineConnection } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("nodes", [Node].self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartFragment.Lines.self + ] } + + /// A list of the nodes contained in BaseCartLineEdge. + var nodes: [Node] { __data["nodes"] } + + /// Lines.Node + /// + /// Parent Type: `BaseCartLine` + struct Node: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Interfaces.BaseCartLine } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .fragment(CartLineFragment.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartFragment.Lines.Node.self, + CartLineFragment.self + ] } - /// BuyerIdentity - /// - /// Parent Type: `CartBuyerIdentity` - struct BuyerIdentity: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartBuyerIdentity - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("email", String?.self), - .field("phone", String?.self), - .field("customer", Customer?.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartFragment.BuyerIdentity.self - ] - } - - /// The email address of the buyer that's interacting with the cart. - var email: String? { - __data["email"] - } - - /// The phone number of the buyer that's interacting with the cart. - var phone: String? { - __data["phone"] - } - - /// The customer account associated with the cart. - var customer: Customer? { - __data["customer"] - } - - /// BuyerIdentity.Customer - /// - /// Parent Type: `Customer` - struct Customer: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Customer - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("email", String?.self), - .field("phone", String?.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartFragment.BuyerIdentity.Customer.self - ] - } - - /// The customer’s email address. - var email: String? { - __data["email"] - } - - /// The customer’s phone number. - var phone: String? { - __data["phone"] - } - } + /// A globally-unique ID. + var id: Storefront.ID { __data["id"] } + /// The quantity of the merchandise that the customer intends to purchase. + var quantity: Int { __data["quantity"] } + /// The merchandise that the buyer intends to purchase. + var merchandise: Merchandise { __data["merchandise"] } + /// The cost of the merchandise that the buyer will pay for at checkout. The costs are subject to change and changes will be reflected at checkout. + var cost: Cost { __data["cost"] } + + struct Fragments: FragmentContainer { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + var cartLineFragment: CartLineFragment { _toFragment() } } - /// DeliveryGroups - /// - /// Parent Type: `CartDeliveryGroupConnection` - struct DeliveryGroups: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartDeliveryGroupConnection - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("nodes", [Node].self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartFragment.DeliveryGroups.self - ] - } - - /// A list of the nodes contained in CartDeliveryGroupEdge. - var nodes: [Node] { - __data["nodes"] - } - - /// DeliveryGroups.Node - /// - /// Parent Type: `CartDeliveryGroup` - struct Node: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartDeliveryGroup - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .fragment(CartDeliveryGroupFragment.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartFragment.DeliveryGroups.Node.self, - CartDeliveryGroupFragment.self - ] - } - - /// The ID for the delivery group. - var id: Storefront.ID { - __data["id"] - } - - /// The type of merchandise in the delivery group. - var groupType: GraphQLEnum { - __data["groupType"] - } - - /// The destination address for the delivery group. - var deliveryAddress: DeliveryAddress { - __data["deliveryAddress"] - } - - /// The delivery options available for the delivery group. - var deliveryOptions: [DeliveryOption] { - __data["deliveryOptions"] - } - - /// The selected delivery option for the delivery group. - var selectedDeliveryOption: SelectedDeliveryOption? { - __data["selectedDeliveryOption"] - } - - struct Fragments: FragmentContainer { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - var cartDeliveryGroupFragment: CartDeliveryGroupFragment { - _toFragment() - } - } - - typealias DeliveryAddress = CartDeliveryGroupFragment.DeliveryAddress - - typealias DeliveryOption = CartDeliveryGroupFragment.DeliveryOption - - typealias SelectedDeliveryOption = CartDeliveryGroupFragment.SelectedDeliveryOption - } - } + typealias Merchandise = CartLineFragment.Merchandise - /// Lines - /// - /// Parent Type: `BaseCartLineConnection` - struct Lines: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.BaseCartLineConnection - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("nodes", [Node].self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartFragment.Lines.self - ] - } - - /// A list of the nodes contained in BaseCartLineEdge. - var nodes: [Node] { - __data["nodes"] - } - - /// Lines.Node - /// - /// Parent Type: `BaseCartLine` - struct Node: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Interfaces.BaseCartLine - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .fragment(CartLineFragment.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartFragment.Lines.Node.self, - CartLineFragment.self - ] - } - - /// A globally-unique ID. - var id: Storefront.ID { - __data["id"] - } - - /// The quantity of the merchandise that the customer intends to purchase. - var quantity: Int { - __data["quantity"] - } - - /// The merchandise that the buyer intends to purchase. - var merchandise: Merchandise { - __data["merchandise"] - } - - /// The cost of the merchandise that the buyer will pay for at checkout. The costs are subject to change and changes will be reflected at checkout. - var cost: Cost { - __data["cost"] - } - - struct Fragments: FragmentContainer { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - var cartLineFragment: CartLineFragment { - _toFragment() - } - } - - typealias Merchandise = CartLineFragment.Merchandise - - typealias Cost = CartLineFragment.Cost - } - } + typealias Cost = CartLineFragment.Cost + } + } - /// Cost - /// - /// Parent Type: `CartCost` - struct Cost: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartCost - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("totalAmount", TotalAmount.self), - .field("subtotalAmount", SubtotalAmount.self), - .field("totalTaxAmount", TotalTaxAmount?.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartFragment.Cost.self - ] - } - - /// The total amount for the customer to pay. - var totalAmount: TotalAmount { - __data["totalAmount"] - } - - /// The amount, before taxes and cart-level discounts, for the customer to pay. - var subtotalAmount: SubtotalAmount { - __data["subtotalAmount"] - } - - /// The tax amount for the customer to pay at checkout. - @available(*, deprecated, message: "Tax and duty amounts are no longer available and will be removed in a future version.\nPlease see [the changelog](https://shopify.dev/changelog/tax-and-duties-are-deprecated-in-storefront-cart-api)\nfor more information.") - var totalTaxAmount: TotalTaxAmount? { - __data["totalTaxAmount"] - } - - /// Cost.TotalAmount - /// - /// Parent Type: `MoneyV2` - struct TotalAmount: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.MoneyV2 - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("amount", Storefront.Decimal.self), - .field("currencyCode", GraphQLEnum.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartFragment.Cost.TotalAmount.self - ] - } - - /// Decimal money amount. - var amount: Storefront.Decimal { - __data["amount"] - } - - /// Currency of the money. - var currencyCode: GraphQLEnum { - __data["currencyCode"] - } - } - - /// Cost.SubtotalAmount - /// - /// Parent Type: `MoneyV2` - struct SubtotalAmount: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.MoneyV2 - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("amount", Storefront.Decimal.self), - .field("currencyCode", GraphQLEnum.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartFragment.Cost.SubtotalAmount.self - ] - } - - /// Decimal money amount. - var amount: Storefront.Decimal { - __data["amount"] - } - - /// Currency of the money. - var currencyCode: GraphQLEnum { - __data["currencyCode"] - } - } - - /// Cost.TotalTaxAmount - /// - /// Parent Type: `MoneyV2` - struct TotalTaxAmount: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.MoneyV2 - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("amount", Storefront.Decimal.self), - .field("currencyCode", GraphQLEnum.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartFragment.Cost.TotalTaxAmount.self - ] - } - - /// Decimal money amount. - var amount: Storefront.Decimal { - __data["amount"] - } - - /// Currency of the money. - var currencyCode: GraphQLEnum { - __data["currencyCode"] - } - } - } + /// Cost + /// + /// Parent Type: `CartCost` + struct Cost: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartCost } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("totalAmount", TotalAmount.self), + .field("subtotalAmount", SubtotalAmount.self), + .field("totalTaxAmount", TotalTaxAmount?.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartFragment.Cost.self + ] } + + /// The total amount for the customer to pay. + var totalAmount: TotalAmount { __data["totalAmount"] } + /// The amount, before taxes and cart-level discounts, for the customer to pay. + var subtotalAmount: SubtotalAmount { __data["subtotalAmount"] } + /// The tax amount for the customer to pay at checkout. + @available(*, deprecated, message: "Tax and duty amounts are no longer available and will be removed in a future version.\nPlease see [the changelog](https://shopify.dev/changelog/tax-and-duties-are-deprecated-in-storefront-cart-api)\nfor more information.") + var totalTaxAmount: TotalTaxAmount? { __data["totalTaxAmount"] } + + /// Cost.TotalAmount + /// + /// Parent Type: `MoneyV2` + struct TotalAmount: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.MoneyV2 } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("amount", Storefront.Decimal.self), + .field("currencyCode", GraphQLEnum.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartFragment.Cost.TotalAmount.self + ] } + + /// Decimal money amount. + var amount: Storefront.Decimal { __data["amount"] } + /// Currency of the money. + var currencyCode: GraphQLEnum { __data["currencyCode"] } + } + + /// Cost.SubtotalAmount + /// + /// Parent Type: `MoneyV2` + struct SubtotalAmount: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.MoneyV2 } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("amount", Storefront.Decimal.self), + .field("currencyCode", GraphQLEnum.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartFragment.Cost.SubtotalAmount.self + ] } + + /// Decimal money amount. + var amount: Storefront.Decimal { __data["amount"] } + /// Currency of the money. + var currencyCode: GraphQLEnum { __data["currencyCode"] } + } + + /// Cost.TotalTaxAmount + /// + /// Parent Type: `MoneyV2` + struct TotalTaxAmount: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.MoneyV2 } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("amount", Storefront.Decimal.self), + .field("currencyCode", GraphQLEnum.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartFragment.Cost.TotalTaxAmount.self + ] } + + /// Decimal money amount. + var amount: Storefront.Decimal { __data["amount"] } + /// Currency of the money. + var currencyCode: GraphQLEnum { __data["currencyCode"] } + } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Fragments/CartLineFragment.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Fragments/CartLineFragment.graphql.swift index ffea3e41..f383a890 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Fragments/CartLineFragment.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Fragments/CartLineFragment.graphql.swift @@ -5,379 +5,236 @@ @_spi(Execution) @_spi(Unsafe) import ApolloAPI extension Storefront { - struct CartLineFragment: Storefront.SelectionSet, Fragment { - static var fragmentDefinition: StaticString { - #"fragment CartLineFragment on BaseCartLine { __typename id quantity merchandise { __typename ... on ProductVariant { id title image { __typename url } price { __typename amount currencyCode } product { __typename title vendor featuredImage { __typename url } } requiresShipping } } cost { __typename totalAmount { __typename amount currencyCode } } }"# - } + struct CartLineFragment: Storefront.SelectionSet, Fragment { + static var fragmentDefinition: StaticString { + #"fragment CartLineFragment on BaseCartLine { __typename id quantity merchandise { __typename ... on ProductVariant { id title image { __typename url } price { __typename amount currencyCode } product { __typename title vendor featuredImage { __typename url } } requiresShipping } } cost { __typename totalAmount { __typename amount currencyCode } } }"# + } + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Interfaces.BaseCartLine } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("id", Storefront.ID.self), + .field("quantity", Int.self), + .field("merchandise", Merchandise.self), + .field("cost", Cost.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLineFragment.self + ] } + + /// A globally-unique ID. + var id: Storefront.ID { __data["id"] } + /// The quantity of the merchandise that the customer intends to purchase. + var quantity: Int { __data["quantity"] } + /// The merchandise that the buyer intends to purchase. + var merchandise: Merchandise { __data["merchandise"] } + /// The cost of the merchandise that the buyer will pay for at checkout. The costs are subject to change and changes will be reflected at checkout. + var cost: Cost { __data["cost"] } + + /// Merchandise + /// + /// Parent Type: `Merchandise` + struct Merchandise: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Unions.Merchandise } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .inlineFragment(AsProductVariant.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLineFragment.Merchandise.self + ] } + + var asProductVariant: AsProductVariant? { _asInlineFragment() } + + /// Merchandise.AsProductVariant + /// + /// Parent Type: `ProductVariant` + struct AsProductVariant: Storefront.InlineFragment { let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Interfaces.BaseCartLine - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("id", Storefront.ID.self), - .field("quantity", Int.self), - .field("merchandise", Merchandise.self), - .field("cost", Cost.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLineFragment.self - ] - } + init(_dataDict: DataDict) { __data = _dataDict } + + typealias RootEntityType = CartLineFragment.Merchandise + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.ProductVariant } + static var __selections: [ApolloAPI.Selection] { [ + .field("id", Storefront.ID.self), + .field("title", String.self), + .field("image", Image?.self), + .field("price", Price.self), + .field("product", Product.self), + .field("requiresShipping", Bool.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLineFragment.Merchandise.self, + CartLineFragment.Merchandise.AsProductVariant.self + ] } /// A globally-unique ID. - var id: Storefront.ID { - __data["id"] - } - - /// The quantity of the merchandise that the customer intends to purchase. - var quantity: Int { - __data["quantity"] - } - - /// The merchandise that the buyer intends to purchase. - var merchandise: Merchandise { - __data["merchandise"] - } - - /// The cost of the merchandise that the buyer will pay for at checkout. The costs are subject to change and changes will be reflected at checkout. - var cost: Cost { - __data["cost"] + var id: Storefront.ID { __data["id"] } + /// The product variant’s title. + var title: String { __data["title"] } + /// Image associated with the product variant. This field falls back to the product image if no image is available. + var image: Image? { __data["image"] } + /// The product variant’s price. + var price: Price { __data["price"] } + /// The product object that the product variant belongs to. + var product: Product { __data["product"] } + /// Whether a customer needs to provide a shipping address when placing an order for the product variant. + var requiresShipping: Bool { __data["requiresShipping"] } + + /// Merchandise.AsProductVariant.Image + /// + /// Parent Type: `Image` + struct Image: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Image } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("url", Storefront.URL.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLineFragment.Merchandise.AsProductVariant.Image.self + ] } + + /// The location of the image as a URL. + /// + /// If no transform options are specified, then the original image will be preserved including any pre-applied transforms. + /// + /// All transformation options are considered "best-effort". Any transformation that the original image type doesn't support will be ignored. + /// + /// If you need multiple variations of the same image, then you can use [GraphQL aliases](https://graphql.org/learn/queries/#aliases). + var url: Storefront.URL { __data["url"] } } - /// Merchandise + /// Merchandise.AsProductVariant.Price /// - /// Parent Type: `Merchandise` - struct Merchandise: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Unions.Merchandise - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .inlineFragment(AsProductVariant.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLineFragment.Merchandise.self - ] - } - - var asProductVariant: AsProductVariant? { - _asInlineFragment() - } - - /// Merchandise.AsProductVariant - /// - /// Parent Type: `ProductVariant` - struct AsProductVariant: Storefront.InlineFragment { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - typealias RootEntityType = CartLineFragment.Merchandise - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.ProductVariant - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("id", Storefront.ID.self), - .field("title", String.self), - .field("image", Image?.self), - .field("price", Price.self), - .field("product", Product.self), - .field("requiresShipping", Bool.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLineFragment.Merchandise.self, - CartLineFragment.Merchandise.AsProductVariant.self - ] - } - - /// A globally-unique ID. - var id: Storefront.ID { - __data["id"] - } - - /// The product variant’s title. - var title: String { - __data["title"] - } - - /// Image associated with the product variant. This field falls back to the product image if no image is available. - var image: Image? { - __data["image"] - } - - /// The product variant’s price. - var price: Price { - __data["price"] - } - - /// The product object that the product variant belongs to. - var product: Product { - __data["product"] - } - - /// Whether a customer needs to provide a shipping address when placing an order for the product variant. - var requiresShipping: Bool { - __data["requiresShipping"] - } - - /// Merchandise.AsProductVariant.Image - /// - /// Parent Type: `Image` - struct Image: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Image - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("url", Storefront.URL.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLineFragment.Merchandise.AsProductVariant.Image.self - ] - } - - /// The location of the image as a URL. - /// - /// If no transform options are specified, then the original image will be preserved including any pre-applied transforms. - /// - /// All transformation options are considered "best-effort". Any transformation that the original image type doesn't support will be ignored. - /// - /// If you need multiple variations of the same image, then you can use [GraphQL aliases](https://graphql.org/learn/queries/#aliases). - var url: Storefront.URL { - __data["url"] - } - } - - /// Merchandise.AsProductVariant.Price - /// - /// Parent Type: `MoneyV2` - struct Price: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.MoneyV2 - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("amount", Storefront.Decimal.self), - .field("currencyCode", GraphQLEnum.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLineFragment.Merchandise.AsProductVariant.Price.self - ] - } - - /// Decimal money amount. - var amount: Storefront.Decimal { - __data["amount"] - } - - /// Currency of the money. - var currencyCode: GraphQLEnum { - __data["currencyCode"] - } - } - - /// Merchandise.AsProductVariant.Product - /// - /// Parent Type: `Product` - struct Product: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Product - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("title", String.self), - .field("vendor", String.self), - .field("featuredImage", FeaturedImage?.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLineFragment.Merchandise.AsProductVariant.Product.self - ] - } - - /// The name for the product that displays to customers. The title is used to construct the product's handle. - /// For example, if a product is titled "Black Sunglasses", then the handle is `black-sunglasses`. - var title: String { - __data["title"] - } - - /// The name of the product's vendor. - var vendor: String { - __data["vendor"] - } - - /// The featured image for the product. - /// - /// This field is functionally equivalent to `images(first: 1)`. - var featuredImage: FeaturedImage? { - __data["featuredImage"] - } - - /// Merchandise.AsProductVariant.Product.FeaturedImage - /// - /// Parent Type: `Image` - struct FeaturedImage: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Image - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("url", Storefront.URL.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLineFragment.Merchandise.AsProductVariant.Product.FeaturedImage.self - ] - } - - /// The location of the image as a URL. - /// - /// If no transform options are specified, then the original image will be preserved including any pre-applied transforms. - /// - /// All transformation options are considered "best-effort". Any transformation that the original image type doesn't support will be ignored. - /// - /// If you need multiple variations of the same image, then you can use [GraphQL aliases](https://graphql.org/learn/queries/#aliases). - var url: Storefront.URL { - __data["url"] - } - } - } - } + /// Parent Type: `MoneyV2` + struct Price: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.MoneyV2 } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("amount", Storefront.Decimal.self), + .field("currencyCode", GraphQLEnum.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLineFragment.Merchandise.AsProductVariant.Price.self + ] } + + /// Decimal money amount. + var amount: Storefront.Decimal { __data["amount"] } + /// Currency of the money. + var currencyCode: GraphQLEnum { __data["currencyCode"] } } - /// Cost + /// Merchandise.AsProductVariant.Product /// - /// Parent Type: `CartLineCost` - struct Cost: Storefront.SelectionSet { + /// Parent Type: `Product` + struct Product: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Product } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("title", String.self), + .field("vendor", String.self), + .field("featuredImage", FeaturedImage?.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLineFragment.Merchandise.AsProductVariant.Product.self + ] } + + /// The name for the product that displays to customers. The title is used to construct the product's handle. + /// For example, if a product is titled "Black Sunglasses", then the handle is `black-sunglasses`. + var title: String { __data["title"] } + /// The name of the product's vendor. + var vendor: String { __data["vendor"] } + /// The featured image for the product. + /// + /// This field is functionally equivalent to `images(first: 1)`. + var featuredImage: FeaturedImage? { __data["featuredImage"] } + + /// Merchandise.AsProductVariant.Product.FeaturedImage + /// + /// Parent Type: `Image` + struct FeaturedImage: Storefront.SelectionSet { let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartLineCost - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("totalAmount", TotalAmount.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLineFragment.Cost.self - ] - } - - /// The total cost of the merchandise line. - var totalAmount: TotalAmount { - __data["totalAmount"] - } - - /// Cost.TotalAmount + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Image } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("url", Storefront.URL.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLineFragment.Merchandise.AsProductVariant.Product.FeaturedImage.self + ] } + + /// The location of the image as a URL. /// - /// Parent Type: `MoneyV2` - struct TotalAmount: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.MoneyV2 - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("amount", Storefront.Decimal.self), - .field("currencyCode", GraphQLEnum.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartLineFragment.Cost.TotalAmount.self - ] - } - - /// Decimal money amount. - var amount: Storefront.Decimal { - __data["amount"] - } - - /// Currency of the money. - var currencyCode: GraphQLEnum { - __data["currencyCode"] - } - } + /// If no transform options are specified, then the original image will be preserved including any pre-applied transforms. + /// + /// All transformation options are considered "best-effort". Any transformation that the original image type doesn't support will be ignored. + /// + /// If you need multiple variations of the same image, then you can use [GraphQL aliases](https://graphql.org/learn/queries/#aliases). + var url: Storefront.URL { __data["url"] } + } } + } } -} + + /// Cost + /// + /// Parent Type: `CartLineCost` + struct Cost: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartLineCost } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("totalAmount", TotalAmount.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLineFragment.Cost.self + ] } + + /// The total cost of the merchandise line. + var totalAmount: TotalAmount { __data["totalAmount"] } + + /// Cost.TotalAmount + /// + /// Parent Type: `MoneyV2` + struct TotalAmount: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.MoneyV2 } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("amount", Storefront.Decimal.self), + .field("currencyCode", GraphQLEnum.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartLineFragment.Cost.TotalAmount.self + ] } + + /// Decimal money amount. + var amount: Storefront.Decimal { __data["amount"] } + /// Currency of the money. + var currencyCode: GraphQLEnum { __data["currencyCode"] } + } + } + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Fragments/CartUserErrorFragment.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Fragments/CartUserErrorFragment.graphql.swift index 9364e48f..8939655d 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Fragments/CartUserErrorFragment.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Fragments/CartUserErrorFragment.graphql.swift @@ -5,48 +5,31 @@ @_spi(Execution) @_spi(Unsafe) import ApolloAPI extension Storefront { - struct CartUserErrorFragment: Storefront.SelectionSet, Fragment { - static var fragmentDefinition: StaticString { - #"fragment CartUserErrorFragment on CartUserError { __typename code message field }"# - } - - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartUserError - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("code", GraphQLEnum?.self), - .field("message", String.self), - .field("field", [String]?.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartUserErrorFragment.self - ] - } - - /// The error code. - var code: GraphQLEnum? { - __data["code"] - } - - /// The error message. - var message: String { - __data["message"] - } - - /// The path to the input field that caused the error. - var field: [String]? { - __data["field"] - } + struct CartUserErrorFragment: Storefront.SelectionSet, Fragment { + static var fragmentDefinition: StaticString { + #"fragment CartUserErrorFragment on CartUserError { __typename code message field }"# } -} + + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartUserError } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("code", GraphQLEnum?.self), + .field("message", String.self), + .field("field", [String]?.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartUserErrorFragment.self + ] } + + /// The error code. + var code: GraphQLEnum? { __data["code"] } + /// The error message. + var message: String { __data["message"] } + /// The path to the input field that caused the error. + var field: [String]? { __data["field"] } + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Operations/Mutations/CartCreateMutation.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Operations/Mutations/CartCreateMutation.graphql.swift index 22518f5f..6cca1da6 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Operations/Mutations/CartCreateMutation.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Operations/Mutations/CartCreateMutation.graphql.swift @@ -5,240 +5,155 @@ @_spi(Execution) @_spi(Unsafe) import ApolloAPI extension Storefront { - struct CartCreateMutation: GraphQLMutation { - static let operationName: String = "CartCreate" - static let operationDocument: ApolloAPI.OperationDocument = .init( - definition: .init( - #"mutation CartCreate($input: CartInput!, $country: CountryCode!, $language: LanguageCode!) @inContext(country: $country, language: $language) { cartCreate(input: $input) { __typename cart { __typename ...CartFragment } userErrors { __typename ...CartUserErrorFragment } } }"#, - fragments: [CartDeliveryGroupFragment.self, CartFragment.self, CartLineFragment.self, CartUserErrorFragment.self] - ) - ) - - public var input: CartInput - public var country: GraphQLEnum - public var language: GraphQLEnum - - public init( - input: CartInput, - country: GraphQLEnum, - language: GraphQLEnum - ) { - self.input = input - self.country = country - self.language = language - } + struct CartCreateMutation: GraphQLMutation { + static let operationName: String = "CartCreate" + static let operationDocument: ApolloAPI.OperationDocument = .init( + definition: .init( + #"mutation CartCreate($input: CartInput!, $country: CountryCode!, $language: LanguageCode!) @inContext(country: $country, language: $language) { cartCreate(input: $input) { __typename cart { __typename ...CartFragment } userErrors { __typename ...CartUserErrorFragment } } }"#, + fragments: [CartDeliveryGroupFragment.self, CartFragment.self, CartLineFragment.self, CartUserErrorFragment.self] + )) + + public var input: CartInput + public var country: GraphQLEnum + public var language: GraphQLEnum + + public init( + input: CartInput, + country: GraphQLEnum, + language: GraphQLEnum + ) { + self.input = input + self.country = country + self.language = language + } + + @_spi(Unsafe) public var __variables: Variables? { [ + "input": input, + "country": country, + "language": language + ] } + + struct Data: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Mutation } + static var __selections: [ApolloAPI.Selection] { [ + .field("cartCreate", CartCreate?.self, arguments: ["input": .variable("input")]), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartCreateMutation.Data.self + ] } + + /// Creates a new [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart) for a buyer session. You can optionally initialize the cart with merchandise lines, discount codes, gift card codes, buyer identity for international pricing, and custom attributes. + /// + /// The returned cart includes a `checkoutUrl` that directs the buyer to complete their purchase. + var cartCreate: CartCreate? { __data["cartCreate"] } + + /// CartCreate + /// + /// Parent Type: `CartCreatePayload` + struct CartCreate: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartCreatePayload } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("cart", Cart?.self), + .field("userErrors", [UserError].self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartCreateMutation.Data.CartCreate.self + ] } + + /// The new cart. + var cart: Cart? { __data["cart"] } + /// The list of errors that occurred from executing the mutation. + var userErrors: [UserError] { __data["userErrors"] } + + /// CartCreate.Cart + /// + /// Parent Type: `Cart` + struct Cart: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Cart } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .fragment(CartFragment.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartCreateMutation.Data.CartCreate.Cart.self, + CartFragment.self + ] } + + /// A globally-unique ID. + var id: Storefront.ID { __data["id"] } + /// The URL of the checkout for the cart. + var checkoutUrl: Storefront.URL { __data["checkoutUrl"] } + /// The total number of items in the cart. + var totalQuantity: Int { __data["totalQuantity"] } + /// Information about the buyer that's interacting with the cart. + var buyerIdentity: BuyerIdentity { __data["buyerIdentity"] } + /// The delivery groups available for the cart, based on the buyer identity default + /// delivery address preference or the default address of the logged-in customer. + var deliveryGroups: DeliveryGroups { __data["deliveryGroups"] } + /// A list of lines containing information about the items the customer intends to purchase. + var lines: Lines { __data["lines"] } + /// The estimated costs that the buyer will pay at checkout. The costs are subject to change and changes will be reflected at checkout. The `cost` field uses the `buyerIdentity` field to determine [international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing). + var cost: Cost { __data["cost"] } + + struct Fragments: FragmentContainer { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + var cartFragment: CartFragment { _toFragment() } + } - @_spi(Unsafe) public var __variables: Variables? { - [ - "input": input, - "country": country, - "language": language - ] + typealias BuyerIdentity = CartFragment.BuyerIdentity + + typealias DeliveryGroups = CartFragment.DeliveryGroups + + typealias Lines = CartFragment.Lines + + typealias Cost = CartFragment.Cost } - struct Data: Storefront.SelectionSet { + /// CartCreate.UserError + /// + /// Parent Type: `CartUserError` + struct UserError: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.CartUserError } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .fragment(CartUserErrorFragment.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + CartCreateMutation.Data.CartCreate.UserError.self, + CartUserErrorFragment.self + ] } + + /// The error code. + var code: GraphQLEnum? { __data["code"] } + /// The error message. + var message: String { __data["message"] } + /// The path to the input field that caused the error. + var field: [String]? { __data["field"] } + + struct Fragments: FragmentContainer { let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Mutation - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("cartCreate", CartCreate?.self, arguments: ["input": .variable("input")]) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartCreateMutation.Data.self - ] - } - - /// Creates a new [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart) for a buyer session. You can optionally initialize the cart with merchandise lines, discount codes, gift card codes, buyer identity for international pricing, and custom attributes. - /// - /// The returned cart includes a `checkoutUrl` that directs the buyer to complete their purchase. - var cartCreate: CartCreate? { - __data["cartCreate"] - } - - /// CartCreate - /// - /// Parent Type: `CartCreatePayload` - struct CartCreate: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartCreatePayload - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("cart", Cart?.self), - .field("userErrors", [UserError].self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartCreateMutation.Data.CartCreate.self - ] - } - - /// The new cart. - var cart: Cart? { - __data["cart"] - } - - /// The list of errors that occurred from executing the mutation. - var userErrors: [UserError] { - __data["userErrors"] - } - - /// CartCreate.Cart - /// - /// Parent Type: `Cart` - struct Cart: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Cart - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .fragment(CartFragment.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartCreateMutation.Data.CartCreate.Cart.self, - CartFragment.self - ] - } - - /// A globally-unique ID. - var id: Storefront.ID { - __data["id"] - } - - /// The URL of the checkout for the cart. - var checkoutUrl: Storefront.URL { - __data["checkoutUrl"] - } - - /// The total number of items in the cart. - var totalQuantity: Int { - __data["totalQuantity"] - } - - /// Information about the buyer that's interacting with the cart. - var buyerIdentity: BuyerIdentity { - __data["buyerIdentity"] - } - - /// The delivery groups available for the cart, based on the buyer identity default - /// delivery address preference or the default address of the logged-in customer. - var deliveryGroups: DeliveryGroups { - __data["deliveryGroups"] - } - - /// A list of lines containing information about the items the customer intends to purchase. - var lines: Lines { - __data["lines"] - } - - /// The estimated costs that the buyer will pay at checkout. The costs are subject to change and changes will be reflected at checkout. The `cost` field uses the `buyerIdentity` field to determine [international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing). - var cost: Cost { - __data["cost"] - } - - struct Fragments: FragmentContainer { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - var cartFragment: CartFragment { - _toFragment() - } - } - - typealias BuyerIdentity = CartFragment.BuyerIdentity - - typealias DeliveryGroups = CartFragment.DeliveryGroups - - typealias Lines = CartFragment.Lines - - typealias Cost = CartFragment.Cost - } - - /// CartCreate.UserError - /// - /// Parent Type: `CartUserError` - struct UserError: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.CartUserError - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .fragment(CartUserErrorFragment.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - CartCreateMutation.Data.CartCreate.UserError.self, - CartUserErrorFragment.self - ] - } - - /// The error code. - var code: GraphQLEnum? { - __data["code"] - } - - /// The error message. - var message: String { - __data["message"] - } - - /// The path to the input field that caused the error. - var field: [String]? { - __data["field"] - } - - struct Fragments: FragmentContainer { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - var cartUserErrorFragment: CartUserErrorFragment { - _toFragment() - } - } - } - } + init(_dataDict: DataDict) { __data = _dataDict } + + var cartUserErrorFragment: CartUserErrorFragment { _toFragment() } + } } + } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Operations/Queries/GetCartQuery.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Operations/Queries/GetCartQuery.graphql.swift index 9384386f..f3d99003 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Operations/Queries/GetCartQuery.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Operations/Queries/GetCartQuery.graphql.swift @@ -5,148 +5,100 @@ @_spi(Execution) @_spi(Unsafe) import ApolloAPI extension Storefront { - struct GetCartQuery: GraphQLQuery { - static let operationName: String = "GetCart" - static let operationDocument: ApolloAPI.OperationDocument = .init( - definition: .init( - #"query GetCart($id: ID!, $country: CountryCode!, $language: LanguageCode!) @inContext(country: $country, language: $language) { cart(id: $id) { __typename ...CartFragment } }"#, - fragments: [CartDeliveryGroupFragment.self, CartFragment.self, CartLineFragment.self] - ) - ) - - public var id: ID - public var country: GraphQLEnum - public var language: GraphQLEnum - - public init( - id: ID, - country: GraphQLEnum, - language: GraphQLEnum - ) { - self.id = id - self.country = country - self.language = language - } + struct GetCartQuery: GraphQLQuery { + static let operationName: String = "GetCart" + static let operationDocument: ApolloAPI.OperationDocument = .init( + definition: .init( + #"query GetCart($id: ID!, $country: CountryCode!, $language: LanguageCode!) @inContext(country: $country, language: $language) { cart(id: $id) { __typename ...CartFragment } }"#, + fragments: [CartDeliveryGroupFragment.self, CartFragment.self, CartLineFragment.self] + )) + + public var id: ID + public var country: GraphQLEnum + public var language: GraphQLEnum + + public init( + id: ID, + country: GraphQLEnum, + language: GraphQLEnum + ) { + self.id = id + self.country = country + self.language = language + } - @_spi(Unsafe) public var __variables: Variables? { - [ - "id": id, - "country": country, - "language": language - ] + @_spi(Unsafe) public var __variables: Variables? { [ + "id": id, + "country": country, + "language": language + ] } + + struct Data: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.QueryRoot } + static var __selections: [ApolloAPI.Selection] { [ + .field("cart", Cart?.self, arguments: ["id": .variable("id")]), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + GetCartQuery.Data.self + ] } + + /// Returns a [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart) by its ID. The cart contains the merchandise lines a buyer intends to purchase, along with estimated costs, applied discounts, gift cards, and delivery options. + /// + /// Use the [`checkoutUrl`](https://shopify.dev/docs/api/storefront/latest/queries/cart#returns-Cart.fields.checkoutUrl) field to redirect buyers to Shopify's web checkout when they're ready to complete their purchase. For more information, refer to [Manage a cart with the Storefront API](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/cart/manage). + var cart: Cart? { __data["cart"] } + + /// Cart + /// + /// Parent Type: `Cart` + struct Cart: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Cart } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .fragment(CartFragment.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + GetCartQuery.Data.Cart.self, + CartFragment.self + ] } + + /// A globally-unique ID. + var id: Storefront.ID { __data["id"] } + /// The URL of the checkout for the cart. + var checkoutUrl: Storefront.URL { __data["checkoutUrl"] } + /// The total number of items in the cart. + var totalQuantity: Int { __data["totalQuantity"] } + /// Information about the buyer that's interacting with the cart. + var buyerIdentity: BuyerIdentity { __data["buyerIdentity"] } + /// The delivery groups available for the cart, based on the buyer identity default + /// delivery address preference or the default address of the logged-in customer. + var deliveryGroups: DeliveryGroups { __data["deliveryGroups"] } + /// A list of lines containing information about the items the customer intends to purchase. + var lines: Lines { __data["lines"] } + /// The estimated costs that the buyer will pay at checkout. The costs are subject to change and changes will be reflected at checkout. The `cost` field uses the `buyerIdentity` field to determine [international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing). + var cost: Cost { __data["cost"] } + + struct Fragments: FragmentContainer { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + var cartFragment: CartFragment { _toFragment() } } - struct Data: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.QueryRoot - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("cart", Cart?.self, arguments: ["id": .variable("id")]) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - GetCartQuery.Data.self - ] - } - - /// Returns a [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart) by its ID. The cart contains the merchandise lines a buyer intends to purchase, along with estimated costs, applied discounts, gift cards, and delivery options. - /// - /// Use the [`checkoutUrl`](https://shopify.dev/docs/api/storefront/latest/queries/cart#returns-Cart.fields.checkoutUrl) field to redirect buyers to Shopify's web checkout when they're ready to complete their purchase. For more information, refer to [Manage a cart with the Storefront API](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/cart/manage). - var cart: Cart? { - __data["cart"] - } - - /// Cart - /// - /// Parent Type: `Cart` - struct Cart: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Cart - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .fragment(CartFragment.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - GetCartQuery.Data.Cart.self, - CartFragment.self - ] - } - - /// A globally-unique ID. - var id: Storefront.ID { - __data["id"] - } - - /// The URL of the checkout for the cart. - var checkoutUrl: Storefront.URL { - __data["checkoutUrl"] - } - - /// The total number of items in the cart. - var totalQuantity: Int { - __data["totalQuantity"] - } - - /// Information about the buyer that's interacting with the cart. - var buyerIdentity: BuyerIdentity { - __data["buyerIdentity"] - } - - /// The delivery groups available for the cart, based on the buyer identity default - /// delivery address preference or the default address of the logged-in customer. - var deliveryGroups: DeliveryGroups { - __data["deliveryGroups"] - } - - /// A list of lines containing information about the items the customer intends to purchase. - var lines: Lines { - __data["lines"] - } - - /// The estimated costs that the buyer will pay at checkout. The costs are subject to change and changes will be reflected at checkout. The `cost` field uses the `buyerIdentity` field to determine [international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing). - var cost: Cost { - __data["cost"] - } - - struct Fragments: FragmentContainer { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - var cartFragment: CartFragment { - _toFragment() - } - } - - typealias BuyerIdentity = CartFragment.BuyerIdentity - - typealias DeliveryGroups = CartFragment.DeliveryGroups - - typealias Lines = CartFragment.Lines - - typealias Cost = CartFragment.Cost - } - } + typealias BuyerIdentity = CartFragment.BuyerIdentity + + typealias DeliveryGroups = CartFragment.DeliveryGroups + + typealias Lines = CartFragment.Lines + + typealias Cost = CartFragment.Cost + } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Operations/Queries/GetProductsQuery.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Operations/Queries/GetProductsQuery.graphql.swift index 2ce04c88..bba41723 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Operations/Queries/GetProductsQuery.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Operations/Queries/GetProductsQuery.graphql.swift @@ -5,351 +5,229 @@ @_spi(Execution) @_spi(Unsafe) import ApolloAPI extension Storefront { - struct GetProductsQuery: GraphQLQuery { - static let operationName: String = "GetProducts" - static let operationDocument: ApolloAPI.OperationDocument = .init( - definition: .init( - #"query GetProducts($first: Int = 10, $country: CountryCode!, $language: LanguageCode!) @inContext(country: $country, language: $language) { products(first: $first) { __typename nodes { __typename id title featuredImage { __typename url } variants(first: 10) { __typename nodes { __typename id title requiresShipping image { __typename url } price { __typename amount currencyCode } } } } } }"# - ) - ) - - public var first: GraphQLNullable - public var country: GraphQLEnum - public var language: GraphQLEnum - - public init( - first: GraphQLNullable = 10, - country: GraphQLEnum, - language: GraphQLEnum - ) { - self.first = first - self.country = country - self.language = language - } - - @_spi(Unsafe) public var __variables: Variables? { - [ - "first": first, - "country": country, - "language": language - ] - } + struct GetProductsQuery: GraphQLQuery { + static let operationName: String = "GetProducts" + static let operationDocument: ApolloAPI.OperationDocument = .init( + definition: .init( + #"query GetProducts($first: Int = 10, $country: CountryCode!, $language: LanguageCode!) @inContext(country: $country, language: $language) { products(first: $first) { __typename nodes { __typename id title featuredImage { __typename url } variants(first: 10) { __typename nodes { __typename id title requiresShipping image { __typename url } price { __typename amount currencyCode } } } } } }"# + )) + + public var first: GraphQLNullable + public var country: GraphQLEnum + public var language: GraphQLEnum + + public init( + first: GraphQLNullable = 10, + country: GraphQLEnum, + language: GraphQLEnum + ) { + self.first = first + self.country = country + self.language = language + } - struct Data: Storefront.SelectionSet { + @_spi(Unsafe) public var __variables: Variables? { [ + "first": first, + "country": country, + "language": language + ] } + + struct Data: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.QueryRoot } + static var __selections: [ApolloAPI.Selection] { [ + .field("products", Products.self, arguments: ["first": .variable("first")]), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + GetProductsQuery.Data.self + ] } + + /// Returns a paginated list of the shop's [products](https://shopify.dev/docs/api/storefront/current/objects/Product). + /// + /// For full-text storefront search, use the [`search`](https://shopify.dev/docs/api/storefront/current/queries/search) query instead. + var products: Products { __data["products"] } + + /// Products + /// + /// Parent Type: `ProductConnection` + struct Products: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.ProductConnection } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("nodes", [Node].self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + GetProductsQuery.Data.Products.self + ] } + + /// A list of the nodes contained in ProductEdge. + var nodes: [Node] { __data["nodes"] } + + /// Products.Node + /// + /// Parent Type: `Product` + struct Node: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Product } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("id", Storefront.ID.self), + .field("title", String.self), + .field("featuredImage", FeaturedImage?.self), + .field("variants", Variants.self, arguments: ["first": 10]), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + GetProductsQuery.Data.Products.Node.self + ] } + + /// A globally-unique ID. + var id: Storefront.ID { __data["id"] } + /// The name for the product that displays to customers. The title is used to construct the product's handle. + /// For example, if a product is titled "Black Sunglasses", then the handle is `black-sunglasses`. + var title: String { __data["title"] } + /// The featured image for the product. + /// + /// This field is functionally equivalent to `images(first: 1)`. + var featuredImage: FeaturedImage? { __data["featuredImage"] } + /// A list of [variants](/docs/api/storefront/latest/objects/ProductVariant) that are associated with the product. + var variants: Variants { __data["variants"] } + + /// Products.Node.FeaturedImage + /// + /// Parent Type: `Image` + struct FeaturedImage: Storefront.SelectionSet { let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.QueryRoot - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("products", Products.self, arguments: ["first": .variable("first")]) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - GetProductsQuery.Data.self - ] - } - - /// Returns a paginated list of the shop's [products](https://shopify.dev/docs/api/storefront/current/objects/Product). + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Image } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("url", Storefront.URL.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + GetProductsQuery.Data.Products.Node.FeaturedImage.self + ] } + + /// The location of the image as a URL. /// - /// For full-text storefront search, use the [`search`](https://shopify.dev/docs/api/storefront/current/queries/search) query instead. - var products: Products { - __data["products"] - } - - /// Products + /// If no transform options are specified, then the original image will be preserved including any pre-applied transforms. /// - /// Parent Type: `ProductConnection` - struct Products: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.ProductConnection - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("nodes", [Node].self) - ] - } + /// All transformation options are considered "best-effort". Any transformation that the original image type doesn't support will be ignored. + /// + /// If you need multiple variations of the same image, then you can use [GraphQL aliases](https://graphql.org/learn/queries/#aliases). + var url: Storefront.URL { __data["url"] } + } + + /// Products.Node.Variants + /// + /// Parent Type: `ProductVariantConnection` + struct Variants: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - GetProductsQuery.Data.Products.self - ] - } + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.ProductVariantConnection } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("nodes", [Node].self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + GetProductsQuery.Data.Products.Node.Variants.self + ] } - /// A list of the nodes contained in ProductEdge. - var nodes: [Node] { - __data["nodes"] - } + /// A list of the nodes contained in ProductVariantEdge. + var nodes: [Node] { __data["nodes"] } - /// Products.Node + /// Products.Node.Variants.Node + /// + /// Parent Type: `ProductVariant` + struct Node: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.ProductVariant } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("id", Storefront.ID.self), + .field("title", String.self), + .field("requiresShipping", Bool.self), + .field("image", Image?.self), + .field("price", Price.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + GetProductsQuery.Data.Products.Node.Variants.Node.self + ] } + + /// A globally-unique ID. + var id: Storefront.ID { __data["id"] } + /// The product variant’s title. + var title: String { __data["title"] } + /// Whether a customer needs to provide a shipping address when placing an order for the product variant. + var requiresShipping: Bool { __data["requiresShipping"] } + /// Image associated with the product variant. This field falls back to the product image if no image is available. + var image: Image? { __data["image"] } + /// The product variant’s price. + var price: Price { __data["price"] } + + /// Products.Node.Variants.Node.Image + /// + /// Parent Type: `Image` + struct Image: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.Image } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("url", Storefront.URL.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + GetProductsQuery.Data.Products.Node.Variants.Node.Image.self + ] } + + /// The location of the image as a URL. /// - /// Parent Type: `Product` - struct Node: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Product - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("id", Storefront.ID.self), - .field("title", String.self), - .field("featuredImage", FeaturedImage?.self), - .field("variants", Variants.self, arguments: ["first": 10]) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - GetProductsQuery.Data.Products.Node.self - ] - } - - /// A globally-unique ID. - var id: Storefront.ID { - __data["id"] - } - - /// The name for the product that displays to customers. The title is used to construct the product's handle. - /// For example, if a product is titled "Black Sunglasses", then the handle is `black-sunglasses`. - var title: String { - __data["title"] - } - - /// The featured image for the product. - /// - /// This field is functionally equivalent to `images(first: 1)`. - var featuredImage: FeaturedImage? { - __data["featuredImage"] - } - - /// A list of [variants](/docs/api/storefront/latest/objects/ProductVariant) that are associated with the product. - var variants: Variants { - __data["variants"] - } - - /// Products.Node.FeaturedImage - /// - /// Parent Type: `Image` - struct FeaturedImage: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Image - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("url", Storefront.URL.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - GetProductsQuery.Data.Products.Node.FeaturedImage.self - ] - } - - /// The location of the image as a URL. - /// - /// If no transform options are specified, then the original image will be preserved including any pre-applied transforms. - /// - /// All transformation options are considered "best-effort". Any transformation that the original image type doesn't support will be ignored. - /// - /// If you need multiple variations of the same image, then you can use [GraphQL aliases](https://graphql.org/learn/queries/#aliases). - var url: Storefront.URL { - __data["url"] - } - } - - /// Products.Node.Variants - /// - /// Parent Type: `ProductVariantConnection` - struct Variants: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.ProductVariantConnection - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("nodes", [Node].self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - GetProductsQuery.Data.Products.Node.Variants.self - ] - } - - /// A list of the nodes contained in ProductVariantEdge. - var nodes: [Node] { - __data["nodes"] - } - - /// Products.Node.Variants.Node - /// - /// Parent Type: `ProductVariant` - struct Node: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.ProductVariant - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("id", Storefront.ID.self), - .field("title", String.self), - .field("requiresShipping", Bool.self), - .field("image", Image?.self), - .field("price", Price.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - GetProductsQuery.Data.Products.Node.Variants.Node.self - ] - } - - /// A globally-unique ID. - var id: Storefront.ID { - __data["id"] - } - - /// The product variant’s title. - var title: String { - __data["title"] - } - - /// Whether a customer needs to provide a shipping address when placing an order for the product variant. - var requiresShipping: Bool { - __data["requiresShipping"] - } - - /// Image associated with the product variant. This field falls back to the product image if no image is available. - var image: Image? { - __data["image"] - } - - /// The product variant’s price. - var price: Price { - __data["price"] - } - - /// Products.Node.Variants.Node.Image - /// - /// Parent Type: `Image` - struct Image: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.Image - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("url", Storefront.URL.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - GetProductsQuery.Data.Products.Node.Variants.Node.Image.self - ] - } - - /// The location of the image as a URL. - /// - /// If no transform options are specified, then the original image will be preserved including any pre-applied transforms. - /// - /// All transformation options are considered "best-effort". Any transformation that the original image type doesn't support will be ignored. - /// - /// If you need multiple variations of the same image, then you can use [GraphQL aliases](https://graphql.org/learn/queries/#aliases). - var url: Storefront.URL { - __data["url"] - } - } - - /// Products.Node.Variants.Node.Price - /// - /// Parent Type: `MoneyV2` - struct Price: Storefront.SelectionSet { - let __data: DataDict - init(_dataDict: DataDict) { - __data = _dataDict - } - - static var __parentType: any ApolloAPI.ParentType { - Storefront.Objects.MoneyV2 - } - - static var __selections: [ApolloAPI.Selection] { - [ - .field("__typename", String.self), - .field("amount", Storefront.Decimal.self), - .field("currencyCode", GraphQLEnum.self) - ] - } - - static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { - [ - GetProductsQuery.Data.Products.Node.Variants.Node.Price.self - ] - } - - /// Decimal money amount. - var amount: Storefront.Decimal { - __data["amount"] - } - - /// Currency of the money. - var currencyCode: GraphQLEnum { - __data["currencyCode"] - } - } - } - } - } + /// If no transform options are specified, then the original image will be preserved including any pre-applied transforms. + /// + /// All transformation options are considered "best-effort". Any transformation that the original image type doesn't support will be ignored. + /// + /// If you need multiple variations of the same image, then you can use [GraphQL aliases](https://graphql.org/learn/queries/#aliases). + var url: Storefront.URL { __data["url"] } + } + + /// Products.Node.Variants.Node.Price + /// + /// Parent Type: `MoneyV2` + struct Price: Storefront.SelectionSet { + let __data: DataDict + init(_dataDict: DataDict) { __data = _dataDict } + + static var __parentType: any ApolloAPI.ParentType { Storefront.Objects.MoneyV2 } + static var __selections: [ApolloAPI.Selection] { [ + .field("__typename", String.self), + .field("amount", Storefront.Decimal.self), + .field("currencyCode", GraphQLEnum.self), + ] } + static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [ + GetProductsQuery.Data.Products.Node.Variants.Node.Price.self + ] } + + /// Decimal money amount. + var amount: Storefront.Decimal { __data["amount"] } + /// Currency of the money. + var currencyCode: GraphQLEnum { __data["currencyCode"] } + } } + } } + } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/CartDeliveryGroupType.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/CartDeliveryGroupType.graphql.swift index a6e40550..60da42ae 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/CartDeliveryGroupType.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/CartDeliveryGroupType.graphql.swift @@ -4,12 +4,13 @@ @_spi(Internal) import ApolloAPI extension Storefront { - /// Defines what type of merchandise is in the delivery group. - enum CartDeliveryGroupType: String, EnumType { - /// The delivery group only contains subscription merchandise. - case subscription = "SUBSCRIPTION" - /// The delivery group only contains merchandise that is either a one time purchase or a first delivery of - /// subscription merchandise. - case oneTimePurchase = "ONE_TIME_PURCHASE" - } -} + /// Defines what type of merchandise is in the delivery group. + enum CartDeliveryGroupType: String, EnumType { + /// The delivery group only contains subscription merchandise. + case subscription = "SUBSCRIPTION" + /// The delivery group only contains merchandise that is either a one time purchase or a first delivery of + /// subscription merchandise. + case oneTimePurchase = "ONE_TIME_PURCHASE" + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/CartErrorCode.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/CartErrorCode.graphql.swift index 20642961..9dfbc862 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/CartErrorCode.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/CartErrorCode.graphql.swift @@ -4,107 +4,124 @@ @_spi(Internal) import ApolloAPI extension Storefront { - /// Error codes returned by [`CartUserError`](https://shopify.dev/docs/api/storefront/current/objects/CartUserError) during cart mutations. Covers validation failures for addresses, quantities, delivery options, merchandise lines, discount codes, and metafields. - enum CartErrorCode: String, EnumType { - /// The input value is invalid. - case invalid = "INVALID" - /// The input value should be less than the maximum value allowed. - case lessThan = "LESS_THAN" - /// Merchandise line was not found in cart. - case invalidMerchandiseLine = "INVALID_MERCHANDISE_LINE" - /// Missing discount code. - case missingDiscountCode = "MISSING_DISCOUNT_CODE" - /// Missing note. - case missingNote = "MISSING_NOTE" - /// The note length must be below the specified maximum. - case noteTooLong = "NOTE_TOO_LONG" - /// Delivery group was not found in cart. - case invalidDeliveryGroup = "INVALID_DELIVERY_GROUP" - /// Delivery option was not valid. - case invalidDeliveryOption = "INVALID_DELIVERY_OPTION" - /// The delivery group is in a pending state. - case pendingDeliveryGroups = "PENDING_DELIVERY_GROUPS" - /// The payment wasn't valid. - case invalidPayment = "INVALID_PAYMENT" - /// The payment method is not supported. - case paymentMethodNotSupported = "PAYMENT_METHOD_NOT_SUPPORTED" - /// The payment method is not applicable. - case paymentMethodNotApplicable = "PAYMENT_METHOD_NOT_APPLICABLE" - /// The payment is invalid. Deferred payment is required. - case invalidPaymentDeferredPaymentRequired = "INVALID_PAYMENT_DEFERRED_PAYMENT_REQUIRED" - /// Cannot update payment on an empty cart - case invalidPaymentEmptyCart = "INVALID_PAYMENT_EMPTY_CART" - /// Validation failed. - case validationCustom = "VALIDATION_CUSTOM" - /// The metafields were not valid. - case invalidMetafields = "INVALID_METAFIELDS" - /// The customer access token is required when setting a company location. - case missingCustomerAccessToken = "MISSING_CUSTOMER_ACCESS_TOKEN" - /// Company location not found or not allowed. - case invalidCompanyLocation = "INVALID_COMPANY_LOCATION" - /// The quantity must be a multiple of the specified increment. - case invalidIncrement = "INVALID_INCREMENT" - /// The quantity must be above the specified minimum for the item. - case minimumNotMet = "MINIMUM_NOT_MET" - /// The quantity must be below the specified maximum for the item. - case maximumExceeded = "MAXIMUM_EXCEEDED" - /// Too many delivery addresses on Cart. - case tooManyDeliveryAddresses = "TOO_MANY_DELIVERY_ADDRESSES" - /// Only one delivery address can be selected. - case onlyOneDeliveryAddressCanBeSelected = "ONLY_ONE_DELIVERY_ADDRESS_CAN_BE_SELECTED" - /// The delivery address was not found. - case invalidDeliveryAddressId = "INVALID_DELIVERY_ADDRESS_ID" - /// Buyer cannot purchase for company location. - case buyerCannotPurchaseForCompanyLocation = "BUYER_CANNOT_PURCHASE_FOR_COMPANY_LOCATION" - /// The specified address field is required. - case addressFieldIsRequired = "ADDRESS_FIELD_IS_REQUIRED" - /// The specified address field is too long. - case addressFieldIsTooLong = "ADDRESS_FIELD_IS_TOO_LONG" - /// The specified address field contains emojis. - case addressFieldContainsEmojis = "ADDRESS_FIELD_CONTAINS_EMOJIS" - /// The specified address field contains HTML tags. - case addressFieldContainsHtmlTags = "ADDRESS_FIELD_CONTAINS_HTML_TAGS" - /// The specified address field contains a URL. - case addressFieldContainsUrl = "ADDRESS_FIELD_CONTAINS_URL" - /// The specified address field does not match the expected pattern. - case addressFieldDoesNotMatchExpectedPattern = "ADDRESS_FIELD_DOES_NOT_MATCH_EXPECTED_PATTERN" - /// The given zip code is invalid for the provided province. - case invalidZipCodeForProvince = "INVALID_ZIP_CODE_FOR_PROVINCE" - /// The given zip code is invalid for the provided country. - case invalidZipCodeForCountry = "INVALID_ZIP_CODE_FOR_COUNTRY" - /// The given zip code is unsupported. - case zipCodeNotSupported = "ZIP_CODE_NOT_SUPPORTED" - /// The given province cannot be found. - case provinceNotFound = "PROVINCE_NOT_FOUND" - /// A general error occurred during address validation. - case unspecifiedAddressError = "UNSPECIFIED_ADDRESS_ERROR" - /// Credit card has expired. - case paymentsCreditCardBaseExpired = "PAYMENTS_CREDIT_CARD_BASE_EXPIRED" - /// Credit card gateway is not supported. - case paymentsCreditCardBaseGatewayNotSupported = "PAYMENTS_CREDIT_CARD_BASE_GATEWAY_NOT_SUPPORTED" - /// Credit card error. - case paymentsCreditCardGeneric = "PAYMENTS_CREDIT_CARD_GENERIC" - /// Credit card month is invalid. - case paymentsCreditCardMonthInclusion = "PAYMENTS_CREDIT_CARD_MONTH_INCLUSION" - /// Credit card number is invalid. - case paymentsCreditCardNumberInvalid = "PAYMENTS_CREDIT_CARD_NUMBER_INVALID" - /// Credit card number format is invalid. - case paymentsCreditCardNumberInvalidFormat = "PAYMENTS_CREDIT_CARD_NUMBER_INVALID_FORMAT" - /// Credit card verification value is blank. - case paymentsCreditCardVerificationValueBlank = "PAYMENTS_CREDIT_CARD_VERIFICATION_VALUE_BLANK" - /// Credit card verification value is invalid for card type. - case paymentsCreditCardVerificationValueInvalidForCardType = "PAYMENTS_CREDIT_CARD_VERIFICATION_VALUE_INVALID_FOR_CARD_TYPE" - /// Credit card has expired. - case paymentsCreditCardYearExpired = "PAYMENTS_CREDIT_CARD_YEAR_EXPIRED" - /// Credit card expiry year is invalid. - case paymentsCreditCardYearInvalidExpiryYear = "PAYMENTS_CREDIT_CARD_YEAR_INVALID_EXPIRY_YEAR" - /// Variant can only be purchased with a selling plan. - case variantRequiresSellingPlan = "VARIANT_REQUIRES_SELLING_PLAN" - /// Selling plan is not applicable. - case sellingPlanNotApplicable = "SELLING_PLAN_NOT_APPLICABLE" - /// An error occurred while saving the cart. - case serviceUnavailable = "SERVICE_UNAVAILABLE" - /// The cart is too large to save. - case cartTooLarge = "CART_TOO_LARGE" - } -} + /// Error codes returned by [`CartUserError`](https://shopify.dev/docs/api/storefront/current/objects/CartUserError) during cart mutations. Covers validation failures for addresses, quantities, delivery options, merchandise lines, discount codes, and metafields. + enum CartErrorCode: String, EnumType { + /// The input value is invalid. + case invalid = "INVALID" + /// The input value should be less than the maximum value allowed. + case lessThan = "LESS_THAN" + /// Merchandise line was not found in cart. + case invalidMerchandiseLine = "INVALID_MERCHANDISE_LINE" + /// Item cannot be purchased as configured. + case merchandiseNotApplicable = "MERCHANDISE_NOT_APPLICABLE" + /// An error occurred while processing cart transformations. + case merchandiseLineTransformersRunError = "MERCHANDISE_LINE_TRANSFORMERS_RUN_ERROR" + /// Missing discount code. + case missingDiscountCode = "MISSING_DISCOUNT_CODE" + /// Missing note. + case missingNote = "MISSING_NOTE" + /// The note length must be below the specified maximum. + case noteTooLong = "NOTE_TOO_LONG" + /// Delivery group was not found in cart. + case invalidDeliveryGroup = "INVALID_DELIVERY_GROUP" + /// Delivery option was not valid. + case invalidDeliveryOption = "INVALID_DELIVERY_OPTION" + /// The delivery group is in a pending state. + case pendingDeliveryGroups = "PENDING_DELIVERY_GROUPS" + /// The payment wasn't valid. + case invalidPayment = "INVALID_PAYMENT" + /// The payment method is not supported. + case paymentMethodNotSupported = "PAYMENT_METHOD_NOT_SUPPORTED" + /// The payment method is not applicable. + case paymentMethodNotApplicable = "PAYMENT_METHOD_NOT_APPLICABLE" + /// The payment is invalid. Deferred payment is required. + case invalidPaymentDeferredPaymentRequired = "INVALID_PAYMENT_DEFERRED_PAYMENT_REQUIRED" + /// Cannot update payment on an empty cart + case invalidPaymentEmptyCart = "INVALID_PAYMENT_EMPTY_CART" + /// Validation failed. + case validationCustom = "VALIDATION_CUSTOM" + /// The metafields were not valid. + case invalidMetafields = "INVALID_METAFIELDS" + /// The customer access token is required when setting a company location. + case missingCustomerAccessToken = "MISSING_CUSTOMER_ACCESS_TOKEN" + /// Company location not found or not allowed. + case invalidCompanyLocation = "INVALID_COMPANY_LOCATION" + /// The quantity must be a multiple of the specified increment. + case invalidIncrement = "INVALID_INCREMENT" + /// The quantity must be above the specified minimum for the item. + case minimumNotMet = "MINIMUM_NOT_MET" + /// The quantity must be below the specified maximum for the item. + case maximumExceeded = "MAXIMUM_EXCEEDED" + /// Too many delivery addresses on Cart. + case tooManyDeliveryAddresses = "TOO_MANY_DELIVERY_ADDRESSES" + /// Only one delivery address can be selected. + case onlyOneDeliveryAddressCanBeSelected = "ONLY_ONE_DELIVERY_ADDRESS_CAN_BE_SELECTED" + /// The delivery address was not found. + case invalidDeliveryAddressId = "INVALID_DELIVERY_ADDRESS_ID" + /// Buyer cannot purchase for company location. + case buyerCannotPurchaseForCompanyLocation = "BUYER_CANNOT_PURCHASE_FOR_COMPANY_LOCATION" + /// Bundles and addons cannot be mixed. + case bundlesAndAddonsCannotBeMixed = "BUNDLES_AND_ADDONS_CANNOT_BE_MIXED" + /// Cannot reference existing parent lines by variant_id. + case parentLineInvalidReference = "PARENT_LINE_INVALID_REFERENCE" + /// Parent line not found. + case parentLineNotFound = "PARENT_LINE_NOT_FOUND" + /// Parent line nesting is too deep or circular. + case parentLineNestingTooDeep = "PARENT_LINE_NESTING_TOO_DEEP" + /// Nested cartlines are blocked due to an incompatibility. + case parentLineOperationBlocked = "PARENT_LINE_OPERATION_BLOCKED" + /// The specified gift card recipient is invalid. + case giftCardRecipientInvalid = "GIFT_CARD_RECIPIENT_INVALID" + /// The specified address field is required. + case addressFieldIsRequired = "ADDRESS_FIELD_IS_REQUIRED" + /// The specified address field is too long. + case addressFieldIsTooLong = "ADDRESS_FIELD_IS_TOO_LONG" + /// The specified address field contains emojis. + case addressFieldContainsEmojis = "ADDRESS_FIELD_CONTAINS_EMOJIS" + /// The specified address field contains HTML tags. + case addressFieldContainsHtmlTags = "ADDRESS_FIELD_CONTAINS_HTML_TAGS" + /// The specified address field contains a URL. + case addressFieldContainsUrl = "ADDRESS_FIELD_CONTAINS_URL" + /// The specified address field does not match the expected pattern. + case addressFieldDoesNotMatchExpectedPattern = "ADDRESS_FIELD_DOES_NOT_MATCH_EXPECTED_PATTERN" + /// The given zip code is invalid for the provided province. + case invalidZipCodeForProvince = "INVALID_ZIP_CODE_FOR_PROVINCE" + /// The given zip code is invalid for the provided country. + case invalidZipCodeForCountry = "INVALID_ZIP_CODE_FOR_COUNTRY" + /// The given zip code is unsupported. + case zipCodeNotSupported = "ZIP_CODE_NOT_SUPPORTED" + /// The given province cannot be found. + case provinceNotFound = "PROVINCE_NOT_FOUND" + /// A general error occurred during address validation. + case unspecifiedAddressError = "UNSPECIFIED_ADDRESS_ERROR" + /// Credit card has expired. + case paymentsCreditCardBaseExpired = "PAYMENTS_CREDIT_CARD_BASE_EXPIRED" + /// Credit card gateway is not supported. + case paymentsCreditCardBaseGatewayNotSupported = "PAYMENTS_CREDIT_CARD_BASE_GATEWAY_NOT_SUPPORTED" + /// Credit card error. + case paymentsCreditCardGeneric = "PAYMENTS_CREDIT_CARD_GENERIC" + /// Credit card month is invalid. + case paymentsCreditCardMonthInclusion = "PAYMENTS_CREDIT_CARD_MONTH_INCLUSION" + /// Credit card number is invalid. + case paymentsCreditCardNumberInvalid = "PAYMENTS_CREDIT_CARD_NUMBER_INVALID" + /// Credit card number format is invalid. + case paymentsCreditCardNumberInvalidFormat = "PAYMENTS_CREDIT_CARD_NUMBER_INVALID_FORMAT" + /// Credit card verification value is blank. + case paymentsCreditCardVerificationValueBlank = "PAYMENTS_CREDIT_CARD_VERIFICATION_VALUE_BLANK" + /// Credit card verification value is invalid for card type. + case paymentsCreditCardVerificationValueInvalidForCardType = "PAYMENTS_CREDIT_CARD_VERIFICATION_VALUE_INVALID_FOR_CARD_TYPE" + /// Credit card has expired. + case paymentsCreditCardYearExpired = "PAYMENTS_CREDIT_CARD_YEAR_EXPIRED" + /// Credit card expiry year is invalid. + case paymentsCreditCardYearInvalidExpiryYear = "PAYMENTS_CREDIT_CARD_YEAR_INVALID_EXPIRY_YEAR" + /// Variant can only be purchased with a selling plan. + case variantRequiresSellingPlan = "VARIANT_REQUIRES_SELLING_PLAN" + /// Selling plan is not applicable. + case sellingPlanNotApplicable = "SELLING_PLAN_NOT_APPLICABLE" + /// An error occurred while saving the cart. + case serviceUnavailable = "SERVICE_UNAVAILABLE" + /// The cart is too large to save. + case cartTooLarge = "CART_TOO_LARGE" + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/CountryCode.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/CountryCode.graphql.swift index 92f2ee22..4022b875 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/CountryCode.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/CountryCode.graphql.swift @@ -4,500 +4,501 @@ @_spi(Internal) import ApolloAPI extension Storefront { - /// The code designating a country/region, which generally follows ISO 3166-1 alpha-2 guidelines. - /// If a territory doesn't have a country code value in the `CountryCode` enum, then it might be considered a subdivision - /// of another country. For example, the territories associated with Spain are represented by the country code `ES`, - /// and the territories associated with the United States of America are represented by the country code `US`. - enum CountryCode: String, EnumType { - /// Afghanistan. - case af = "AF" - /// Åland Islands. - case ax = "AX" - /// Albania. - case al = "AL" - /// Algeria. - case dz = "DZ" - /// Andorra. - case ad = "AD" - /// Angola. - case ao = "AO" - /// Anguilla. - case ai = "AI" - /// Antigua & Barbuda. - case ag = "AG" - /// Argentina. - case ar = "AR" - /// Armenia. - case am = "AM" - /// Aruba. - case aw = "AW" - /// Ascension Island. - case ac = "AC" - /// Australia. - case au = "AU" - /// Austria. - case at = "AT" - /// Azerbaijan. - case az = "AZ" - /// Bahamas. - case bs = "BS" - /// Bahrain. - case bh = "BH" - /// Bangladesh. - case bd = "BD" - /// Barbados. - case bb = "BB" - /// Belarus. - case by = "BY" - /// Belgium. - case be = "BE" - /// Belize. - case bz = "BZ" - /// Benin. - case bj = "BJ" - /// Bermuda. - case bm = "BM" - /// Bhutan. - case bt = "BT" - /// Bolivia. - case bo = "BO" - /// Bosnia & Herzegovina. - case ba = "BA" - /// Botswana. - case bw = "BW" - /// Bouvet Island. - case bv = "BV" - /// Brazil. - case br = "BR" - /// British Indian Ocean Territory. - case io = "IO" - /// Brunei. - case bn = "BN" - /// Bulgaria. - case bg = "BG" - /// Burkina Faso. - case bf = "BF" - /// Burundi. - case bi = "BI" - /// Cambodia. - case kh = "KH" - /// Canada. - case ca = "CA" - /// Cape Verde. - case cv = "CV" - /// Caribbean Netherlands. - case bq = "BQ" - /// Cayman Islands. - case ky = "KY" - /// Central African Republic. - case cf = "CF" - /// Chad. - case td = "TD" - /// Chile. - case cl = "CL" - /// China. - case cn = "CN" - /// Christmas Island. - case cx = "CX" - /// Cocos (Keeling) Islands. - case cc = "CC" - /// Colombia. - case co = "CO" - /// Comoros. - case km = "KM" - /// Congo - Brazzaville. - case cg = "CG" - /// Congo - Kinshasa. - case cd = "CD" - /// Cook Islands. - case ck = "CK" - /// Costa Rica. - case cr = "CR" - /// Croatia. - case hr = "HR" - /// Cuba. - case cu = "CU" - /// Curaçao. - case cw = "CW" - /// Cyprus. - case cy = "CY" - /// Czechia. - case cz = "CZ" - /// Côte d’Ivoire. - case ci = "CI" - /// Denmark. - case dk = "DK" - /// Djibouti. - case dj = "DJ" - /// Dominica. - case dm = "DM" - /// Dominican Republic. - case `do` = "DO" - /// Ecuador. - case ec = "EC" - /// Egypt. - case eg = "EG" - /// El Salvador. - case sv = "SV" - /// Equatorial Guinea. - case gq = "GQ" - /// Eritrea. - case er = "ER" - /// Estonia. - case ee = "EE" - /// Eswatini. - case sz = "SZ" - /// Ethiopia. - case et = "ET" - /// Falkland Islands. - case fk = "FK" - /// Faroe Islands. - case fo = "FO" - /// Fiji. - case fj = "FJ" - /// Finland. - case fi = "FI" - /// France. - case fr = "FR" - /// French Guiana. - case gf = "GF" - /// French Polynesia. - case pf = "PF" - /// French Southern Territories. - case tf = "TF" - /// Gabon. - case ga = "GA" - /// Gambia. - case gm = "GM" - /// Georgia. - case ge = "GE" - /// Germany. - case de = "DE" - /// Ghana. - case gh = "GH" - /// Gibraltar. - case gi = "GI" - /// Greece. - case gr = "GR" - /// Greenland. - case gl = "GL" - /// Grenada. - case gd = "GD" - /// Guadeloupe. - case gp = "GP" - /// Guatemala. - case gt = "GT" - /// Guernsey. - case gg = "GG" - /// Guinea. - case gn = "GN" - /// Guinea-Bissau. - case gw = "GW" - /// Guyana. - case gy = "GY" - /// Haiti. - case ht = "HT" - /// Heard & McDonald Islands. - case hm = "HM" - /// Vatican City. - case va = "VA" - /// Honduras. - case hn = "HN" - /// Hong Kong SAR. - case hk = "HK" - /// Hungary. - case hu = "HU" - /// Iceland. - case `is` = "IS" - /// India. - case `in` = "IN" - /// Indonesia. - case id = "ID" - /// Iran. - case ir = "IR" - /// Iraq. - case iq = "IQ" - /// Ireland. - case ie = "IE" - /// Isle of Man. - case im = "IM" - /// Israel. - case il = "IL" - /// Italy. - case it = "IT" - /// Jamaica. - case jm = "JM" - /// Japan. - case jp = "JP" - /// Jersey. - case je = "JE" - /// Jordan. - case jo = "JO" - /// Kazakhstan. - case kz = "KZ" - /// Kenya. - case ke = "KE" - /// Kiribati. - case ki = "KI" - /// North Korea. - case kp = "KP" - /// Kosovo. - case xk = "XK" - /// Kuwait. - case kw = "KW" - /// Kyrgyzstan. - case kg = "KG" - /// Laos. - case la = "LA" - /// Latvia. - case lv = "LV" - /// Lebanon. - case lb = "LB" - /// Lesotho. - case ls = "LS" - /// Liberia. - case lr = "LR" - /// Libya. - case ly = "LY" - /// Liechtenstein. - case li = "LI" - /// Lithuania. - case lt = "LT" - /// Luxembourg. - case lu = "LU" - /// Macao SAR. - case mo = "MO" - /// Madagascar. - case mg = "MG" - /// Malawi. - case mw = "MW" - /// Malaysia. - case my = "MY" - /// Maldives. - case mv = "MV" - /// Mali. - case ml = "ML" - /// Malta. - case mt = "MT" - /// Martinique. - case mq = "MQ" - /// Mauritania. - case mr = "MR" - /// Mauritius. - case mu = "MU" - /// Mayotte. - case yt = "YT" - /// Mexico. - case mx = "MX" - /// Moldova. - case md = "MD" - /// Monaco. - case mc = "MC" - /// Mongolia. - case mn = "MN" - /// Montenegro. - case me = "ME" - /// Montserrat. - case ms = "MS" - /// Morocco. - case ma = "MA" - /// Mozambique. - case mz = "MZ" - /// Myanmar (Burma). - case mm = "MM" - /// Namibia. - case na = "NA" - /// Nauru. - case nr = "NR" - /// Nepal. - case np = "NP" - /// Netherlands. - case nl = "NL" - /// Netherlands Antilles. - case an = "AN" - /// New Caledonia. - case nc = "NC" - /// New Zealand. - case nz = "NZ" - /// Nicaragua. - case ni = "NI" - /// Niger. - case ne = "NE" - /// Nigeria. - case ng = "NG" - /// Niue. - case nu = "NU" - /// Norfolk Island. - case nf = "NF" - /// North Macedonia. - case mk = "MK" - /// Norway. - case no = "NO" - /// Oman. - case om = "OM" - /// Pakistan. - case pk = "PK" - /// Palestinian Territories. - case ps = "PS" - /// Panama. - case pa = "PA" - /// Papua New Guinea. - case pg = "PG" - /// Paraguay. - case py = "PY" - /// Peru. - case pe = "PE" - /// Philippines. - case ph = "PH" - /// Pitcairn Islands. - case pn = "PN" - /// Poland. - case pl = "PL" - /// Portugal. - case pt = "PT" - /// Qatar. - case qa = "QA" - /// Cameroon. - case cm = "CM" - /// Réunion. - case re = "RE" - /// Romania. - case ro = "RO" - /// Russia. - case ru = "RU" - /// Rwanda. - case rw = "RW" - /// St. Barthélemy. - case bl = "BL" - /// St. Helena. - case sh = "SH" - /// St. Kitts & Nevis. - case kn = "KN" - /// St. Lucia. - case lc = "LC" - /// St. Martin. - case mf = "MF" - /// St. Pierre & Miquelon. - case pm = "PM" - /// Samoa. - case ws = "WS" - /// San Marino. - case sm = "SM" - /// São Tomé & Príncipe. - case st = "ST" - /// Saudi Arabia. - case sa = "SA" - /// Senegal. - case sn = "SN" - /// Serbia. - case rs = "RS" - /// Seychelles. - case sc = "SC" - /// Sierra Leone. - case sl = "SL" - /// Singapore. - case sg = "SG" - /// Sint Maarten. - case sx = "SX" - /// Slovakia. - case sk = "SK" - /// Slovenia. - case si = "SI" - /// Solomon Islands. - case sb = "SB" - /// Somalia. - case so = "SO" - /// South Africa. - case za = "ZA" - /// South Georgia & South Sandwich Islands. - case gs = "GS" - /// South Korea. - case kr = "KR" - /// South Sudan. - case ss = "SS" - /// Spain. - case es = "ES" - /// Sri Lanka. - case lk = "LK" - /// St. Vincent & Grenadines. - case vc = "VC" - /// Sudan. - case sd = "SD" - /// Suriname. - case sr = "SR" - /// Svalbard & Jan Mayen. - case sj = "SJ" - /// Sweden. - case se = "SE" - /// Switzerland. - case ch = "CH" - /// Syria. - case sy = "SY" - /// Taiwan. - case tw = "TW" - /// Tajikistan. - case tj = "TJ" - /// Tanzania. - case tz = "TZ" - /// Thailand. - case th = "TH" - /// Timor-Leste. - case tl = "TL" - /// Togo. - case tg = "TG" - /// Tokelau. - case tk = "TK" - /// Tonga. - case to = "TO" - /// Trinidad & Tobago. - case tt = "TT" - /// Tristan da Cunha. - case ta = "TA" - /// Tunisia. - case tn = "TN" - /// Türkiye. - case tr = "TR" - /// Turkmenistan. - case tm = "TM" - /// Turks & Caicos Islands. - case tc = "TC" - /// Tuvalu. - case tv = "TV" - /// Uganda. - case ug = "UG" - /// Ukraine. - case ua = "UA" - /// United Arab Emirates. - case ae = "AE" - /// United Kingdom. - case gb = "GB" - /// United States. - case us = "US" - /// U.S. Outlying Islands. - case um = "UM" - /// Uruguay. - case uy = "UY" - /// Uzbekistan. - case uz = "UZ" - /// Vanuatu. - case vu = "VU" - /// Venezuela. - case ve = "VE" - /// Vietnam. - case vn = "VN" - /// British Virgin Islands. - case vg = "VG" - /// Wallis & Futuna. - case wf = "WF" - /// Western Sahara. - case eh = "EH" - /// Yemen. - case ye = "YE" - /// Zambia. - case zm = "ZM" - /// Zimbabwe. - case zw = "ZW" - /// Unknown Region. - case zz = "ZZ" - } -} + /// The code designating a country/region, which generally follows ISO 3166-1 alpha-2 guidelines. + /// If a territory doesn't have a country code value in the `CountryCode` enum, then it might be considered a subdivision + /// of another country. For example, the territories associated with Spain are represented by the country code `ES`, + /// and the territories associated with the United States of America are represented by the country code `US`. + enum CountryCode: String, EnumType { + /// Afghanistan. + case af = "AF" + /// Åland Islands. + case ax = "AX" + /// Albania. + case al = "AL" + /// Algeria. + case dz = "DZ" + /// Andorra. + case ad = "AD" + /// Angola. + case ao = "AO" + /// Anguilla. + case ai = "AI" + /// Antigua & Barbuda. + case ag = "AG" + /// Argentina. + case ar = "AR" + /// Armenia. + case am = "AM" + /// Aruba. + case aw = "AW" + /// Ascension Island. + case ac = "AC" + /// Australia. + case au = "AU" + /// Austria. + case at = "AT" + /// Azerbaijan. + case az = "AZ" + /// Bahamas. + case bs = "BS" + /// Bahrain. + case bh = "BH" + /// Bangladesh. + case bd = "BD" + /// Barbados. + case bb = "BB" + /// Belarus. + case by = "BY" + /// Belgium. + case be = "BE" + /// Belize. + case bz = "BZ" + /// Benin. + case bj = "BJ" + /// Bermuda. + case bm = "BM" + /// Bhutan. + case bt = "BT" + /// Bolivia. + case bo = "BO" + /// Bosnia & Herzegovina. + case ba = "BA" + /// Botswana. + case bw = "BW" + /// Bouvet Island. + case bv = "BV" + /// Brazil. + case br = "BR" + /// British Indian Ocean Territory. + case io = "IO" + /// Brunei. + case bn = "BN" + /// Bulgaria. + case bg = "BG" + /// Burkina Faso. + case bf = "BF" + /// Burundi. + case bi = "BI" + /// Cambodia. + case kh = "KH" + /// Canada. + case ca = "CA" + /// Cape Verde. + case cv = "CV" + /// Caribbean Netherlands. + case bq = "BQ" + /// Cayman Islands. + case ky = "KY" + /// Central African Republic. + case cf = "CF" + /// Chad. + case td = "TD" + /// Chile. + case cl = "CL" + /// China. + case cn = "CN" + /// Christmas Island. + case cx = "CX" + /// Cocos (Keeling) Islands. + case cc = "CC" + /// Colombia. + case co = "CO" + /// Comoros. + case km = "KM" + /// Congo - Brazzaville. + case cg = "CG" + /// Congo - Kinshasa. + case cd = "CD" + /// Cook Islands. + case ck = "CK" + /// Costa Rica. + case cr = "CR" + /// Croatia. + case hr = "HR" + /// Cuba. + case cu = "CU" + /// Curaçao. + case cw = "CW" + /// Cyprus. + case cy = "CY" + /// Czechia. + case cz = "CZ" + /// Côte d’Ivoire. + case ci = "CI" + /// Denmark. + case dk = "DK" + /// Djibouti. + case dj = "DJ" + /// Dominica. + case dm = "DM" + /// Dominican Republic. + case `do` = "DO" + /// Ecuador. + case ec = "EC" + /// Egypt. + case eg = "EG" + /// El Salvador. + case sv = "SV" + /// Equatorial Guinea. + case gq = "GQ" + /// Eritrea. + case er = "ER" + /// Estonia. + case ee = "EE" + /// Eswatini. + case sz = "SZ" + /// Ethiopia. + case et = "ET" + /// Falkland Islands. + case fk = "FK" + /// Faroe Islands. + case fo = "FO" + /// Fiji. + case fj = "FJ" + /// Finland. + case fi = "FI" + /// France. + case fr = "FR" + /// French Guiana. + case gf = "GF" + /// French Polynesia. + case pf = "PF" + /// French Southern Territories. + case tf = "TF" + /// Gabon. + case ga = "GA" + /// Gambia. + case gm = "GM" + /// Georgia. + case ge = "GE" + /// Germany. + case de = "DE" + /// Ghana. + case gh = "GH" + /// Gibraltar. + case gi = "GI" + /// Greece. + case gr = "GR" + /// Greenland. + case gl = "GL" + /// Grenada. + case gd = "GD" + /// Guadeloupe. + case gp = "GP" + /// Guatemala. + case gt = "GT" + /// Guernsey. + case gg = "GG" + /// Guinea. + case gn = "GN" + /// Guinea-Bissau. + case gw = "GW" + /// Guyana. + case gy = "GY" + /// Haiti. + case ht = "HT" + /// Heard & McDonald Islands. + case hm = "HM" + /// Vatican City. + case va = "VA" + /// Honduras. + case hn = "HN" + /// Hong Kong SAR. + case hk = "HK" + /// Hungary. + case hu = "HU" + /// Iceland. + case `is` = "IS" + /// India. + case `in` = "IN" + /// Indonesia. + case id = "ID" + /// Iran. + case ir = "IR" + /// Iraq. + case iq = "IQ" + /// Ireland. + case ie = "IE" + /// Isle of Man. + case im = "IM" + /// Israel. + case il = "IL" + /// Italy. + case it = "IT" + /// Jamaica. + case jm = "JM" + /// Japan. + case jp = "JP" + /// Jersey. + case je = "JE" + /// Jordan. + case jo = "JO" + /// Kazakhstan. + case kz = "KZ" + /// Kenya. + case ke = "KE" + /// Kiribati. + case ki = "KI" + /// North Korea. + case kp = "KP" + /// Kosovo. + case xk = "XK" + /// Kuwait. + case kw = "KW" + /// Kyrgyzstan. + case kg = "KG" + /// Laos. + case la = "LA" + /// Latvia. + case lv = "LV" + /// Lebanon. + case lb = "LB" + /// Lesotho. + case ls = "LS" + /// Liberia. + case lr = "LR" + /// Libya. + case ly = "LY" + /// Liechtenstein. + case li = "LI" + /// Lithuania. + case lt = "LT" + /// Luxembourg. + case lu = "LU" + /// Macao SAR. + case mo = "MO" + /// Madagascar. + case mg = "MG" + /// Malawi. + case mw = "MW" + /// Malaysia. + case my = "MY" + /// Maldives. + case mv = "MV" + /// Mali. + case ml = "ML" + /// Malta. + case mt = "MT" + /// Martinique. + case mq = "MQ" + /// Mauritania. + case mr = "MR" + /// Mauritius. + case mu = "MU" + /// Mayotte. + case yt = "YT" + /// Mexico. + case mx = "MX" + /// Moldova. + case md = "MD" + /// Monaco. + case mc = "MC" + /// Mongolia. + case mn = "MN" + /// Montenegro. + case me = "ME" + /// Montserrat. + case ms = "MS" + /// Morocco. + case ma = "MA" + /// Mozambique. + case mz = "MZ" + /// Myanmar (Burma). + case mm = "MM" + /// Namibia. + case na = "NA" + /// Nauru. + case nr = "NR" + /// Nepal. + case np = "NP" + /// Netherlands. + case nl = "NL" + /// Netherlands Antilles. + case an = "AN" + /// New Caledonia. + case nc = "NC" + /// New Zealand. + case nz = "NZ" + /// Nicaragua. + case ni = "NI" + /// Niger. + case ne = "NE" + /// Nigeria. + case ng = "NG" + /// Niue. + case nu = "NU" + /// Norfolk Island. + case nf = "NF" + /// North Macedonia. + case mk = "MK" + /// Norway. + case no = "NO" + /// Oman. + case om = "OM" + /// Pakistan. + case pk = "PK" + /// Palestinian Territories. + case ps = "PS" + /// Panama. + case pa = "PA" + /// Papua New Guinea. + case pg = "PG" + /// Paraguay. + case py = "PY" + /// Peru. + case pe = "PE" + /// Philippines. + case ph = "PH" + /// Pitcairn Islands. + case pn = "PN" + /// Poland. + case pl = "PL" + /// Portugal. + case pt = "PT" + /// Qatar. + case qa = "QA" + /// Cameroon. + case cm = "CM" + /// Réunion. + case re = "RE" + /// Romania. + case ro = "RO" + /// Russia. + case ru = "RU" + /// Rwanda. + case rw = "RW" + /// St. Barthélemy. + case bl = "BL" + /// St. Helena. + case sh = "SH" + /// St. Kitts & Nevis. + case kn = "KN" + /// St. Lucia. + case lc = "LC" + /// St. Martin. + case mf = "MF" + /// St. Pierre & Miquelon. + case pm = "PM" + /// Samoa. + case ws = "WS" + /// San Marino. + case sm = "SM" + /// São Tomé & Príncipe. + case st = "ST" + /// Saudi Arabia. + case sa = "SA" + /// Senegal. + case sn = "SN" + /// Serbia. + case rs = "RS" + /// Seychelles. + case sc = "SC" + /// Sierra Leone. + case sl = "SL" + /// Singapore. + case sg = "SG" + /// Sint Maarten. + case sx = "SX" + /// Slovakia. + case sk = "SK" + /// Slovenia. + case si = "SI" + /// Solomon Islands. + case sb = "SB" + /// Somalia. + case so = "SO" + /// South Africa. + case za = "ZA" + /// South Georgia & South Sandwich Islands. + case gs = "GS" + /// South Korea. + case kr = "KR" + /// South Sudan. + case ss = "SS" + /// Spain. + case es = "ES" + /// Sri Lanka. + case lk = "LK" + /// St. Vincent & Grenadines. + case vc = "VC" + /// Sudan. + case sd = "SD" + /// Suriname. + case sr = "SR" + /// Svalbard & Jan Mayen. + case sj = "SJ" + /// Sweden. + case se = "SE" + /// Switzerland. + case ch = "CH" + /// Syria. + case sy = "SY" + /// Taiwan. + case tw = "TW" + /// Tajikistan. + case tj = "TJ" + /// Tanzania. + case tz = "TZ" + /// Thailand. + case th = "TH" + /// Timor-Leste. + case tl = "TL" + /// Togo. + case tg = "TG" + /// Tokelau. + case tk = "TK" + /// Tonga. + case to = "TO" + /// Trinidad & Tobago. + case tt = "TT" + /// Tristan da Cunha. + case ta = "TA" + /// Tunisia. + case tn = "TN" + /// Türkiye. + case tr = "TR" + /// Turkmenistan. + case tm = "TM" + /// Turks & Caicos Islands. + case tc = "TC" + /// Tuvalu. + case tv = "TV" + /// Uganda. + case ug = "UG" + /// Ukraine. + case ua = "UA" + /// United Arab Emirates. + case ae = "AE" + /// United Kingdom. + case gb = "GB" + /// United States. + case us = "US" + /// U.S. Outlying Islands. + case um = "UM" + /// Uruguay. + case uy = "UY" + /// Uzbekistan. + case uz = "UZ" + /// Vanuatu. + case vu = "VU" + /// Venezuela. + case ve = "VE" + /// Vietnam. + case vn = "VN" + /// British Virgin Islands. + case vg = "VG" + /// Wallis & Futuna. + case wf = "WF" + /// Western Sahara. + case eh = "EH" + /// Yemen. + case ye = "YE" + /// Zambia. + case zm = "ZM" + /// Zimbabwe. + case zw = "ZW" + /// Unknown Region. + case zz = "ZZ" + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/CurrencyCode.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/CurrencyCode.graphql.swift index aedcd5ea..47b30dbd 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/CurrencyCode.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/CurrencyCode.graphql.swift @@ -4,337 +4,338 @@ @_spi(Internal) import ApolloAPI extension Storefront { - /// The three-letter currency codes that represent the world currencies used in - /// stores. These include standard ISO 4217 codes, legacy codes, - /// and non-standard codes. - enum CurrencyCode: String, EnumType { - /// United States Dollars (USD). - case usd = "USD" - /// Euro (EUR). - case eur = "EUR" - /// United Kingdom Pounds (GBP). - case gbp = "GBP" - /// Canadian Dollars (CAD). - case cad = "CAD" - /// Afghan Afghani (AFN). - case afn = "AFN" - /// Albanian Lek (ALL). - case all = "ALL" - /// Algerian Dinar (DZD). - case dzd = "DZD" - /// Angolan Kwanza (AOA). - case aoa = "AOA" - /// Argentine Pesos (ARS). - case ars = "ARS" - /// Armenian Dram (AMD). - case amd = "AMD" - /// Aruban Florin (AWG). - case awg = "AWG" - /// Australian Dollars (AUD). - case aud = "AUD" - /// Barbadian Dollar (BBD). - case bbd = "BBD" - /// Azerbaijani Manat (AZN). - case azn = "AZN" - /// Bangladesh Taka (BDT). - case bdt = "BDT" - /// Bahamian Dollar (BSD). - case bsd = "BSD" - /// Bahraini Dinar (BHD). - case bhd = "BHD" - /// Burundian Franc (BIF). - case bif = "BIF" - /// Belize Dollar (BZD). - case bzd = "BZD" - /// Bermudian Dollar (BMD). - case bmd = "BMD" - /// Bhutanese Ngultrum (BTN). - case btn = "BTN" - /// Bosnia and Herzegovina Convertible Mark (BAM). - case bam = "BAM" - /// Brazilian Real (BRL). - case brl = "BRL" - /// Bolivian Boliviano (BOB). - case bob = "BOB" - /// Botswana Pula (BWP). - case bwp = "BWP" - /// Brunei Dollar (BND). - case bnd = "BND" - /// Bulgarian Lev (BGN). - case bgn = "BGN" - /// Burmese Kyat (MMK). - case mmk = "MMK" - /// Cambodian Riel. - case khr = "KHR" - /// Cape Verdean escudo (CVE). - case cve = "CVE" - /// Cayman Dollars (KYD). - case kyd = "KYD" - /// Central African CFA Franc (XAF). - case xaf = "XAF" - /// Chilean Peso (CLP). - case clp = "CLP" - /// Chinese Yuan Renminbi (CNY). - case cny = "CNY" - /// Colombian Peso (COP). - case cop = "COP" - /// Comorian Franc (KMF). - case kmf = "KMF" - /// Congolese franc (CDF). - case cdf = "CDF" - /// Costa Rican Colones (CRC). - case crc = "CRC" - /// Croatian Kuna (HRK). - case hrk = "HRK" - /// Czech Koruny (CZK). - case czk = "CZK" - /// Danish Kroner (DKK). - case dkk = "DKK" - /// Dominican Peso (DOP). - case dop = "DOP" - /// East Caribbean Dollar (XCD). - case xcd = "XCD" - /// Egyptian Pound (EGP). - case egp = "EGP" - /// Eritrean Nakfa (ERN). - case ern = "ERN" - /// Ethiopian Birr (ETB). - case etb = "ETB" - /// Falkland Islands Pounds (FKP). - case fkp = "FKP" - /// CFP Franc (XPF). - case xpf = "XPF" - /// Fijian Dollars (FJD). - case fjd = "FJD" - /// Gibraltar Pounds (GIP). - case gip = "GIP" - /// Gambian Dalasi (GMD). - case gmd = "GMD" - /// Ghanaian Cedi (GHS). - case ghs = "GHS" - /// Guatemalan Quetzal (GTQ). - case gtq = "GTQ" - /// Guyanese Dollar (GYD). - case gyd = "GYD" - /// Georgian Lari (GEL). - case gel = "GEL" - /// Haitian Gourde (HTG). - case htg = "HTG" - /// Honduran Lempira (HNL). - case hnl = "HNL" - /// Hong Kong Dollars (HKD). - case hkd = "HKD" - /// Hungarian Forint (HUF). - case huf = "HUF" - /// Icelandic Kronur (ISK). - case isk = "ISK" - /// Indian Rupees (INR). - case inr = "INR" - /// Indonesian Rupiah (IDR). - case idr = "IDR" - /// Israeli New Shekel (NIS). - case ils = "ILS" - /// Iraqi Dinar (IQD). - case iqd = "IQD" - /// Jamaican Dollars (JMD). - case jmd = "JMD" - /// Japanese Yen (JPY). - case jpy = "JPY" - /// Jersey Pound. - case jep = "JEP" - /// Jordanian Dinar (JOD). - case jod = "JOD" - /// Kazakhstani Tenge (KZT). - case kzt = "KZT" - /// Kenyan Shilling (KES). - case kes = "KES" - /// Kiribati Dollar (KID). - case kid = "KID" - /// Kuwaiti Dinar (KWD). - case kwd = "KWD" - /// Kyrgyzstani Som (KGS). - case kgs = "KGS" - /// Laotian Kip (LAK). - case lak = "LAK" - /// Latvian Lati (LVL). - case lvl = "LVL" - /// Lebanese Pounds (LBP). - case lbp = "LBP" - /// Lesotho Loti (LSL). - case lsl = "LSL" - /// Liberian Dollar (LRD). - case lrd = "LRD" - /// Lithuanian Litai (LTL). - case ltl = "LTL" - /// Malagasy Ariary (MGA). - case mga = "MGA" - /// Macedonia Denar (MKD). - case mkd = "MKD" - /// Macanese Pataca (MOP). - case mop = "MOP" - /// Malawian Kwacha (MWK). - case mwk = "MWK" - /// Maldivian Rufiyaa (MVR). - case mvr = "MVR" - /// Mauritanian Ouguiya (MRU). - case mru = "MRU" - /// Mexican Pesos (MXN). - case mxn = "MXN" - /// Malaysian Ringgits (MYR). - case myr = "MYR" - /// Mauritian Rupee (MUR). - case mur = "MUR" - /// Moldovan Leu (MDL). - case mdl = "MDL" - /// Moroccan Dirham. - case mad = "MAD" - /// Mongolian Tugrik. - case mnt = "MNT" - /// Mozambican Metical. - case mzn = "MZN" - /// Namibian Dollar. - case nad = "NAD" - /// Nepalese Rupee (NPR). - case npr = "NPR" - /// Netherlands Antillean Guilder. - case ang = "ANG" - /// New Zealand Dollars (NZD). - case nzd = "NZD" - /// Nicaraguan Córdoba (NIO). - case nio = "NIO" - /// Nigerian Naira (NGN). - case ngn = "NGN" - /// Norwegian Kroner (NOK). - case nok = "NOK" - /// Omani Rial (OMR). - case omr = "OMR" - /// Panamian Balboa (PAB). - case pab = "PAB" - /// Pakistani Rupee (PKR). - case pkr = "PKR" - /// Papua New Guinean Kina (PGK). - case pgk = "PGK" - /// Paraguayan Guarani (PYG). - case pyg = "PYG" - /// Peruvian Nuevo Sol (PEN). - case pen = "PEN" - /// Philippine Peso (PHP). - case php = "PHP" - /// Polish Zlotych (PLN). - case pln = "PLN" - /// Qatari Rial (QAR). - case qar = "QAR" - /// Romanian Lei (RON). - case ron = "RON" - /// Russian Rubles (RUB). - case rub = "RUB" - /// Rwandan Franc (RWF). - case rwf = "RWF" - /// Samoan Tala (WST). - case wst = "WST" - /// Saint Helena Pounds (SHP). - case shp = "SHP" - /// Saudi Riyal (SAR). - case sar = "SAR" - /// Serbian dinar (RSD). - case rsd = "RSD" - /// Seychellois Rupee (SCR). - case scr = "SCR" - /// Singapore Dollars (SGD). - case sgd = "SGD" - /// Sudanese Pound (SDG). - case sdg = "SDG" - /// Somali Shilling (SOS). - case sos = "SOS" - /// Syrian Pound (SYP). - case syp = "SYP" - /// South African Rand (ZAR). - case zar = "ZAR" - /// South Korean Won (KRW). - case krw = "KRW" - /// South Sudanese Pound (SSP). - case ssp = "SSP" - /// Solomon Islands Dollar (SBD). - case sbd = "SBD" - /// Sri Lankan Rupees (LKR). - case lkr = "LKR" - /// Surinamese Dollar (SRD). - case srd = "SRD" - /// Swazi Lilangeni (SZL). - case szl = "SZL" - /// Swedish Kronor (SEK). - case sek = "SEK" - /// Swiss Francs (CHF). - case chf = "CHF" - /// Taiwan Dollars (TWD). - case twd = "TWD" - /// Thai baht (THB). - case thb = "THB" - /// Tanzanian Shilling (TZS). - case tzs = "TZS" - /// Trinidad and Tobago Dollars (TTD). - case ttd = "TTD" - /// Tunisian Dinar (TND). - case tnd = "TND" - /// Turkish Lira (TRY). - case `try` = "TRY" - /// Turkmenistani Manat (TMT). - case tmt = "TMT" - /// Ugandan Shilling (UGX). - case ugx = "UGX" - /// Ukrainian Hryvnia (UAH). - case uah = "UAH" - /// United Arab Emirates Dirham (AED). - case aed = "AED" - /// Uruguayan Pesos (UYU). - case uyu = "UYU" - /// Uzbekistan som (UZS). - case uzs = "UZS" - /// Vanuatu Vatu (VUV). - case vuv = "VUV" - /// Venezuelan Bolivares Soberanos (VES). - case ves = "VES" - /// Vietnamese đồng (VND). - case vnd = "VND" - /// West African CFA franc (XOF). - case xof = "XOF" - /// Yemeni Rial (YER). - case yer = "YER" - /// Zambian Kwacha (ZMW). - case zmw = "ZMW" - /// Belarusian Ruble (BYN). - case byn = "BYN" - /// Belarusian Ruble (BYR). - /// - /// **Deprecated**: `BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead. - case byr = "BYR" - /// Djiboutian Franc (DJF). - case djf = "DJF" - /// Guinean Franc (GNF). - case gnf = "GNF" - /// Iranian Rial (IRR). - case irr = "IRR" - /// Libyan Dinar (LYD). - case lyd = "LYD" - /// Sierra Leonean Leone (SLL). - case sll = "SLL" - /// Sao Tome And Principe Dobra (STD). - /// - /// **Deprecated**: `STD` is deprecated. Use `STN` available from version `2022-07` onwards instead. - case std = "STD" - /// Sao Tome And Principe Dobra (STN). - case stn = "STN" - /// Tajikistani Somoni (TJS). - case tjs = "TJS" - /// Tongan Pa'anga (TOP). - case top = "TOP" - /// Venezuelan Bolivares (VED). - case ved = "VED" - /// Venezuelan Bolivares (VEF). - /// - /// **Deprecated**: `VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead. - case vef = "VEF" - /// Unrecognized currency. - case xxx = "XXX" - } -} + /// The three-letter currency codes that represent the world currencies used in + /// stores. These include standard ISO 4217 codes, legacy codes, + /// and non-standard codes. + enum CurrencyCode: String, EnumType { + /// United States Dollars (USD). + case usd = "USD" + /// Euro (EUR). + case eur = "EUR" + /// United Kingdom Pounds (GBP). + case gbp = "GBP" + /// Canadian Dollars (CAD). + case cad = "CAD" + /// Afghan Afghani (AFN). + case afn = "AFN" + /// Albanian Lek (ALL). + case all = "ALL" + /// Algerian Dinar (DZD). + case dzd = "DZD" + /// Angolan Kwanza (AOA). + case aoa = "AOA" + /// Argentine Pesos (ARS). + case ars = "ARS" + /// Armenian Dram (AMD). + case amd = "AMD" + /// Aruban Florin (AWG). + case awg = "AWG" + /// Australian Dollars (AUD). + case aud = "AUD" + /// Barbadian Dollar (BBD). + case bbd = "BBD" + /// Azerbaijani Manat (AZN). + case azn = "AZN" + /// Bangladesh Taka (BDT). + case bdt = "BDT" + /// Bahamian Dollar (BSD). + case bsd = "BSD" + /// Bahraini Dinar (BHD). + case bhd = "BHD" + /// Burundian Franc (BIF). + case bif = "BIF" + /// Belize Dollar (BZD). + case bzd = "BZD" + /// Bermudian Dollar (BMD). + case bmd = "BMD" + /// Bhutanese Ngultrum (BTN). + case btn = "BTN" + /// Bosnia and Herzegovina Convertible Mark (BAM). + case bam = "BAM" + /// Brazilian Real (BRL). + case brl = "BRL" + /// Bolivian Boliviano (BOB). + case bob = "BOB" + /// Botswana Pula (BWP). + case bwp = "BWP" + /// Brunei Dollar (BND). + case bnd = "BND" + /// Bulgarian Lev (BGN). + case bgn = "BGN" + /// Burmese Kyat (MMK). + case mmk = "MMK" + /// Cambodian Riel. + case khr = "KHR" + /// Cape Verdean escudo (CVE). + case cve = "CVE" + /// Cayman Dollars (KYD). + case kyd = "KYD" + /// Central African CFA Franc (XAF). + case xaf = "XAF" + /// Chilean Peso (CLP). + case clp = "CLP" + /// Chinese Yuan Renminbi (CNY). + case cny = "CNY" + /// Colombian Peso (COP). + case cop = "COP" + /// Comorian Franc (KMF). + case kmf = "KMF" + /// Congolese franc (CDF). + case cdf = "CDF" + /// Costa Rican Colones (CRC). + case crc = "CRC" + /// Croatian Kuna (HRK). + case hrk = "HRK" + /// Czech Koruny (CZK). + case czk = "CZK" + /// Danish Kroner (DKK). + case dkk = "DKK" + /// Dominican Peso (DOP). + case dop = "DOP" + /// East Caribbean Dollar (XCD). + case xcd = "XCD" + /// Egyptian Pound (EGP). + case egp = "EGP" + /// Eritrean Nakfa (ERN). + case ern = "ERN" + /// Ethiopian Birr (ETB). + case etb = "ETB" + /// Falkland Islands Pounds (FKP). + case fkp = "FKP" + /// CFP Franc (XPF). + case xpf = "XPF" + /// Fijian Dollars (FJD). + case fjd = "FJD" + /// Gibraltar Pounds (GIP). + case gip = "GIP" + /// Gambian Dalasi (GMD). + case gmd = "GMD" + /// Ghanaian Cedi (GHS). + case ghs = "GHS" + /// Guatemalan Quetzal (GTQ). + case gtq = "GTQ" + /// Guyanese Dollar (GYD). + case gyd = "GYD" + /// Georgian Lari (GEL). + case gel = "GEL" + /// Haitian Gourde (HTG). + case htg = "HTG" + /// Honduran Lempira (HNL). + case hnl = "HNL" + /// Hong Kong Dollars (HKD). + case hkd = "HKD" + /// Hungarian Forint (HUF). + case huf = "HUF" + /// Icelandic Kronur (ISK). + case isk = "ISK" + /// Indian Rupees (INR). + case inr = "INR" + /// Indonesian Rupiah (IDR). + case idr = "IDR" + /// Israeli New Shekel (NIS). + case ils = "ILS" + /// Iraqi Dinar (IQD). + case iqd = "IQD" + /// Jamaican Dollars (JMD). + case jmd = "JMD" + /// Japanese Yen (JPY). + case jpy = "JPY" + /// Jersey Pound. + case jep = "JEP" + /// Jordanian Dinar (JOD). + case jod = "JOD" + /// Kazakhstani Tenge (KZT). + case kzt = "KZT" + /// Kenyan Shilling (KES). + case kes = "KES" + /// Kiribati Dollar (KID). + case kid = "KID" + /// Kuwaiti Dinar (KWD). + case kwd = "KWD" + /// Kyrgyzstani Som (KGS). + case kgs = "KGS" + /// Laotian Kip (LAK). + case lak = "LAK" + /// Latvian Lati (LVL). + case lvl = "LVL" + /// Lebanese Pounds (LBP). + case lbp = "LBP" + /// Lesotho Loti (LSL). + case lsl = "LSL" + /// Liberian Dollar (LRD). + case lrd = "LRD" + /// Lithuanian Litai (LTL). + case ltl = "LTL" + /// Malagasy Ariary (MGA). + case mga = "MGA" + /// Macedonia Denar (MKD). + case mkd = "MKD" + /// Macanese Pataca (MOP). + case mop = "MOP" + /// Malawian Kwacha (MWK). + case mwk = "MWK" + /// Maldivian Rufiyaa (MVR). + case mvr = "MVR" + /// Mauritanian Ouguiya (MRU). + case mru = "MRU" + /// Mexican Pesos (MXN). + case mxn = "MXN" + /// Malaysian Ringgits (MYR). + case myr = "MYR" + /// Mauritian Rupee (MUR). + case mur = "MUR" + /// Moldovan Leu (MDL). + case mdl = "MDL" + /// Moroccan Dirham. + case mad = "MAD" + /// Mongolian Tugrik. + case mnt = "MNT" + /// Mozambican Metical. + case mzn = "MZN" + /// Namibian Dollar. + case nad = "NAD" + /// Nepalese Rupee (NPR). + case npr = "NPR" + /// Netherlands Antillean Guilder. + case ang = "ANG" + /// New Zealand Dollars (NZD). + case nzd = "NZD" + /// Nicaraguan Córdoba (NIO). + case nio = "NIO" + /// Nigerian Naira (NGN). + case ngn = "NGN" + /// Norwegian Kroner (NOK). + case nok = "NOK" + /// Omani Rial (OMR). + case omr = "OMR" + /// Panamian Balboa (PAB). + case pab = "PAB" + /// Pakistani Rupee (PKR). + case pkr = "PKR" + /// Papua New Guinean Kina (PGK). + case pgk = "PGK" + /// Paraguayan Guarani (PYG). + case pyg = "PYG" + /// Peruvian Nuevo Sol (PEN). + case pen = "PEN" + /// Philippine Peso (PHP). + case php = "PHP" + /// Polish Zlotych (PLN). + case pln = "PLN" + /// Qatari Rial (QAR). + case qar = "QAR" + /// Romanian Lei (RON). + case ron = "RON" + /// Russian Rubles (RUB). + case rub = "RUB" + /// Rwandan Franc (RWF). + case rwf = "RWF" + /// Samoan Tala (WST). + case wst = "WST" + /// Saint Helena Pounds (SHP). + case shp = "SHP" + /// Saudi Riyal (SAR). + case sar = "SAR" + /// Serbian dinar (RSD). + case rsd = "RSD" + /// Seychellois Rupee (SCR). + case scr = "SCR" + /// Singapore Dollars (SGD). + case sgd = "SGD" + /// Sudanese Pound (SDG). + case sdg = "SDG" + /// Somali Shilling (SOS). + case sos = "SOS" + /// Syrian Pound (SYP). + case syp = "SYP" + /// South African Rand (ZAR). + case zar = "ZAR" + /// South Korean Won (KRW). + case krw = "KRW" + /// South Sudanese Pound (SSP). + case ssp = "SSP" + /// Solomon Islands Dollar (SBD). + case sbd = "SBD" + /// Sri Lankan Rupees (LKR). + case lkr = "LKR" + /// Surinamese Dollar (SRD). + case srd = "SRD" + /// Swazi Lilangeni (SZL). + case szl = "SZL" + /// Swedish Kronor (SEK). + case sek = "SEK" + /// Swiss Francs (CHF). + case chf = "CHF" + /// Taiwan Dollars (TWD). + case twd = "TWD" + /// Thai baht (THB). + case thb = "THB" + /// Tanzanian Shilling (TZS). + case tzs = "TZS" + /// Trinidad and Tobago Dollars (TTD). + case ttd = "TTD" + /// Tunisian Dinar (TND). + case tnd = "TND" + /// Turkish Lira (TRY). + case `try` = "TRY" + /// Turkmenistani Manat (TMT). + case tmt = "TMT" + /// Ugandan Shilling (UGX). + case ugx = "UGX" + /// Ukrainian Hryvnia (UAH). + case uah = "UAH" + /// United Arab Emirates Dirham (AED). + case aed = "AED" + /// Uruguayan Pesos (UYU). + case uyu = "UYU" + /// Uzbekistan som (UZS). + case uzs = "UZS" + /// Vanuatu Vatu (VUV). + case vuv = "VUV" + /// Venezuelan Bolivares Soberanos (VES). + case ves = "VES" + /// Vietnamese đồng (VND). + case vnd = "VND" + /// West African CFA franc (XOF). + case xof = "XOF" + /// Yemeni Rial (YER). + case yer = "YER" + /// Zambian Kwacha (ZMW). + case zmw = "ZMW" + /// Belarusian Ruble (BYN). + case byn = "BYN" + /// Belarusian Ruble (BYR). + /// + /// **Deprecated**: `BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead. + case byr = "BYR" + /// Djiboutian Franc (DJF). + case djf = "DJF" + /// Guinean Franc (GNF). + case gnf = "GNF" + /// Iranian Rial (IRR). + case irr = "IRR" + /// Libyan Dinar (LYD). + case lyd = "LYD" + /// Sierra Leonean Leone (SLL). + case sll = "SLL" + /// Sao Tome And Principe Dobra (STD). + /// + /// **Deprecated**: `STD` is deprecated. Use `STN` available from version `2022-07` onwards instead. + case std = "STD" + /// Sao Tome And Principe Dobra (STN). + case stn = "STN" + /// Tajikistani Somoni (TJS). + case tjs = "TJS" + /// Tongan Pa'anga (TOP). + case top = "TOP" + /// Venezuelan Bolivares (VED). + case ved = "VED" + /// Venezuelan Bolivares (VEF). + /// + /// **Deprecated**: `VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead. + case vef = "VEF" + /// Unrecognized currency. + case xxx = "XXX" + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/DeliveryAddressValidationStrategy.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/DeliveryAddressValidationStrategy.graphql.swift index ecc12a00..25232e2c 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/DeliveryAddressValidationStrategy.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/DeliveryAddressValidationStrategy.graphql.swift @@ -4,14 +4,15 @@ @_spi(Internal) import ApolloAPI extension Storefront { - /// Controls how delivery addresses are validated during cart operations. The default validation checks only the country code, while strict validation verifies all address fields against Shopify's checkout rules and rejects invalid addresses. - /// - /// Used by [`DeliveryAddressInput`](https://shopify.dev/docs/api/storefront/current/input-objects/DeliveryAddressInput) when setting buyer identity preferences, and by [`CartSelectableAddressInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartSelectableAddressInput) and [`CartSelectableAddressUpdateInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartSelectableAddressUpdateInput) when managing cart delivery addresses. - enum DeliveryAddressValidationStrategy: String, EnumType { - /// Only the country code is validated. - case countryCodeOnly = "COUNTRY_CODE_ONLY" - /// Strict validation is performed, i.e. all fields in the address are validated - /// according to Shopify's checkout rules. If the address fails validation, the cart will not be updated. - case strict = "STRICT" - } -} + /// Controls how delivery addresses are validated during cart operations. The default validation checks only the country code, while strict validation verifies all address fields against Shopify's checkout rules and rejects invalid addresses. + /// + /// Used by [`DeliveryAddressInput`](https://shopify.dev/docs/api/storefront/current/input-objects/DeliveryAddressInput) when setting buyer identity preferences, and by [`CartSelectableAddressInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartSelectableAddressInput) and [`CartSelectableAddressUpdateInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartSelectableAddressUpdateInput) when managing cart delivery addresses. + enum DeliveryAddressValidationStrategy: String, EnumType { + /// Only the country code is validated. + case countryCodeOnly = "COUNTRY_CODE_ONLY" + /// Strict validation is performed, i.e. all fields in the address are validated + /// according to Shopify's checkout rules. If the address fails validation, the cart will not be updated. + case strict = "STRICT" + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/DeliveryMethodType.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/DeliveryMethodType.graphql.swift index a7aabf21..e0503645 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/DeliveryMethodType.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/DeliveryMethodType.graphql.swift @@ -4,19 +4,20 @@ @_spi(Internal) import ApolloAPI extension Storefront { - /// List of different delivery method types. - enum DeliveryMethodType: String, EnumType { - /// Shipping. - case shipping = "SHIPPING" - /// Local Pickup. - case pickUp = "PICK_UP" - /// Retail. - case retail = "RETAIL" - /// Local Delivery. - case local = "LOCAL" - /// Shipping to a Pickup Point. - case pickupPoint = "PICKUP_POINT" - /// None. - case none = "NONE" - } -} + /// List of different delivery method types. + enum DeliveryMethodType: String, EnumType { + /// Shipping. + case shipping = "SHIPPING" + /// Local Pickup. + case pickUp = "PICK_UP" + /// Retail. + case retail = "RETAIL" + /// Local Delivery. + case local = "LOCAL" + /// Shipping to a Pickup Point. + case pickupPoint = "PICKUP_POINT" + /// None. + case none = "NONE" + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/LanguageCode.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/LanguageCode.graphql.swift index 245b415f..f543c931 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/LanguageCode.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/LanguageCode.graphql.swift @@ -4,297 +4,298 @@ @_spi(Internal) import ApolloAPI extension Storefront { - /// Supported languages for retrieving translated storefront content. Pass a language code to the [`@inContext`](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/in-context) directive to return product titles, descriptions, and other translatable fields in that language. - /// - /// The [`Localization`](https://shopify.dev/docs/api/storefront/current/objects/Localization) object provides the list of available languages for the active country, and each [`Country`](https://shopify.dev/docs/api/storefront/current/objects/Country) in [`availableCountries`](https://shopify.dev/docs/api/storefront/current/objects/Localization#field-Localization.fields.availableCountries) includes its own available languages. - enum LanguageCode: String, EnumType { - /// Afrikaans. - case af = "AF" - /// Akan. - case ak = "AK" - /// Amharic. - case am = "AM" - /// Arabic. - case ar = "AR" - /// Assamese. - case `as` = "AS" - /// Azerbaijani. - case az = "AZ" - /// Belarusian. - case be = "BE" - /// Bulgarian. - case bg = "BG" - /// Bambara. - case bm = "BM" - /// Bangla. - case bn = "BN" - /// Tibetan. - case bo = "BO" - /// Breton. - case br = "BR" - /// Bosnian. - case bs = "BS" - /// Catalan. - case ca = "CA" - /// Chechen. - case ce = "CE" - /// Central Kurdish. - case ckb = "CKB" - /// Czech. - case cs = "CS" - /// Welsh. - case cy = "CY" - /// Danish. - case da = "DA" - /// German. - case de = "DE" - /// Dzongkha. - case dz = "DZ" - /// Ewe. - case ee = "EE" - /// Greek. - case el = "EL" - /// English. - case en = "EN" - /// Esperanto. - case eo = "EO" - /// Spanish. - case es = "ES" - /// Estonian. - case et = "ET" - /// Basque. - case eu = "EU" - /// Persian. - case fa = "FA" - /// Fulah. - case ff = "FF" - /// Finnish. - case fi = "FI" - /// Filipino. - case fil = "FIL" - /// Faroese. - case fo = "FO" - /// French. - case fr = "FR" - /// Western Frisian. - case fy = "FY" - /// Irish. - case ga = "GA" - /// Scottish Gaelic. - case gd = "GD" - /// Galician. - case gl = "GL" - /// Gujarati. - case gu = "GU" - /// Manx. - case gv = "GV" - /// Hausa. - case ha = "HA" - /// Hebrew. - case he = "HE" - /// Hindi. - case hi = "HI" - /// Croatian. - case hr = "HR" - /// Hungarian. - case hu = "HU" - /// Armenian. - case hy = "HY" - /// Interlingua. - case ia = "IA" - /// Indonesian. - case id = "ID" - /// Igbo. - case ig = "IG" - /// Sichuan Yi. - case ii = "II" - /// Icelandic. - case `is` = "IS" - /// Italian. - case it = "IT" - /// Japanese. - case ja = "JA" - /// Javanese. - case jv = "JV" - /// Georgian. - case ka = "KA" - /// Kikuyu. - case ki = "KI" - /// Kazakh. - case kk = "KK" - /// Kalaallisut. - case kl = "KL" - /// Khmer. - case km = "KM" - /// Kannada. - case kn = "KN" - /// Korean. - case ko = "KO" - /// Kashmiri. - case ks = "KS" - /// Kurdish. - case ku = "KU" - /// Cornish. - case kw = "KW" - /// Kyrgyz. - case ky = "KY" - /// Luxembourgish. - case lb = "LB" - /// Ganda. - case lg = "LG" - /// Lingala. - case ln = "LN" - /// Lao. - case lo = "LO" - /// Lithuanian. - case lt = "LT" - /// Luba-Katanga. - case lu = "LU" - /// Latvian. - case lv = "LV" - /// Malagasy. - case mg = "MG" - /// Māori. - case mi = "MI" - /// Macedonian. - case mk = "MK" - /// Malayalam. - case ml = "ML" - /// Mongolian. - case mn = "MN" - /// Marathi. - case mr = "MR" - /// Malay. - case ms = "MS" - /// Maltese. - case mt = "MT" - /// Burmese. - case my = "MY" - /// Norwegian (Bokmål). - case nb = "NB" - /// North Ndebele. - case nd = "ND" - /// Nepali. - case ne = "NE" - /// Dutch. - case nl = "NL" - /// Norwegian Nynorsk. - case nn = "NN" - /// Norwegian. - case no = "NO" - /// Oromo. - case om = "OM" - /// Odia. - case or = "OR" - /// Ossetic. - case os = "OS" - /// Punjabi. - case pa = "PA" - /// Polish. - case pl = "PL" - /// Pashto. - case ps = "PS" - /// Portuguese (Brazil). - case ptBr = "PT_BR" - /// Portuguese (Portugal). - case ptPt = "PT_PT" - /// Quechua. - case qu = "QU" - /// Romansh. - case rm = "RM" - /// Rundi. - case rn = "RN" - /// Romanian. - case ro = "RO" - /// Russian. - case ru = "RU" - /// Kinyarwanda. - case rw = "RW" - /// Sanskrit. - case sa = "SA" - /// Sardinian. - case sc = "SC" - /// Sindhi. - case sd = "SD" - /// Northern Sami. - case se = "SE" - /// Sango. - case sg = "SG" - /// Sinhala. - case si = "SI" - /// Slovak. - case sk = "SK" - /// Slovenian. - case sl = "SL" - /// Shona. - case sn = "SN" - /// Somali. - case so = "SO" - /// Albanian. - case sq = "SQ" - /// Serbian. - case sr = "SR" - /// Sundanese. - case su = "SU" - /// Swedish. - case sv = "SV" - /// Swahili. - case sw = "SW" - /// Tamil. - case ta = "TA" - /// Telugu. - case te = "TE" - /// Tajik. - case tg = "TG" - /// Thai. - case th = "TH" - /// Tigrinya. - case ti = "TI" - /// Turkmen. - case tk = "TK" - /// Tongan. - case to = "TO" - /// Turkish. - case tr = "TR" - /// Tatar. - case tt = "TT" - /// Uyghur. - case ug = "UG" - /// Ukrainian. - case uk = "UK" - /// Urdu. - case ur = "UR" - /// Uzbek. - case uz = "UZ" - /// Vietnamese. - case vi = "VI" - /// Wolof. - case wo = "WO" - /// Xhosa. - case xh = "XH" - /// Yiddish. - case yi = "YI" - /// Yoruba. - case yo = "YO" - /// Chinese (Simplified). - case zhCn = "ZH_CN" - /// Chinese (Traditional). - case zhTw = "ZH_TW" - /// Zulu. - case zu = "ZU" - /// Chinese. - case zh = "ZH" - /// Portuguese. - case pt = "PT" - /// Church Slavic. - case cu = "CU" - /// Volapük. - case vo = "VO" - /// Latin. - case la = "LA" - /// Serbo-Croatian. - case sh = "SH" - /// Moldavian. - case mo = "MO" - } -} + /// Supported languages for retrieving translated storefront content. Pass a language code to the [`@inContext`](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/in-context) directive to return product titles, descriptions, and other translatable fields in that language. + /// + /// The [`Localization`](https://shopify.dev/docs/api/storefront/current/objects/Localization) object provides the list of available languages for the active country, and each [`Country`](https://shopify.dev/docs/api/storefront/current/objects/Country) in [`availableCountries`](https://shopify.dev/docs/api/storefront/current/objects/Localization#field-Localization.fields.availableCountries) includes its own available languages. + enum LanguageCode: String, EnumType { + /// Afrikaans. + case af = "AF" + /// Akan. + case ak = "AK" + /// Amharic. + case am = "AM" + /// Arabic. + case ar = "AR" + /// Assamese. + case `as` = "AS" + /// Azerbaijani. + case az = "AZ" + /// Belarusian. + case be = "BE" + /// Bulgarian. + case bg = "BG" + /// Bambara. + case bm = "BM" + /// Bangla. + case bn = "BN" + /// Tibetan. + case bo = "BO" + /// Breton. + case br = "BR" + /// Bosnian. + case bs = "BS" + /// Catalan. + case ca = "CA" + /// Chechen. + case ce = "CE" + /// Central Kurdish. + case ckb = "CKB" + /// Czech. + case cs = "CS" + /// Welsh. + case cy = "CY" + /// Danish. + case da = "DA" + /// German. + case de = "DE" + /// Dzongkha. + case dz = "DZ" + /// Ewe. + case ee = "EE" + /// Greek. + case el = "EL" + /// English. + case en = "EN" + /// Esperanto. + case eo = "EO" + /// Spanish. + case es = "ES" + /// Estonian. + case et = "ET" + /// Basque. + case eu = "EU" + /// Persian. + case fa = "FA" + /// Fulah. + case ff = "FF" + /// Finnish. + case fi = "FI" + /// Filipino. + case fil = "FIL" + /// Faroese. + case fo = "FO" + /// French. + case fr = "FR" + /// Western Frisian. + case fy = "FY" + /// Irish. + case ga = "GA" + /// Scottish Gaelic. + case gd = "GD" + /// Galician. + case gl = "GL" + /// Gujarati. + case gu = "GU" + /// Manx. + case gv = "GV" + /// Hausa. + case ha = "HA" + /// Hebrew. + case he = "HE" + /// Hindi. + case hi = "HI" + /// Croatian. + case hr = "HR" + /// Hungarian. + case hu = "HU" + /// Armenian. + case hy = "HY" + /// Interlingua. + case ia = "IA" + /// Indonesian. + case id = "ID" + /// Igbo. + case ig = "IG" + /// Sichuan Yi. + case ii = "II" + /// Icelandic. + case `is` = "IS" + /// Italian. + case it = "IT" + /// Japanese. + case ja = "JA" + /// Javanese. + case jv = "JV" + /// Georgian. + case ka = "KA" + /// Kikuyu. + case ki = "KI" + /// Kazakh. + case kk = "KK" + /// Kalaallisut. + case kl = "KL" + /// Khmer. + case km = "KM" + /// Kannada. + case kn = "KN" + /// Korean. + case ko = "KO" + /// Kashmiri. + case ks = "KS" + /// Kurdish. + case ku = "KU" + /// Cornish. + case kw = "KW" + /// Kyrgyz. + case ky = "KY" + /// Luxembourgish. + case lb = "LB" + /// Ganda. + case lg = "LG" + /// Lingala. + case ln = "LN" + /// Lao. + case lo = "LO" + /// Lithuanian. + case lt = "LT" + /// Luba-Katanga. + case lu = "LU" + /// Latvian. + case lv = "LV" + /// Malagasy. + case mg = "MG" + /// Māori. + case mi = "MI" + /// Macedonian. + case mk = "MK" + /// Malayalam. + case ml = "ML" + /// Mongolian. + case mn = "MN" + /// Marathi. + case mr = "MR" + /// Malay. + case ms = "MS" + /// Maltese. + case mt = "MT" + /// Burmese. + case my = "MY" + /// Norwegian (Bokmål). + case nb = "NB" + /// North Ndebele. + case nd = "ND" + /// Nepali. + case ne = "NE" + /// Dutch. + case nl = "NL" + /// Norwegian Nynorsk. + case nn = "NN" + /// Norwegian. + case no = "NO" + /// Oromo. + case om = "OM" + /// Odia. + case or = "OR" + /// Ossetic. + case os = "OS" + /// Punjabi. + case pa = "PA" + /// Polish. + case pl = "PL" + /// Pashto. + case ps = "PS" + /// Portuguese (Brazil). + case ptBr = "PT_BR" + /// Portuguese (Portugal). + case ptPt = "PT_PT" + /// Quechua. + case qu = "QU" + /// Romansh. + case rm = "RM" + /// Rundi. + case rn = "RN" + /// Romanian. + case ro = "RO" + /// Russian. + case ru = "RU" + /// Kinyarwanda. + case rw = "RW" + /// Sanskrit. + case sa = "SA" + /// Sardinian. + case sc = "SC" + /// Sindhi. + case sd = "SD" + /// Northern Sami. + case se = "SE" + /// Sango. + case sg = "SG" + /// Sinhala. + case si = "SI" + /// Slovak. + case sk = "SK" + /// Slovenian. + case sl = "SL" + /// Shona. + case sn = "SN" + /// Somali. + case so = "SO" + /// Albanian. + case sq = "SQ" + /// Serbian. + case sr = "SR" + /// Sundanese. + case su = "SU" + /// Swedish. + case sv = "SV" + /// Swahili. + case sw = "SW" + /// Tamil. + case ta = "TA" + /// Telugu. + case te = "TE" + /// Tajik. + case tg = "TG" + /// Thai. + case th = "TH" + /// Tigrinya. + case ti = "TI" + /// Turkmen. + case tk = "TK" + /// Tongan. + case to = "TO" + /// Turkish. + case tr = "TR" + /// Tatar. + case tt = "TT" + /// Uyghur. + case ug = "UG" + /// Ukrainian. + case uk = "UK" + /// Urdu. + case ur = "UR" + /// Uzbek. + case uz = "UZ" + /// Vietnamese. + case vi = "VI" + /// Wolof. + case wo = "WO" + /// Xhosa. + case xh = "XH" + /// Yiddish. + case yi = "YI" + /// Yoruba. + case yo = "YO" + /// Chinese (Simplified). + case zhCn = "ZH_CN" + /// Chinese (Traditional). + case zhTw = "ZH_TW" + /// Zulu. + case zu = "ZU" + /// Chinese. + case zh = "ZH" + /// Portuguese. + case pt = "PT" + /// Church Slavic. + case cu = "CU" + /// Volapük. + case vo = "VO" + /// Latin. + case la = "LA" + /// Serbo-Croatian. + case sh = "SH" + /// Moldavian. + case mo = "MO" + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/PreferenceDeliveryMethodType.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/PreferenceDeliveryMethodType.graphql.swift index 6ab63f63..a5485f8e 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/PreferenceDeliveryMethodType.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Enums/PreferenceDeliveryMethodType.graphql.swift @@ -4,13 +4,14 @@ @_spi(Internal) import ApolloAPI extension Storefront { - /// The preferred delivery methods such as shipping, local pickup or through pickup points. - enum PreferenceDeliveryMethodType: String, EnumType { - /// A delivery method used to send items directly to a buyer’s specified address. - case shipping = "SHIPPING" - /// A delivery method used to let buyers receive items directly from a specific location within an area. - case pickUp = "PICK_UP" - /// A delivery method used to let buyers collect purchases at designated locations like parcel lockers. - case pickupPoint = "PICKUP_POINT" - } -} + /// The preferred delivery methods such as shipping, local pickup or through pickup points. + enum PreferenceDeliveryMethodType: String, EnumType { + /// A delivery method used to send items directly to a buyer’s specified address. + case shipping = "SHIPPING" + /// A delivery method used to let buyers receive items directly from a specific location within an area. + case pickUp = "PICK_UP" + /// A delivery method used to let buyers collect purchases at designated locations like parcel lockers. + case pickupPoint = "PICKUP_POINT" + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/AttributeInput.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/AttributeInput.graphql.swift index 11058cc4..913d9702 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/AttributeInput.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/AttributeInput.graphql.swift @@ -4,34 +4,35 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// A custom key-value pair that stores additional information on a [cart](https://shopify.dev/docs/api/storefront/current/objects/Cart) or [cart line](https://shopify.dev/docs/api/storefront/current/objects/CartLine). Attributes capture additional information like gift messages, special instructions, or custom order details. Learn more about [managing carts with the Storefront API](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/cart/manage). - struct AttributeInput: InputObject { - private(set) var __data: InputDict + /// A custom key-value pair that stores additional information on a [cart](https://shopify.dev/docs/api/storefront/current/objects/Cart) or [cart line](https://shopify.dev/docs/api/storefront/current/objects/CartLine). Attributes capture additional information like gift messages, special instructions, or custom order details. Learn more about [managing carts with the Storefront API](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/cart/manage). + struct AttributeInput: InputObject { + private(set) var __data: InputDict - init(_ data: InputDict) { - __data = data - } + init(_ data: InputDict) { + __data = data + } - init( - key: String, - value: String - ) { - __data = InputDict([ - "key": key, - "value": value - ]) - } + init( + key: String, + value: String + ) { + __data = InputDict([ + "key": key, + "value": value + ]) + } - /// Key or name of the attribute. - var key: String { - get { __data["key"] } - set { __data["key"] = newValue } - } + /// Key or name of the attribute. + var key: String { + get { __data["key"] } + set { __data["key"] = newValue } + } - /// Value of the attribute. - var value: String { - get { __data["value"] } - set { __data["value"] = newValue } - } + /// Value of the attribute. + var value: String { + get { __data["value"] } + set { __data["value"] = newValue } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartAddressInput.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartAddressInput.graphql.swift index acc3c221..8c57e052 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartAddressInput.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartAddressInput.graphql.swift @@ -4,34 +4,35 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// Specifies a delivery address for a cart. Provide either a [`deliveryAddress`](https://shopify.dev/docs/api/storefront/current/input-objects/CartAddressInput#fields-deliveryAddress) with full address details, or a [`copyFromCustomerAddressId`](https://shopify.dev/docs/api/storefront/current/input-objects/CartAddressInput#fields-copyFromCustomerAddressId) to copy from an existing customer address. Used by [`CartSelectableAddressInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartSelectableAddressInput) and [`CartSelectableAddressUpdateInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartSelectableAddressUpdateInput). - struct CartAddressInput: InputObject { - private(set) var __data: InputDict + /// Specifies a delivery address for a cart. Provide either a [`deliveryAddress`](https://shopify.dev/docs/api/storefront/current/input-objects/CartAddressInput#fields-deliveryAddress) with full address details, or a [`copyFromCustomerAddressId`](https://shopify.dev/docs/api/storefront/current/input-objects/CartAddressInput#fields-copyFromCustomerAddressId) to copy from an existing customer address. Used by [`CartSelectableAddressInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartSelectableAddressInput) and [`CartSelectableAddressUpdateInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartSelectableAddressUpdateInput). + struct CartAddressInput: InputObject { + private(set) var __data: InputDict - init(_ data: InputDict) { - __data = data - } + init(_ data: InputDict) { + __data = data + } - init( - deliveryAddress: GraphQLNullable = nil, - copyFromCustomerAddressId: GraphQLNullable = nil - ) { - __data = InputDict([ - "deliveryAddress": deliveryAddress, - "copyFromCustomerAddressId": copyFromCustomerAddressId - ]) - } + init( + deliveryAddress: GraphQLNullable = nil, + copyFromCustomerAddressId: GraphQLNullable = nil + ) { + __data = InputDict([ + "deliveryAddress": deliveryAddress, + "copyFromCustomerAddressId": copyFromCustomerAddressId + ]) + } - /// A delivery address stored on this cart. - var deliveryAddress: GraphQLNullable { - get { __data["deliveryAddress"] } - set { __data["deliveryAddress"] = newValue } - } + /// A delivery address stored on this cart. + var deliveryAddress: GraphQLNullable { + get { __data["deliveryAddress"] } + set { __data["deliveryAddress"] = newValue } + } - /// Copies details from the customer address to an address on this cart. - var copyFromCustomerAddressId: GraphQLNullable { - get { __data["copyFromCustomerAddressId"] } - set { __data["copyFromCustomerAddressId"] = newValue } - } + /// Copies details from the customer address to an address on this cart. + var copyFromCustomerAddressId: GraphQLNullable { + get { __data["copyFromCustomerAddressId"] } + set { __data["copyFromCustomerAddressId"] = newValue } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartBuyerIdentityInput.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartBuyerIdentityInput.graphql.swift index e2cdd085..c2d518b4 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartBuyerIdentityInput.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartBuyerIdentityInput.graphql.swift @@ -4,72 +4,73 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// The input fields for identifying the buyer associated with a cart. Buyer identity determines [international pricing](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets/international-pricing) and should match the customer's shipping address. - /// - /// Used by [`cartCreate`](https://shopify.dev/docs/api/storefront/current/mutations/cartCreate) and [`cartBuyerIdentityUpdate`](https://shopify.dev/docs/api/storefront/current/mutations/cartBuyerIdentityUpdate) to set contact information, location, and checkout preferences. - /// - /// > Note: - /// > Preferences prefill fields at checkout but don't sync back to the cart if overwritten. - struct CartBuyerIdentityInput: InputObject { - private(set) var __data: InputDict + /// The input fields for identifying the buyer associated with a cart. Buyer identity determines [international pricing](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets/international-pricing) and should match the customer's shipping address. + /// + /// Used by [`cartCreate`](https://shopify.dev/docs/api/storefront/current/mutations/cartCreate) and [`cartBuyerIdentityUpdate`](https://shopify.dev/docs/api/storefront/current/mutations/cartBuyerIdentityUpdate) to set contact information, location, and checkout preferences. + /// + /// > Note: + /// > Preferences prefill fields at checkout but don't sync back to the cart if overwritten. + struct CartBuyerIdentityInput: InputObject { + private(set) var __data: InputDict - init(_ data: InputDict) { - __data = data - } + init(_ data: InputDict) { + __data = data + } - init( - email: GraphQLNullable = nil, - phone: GraphQLNullable = nil, - companyLocationId: GraphQLNullable = nil, - countryCode: GraphQLNullable> = nil, - customerAccessToken: GraphQLNullable = nil, - preferences: GraphQLNullable = nil - ) { - __data = InputDict([ - "email": email, - "phone": phone, - "companyLocationId": companyLocationId, - "countryCode": countryCode, - "customerAccessToken": customerAccessToken, - "preferences": preferences - ]) - } + init( + email: GraphQLNullable = nil, + phone: GraphQLNullable = nil, + companyLocationId: GraphQLNullable = nil, + countryCode: GraphQLNullable> = nil, + customerAccessToken: GraphQLNullable = nil, + preferences: GraphQLNullable = nil + ) { + __data = InputDict([ + "email": email, + "phone": phone, + "companyLocationId": companyLocationId, + "countryCode": countryCode, + "customerAccessToken": customerAccessToken, + "preferences": preferences + ]) + } - /// The email address of the buyer that is interacting with the cart. - var email: GraphQLNullable { - get { __data["email"] } - set { __data["email"] = newValue } - } + /// The email address of the buyer that is interacting with the cart. + var email: GraphQLNullable { + get { __data["email"] } + set { __data["email"] = newValue } + } - /// The phone number of the buyer that is interacting with the cart. - var phone: GraphQLNullable { - get { __data["phone"] } - set { __data["phone"] = newValue } - } + /// The phone number of the buyer that is interacting with the cart. + var phone: GraphQLNullable { + get { __data["phone"] } + set { __data["phone"] = newValue } + } - /// The company location of the buyer that is interacting with the cart. - var companyLocationId: GraphQLNullable { - get { __data["companyLocationId"] } - set { __data["companyLocationId"] = newValue } - } + /// The company location of the buyer that is interacting with the cart. + var companyLocationId: GraphQLNullable { + get { __data["companyLocationId"] } + set { __data["companyLocationId"] = newValue } + } - /// The country where the buyer is located. - var countryCode: GraphQLNullable> { - get { __data["countryCode"] } - set { __data["countryCode"] = newValue } - } + /// The country where the buyer is located. + var countryCode: GraphQLNullable> { + get { __data["countryCode"] } + set { __data["countryCode"] = newValue } + } - /// The access token used to identify the customer associated with the cart. - var customerAccessToken: GraphQLNullable { - get { __data["customerAccessToken"] } - set { __data["customerAccessToken"] = newValue } - } + /// The access token used to identify the customer associated with the cart. + var customerAccessToken: GraphQLNullable { + get { __data["customerAccessToken"] } + set { __data["customerAccessToken"] = newValue } + } - /// A set of preferences tied to the buyer interacting with the cart. Preferences are used to prefill fields in at checkout to streamline information collection. - /// Preferences are not synced back to the cart if they are overwritten. - var preferences: GraphQLNullable { - get { __data["preferences"] } - set { __data["preferences"] = newValue } - } + /// A set of preferences tied to the buyer interacting with the cart. Preferences are used to prefill fields in at checkout to streamline information collection. + /// Preferences are not synced back to the cart if they are overwritten. + var preferences: GraphQLNullable { + get { __data["preferences"] } + set { __data["preferences"] = newValue } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartDeliveryAddressInput.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartDeliveryAddressInput.graphql.swift index 2513370b..caeb8cc8 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartDeliveryAddressInput.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartDeliveryAddressInput.graphql.swift @@ -4,100 +4,101 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// The input fields to create or update a cart address. - struct CartDeliveryAddressInput: InputObject { - private(set) var __data: InputDict + /// The input fields to create or update a cart address. + struct CartDeliveryAddressInput: InputObject { + private(set) var __data: InputDict - init(_ data: InputDict) { - __data = data - } + init(_ data: InputDict) { + __data = data + } - init( - address1: GraphQLNullable = nil, - address2: GraphQLNullable = nil, - city: GraphQLNullable = nil, - company: GraphQLNullable = nil, - countryCode: GraphQLNullable> = nil, - firstName: GraphQLNullable = nil, - lastName: GraphQLNullable = nil, - phone: GraphQLNullable = nil, - provinceCode: GraphQLNullable = nil, - zip: GraphQLNullable = nil - ) { - __data = InputDict([ - "address1": address1, - "address2": address2, - "city": city, - "company": company, - "countryCode": countryCode, - "firstName": firstName, - "lastName": lastName, - "phone": phone, - "provinceCode": provinceCode, - "zip": zip - ]) - } + init( + address1: GraphQLNullable = nil, + address2: GraphQLNullable = nil, + city: GraphQLNullable = nil, + company: GraphQLNullable = nil, + countryCode: GraphQLNullable> = nil, + firstName: GraphQLNullable = nil, + lastName: GraphQLNullable = nil, + phone: GraphQLNullable = nil, + provinceCode: GraphQLNullable = nil, + zip: GraphQLNullable = nil + ) { + __data = InputDict([ + "address1": address1, + "address2": address2, + "city": city, + "company": company, + "countryCode": countryCode, + "firstName": firstName, + "lastName": lastName, + "phone": phone, + "provinceCode": provinceCode, + "zip": zip + ]) + } - /// The first line of the address. Typically the street address or PO Box number. - var address1: GraphQLNullable { - get { __data["address1"] } - set { __data["address1"] = newValue } - } + /// The first line of the address. Typically the street address or PO Box number. + var address1: GraphQLNullable { + get { __data["address1"] } + set { __data["address1"] = newValue } + } - /// The second line of the address. Typically the number of the apartment, suite, or unit. - var address2: GraphQLNullable { - get { __data["address2"] } - set { __data["address2"] = newValue } - } + /// The second line of the address. Typically the number of the apartment, suite, or unit. + var address2: GraphQLNullable { + get { __data["address2"] } + set { __data["address2"] = newValue } + } - /// The name of the city, district, village, or town. - var city: GraphQLNullable { - get { __data["city"] } - set { __data["city"] = newValue } - } + /// The name of the city, district, village, or town. + var city: GraphQLNullable { + get { __data["city"] } + set { __data["city"] = newValue } + } - /// The name of the customer's company or organization. - var company: GraphQLNullable { - get { __data["company"] } - set { __data["company"] = newValue } - } + /// The name of the customer's company or organization. + var company: GraphQLNullable { + get { __data["company"] } + set { __data["company"] = newValue } + } - /// The name of the country. - var countryCode: GraphQLNullable> { - get { __data["countryCode"] } - set { __data["countryCode"] = newValue } - } + /// The name of the country. + var countryCode: GraphQLNullable> { + get { __data["countryCode"] } + set { __data["countryCode"] = newValue } + } - /// The first name of the customer. - var firstName: GraphQLNullable { - get { __data["firstName"] } - set { __data["firstName"] = newValue } - } + /// The first name of the customer. + var firstName: GraphQLNullable { + get { __data["firstName"] } + set { __data["firstName"] = newValue } + } - /// The last name of the customer. - var lastName: GraphQLNullable { - get { __data["lastName"] } - set { __data["lastName"] = newValue } - } + /// The last name of the customer. + var lastName: GraphQLNullable { + get { __data["lastName"] } + set { __data["lastName"] = newValue } + } - /// A unique phone number for the customer. - /// - /// Formatted using E.164 standard. For example, _+16135551111_. - var phone: GraphQLNullable { - get { __data["phone"] } - set { __data["phone"] = newValue } - } + /// A unique phone number for the customer. + /// + /// Formatted using E.164 standard. For example, _+16135551111_. + var phone: GraphQLNullable { + get { __data["phone"] } + set { __data["phone"] = newValue } + } - /// The region of the address, such as the province, state, or district. - var provinceCode: GraphQLNullable { - get { __data["provinceCode"] } - set { __data["provinceCode"] = newValue } - } + /// The region of the address, such as the province, state, or district. + var provinceCode: GraphQLNullable { + get { __data["provinceCode"] } + set { __data["provinceCode"] = newValue } + } - /// The zip or postal code of the address. - var zip: GraphQLNullable { - get { __data["zip"] } - set { __data["zip"] = newValue } - } + /// The zip or postal code of the address. + var zip: GraphQLNullable { + get { __data["zip"] } + set { __data["zip"] = newValue } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartDeliveryCoordinatesPreferenceInput.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartDeliveryCoordinatesPreferenceInput.graphql.swift index eb0f0c3e..69435f27 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartDeliveryCoordinatesPreferenceInput.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartDeliveryCoordinatesPreferenceInput.graphql.swift @@ -4,44 +4,45 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// Preferred location used to find the closest pick up point based on coordinates. - struct CartDeliveryCoordinatesPreferenceInput: InputObject { - private(set) var __data: InputDict - - init(_ data: InputDict) { - __data = data - } - - init( - latitude: Double, - longitude: Double, - countryCode: GraphQLEnum - ) { - __data = InputDict([ - "latitude": latitude, - "longitude": longitude, - "countryCode": countryCode - ]) - } - - /// The geographic latitude for a given location. Coordinates are required in order to set pickUpHandle for pickup points. - var latitude: Double { - get { __data["latitude"] } - set { __data["latitude"] = newValue } - } - - /// The geographic longitude for a given location. Coordinates are required in order to set pickUpHandle for pickup points. - var longitude: Double { - get { __data["longitude"] } - set { __data["longitude"] = newValue } - } - - /// The two-letter code for the country of the preferred location. - /// - /// For example, US. - var countryCode: GraphQLEnum { - get { __data["countryCode"] } - set { __data["countryCode"] = newValue } - } + /// Preferred location used to find the closest pick up point based on coordinates. + struct CartDeliveryCoordinatesPreferenceInput: InputObject { + private(set) var __data: InputDict + + init(_ data: InputDict) { + __data = data + } + + init( + latitude: Double, + longitude: Double, + countryCode: GraphQLEnum + ) { + __data = InputDict([ + "latitude": latitude, + "longitude": longitude, + "countryCode": countryCode + ]) + } + + /// The geographic latitude for a given location. Coordinates are required in order to set pickUpHandle for pickup points. + var latitude: Double { + get { __data["latitude"] } + set { __data["latitude"] = newValue } } -} + + /// The geographic longitude for a given location. Coordinates are required in order to set pickUpHandle for pickup points. + var longitude: Double { + get { __data["longitude"] } + set { __data["longitude"] = newValue } + } + + /// The two-letter code for the country of the preferred location. + /// + /// For example, US. + var countryCode: GraphQLEnum { + get { __data["countryCode"] } + set { __data["countryCode"] = newValue } + } + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartDeliveryInput.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartDeliveryInput.graphql.swift index 19432992..0a029213 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartDeliveryInput.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartDeliveryInput.graphql.swift @@ -4,28 +4,29 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// The input fields for the cart's delivery properties. - struct CartDeliveryInput: InputObject { - private(set) var __data: InputDict + /// The input fields for the cart's delivery properties. + struct CartDeliveryInput: InputObject { + private(set) var __data: InputDict - init(_ data: InputDict) { - __data = data - } + init(_ data: InputDict) { + __data = data + } - init( - addresses: GraphQLNullable<[CartSelectableAddressInput]> = nil - ) { - __data = InputDict([ - "addresses": addresses - ]) - } + init( + addresses: GraphQLNullable<[CartSelectableAddressInput]> = nil + ) { + __data = InputDict([ + "addresses": addresses + ]) + } - /// Selectable addresses to present to the buyer on the cart. - /// - /// The input must not contain more than `250` values. - var addresses: GraphQLNullable<[CartSelectableAddressInput]> { - get { __data["addresses"] } - set { __data["addresses"] = newValue } - } + /// Selectable addresses to present to the buyer on the cart. + /// + /// The input must not contain more than `250` values. + var addresses: GraphQLNullable<[CartSelectableAddressInput]> { + get { __data["addresses"] } + set { __data["addresses"] = newValue } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartDeliveryPreferenceInput.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartDeliveryPreferenceInput.graphql.swift index 7ccd890c..79717c62 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartDeliveryPreferenceInput.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartDeliveryPreferenceInput.graphql.swift @@ -4,47 +4,48 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// Delivery preferences can be used to prefill the delivery section at checkout. - struct CartDeliveryPreferenceInput: InputObject { - private(set) var __data: InputDict - - init(_ data: InputDict) { - __data = data - } - - init( - deliveryMethod: GraphQLNullable<[GraphQLEnum]> = nil, - pickupHandle: GraphQLNullable<[String]> = nil, - coordinates: GraphQLNullable = nil - ) { - __data = InputDict([ - "deliveryMethod": deliveryMethod, - "pickupHandle": pickupHandle, - "coordinates": coordinates - ]) - } - - /// The preferred delivery methods such as shipping, local pickup or through pickup points. - /// - /// The input must not contain more than `250` values. - var deliveryMethod: GraphQLNullable<[GraphQLEnum]> { - get { __data["deliveryMethod"] } - set { __data["deliveryMethod"] = newValue } - } - - /// The pickup handle prefills checkout fields with the location for either local pickup or pickup points delivery methods. - /// It accepts both location ID for local pickup and external IDs for pickup points. - /// - /// The input must not contain more than `250` values. - var pickupHandle: GraphQLNullable<[String]> { - get { __data["pickupHandle"] } - set { __data["pickupHandle"] = newValue } - } - - /// The coordinates of a delivery location in order of preference. - var coordinates: GraphQLNullable { - get { __data["coordinates"] } - set { __data["coordinates"] = newValue } - } + /// Delivery preferences can be used to prefill the delivery section at checkout. + struct CartDeliveryPreferenceInput: InputObject { + private(set) var __data: InputDict + + init(_ data: InputDict) { + __data = data + } + + init( + deliveryMethod: GraphQLNullable<[GraphQLEnum]> = nil, + pickupHandle: GraphQLNullable<[String]> = nil, + coordinates: GraphQLNullable = nil + ) { + __data = InputDict([ + "deliveryMethod": deliveryMethod, + "pickupHandle": pickupHandle, + "coordinates": coordinates + ]) + } + + /// The preferred delivery methods such as shipping, local pickup or through pickup points. + /// + /// The input must not contain more than `250` values. + var deliveryMethod: GraphQLNullable<[GraphQLEnum]> { + get { __data["deliveryMethod"] } + set { __data["deliveryMethod"] = newValue } } -} + + /// The pickup handle prefills checkout fields with the location for either local pickup or pickup points delivery methods. + /// It accepts both location ID for local pickup and external IDs for pickup points. + /// + /// The input must not contain more than `250` values. + var pickupHandle: GraphQLNullable<[String]> { + get { __data["pickupHandle"] } + set { __data["pickupHandle"] = newValue } + } + + /// The coordinates of a delivery location in order of preference. + var coordinates: GraphQLNullable { + get { __data["coordinates"] } + set { __data["coordinates"] = newValue } + } + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartInput.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartInput.graphql.swift index 7faf377f..a2d719d4 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartInput.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartInput.graphql.swift @@ -4,96 +4,97 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// The input fields for creating a [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart). Used by the [`cartCreate`](https://shopify.dev/docs/api/storefront/current/mutations/cartCreate) mutation. - /// - /// Accepts merchandise lines, discount codes, gift card codes, and a note. You can also set custom attributes, metafields, buyer identity for international pricing, and delivery addresses. - struct CartInput: InputObject { - private(set) var __data: InputDict + /// The input fields for creating a [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart). Used by the [`cartCreate`](https://shopify.dev/docs/api/storefront/current/mutations/cartCreate) mutation. + /// + /// Accepts merchandise lines, discount codes, gift card codes, and a note. You can also set custom attributes, metafields, buyer identity for international pricing, and delivery addresses. + struct CartInput: InputObject { + private(set) var __data: InputDict - init(_ data: InputDict) { - __data = data - } + init(_ data: InputDict) { + __data = data + } - init( - attributes: GraphQLNullable<[AttributeInput]> = nil, - lines: GraphQLNullable<[CartLineInput]> = nil, - discountCodes: GraphQLNullable<[String]> = nil, - giftCardCodes: GraphQLNullable<[String]> = nil, - note: GraphQLNullable = nil, - buyerIdentity: GraphQLNullable = nil, - delivery: GraphQLNullable = nil, - metafields: GraphQLNullable<[CartInputMetafieldInput]> = nil - ) { - __data = InputDict([ - "attributes": attributes, - "lines": lines, - "discountCodes": discountCodes, - "giftCardCodes": giftCardCodes, - "note": note, - "buyerIdentity": buyerIdentity, - "delivery": delivery, - "metafields": metafields - ]) - } + init( + attributes: GraphQLNullable<[AttributeInput]> = nil, + lines: GraphQLNullable<[CartLineInput]> = nil, + discountCodes: GraphQLNullable<[String]> = nil, + giftCardCodes: GraphQLNullable<[String]> = nil, + note: GraphQLNullable = nil, + buyerIdentity: GraphQLNullable = nil, + delivery: GraphQLNullable = nil, + metafields: GraphQLNullable<[CartInputMetafieldInput]> = nil + ) { + __data = InputDict([ + "attributes": attributes, + "lines": lines, + "discountCodes": discountCodes, + "giftCardCodes": giftCardCodes, + "note": note, + "buyerIdentity": buyerIdentity, + "delivery": delivery, + "metafields": metafields + ]) + } - /// An array of key-value pairs that contains additional information about the cart. - /// - /// The input must not contain more than `250` values. - var attributes: GraphQLNullable<[AttributeInput]> { - get { __data["attributes"] } - set { __data["attributes"] = newValue } - } + /// An array of key-value pairs that contains additional information about the cart. + /// + /// The input must not contain more than `250` values. + var attributes: GraphQLNullable<[AttributeInput]> { + get { __data["attributes"] } + set { __data["attributes"] = newValue } + } - /// A list of merchandise lines to add to the cart. - /// - /// The input must not contain more than `250` values. - var lines: GraphQLNullable<[CartLineInput]> { - get { __data["lines"] } - set { __data["lines"] = newValue } - } + /// A list of merchandise lines to add to the cart. + /// + /// The input must not contain more than `250` values. + var lines: GraphQLNullable<[CartLineInput]> { + get { __data["lines"] } + set { __data["lines"] = newValue } + } - /// The case-insensitive discount codes that the customer added at checkout. - /// - /// The input must not contain more than `250` values. - var discountCodes: GraphQLNullable<[String]> { - get { __data["discountCodes"] } - set { __data["discountCodes"] = newValue } - } + /// The case-insensitive discount codes that the customer added at checkout. + /// + /// The input must not contain more than `250` values. + var discountCodes: GraphQLNullable<[String]> { + get { __data["discountCodes"] } + set { __data["discountCodes"] = newValue } + } - /// The case-insensitive gift card codes. - /// - /// The input must not contain more than `250` values. - var giftCardCodes: GraphQLNullable<[String]> { - get { __data["giftCardCodes"] } - set { __data["giftCardCodes"] = newValue } - } + /// The case-insensitive gift card codes. + /// + /// The input must not contain more than `250` values. + var giftCardCodes: GraphQLNullable<[String]> { + get { __data["giftCardCodes"] } + set { __data["giftCardCodes"] = newValue } + } - /// A note that's associated with the cart. For example, the note can be a personalized message to the buyer. - var note: GraphQLNullable { - get { __data["note"] } - set { __data["note"] = newValue } - } + /// A note that's associated with the cart. For example, the note can be a personalized message to the buyer. + var note: GraphQLNullable { + get { __data["note"] } + set { __data["note"] = newValue } + } - /// The customer associated with the cart. Used to determine [international pricing] - /// (https://shopify.dev/custom-storefronts/internationalization/international-pricing). - /// Buyer identity should match the customer's shipping address. - var buyerIdentity: GraphQLNullable { - get { __data["buyerIdentity"] } - set { __data["buyerIdentity"] = newValue } - } + /// The customer associated with the cart. Used to determine [international pricing] + /// (https://shopify.dev/custom-storefronts/internationalization/international-pricing). + /// Buyer identity should match the customer's shipping address. + var buyerIdentity: GraphQLNullable { + get { __data["buyerIdentity"] } + set { __data["buyerIdentity"] = newValue } + } - /// The delivery-related fields for the cart. - var delivery: GraphQLNullable { - get { __data["delivery"] } - set { __data["delivery"] = newValue } - } + /// The delivery-related fields for the cart. + var delivery: GraphQLNullable { + get { __data["delivery"] } + set { __data["delivery"] = newValue } + } - /// The metafields to associate with this cart. - /// - /// The input must not contain more than `250` values. - var metafields: GraphQLNullable<[CartInputMetafieldInput]> { - get { __data["metafields"] } - set { __data["metafields"] = newValue } - } + /// The metafields to associate with this cart. + /// + /// The input must not contain more than `250` values. + var metafields: GraphQLNullable<[CartInputMetafieldInput]> { + get { __data["metafields"] } + set { __data["metafields"] = newValue } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartInputMetafieldInput.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartInputMetafieldInput.graphql.swift index 353b89f0..5437aec6 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartInputMetafieldInput.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartInputMetafieldInput.graphql.swift @@ -4,45 +4,46 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// The input fields for a cart metafield value to set. - /// - /// Cart metafields will be copied to order metafields at order creation time if there is a matching order metafield definition with the [`cart to order copyable`](https://shopify.dev/docs/apps/build/metafields/use-metafield-capabilities#cart-to-order-copyable) capability enabled. - struct CartInputMetafieldInput: InputObject { - private(set) var __data: InputDict - - init(_ data: InputDict) { - __data = data - } - - init( - key: String, - value: String, - type: String - ) { - __data = InputDict([ - "key": key, - "value": value, - "type": type - ]) - } - - /// The key name of the metafield. - var key: String { - get { __data["key"] } - set { __data["key"] = newValue } - } - - /// The data to store in the cart metafield. The data is always stored as a string, regardless of the metafield's type. - var value: String { - get { __data["value"] } - set { __data["value"] = newValue } - } - - /// The type of data that the cart metafield stores. - /// The type of data must be a [supported type](https://shopify.dev/apps/metafields/types). - var type: String { - get { __data["type"] } - set { __data["type"] = newValue } - } + /// The input fields for a cart metafield value to set. + /// + /// Cart metafields will be copied to order metafields at order creation time if there is a matching order metafield definition with the [`cart to order copyable`](https://shopify.dev/docs/apps/build/metafields/use-metafield-capabilities#cart-to-order-copyable) capability enabled. + struct CartInputMetafieldInput: InputObject { + private(set) var __data: InputDict + + init(_ data: InputDict) { + __data = data + } + + init( + key: String, + value: String, + type: String + ) { + __data = InputDict([ + "key": key, + "value": value, + "type": type + ]) + } + + /// The key name of the metafield. + var key: String { + get { __data["key"] } + set { __data["key"] = newValue } } -} + + /// The data to store in the cart metafield. The data is always stored as a string, regardless of the metafield's type. + var value: String { + get { __data["value"] } + set { __data["value"] = newValue } + } + + /// The type of data that the cart metafield stores. + /// The type of data must be a [supported type](https://shopify.dev/apps/metafields/types). + var type: String { + get { __data["type"] } + set { __data["type"] = newValue } + } + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartLineInput.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartLineInput.graphql.swift index bee7ff32..a2374a9b 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartLineInput.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartLineInput.graphql.swift @@ -4,54 +4,63 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// The input fields for adding a merchandise line to a cart. Each line represents a [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) the buyer intends to purchase, along with the quantity and optional [`SellingPlan`](https://shopify.dev/docs/api/storefront/current/objects/SellingPlan) for subscriptions. + /// The input fields for adding a merchandise line to a cart. Each line represents a [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) the buyer intends to purchase, along with the quantity and optional [`SellingPlan`](https://shopify.dev/docs/api/storefront/current/objects/SellingPlan) for subscriptions. + /// + /// Used by the [`cartCreate`](https://shopify.dev/docs/api/storefront/current/mutations/cartCreate) mutation when creating a cart with initial items, and the [`cartLinesAdd`](https://shopify.dev/docs/api/storefront/current/mutations/cartLinesAdd) mutation when adding items to an existing cart. + struct CartLineInput: InputObject { + private(set) var __data: InputDict + + init(_ data: InputDict) { + __data = data + } + + init( + attributes: GraphQLNullable<[AttributeInput]> = nil, + quantity: GraphQLNullable = nil, + merchandiseId: ID, + sellingPlanId: GraphQLNullable = nil, + parent: GraphQLNullable = nil + ) { + __data = InputDict([ + "attributes": attributes, + "quantity": quantity, + "merchandiseId": merchandiseId, + "sellingPlanId": sellingPlanId, + "parent": parent + ]) + } + + /// An array of key-value pairs that contains additional information about the merchandise line. /// - /// Used by the [`cartCreate`](https://shopify.dev/docs/api/storefront/current/mutations/cartCreate) mutation when creating a cart with initial items, and the [`cartLinesAdd`](https://shopify.dev/docs/api/storefront/current/mutations/cartLinesAdd) mutation when adding items to an existing cart. - struct CartLineInput: InputObject { - private(set) var __data: InputDict - - init(_ data: InputDict) { - __data = data - } - - init( - attributes: GraphQLNullable<[AttributeInput]> = nil, - quantity: GraphQLNullable = nil, - merchandiseId: ID, - sellingPlanId: GraphQLNullable = nil - ) { - __data = InputDict([ - "attributes": attributes, - "quantity": quantity, - "merchandiseId": merchandiseId, - "sellingPlanId": sellingPlanId - ]) - } - - /// An array of key-value pairs that contains additional information about the merchandise line. - /// - /// The input must not contain more than `250` values. - var attributes: GraphQLNullable<[AttributeInput]> { - get { __data["attributes"] } - set { __data["attributes"] = newValue } - } - - /// The quantity of the merchandise. - var quantity: GraphQLNullable { - get { __data["quantity"] } - set { __data["quantity"] = newValue } - } - - /// The ID of the merchandise that the buyer intends to purchase. - var merchandiseId: ID { - get { __data["merchandiseId"] } - set { __data["merchandiseId"] = newValue } - } - - /// The ID of the selling plan that the merchandise is being purchased with. - var sellingPlanId: GraphQLNullable { - get { __data["sellingPlanId"] } - set { __data["sellingPlanId"] = newValue } - } + /// The input must not contain more than `250` values. + var attributes: GraphQLNullable<[AttributeInput]> { + get { __data["attributes"] } + set { __data["attributes"] = newValue } + } + + /// The quantity of the merchandise. + var quantity: GraphQLNullable { + get { __data["quantity"] } + set { __data["quantity"] = newValue } } -} + + /// The ID of the merchandise that the buyer intends to purchase. + var merchandiseId: ID { + get { __data["merchandiseId"] } + set { __data["merchandiseId"] = newValue } + } + + /// The ID of the selling plan that the merchandise is being purchased with. + var sellingPlanId: GraphQLNullable { + get { __data["sellingPlanId"] } + set { __data["sellingPlanId"] = newValue } + } + + /// The parent line item of the cart line. + var parent: GraphQLNullable { + get { __data["parent"] } + set { __data["parent"] = newValue } + } + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartLineParentInput.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartLineParentInput.graphql.swift new file mode 100644 index 00000000..f4545a90 --- /dev/null +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartLineParentInput.graphql.swift @@ -0,0 +1,38 @@ +// @generated +// This file was automatically generated and should not be edited. + +@_spi(Internal) @_spi(Unsafe) import ApolloAPI + +extension Storefront { + /// The parent line item of the cart line. + struct CartLineParentInput: InputObject { + private(set) var __data: InputDict + + init(_ data: InputDict) { + __data = data + } + + init( + lineId: GraphQLNullable = nil, + merchandiseId: GraphQLNullable = nil + ) { + __data = InputDict([ + "lineId": lineId, + "merchandiseId": merchandiseId + ]) + } + + /// The id of the parent line item. + var lineId: GraphQLNullable { + get { __data["lineId"] } + set { __data["lineId"] = newValue } + } + + /// The ID of the parent line merchandise. + var merchandiseId: GraphQLNullable { + get { __data["merchandiseId"] } + set { __data["merchandiseId"] = newValue } + } + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartPreferencesInput.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartPreferencesInput.graphql.swift index da09e7e9..9245fff6 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartPreferencesInput.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartPreferencesInput.graphql.swift @@ -4,37 +4,38 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// The input fields represent preferences for the buyer that is interacting with the cart. - struct CartPreferencesInput: InputObject { - private(set) var __data: InputDict + /// The input fields represent preferences for the buyer that is interacting with the cart. + struct CartPreferencesInput: InputObject { + private(set) var __data: InputDict - init(_ data: InputDict) { - __data = data - } + init(_ data: InputDict) { + __data = data + } - init( - delivery: GraphQLNullable = nil, - wallet: GraphQLNullable<[String]> = nil - ) { - __data = InputDict([ - "delivery": delivery, - "wallet": wallet - ]) - } + init( + delivery: GraphQLNullable = nil, + wallet: GraphQLNullable<[String]> = nil + ) { + __data = InputDict([ + "delivery": delivery, + "wallet": wallet + ]) + } - /// Delivery preferences can be used to prefill the delivery section in at checkout. - var delivery: GraphQLNullable { - get { __data["delivery"] } - set { __data["delivery"] = newValue } - } + /// Delivery preferences can be used to prefill the delivery section in at checkout. + var delivery: GraphQLNullable { + get { __data["delivery"] } + set { __data["delivery"] = newValue } + } - /// Wallet preferences are used to populate relevant payment fields in the checkout flow. - /// Accepted value: `["shop_pay"]`. - /// - /// The input must not contain more than `250` values. - var wallet: GraphQLNullable<[String]> { - get { __data["wallet"] } - set { __data["wallet"] = newValue } - } + /// Wallet preferences are used to populate relevant payment fields in the checkout flow. + /// Accepted value: `["shop_pay"]`. + /// + /// The input must not contain more than `250` values. + var wallet: GraphQLNullable<[String]> { + get { __data["wallet"] } + set { __data["wallet"] = newValue } } -} + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartSelectableAddressInput.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartSelectableAddressInput.graphql.swift index 2900a738..e5c4230f 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartSelectableAddressInput.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/InputObjects/CartSelectableAddressInput.graphql.swift @@ -4,52 +4,53 @@ @_spi(Internal) @_spi(Unsafe) import ApolloAPI extension Storefront { - /// The input fields for a selectable delivery address to present to the buyer. Used by [`CartDeliveryInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartDeliveryInput) when creating a cart with the [`cartCreate`](https://shopify.dev/docs/api/storefront/current/mutations/cartCreate) mutation. - /// - /// You can pre-select an address for the buyer, mark it as one-time use so it isn't saved after checkout, and specify how strictly the address should be validated. - struct CartSelectableAddressInput: InputObject { - private(set) var __data: InputDict - - init(_ data: InputDict) { - __data = data - } - - init( - address: CartAddressInput, - selected: GraphQLNullable = nil, - oneTimeUse: GraphQLNullable = nil, - validationStrategy: GraphQLNullable> = nil - ) { - __data = InputDict([ - "address": address, - "selected": selected, - "oneTimeUse": oneTimeUse, - "validationStrategy": validationStrategy - ]) - } - - /// Exactly one kind of delivery address. - var address: CartAddressInput { - get { __data["address"] } - set { __data["address"] = newValue } - } - - /// Sets exactly one address as pre-selected for the buyer. - var selected: GraphQLNullable { - get { __data["selected"] } - set { __data["selected"] = newValue } - } - - /// When true, this delivery address will not be associated with the buyer after a successful checkout. - var oneTimeUse: GraphQLNullable { - get { __data["oneTimeUse"] } - set { __data["oneTimeUse"] = newValue } - } - - /// Defines what kind of address validation is requested. - var validationStrategy: GraphQLNullable> { - get { __data["validationStrategy"] } - set { __data["validationStrategy"] = newValue } - } + /// The input fields for a selectable delivery address to present to the buyer. Used by [`CartDeliveryInput`](https://shopify.dev/docs/api/storefront/current/input-objects/CartDeliveryInput) when creating a cart with the [`cartCreate`](https://shopify.dev/docs/api/storefront/current/mutations/cartCreate) mutation. + /// + /// You can pre-select an address for the buyer, mark it as one-time use so it isn't saved after checkout, and specify how strictly the address should be validated. + struct CartSelectableAddressInput: InputObject { + private(set) var __data: InputDict + + init(_ data: InputDict) { + __data = data } -} + + init( + address: CartAddressInput, + selected: GraphQLNullable = nil, + oneTimeUse: GraphQLNullable = nil, + validationStrategy: GraphQLNullable> = nil + ) { + __data = InputDict([ + "address": address, + "selected": selected, + "oneTimeUse": oneTimeUse, + "validationStrategy": validationStrategy + ]) + } + + /// Exactly one kind of delivery address. + var address: CartAddressInput { + get { __data["address"] } + set { __data["address"] = newValue } + } + + /// Sets exactly one address as pre-selected for the buyer. + var selected: GraphQLNullable { + get { __data["selected"] } + set { __data["selected"] = newValue } + } + + /// When true, this delivery address will not be associated with the buyer after a successful checkout. + var oneTimeUse: GraphQLNullable { + get { __data["oneTimeUse"] } + set { __data["oneTimeUse"] = newValue } + } + + /// Defines what kind of address validation is requested. + var validationStrategy: GraphQLNullable> { + get { __data["validationStrategy"] } + set { __data["validationStrategy"] = newValue } + } + } + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/BaseCartLine.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/BaseCartLine.graphql.swift index 1b24703e..61fc8cc1 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/BaseCartLine.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/BaseCartLine.graphql.swift @@ -4,15 +4,15 @@ import ApolloAPI extension Storefront.Interfaces { - /// Defines the shared fields for items in a shopping cart. Implemented by [`CartLine`](https://shopify.dev/docs/api/storefront/current/objects/CartLine) for individual merchandise and [`ComponentizableCartLine`](https://shopify.dev/docs/api/storefront/current/objects/ComponentizableCartLine) for grouped merchandise like bundles. - /// - /// Each implementation includes the merchandise being purchased, quantity, cost breakdown, applied discounts, custom attributes, and any associated [`SellingPlan`](https://shopify.dev/docs/api/storefront/current/objects/SellingPlan). - static let BaseCartLine = ApolloAPI.Interface( - name: "BaseCartLine", - keyFields: nil, - implementingObjects: [ - "CartLine", - "ComponentizableCartLine" - ] - ) -} + /// Defines the shared fields for items in a shopping cart. Implemented by [`CartLine`](https://shopify.dev/docs/api/storefront/current/objects/CartLine) for individual merchandise and [`ComponentizableCartLine`](https://shopify.dev/docs/api/storefront/current/objects/ComponentizableCartLine) for grouped merchandise like bundles. + /// + /// Each implementation includes the merchandise being purchased, quantity, cost breakdown, applied discounts, custom attributes, and any associated [`SellingPlan`](https://shopify.dev/docs/api/storefront/current/objects/SellingPlan). + static let BaseCartLine = ApolloAPI.Interface( + name: "BaseCartLine", + keyFields: nil, + implementingObjects: [ + "CartLine", + "ComponentizableCartLine" + ] + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/DisplayableError.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/DisplayableError.graphql.swift index 1d681ff5..13deac40 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/DisplayableError.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/DisplayableError.graphql.swift @@ -4,17 +4,17 @@ import ApolloAPI extension Storefront.Interfaces { - /// Represents an error in the input of a mutation. - static let DisplayableError = ApolloAPI.Interface( - name: "DisplayableError", - keyFields: nil, - implementingObjects: [ - "CartUserError", - "CustomerUserError", - "MetafieldDeleteUserError", - "MetafieldsSetUserError", - "UserError", - "UserErrorsShopPayPaymentRequestSessionUserErrors" - ] - ) -} + /// Represents an error in the input of a mutation. + static let DisplayableError = ApolloAPI.Interface( + name: "DisplayableError", + keyFields: nil, + implementingObjects: [ + "CartUserError", + "CustomerUserError", + "MetafieldDeleteUserError", + "MetafieldsSetUserError", + "UserError", + "UserErrorsShopPayPaymentRequestSessionUserErrors" + ] + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/HasMetafields.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/HasMetafields.graphql.swift index 5166414f..02ccfef4 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/HasMetafields.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/HasMetafields.graphql.swift @@ -4,28 +4,28 @@ import ApolloAPI extension Storefront.Interfaces { - /// Implemented by resources that support custom metadata through [`Metafield`](https://shopify.dev/docs/api/storefront/current/objects/Metafield) objects. Types like [`Product`](https://shopify.dev/docs/api/storefront/current/objects/Product), [`Collection`](https://shopify.dev/docs/api/storefront/current/objects/Collection), and [`Customer`](https://shopify.dev/docs/api/storefront/current/objects/Customer) implement this interface to provide consistent access to metafields. - /// - /// You can retrieve a [single metafield](https://shopify.dev/docs/api/storefront/current/interfaces/HasMetafields#fields-metafield) by namespace and key, or fetch [multiple metafields](https://shopify.dev/docs/api/storefront/current/interfaces/HasMetafields#fields-metafields) in a single request. If you omit the namespace, then the [app-reserved namespace](https://shopify.dev/docs/apps/build/metafields#app-owned-metafields) is used by default. - static let HasMetafields = ApolloAPI.Interface( - name: "HasMetafields", - keyFields: nil, - implementingObjects: [ - "Article", - "Blog", - "Cart", - "Collection", - "Company", - "CompanyLocation", - "Customer", - "Location", - "Market", - "Order", - "Page", - "Product", - "ProductVariant", - "SellingPlan", - "Shop" - ] - ) -} + /// Implemented by resources that support custom metadata through [`Metafield`](https://shopify.dev/docs/api/storefront/current/objects/Metafield) objects. Types like [`Product`](https://shopify.dev/docs/api/storefront/current/objects/Product), [`Collection`](https://shopify.dev/docs/api/storefront/current/objects/Collection), and [`Customer`](https://shopify.dev/docs/api/storefront/current/objects/Customer) implement this interface to provide consistent access to metafields. + /// + /// You can retrieve a [single metafield](https://shopify.dev/docs/api/storefront/current/interfaces/HasMetafields#fields-metafield) by namespace and key, or fetch [multiple metafields](https://shopify.dev/docs/api/storefront/current/interfaces/HasMetafields#fields-metafields) in a single request. If you omit the namespace, then the [app-reserved namespace](https://shopify.dev/docs/apps/build/metafields#app-owned-metafields) is used by default. + static let HasMetafields = ApolloAPI.Interface( + name: "HasMetafields", + keyFields: nil, + implementingObjects: [ + "Article", + "Blog", + "Cart", + "Collection", + "Company", + "CompanyLocation", + "Customer", + "Location", + "Market", + "Order", + "Page", + "Product", + "ProductVariant", + "SellingPlan", + "Shop" + ] + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/Media.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/Media.graphql.swift index 0b485698..44c7f20a 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/Media.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/Media.graphql.swift @@ -4,17 +4,17 @@ import ApolloAPI extension Storefront.Interfaces { - /// A common set of fields for media content associated with [products](https://shopify.dev/docs/api/storefront/current/objects/Product). Implementations include [`MediaImage`](https://shopify.dev/docs/api/storefront/current/objects/MediaImage) for Shopify-hosted images, [`Video`](https://shopify.dev/docs/api/storefront/current/objects/Video) for Shopify-hosted videos, [`ExternalVideo`](https://shopify.dev/docs/api/storefront/current/objects/ExternalVideo) for videos hosted on platforms like YouTube or Vimeo, and [`Model3d`](https://shopify.dev/docs/api/storefront/current/objects/Model3d) for 3D models. - /// - /// Each implementation shares fields for alt text, content type, and preview images, while adding type-specific fields like embed URLs for external videos or source files for 3D models. - static let Media = ApolloAPI.Interface( - name: "Media", - keyFields: nil, - implementingObjects: [ - "ExternalVideo", - "MediaImage", - "Model3d", - "Video" - ] - ) -} + /// A common set of fields for media content associated with [products](https://shopify.dev/docs/api/storefront/current/objects/Product). Implementations include [`MediaImage`](https://shopify.dev/docs/api/storefront/current/objects/MediaImage) for Shopify-hosted images, [`Video`](https://shopify.dev/docs/api/storefront/current/objects/Video) for Shopify-hosted videos, [`ExternalVideo`](https://shopify.dev/docs/api/storefront/current/objects/ExternalVideo) for videos hosted on platforms like YouTube or Vimeo, and [`Model3d`](https://shopify.dev/docs/api/storefront/current/objects/Model3d) for 3D models. + /// + /// Each implementation shares fields for alt text, content type, and preview images, while adding type-specific fields like embed URLs for external videos or source files for 3D models. + static let Media = ApolloAPI.Interface( + name: "Media", + keyFields: nil, + implementingObjects: [ + "ExternalVideo", + "MediaImage", + "Model3d", + "Video" + ] + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/Node.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/Node.graphql.swift index d618ab7a..31b92b0f 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/Node.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/Node.graphql.swift @@ -4,48 +4,48 @@ import ApolloAPI extension Storefront.Interfaces { - /// Enables global object identification following the [Relay specification](https://relay.dev/graphql/objectidentification.htm#sec-Node-Interface). Any type implementing this interface has a globally-unique `id` field and can be fetched directly using the [`node`](https://shopify.dev/docs/api/storefront/current/queries/node) or [`nodes`](https://shopify.dev/docs/api/storefront/current/queries/nodes) queries. - static let Node = ApolloAPI.Interface( - name: "Node", - keyFields: nil, - implementingObjects: [ - "AppliedGiftCard", - "Article", - "Blog", - "Cart", - "CartLine", - "Collection", - "Comment", - "Company", - "CompanyContact", - "CompanyLocation", - "ComponentizableCartLine", - "ExternalVideo", - "GenericFile", - "Location", - "MailingAddress", - "Market", - "MediaImage", - "MediaPresentation", - "Menu", - "MenuItem", - "Metafield", - "Metaobject", - "Model3d", - "Order", - "Page", - "Product", - "ProductOption", - "ProductOptionValue", - "ProductVariant", - "Shop", - "ShopPayInstallmentsFinancingPlan", - "ShopPayInstallmentsFinancingPlanTerm", - "ShopPayInstallmentsProductVariantPricing", - "ShopPolicy", - "TaxonomyCategory", - "UrlRedirect", - "Video" - ] - ) -} + /// Enables global object identification following the [Relay specification](https://relay.dev/graphql/objectidentification.htm#sec-Node-Interface). Any type implementing this interface has a globally-unique `id` field and can be fetched directly using the [`node`](https://shopify.dev/docs/api/storefront/current/queries/node) or [`nodes`](https://shopify.dev/docs/api/storefront/current/queries/nodes) queries. + static let Node = ApolloAPI.Interface( + name: "Node", + keyFields: nil, + implementingObjects: [ + "AppliedGiftCard", + "Article", + "Blog", + "Cart", + "CartLine", + "Collection", + "Comment", + "Company", + "CompanyContact", + "CompanyLocation", + "ComponentizableCartLine", + "ExternalVideo", + "GenericFile", + "Location", + "MailingAddress", + "Market", + "MediaImage", + "MediaPresentation", + "Menu", + "MenuItem", + "Metafield", + "Metaobject", + "Model3d", + "Order", + "Page", + "Product", + "ProductOption", + "ProductOptionValue", + "ProductVariant", + "Shop", + "ShopPayInstallmentsFinancingPlan", + "ShopPayInstallmentsFinancingPlanTerm", + "ShopPayInstallmentsProductVariantPricing", + "ShopPolicy", + "TaxonomyCategory", + "UrlRedirect", + "Video" + ] + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/OnlineStorePublishable.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/OnlineStorePublishable.graphql.swift index 71b9061f..7bffac38 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/OnlineStorePublishable.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/OnlineStorePublishable.graphql.swift @@ -4,17 +4,17 @@ import ApolloAPI extension Storefront.Interfaces { - /// Represents a resource that can be published to the Online Store sales channel. - static let OnlineStorePublishable = ApolloAPI.Interface( - name: "OnlineStorePublishable", - keyFields: nil, - implementingObjects: [ - "Article", - "Blog", - "Collection", - "Metaobject", - "Page", - "Product" - ] - ) -} + /// Represents a resource that can be published to the Online Store sales channel. + static let OnlineStorePublishable = ApolloAPI.Interface( + name: "OnlineStorePublishable", + keyFields: nil, + implementingObjects: [ + "Article", + "Blog", + "Collection", + "Metaobject", + "Page", + "Product" + ] + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/Trackable.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/Trackable.graphql.swift index 16caf623..0d0c0468 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/Trackable.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Interfaces/Trackable.graphql.swift @@ -4,16 +4,16 @@ import ApolloAPI extension Storefront.Interfaces { - /// Represents a resource that you can track the origin of the search traffic. - static let Trackable = ApolloAPI.Interface( - name: "Trackable", - keyFields: nil, - implementingObjects: [ - "Article", - "Collection", - "Page", - "Product", - "SearchQuerySuggestion" - ] - ) -} + /// Represents a resource that you can track the origin of the search traffic. + static let Trackable = ApolloAPI.Interface( + name: "Trackable", + keyFields: nil, + implementingObjects: [ + "Article", + "Collection", + "Page", + "Product", + "SearchQuerySuggestion" + ] + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/AppliedGiftCard.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/AppliedGiftCard.graphql.swift index 82cdcbf0..c3026ba8 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/AppliedGiftCard.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/AppliedGiftCard.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// Details about the gift card used on the checkout. - static let AppliedGiftCard = ApolloAPI.Object( - typename: "AppliedGiftCard", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// Details about the gift card used on the checkout. + static let AppliedGiftCard = ApolloAPI.Object( + typename: "AppliedGiftCard", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Article.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Article.graphql.swift index e00a9418..b5212975 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Article.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Article.graphql.swift @@ -4,17 +4,17 @@ import ApolloAPI extension Storefront.Objects { - /// A post that belongs to a [`Blog`](https://shopify.dev/docs/api/storefront/current/objects/Blog). Each article includes content with optional HTML formatting, an excerpt for previews, [`ArticleAuthor`](https://shopify.dev/docs/api/storefront/current/objects/ArticleAuthor) information, and an associated [`Image`](https://shopify.dev/docs/api/storefront/current/objects/Image). - /// - /// Articles can be organized with tags and include [`SEO`](https://shopify.dev/docs/api/storefront/current/objects/SEO) metadata. You can manage [comments](https://shopify.dev/docs/api/storefront/current/objects/Comment) when the blog's comment policy enables them. - static let Article = ApolloAPI.Object( - typename: "Article", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self, - Storefront.Interfaces.OnlineStorePublishable.self, - Storefront.Interfaces.Trackable.self - ], - keyFields: nil - ) -} + /// A post that belongs to a [`Blog`](https://shopify.dev/docs/api/storefront/current/objects/Blog). Each article includes content with optional HTML formatting, an excerpt for previews, [`ArticleAuthor`](https://shopify.dev/docs/api/storefront/current/objects/ArticleAuthor) information, and an associated [`Image`](https://shopify.dev/docs/api/storefront/current/objects/Image). + /// + /// Articles can be organized with tags and include [`SEO`](https://shopify.dev/docs/api/storefront/current/objects/SEO) metadata. You can manage [comments](https://shopify.dev/docs/api/storefront/current/objects/Comment) when the blog's comment policy enables them. + static let Article = ApolloAPI.Object( + typename: "Article", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self, + Storefront.Interfaces.OnlineStorePublishable.self, + Storefront.Interfaces.Trackable.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/BaseCartLineConnection.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/BaseCartLineConnection.graphql.swift index 397963f3..7fab79ec 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/BaseCartLineConnection.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/BaseCartLineConnection.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// An auto-generated type for paginating through multiple BaseCartLines. - static let BaseCartLineConnection = ApolloAPI.Object( - typename: "BaseCartLineConnection", - implementedInterfaces: [], - keyFields: nil - ) -} + /// An auto-generated type for paginating through multiple BaseCartLines. + static let BaseCartLineConnection = ApolloAPI.Object( + typename: "BaseCartLineConnection", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Blog.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Blog.graphql.swift index e0e0857e..9a84304a 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Blog.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Blog.graphql.swift @@ -4,16 +4,16 @@ import ApolloAPI extension Storefront.Objects { - /// A blog container for [`Article`](https://shopify.dev/docs/api/storefront/current/objects/Article) objects. Stores can have multiple blogs, for example to organize content by topic or purpose. - /// - /// Each blog provides access to its articles, contributing [`ArticleAuthor`](https://shopify.dev/docs/api/storefront/current/objects/ArticleAuthor) objects, and [`SEO`](https://shopify.dev/docs/api/storefront/current/objects/SEO) information. You can retrieve articles individually [by handle](https://shopify.dev/docs/api/storefront/current/objects/Blog#field-Blog.fields.articleByHandle) or as a [paginated list](https://shopify.dev/docs/api/storefront/current/objects/Blog#field-Blog.fields.articles). - static let Blog = ApolloAPI.Object( - typename: "Blog", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self, - Storefront.Interfaces.OnlineStorePublishable.self - ], - keyFields: nil - ) -} + /// A blog container for [`Article`](https://shopify.dev/docs/api/storefront/current/objects/Article) objects. Stores can have multiple blogs, for example to organize content by topic or purpose. + /// + /// Each blog provides access to its articles, contributing [`ArticleAuthor`](https://shopify.dev/docs/api/storefront/current/objects/ArticleAuthor) objects, and [`SEO`](https://shopify.dev/docs/api/storefront/current/objects/SEO) information. You can retrieve articles individually [by handle](https://shopify.dev/docs/api/storefront/current/objects/Blog#field-Blog.fields.articleByHandle) or as a [paginated list](https://shopify.dev/docs/api/storefront/current/objects/Blog#field-Blog.fields.articles). + static let Blog = ApolloAPI.Object( + typename: "Blog", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self, + Storefront.Interfaces.OnlineStorePublishable.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Cart.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Cart.graphql.swift index 3deb99cd..b972c9c4 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Cart.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Cart.graphql.swift @@ -4,17 +4,17 @@ import ApolloAPI extension Storefront.Objects { - /// A cart represents the merchandise that a buyer intends to purchase, and the estimated cost associated with the cart, throughout a customer's session. - /// - /// Use the [`checkoutUrl`](https://shopify.dev/docs/api/storefront/current/objects/Cart#field-checkoutUrl) field to direct buyers to Shopify's web checkout to complete their purchase. - /// - /// Learn more about [interacting with carts](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/cart/manage). - static let Cart = ApolloAPI.Object( - typename: "Cart", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// A cart represents the merchandise that a buyer intends to purchase, and the estimated cost associated with the cart, throughout a customer's session. + /// + /// Use the [`checkoutUrl`](https://shopify.dev/docs/api/storefront/current/objects/Cart#field-checkoutUrl) field to direct buyers to Shopify's web checkout to complete their purchase. + /// + /// Learn more about [interacting with carts](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/cart/manage). + static let Cart = ApolloAPI.Object( + typename: "Cart", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartBuyerIdentity.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartBuyerIdentity.graphql.swift index e61906d3..65352dda 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartBuyerIdentity.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartBuyerIdentity.graphql.swift @@ -4,12 +4,12 @@ import ApolloAPI extension Storefront.Objects { - /// Contact information about the buyer interacting with a [cart](https://shopify.dev/docs/api/storefront/current/objects/Cart). The buyer's country determines [international pricing](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets/international-pricing) and should match their shipping address. - /// - /// For B2B scenarios, the [`purchasingCompany`](https://shopify.dev/docs/api/storefront/current/objects/CartBuyerIdentity#field-CartBuyerIdentity.fields.purchasingCompany) field identifies the company and location on whose behalf a business customer purchases. The [`preferences`](https://shopify.dev/docs/api/storefront/current/objects/CartBuyerIdentity#field-CartBuyerIdentity.fields.preferences) field stores delivery and wallet settings that prefill checkout fields to streamline the buying process. - static let CartBuyerIdentity = ApolloAPI.Object( - typename: "CartBuyerIdentity", - implementedInterfaces: [], - keyFields: nil - ) -} + /// Contact information about the buyer interacting with a [cart](https://shopify.dev/docs/api/storefront/current/objects/Cart). The buyer's country determines [international pricing](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets/international-pricing) and should match their shipping address. + /// + /// For B2B scenarios, the [`purchasingCompany`](https://shopify.dev/docs/api/storefront/current/objects/CartBuyerIdentity#field-CartBuyerIdentity.fields.purchasingCompany) field identifies the company and location on whose behalf a business customer purchases. The [`preferences`](https://shopify.dev/docs/api/storefront/current/objects/CartBuyerIdentity#field-CartBuyerIdentity.fields.preferences) field stores delivery and wallet settings that prefill checkout fields to streamline the buying process. + static let CartBuyerIdentity = ApolloAPI.Object( + typename: "CartBuyerIdentity", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartCost.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartCost.graphql.swift index 4db413aa..92f14c18 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartCost.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartCost.graphql.swift @@ -4,12 +4,12 @@ import ApolloAPI extension Storefront.Objects { - /// The estimated costs that a buyer will pay at checkout. The `Cart` object's [`cost`](https://shopify.dev/docs/api/storefront/current/objects/Cart#field-Cart.fields.cost) field returns this. The costs are subject to change and changes will be reflected at checkout. Costs reflect [international pricing](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets/international-pricing) based on the buyer's context. - /// - /// Amounts include the subtotal before taxes and cart-level discounts, the checkout charge amount excluding deferred payments, and the total. The subtotal and total amounts each include a corresponding boolean field indicating whether the value is an estimate. - static let CartCost = ApolloAPI.Object( - typename: "CartCost", - implementedInterfaces: [], - keyFields: nil - ) -} + /// The estimated costs that a buyer will pay at checkout. The `Cart` object's [`cost`](https://shopify.dev/docs/api/storefront/current/objects/Cart#field-Cart.fields.cost) field returns this. The costs are subject to change and changes will be reflected at checkout. Costs reflect [international pricing](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets/international-pricing) based on the buyer's context. + /// + /// Amounts include the subtotal before taxes and cart-level discounts, the checkout charge amount excluding deferred payments, and the total. The subtotal and total amounts each include a corresponding boolean field indicating whether the value is an estimate. + static let CartCost = ApolloAPI.Object( + typename: "CartCost", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartCreatePayload.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartCreatePayload.graphql.swift index 865172ce..4ef66532 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartCreatePayload.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartCreatePayload.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// Return type for `cartCreate` mutation. - static let CartCreatePayload = ApolloAPI.Object( - typename: "CartCreatePayload", - implementedInterfaces: [], - keyFields: nil - ) -} + /// Return type for `cartCreate` mutation. + static let CartCreatePayload = ApolloAPI.Object( + typename: "CartCreatePayload", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartDeliveryGroup.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartDeliveryGroup.graphql.swift index bfdbf958..36ccf81d 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartDeliveryGroup.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartDeliveryGroup.graphql.swift @@ -4,12 +4,12 @@ import ApolloAPI extension Storefront.Objects { - /// Groups cart line items that share the same delivery destination. Each group provides the available [`CartDeliveryOption`](https://shopify.dev/docs/api/storefront/current/objects/CartDeliveryOption) choices for that address, along with the customer's selected option. - /// - /// Access through the [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart) object's `deliveryGroups` field. Items are grouped by merchandise type (one-time purchase vs subscription), allowing different delivery methods for each. - static let CartDeliveryGroup = ApolloAPI.Object( - typename: "CartDeliveryGroup", - implementedInterfaces: [], - keyFields: nil - ) -} + /// Groups cart line items that share the same delivery destination. Each group provides the available [`CartDeliveryOption`](https://shopify.dev/docs/api/storefront/current/objects/CartDeliveryOption) choices for that address, along with the customer's selected option. + /// + /// Access through the [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart) object's `deliveryGroups` field. Items are grouped by merchandise type (one-time purchase vs subscription), allowing different delivery methods for each. + static let CartDeliveryGroup = ApolloAPI.Object( + typename: "CartDeliveryGroup", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartDeliveryGroupConnection.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartDeliveryGroupConnection.graphql.swift index 0ee2a8dd..ffc37986 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartDeliveryGroupConnection.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartDeliveryGroupConnection.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// An auto-generated type for paginating through multiple CartDeliveryGroups. - static let CartDeliveryGroupConnection = ApolloAPI.Object( - typename: "CartDeliveryGroupConnection", - implementedInterfaces: [], - keyFields: nil - ) -} + /// An auto-generated type for paginating through multiple CartDeliveryGroups. + static let CartDeliveryGroupConnection = ApolloAPI.Object( + typename: "CartDeliveryGroupConnection", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartDeliveryOption.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartDeliveryOption.graphql.swift index 3cea5003..0392d699 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartDeliveryOption.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartDeliveryOption.graphql.swift @@ -4,12 +4,12 @@ import ApolloAPI extension Storefront.Objects { - /// A shipping or delivery choice available to customers during checkout. Each option includes a title, estimated cost, and delivery method type such as shipping or local pickup. - /// - /// Returned by the [`CartDeliveryGroup`](https://shopify.dev/docs/api/storefront/current/objects/CartDeliveryGroup) object's [`deliveryOptions`](https://shopify.dev/docs/api/storefront/current/objects/CartDeliveryGroup#field-CartDeliveryGroup.fields.deliveryOptions) field and [`selectedDeliveryOption`](https://shopify.dev/docs/api/storefront/current/objects/CartDeliveryGroup#field-CartDeliveryGroup.fields.selectedDeliveryOption) field. - static let CartDeliveryOption = ApolloAPI.Object( - typename: "CartDeliveryOption", - implementedInterfaces: [], - keyFields: nil - ) -} + /// A shipping or delivery choice available to customers during checkout. Each option includes a title, estimated cost, and delivery method type such as shipping or local pickup. + /// + /// Returned by the [`CartDeliveryGroup`](https://shopify.dev/docs/api/storefront/current/objects/CartDeliveryGroup) object's [`deliveryOptions`](https://shopify.dev/docs/api/storefront/current/objects/CartDeliveryGroup#field-CartDeliveryGroup.fields.deliveryOptions) field and [`selectedDeliveryOption`](https://shopify.dev/docs/api/storefront/current/objects/CartDeliveryGroup#field-CartDeliveryGroup.fields.selectedDeliveryOption) field. + static let CartDeliveryOption = ApolloAPI.Object( + typename: "CartDeliveryOption", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartLine.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartLine.graphql.swift index 9b6a8139..5c0ec2f7 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartLine.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartLine.graphql.swift @@ -4,15 +4,15 @@ import ApolloAPI extension Storefront.Objects { - /// An item in a customer's [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart) representing a product variant they intend to purchase. Each cart line tracks the merchandise, quantity, cost breakdown, and any applied discounts. - /// - /// Cart lines can include custom attributes for additional information like gift wrapping requests, and can be associated with a [`SellingPlanAllocation`](https://shopify.dev/docs/api/storefront/current/objects/SellingPlanAllocation) for purchase options like subscriptions, pre-orders, or try-before-you-buy. The [`instructions`](https://shopify.dev/docs/api/storefront/current/objects/CartLine#field-CartLine.fields.instructions) field indicates whether the line can be removed or have its quantity updated. - static let CartLine = ApolloAPI.Object( - typename: "CartLine", - implementedInterfaces: [ - Storefront.Interfaces.BaseCartLine.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// An item in a customer's [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart) representing a product variant they intend to purchase. Each cart line tracks the merchandise, quantity, cost breakdown, and any applied discounts. + /// + /// Cart lines can include custom attributes for additional information like gift wrapping requests, and can be associated with a [`SellingPlanAllocation`](https://shopify.dev/docs/api/storefront/current/objects/SellingPlanAllocation) for purchase options like subscriptions, pre-orders, or try-before-you-buy. The [`instructions`](https://shopify.dev/docs/api/storefront/current/objects/CartLine#field-CartLine.fields.instructions) field indicates whether the line can be removed or have its quantity updated. + static let CartLine = ApolloAPI.Object( + typename: "CartLine", + implementedInterfaces: [ + Storefront.Interfaces.BaseCartLine.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartLineCost.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartLineCost.graphql.swift index 8f9cbadb..0f4c9b6a 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartLineCost.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartLineCost.graphql.swift @@ -4,12 +4,12 @@ import ApolloAPI extension Storefront.Objects { - /// Cost breakdown for a single line item in a [cart](https://shopify.dev/docs/api/storefront/current/objects/Cart). Includes the per-unit price, the subtotal before line-level discounts, and the final total amount the buyer pays. - /// - /// The [`compareAtAmountPerQuantity`](https://shopify.dev/docs/api/storefront/current/objects/CartLineCost#field-CartLineCost.fields.compareAtAmountPerQuantity) field shows the original price when the item is on sale, enabling the display of savings to customers. - static let CartLineCost = ApolloAPI.Object( - typename: "CartLineCost", - implementedInterfaces: [], - keyFields: nil - ) -} + /// Cost breakdown for a single line item in a [cart](https://shopify.dev/docs/api/storefront/current/objects/Cart). Includes the per-unit price, the subtotal before line-level discounts, and the final total amount the buyer pays. + /// + /// The [`compareAtAmountPerQuantity`](https://shopify.dev/docs/api/storefront/current/objects/CartLineCost#field-CartLineCost.fields.compareAtAmountPerQuantity) field shows the original price when the item is on sale, enabling the display of savings to customers. + static let CartLineCost = ApolloAPI.Object( + typename: "CartLineCost", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartUserError.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartUserError.graphql.swift index 98cb6741..699ee533 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartUserError.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CartUserError.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// Represents an error that happens during execution of a cart mutation. - static let CartUserError = ApolloAPI.Object( - typename: "CartUserError", - implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], - keyFields: nil - ) -} + /// Represents an error that happens during execution of a cart mutation. + static let CartUserError = ApolloAPI.Object( + typename: "CartUserError", + implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Collection.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Collection.graphql.swift index 5438ac75..6ac7a78c 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Collection.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Collection.graphql.swift @@ -4,17 +4,17 @@ import ApolloAPI extension Storefront.Objects { - /// A group of products [organized by a merchant](https://help.shopify.com/manual/products/collections) to make their store easier to browse. Collections can help customers discover related products by category, season, promotion, or other criteria. - /// - /// Query a collection's products with [filtering options](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/products-collections/filter-products) like availability, price range, vendor, and tags. Each collection includes [`SEO`](https://shopify.dev/docs/api/storefront/current/objects/SEO) information, an optional [`Image`](https://shopify.dev/docs/api/storefront/current/objects/Image), and supports custom data through [`metafields`](https://shopify.dev/docs/api/storefront/current/objects/Metafield). - static let Collection = ApolloAPI.Object( - typename: "Collection", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self, - Storefront.Interfaces.OnlineStorePublishable.self, - Storefront.Interfaces.Trackable.self - ], - keyFields: nil - ) -} + /// A group of products [organized by a merchant](https://help.shopify.com/manual/products/collections) to make their store easier to browse. Collections can help customers discover related products by category, season, promotion, or other criteria. + /// + /// Query a collection's products with [filtering options](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/products-collections/filter-products) like availability, price range, vendor, and tags. Each collection includes [`SEO`](https://shopify.dev/docs/api/storefront/current/objects/SEO) information, an optional [`Image`](https://shopify.dev/docs/api/storefront/current/objects/Image), and supports custom data through [`metafields`](https://shopify.dev/docs/api/storefront/current/objects/Metafield). + static let Collection = ApolloAPI.Object( + typename: "Collection", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self, + Storefront.Interfaces.OnlineStorePublishable.self, + Storefront.Interfaces.Trackable.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Comment.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Comment.graphql.swift index 963a5b6f..771f5ffc 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Comment.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Comment.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// A comment on an article. - static let Comment = ApolloAPI.Object( - typename: "Comment", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// A comment on an article. + static let Comment = ApolloAPI.Object( + typename: "Comment", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Company.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Company.graphql.swift index bcc140a2..e2080c88 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Company.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Company.graphql.swift @@ -4,15 +4,15 @@ import ApolloAPI extension Storefront.Objects { - /// A B2B organization that purchases from the shop. In the Storefront API, company information is accessed through the [`PurchasingCompany`](https://shopify.dev/docs/api/storefront/current/objects/PurchasingCompany) object on [`CartBuyerIdentity`](https://shopify.dev/docs/api/storefront/current/objects/CartBuyerIdentity), which provides the associated location and contact for the current purchasing context. - /// - /// You can store custom data using [metafields](https://shopify.dev/docs/apps/build/metafields). - static let Company = ApolloAPI.Object( - typename: "Company", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// A B2B organization that purchases from the shop. In the Storefront API, company information is accessed through the [`PurchasingCompany`](https://shopify.dev/docs/api/storefront/current/objects/PurchasingCompany) object on [`CartBuyerIdentity`](https://shopify.dev/docs/api/storefront/current/objects/CartBuyerIdentity), which provides the associated location and contact for the current purchasing context. + /// + /// You can store custom data using [metafields](https://shopify.dev/docs/apps/build/metafields). + static let Company = ApolloAPI.Object( + typename: "Company", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CompanyContact.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CompanyContact.graphql.swift index 23a2afd3..b1cca8c3 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CompanyContact.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CompanyContact.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// A company's main point of contact. - static let CompanyContact = ApolloAPI.Object( - typename: "CompanyContact", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// A company's main point of contact. + static let CompanyContact = ApolloAPI.Object( + typename: "CompanyContact", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CompanyLocation.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CompanyLocation.graphql.swift index ae5000e5..2130e718 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CompanyLocation.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CompanyLocation.graphql.swift @@ -4,15 +4,15 @@ import ApolloAPI extension Storefront.Objects { - /// A branch or office of a [`Company`](https://shopify.dev/docs/api/storefront/current/objects/Company) where B2B customers can place orders. When a B2B customer selects a location after logging in, the Storefront API contextualizes product queries to return location-specific pricing and quantity rules. - /// - /// Access through the [`PurchasingCompany`](https://shopify.dev/docs/api/storefront/current/objects/PurchasingCompany) object, which associates the location with the buyer's [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart). - static let CompanyLocation = ApolloAPI.Object( - typename: "CompanyLocation", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// A branch or office of a [`Company`](https://shopify.dev/docs/api/storefront/current/objects/Company) where B2B customers can place orders. When a B2B customer selects a location after logging in, the Storefront API contextualizes product queries to return location-specific pricing and quantity rules. + /// + /// Access through the [`PurchasingCompany`](https://shopify.dev/docs/api/storefront/current/objects/PurchasingCompany) object, which associates the location with the buyer's [`Cart`](https://shopify.dev/docs/api/storefront/current/objects/Cart). + static let CompanyLocation = ApolloAPI.Object( + typename: "CompanyLocation", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ComponentizableCartLine.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ComponentizableCartLine.graphql.swift index 60c9f523..e10d4c57 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ComponentizableCartLine.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ComponentizableCartLine.graphql.swift @@ -4,13 +4,13 @@ import ApolloAPI extension Storefront.Objects { - /// Represents information about the grouped merchandise in the cart. - static let ComponentizableCartLine = ApolloAPI.Object( - typename: "ComponentizableCartLine", - implementedInterfaces: [ - Storefront.Interfaces.BaseCartLine.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// Represents information about the grouped merchandise in the cart. + static let ComponentizableCartLine = ApolloAPI.Object( + typename: "ComponentizableCartLine", + implementedInterfaces: [ + Storefront.Interfaces.BaseCartLine.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Customer.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Customer.graphql.swift index b3f6cfdf..a4d625fd 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Customer.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Customer.graphql.swift @@ -4,14 +4,14 @@ import ApolloAPI extension Storefront.Objects { - /// A customer account with the shop. Includes data such as contact information, [addresses](https://shopify.dev/docs/api/storefront/current/objects/MailingAddress) and marketing preferences for logged-in customers, so they don't have to provide these details at every checkout. - /// - /// Access the customer through the [`customer`](https://shopify.dev/docs/api/storefront/current/queries/customer) query using a customer access token obtained from the [`customerAccessTokenCreate`](https://shopify.dev/docs/api/storefront/current/mutations/customerAccessTokenCreate) mutation. - /// - /// The object implements the [`HasMetafields`](https://shopify.dev/docs/api/storefront/current/interfaces/HasMetafields) interface, enabling retrieval of [custom data](https://shopify.dev/docs/apps/build/custom-data) associated with the customer. - static let Customer = ApolloAPI.Object( - typename: "Customer", - implementedInterfaces: [Storefront.Interfaces.HasMetafields.self], - keyFields: nil - ) -} + /// A customer account with the shop. Includes data such as contact information, [addresses](https://shopify.dev/docs/api/storefront/current/objects/MailingAddress) and marketing preferences for logged-in customers, so they don't have to provide these details at every checkout. + /// + /// Access the customer through the [`customer`](https://shopify.dev/docs/api/storefront/current/queries/customer) query using a customer access token obtained from the [`customerAccessTokenCreate`](https://shopify.dev/docs/api/storefront/current/mutations/customerAccessTokenCreate) mutation. + /// + /// The object implements the [`HasMetafields`](https://shopify.dev/docs/api/storefront/current/interfaces/HasMetafields) interface, enabling retrieval of [custom data](https://shopify.dev/docs/apps/build/custom-data) associated with the customer. + static let Customer = ApolloAPI.Object( + typename: "Customer", + implementedInterfaces: [Storefront.Interfaces.HasMetafields.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CustomerUserError.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CustomerUserError.graphql.swift index 0dcd3fdb..5a4f4ba0 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CustomerUserError.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/CustomerUserError.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// Represents an error that happens during execution of a customer mutation. - static let CustomerUserError = ApolloAPI.Object( - typename: "CustomerUserError", - implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], - keyFields: nil - ) -} + /// Represents an error that happens during execution of a customer mutation. + static let CustomerUserError = ApolloAPI.Object( + typename: "CustomerUserError", + implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ExternalVideo.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ExternalVideo.graphql.swift index 5d2249be..fdcfc6ef 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ExternalVideo.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ExternalVideo.graphql.swift @@ -4,13 +4,13 @@ import ApolloAPI extension Storefront.Objects { - /// Represents a video hosted outside of Shopify. - static let ExternalVideo = ApolloAPI.Object( - typename: "ExternalVideo", - implementedInterfaces: [ - Storefront.Interfaces.Media.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// Represents a video hosted outside of Shopify. + static let ExternalVideo = ApolloAPI.Object( + typename: "ExternalVideo", + implementedInterfaces: [ + Storefront.Interfaces.Media.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/GenericFile.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/GenericFile.graphql.swift index 225a5c1a..ae63176a 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/GenericFile.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/GenericFile.graphql.swift @@ -4,14 +4,14 @@ import ApolloAPI extension Storefront.Objects { - /// Any file that doesn't fit into a designated type like image or video. For example, a PDF or JSON document. Use this object to manage files in a merchant's store. - /// - /// Generic files are commonly referenced through [file reference metafields](https://shopify.dev/docs/apps/build/metafields/list-of-data-types) and returned as part of the [`MetafieldReference`](https://shopify.dev/docs/api/storefront/current/unions/MetafieldReference) union. - /// - /// Includes the file's URL, MIME type, size in bytes, and an optional preview image. - static let GenericFile = ApolloAPI.Object( - typename: "GenericFile", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// Any file that doesn't fit into a designated type like image or video. For example, a PDF or JSON document. Use this object to manage files in a merchant's store. + /// + /// Generic files are commonly referenced through [file reference metafields](https://shopify.dev/docs/apps/build/metafields/list-of-data-types) and returned as part of the [`MetafieldReference`](https://shopify.dev/docs/api/storefront/current/unions/MetafieldReference) union. + /// + /// Includes the file's URL, MIME type, size in bytes, and an optional preview image. + static let GenericFile = ApolloAPI.Object( + typename: "GenericFile", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Image.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Image.graphql.swift index 1e5bf926..0243d101 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Image.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Image.graphql.swift @@ -4,12 +4,12 @@ import ApolloAPI extension Storefront.Objects { - /// An image resource with URL, dimensions, and transformation options. Used for product images, collection images, media previews, and other visual content throughout the storefront. - /// - /// The [`url`](https://shopify.dev/docs/api/storefront/current/objects/Image#field-Image.fields.url) field accepts an [`ImageTransformInput`](https://shopify.dev/docs/api/storefront/current/input-objects/ImageTransformInput) argument for resizing, cropping, scaling for retina displays, and converting between image formats. Use the [`thumbhash`](https://shopify.dev/docs/api/storefront/current/objects/Image#field-Image.fields.thumbhash) field to display lightweight placeholders while images load. - static let Image = ApolloAPI.Object( - typename: "Image", - implementedInterfaces: [], - keyFields: nil - ) -} + /// An image resource with URL, dimensions, and transformation options. Used for product images, collection images, media previews, and other visual content throughout the storefront. + /// + /// The [`url`](https://shopify.dev/docs/api/storefront/current/objects/Image#field-Image.fields.url) field accepts an [`ImageTransformInput`](https://shopify.dev/docs/api/storefront/current/input-objects/ImageTransformInput) argument for resizing, cropping, scaling for retina displays, and converting between image formats. Use the [`thumbhash`](https://shopify.dev/docs/api/storefront/current/objects/Image#field-Image.fields.thumbhash) field to display lightweight placeholders while images load. + static let Image = ApolloAPI.Object( + typename: "Image", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Location.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Location.graphql.swift index 7142b75e..33d8b1b9 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Location.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Location.graphql.swift @@ -4,15 +4,15 @@ import ApolloAPI extension Storefront.Objects { - /// A physical store location where product inventory is held and that supports in-store pickup. Provides the location's name, address, and geographic coordinates for proximity-based sorting. Use with [`StoreAvailability`](https://shopify.dev/docs/api/storefront/current/objects/StoreAvailability) to show customers where a [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) is available for pickup. - /// - /// Learn more about [supporting local pickup on storefronts](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/products-collections/local-pickup). - static let Location = ApolloAPI.Object( - typename: "Location", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// A physical store location where product inventory is held and that supports in-store pickup. Provides the location's name, address, and geographic coordinates for proximity-based sorting. Use with [`StoreAvailability`](https://shopify.dev/docs/api/storefront/current/objects/StoreAvailability) to show customers where a [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) is available for pickup. + /// + /// Learn more about [supporting local pickup on storefronts](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/products-collections/local-pickup). + static let Location = ApolloAPI.Object( + typename: "Location", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MailingAddress.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MailingAddress.graphql.swift index faa5ff56..44f5b82f 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MailingAddress.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MailingAddress.graphql.swift @@ -4,12 +4,12 @@ import ApolloAPI extension Storefront.Objects { - /// A physical mailing address associated with a [`Customer`](https://shopify.dev/docs/api/storefront/current/objects/Customer) or [`Order`](https://shopify.dev/docs/api/storefront/current/objects/Order). Stores standard address components including street address, city, province, country, and postal code, along with customer name and company information. - /// - /// The address includes geographic coordinates and provides pre-formatted output through the [`formatted`](https://shopify.dev/docs/api/storefront/current/objects/MailingAddress#field-MailingAddress.fields.formatted) field, which can optionally include or exclude name and company details. - static let MailingAddress = ApolloAPI.Object( - typename: "MailingAddress", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// A physical mailing address associated with a [`Customer`](https://shopify.dev/docs/api/storefront/current/objects/Customer) or [`Order`](https://shopify.dev/docs/api/storefront/current/objects/Order). Stores standard address components including street address, city, province, country, and postal code, along with customer name and company information. + /// + /// The address includes geographic coordinates and provides pre-formatted output through the [`formatted`](https://shopify.dev/docs/api/storefront/current/objects/MailingAddress#field-MailingAddress.fields.formatted) field, which can optionally include or exclude name and company details. + static let MailingAddress = ApolloAPI.Object( + typename: "MailingAddress", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Market.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Market.graphql.swift index 27f4a6e9..54627b05 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Market.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Market.graphql.swift @@ -4,15 +4,15 @@ import ApolloAPI extension Storefront.Objects { - /// An audience of buyers that a merchant targets for sales. Audiences can include geographic regions, company locations, and retail locations. Markets enable localized shopping experiences with region-specific languages, currencies, and pricing. - /// - /// Each market has a unique [`handle`](https://shopify.dev/docs/api/storefront/current/objects/Market#field-Market.fields.handle) for identification and supports custom data through [`metafields`](https://shopify.dev/docs/api/storefront/current/objects/Metafield). Learn more about [building localized experiences with Shopify Markets](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets). - static let Market = ApolloAPI.Object( - typename: "Market", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// An audience of buyers that a merchant targets for sales. Audiences can include geographic regions, company locations, and retail locations. Markets enable localized shopping experiences with region-specific languages, currencies, and pricing. + /// + /// Each market has a unique [`handle`](https://shopify.dev/docs/api/storefront/current/objects/Market#field-Market.fields.handle) for identification and supports custom data through [`metafields`](https://shopify.dev/docs/api/storefront/current/objects/Metafield). Learn more about [building localized experiences with Shopify Markets](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets). + static let Market = ApolloAPI.Object( + typename: "Market", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MediaImage.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MediaImage.graphql.swift index 52ee53c8..275edc92 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MediaImage.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MediaImage.graphql.swift @@ -4,15 +4,15 @@ import ApolloAPI extension Storefront.Objects { - /// An image hosted on Shopify's content delivery network (CDN). Used for product images, brand logos, and other visual content across the storefront. - /// - /// The [`image`](https://shopify.dev/docs/api/storefront/current/objects/MediaImage#field-MediaImage.fields.image) field provides the actual image data with transformation options. Implements the [`Media`](https://shopify.dev/docs/api/storefront/current/interfaces/Media) interface alongside other media types like [`Video`](https://shopify.dev/docs/api/storefront/current/objects/Video) and [`Model3d`](https://shopify.dev/docs/api/storefront/current/objects/Model3d). - static let MediaImage = ApolloAPI.Object( - typename: "MediaImage", - implementedInterfaces: [ - Storefront.Interfaces.Media.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// An image hosted on Shopify's content delivery network (CDN). Used for product images, brand logos, and other visual content across the storefront. + /// + /// The [`image`](https://shopify.dev/docs/api/storefront/current/objects/MediaImage#field-MediaImage.fields.image) field provides the actual image data with transformation options. Implements the [`Media`](https://shopify.dev/docs/api/storefront/current/interfaces/Media) interface alongside other media types like [`Video`](https://shopify.dev/docs/api/storefront/current/objects/Video) and [`Model3d`](https://shopify.dev/docs/api/storefront/current/objects/Model3d). + static let MediaImage = ApolloAPI.Object( + typename: "MediaImage", + implementedInterfaces: [ + Storefront.Interfaces.Media.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MediaPresentation.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MediaPresentation.graphql.swift index b0e1afa1..6391e588 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MediaPresentation.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MediaPresentation.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// A media presentation. - static let MediaPresentation = ApolloAPI.Object( - typename: "MediaPresentation", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// A media presentation. + static let MediaPresentation = ApolloAPI.Object( + typename: "MediaPresentation", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Menu.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Menu.graphql.swift index fc17c7c3..71021728 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Menu.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Menu.graphql.swift @@ -4,12 +4,12 @@ import ApolloAPI extension Storefront.Objects { - /// A navigation structure for building store [menus](https://help.shopify.com/manual/online-store/menus-and-links). Each menu contains [`MenuItem`](https://shopify.dev/docs/api/storefront/current/objects/MenuItem) objects that can be nested to create multi-level navigation hierarchies. - /// - /// Menu items can link to [collections](https://shopify.dev/docs/api/storefront/current/objects/Collection), [products](https://shopify.dev/docs/api/storefront/current/objects/Product), [pages](https://shopify.dev/docs/api/storefront/current/objects/Page), [blogs](https://shopify.dev/docs/api/storefront/current/objects/Blog), or external URLs. Use the [`menu`](https://shopify.dev/docs/api/storefront/current/queries/menu) query to retrieve a menu by its handle. - static let Menu = ApolloAPI.Object( - typename: "Menu", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// A navigation structure for building store [menus](https://help.shopify.com/manual/online-store/menus-and-links). Each menu contains [`MenuItem`](https://shopify.dev/docs/api/storefront/current/objects/MenuItem) objects that can be nested to create multi-level navigation hierarchies. + /// + /// Menu items can link to [collections](https://shopify.dev/docs/api/storefront/current/objects/Collection), [products](https://shopify.dev/docs/api/storefront/current/objects/Product), [pages](https://shopify.dev/docs/api/storefront/current/objects/Page), [blogs](https://shopify.dev/docs/api/storefront/current/objects/Blog), or external URLs. Use the [`menu`](https://shopify.dev/docs/api/storefront/current/queries/menu) query to retrieve a menu by its handle. + static let Menu = ApolloAPI.Object( + typename: "Menu", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MenuItem.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MenuItem.graphql.swift index 629e9607..0c60bb4e 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MenuItem.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MenuItem.graphql.swift @@ -4,12 +4,12 @@ import ApolloAPI extension Storefront.Objects { - /// A navigation link within a [`Menu`](https://shopify.dev/docs/api/storefront/current/objects/Menu). Each item has a title, URL, and can link to store resources like [products](https://shopify.dev/docs/api/storefront/current/objects/Product), [collections](https://shopify.dev/docs/api/storefront/current/objects/Collection), [pages](https://shopify.dev/docs/api/storefront/current/objects/Page), [blogs](https://shopify.dev/docs/api/storefront/current/objects/Blog), or external URLs. - /// - /// Menu items support nested hierarchies through the [`items`](https://shopify.dev/docs/api/storefront/current/objects/MenuItem#field-MenuItem.fields.items) field, enabling dropdown or multi-level navigation structures. The [`tags`](https://shopify.dev/docs/api/storefront/current/objects/MenuItem#field-MenuItem.fields.tags) field filters results when the item links to a collection specifically. - static let MenuItem = ApolloAPI.Object( - typename: "MenuItem", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// A navigation link within a [`Menu`](https://shopify.dev/docs/api/storefront/current/objects/Menu). Each item has a title, URL, and can link to store resources like [products](https://shopify.dev/docs/api/storefront/current/objects/Product), [collections](https://shopify.dev/docs/api/storefront/current/objects/Collection), [pages](https://shopify.dev/docs/api/storefront/current/objects/Page), [blogs](https://shopify.dev/docs/api/storefront/current/objects/Blog), or external URLs. + /// + /// Menu items support nested hierarchies through the [`items`](https://shopify.dev/docs/api/storefront/current/objects/MenuItem#field-MenuItem.fields.items) field, enabling dropdown or multi-level navigation structures. The [`tags`](https://shopify.dev/docs/api/storefront/current/objects/MenuItem#field-MenuItem.fields.tags) field filters results when the item links to a collection specifically. + static let MenuItem = ApolloAPI.Object( + typename: "MenuItem", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Metafield.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Metafield.graphql.swift index de586820..a138488e 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Metafield.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Metafield.graphql.swift @@ -4,12 +4,12 @@ import ApolloAPI extension Storefront.Objects { - /// [Custom metadata](https://shopify.dev/docs/apps/build/metafields) attached to a Shopify resource such as a [`Product`](https://shopify.dev/docs/api/storefront/current/objects/Product), [`Collection`](https://shopify.dev/docs/api/storefront/current/objects/Collection), or [`Customer`](https://shopify.dev/docs/api/storefront/current/objects/Customer). Each metafield is identified by a namespace and key, and stores a value with an associated type. - /// - /// Values are always stored as strings, but the [`type`](https://shopify.dev/docs/api/storefront/current/objects/Metafield#field-Metafield.fields.type) field indicates how to interpret the data. When a metafield's type is a resource reference, use the [`reference`](https://shopify.dev/docs/api/storefront/current/objects/Metafield#field-Metafield.fields.reference) or [`references`](https://shopify.dev/docs/api/storefront/current/objects/Metafield#field-Metafield.fields.references) fields to retrieve the linked objects. Access metafields on any resource that implements the [`HasMetafields`](https://shopify.dev/docs/api/storefront/current/interfaces/HasMetafields) interface. - static let Metafield = ApolloAPI.Object( - typename: "Metafield", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// [Custom metadata](https://shopify.dev/docs/apps/build/metafields) attached to a Shopify resource such as a [`Product`](https://shopify.dev/docs/api/storefront/current/objects/Product), [`Collection`](https://shopify.dev/docs/api/storefront/current/objects/Collection), or [`Customer`](https://shopify.dev/docs/api/storefront/current/objects/Customer). Each metafield is identified by a namespace and key, and stores a value with an associated type. + /// + /// Values are always stored as strings, but the [`type`](https://shopify.dev/docs/api/storefront/current/objects/Metafield#field-Metafield.fields.type) field indicates how to interpret the data. When a metafield's type is a resource reference, use the [`reference`](https://shopify.dev/docs/api/storefront/current/objects/Metafield#field-Metafield.fields.reference) or [`references`](https://shopify.dev/docs/api/storefront/current/objects/Metafield#field-Metafield.fields.references) fields to retrieve the linked objects. Access metafields on any resource that implements the [`HasMetafields`](https://shopify.dev/docs/api/storefront/current/interfaces/HasMetafields) interface. + static let Metafield = ApolloAPI.Object( + typename: "Metafield", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MetafieldDeleteUserError.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MetafieldDeleteUserError.graphql.swift index 72e248a1..d04f7bb3 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MetafieldDeleteUserError.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MetafieldDeleteUserError.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// An error that occurs during the execution of cart metafield deletion. - static let MetafieldDeleteUserError = ApolloAPI.Object( - typename: "MetafieldDeleteUserError", - implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], - keyFields: nil - ) -} + /// An error that occurs during the execution of cart metafield deletion. + static let MetafieldDeleteUserError = ApolloAPI.Object( + typename: "MetafieldDeleteUserError", + implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MetafieldsSetUserError.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MetafieldsSetUserError.graphql.swift index 0dd6a179..582effc3 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MetafieldsSetUserError.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MetafieldsSetUserError.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// An error that occurs during the execution of `MetafieldsSet`. - static let MetafieldsSetUserError = ApolloAPI.Object( - typename: "MetafieldsSetUserError", - implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], - keyFields: nil - ) -} + /// An error that occurs during the execution of `MetafieldsSet`. + static let MetafieldsSetUserError = ApolloAPI.Object( + typename: "MetafieldsSetUserError", + implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Metaobject.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Metaobject.graphql.swift index e9f10056..e978c19e 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Metaobject.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Metaobject.graphql.swift @@ -4,15 +4,15 @@ import ApolloAPI extension Storefront.Objects { - /// An instance of [custom structured data](https://shopify.dev/docs/apps/build/metaobjects) defined by a metaobject definition. Metaobjects store reusable content that extends beyond standard Shopify resources, such as size charts, author profiles, or custom content sections. - /// - /// Each metaobject contains fields that match the types and validation rules specified in its definition. [`Metafield`](https://shopify.dev/docs/api/storefront/current/objects/Metafield) references can point to metaobjects, connecting custom data with products, collections, and other resources. If the definition has the `renderable` capability, then the [`seo`](https://shopify.dev/docs/api/storefront/current/objects/Metaobject#field-Metaobject.fields.seo) field provides SEO metadata. If it has the `online_store` capability, then the [`onlineStoreUrl`](https://shopify.dev/docs/api/storefront/current/objects/Metaobject#field-Metaobject.fields.onlineStoreUrl) field returns the public URL. - static let Metaobject = ApolloAPI.Object( - typename: "Metaobject", - implementedInterfaces: [ - Storefront.Interfaces.Node.self, - Storefront.Interfaces.OnlineStorePublishable.self - ], - keyFields: nil - ) -} + /// An instance of [custom structured data](https://shopify.dev/docs/apps/build/metaobjects) defined by a metaobject definition. Metaobjects store reusable content that extends beyond standard Shopify resources, such as size charts, author profiles, or custom content sections. + /// + /// Each metaobject contains fields that match the types and validation rules specified in its definition. [`Metafield`](https://shopify.dev/docs/api/storefront/current/objects/Metafield) references can point to metaobjects, connecting custom data with products, collections, and other resources. If the definition has the `renderable` capability, then the [`seo`](https://shopify.dev/docs/api/storefront/current/objects/Metaobject#field-Metaobject.fields.seo) field provides SEO metadata. If it has the `online_store` capability, then the [`onlineStoreUrl`](https://shopify.dev/docs/api/storefront/current/objects/Metaobject#field-Metaobject.fields.onlineStoreUrl) field returns the public URL. + static let Metaobject = ApolloAPI.Object( + typename: "Metaobject", + implementedInterfaces: [ + Storefront.Interfaces.Node.self, + Storefront.Interfaces.OnlineStorePublishable.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Model3d.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Model3d.graphql.swift index 800d50eb..9bed0a0c 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Model3d.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Model3d.graphql.swift @@ -4,13 +4,13 @@ import ApolloAPI extension Storefront.Objects { - /// Represents a Shopify hosted 3D model. - static let Model3d = ApolloAPI.Object( - typename: "Model3d", - implementedInterfaces: [ - Storefront.Interfaces.Media.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// Represents a Shopify hosted 3D model. + static let Model3d = ApolloAPI.Object( + typename: "Model3d", + implementedInterfaces: [ + Storefront.Interfaces.Media.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MoneyV2.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MoneyV2.graphql.swift index fe411c16..393df385 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MoneyV2.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/MoneyV2.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// A precise monetary value with its associated currency. Combines a decimal amount with a three-letter [`CurrencyCode`](https://shopify.dev/docs/api/storefront/current/enums/CurrencyCode) to express prices, costs, and other financial values. For example, 12.99 USD. - static let MoneyV2 = ApolloAPI.Object( - typename: "MoneyV2", - implementedInterfaces: [], - keyFields: nil - ) -} + /// A precise monetary value with its associated currency. Combines a decimal amount with a three-letter [`CurrencyCode`](https://shopify.dev/docs/api/storefront/current/enums/CurrencyCode) to express prices, costs, and other financial values. For example, 12.99 USD. + static let MoneyV2 = ApolloAPI.Object( + typename: "MoneyV2", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Mutation.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Mutation.graphql.swift index f9b04a22..ec8c61ed 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Mutation.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Mutation.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. - static let Mutation = ApolloAPI.Object( - typename: "Mutation", - implementedInterfaces: [], - keyFields: nil - ) -} + /// The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. + static let Mutation = ApolloAPI.Object( + typename: "Mutation", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Order.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Order.graphql.swift index 64d9464a..2a78fd0f 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Order.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Order.graphql.swift @@ -4,13 +4,13 @@ import ApolloAPI extension Storefront.Objects { - /// An order is a customer’s completed request to purchase one or more products from a shop. An order is created when a customer completes the checkout process, during which time they provides an email address, billing address and payment information. - static let Order = ApolloAPI.Object( - typename: "Order", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// An order is a customer’s completed request to purchase one or more products from a shop. An order is created when a customer completes the checkout process, during which time they provides an email address, billing address and payment information. + static let Order = ApolloAPI.Object( + typename: "Order", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Page.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Page.graphql.swift index 85f252c2..732bd359 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Page.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Page.graphql.swift @@ -4,17 +4,17 @@ import ApolloAPI extension Storefront.Objects { - /// A [custom content page](https://help.shopify.com/manual/online-store/add-edit-pages) on a merchant's store. Pages display HTML-formatted content, such as "About Us", contact details, or store policies. - /// - /// Each page has a unique [`handle`](https://shopify.dev/docs/api/storefront/current/objects/Page#field-Page.fields.handle) for URL routing and includes [`SEO`](https://shopify.dev/docs/api/storefront/current/objects/SEO) information for search engine optimization. Pages support [`Metafield`](https://shopify.dev/docs/api/storefront/current/objects/Metafield) attachments for storing additional custom data. - static let Page = ApolloAPI.Object( - typename: "Page", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self, - Storefront.Interfaces.OnlineStorePublishable.self, - Storefront.Interfaces.Trackable.self - ], - keyFields: nil - ) -} + /// A [custom content page](https://help.shopify.com/manual/online-store/add-edit-pages) on a merchant's store. Pages display HTML-formatted content, such as "About Us", contact details, or store policies. + /// + /// Each page has a unique [`handle`](https://shopify.dev/docs/api/storefront/current/objects/Page#field-Page.fields.handle) for URL routing and includes [`SEO`](https://shopify.dev/docs/api/storefront/current/objects/SEO) information for search engine optimization. Pages support [`Metafield`](https://shopify.dev/docs/api/storefront/current/objects/Metafield) attachments for storing additional custom data. + static let Page = ApolloAPI.Object( + typename: "Page", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self, + Storefront.Interfaces.OnlineStorePublishable.self, + Storefront.Interfaces.Trackable.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Product.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Product.graphql.swift index 4fbb9c9b..0b5f1d44 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Product.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Product.graphql.swift @@ -4,21 +4,21 @@ import ApolloAPI extension Storefront.Objects { - /// Represents an item listed in a shop's catalog. - /// - /// Products support multiple [product variants](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant), representing different versions of the same product, and can include various [media](https://shopify.dev/docs/api/storefront/current/interfaces/Media) types. Use the [`selectedOrFirstAvailableVariant`](https://shopify.dev/docs/api/storefront/current/objects/Product#field-Product.fields.selectedOrFirstAvailableVariant) or [`variantBySelectedOptions`](https://shopify.dev/docs/api/storefront/current/objects/Product#field-Product.fields.variantBySelectedOptions) fields to help customers find the right variant based on their selections. - /// - /// Products can be organized into [collections](https://shopify.dev/docs/api/storefront/current/objects/Collection), associated with [selling plans](https://shopify.dev/docs/api/storefront/current/objects/SellingPlanGroup) for subscriptions, and extended with custom data through [metafields](https://shopify.dev/docs/api/storefront/current/objects/Metafield). - /// - /// Learn more about working with [products and collections](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/products-collections). - static let Product = ApolloAPI.Object( - typename: "Product", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self, - Storefront.Interfaces.OnlineStorePublishable.self, - Storefront.Interfaces.Trackable.self - ], - keyFields: nil - ) -} + /// Represents an item listed in a shop's catalog. + /// + /// Products support multiple [product variants](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant), representing different versions of the same product, and can include various [media](https://shopify.dev/docs/api/storefront/current/interfaces/Media) types. Use the [`selectedOrFirstAvailableVariant`](https://shopify.dev/docs/api/storefront/current/objects/Product#field-Product.fields.selectedOrFirstAvailableVariant) or [`variantBySelectedOptions`](https://shopify.dev/docs/api/storefront/current/objects/Product#field-Product.fields.variantBySelectedOptions) fields to help customers find the right variant based on their selections. + /// + /// Products can be organized into [collections](https://shopify.dev/docs/api/storefront/current/objects/Collection), associated with [selling plans](https://shopify.dev/docs/api/storefront/current/objects/SellingPlanGroup) for subscriptions, and extended with custom data through [metafields](https://shopify.dev/docs/api/storefront/current/objects/Metafield). + /// + /// Learn more about working with [products and collections](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/products-collections). + static let Product = ApolloAPI.Object( + typename: "Product", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self, + Storefront.Interfaces.OnlineStorePublishable.self, + Storefront.Interfaces.Trackable.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ProductConnection.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ProductConnection.graphql.swift index 2893db12..7b3e95f5 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ProductConnection.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ProductConnection.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// An auto-generated type for paginating through multiple Products. - static let ProductConnection = ApolloAPI.Object( - typename: "ProductConnection", - implementedInterfaces: [], - keyFields: nil - ) -} + /// An auto-generated type for paginating through multiple Products. + static let ProductConnection = ApolloAPI.Object( + typename: "ProductConnection", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ProductOption.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ProductOption.graphql.swift index b630868c..d0966ede 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ProductOption.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ProductOption.graphql.swift @@ -4,14 +4,14 @@ import ApolloAPI extension Storefront.Objects { - /// A customizable product attribute that customers select when purchasing, such as "Size", "Color", or "Material". Each option has a name and a set of [`ProductOptionValue`](https://shopify.dev/docs/api/storefront/current/objects/ProductOptionValue) objects representing the available choices. - /// - /// Different combinations of option values create distinct [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) objects. Option values can include visual swatches that display colors or images to help customers make selections. Option names have a 255-character limit. - /// - /// Learn more about [Shopify's product model](https://shopify.dev/docs/apps/build/product-merchandising/products-and-collections). - static let ProductOption = ApolloAPI.Object( - typename: "ProductOption", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// A customizable product attribute that customers select when purchasing, such as "Size", "Color", or "Material". Each option has a name and a set of [`ProductOptionValue`](https://shopify.dev/docs/api/storefront/current/objects/ProductOptionValue) objects representing the available choices. + /// + /// Different combinations of option values create distinct [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) objects. Option values can include visual swatches that display colors or images to help customers make selections. Option names have a 255-character limit. + /// + /// Learn more about [Shopify's product model](https://shopify.dev/docs/apps/build/product-merchandising/products-and-collections). + static let ProductOption = ApolloAPI.Object( + typename: "ProductOption", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ProductOptionValue.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ProductOptionValue.graphql.swift index 3f0122c0..fb2e1491 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ProductOptionValue.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ProductOptionValue.graphql.swift @@ -4,14 +4,14 @@ import ApolloAPI extension Storefront.Objects { - /// A specific value for a [`ProductOption`](https://shopify.dev/docs/api/storefront/current/objects/ProductOption), such as "Red" or "Blue" for a "Color" option. Option values combine across different options to create [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) objects. - /// - /// Each value can include a visual swatch that displays a color or image. The [`firstSelectableVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductOptionValue#field-ProductOptionValue.fields.firstSelectableVariant) field returns the variant that combines this option value with the lowest-position values for all other options. This is useful for building product selection interfaces. - /// - /// Learn more about [Shopify's product model](https://shopify.dev/docs/apps/build/product-merchandising/products-and-collections). - static let ProductOptionValue = ApolloAPI.Object( - typename: "ProductOptionValue", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// A specific value for a [`ProductOption`](https://shopify.dev/docs/api/storefront/current/objects/ProductOption), such as "Red" or "Blue" for a "Color" option. Option values combine across different options to create [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) objects. + /// + /// Each value can include a visual swatch that displays a color or image. The [`firstSelectableVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductOptionValue#field-ProductOptionValue.fields.firstSelectableVariant) field returns the variant that combines this option value with the lowest-position values for all other options. This is useful for building product selection interfaces. + /// + /// Learn more about [Shopify's product model](https://shopify.dev/docs/apps/build/product-merchandising/products-and-collections). + static let ProductOptionValue = ApolloAPI.Object( + typename: "ProductOptionValue", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ProductVariant.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ProductVariant.graphql.swift index fee3dbed..73ceceab 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ProductVariant.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ProductVariant.graphql.swift @@ -4,17 +4,17 @@ import ApolloAPI extension Storefront.Objects { - /// A specific version of a [product](https://shopify.dev/docs/api/storefront/current/objects/Product) available for sale, differentiated by options like size or color. For example, a small blue t-shirt and a large blue t-shirt are separate variants of the same product. For more information, see the docs on [Shopify's product model](https://shopify.dev/docs/apps/build/product-merchandising/products-and-collections). - /// - /// For products with quantity rules, variants enforce minimum, maximum, and increment constraints on purchases. - /// - /// Variants also support subscriptions and pre-orders through [selling plan allocations](https://shopify.dev/docs/api/storefront/current/objects/SellingPlanAllocation) objects, bundle configurations through [product variant components](https://shopify.dev/docs/api/storefront/current/objects/ProductVariantComponent) objects, and [shop pay installments pricing](https://shopify.dev/docs/api/storefront/current/objects/ShopPayInstallmentsPricing) for flexible payment options. - static let ProductVariant = ApolloAPI.Object( - typename: "ProductVariant", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// A specific version of a [product](https://shopify.dev/docs/api/storefront/current/objects/Product) available for sale, differentiated by options like size or color. For example, a small blue t-shirt and a large blue t-shirt are separate variants of the same product. For more information, see the docs on [Shopify's product model](https://shopify.dev/docs/apps/build/product-merchandising/products-and-collections). + /// + /// For products with quantity rules, variants enforce minimum, maximum, and increment constraints on purchases. + /// + /// Variants also support subscriptions and pre-orders through [selling plan allocations](https://shopify.dev/docs/api/storefront/current/objects/SellingPlanAllocation) objects, bundle configurations through [product variant components](https://shopify.dev/docs/api/storefront/current/objects/ProductVariantComponent) objects, and [shop pay installments pricing](https://shopify.dev/docs/api/storefront/current/objects/ShopPayInstallmentsPricing) for flexible payment options. + static let ProductVariant = ApolloAPI.Object( + typename: "ProductVariant", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ProductVariantConnection.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ProductVariantConnection.graphql.swift index 626b14d8..85d4703e 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ProductVariantConnection.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ProductVariantConnection.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// An auto-generated type for paginating through multiple ProductVariants. - static let ProductVariantConnection = ApolloAPI.Object( - typename: "ProductVariantConnection", - implementedInterfaces: [], - keyFields: nil - ) -} + /// An auto-generated type for paginating through multiple ProductVariants. + static let ProductVariantConnection = ApolloAPI.Object( + typename: "ProductVariantConnection", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/QueryRoot.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/QueryRoot.graphql.swift index 0adca9c0..758b107a 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/QueryRoot.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/QueryRoot.graphql.swift @@ -4,14 +4,14 @@ import ApolloAPI extension Storefront.Objects { - /// The entry point for all Storefront API queries. Provides access to shop resources including products, collections, carts, and customer data, as well as content like articles and pages. This query acts as the public, top-level type from which all queries must start. - /// - /// Use individual queries like [`product`](https://shopify.dev/docs/api/storefront/current/queries/product) or [`collection`](https://shopify.dev/docs/api/storefront/current/queries/collection) to fetch specific resources by ID or handle. Use plural queries like [`products`](https://shopify.dev/docs/api/storefront/current/queries/products) or [`collections`](https://shopify.dev/docs/api/storefront/current/queries/collections) to retrieve paginated lists with optional filtering and sorting. The [`search`](https://shopify.dev/docs/api/storefront/current/queries/search) and [`predictiveSearch`](https://shopify.dev/docs/api/storefront/current/queries/predictiveSearch) queries enable storefront search functionality. - /// - /// Explore queries interactively with the [GraphiQL explorer and sample query kit](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/api-exploration). - static let QueryRoot = ApolloAPI.Object( - typename: "QueryRoot", - implementedInterfaces: [], - keyFields: nil - ) -} + /// The entry point for all Storefront API queries. Provides access to shop resources including products, collections, carts, and customer data, as well as content like articles and pages. This query acts as the public, top-level type from which all queries must start. + /// + /// Use individual queries like [`product`](https://shopify.dev/docs/api/storefront/current/queries/product) or [`collection`](https://shopify.dev/docs/api/storefront/current/queries/collection) to fetch specific resources by ID or handle. Use plural queries like [`products`](https://shopify.dev/docs/api/storefront/current/queries/products) or [`collections`](https://shopify.dev/docs/api/storefront/current/queries/collections) to retrieve paginated lists with optional filtering and sorting. The [`search`](https://shopify.dev/docs/api/storefront/current/queries/search) and [`predictiveSearch`](https://shopify.dev/docs/api/storefront/current/queries/predictiveSearch) queries enable storefront search functionality. + /// + /// Explore queries interactively with the [GraphiQL explorer and sample query kit](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/api-exploration). + static let QueryRoot = ApolloAPI.Object( + typename: "QueryRoot", + implementedInterfaces: [], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/SearchQuerySuggestion.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/SearchQuerySuggestion.graphql.swift index fa3b0a00..86c66855 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/SearchQuerySuggestion.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/SearchQuerySuggestion.graphql.swift @@ -4,12 +4,12 @@ import ApolloAPI extension Storefront.Objects { - /// A suggested search term returned by the [`predictiveSearch`](https://shopify.dev/docs/api/storefront/current/queries/predictiveSearch) query. Query suggestions help customers refine their searches by showing relevant terms as they type. - /// - /// The [`text`](https://shopify.dev/docs/api/storefront/current/objects/SearchQuerySuggestion#field-SearchQuerySuggestion.fields.text) field provides the plain suggestion, while [`styledText`](https://shopify.dev/docs/api/storefront/current/objects/SearchQuerySuggestion#field-SearchQuerySuggestion.fields.styledText) includes HTML tags to highlight matching portions. Implements [`Trackable`](https://shopify.dev/docs/api/storefront/current/interfaces/Trackable) for analytics reporting on search traffic origins. - static let SearchQuerySuggestion = ApolloAPI.Object( - typename: "SearchQuerySuggestion", - implementedInterfaces: [Storefront.Interfaces.Trackable.self], - keyFields: nil - ) -} + /// A suggested search term returned by the [`predictiveSearch`](https://shopify.dev/docs/api/storefront/current/queries/predictiveSearch) query. Query suggestions help customers refine their searches by showing relevant terms as they type. + /// + /// The [`text`](https://shopify.dev/docs/api/storefront/current/objects/SearchQuerySuggestion#field-SearchQuerySuggestion.fields.text) field provides the plain suggestion, while [`styledText`](https://shopify.dev/docs/api/storefront/current/objects/SearchQuerySuggestion#field-SearchQuerySuggestion.fields.styledText) includes HTML tags to highlight matching portions. Implements [`Trackable`](https://shopify.dev/docs/api/storefront/current/interfaces/Trackable) for analytics reporting on search traffic origins. + static let SearchQuerySuggestion = ApolloAPI.Object( + typename: "SearchQuerySuggestion", + implementedInterfaces: [Storefront.Interfaces.Trackable.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/SellingPlan.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/SellingPlan.graphql.swift index b2efdd93..409eb4d3 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/SellingPlan.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/SellingPlan.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// Represents deferred or recurring purchase options for [products](https://shopify.dev/docs/api/storefront/current/objects/Product) and [product variants](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant), such as subscriptions, pre-orders, or try-before-you-buy. Each selling plan belongs to a [`SellingPlanGroup`](https://shopify.dev/docs/api/storefront/current/objects/SellingPlanGroup) and defines billing, pricing, inventory, and delivery policies. - static let SellingPlan = ApolloAPI.Object( - typename: "SellingPlan", - implementedInterfaces: [Storefront.Interfaces.HasMetafields.self], - keyFields: nil - ) -} + /// Represents deferred or recurring purchase options for [products](https://shopify.dev/docs/api/storefront/current/objects/Product) and [product variants](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant), such as subscriptions, pre-orders, or try-before-you-buy. Each selling plan belongs to a [`SellingPlanGroup`](https://shopify.dev/docs/api/storefront/current/objects/SellingPlanGroup) and defines billing, pricing, inventory, and delivery policies. + static let SellingPlan = ApolloAPI.Object( + typename: "SellingPlan", + implementedInterfaces: [Storefront.Interfaces.HasMetafields.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Shop.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Shop.graphql.swift index 7569031e..2aaf36b0 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Shop.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Shop.graphql.swift @@ -4,15 +4,15 @@ import ApolloAPI extension Storefront.Objects { - /// The central hub for store-wide settings and information accessible through the Storefront API. Provides the shop's name, description, and branding configuration including logos and colors through the [`Brand`](https://shopify.dev/docs/api/storefront/current/objects/Brand) object. - /// - /// Access store policies such as privacy, refund, shipping, and terms of service via [`ShopPolicy`](https://shopify.dev/docs/api/storefront/current/objects/ShopPolicy), and the subscription policy via [`ShopPolicyWithDefault`](https://shopify.dev/docs/api/storefront/current/objects/ShopPolicyWithDefault). [`PaymentSettings`](https://shopify.dev/docs/api/storefront/current/objects/PaymentSettings) expose accepted card brands, supported digital wallets, and enabled presentment currencies. The object also includes the primary [`Domain`](https://shopify.dev/docs/api/storefront/current/objects/Domain), countries the shop ships to, [`ShopPayInstallmentsPricing`](https://shopify.dev/docs/api/storefront/current/objects/ShopPayInstallmentsPricing), and [`SocialLoginProvider`](https://shopify.dev/docs/api/storefront/current/objects/SocialLoginProvider) options for customer accounts. - static let Shop = ApolloAPI.Object( - typename: "Shop", - implementedInterfaces: [ - Storefront.Interfaces.HasMetafields.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// The central hub for store-wide settings and information accessible through the Storefront API. Provides the shop's name, description, and branding configuration including logos and colors through the [`Brand`](https://shopify.dev/docs/api/storefront/current/objects/Brand) object. + /// + /// Access store policies such as privacy, refund, shipping, and terms of service via [`ShopPolicy`](https://shopify.dev/docs/api/storefront/current/objects/ShopPolicy), and the subscription policy via [`ShopPolicyWithDefault`](https://shopify.dev/docs/api/storefront/current/objects/ShopPolicyWithDefault). [`PaymentSettings`](https://shopify.dev/docs/api/storefront/current/objects/PaymentSettings) expose accepted card brands, supported digital wallets, and enabled presentment currencies. The object also includes the primary [`Domain`](https://shopify.dev/docs/api/storefront/current/objects/Domain), countries the shop ships to, [`ShopPayInstallmentsPricing`](https://shopify.dev/docs/api/storefront/current/objects/ShopPayInstallmentsPricing), and [`SocialLoginProvider`](https://shopify.dev/docs/api/storefront/current/objects/SocialLoginProvider) options for customer accounts. + static let Shop = ApolloAPI.Object( + typename: "Shop", + implementedInterfaces: [ + Storefront.Interfaces.HasMetafields.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ShopPayInstallmentsFinancingPlan.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ShopPayInstallmentsFinancingPlan.graphql.swift index e0bf0737..b7b81b7f 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ShopPayInstallmentsFinancingPlan.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ShopPayInstallmentsFinancingPlan.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// The financing plan in Shop Pay Installments. - static let ShopPayInstallmentsFinancingPlan = ApolloAPI.Object( - typename: "ShopPayInstallmentsFinancingPlan", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// The financing plan in Shop Pay Installments. + static let ShopPayInstallmentsFinancingPlan = ApolloAPI.Object( + typename: "ShopPayInstallmentsFinancingPlan", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ShopPayInstallmentsFinancingPlanTerm.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ShopPayInstallmentsFinancingPlanTerm.graphql.swift index 00519362..6c86ff1f 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ShopPayInstallmentsFinancingPlanTerm.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ShopPayInstallmentsFinancingPlanTerm.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// The terms of the financing plan in Shop Pay Installments. - static let ShopPayInstallmentsFinancingPlanTerm = ApolloAPI.Object( - typename: "ShopPayInstallmentsFinancingPlanTerm", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// The terms of the financing plan in Shop Pay Installments. + static let ShopPayInstallmentsFinancingPlanTerm = ApolloAPI.Object( + typename: "ShopPayInstallmentsFinancingPlanTerm", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ShopPayInstallmentsProductVariantPricing.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ShopPayInstallmentsProductVariantPricing.graphql.swift index 9e6bf52e..751d98a2 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ShopPayInstallmentsProductVariantPricing.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ShopPayInstallmentsProductVariantPricing.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// The shop pay installments pricing information for a product variant. - static let ShopPayInstallmentsProductVariantPricing = ApolloAPI.Object( - typename: "ShopPayInstallmentsProductVariantPricing", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// The shop pay installments pricing information for a product variant. + static let ShopPayInstallmentsProductVariantPricing = ApolloAPI.Object( + typename: "ShopPayInstallmentsProductVariantPricing", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ShopPolicy.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ShopPolicy.graphql.swift index 9bebf5c9..5cc20c1a 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ShopPolicy.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/ShopPolicy.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// Policy that a merchant has configured for their store, such as their refund or privacy policy. - static let ShopPolicy = ApolloAPI.Object( - typename: "ShopPolicy", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// Policy that a merchant has configured for their store, such as their refund or privacy policy. + static let ShopPolicy = ApolloAPI.Object( + typename: "ShopPolicy", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/TaxonomyCategory.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/TaxonomyCategory.graphql.swift index 43d4ea95..33f8fa35 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/TaxonomyCategory.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/TaxonomyCategory.graphql.swift @@ -4,14 +4,14 @@ import ApolloAPI extension Storefront.Objects { - /// A category from Shopify's [Standard Product Taxonomy](https://shopify.github.io/product-taxonomy/releases/unstable/?categoryId=sg-4-17-2-17) assigned to a [`Product`](https://shopify.dev/docs/api/storefront/current/objects/Product). Categories provide hierarchical classification through the `ancestors` field. - /// - /// The [`ancestors`](https://shopify.dev/docs/api/storefront/current/objects/TaxonomyCategory#field-TaxonomyCategory.fields.ancestors) field returns the parent chain from the immediate parent up to the root. Each ancestor category also includes its own `ancestors`. - /// - /// The [`name`](https://shopify.dev/docs/api/storefront/latest/objects/TaxonomyCategory#field-TaxonomyCategory.fields.name) field returns the localized category name based on the storefront's request language with shop locale fallbacks. If a translation isn't available for the resolved locale, the English taxonomy name is returned. - static let TaxonomyCategory = ApolloAPI.Object( - typename: "TaxonomyCategory", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// A category from Shopify's [Standard Product Taxonomy](https://shopify.github.io/product-taxonomy/releases/unstable/?categoryId=sg-4-17-2-17) assigned to a [`Product`](https://shopify.dev/docs/api/storefront/current/objects/Product). Categories provide hierarchical classification through the `ancestors` field. + /// + /// The [`ancestors`](https://shopify.dev/docs/api/storefront/current/objects/TaxonomyCategory#field-TaxonomyCategory.fields.ancestors) field returns the parent chain from the immediate parent up to the root. Each ancestor category also includes its own `ancestors`. + /// + /// The [`name`](https://shopify.dev/docs/api/storefront/latest/objects/TaxonomyCategory#field-TaxonomyCategory.fields.name) field returns the localized category name based on the storefront's request language with shop locale fallbacks. If a translation isn't available for the resolved locale, the English taxonomy name is returned. + static let TaxonomyCategory = ApolloAPI.Object( + typename: "TaxonomyCategory", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/UrlRedirect.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/UrlRedirect.graphql.swift index c5cbdf79..0738616f 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/UrlRedirect.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/UrlRedirect.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// A redirect on the online store. - static let UrlRedirect = ApolloAPI.Object( - typename: "UrlRedirect", - implementedInterfaces: [Storefront.Interfaces.Node.self], - keyFields: nil - ) -} + /// A redirect on the online store. + static let UrlRedirect = ApolloAPI.Object( + typename: "UrlRedirect", + implementedInterfaces: [Storefront.Interfaces.Node.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/UserError.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/UserError.graphql.swift index 34e9974c..4dce0363 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/UserError.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/UserError.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// Represents an error in the input of a mutation. - static let UserError = ApolloAPI.Object( - typename: "UserError", - implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], - keyFields: nil - ) -} + /// Represents an error in the input of a mutation. + static let UserError = ApolloAPI.Object( + typename: "UserError", + implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/UserErrorsShopPayPaymentRequestSessionUserErrors.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/UserErrorsShopPayPaymentRequestSessionUserErrors.graphql.swift index 18685d1f..52635ec5 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/UserErrorsShopPayPaymentRequestSessionUserErrors.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/UserErrorsShopPayPaymentRequestSessionUserErrors.graphql.swift @@ -4,10 +4,10 @@ import ApolloAPI extension Storefront.Objects { - /// Error codes for failed Shop Pay payment request session mutations. - static let UserErrorsShopPayPaymentRequestSessionUserErrors = ApolloAPI.Object( - typename: "UserErrorsShopPayPaymentRequestSessionUserErrors", - implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], - keyFields: nil - ) -} + /// Error codes for failed Shop Pay payment request session mutations. + static let UserErrorsShopPayPaymentRequestSessionUserErrors = ApolloAPI.Object( + typename: "UserErrorsShopPayPaymentRequestSessionUserErrors", + implementedInterfaces: [Storefront.Interfaces.DisplayableError.self], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Video.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Video.graphql.swift index 31761039..1a4409a6 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Video.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Objects/Video.graphql.swift @@ -4,15 +4,15 @@ import ApolloAPI extension Storefront.Objects { - /// A video hosted on Shopify's servers. Implements the [`Media`](https://shopify.dev/docs/api/storefront/current/interfaces/Media) interface and provides multiple video sources through the [`sources`](https://shopify.dev/docs/api/storefront/current/objects/Video#field-Video.fields.sources) field, each with [format](https://shopify.dev/docs/api/storefront/current/objects/Video#field-Video.fields.sources.format), dimensions, and [URL information](https://shopify.dev/docs/api/storefront/current/objects/Video#field-Video.fields.sources.url) for adaptive playback. - /// - /// For videos hosted on external platforms like YouTube or Vimeo, use [`ExternalVideo`](https://shopify.dev/docs/api/storefront/current/objects/ExternalVideo) instead. - static let Video = ApolloAPI.Object( - typename: "Video", - implementedInterfaces: [ - Storefront.Interfaces.Media.self, - Storefront.Interfaces.Node.self - ], - keyFields: nil - ) -} + /// A video hosted on Shopify's servers. Implements the [`Media`](https://shopify.dev/docs/api/storefront/current/interfaces/Media) interface and provides multiple video sources through the [`sources`](https://shopify.dev/docs/api/storefront/current/objects/Video#field-Video.fields.sources) field, each with [format](https://shopify.dev/docs/api/storefront/current/objects/Video#field-Video.fields.sources.format), dimensions, and [URL information](https://shopify.dev/docs/api/storefront/current/objects/Video#field-Video.fields.sources.url) for adaptive playback. + /// + /// For videos hosted on external platforms like YouTube or Vimeo, use [`ExternalVideo`](https://shopify.dev/docs/api/storefront/current/objects/ExternalVideo) instead. + static let Video = ApolloAPI.Object( + typename: "Video", + implementedInterfaces: [ + Storefront.Interfaces.Media.self, + Storefront.Interfaces.Node.self + ], + keyFields: nil + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/SchemaMetadata.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/SchemaMetadata.graphql.swift index 62d4bf19..76ab0431 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/SchemaMetadata.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/SchemaMetadata.graphql.swift @@ -4,97 +4,98 @@ import ApolloAPI protocol Storefront_SelectionSet: ApolloAPI.SelectionSet & ApolloAPI.RootSelectionSet - where Schema == Storefront.SchemaMetadata {} +where Schema == Storefront.SchemaMetadata {} protocol Storefront_InlineFragment: ApolloAPI.SelectionSet & ApolloAPI.InlineFragment - where Schema == Storefront.SchemaMetadata {} +where Schema == Storefront.SchemaMetadata {} protocol Storefront_MutableSelectionSet: ApolloAPI.MutableRootSelectionSet - where Schema == Storefront.SchemaMetadata {} +where Schema == Storefront.SchemaMetadata {} protocol Storefront_MutableInlineFragment: ApolloAPI.MutableSelectionSet & ApolloAPI.InlineFragment - where Schema == Storefront.SchemaMetadata {} +where Schema == Storefront.SchemaMetadata {} extension Storefront { - typealias SelectionSet = Storefront_SelectionSet + typealias SelectionSet = Storefront_SelectionSet - typealias InlineFragment = Storefront_InlineFragment + typealias InlineFragment = Storefront_InlineFragment - typealias MutableSelectionSet = Storefront_MutableSelectionSet + typealias MutableSelectionSet = Storefront_MutableSelectionSet - typealias MutableInlineFragment = Storefront_MutableInlineFragment + typealias MutableInlineFragment = Storefront_MutableInlineFragment - enum SchemaMetadata: ApolloAPI.SchemaMetadata { - static let configuration: any ApolloAPI.SchemaConfiguration.Type = SchemaConfiguration.self + enum SchemaMetadata: ApolloAPI.SchemaMetadata { + static let configuration: any ApolloAPI.SchemaConfiguration.Type = SchemaConfiguration.self - static func objectType(forTypename typename: String) -> ApolloAPI.Object? { - switch typename { - case "AppliedGiftCard": return Storefront.Objects.AppliedGiftCard - case "Article": return Storefront.Objects.Article - case "BaseCartLineConnection": return Storefront.Objects.BaseCartLineConnection - case "Blog": return Storefront.Objects.Blog - case "Cart": return Storefront.Objects.Cart - case "CartBuyerIdentity": return Storefront.Objects.CartBuyerIdentity - case "CartCost": return Storefront.Objects.CartCost - case "CartCreatePayload": return Storefront.Objects.CartCreatePayload - case "CartDeliveryGroup": return Storefront.Objects.CartDeliveryGroup - case "CartDeliveryGroupConnection": return Storefront.Objects.CartDeliveryGroupConnection - case "CartDeliveryOption": return Storefront.Objects.CartDeliveryOption - case "CartLine": return Storefront.Objects.CartLine - case "CartLineCost": return Storefront.Objects.CartLineCost - case "CartUserError": return Storefront.Objects.CartUserError - case "Collection": return Storefront.Objects.Collection - case "Comment": return Storefront.Objects.Comment - case "Company": return Storefront.Objects.Company - case "CompanyContact": return Storefront.Objects.CompanyContact - case "CompanyLocation": return Storefront.Objects.CompanyLocation - case "ComponentizableCartLine": return Storefront.Objects.ComponentizableCartLine - case "Customer": return Storefront.Objects.Customer - case "CustomerUserError": return Storefront.Objects.CustomerUserError - case "ExternalVideo": return Storefront.Objects.ExternalVideo - case "GenericFile": return Storefront.Objects.GenericFile - case "Image": return Storefront.Objects.Image - case "Location": return Storefront.Objects.Location - case "MailingAddress": return Storefront.Objects.MailingAddress - case "Market": return Storefront.Objects.Market - case "MediaImage": return Storefront.Objects.MediaImage - case "MediaPresentation": return Storefront.Objects.MediaPresentation - case "Menu": return Storefront.Objects.Menu - case "MenuItem": return Storefront.Objects.MenuItem - case "Metafield": return Storefront.Objects.Metafield - case "MetafieldDeleteUserError": return Storefront.Objects.MetafieldDeleteUserError - case "MetafieldsSetUserError": return Storefront.Objects.MetafieldsSetUserError - case "Metaobject": return Storefront.Objects.Metaobject - case "Model3d": return Storefront.Objects.Model3d - case "MoneyV2": return Storefront.Objects.MoneyV2 - case "Mutation": return Storefront.Objects.Mutation - case "Order": return Storefront.Objects.Order - case "Page": return Storefront.Objects.Page - case "Product": return Storefront.Objects.Product - case "ProductConnection": return Storefront.Objects.ProductConnection - case "ProductOption": return Storefront.Objects.ProductOption - case "ProductOptionValue": return Storefront.Objects.ProductOptionValue - case "ProductVariant": return Storefront.Objects.ProductVariant - case "ProductVariantConnection": return Storefront.Objects.ProductVariantConnection - case "QueryRoot": return Storefront.Objects.QueryRoot - case "SearchQuerySuggestion": return Storefront.Objects.SearchQuerySuggestion - case "SellingPlan": return Storefront.Objects.SellingPlan - case "Shop": return Storefront.Objects.Shop - case "ShopPayInstallmentsFinancingPlan": return Storefront.Objects.ShopPayInstallmentsFinancingPlan - case "ShopPayInstallmentsFinancingPlanTerm": return Storefront.Objects.ShopPayInstallmentsFinancingPlanTerm - case "ShopPayInstallmentsProductVariantPricing": return Storefront.Objects.ShopPayInstallmentsProductVariantPricing - case "ShopPolicy": return Storefront.Objects.ShopPolicy - case "TaxonomyCategory": return Storefront.Objects.TaxonomyCategory - case "UrlRedirect": return Storefront.Objects.UrlRedirect - case "UserError": return Storefront.Objects.UserError - case "UserErrorsShopPayPaymentRequestSessionUserErrors": return Storefront.Objects.UserErrorsShopPayPaymentRequestSessionUserErrors - case "Video": return Storefront.Objects.Video - default: return nil - } - } + static func objectType(forTypename typename: String) -> ApolloAPI.Object? { + switch typename { + case "AppliedGiftCard": return Storefront.Objects.AppliedGiftCard + case "Article": return Storefront.Objects.Article + case "BaseCartLineConnection": return Storefront.Objects.BaseCartLineConnection + case "Blog": return Storefront.Objects.Blog + case "Cart": return Storefront.Objects.Cart + case "CartBuyerIdentity": return Storefront.Objects.CartBuyerIdentity + case "CartCost": return Storefront.Objects.CartCost + case "CartCreatePayload": return Storefront.Objects.CartCreatePayload + case "CartDeliveryGroup": return Storefront.Objects.CartDeliveryGroup + case "CartDeliveryGroupConnection": return Storefront.Objects.CartDeliveryGroupConnection + case "CartDeliveryOption": return Storefront.Objects.CartDeliveryOption + case "CartLine": return Storefront.Objects.CartLine + case "CartLineCost": return Storefront.Objects.CartLineCost + case "CartUserError": return Storefront.Objects.CartUserError + case "Collection": return Storefront.Objects.Collection + case "Comment": return Storefront.Objects.Comment + case "Company": return Storefront.Objects.Company + case "CompanyContact": return Storefront.Objects.CompanyContact + case "CompanyLocation": return Storefront.Objects.CompanyLocation + case "ComponentizableCartLine": return Storefront.Objects.ComponentizableCartLine + case "Customer": return Storefront.Objects.Customer + case "CustomerUserError": return Storefront.Objects.CustomerUserError + case "ExternalVideo": return Storefront.Objects.ExternalVideo + case "GenericFile": return Storefront.Objects.GenericFile + case "Image": return Storefront.Objects.Image + case "Location": return Storefront.Objects.Location + case "MailingAddress": return Storefront.Objects.MailingAddress + case "Market": return Storefront.Objects.Market + case "MediaImage": return Storefront.Objects.MediaImage + case "MediaPresentation": return Storefront.Objects.MediaPresentation + case "Menu": return Storefront.Objects.Menu + case "MenuItem": return Storefront.Objects.MenuItem + case "Metafield": return Storefront.Objects.Metafield + case "MetafieldDeleteUserError": return Storefront.Objects.MetafieldDeleteUserError + case "MetafieldsSetUserError": return Storefront.Objects.MetafieldsSetUserError + case "Metaobject": return Storefront.Objects.Metaobject + case "Model3d": return Storefront.Objects.Model3d + case "MoneyV2": return Storefront.Objects.MoneyV2 + case "Mutation": return Storefront.Objects.Mutation + case "Order": return Storefront.Objects.Order + case "Page": return Storefront.Objects.Page + case "Product": return Storefront.Objects.Product + case "ProductConnection": return Storefront.Objects.ProductConnection + case "ProductOption": return Storefront.Objects.ProductOption + case "ProductOptionValue": return Storefront.Objects.ProductOptionValue + case "ProductVariant": return Storefront.Objects.ProductVariant + case "ProductVariantConnection": return Storefront.Objects.ProductVariantConnection + case "QueryRoot": return Storefront.Objects.QueryRoot + case "SearchQuerySuggestion": return Storefront.Objects.SearchQuerySuggestion + case "SellingPlan": return Storefront.Objects.SellingPlan + case "Shop": return Storefront.Objects.Shop + case "ShopPayInstallmentsFinancingPlan": return Storefront.Objects.ShopPayInstallmentsFinancingPlan + case "ShopPayInstallmentsFinancingPlanTerm": return Storefront.Objects.ShopPayInstallmentsFinancingPlanTerm + case "ShopPayInstallmentsProductVariantPricing": return Storefront.Objects.ShopPayInstallmentsProductVariantPricing + case "ShopPolicy": return Storefront.Objects.ShopPolicy + case "TaxonomyCategory": return Storefront.Objects.TaxonomyCategory + case "UrlRedirect": return Storefront.Objects.UrlRedirect + case "UserError": return Storefront.Objects.UserError + case "UserErrorsShopPayPaymentRequestSessionUserErrors": return Storefront.Objects.UserErrorsShopPayPaymentRequestSessionUserErrors + case "Video": return Storefront.Objects.Video + default: return nil + } } + } - enum Objects {} - enum Interfaces {} - enum Unions {} -} + enum Objects {} + enum Interfaces {} + enum Unions {} + +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Unions/Merchandise.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Unions/Merchandise.graphql.swift index 49f0e10d..0ae4c906 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Unions/Merchandise.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Schema/Unions/Merchandise.graphql.swift @@ -4,9 +4,9 @@ import ApolloAPI extension Storefront.Unions { - /// A [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) that a buyer intends to purchase at checkout. - static let Merchandise = Union( - name: "Merchandise", - possibleTypes: [Storefront.Objects.ProductVariant.self] - ) -} + /// A [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) that a buyer intends to purchase at checkout. + static let Merchandise = Union( + name: "Merchandise", + possibleTypes: [Storefront.Objects.ProductVariant.self] + ) +} \ No newline at end of file diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Storefront.graphql.swift b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Storefront.graphql.swift index 35be0463..edb07332 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Storefront.graphql.swift +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/ShopifyAcceleratedCheckoutsApp/Generated/Storefront.graphql.swift @@ -1,4 +1,4 @@ // @generated // This file was automatically generated and should not be edited. -enum Storefront {} +enum Storefront { } diff --git a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/Storefront.xcconfig.example b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/Storefront.xcconfig.example index 44618266..aea5720c 100644 --- a/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/Storefront.xcconfig.example +++ b/platforms/swift/Samples/ShopifyAcceleratedCheckoutsApp/Storefront.xcconfig.example @@ -7,4 +7,4 @@ STOREFRONT_DOMAIN = shopify.my-shopify.com STOREFRONT_ACCESS_TOKEN = 123456 -API_VERSION = 2025-07 \ No newline at end of file +API_VERSION = 2026-04 diff --git a/platforms/swift/Scripts/apollo_download_schema b/platforms/swift/Scripts/apollo_download_schema index 2b8e1ebf..5cd2c852 100755 --- a/platforms/swift/Scripts/apollo_download_schema +++ b/platforms/swift/Scripts/apollo_download_schema @@ -28,7 +28,7 @@ download_schema() { fi if [ -z "$API_VERSION" ] || [ "$API_VERSION" = "null" ]; then echo "❌ API_VERSION is not set. Check your Storefront.xcconfig file." - echo " Add API_VERSION = 2025-07 to your Storefront.xcconfig" + echo " Add API_VERSION = 2026-04 to your Storefront.xcconfig" exit 1 fi