@doswiftly/storefront-sdk 16.1.0 → 17.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -474,7 +474,7 @@ export type Cart = Node & {
474
474
  appliedGiftCards: Array<CartAppliedGiftCard>;
475
475
  /** Cart-level custom attributes (free-form key/value). Use for cart-wide metadata such as B2B PO number or marketing source. Replace (not merge) the list with `cartUpdateAttributes`. */
476
476
  attributes: Array<CartAttribute>;
477
- /** Available payment methods dla tego cart (shop-configured providers) */
477
+ /** Available payment methods dla tego carta deduplikowane per type, sorted by merchant priority. */
478
478
  availablePaymentMethods: Array<PaymentMethod>;
479
479
  /** Shipping methods available for this cart at the given destination. Reads the cart subtotal and weight directly — for pre-cart preview (e.g. a product detail page calculator) use the top-level `availableShippingMethods(address, cart)` query instead. Returns an empty `methods` list plus a `DIGITAL_ONLY_NO_SHIPPING` user error when the cart has no shippable items; the storefront can use this to skip the shipping step entirely. */
480
480
  availableShippingMethods: AvailableShippingMethodsPayload;
@@ -508,6 +508,8 @@ export type Cart = Node & {
508
508
  recommendations?: Maybe<CartRecommendations>;
509
509
  /** True when at least one line in the cart requires physical shipping. False when every line is non-physical (digital, gift card, service, subscription). Use as the single signal to render or skip the shipping step in checkout. */
510
510
  requiresShipping: Scalars['Boolean']['output'];
511
+ /** Optional concrete instrument code selected within `selectedPaymentMethod` (e.g. `"blik"`, `"mb"`, `"154"`). Set gdy klient klika konkretny instrument tile na storefront (per `PaymentMethod.instruments`). Pre-payment intent: skopiowany do `Order.paymentInstrumentCode` przy `cartComplete`. Storefront może cross-reference z `availablePaymentMethods.methods[].instruments[]` żeby dostać `displayName` / `brandImageUrl`. Added by payment-instrument-preselection core sprint Req 3 AC7. */
512
+ selectedPaymentInstrumentCode?: Maybe<Scalars['String']['output']>;
511
513
  /** The payment method currently selected on the cart. Null until the buyer picks a method via `cartSelectPaymentMethod`. */
512
514
  selectedPaymentMethod?: Maybe<PaymentMethod>;
513
515
  /** The shipping method currently selected on the cart (label + cost). Null until the buyer picks a method. */
@@ -520,6 +522,8 @@ export type Cart = Node & {
520
522
  totalQuantity: Scalars['Int']['output'];
521
523
  /** When the cart was last modified (ISO 8601). */
522
524
  updatedAt: Scalars['DateTime']['output'];
525
+ /** Non-fatal advisories computed at query time. Currently emitted: `PAYMENT_SELECTION_STALE` when `selectedPaymentMethod` / `selectedPaymentInstrumentCode` are no longer in live gateway capabilities (storefront re-prompts the buyer). Read-only — backend state is not mutated. Added by payment-instrument-preselection-advanced sub-sprint Adv-2 Req 1. */
526
+ warnings: Array<CartWarning>;
523
527
  };
524
528
  export type CartAddLinesPayload = {
525
529
  /** The updated cart on success; null when `userErrors` is non-empty. */
@@ -619,6 +623,18 @@ export type CartBuyerIdentityInput = {
619
623
  /** Buyer phone number. Free-form; max 30 chars. */
620
624
  phone?: InputMaybe<Scalars['String']['input']>;
621
625
  };
626
+ export type CartClearPaymentSelectionInput = {
627
+ /** ID of the cart to clear payment selection on. */
628
+ cartId: Scalars['ID']['input'];
629
+ };
630
+ export type CartClearPaymentSelectionPayload = {
631
+ /** The updated cart z cleared payment selection. */
632
+ cart?: Maybe<Cart>;
633
+ /** Business / validation errors carrying a stable `CartErrorCode` in `code` (e.g. `ALREADY_COMPLETED`). */
634
+ userErrors: Array<UserError>;
635
+ /** Non-fatal advisories — the mutation itself succeeded. */
636
+ warnings: Array<CartWarning>;
637
+ };
622
638
  export type CartCompleteInput = {
623
639
  /** ID of the cart to complete. */
624
640
  cartId: Scalars['ID']['input'];
@@ -814,8 +830,12 @@ export type CartRemoveLinesPayload = {
814
830
  export type CartSelectPaymentMethodInput = {
815
831
  /** ID of the cart to update. */
816
832
  cartId: Scalars['ID']['input'];
817
- /** ID of the chosen payment method (matches a `PaymentMethod.id` from `availablePaymentMethods`). */
818
- paymentMethodId: Scalars['ID']['input'];
833
+ /** Category of the payment method the buyer picked (matches `PaymentMethod.type` from `availablePaymentMethods`). */
834
+ methodType: PaymentMethodType;
835
+ /** Optional gateway-specific instrument code (`blik`, `mb`, `c`, `154`, ...) z `PaymentMethod.instruments[].instrumentCode`. Wymaga ustawienia `preferredProviderCode` — instrument code jest provider-specific. Bez restrictive regex (różne bramki używają `.` / `:` / `/` w przyszłości). SQL injection chroniona przez Prisma parametrized queries. Added by payment-instrument-preselection core sprint Req 3.1. */
836
+ preferredInstrumentCode?: InputMaybe<Scalars['String']['input']>;
837
+ /** Optional override of `PaymentMethod.preferredProvider`. Pass a provider code (`payu`, `przelewy24`, ...) from `providersAvailable` when the buyer explicitly picks one (rare — usually the merchant priority is enough). Format: lowercase alphanumerics + underscore + hyphen, 2-50 characters. Renamed from `preferredProviderId` — `*Code` is reserved for lowercase string identifiers, `*Id` for UUIDs. */
838
+ preferredProviderCode?: InputMaybe<Scalars['String']['input']>;
819
839
  };
820
840
  export type CartSelectPaymentMethodPayload = {
821
841
  /** The updated cart with `selectedPaymentMethod` populated. */
@@ -936,7 +956,7 @@ export type CartWarning = {
936
956
  /** What the warning is about — a cart line ID when the warning refers to a specific item, or a field path otherwise. */
937
957
  target: Scalars['String']['output'];
938
958
  };
939
- export type CartWarningCode = 'MERCHANDISE_NOT_AVAILABLE' | 'MERCHANDISE_NOT_ENOUGH_STOCK' | 'PAYMENTS_AMOUNT_REGION_MISMATCH' | 'SHIPPING_METHOD_AUTO_CLEARED';
959
+ export type CartWarningCode = 'MERCHANDISE_NOT_AVAILABLE' | 'MERCHANDISE_NOT_ENOUGH_STOCK' | 'PAYMENTS_AMOUNT_REGION_MISMATCH' | 'PAYMENT_SELECTION_STALE' | 'SHIPPING_METHOD_AUTO_CLEARED';
940
960
  export type Category = {
941
961
  /** Child categories */
942
962
  children: Array<Category>;
@@ -1823,6 +1843,8 @@ export type Mutation = {
1823
1843
  cartAddLines: CartAddLinesPayload;
1824
1844
  /** Apply a gift card to the cart by full code. The card is debited at `cartComplete`. Rate-limited to 5 requests per minute per IP+shop (gift card codes form a finite enumerable space). */
1825
1845
  cartApplyGiftCard: CartApplyGiftCardPayload;
1846
+ /** Clear all payment selection state on the cart in a single atomic operation. Use for accordion "back to method picker" flows w storefront UI. Idempotent — calling twice yields the same end state. Cart MUSI być `ACTIVE` (CONVERTED carts reject z `ALREADY_COMPLETED`). */
1847
+ cartClearPaymentSelection: CartClearPaymentSelectionPayload;
1826
1848
  /** Finalise the cart into an `Order`. The cart is locked and no longer accepts mutations. Payment is initiated separately via `paymentCreate` — check `order.canCreatePayment` to decide whether to render a "Pay now" button or send the buyer directly to the confirmation page (for offline methods such as cash on delivery). Rate-limited to 5 requests per minute per IP+shop; pass an `idempotencyKey` to guard against duplicate orders on retry. */
1827
1849
  cartComplete: CartCompletePayload;
1828
1850
  /** Create a new cart. All fields on `input` are optional — call with no input to create an empty cart, or pass initial lines, buyer identity, attributes, discount codes, email and a shipping address to skip the corresponding follow-up calls. */
@@ -1833,7 +1855,7 @@ export type Mutation = {
1833
1855
  cartRemoveGiftCard: CartRemoveGiftCardPayload;
1834
1856
  /** Remove one or more lines from the cart by `CartLine.id`. Equivalent to `cartUpdateLines` with `quantity: 0` but lets the storefront express the intent explicitly. */
1835
1857
  cartRemoveLines: CartRemoveLinesPayload;
1836
- /** Select a payment method on the cart. Validates against the active shop payment methods and currency. The selection is finalised at `cartComplete`; payment itself is initiated via a separate `paymentCreate` mutation after the order is created. */
1858
+ /** Select a payment method on the cart by category (BLIK, CARD, BANK_TRANSFER, ...). Backend resolves the preferred provider from `MerchantPaymentConfig` at `paymentCreate` time. Optional `preferredProviderCode` overrides the merchant priority when the buyer explicitly picks a gateway from `PaymentMethod.providersAvailable`. Optional `preferredInstrumentCode` enables instrument-level deep-link na gateway hosted page (BLIK ekran, mBank flow, etc.) — wymaga `preferredProviderCode`. */
1837
1859
  cartSelectPaymentMethod: CartSelectPaymentMethodPayload;
1838
1860
  /** Select a shipping method on the cart. Validates the method against the cart contents and the shipping address (must be eligible for the destination, and a pickup point must be set when the method delivers to a locker / collection point). Updates `cost.totalShipping` and the grand total. */
1839
1861
  cartSelectShippingMethod: CartSelectShippingMethodPayload;
@@ -2029,31 +2051,62 @@ export type PaymentCreateInput = {
2029
2051
  export type PaymentCreatePayload = {
2030
2052
  /** The created (or reused) payment session on success; null when `userErrors` is non-empty. */
2031
2053
  payment?: Maybe<PaymentSession>;
2032
- /** Business / validation errors carrying a stable `PaymentErrorCode` in `code` (e.g. `ORDER_NOT_FOUND`, `ORDER_ALREADY_PAID`, `ORDER_NOT_PAYABLE`, `PAYMENT_PROVIDER_NOT_CONFIGURED`, `RETURN_URL_INVALID`, `PAYMENT_FAILED`). */
2054
+ /** Business / validation errors carrying a stable `PaymentErrorCode` in `code` (e.g. `ORDER_NOT_FOUND`, `ORDER_ALREADY_PAID`, `ORDER_NOT_PAYABLE`, `PAYMENT_PROVIDER_NOT_CONFIGURED`, `RETURN_URL_INVALID`, `PAYMENT_FAILED`, `INSTRUMENT_PRESELECTION_FAILED`). */
2033
2055
  userErrors: Array<UserError>;
2056
+ /** Non-blocking signals — backend state change context (e.g. instrument auto-cleared, server-side adjustment). Default empty array. Storefront branches per `code` for UI retry hints / analytics events. Added by payment-instrument-preselection-advanced Adv-1 Req 2.3. */
2057
+ warnings: Array<PaymentWarning>;
2034
2058
  };
2035
2059
  export type PaymentInitiationFlow = 'INSTANT_DIRECT' | 'OFFLINE_MANUAL' | 'ONLINE_EMBEDDED' | 'ONLINE_REDIRECT';
2036
2060
  export type PaymentMethod = {
2061
+ /** True when the buyer can actually pick this method right now. False when the resolving gateway is temporarily unavailable (incident/maintenance) or reported the method as disabled. Storefront UI should gray-out the tile when false instead of hiding it — gives merchants observability into routing failures. */
2062
+ available: Scalars['Boolean']['output'];
2037
2063
  /** Optional buyer-facing description shown under the name (e.g. "Pay with your bank app"). */
2038
2064
  description?: Maybe<Scalars['String']['output']>;
2039
2065
  /** Optional icon URL configured by the merchant. Use as the method tile artwork. */
2040
2066
  icon?: Maybe<Scalars['String']['output']>;
2041
2067
  /** Stable ID of the payment method. Pass to `cartSelectPaymentMethod` to select it. */
2042
2068
  id: Scalars['ID']['output'];
2069
+ /** Concrete instruments exposed by gateway providers w obrębie tej method (BLIK code, branded banks, wallets, card brands). Null gdy żaden provider nie expose'uje granular data dla tej method. Empty array gdy gateway expose'uje ale wszystkie instruments są disabled lub po post-filter (cross-provider leak prevention). Storefront może wyrenderować listę i pass `instrumentCode` jako `preferredInstrumentCode` w `cartSelectPaymentMethod` → gateway deep-link na ten ekran. Added by payment-instrument-preselection core sprint Req 1. */
2070
+ instruments?: Maybe<Array<PaymentMethodInstrument>>;
2043
2071
  /** True when the merchant has marked this method as the default. Pre-select it in the picker. */
2044
2072
  isDefault: Scalars['Boolean']['output'];
2045
2073
  /** Display name configured by the merchant (e.g. "BLIK", "Credit card", "Cash on delivery"). */
2046
2074
  name: Scalars['String']['output'];
2047
2075
  /** Merchant-configured display position — lower values come first in the picker. */
2048
2076
  position: Scalars['Float']['output'];
2049
- /** Provider code (e.g. "payu", "stripe", "p24", "cash_on_delivery"). Identifies the integration behind the method; do not branch UI on it use `type` instead. */
2050
- provider: Scalars['String']['output'];
2077
+ /** Preferred provider code (UPPERCASE enum) that the backend will route to when the buyer picks this method type and does not specify `preferredProviderCode`. Populated only when at least one provider supports the type. Typed enum since core sprint payment-instrument-preselection (was `String` pre-v9.0). */
2078
+ preferredProvider?: Maybe<ProviderCode>;
2079
+ /** Provider code (e.g. `PAYU`, `STRIPE`, `PRZELEWY24`, `CASH_ON_DELIVERY`). Identifies the integration behind the method; do not branch UI on it — use `type` instead. Typed enum since core sprint payment-instrument-preselection (was `String` pre-v9.0). */
2080
+ provider: ProviderCode;
2081
+ /** Provider codes (UPPERCASE enum: `PAYU`, `PRZELEWY24`, ...) that can fulfil this method type for the current shop, ordered by merchant priority. Pre-select `preferredProvider`; expose the rest only when the buyer wants to choose explicitly. Single-element array when only one provider supports the type. Typed enum since core sprint payment-instrument-preselection (was `[String]` pre-v9.0). */
2082
+ providersAvailable?: Maybe<Array<ProviderCode>>;
2051
2083
  /** ISO 4217 currency codes the method accepts. Null when the method accepts the shop currency without restriction. */
2052
2084
  supportedCurrencies?: Maybe<Array<Scalars['String']['output']>>;
2053
2085
  /** Category of the method (CARD, BLIK, BANK_TRANSFER, CASH_ON_DELIVERY, OTHER). Drives iconography and copy. */
2054
2086
  type: PaymentMethodType;
2055
- };
2087
+ /** When `available` is false, this enum carries the diagnostic reason (GATEWAY_DOWN, GATEWAY_DISABLED, NO_INSTRUMENTS, CREDENTIALS_INVALID). Null when `available` is true. UI can render context-aware copy ("PayU is temporarily down" vs "Method not configured"). */
2088
+ unavailableReason?: Maybe<PaymentMethodUnavailableReason>;
2089
+ };
2090
+ export type PaymentMethodInstrument = {
2091
+ /** Optional brand image URL (bank logo, wallet icon). Storefront może użyć jako tile artwork. Null gdy gateway nie expose'uje albo instrument nie ma brand visual (BLIK code). */
2092
+ brandImageUrl?: Maybe<Scalars['String']['output']>;
2093
+ /** UX rendering hint — jak storefront powinien wyrenderować ten instrument (prominent button vs branded tile vs dropdown vs radio). Backend-agnostic mapping na visual treatment. */
2094
+ displayHint: PaymentMethodInstrumentDisplayHint;
2095
+ /** Buyer-facing display name (e.g. "BLIK", "mBank", "ING Bank Śląski", "Apple Pay"). Lokalizacja zazwyczaj PL/EN — multi-language defer post-v1. */
2096
+ displayName: Scalars['String']['output'];
2097
+ /** True gdy instrument jest currently enabled w gateway live capabilities. Storefront może gray-out tile gdy false zamiast hide (observability dla merchant). */
2098
+ enabled: Scalars['Boolean']['output'];
2099
+ /** Gateway-specific instrument identifier (PayU: `"blik"`/`"mb"`/`"c"`, P24: numeric ID string `"154"`). Pass jako `preferredInstrumentCode` w `cartSelectPaymentMethod`. Stabilne per provider — gateway nie renumeruje. */
2100
+ instrumentCode: Scalars['String']['output'];
2101
+ /** Provider obsługujący ten instrument (UPPERCASE enum). Wymagane dla cross-provider dedupe (np. BLIK code dostępny zarówno przez PayU jak P24 — różne instrumenty mimo tej samej method type). */
2102
+ providerCode: ProviderCode;
2103
+ /** Semantic type klasyfikujący instrument w obrębie method (BLIK code vs bank vs wallet vs card brand). Storefront-facing dispatch dla per-instrument UI components. */
2104
+ type: PaymentMethodInstrumentType;
2105
+ };
2106
+ export type PaymentMethodInstrumentDisplayHint = 'BRANDED_TILE' | 'DROPDOWN_OPTION' | 'PROMINENT_BUTTON' | 'RADIO_OPTION';
2107
+ export type PaymentMethodInstrumentType = 'BANK' | 'BLIK_CODE' | 'CARD_BRAND' | 'OTHER' | 'WALLET';
2056
2108
  export type PaymentMethodType = 'BANK_TRANSFER' | 'BLIK' | 'CARD' | 'CASH_ON_DELIVERY' | 'OTHER';
2109
+ export type PaymentMethodUnavailableReason = 'CREDENTIALS_INVALID' | 'GATEWAY_DISABLED' | 'GATEWAY_DOWN' | 'NO_INSTRUMENTS';
2057
2110
  export type PaymentSession = {
2058
2111
  /** Client secret / token for the in-page payment widget. Populated only when `flow` is ONLINE_EMBEDDED. Treat as sensitive — do not log. */
2059
2112
  clientSecret?: Maybe<Scalars['String']['output']>;
@@ -2082,6 +2135,15 @@ export type PaymentSettings = {
2082
2135
  /** Kody aktywnych payment providerów dla tego sklepu (z IntegrationProvider table, type=PAYMENT). Np. ["payu", "cash_on_delivery"]. Storefront-dev używa do warunkowania UI checkout. */
2083
2136
  paymentProviders: Array<Scalars['String']['output']>;
2084
2137
  };
2138
+ export type PaymentWarning = {
2139
+ /** Machine-readable code — branch on this to dispatch UI retry hints. Add a new code only when there is a distinct UX response. */
2140
+ code: PaymentWarningCode;
2141
+ /** Pre-translated user-facing message describing what happened (Polish-first per shop locale). */
2142
+ message: Scalars['String']['output'];
2143
+ /** Optional additional hint string for UI dispatch — currently unused for `INSTRUMENT_CLEARED_FOR_RETRY` (semantic encoded in `message`). Reserved for future warning codes (e.g. `SLOW_GATEWAY_RESPONSE` → "Retry in 30s"). */
2144
+ retryHint?: Maybe<Scalars['String']['output']>;
2145
+ };
2146
+ export type PaymentWarningCode = 'INSTRUMENT_CLEARED_FOR_RETRY';
2085
2147
  export type PickupPoint = {
2086
2148
  /** Point address as a single human-readable line — show alongside the name on the confirmation page. */
2087
2149
  address?: Maybe<Scalars['String']['output']>;
@@ -2422,12 +2484,13 @@ export type ProductVariantEdge = {
2422
2484
  node: ProductVariant;
2423
2485
  };
2424
2486
  export type ProductVisibility = 'BUNDLE_ONLY' | 'HIDDEN' | 'PUBLIC';
2487
+ export type ProviderCode = 'BANK_TRANSFER' | 'CASH_ON_DELIVERY' | 'GIFT_CARD' | 'MANUAL_PAYMENT' | 'PAYU' | 'PRZELEWY24' | 'STRIPE' | 'TEST_GATEWAY';
2425
2488
  export type Query = {
2426
2489
  /** List of all currencies supported by the system (ECB rates) */
2427
2490
  allSupportedCurrencies: Array<Currency>;
2428
2491
  /** Paginated + searchable attribute options dla drill-into filter UI (np. dropdown z 800 licencjami + search input). Honors product context z exclude-self per attribute. Sort: COUNT_DESC default (most popular first), LABEL_ASC dla alfabetycznego z polskim collation. */
2429
2492
  attributeOptionsSearch: AttributeFilterValueConnection;
2430
- /** Payment methods active for the current shop, plus the merchant default. Shop-level independent of cart contents in this iteration. Fetch once for the checkout payment step. */
2493
+ /** Payment methods active for the current shop, plus the merchant default. Returns one row per `PaymentMethodType` (BLIK, CARD, BANK_TRANSFER, ...) with `providersAvailable` (provider codes sorted by merchant priority) and `preferredProvider` (the head of the list). Shop-level — independent of cart contents. */
2431
2494
  availablePaymentMethods: AvailablePaymentMethods;
2432
2495
  /** Standalone shipping-method preview for an address — does not require a cart. Pass an optional `cart` summary (subtotal, weight, currency) to evaluate price-based / weight-based rules and free-shipping thresholds. For an already-created cart, prefer `cart.availableShippingMethods(address)` — it reads the cart contents directly. */
2433
2496
  availableShippingMethods: AvailableShippingMethodsPayload;
@@ -3210,8 +3273,12 @@ export type AvailablePaymentMethodsQueryVariables = Exact<{
3210
3273
  }>;
3211
3274
  export type AvailablePaymentMethodsQuery = {
3212
3275
  availablePaymentMethods: {
3213
- methods: Array<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
3214
- defaultMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
3276
+ methods: Array<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position' | 'providersAvailable' | 'preferredProvider' | 'available' | 'unavailableReason'> & {
3277
+ instruments?: Maybe<Array<Pick<PaymentMethodInstrument, 'providerCode' | 'instrumentCode' | 'type' | 'displayName' | 'displayHint' | 'brandImageUrl' | 'enabled'>>>;
3278
+ })>;
3279
+ defaultMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position' | 'providersAvailable' | 'preferredProvider' | 'available' | 'unavailableReason'> & {
3280
+ instruments?: Maybe<Array<Pick<PaymentMethodInstrument, 'providerCode' | 'instrumentCode' | 'type' | 'displayName' | 'displayHint' | 'brandImageUrl' | 'enabled'>>>;
3281
+ })>;
3215
3282
  };
3216
3283
  };
3217
3284
  export type CartAddLinesMutationVariables = Exact<{
@@ -3220,7 +3287,7 @@ export type CartAddLinesMutationVariables = Exact<{
3220
3287
  }>;
3221
3288
  export type CartAddLinesMutation = {
3222
3289
  cartAddLines: {
3223
- cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3290
+ cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrumentCode' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3224
3291
  cost: {
3225
3292
  total: Pick<Money, 'amount' | 'currencyCode'>;
3226
3293
  subtotal: Pick<Money, 'amount' | 'currencyCode'>;
@@ -3282,7 +3349,7 @@ export type CartApplyGiftCardMutationVariables = Exact<{
3282
3349
  }>;
3283
3350
  export type CartApplyGiftCardMutation = {
3284
3351
  cartApplyGiftCard: {
3285
- cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3352
+ cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrumentCode' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3286
3353
  cost: {
3287
3354
  total: Pick<Money, 'amount' | 'currencyCode'>;
3288
3355
  subtotal: Pick<Money, 'amount' | 'currencyCode'>;
@@ -3365,6 +3432,68 @@ export type CartAvailableShippingMethodsQuery = {
3365
3432
  };
3366
3433
  })>;
3367
3434
  };
3435
+ export type CartClearPaymentSelectionMutationVariables = Exact<{
3436
+ input: CartClearPaymentSelectionInput;
3437
+ }>;
3438
+ export type CartClearPaymentSelectionMutation = {
3439
+ cartClearPaymentSelection: {
3440
+ cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrumentCode' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3441
+ cost: {
3442
+ total: Pick<Money, 'amount' | 'currencyCode'>;
3443
+ subtotal: Pick<Money, 'amount' | 'currencyCode'>;
3444
+ totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
3445
+ totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
3446
+ checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
3447
+ totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
3448
+ totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
3449
+ };
3450
+ lines: (Pick<CartLineConnection, 'totalCount'> & {
3451
+ nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
3452
+ variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
3453
+ price: Pick<Money, 'amount' | 'currencyCode'>;
3454
+ compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
3455
+ image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
3456
+ selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
3457
+ weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
3458
+ });
3459
+ cost: {
3460
+ pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
3461
+ subtotal: Pick<Money, 'amount' | 'currencyCode'>;
3462
+ total: Pick<Money, 'amount' | 'currencyCode'>;
3463
+ compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
3464
+ };
3465
+ attributes: Array<Pick<Attribute, 'key' | 'value'>>;
3466
+ attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
3467
+ giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
3468
+ })>;
3469
+ pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
3470
+ });
3471
+ buyerIdentity?: Maybe<Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>>;
3472
+ discountCodes: Array<Pick<CartDiscountCode, 'code' | 'isApplicable'>>;
3473
+ discountAllocations: Array<(Pick<CartDiscountAllocation, 'discountCode'> & {
3474
+ amount: Pick<Money, 'amount' | 'currencyCode'>;
3475
+ })>;
3476
+ attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
3477
+ shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
3478
+ pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
3479
+ })>;
3480
+ billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
3481
+ pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
3482
+ })>;
3483
+ selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
3484
+ price: Pick<Money, 'amount' | 'currencyCode'>;
3485
+ })>;
3486
+ selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
3487
+ appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
3488
+ appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
3489
+ remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
3490
+ })>;
3491
+ completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
3492
+ })>;
3493
+ userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
3494
+ warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
3495
+ };
3496
+ };
3368
3497
  export type CartCompleteMutationVariables = Exact<{
3369
3498
  input: CartCompleteInput;
3370
3499
  }>;
