@doswiftly/storefront-sdk 19.2.0 → 20.1.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.
- package/CHANGELOG.md +53 -0
- package/dist/core/auth/session-events.d.ts +6 -9
- package/dist/core/auth/session-events.d.ts.map +1 -1
- package/dist/core/auth/session-events.js +6 -9
- package/dist/core/cart/cart-client.d.ts +39 -2
- package/dist/core/cart/cart-client.d.ts.map +1 -1
- package/dist/core/cart/cart-client.js +53 -3
- package/dist/core/cart/cart-recovery.d.ts +41 -71
- package/dist/core/cart/cart-recovery.d.ts.map +1 -1
- package/dist/core/cart/cart-recovery.js +37 -95
- package/dist/core/cart/cookie-config.d.ts +29 -3
- package/dist/core/cart/cookie-config.d.ts.map +1 -1
- package/dist/core/cart/cookie-config.js +35 -3
- package/dist/core/generated/operation-types.d.ts +282 -45
- package/dist/core/generated/operation-types.d.ts.map +1 -1
- package/dist/core/index.d.ts +3 -2
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +3 -2
- package/dist/core/middleware/cart-secret.d.ts +43 -0
- package/dist/core/middleware/cart-secret.d.ts.map +1 -0
- package/dist/core/middleware/cart-secret.js +55 -0
- package/dist/core/middleware/session-retry.d.ts +2 -2
- package/dist/core/middleware/session-retry.js +2 -2
- package/dist/core/operations/auth.d.ts +1 -1
- package/dist/core/operations/auth.d.ts.map +1 -1
- package/dist/core/operations/auth.js +2 -1
- package/dist/core/operations/cart.d.ts +23 -0
- package/dist/core/operations/cart.d.ts.map +1 -1
- package/dist/core/operations/cart.js +66 -0
- package/dist/react/cookies.d.ts +6 -0
- package/dist/react/cookies.d.ts.map +1 -1
- package/dist/react/cookies.js +23 -4
- package/dist/react/hooks/use-cart-manager.d.ts +20 -13
- package/dist/react/hooks/use-cart-manager.d.ts.map +1 -1
- package/dist/react/hooks/use-cart-manager.js +14 -12
- package/dist/react/hooks/use-logout.d.ts +7 -5
- package/dist/react/hooks/use-logout.d.ts.map +1 -1
- package/dist/react/hooks/use-logout.js +37 -7
- package/dist/react/providers/cart-manager-provider.d.ts +3 -0
- package/dist/react/providers/cart-manager-provider.d.ts.map +1 -1
- package/dist/react/providers/storefront-client-provider.d.ts.map +1 -1
- package/dist/react/providers/storefront-client-provider.js +6 -0
- package/dist/react/server/cookie-readers.d.ts +20 -0
- package/dist/react/server/cookie-readers.d.ts.map +1 -1
- package/dist/react/server/cookie-readers.js +22 -1
- package/dist/react/server/index.d.ts +2 -1
- package/dist/react/server/index.d.ts.map +1 -1
- package/dist/react/server/index.js +4 -1
- package/dist/react/stores/cart.context.d.ts +5 -0
- package/dist/react/stores/cart.context.d.ts.map +1 -1
- package/dist/react/stores/cart.context.js +5 -0
- package/dist/react/stores/cart.store.d.ts +6 -0
- package/dist/react/stores/cart.store.d.ts.map +1 -1
- package/dist/react/stores/cart.store.js +6 -0
- package/package.json +1 -1
|
@@ -595,6 +595,8 @@ export type CartAddressInput = {
|
|
|
595
595
|
streetLine2?: InputMaybe<Scalars['String']['input']>;
|
|
596
596
|
/** Buyer tax ID for B2B invoicing (Polish NIP). Persisted on the resulting order at checkout completion. */
|
|
597
597
|
taxId?: InputMaybe<Scalars['String']['input']>;
|
|
598
|
+
/** Buyer EU VAT number for cross-border B2B invoicing (e.g. PL1234567890). Persisted on the resulting order at checkout completion. */
|
|
599
|
+
vatNumber?: InputMaybe<Scalars['String']['input']>;
|
|
598
600
|
};
|
|
599
601
|
export type CartAppliedGiftCard = {
|
|
600
602
|
/** Amount of this gift card that will be applied to the cart total. */
|
|
@@ -649,8 +651,6 @@ export type CartBuyerIdentity = {
|
|
|
649
651
|
export type CartBuyerIdentityInput = {
|
|
650
652
|
/** Buyer country (ISO 3166-1 alpha-2). Hint for currency, tax and shipping eligibility before an address is set. */
|
|
651
653
|
countryCode?: InputMaybe<CountryCode>;
|
|
652
|
-
/** ID of a signed-in customer that owns this cart. Pass to bind a guest cart to a customer record. */
|
|
653
|
-
customerId?: InputMaybe<Scalars['ID']['input']>;
|
|
654
654
|
/** Buyer email address. Persisted to the order at checkout completion. */
|
|
655
655
|
email?: InputMaybe<Scalars['String']['input']>;
|
|
656
656
|
/** Buyer preferred language (ISO 639-1). Used for the order confirmation email and localised content. */
|
|
@@ -729,6 +729,8 @@ export type CartCreateInput = {
|
|
|
729
729
|
export type CartCreatePayload = {
|
|
730
730
|
/** The created cart on success; null when `userErrors` is non-empty. */
|
|
731
731
|
cart?: Maybe<Cart>;
|
|
732
|
+
/** One-time cart access secret, returned only here on creation. The SDK persists it for you; if you call the API directly, store it immediately — it cannot be retrieved again. */
|
|
733
|
+
secret?: Maybe<Scalars['String']['output']>;
|
|
732
734
|
/** Business / validation errors. Each entry carries a stable `code` (e.g. `CART_NOT_FOUND`, `NOT_ENOUGH_IN_STOCK`, `INVALID_MERCHANDISE_LINE`) — branch on `code`, never on `message`. */
|
|
733
735
|
userErrors: Array<UserError>;
|
|
734
736
|
/** Non-fatal advisories (informational only; the mutation itself succeeded). */
|
|
@@ -754,6 +756,14 @@ export type CartDiscountCodesUpdatePayload = {
|
|
|
754
756
|
/** Non-fatal advisories — the mutation itself succeeded. */
|
|
755
757
|
warnings: Array<CartWarning>;
|
|
756
758
|
};
|
|
759
|
+
export type CartDowngradeOnLogoutPayload = {
|
|
760
|
+
/** The downgraded cart on success — same id and secret (no rotation), with the customer association, contact details, addresses and payment selection cleared but line items kept. Null when `userErrors` is non-empty. */
|
|
761
|
+
cart?: Maybe<Cart>;
|
|
762
|
+
/** Business / validation errors carrying a stable `CartErrorCode` in `code` (e.g. `CART_NOT_FOUND`). */
|
|
763
|
+
userErrors: Array<UserError>;
|
|
764
|
+
/** Non-fatal advisories — the mutation itself succeeded. */
|
|
765
|
+
warnings: Array<CartWarning>;
|
|
766
|
+
};
|
|
757
767
|
export type CartLine = {
|
|
758
768
|
/** Typed configurator selections filled in by the buyer (snapshot from add-to-cart). Validated server-side against the product attribute definition; carries any pricing surcharge. */
|
|
759
769
|
attributeSelections: Array<AttributeSelection>;
|
|
@@ -834,12 +844,30 @@ export type CartLineUpdateInput = {
|
|
|
834
844
|
/** New quantity. Use 0 to remove the line from the cart. */
|
|
835
845
|
quantity: Scalars['Int']['input'];
|
|
836
846
|
};
|
|
847
|
+
export type CartMergePayload = {
|
|
848
|
+
/** The merged cart on success — it keeps the same id and secret as the guest cart passed in, so the stored cart-id cookie stays valid. Null when `userErrors` is non-empty. */
|
|
849
|
+
cart?: Maybe<Cart>;
|
|
850
|
+
/** Business / validation errors carrying a stable `CartErrorCode` in `code` — e.g. `CART_NOT_FOUND`, `CART_CURRENCY_MISMATCH`, `CART_MERGE_REQUIRES_AUTH`. */
|
|
851
|
+
userErrors: Array<UserError>;
|
|
852
|
+
/** Non-fatal advisories — the mutation itself succeeded. */
|
|
853
|
+
warnings: Array<CartWarning>;
|
|
854
|
+
};
|
|
837
855
|
export type CartRecommendations = {
|
|
838
856
|
/** Products frequently bought together with cart items */
|
|
839
857
|
frequentlyBoughtTogether: Array<ProductRecommendation>;
|
|
840
858
|
/** Products to consider adding */
|
|
841
859
|
youMayAlsoLike: Array<ProductRecommendation>;
|
|
842
860
|
};
|
|
861
|
+
export type CartRecoveryRedeemPayload = {
|
|
862
|
+
/** The recovered cart on success. Null when `userErrors` is non-empty (invalid / expired link). */
|
|
863
|
+
cart?: Maybe<Cart>;
|
|
864
|
+
/** The NEW cart access secret, returned only here on a successful redemption (the link rotates the secret). Persist it immediately — it cannot be retrieved again; the previous secret no longer works. */
|
|
865
|
+
secret?: Maybe<Scalars['String']['output']>;
|
|
866
|
+
/** Business / validation errors carrying a stable `CartErrorCode` in `code` — `CART_RECOVERY_LINK_EXPIRED` / `CART_RECOVERY_LINK_INVALID` (bad or expired link), `CART_NOT_FOUND` (the cart is gone or already completed — create a fresh one) or `CART_RECOVERY_REDEEM_FAILED` (unexpected failure). No cart content is exposed on failure. */
|
|
867
|
+
userErrors: Array<UserError>;
|
|
868
|
+
/** Non-fatal advisories — the mutation itself succeeded. */
|
|
869
|
+
warnings: Array<CartWarning>;
|
|
870
|
+
};
|
|
843
871
|
export type CartRemoveGiftCardInput = {
|
|
844
872
|
/** ID of the cart to update. */
|
|
845
873
|
cartId: Scalars['ID']['input'];
|
|
@@ -2161,6 +2189,8 @@ export type MailingAddress = Node & {
|
|
|
2161
2189
|
pickupPoint?: Maybe<PickupPoint>;
|
|
2162
2190
|
/** Postal / ZIP code. */
|
|
2163
2191
|
postalCode?: Maybe<Scalars['String']['output']>;
|
|
2192
|
+
/** Buyer business registry number (Polish REGON) carried on a cart address for B2B invoicing. Populated on cart shipping/billing addresses; null on customer address-book entries (REGON is customer-level). */
|
|
2193
|
+
regon?: Maybe<Scalars['String']['output']>;
|
|
2164
2194
|
/** State / province / region name. */
|
|
2165
2195
|
state?: Maybe<Scalars['String']['output']>;
|
|
2166
2196
|
/** State / province code (ISO 3166-2 subdivision, e.g. PL-MZ). */
|
|
@@ -2257,6 +2287,12 @@ export type Mutation = {
|
|
|
2257
2287
|
cartCreate: CartCreatePayload;
|
|
2258
2288
|
/** Replace (not merge) the list of discount codes on the cart. Pass an empty array to clear all codes. Rate-limited to 10 requests per minute per IP+shop. */
|
|
2259
2289
|
cartDiscountCodesUpdate: CartDiscountCodesUpdatePayload;
|
|
2290
|
+
/** Downgrade a cart to guest on logout — clears the customer association, contact details, addresses and payment selection, but keeps the line items, discount codes, selected shipping method, currency and notes. The cart id and secret are unchanged (no rotation), so the stored cart-id stays valid and the buyer keeps their items as a guest. Call from the logout flow (with the cart secret) before tearing down the auth session; the next person on a shared device then sees none of the previous buyer's data. */
|
|
2291
|
+
cartDowngradeOnLogout: CartDowngradeOnLogoutPayload;
|
|
2292
|
+
/** Merge a guest cart into the signed-in customer's existing cart on login. Call right after authenticating, passing the guest cart id (its secret travels in the cart credential header). Line quantities are summed per variant and the buyer's in-session checkout fields win. The returned cart keeps the SAME id and secret as the guest cart, so the stored cart-id stays valid. Requires authentication (`CART_MERGE_REQUIRES_AUTH` otherwise); refuses carts in different currencies (`CART_CURRENCY_MISMATCH`). */
|
|
2293
|
+
cartMerge: CartMergePayload;
|
|
2294
|
+
/** Redeem a signed cart recovery link (from an abandoned-cart email). Pass the token from the link; on success the cart is recovered and its access secret is ROTATED — the NEW secret is returned once in `secret` (persist it; the previous one no longer works), and the SDK sets the cart-id cookie to the recovered cart. Buyer self-service: the merchant sends the link, never takes over the cart. Returns `CART_RECOVERY_LINK_EXPIRED` / `CART_RECOVERY_LINK_INVALID` for a bad link (no cart content is exposed) and `CART_NOT_FOUND` when the cart no longer exists. */
|
|
2295
|
+
cartRecoveryRedeem: CartRecoveryRedeemPayload;
|
|
2260
2296
|
/** Remove a previously applied gift card from the cart by its `CartAppliedGiftCard.id`. The storefront never has to handle the full gift card code on the client. */
|
|
2261
2297
|
cartRemoveGiftCard: CartRemoveGiftCardPayload;
|
|
2262
2298
|
/** 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. */
|
|
@@ -3915,10 +3951,10 @@ export type CartAddLinesMutation = {
|
|
|
3915
3951
|
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3916
3952
|
})>;
|
|
3917
3953
|
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
3918
|
-
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3954
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
3919
3955
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3920
3956
|
})>;
|
|
3921
|
-
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3957
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
3922
3958
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3923
3959
|
})>;
|
|
3924
3960
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
@@ -3979,10 +4015,10 @@ export type CartApplyGiftCardMutation = {
|
|
|
3979
4015
|
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3980
4016
|
})>;
|
|
3981
4017
|
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
3982
|
-
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4018
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
3983
4019
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3984
4020
|
})>;
|
|
3985
|
-
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4021
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
3986
4022
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3987
4023
|
})>;
|
|
3988
4024
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
@@ -4072,10 +4108,10 @@ export type CartClearPaymentSelectionMutation = {
|
|
|
4072
4108
|
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4073
4109
|
})>;
|
|
4074
4110
|
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4075
|
-
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4111
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4076
4112
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4077
4113
|
})>;
|
|
4078
|
-
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4114
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4079
4115
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4080
4116
|
})>;
|
|
4081
4117
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
@@ -4106,9 +4142,12 @@ export type CartCompleteMutation = {
|
|
|
4106
4142
|
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4107
4143
|
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4108
4144
|
};
|
|
4109
|
-
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4145
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4110
4146
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4111
4147
|
})>;
|
|
4148
|
+
discountAllocations: Array<(Pick<OrderDiscountAllocation, 'discountCode'> & {
|
|
4149
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4150
|
+
})>;
|
|
4112
4151
|
})>;
|
|
4113
4152
|
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
4114
4153
|
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
@@ -4118,7 +4157,7 @@ export type CartCreateMutationVariables = Exact<{
|
|
|
4118
4157
|
input?: InputMaybe<CartCreateInput>;
|
|
4119
4158
|
}>;
|
|
4120
4159
|
export type CartCreateMutation = {
|
|
4121
|
-
cartCreate: {
|
|
4160
|
+
cartCreate: (Pick<CartCreatePayload, 'secret'> & {
|
|
4122
4161
|
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrument' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4123
4162
|
cost: {
|
|
4124
4163
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -4156,10 +4195,10 @@ export type CartCreateMutation = {
|
|
|
4156
4195
|
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4157
4196
|
})>;
|
|
4158
4197
|
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4159
|
-
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4198
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4160
4199
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4161
4200
|
})>;
|
|
4162
|
-
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4201
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4163
4202
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4164
4203
|
})>;
|
|
4165
4204
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
@@ -4176,7 +4215,7 @@ export type CartCreateMutation = {
|
|
|
4176
4215
|
})>;
|
|
4177
4216
|
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
4178
4217
|
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
4179
|
-
};
|
|
4218
|
+
});
|
|
4180
4219
|
};
|
|
4181
4220
|
export type CartDiscountCodesUpdateMutationVariables = Exact<{
|
|
4182
4221
|
id: Scalars['ID']['input'];
|
|
@@ -4221,10 +4260,138 @@ export type CartDiscountCodesUpdateMutation = {
|
|
|
4221
4260
|
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4222
4261
|
})>;
|
|
4223
4262
|
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4224
|
-
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4263
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4264
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4265
|
+
})>;
|
|
4266
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4267
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4268
|
+
})>;
|
|
4269
|
+
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
4270
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4271
|
+
})>;
|
|
4272
|
+
selectedPaymentMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'> & {
|
|
4273
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4274
|
+
})>;
|
|
4275
|
+
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
4276
|
+
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4277
|
+
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4278
|
+
})>;
|
|
4279
|
+
completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
|
|
4280
|
+
})>;
|
|
4281
|
+
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
4282
|
+
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
4283
|
+
};
|
|
4284
|
+
};
|
|
4285
|
+
export type CartDowngradeOnLogoutMutationVariables = Exact<{
|
|
4286
|
+
cartId: Scalars['ID']['input'];
|
|
4287
|
+
}>;
|
|
4288
|
+
export type CartDowngradeOnLogoutMutation = {
|
|
4289
|
+
cartDowngradeOnLogout: {
|
|
4290
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrument' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4291
|
+
cost: {
|
|
4292
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4293
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4294
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4295
|
+
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4296
|
+
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4297
|
+
totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4298
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4299
|
+
};
|
|
4300
|
+
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
4301
|
+
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
4302
|
+
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
4303
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4304
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4305
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4306
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
4307
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
4308
|
+
});
|
|
4309
|
+
cost: {
|
|
4310
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4311
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4312
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4313
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4314
|
+
};
|
|
4315
|
+
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
4316
|
+
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
4317
|
+
giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
|
|
4318
|
+
})>;
|
|
4319
|
+
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
4320
|
+
});
|
|
4321
|
+
buyerIdentity?: Maybe<Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>>;
|
|
4322
|
+
discountCodes: Array<Pick<CartDiscountCode, 'code' | 'isApplicable'>>;
|
|
4323
|
+
discountAllocations: Array<(Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
4324
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4325
|
+
})>;
|
|
4326
|
+
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4327
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4328
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4329
|
+
})>;
|
|
4330
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4331
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4332
|
+
})>;
|
|
4333
|
+
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
4334
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4335
|
+
})>;
|
|
4336
|
+
selectedPaymentMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'> & {
|
|
4337
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4338
|
+
})>;
|
|
4339
|
+
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
4340
|
+
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4341
|
+
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4342
|
+
})>;
|
|
4343
|
+
completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
|
|
4344
|
+
})>;
|
|
4345
|
+
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
4346
|
+
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
4347
|
+
};
|
|
4348
|
+
};
|
|
4349
|
+
export type CartMergeMutationVariables = Exact<{
|
|
4350
|
+
guestCartId: Scalars['ID']['input'];
|
|
4351
|
+
}>;
|
|
4352
|
+
export type CartMergeMutation = {
|
|
4353
|
+
cartMerge: {
|
|
4354
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrument' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4355
|
+
cost: {
|
|
4356
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4357
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4358
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4359
|
+
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4360
|
+
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4361
|
+
totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4362
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4363
|
+
};
|
|
4364
|
+
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
4365
|
+
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
4366
|
+
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
4367
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4368
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4369
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4370
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
4371
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
4372
|
+
});
|
|
4373
|
+
cost: {
|
|
4374
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4375
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4376
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4377
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4378
|
+
};
|
|
4379
|
+
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
4380
|
+
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
4381
|
+
giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
|
|
4382
|
+
})>;
|
|
4383
|
+
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
4384
|
+
});
|
|
4385
|
+
buyerIdentity?: Maybe<Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>>;
|
|
4386
|
+
discountCodes: Array<Pick<CartDiscountCode, 'code' | 'isApplicable'>>;
|
|
4387
|
+
discountAllocations: Array<(Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
4388
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4389
|
+
})>;
|
|
4390
|
+
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4391
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4225
4392
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4226
4393
|
})>;
|
|
4227
|
-
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4394
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4228
4395
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4229
4396
|
})>;
|
|
4230
4397
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
@@ -4284,10 +4451,10 @@ export type CartQuery = {
|
|
|
4284
4451
|
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4285
4452
|
})>;
|
|
4286
4453
|
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4287
|
-
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4454
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4288
4455
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4289
4456
|
})>;
|
|
4290
|
-
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4457
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4291
4458
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4292
4459
|
})>;
|
|
4293
4460
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
@@ -4303,6 +4470,70 @@ export type CartQuery = {
|
|
|
4303
4470
|
completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
|
|
4304
4471
|
})>;
|
|
4305
4472
|
};
|
|
4473
|
+
export type CartRecoveryRedeemMutationVariables = Exact<{
|
|
4474
|
+
token: Scalars['String']['input'];
|
|
4475
|
+
}>;
|
|
4476
|
+
export type CartRecoveryRedeemMutation = {
|
|
4477
|
+
cartRecoveryRedeem: (Pick<CartRecoveryRedeemPayload, 'secret'> & {
|
|
4478
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrument' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4479
|
+
cost: {
|
|
4480
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4481
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4482
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4483
|
+
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4484
|
+
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4485
|
+
totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4486
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4487
|
+
};
|
|
4488
|
+
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
4489
|
+
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
4490
|
+
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
4491
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4492
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4493
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4494
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
4495
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
4496
|
+
});
|
|
4497
|
+
cost: {
|
|
4498
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4499
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4500
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4501
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4502
|
+
};
|
|
4503
|
+
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
4504
|
+
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
4505
|
+
giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
|
|
4506
|
+
})>;
|
|
4507
|
+
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
4508
|
+
});
|
|
4509
|
+
buyerIdentity?: Maybe<Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>>;
|
|
4510
|
+
discountCodes: Array<Pick<CartDiscountCode, 'code' | 'isApplicable'>>;
|
|
4511
|
+
discountAllocations: Array<(Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
4512
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4513
|
+
})>;
|
|
4514
|
+
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4515
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4516
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4517
|
+
})>;
|
|
4518
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4519
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4520
|
+
})>;
|
|
4521
|
+
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
4522
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4523
|
+
})>;
|
|
4524
|
+
selectedPaymentMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'> & {
|
|
4525
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4526
|
+
})>;
|
|
4527
|
+
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
4528
|
+
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4529
|
+
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4530
|
+
})>;
|
|
4531
|
+
completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
|
|
4532
|
+
})>;
|
|
4533
|
+
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
4534
|
+
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
4535
|
+
});
|
|
4536
|
+
};
|
|
4306
4537
|
export type CartRemoveGiftCardMutationVariables = Exact<{
|
|
4307
4538
|
input: CartRemoveGiftCardInput;
|
|
4308
4539
|
}>;
|
|
@@ -4345,10 +4576,10 @@ export type CartRemoveGiftCardMutation = {
|
|
|
4345
4576
|
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4346
4577
|
})>;
|
|
4347
4578
|
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4348
|
-
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4579
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4349
4580
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4350
4581
|
})>;
|
|
4351
|
-
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4582
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4352
4583
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4353
4584
|
})>;
|
|
4354
4585
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
@@ -4410,10 +4641,10 @@ export type CartRemoveLinesMutation = {
|
|
|
4410
4641
|
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4411
4642
|
})>;
|
|
4412
4643
|
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4413
|
-
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4644
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4414
4645
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4415
4646
|
})>;
|
|
4416
|
-
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4647
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4417
4648
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4418
4649
|
})>;
|
|
4419
4650
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
@@ -4474,10 +4705,10 @@ export type CartSelectPaymentMethodMutation = {
|
|
|
4474
4705
|
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4475
4706
|
})>;
|
|
4476
4707
|
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4477
|
-
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4708
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4478
4709
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4479
4710
|
})>;
|
|
4480
|
-
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4711
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4481
4712
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4482
4713
|
})>;
|
|
4483
4714
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
@@ -4538,10 +4769,10 @@ export type CartSelectShippingMethodMutation = {
|
|
|
4538
4769
|
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4539
4770
|
})>;
|
|
4540
4771
|
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4541
|
-
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4772
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4542
4773
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4543
4774
|
})>;
|
|
4544
|
-
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4775
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4545
4776
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4546
4777
|
})>;
|
|
4547
4778
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
@@ -4602,10 +4833,10 @@ export type CartSetBillingAddressMutation = {
|
|
|
4602
4833
|
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4603
4834
|
})>;
|
|
4604
4835
|
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4605
|
-
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4836
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4606
4837
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4607
4838
|
})>;
|
|
4608
|
-
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4839
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4609
4840
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4610
4841
|
})>;
|
|
4611
4842
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
@@ -4666,10 +4897,10 @@ export type CartSetShippingAddressMutation = {
|
|
|
4666
4897
|
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4667
4898
|
})>;
|
|
4668
4899
|
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4669
|
-
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4900
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4670
4901
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4671
4902
|
})>;
|
|
4672
|
-
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4903
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4673
4904
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4674
4905
|
})>;
|
|
4675
4906
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
@@ -4731,10 +4962,10 @@ export type CartUpdateAttributesMutation = {
|
|
|
4731
4962
|
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4732
4963
|
})>;
|
|
4733
4964
|
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4734
|
-
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4965
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4735
4966
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4736
4967
|
})>;
|
|
4737
|
-
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4968
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4738
4969
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4739
4970
|
})>;
|
|
4740
4971
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
@@ -4796,10 +5027,10 @@ export type CartUpdateBuyerIdentityMutation = {
|
|
|
4796
5027
|
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4797
5028
|
})>;
|
|
4798
5029
|
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4799
|
-
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
5030
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4800
5031
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4801
5032
|
})>;
|
|
4802
|
-
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
5033
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4803
5034
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4804
5035
|
})>;
|
|
4805
5036
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
@@ -4860,10 +5091,10 @@ export type CartUpdateGiftCardRecipientMutation = {
|
|
|
4860
5091
|
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4861
5092
|
})>;
|
|
4862
5093
|
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4863
|
-
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
5094
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4864
5095
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4865
5096
|
})>;
|
|
4866
|
-
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
5097
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4867
5098
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4868
5099
|
})>;
|
|
4869
5100
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
@@ -4925,10 +5156,10 @@ export type CartUpdateLinesMutation = {
|
|
|
4925
5156
|
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4926
5157
|
})>;
|
|
4927
5158
|
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4928
|
-
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
5159
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4929
5160
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4930
5161
|
})>;
|
|
4931
|
-
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
5162
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4932
5163
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4933
5164
|
})>;
|
|
4934
5165
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
@@ -4990,10 +5221,10 @@ export type CartUpdateNoteMutation = {
|
|
|
4990
5221
|
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4991
5222
|
})>;
|
|
4992
5223
|
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4993
|
-
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
5224
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4994
5225
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4995
5226
|
})>;
|
|
4996
|
-
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
5227
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
4997
5228
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4998
5229
|
})>;
|
|
4999
5230
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
@@ -5036,9 +5267,12 @@ export type OrderByTokenQuery = {
|
|
|
5036
5267
|
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
5037
5268
|
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
5038
5269
|
};
|
|
5039
|
-
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
5270
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
5040
5271
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
5041
5272
|
})>;
|
|
5273
|
+
discountAllocations: Array<(Pick<OrderDiscountAllocation, 'discountCode'> & {
|
|
5274
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
5275
|
+
})>;
|
|
5042
5276
|
})>;
|
|
5043
5277
|
};
|
|
5044
5278
|
export type PaymentCreateMutationVariables = Exact<{
|
|
@@ -5057,7 +5291,7 @@ export type CustomerAddressesQueryVariables = Exact<{
|
|
|
5057
5291
|
export type CustomerAddressesQuery = {
|
|
5058
5292
|
customer?: Maybe<{
|
|
5059
5293
|
addresses: (Pick<MailingAddressConnection, 'totalCount'> & {
|
|
5060
|
-
nodes: Array<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
5294
|
+
nodes: Array<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
5061
5295
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
5062
5296
|
})>;
|
|
5063
5297
|
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
@@ -5173,10 +5407,10 @@ export type CartFragment = (Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' |
|
|
|
5173
5407
|
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
5174
5408
|
})>;
|
|
5175
5409
|
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
5176
|
-
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
5410
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
5177
5411
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
5178
5412
|
})>;
|
|
5179
|
-
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
5413
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
5180
5414
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
5181
5415
|
})>;
|
|
5182
5416
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
@@ -5239,7 +5473,7 @@ export type CartDiscountCodeFragment = Pick<CartDiscountCode, 'code' | 'isApplic
|
|
|
5239
5473
|
export type CartDiscountAllocationFragment = (Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
5240
5474
|
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
5241
5475
|
});
|
|
5242
|
-
export type MailingAddressFragment = (Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
5476
|
+
export type MailingAddressFragment = (Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
5243
5477
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
5244
5478
|
});
|
|
5245
5479
|
export type PickupPointFragment = Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>;
|
|
@@ -5285,9 +5519,12 @@ export type OrderFragment = (Pick<Order, 'id' | 'orderNumber' | 'accessToken' |
|
|
|
5285
5519
|
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
5286
5520
|
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
5287
5521
|
};
|
|
5288
|
-
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
5522
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber' | 'regon'> & {
|
|
5289
5523
|
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
5290
5524
|
})>;
|
|
5525
|
+
discountAllocations: Array<(Pick<OrderDiscountAllocation, 'discountCode'> & {
|
|
5526
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
5527
|
+
})>;
|
|
5291
5528
|
});
|
|
5292
5529
|
export type PaymentSessionFragment = Pick<PaymentSession, 'id' | 'orderId' | 'flow' | 'provider' | 'redirectUrl' | 'clientSecret' | 'status' | 'expiresAt'>;
|
|
5293
5530
|
export type PaymentWarningFragment = Pick<PaymentWarning, 'message' | 'code' | 'retryHint'>;
|