@@ -3390,7 +3519,7 @@ export type CartCreateMutationVariables = Exact<{
3390
3519
  }>;
3391
3520
  export type CartCreateMutation = {
3392
3521
  cartCreate: {
3393
- cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3522
+ cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrumentCode' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3394
3523
  cost: {
3395
3524
  total: Pick<Money, 'amount' | 'currencyCode'>;
3396
3525
  subtotal: Pick<Money, 'amount' | 'currencyCode'>;
@@ -3453,7 +3582,7 @@ export type CartDiscountCodesUpdateMutationVariables = Exact<{
3453
3582
  }>;
3454
3583
  export type CartDiscountCodesUpdateMutation = {
3455
3584
  cartDiscountCodesUpdate: {
3456
- cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3585
+ cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrumentCode' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3457
3586
  cost: {
3458
3587
  total: Pick<Money, 'amount' | 'currencyCode'>;
3459
3588
  subtotal: Pick<Money, 'amount' | 'currencyCode'>;
@@ -3514,7 +3643,7 @@ export type CartQueryVariables = Exact<{
3514
3643
  id: Scalars['ID']['input'];
3515
3644
  }>;
3516
3645
  export type CartQuery = {
3517
- cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3646
+ cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrumentCode' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3518
3647
  cost: {
3519
3648
  total: Pick<Money, 'amount' | 'currencyCode'>;
3520
3649
  subtotal: Pick<Money, 'amount' | 'currencyCode'>;
@@ -3573,7 +3702,7 @@ export type CartRemoveGiftCardMutationVariables = Exact<{
3573
3702
  }>;
3574
3703
  export type CartRemoveGiftCardMutation = {
3575
3704
  cartRemoveGiftCard: {
3576
- cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3705
+ cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrumentCode' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3577
3706
  cost: {
3578
3707
  total: Pick<Money, 'amount' | 'currencyCode'>;
3579
3708
  subtotal: Pick<Money, 'amount' | 'currencyCode'>;
@@ -3636,7 +3765,7 @@ export type CartRemoveLinesMutationVariables = Exact<{
3636
3765
  }>;
3637
3766
  export type CartRemoveLinesMutation = {
3638
3767
  cartRemoveLines: {
3639
- cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3768
+ cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrumentCode' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3640
3769
  cost: {
3641
3770
  total: Pick<Money, 'amount' | 'currencyCode'>;
3642
3771
  subtotal: Pick<Money, 'amount' | 'currencyCode'>;
@@ -3698,7 +3827,7 @@ export type CartSelectPaymentMethodMutationVariables = Exact<{
3698
3827
  }>;
3699
3828
  export type CartSelectPaymentMethodMutation = {
3700
3829
  cartSelectPaymentMethod: {
3701
- cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3830
+ cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrumentCode' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3702
3831
  cost: {
3703
3832
  total: Pick<Money, 'amount' | 'currencyCode'>;
3704
3833
  subtotal: Pick<Money, 'amount' | 'currencyCode'>;
@@ -3760,7 +3889,7 @@ export type CartSelectShippingMethodMutationVariables = Exact<{
3760
3889
  }>;
3761
3890
  export type CartSelectShippingMethodMutation = {
3762
3891
  cartSelectShippingMethod: {
3763
- cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3892
+ cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrumentCode' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3764
3893
  cost: {
3765
3894
  total: Pick<Money, 'amount' | 'currencyCode'>;
3766
3895
  subtotal: Pick<Money, 'amount' | 'currencyCode'>;
@@ -3822,7 +3951,7 @@ export type CartSetBillingAddressMutationVariables = Exact<{
3822
3951
  }>;
3823
3952
  export type CartSetBillingAddressMutation = {
3824
3953
  cartSetBillingAddress: {
3825
- cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3954
+ cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrumentCode' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3826
3955
  cost: {
3827
3956
  total: Pick<Money, 'amount' | 'currencyCode'>;
3828
3957
  subtotal: Pick<Money, 'amount' | 'currencyCode'>;
@@ -3884,7 +4013,7 @@ export type CartSetShippingAddressMutationVariables = Exact<{
3884
4013
  }>;
3885
4014
  export type CartSetShippingAddressMutation = {
3886
4015
  cartSetShippingAddress: {
3887
- cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
4016
+ cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrumentCode' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3888
4017
  cost: {
3889
4018
  total: Pick<Money, 'amount' | 'currencyCode'>;
3890
4019
  subtotal: Pick<Money, 'amount' | 'currencyCode'>;
@@ -3947,7 +4076,7 @@ export type CartUpdateAttributesMutationVariables = Exact<{
3947
4076
  }>;
3948
4077
  export type CartUpdateAttributesMutation = {
3949
4078
  cartUpdateAttributes: {
3950
- cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
4079
+ cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrumentCode' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
3951
4080
  cost: {
3952
4081
  total: Pick<Money, 'amount' | 'currencyCode'>;
3953
4082
  subtotal: Pick<Money, 'amount' | 'currencyCode'>;
@@ -4010,7 +4139,7 @@ export type CartUpdateBuyerIdentityMutationVariables = Exact<{
4010
4139
  }>;
4011
4140
  export type CartUpdateBuyerIdentityMutation = {
4012
4141
  cartUpdateBuyerIdentity: {
4013
- cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
4142
+ cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrumentCode' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
4014
4143
  cost: {
4015
4144
  total: Pick<Money, 'amount' | 'currencyCode'>;
4016
4145
  subtotal: Pick<Money, 'amount' | 'currencyCode'>;
@@ -4072,7 +4201,7 @@ export type CartUpdateGiftCardRecipientMutationVariables = Exact<{
4072
4201
  }>;
4073
4202
  export type CartUpdateGiftCardRecipientMutation = {
4074
4203
  cartUpdateGiftCardRecipient: {
4075
- cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
4204
+ cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrumentCode' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
4076
4205
  cost: {
4077
4206
  total: Pick<Money, 'amount' | 'currencyCode'>;
4078
4207
  subtotal: Pick<Money, 'amount' | 'currencyCode'>;
@@ -4135,7 +4264,7 @@ export type CartUpdateLinesMutationVariables = Exact<{
4135
4264
  }>;
4136
4265
  export type CartUpdateLinesMutation = {
4137
4266
  cartUpdateLines: {
4138
- cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
4267
+ cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrumentCode' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
4139
4268
  cost: {
4140
4269
  total: Pick<Money, 'amount' | 'currencyCode'>;
4141
4270
  subtotal: Pick<Money, 'amount' | 'currencyCode'>;
@@ -4198,7 +4327,7 @@ export type CartUpdateNoteMutationVariables = Exact<{
4198
4327
  }>;
4199
4328
  export type CartUpdateNoteMutation = {
4200
4329
  cartUpdateNote: {
4201
- cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
4330
+ cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrumentCode' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
4202
4331
  cost: {
4203
4332
  total: Pick<Money, 'amount' | 'currencyCode'>;
4204
4333
  subtotal: Pick<Money, 'amount' | 'currencyCode'>;
@@ -4291,6 +4420,7 @@ export type PaymentCreateMutation = {
4291
4420
  paymentCreate: {
4292
4421
  payment?: Maybe<Pick<PaymentSession, 'id' | 'orderId' | 'flow' | 'provider' | 'redirectUrl' | 'clientSecret' | 'status' | 'expiresAt'>>;
4293
4422
  userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
4423
+ warnings: Array<Pick<PaymentWarning, 'message' | 'code' | 'retryHint'>>;
4294
4424
  };
4295
4425
  };
4296
4426
  export type CustomerAddressesQueryVariables = Exact<{
@@ -4355,11 +4485,18 @@ export type CustomerSignupMutation = {
4355
4485
  };
4356
4486
  };
4357
4487
  export type AvailablePaymentMethodsFragment = {
4358
- methods: Array<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
4359
- defaultMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
4488
+ methods: Array<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position' | 'providersAvailable' | 'preferredProvider' | 'available' | 'unavailableReason'> & {
4489
+ instruments?: Maybe<Array<Pick<PaymentMethodInstrument, 'providerCode' | 'instrumentCode' | 'type' | 'displayName' | 'displayHint' | 'brandImageUrl' | 'enabled'>>>;
4490
+ })>;
4491
+ defaultMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position' | 'providersAvailable' | 'preferredProvider' | 'available' | 'unavailableReason'> & {
4492
+ instruments?: Maybe<Array<Pick<PaymentMethodInstrument, 'providerCode' | 'instrumentCode' | 'type' | 'displayName' | 'displayHint' | 'brandImageUrl' | 'enabled'>>>;
4493
+ })>;
4360
4494
  };
4361
- export type PaymentMethodFragment = Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>;
4362
- export type CartFragment = (Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
4495
+ export type PaymentMethodFragment = (Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position' | 'providersAvailable' | 'preferredProvider' | 'available' | 'unavailableReason'> & {
4496
+ instruments?: Maybe<Array<Pick<PaymentMethodInstrument, 'providerCode' | 'instrumentCode' | 'type' | 'displayName' | 'displayHint' | 'brandImageUrl' | 'enabled'>>>;
4497
+ });
4498
+ export type PaymentMethodInstrumentFragment = Pick<PaymentMethodInstrument, 'providerCode' | 'instrumentCode' | 'type' | 'displayName' | 'displayHint' | 'brandImageUrl' | 'enabled'>;
4499
+ export type CartFragment = (Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrumentCode' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
4363
4500
  cost: {
4364
4501
  total: Pick<Money, 'amount' | 'currencyCode'>;
4365
4502
  subtotal: Pick<Money, 'amount' | 'currencyCode'>;
@@ -4505,6 +4642,7 @@ export type OrderFragment = (Pick<Order, 'id' | 'orderNumber' | 'accessToken' |
4505
4642
  })>;
4506
4643
  });
4507
4644
  export type PaymentSessionFragment = Pick<PaymentSession, 'id' | 'orderId' | 'flow' | 'provider' | 'redirectUrl' | 'clientSecret' | 'status' | 'expiresAt'>;
4645
+ export type PaymentWarningFragment = Pick<PaymentWarning, 'message' | 'code' | 'retryHint'>;
4508
4646
  export type CustomerAccessTokenFieldsFragment = Pick<CustomerAccessToken, 'accessToken' | 'expiresAt'>;
4509
4647
  export type UserErrorFieldsFragment = Pick<UserError, 'message' | 'field' | 'code'>;
4510
4648
  export type CustomerFieldsFragment = (Pick<Customer, 'id' | 'email' | 'firstName' | 'lastName' | 'displayName' | 'phone' | 'isEmailVerified' | 'emailMarketing' | 'orderCount' | 'createdAt' | 'updatedAt'> & {