@shopify/hydrogen-react 2024.4.4 → 2024.7.2
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/customer-account.schema.json +1 -1
- package/dist/browser-dev/BuyNowButton.mjs +4 -2
- package/dist/browser-dev/BuyNowButton.mjs.map +1 -1
- package/dist/browser-dev/CartLineProvider.mjs.map +1 -1
- package/dist/browser-dev/CartProvider.mjs.map +1 -1
- package/dist/browser-dev/Image.mjs.map +1 -1
- package/dist/browser-dev/ModelViewer.mjs.map +1 -1
- package/dist/browser-dev/Money.mjs.map +1 -1
- package/dist/browser-dev/Video.mjs.map +1 -1
- package/dist/browser-dev/analytics.mjs +8 -0
- package/dist/browser-dev/analytics.mjs.map +1 -1
- package/dist/browser-dev/codegen.helpers.mjs.map +1 -1
- package/dist/browser-dev/storefront-api-constants.mjs +1 -1
- package/dist/browser-dev/storefront-api-constants.mjs.map +1 -1
- package/dist/browser-dev/useCartAPIStateMachine.mjs.map +1 -1
- package/dist/browser-dev/useCartActions.mjs.map +1 -1
- package/dist/browser-dev/useMoney.mjs +43 -29
- package/dist/browser-dev/useMoney.mjs.map +1 -1
- package/dist/browser-prod/BuyNowButton.mjs +4 -2
- package/dist/browser-prod/BuyNowButton.mjs.map +1 -1
- package/dist/browser-prod/CartLineProvider.mjs.map +1 -1
- package/dist/browser-prod/CartProvider.mjs.map +1 -1
- package/dist/browser-prod/Image.mjs.map +1 -1
- package/dist/browser-prod/ModelViewer.mjs.map +1 -1
- package/dist/browser-prod/Money.mjs.map +1 -1
- package/dist/browser-prod/Video.mjs.map +1 -1
- package/dist/browser-prod/analytics.mjs +8 -0
- package/dist/browser-prod/analytics.mjs.map +1 -1
- package/dist/browser-prod/codegen.helpers.mjs.map +1 -1
- package/dist/browser-prod/storefront-api-constants.mjs +1 -1
- package/dist/browser-prod/storefront-api-constants.mjs.map +1 -1
- package/dist/browser-prod/useCartAPIStateMachine.mjs.map +1 -1
- package/dist/browser-prod/useCartActions.mjs.map +1 -1
- package/dist/browser-prod/useMoney.mjs +43 -29
- package/dist/browser-prod/useMoney.mjs.map +1 -1
- package/dist/node-dev/BuyNowButton.js +4 -2
- package/dist/node-dev/BuyNowButton.js.map +1 -1
- package/dist/node-dev/BuyNowButton.mjs +4 -2
- package/dist/node-dev/BuyNowButton.mjs.map +1 -1
- package/dist/node-dev/CartLineProvider.js.map +1 -1
- package/dist/node-dev/CartLineProvider.mjs.map +1 -1
- package/dist/node-dev/CartProvider.js.map +1 -1
- package/dist/node-dev/CartProvider.mjs.map +1 -1
- package/dist/node-dev/Image.js.map +1 -1
- package/dist/node-dev/Image.mjs.map +1 -1
- package/dist/node-dev/ModelViewer.js.map +1 -1
- package/dist/node-dev/ModelViewer.mjs.map +1 -1
- package/dist/node-dev/Money.js.map +1 -1
- package/dist/node-dev/Money.mjs.map +1 -1
- package/dist/node-dev/Video.js.map +1 -1
- package/dist/node-dev/Video.mjs.map +1 -1
- package/dist/node-dev/analytics.js +8 -0
- package/dist/node-dev/analytics.js.map +1 -1
- package/dist/node-dev/analytics.mjs +8 -0
- package/dist/node-dev/analytics.mjs.map +1 -1
- package/dist/node-dev/codegen.helpers.js.map +1 -1
- package/dist/node-dev/codegen.helpers.mjs.map +1 -1
- package/dist/node-dev/storefront-api-constants.js +1 -1
- package/dist/node-dev/storefront-api-constants.js.map +1 -1
- package/dist/node-dev/storefront-api-constants.mjs +1 -1
- package/dist/node-dev/storefront-api-constants.mjs.map +1 -1
- package/dist/node-dev/useCartAPIStateMachine.js.map +1 -1
- package/dist/node-dev/useCartAPIStateMachine.mjs.map +1 -1
- package/dist/node-dev/useCartActions.js.map +1 -1
- package/dist/node-dev/useCartActions.mjs.map +1 -1
- package/dist/node-dev/useMoney.js +43 -29
- package/dist/node-dev/useMoney.js.map +1 -1
- package/dist/node-dev/useMoney.mjs +43 -29
- package/dist/node-dev/useMoney.mjs.map +1 -1
- package/dist/node-prod/BuyNowButton.js +4 -2
- package/dist/node-prod/BuyNowButton.js.map +1 -1
- package/dist/node-prod/BuyNowButton.mjs +4 -2
- package/dist/node-prod/BuyNowButton.mjs.map +1 -1
- package/dist/node-prod/CartLineProvider.js.map +1 -1
- package/dist/node-prod/CartLineProvider.mjs.map +1 -1
- package/dist/node-prod/CartProvider.js.map +1 -1
- package/dist/node-prod/CartProvider.mjs.map +1 -1
- package/dist/node-prod/Image.js.map +1 -1
- package/dist/node-prod/Image.mjs.map +1 -1
- package/dist/node-prod/ModelViewer.js.map +1 -1
- package/dist/node-prod/ModelViewer.mjs.map +1 -1
- package/dist/node-prod/Money.js.map +1 -1
- package/dist/node-prod/Money.mjs.map +1 -1
- package/dist/node-prod/Video.js.map +1 -1
- package/dist/node-prod/Video.mjs.map +1 -1
- package/dist/node-prod/analytics.js +8 -0
- package/dist/node-prod/analytics.js.map +1 -1
- package/dist/node-prod/analytics.mjs +8 -0
- package/dist/node-prod/analytics.mjs.map +1 -1
- package/dist/node-prod/codegen.helpers.js.map +1 -1
- package/dist/node-prod/codegen.helpers.mjs.map +1 -1
- package/dist/node-prod/storefront-api-constants.js +1 -1
- package/dist/node-prod/storefront-api-constants.js.map +1 -1
- package/dist/node-prod/storefront-api-constants.mjs +1 -1
- package/dist/node-prod/storefront-api-constants.mjs.map +1 -1
- package/dist/node-prod/useCartAPIStateMachine.js.map +1 -1
- package/dist/node-prod/useCartAPIStateMachine.mjs.map +1 -1
- package/dist/node-prod/useCartActions.js.map +1 -1
- package/dist/node-prod/useCartActions.mjs.map +1 -1
- package/dist/node-prod/useMoney.js +43 -29
- package/dist/node-prod/useMoney.js.map +1 -1
- package/dist/node-prod/useMoney.mjs +43 -29
- package/dist/node-prod/useMoney.mjs.map +1 -1
- package/dist/types/BuyNowButton.d.ts +2 -0
- package/dist/types/CartLineProvider.d.ts +1 -1
- package/dist/types/CartProvider.d.ts +2 -2
- package/dist/types/Image.d.ts +2 -2
- package/dist/types/ModelViewer.d.ts +1 -1
- package/dist/types/Money.d.ts +1 -1
- package/dist/types/Video.d.ts +1 -1
- package/dist/types/codegen.helpers.d.ts +2 -2
- package/dist/types/storefront-api-constants.d.ts +1 -1
- package/dist/types/storefront-api-types.d.ts +758 -1076
- package/dist/types/useCartAPIStateMachine.d.ts +2 -2
- package/dist/types/useCartActions.d.ts +4 -4
- package/dist/umd/hydrogen-react.dev.js +56 -32
- package/dist/umd/hydrogen-react.dev.js.map +1 -1
- package/dist/umd/hydrogen-react.prod.js +17 -17
- package/dist/umd/hydrogen-react.prod.js.map +1 -1
- package/package.json +3 -3
- package/storefront.schema.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE IS AUTO-GENERATED, DO NOT EDIT
|
|
3
|
-
* Based on Storefront API 2024-
|
|
3
|
+
* Based on Storefront API 2024-07
|
|
4
4
|
* If changes need to happen to the types defined in this file, then generally the Storefront API needs to update. After it's updated, you can run `npm run graphql-types`.
|
|
5
5
|
* Except custom Scalars, which are defined in the `codegen.ts` file
|
|
6
6
|
*/
|
|
@@ -31,6 +31,7 @@ export type Scalars = {
|
|
|
31
31
|
DateTime: {input: string; output: string};
|
|
32
32
|
Decimal: {input: string; output: string};
|
|
33
33
|
HTML: {input: string; output: string};
|
|
34
|
+
ISO8601DateTime: {input: unknown; output: unknown};
|
|
34
35
|
JSON: {input: unknown; output: unknown};
|
|
35
36
|
URL: {input: string; output: string};
|
|
36
37
|
UnsignedInt64: {input: string; output: string};
|
|
@@ -289,20 +290,6 @@ export type AutomaticDiscountApplication = DiscountApplication & {
|
|
|
289
290
|
value: PricingValue;
|
|
290
291
|
};
|
|
291
292
|
|
|
292
|
-
/** A collection of available shipping rates for a checkout. */
|
|
293
|
-
export type AvailableShippingRates = {
|
|
294
|
-
__typename?: 'AvailableShippingRates';
|
|
295
|
-
/**
|
|
296
|
-
* Whether or not the shipping rates are ready.
|
|
297
|
-
* The `shippingRates` field is `null` when this value is `false`.
|
|
298
|
-
* This field should be polled until its value becomes `true`.
|
|
299
|
-
*
|
|
300
|
-
*/
|
|
301
|
-
ready: Scalars['Boolean']['output'];
|
|
302
|
-
/** The fetched shipping rates. `null` until the `ready` field is `true`. */
|
|
303
|
-
shippingRates?: Maybe<Array<ShippingRate>>;
|
|
304
|
-
};
|
|
305
|
-
|
|
306
293
|
/** Represents a cart line common fields. */
|
|
307
294
|
export type BaseCartLine = {
|
|
308
295
|
/** An attribute associated with the cart line. */
|
|
@@ -541,6 +528,8 @@ export type CardBrand =
|
|
|
541
528
|
export type Cart = HasMetafields &
|
|
542
529
|
Node & {
|
|
543
530
|
__typename?: 'Cart';
|
|
531
|
+
/** The gift cards that have been applied to the cart. */
|
|
532
|
+
appliedGiftCards: Array<AppliedGiftCard>;
|
|
544
533
|
/** An attribute associated with the cart. */
|
|
545
534
|
attribute?: Maybe<Attribute>;
|
|
546
535
|
/** The attributes associated with the cart. Attributes are represented as key-value pairs. */
|
|
@@ -612,6 +601,7 @@ export type CartDeliveryGroupsArgs = {
|
|
|
612
601
|
first?: InputMaybe<Scalars['Int']['input']>;
|
|
613
602
|
last?: InputMaybe<Scalars['Int']['input']>;
|
|
614
603
|
reverse?: InputMaybe<Scalars['Boolean']['input']>;
|
|
604
|
+
withCarrierRates?: InputMaybe<Scalars['Boolean']['input']>;
|
|
615
605
|
};
|
|
616
606
|
|
|
617
607
|
/**
|
|
@@ -666,10 +656,21 @@ export type CartAutomaticDiscountAllocation = CartDiscountAllocation & {
|
|
|
666
656
|
__typename?: 'CartAutomaticDiscountAllocation';
|
|
667
657
|
/** The discounted amount that has been applied to the cart line. */
|
|
668
658
|
discountedAmount: MoneyV2;
|
|
659
|
+
/** The type of line that the discount is applicable towards. */
|
|
660
|
+
targetType: DiscountApplicationTargetType;
|
|
669
661
|
/** The title of the allocated discount. */
|
|
670
662
|
title: Scalars['String']['output'];
|
|
671
663
|
};
|
|
672
664
|
|
|
665
|
+
/** Return type for `cartBillingAddressUpdate` mutation. */
|
|
666
|
+
export type CartBillingAddressUpdatePayload = {
|
|
667
|
+
__typename?: 'CartBillingAddressUpdatePayload';
|
|
668
|
+
/** The updated cart. */
|
|
669
|
+
cart?: Maybe<Cart>;
|
|
670
|
+
/** The list of errors that occurred from executing the mutation. */
|
|
671
|
+
userErrors: Array<CartUserError>;
|
|
672
|
+
};
|
|
673
|
+
|
|
673
674
|
/** Represents information about the buyer that is interacting with the cart. */
|
|
674
675
|
export type CartBuyerIdentity = {
|
|
675
676
|
__typename?: 'CartBuyerIdentity';
|
|
@@ -688,14 +689,14 @@ export type CartBuyerIdentity = {
|
|
|
688
689
|
email?: Maybe<Scalars['String']['output']>;
|
|
689
690
|
/** The phone number of the buyer that's interacting with the cart. */
|
|
690
691
|
phone?: Maybe<Scalars['String']['output']>;
|
|
691
|
-
/** The purchasing company associated with the cart. */
|
|
692
|
-
purchasingCompany?: Maybe<PurchasingCompany>;
|
|
693
692
|
/**
|
|
694
|
-
* A set of
|
|
695
|
-
* Preferences
|
|
693
|
+
* A set of preferences tied to the buyer interacting with the cart. Preferences are used to prefill fields in at checkout to streamline information collection.
|
|
694
|
+
* Preferences are not synced back to the cart if they are overwritten.
|
|
696
695
|
*
|
|
697
696
|
*/
|
|
698
|
-
|
|
697
|
+
preferences?: Maybe<CartPreferences>;
|
|
698
|
+
/** The purchasing company associated with the cart. */
|
|
699
|
+
purchasingCompany?: Maybe<PurchasingCompany>;
|
|
699
700
|
};
|
|
700
701
|
|
|
701
702
|
/**
|
|
@@ -725,13 +726,11 @@ export type CartBuyerIdentityInput = {
|
|
|
725
726
|
/** The phone number of the buyer that is interacting with the cart. */
|
|
726
727
|
phone?: InputMaybe<Scalars['String']['input']>;
|
|
727
728
|
/**
|
|
728
|
-
* A set of
|
|
729
|
-
* Preferences
|
|
730
|
-
* Accepted value: `["shop_pay"]`.
|
|
729
|
+
* A set of preferences tied to the buyer interacting with the cart. Preferences are used to prefill fields in at checkout to streamline information collection.
|
|
730
|
+
* Preferences are not synced back to the cart if they are overwritten.
|
|
731
731
|
*
|
|
732
|
-
* The input must not contain more than `250` values.
|
|
733
732
|
*/
|
|
734
|
-
|
|
733
|
+
preferences?: InputMaybe<CartPreferencesInput>;
|
|
735
734
|
};
|
|
736
735
|
|
|
737
736
|
/** Return type for `cartBuyerIdentityUpdate` mutation. */
|
|
@@ -762,6 +761,8 @@ export type CartCodeDiscountAllocation = CartDiscountAllocation & {
|
|
|
762
761
|
code: Scalars['String']['output'];
|
|
763
762
|
/** The discounted amount that has been applied to the cart line. */
|
|
764
763
|
discountedAmount: MoneyV2;
|
|
764
|
+
/** The type of line that the discount is applicable towards. */
|
|
765
|
+
targetType: DiscountApplicationTargetType;
|
|
765
766
|
};
|
|
766
767
|
|
|
767
768
|
/** The completion action to checkout a cart. */
|
|
@@ -856,10 +857,43 @@ export type CartCustomDiscountAllocation = CartDiscountAllocation & {
|
|
|
856
857
|
__typename?: 'CartCustomDiscountAllocation';
|
|
857
858
|
/** The discounted amount that has been applied to the cart line. */
|
|
858
859
|
discountedAmount: MoneyV2;
|
|
860
|
+
/** The type of line that the discount is applicable towards. */
|
|
861
|
+
targetType: DiscountApplicationTargetType;
|
|
859
862
|
/** The title of the allocated discount. */
|
|
860
863
|
title: Scalars['String']['output'];
|
|
861
864
|
};
|
|
862
865
|
|
|
866
|
+
/** Preferred location used to find the closest pick up point based on coordinates. */
|
|
867
|
+
export type CartDeliveryCoordinatesPreference = {
|
|
868
|
+
__typename?: 'CartDeliveryCoordinatesPreference';
|
|
869
|
+
/**
|
|
870
|
+
* The two-letter code for the country of the preferred location.
|
|
871
|
+
*
|
|
872
|
+
* For example, US.
|
|
873
|
+
*
|
|
874
|
+
*/
|
|
875
|
+
countryCode: CountryCode;
|
|
876
|
+
/** The geographic latitude for a given location. Coordinates are required in order to set pickUpHandle for pickup points. */
|
|
877
|
+
latitude: Scalars['Float']['output'];
|
|
878
|
+
/** The geographic longitude for a given location. Coordinates are required in order to set pickUpHandle for pickup points. */
|
|
879
|
+
longitude: Scalars['Float']['output'];
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
/** Preferred location used to find the closest pick up point based on coordinates. */
|
|
883
|
+
export type CartDeliveryCoordinatesPreferenceInput = {
|
|
884
|
+
/**
|
|
885
|
+
* The two-letter code for the country of the preferred location.
|
|
886
|
+
*
|
|
887
|
+
* For example, US.
|
|
888
|
+
*
|
|
889
|
+
*/
|
|
890
|
+
countryCode: CountryCode;
|
|
891
|
+
/** The geographic latitude for a given location. Coordinates are required in order to set pickUpHandle for pickup points. */
|
|
892
|
+
latitude: Scalars['Float']['input'];
|
|
893
|
+
/** The geographic longitude for a given location. Coordinates are required in order to set pickUpHandle for pickup points. */
|
|
894
|
+
longitude: Scalars['Float']['input'];
|
|
895
|
+
};
|
|
896
|
+
|
|
863
897
|
/** Information about the options available for one or more line items to be delivered to a specific address. */
|
|
864
898
|
export type CartDeliveryGroup = {
|
|
865
899
|
__typename?: 'CartDeliveryGroup';
|
|
@@ -943,6 +977,48 @@ export type CartDeliveryOption = {
|
|
|
943
977
|
title?: Maybe<Scalars['String']['output']>;
|
|
944
978
|
};
|
|
945
979
|
|
|
980
|
+
/**
|
|
981
|
+
* A set of preferences tied to the buyer interacting with the cart. Preferences are used to prefill fields in at checkout to streamline information collection.
|
|
982
|
+
* Preferences are not synced back to the cart if they are overwritten.
|
|
983
|
+
*
|
|
984
|
+
*/
|
|
985
|
+
export type CartDeliveryPreference = {
|
|
986
|
+
__typename?: 'CartDeliveryPreference';
|
|
987
|
+
/** Preferred location used to find the closest pick up point based on coordinates. */
|
|
988
|
+
coordinates?: Maybe<CartDeliveryCoordinatesPreference>;
|
|
989
|
+
/** The preferred delivery methods such as shipping, local pickup or through pickup points. */
|
|
990
|
+
deliveryMethod: Array<PreferenceDeliveryMethodType>;
|
|
991
|
+
/**
|
|
992
|
+
* The pickup handle prefills checkout fields with the location for either local pickup or pickup points delivery methods.
|
|
993
|
+
* It accepts both location ID for local pickup and external IDs for pickup points.
|
|
994
|
+
*
|
|
995
|
+
*/
|
|
996
|
+
pickupHandle: Array<Scalars['String']['output']>;
|
|
997
|
+
};
|
|
998
|
+
|
|
999
|
+
/** Delivery preferences can be used to prefill the delivery section at checkout. */
|
|
1000
|
+
export type CartDeliveryPreferenceInput = {
|
|
1001
|
+
/**
|
|
1002
|
+
* The coordinates of a delivery location in order of preference.
|
|
1003
|
+
*
|
|
1004
|
+
* The input must not contain more than `250` values.
|
|
1005
|
+
*/
|
|
1006
|
+
coordinates?: InputMaybe<Array<CartDeliveryCoordinatesPreferenceInput>>;
|
|
1007
|
+
/**
|
|
1008
|
+
* The preferred delivery methods such as shipping, local pickup or through pickup points.
|
|
1009
|
+
*
|
|
1010
|
+
* The input must not contain more than `250` values.
|
|
1011
|
+
*/
|
|
1012
|
+
deliveryMethod?: InputMaybe<Array<PreferenceDeliveryMethodType>>;
|
|
1013
|
+
/**
|
|
1014
|
+
* The pickup handle prefills checkout fields with the location for either local pickup or pickup points delivery methods.
|
|
1015
|
+
* It accepts both location ID for local pickup and external IDs for pickup points.
|
|
1016
|
+
*
|
|
1017
|
+
* The input must not contain more than `250` values.
|
|
1018
|
+
*/
|
|
1019
|
+
pickupHandle?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1020
|
+
};
|
|
1021
|
+
|
|
946
1022
|
/**
|
|
947
1023
|
* The input fields for submitting direct payment method information for checkout.
|
|
948
1024
|
*
|
|
@@ -960,6 +1036,8 @@ export type CartDirectPaymentMethodInput = {
|
|
|
960
1036
|
export type CartDiscountAllocation = {
|
|
961
1037
|
/** The discounted amount that has been applied to the cart line. */
|
|
962
1038
|
discountedAmount: MoneyV2;
|
|
1039
|
+
/** The type of line that the discount is applicable towards. */
|
|
1040
|
+
targetType: DiscountApplicationTargetType;
|
|
963
1041
|
};
|
|
964
1042
|
|
|
965
1043
|
/** The discount codes applied to the cart. */
|
|
@@ -1028,6 +1106,8 @@ export type CartErrorCode =
|
|
|
1028
1106
|
| 'MISSING_DISCOUNT_CODE'
|
|
1029
1107
|
/** Missing note. */
|
|
1030
1108
|
| 'MISSING_NOTE'
|
|
1109
|
+
/** The note length must be below the specified maximum. */
|
|
1110
|
+
| 'NOTE_TOO_LONG'
|
|
1031
1111
|
/** The payment method is not supported. */
|
|
1032
1112
|
| 'PAYMENT_METHOD_NOT_SUPPORTED'
|
|
1033
1113
|
/** The given province cannot be found. */
|
|
@@ -1063,6 +1143,15 @@ export type CartFreePaymentMethodInput = {
|
|
|
1063
1143
|
billingAddress: MailingAddressInput;
|
|
1064
1144
|
};
|
|
1065
1145
|
|
|
1146
|
+
/** Return type for `cartGiftCardCodesUpdate` mutation. */
|
|
1147
|
+
export type CartGiftCardCodesUpdatePayload = {
|
|
1148
|
+
__typename?: 'CartGiftCardCodesUpdatePayload';
|
|
1149
|
+
/** The updated cart. */
|
|
1150
|
+
cart?: Maybe<Cart>;
|
|
1151
|
+
/** The list of errors that occurred from executing the mutation. */
|
|
1152
|
+
userErrors: Array<CartUserError>;
|
|
1153
|
+
};
|
|
1154
|
+
|
|
1066
1155
|
/** The input fields to create a cart. */
|
|
1067
1156
|
export type CartInput = {
|
|
1068
1157
|
/**
|
|
@@ -1084,6 +1173,12 @@ export type CartInput = {
|
|
|
1084
1173
|
* The input must not contain more than `250` values.
|
|
1085
1174
|
*/
|
|
1086
1175
|
discountCodes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1176
|
+
/**
|
|
1177
|
+
* The case-insensitive gift card codes.
|
|
1178
|
+
*
|
|
1179
|
+
* The input must not contain more than `250` values.
|
|
1180
|
+
*/
|
|
1181
|
+
giftCardCodes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1087
1182
|
/**
|
|
1088
1183
|
* A list of merchandise lines to add to the cart.
|
|
1089
1184
|
*
|
|
@@ -1344,6 +1439,40 @@ export type CartPaymentUpdatePayload = {
|
|
|
1344
1439
|
userErrors: Array<CartUserError>;
|
|
1345
1440
|
};
|
|
1346
1441
|
|
|
1442
|
+
/**
|
|
1443
|
+
* A set of preferences tied to the buyer interacting with the cart. Preferences are used to prefill fields in at checkout to streamline information collection.
|
|
1444
|
+
* Preferences are not synced back to the cart if they are overwritten.
|
|
1445
|
+
*
|
|
1446
|
+
*/
|
|
1447
|
+
export type CartPreferences = {
|
|
1448
|
+
__typename?: 'CartPreferences';
|
|
1449
|
+
/** Delivery preferences can be used to prefill the delivery section in at checkout. */
|
|
1450
|
+
delivery?: Maybe<CartDeliveryPreference>;
|
|
1451
|
+
/**
|
|
1452
|
+
* Wallet preferences are used to populate relevant payment fields in the checkout flow.
|
|
1453
|
+
* Accepted value: `["shop_pay"]`.
|
|
1454
|
+
*
|
|
1455
|
+
*/
|
|
1456
|
+
wallet?: Maybe<Array<Scalars['String']['output']>>;
|
|
1457
|
+
};
|
|
1458
|
+
|
|
1459
|
+
/** The input fields represent preferences for the buyer that is interacting with the cart. */
|
|
1460
|
+
export type CartPreferencesInput = {
|
|
1461
|
+
/**
|
|
1462
|
+
* Delivery preferences can be used to prefill the delivery section in at checkout.
|
|
1463
|
+
*
|
|
1464
|
+
* The input must not contain more than `250` values.
|
|
1465
|
+
*/
|
|
1466
|
+
delivery?: InputMaybe<Array<CartDeliveryPreferenceInput>>;
|
|
1467
|
+
/**
|
|
1468
|
+
* Wallet preferences are used to populate relevant payment fields in the checkout flow.
|
|
1469
|
+
* Accepted value: `["shop_pay"]`.
|
|
1470
|
+
*
|
|
1471
|
+
* The input must not contain more than `250` values.
|
|
1472
|
+
*/
|
|
1473
|
+
wallet?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1474
|
+
};
|
|
1475
|
+
|
|
1347
1476
|
/**
|
|
1348
1477
|
* The input fields for updating the selected delivery options for a delivery group.
|
|
1349
1478
|
*
|
|
@@ -1402,641 +1531,6 @@ export type CartWalletPaymentMethodInput = {
|
|
|
1402
1531
|
shopPayWalletContent?: InputMaybe<ShopPayWalletContentInput>;
|
|
1403
1532
|
};
|
|
1404
1533
|
|
|
1405
|
-
/**
|
|
1406
|
-
* A container for all the information required to checkout items and pay.
|
|
1407
|
-
*
|
|
1408
|
-
* The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
|
|
1409
|
-
*
|
|
1410
|
-
*/
|
|
1411
|
-
export type Checkout = Node & {
|
|
1412
|
-
__typename?: 'Checkout';
|
|
1413
|
-
/** The gift cards used on the checkout. */
|
|
1414
|
-
appliedGiftCards: Array<AppliedGiftCard>;
|
|
1415
|
-
/**
|
|
1416
|
-
* The available shipping rates for this Checkout.
|
|
1417
|
-
* Should only be used when checkout `requiresShipping` is `true` and
|
|
1418
|
-
* the shipping address is valid.
|
|
1419
|
-
*
|
|
1420
|
-
*/
|
|
1421
|
-
availableShippingRates?: Maybe<AvailableShippingRates>;
|
|
1422
|
-
/** The identity of the customer associated with the checkout. */
|
|
1423
|
-
buyerIdentity: CheckoutBuyerIdentity;
|
|
1424
|
-
/** The date and time when the checkout was completed. */
|
|
1425
|
-
completedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
1426
|
-
/** The date and time when the checkout was created. */
|
|
1427
|
-
createdAt: Scalars['DateTime']['output'];
|
|
1428
|
-
/** The currency code for the checkout. */
|
|
1429
|
-
currencyCode: CurrencyCode;
|
|
1430
|
-
/** A list of extra information that's added to the checkout. */
|
|
1431
|
-
customAttributes: Array<Attribute>;
|
|
1432
|
-
/** Discounts that have been applied on the checkout. */
|
|
1433
|
-
discountApplications: DiscountApplicationConnection;
|
|
1434
|
-
/** The email attached to this checkout. */
|
|
1435
|
-
email?: Maybe<Scalars['String']['output']>;
|
|
1436
|
-
/** A globally-unique ID. */
|
|
1437
|
-
id: Scalars['ID']['output'];
|
|
1438
|
-
/** A list of line item objects, each one containing information about an item in the checkout. */
|
|
1439
|
-
lineItems: CheckoutLineItemConnection;
|
|
1440
|
-
/** The sum of all the prices of all the items in the checkout. Duties, taxes, shipping and discounts excluded. */
|
|
1441
|
-
lineItemsSubtotalPrice: MoneyV2;
|
|
1442
|
-
/** The note associated with the checkout. */
|
|
1443
|
-
note?: Maybe<Scalars['String']['output']>;
|
|
1444
|
-
/** The resulting order from a paid checkout. */
|
|
1445
|
-
order?: Maybe<Order>;
|
|
1446
|
-
/** The <b>Order status</b> page for this Checkout, null when checkout isn't completed. */
|
|
1447
|
-
orderStatusUrl?: Maybe<Scalars['URL']['output']>;
|
|
1448
|
-
/** The amount left to be paid. This is equal to the cost of the line items, taxes, and shipping, minus discounts and gift cards. */
|
|
1449
|
-
paymentDue: MoneyV2;
|
|
1450
|
-
/**
|
|
1451
|
-
* The amount left to be paid. This is equal to the cost of the line items, duties, taxes, and shipping, minus discounts and gift cards.
|
|
1452
|
-
* @deprecated Use `paymentDue` instead.
|
|
1453
|
-
*/
|
|
1454
|
-
paymentDueV2: MoneyV2;
|
|
1455
|
-
/**
|
|
1456
|
-
* Whether or not the Checkout is ready and can be completed. Checkouts may
|
|
1457
|
-
* have asynchronous operations that can take time to finish. If you want
|
|
1458
|
-
* to complete a checkout or ensure all the fields are populated and up to
|
|
1459
|
-
* date, polling is required until the value is true.
|
|
1460
|
-
*
|
|
1461
|
-
*/
|
|
1462
|
-
ready: Scalars['Boolean']['output'];
|
|
1463
|
-
/** States whether or not the fulfillment requires shipping. */
|
|
1464
|
-
requiresShipping: Scalars['Boolean']['output'];
|
|
1465
|
-
/** The shipping address to where the line items will be shipped. */
|
|
1466
|
-
shippingAddress?: Maybe<MailingAddress>;
|
|
1467
|
-
/**
|
|
1468
|
-
* The discounts that have been allocated onto the shipping line by discount applications.
|
|
1469
|
-
*
|
|
1470
|
-
*/
|
|
1471
|
-
shippingDiscountAllocations: Array<DiscountAllocation>;
|
|
1472
|
-
/** Once a shipping rate is selected by the customer it's transitioned to a `shipping_line` object. */
|
|
1473
|
-
shippingLine?: Maybe<ShippingRate>;
|
|
1474
|
-
/** The price at checkout before shipping and taxes. */
|
|
1475
|
-
subtotalPrice: MoneyV2;
|
|
1476
|
-
/**
|
|
1477
|
-
* The price at checkout before duties, shipping, and taxes.
|
|
1478
|
-
* @deprecated Use `subtotalPrice` instead.
|
|
1479
|
-
*/
|
|
1480
|
-
subtotalPriceV2: MoneyV2;
|
|
1481
|
-
/** Whether the checkout is tax exempt. */
|
|
1482
|
-
taxExempt: Scalars['Boolean']['output'];
|
|
1483
|
-
/** Whether taxes are included in the line item and shipping line prices. */
|
|
1484
|
-
taxesIncluded: Scalars['Boolean']['output'];
|
|
1485
|
-
/** The sum of all the duties applied to the line items in the checkout. */
|
|
1486
|
-
totalDuties?: Maybe<MoneyV2>;
|
|
1487
|
-
/** The sum of all the prices of all the items in the checkout, including taxes and duties. */
|
|
1488
|
-
totalPrice: MoneyV2;
|
|
1489
|
-
/**
|
|
1490
|
-
* The sum of all the prices of all the items in the checkout, including taxes and duties.
|
|
1491
|
-
* @deprecated Use `totalPrice` instead.
|
|
1492
|
-
*/
|
|
1493
|
-
totalPriceV2: MoneyV2;
|
|
1494
|
-
/** The sum of all the taxes applied to the line items and shipping lines in the checkout. */
|
|
1495
|
-
totalTax: MoneyV2;
|
|
1496
|
-
/**
|
|
1497
|
-
* The sum of all the taxes applied to the line items and shipping lines in the checkout.
|
|
1498
|
-
* @deprecated Use `totalTax` instead.
|
|
1499
|
-
*/
|
|
1500
|
-
totalTaxV2: MoneyV2;
|
|
1501
|
-
/** The date and time when the checkout was last updated. */
|
|
1502
|
-
updatedAt: Scalars['DateTime']['output'];
|
|
1503
|
-
/** The url pointing to the checkout accessible from the web. */
|
|
1504
|
-
webUrl: Scalars['URL']['output'];
|
|
1505
|
-
};
|
|
1506
|
-
|
|
1507
|
-
/**
|
|
1508
|
-
* A container for all the information required to checkout items and pay.
|
|
1509
|
-
*
|
|
1510
|
-
* The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
|
|
1511
|
-
*
|
|
1512
|
-
*/
|
|
1513
|
-
export type CheckoutDiscountApplicationsArgs = {
|
|
1514
|
-
after?: InputMaybe<Scalars['String']['input']>;
|
|
1515
|
-
before?: InputMaybe<Scalars['String']['input']>;
|
|
1516
|
-
first?: InputMaybe<Scalars['Int']['input']>;
|
|
1517
|
-
last?: InputMaybe<Scalars['Int']['input']>;
|
|
1518
|
-
reverse?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1519
|
-
};
|
|
1520
|
-
|
|
1521
|
-
/**
|
|
1522
|
-
* A container for all the information required to checkout items and pay.
|
|
1523
|
-
*
|
|
1524
|
-
* The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
|
|
1525
|
-
*
|
|
1526
|
-
*/
|
|
1527
|
-
export type CheckoutLineItemsArgs = {
|
|
1528
|
-
after?: InputMaybe<Scalars['String']['input']>;
|
|
1529
|
-
before?: InputMaybe<Scalars['String']['input']>;
|
|
1530
|
-
first?: InputMaybe<Scalars['Int']['input']>;
|
|
1531
|
-
last?: InputMaybe<Scalars['Int']['input']>;
|
|
1532
|
-
reverse?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1533
|
-
};
|
|
1534
|
-
|
|
1535
|
-
/** The input fields required to update a checkout's attributes. */
|
|
1536
|
-
export type CheckoutAttributesUpdateV2Input = {
|
|
1537
|
-
/**
|
|
1538
|
-
* Allows setting partial addresses on a Checkout, skipping the full validation of attributes.
|
|
1539
|
-
* The required attributes are city, province, and country.
|
|
1540
|
-
* Full validation of the addresses is still done at completion time. Defaults to `false` with
|
|
1541
|
-
* each operation.
|
|
1542
|
-
*
|
|
1543
|
-
*/
|
|
1544
|
-
allowPartialAddresses?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1545
|
-
/**
|
|
1546
|
-
* A list of extra information that's added to the checkout.
|
|
1547
|
-
*
|
|
1548
|
-
* The input must not contain more than `250` values.
|
|
1549
|
-
*/
|
|
1550
|
-
customAttributes?: InputMaybe<Array<AttributeInput>>;
|
|
1551
|
-
/** The text of an optional note that a shop owner can attach to the checkout. */
|
|
1552
|
-
note?: InputMaybe<Scalars['String']['input']>;
|
|
1553
|
-
};
|
|
1554
|
-
|
|
1555
|
-
/** Return type for `checkoutAttributesUpdateV2` mutation. */
|
|
1556
|
-
export type CheckoutAttributesUpdateV2Payload = {
|
|
1557
|
-
__typename?: 'CheckoutAttributesUpdateV2Payload';
|
|
1558
|
-
/** The updated checkout object. */
|
|
1559
|
-
checkout?: Maybe<Checkout>;
|
|
1560
|
-
/** The list of errors that occurred from executing the mutation. */
|
|
1561
|
-
checkoutUserErrors: Array<CheckoutUserError>;
|
|
1562
|
-
/**
|
|
1563
|
-
* The list of errors that occurred from executing the mutation.
|
|
1564
|
-
* @deprecated Use `checkoutUserErrors` instead.
|
|
1565
|
-
*/
|
|
1566
|
-
userErrors: Array<UserError>;
|
|
1567
|
-
};
|
|
1568
|
-
|
|
1569
|
-
/** The identity of the customer associated with the checkout. */
|
|
1570
|
-
export type CheckoutBuyerIdentity = {
|
|
1571
|
-
__typename?: 'CheckoutBuyerIdentity';
|
|
1572
|
-
/** The country code for the checkout. For example, `CA`. */
|
|
1573
|
-
countryCode?: Maybe<CountryCode>;
|
|
1574
|
-
};
|
|
1575
|
-
|
|
1576
|
-
/** The input fields for the identity of the customer associated with the checkout. */
|
|
1577
|
-
export type CheckoutBuyerIdentityInput = {
|
|
1578
|
-
/**
|
|
1579
|
-
* The country code of one of the shop's
|
|
1580
|
-
* [enabled countries](https://help.shopify.com/en/manual/payments/shopify-payments/multi-currency/setup).
|
|
1581
|
-
* For example, `CA`. Including this field creates a checkout in the specified country's currency.
|
|
1582
|
-
*
|
|
1583
|
-
*/
|
|
1584
|
-
countryCode: CountryCode;
|
|
1585
|
-
};
|
|
1586
|
-
|
|
1587
|
-
/** Return type for `checkoutCompleteFree` mutation. */
|
|
1588
|
-
export type CheckoutCompleteFreePayload = {
|
|
1589
|
-
__typename?: 'CheckoutCompleteFreePayload';
|
|
1590
|
-
/** The updated checkout object. */
|
|
1591
|
-
checkout?: Maybe<Checkout>;
|
|
1592
|
-
/** The list of errors that occurred from executing the mutation. */
|
|
1593
|
-
checkoutUserErrors: Array<CheckoutUserError>;
|
|
1594
|
-
/**
|
|
1595
|
-
* The list of errors that occurred from executing the mutation.
|
|
1596
|
-
* @deprecated Use `checkoutUserErrors` instead.
|
|
1597
|
-
*/
|
|
1598
|
-
userErrors: Array<UserError>;
|
|
1599
|
-
};
|
|
1600
|
-
|
|
1601
|
-
/** Return type for `checkoutCompleteWithCreditCardV2` mutation. */
|
|
1602
|
-
export type CheckoutCompleteWithCreditCardV2Payload = {
|
|
1603
|
-
__typename?: 'CheckoutCompleteWithCreditCardV2Payload';
|
|
1604
|
-
/** The checkout on which the payment was applied. */
|
|
1605
|
-
checkout?: Maybe<Checkout>;
|
|
1606
|
-
/** The list of errors that occurred from executing the mutation. */
|
|
1607
|
-
checkoutUserErrors: Array<CheckoutUserError>;
|
|
1608
|
-
/** A representation of the attempted payment. */
|
|
1609
|
-
payment?: Maybe<Payment>;
|
|
1610
|
-
/**
|
|
1611
|
-
* The list of errors that occurred from executing the mutation.
|
|
1612
|
-
* @deprecated Use `checkoutUserErrors` instead.
|
|
1613
|
-
*/
|
|
1614
|
-
userErrors: Array<UserError>;
|
|
1615
|
-
};
|
|
1616
|
-
|
|
1617
|
-
/** Return type for `checkoutCompleteWithTokenizedPaymentV3` mutation. */
|
|
1618
|
-
export type CheckoutCompleteWithTokenizedPaymentV3Payload = {
|
|
1619
|
-
__typename?: 'CheckoutCompleteWithTokenizedPaymentV3Payload';
|
|
1620
|
-
/** The checkout on which the payment was applied. */
|
|
1621
|
-
checkout?: Maybe<Checkout>;
|
|
1622
|
-
/** The list of errors that occurred from executing the mutation. */
|
|
1623
|
-
checkoutUserErrors: Array<CheckoutUserError>;
|
|
1624
|
-
/** A representation of the attempted payment. */
|
|
1625
|
-
payment?: Maybe<Payment>;
|
|
1626
|
-
/**
|
|
1627
|
-
* The list of errors that occurred from executing the mutation.
|
|
1628
|
-
* @deprecated Use `checkoutUserErrors` instead.
|
|
1629
|
-
*/
|
|
1630
|
-
userErrors: Array<UserError>;
|
|
1631
|
-
};
|
|
1632
|
-
|
|
1633
|
-
/** The input fields required to create a checkout. */
|
|
1634
|
-
export type CheckoutCreateInput = {
|
|
1635
|
-
/**
|
|
1636
|
-
* Allows setting partial addresses on a Checkout, skipping the full validation of attributes.
|
|
1637
|
-
* The required attributes are city, province, and country.
|
|
1638
|
-
* Full validation of addresses is still done at completion time. Defaults to `null`.
|
|
1639
|
-
*
|
|
1640
|
-
*/
|
|
1641
|
-
allowPartialAddresses?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1642
|
-
/** The identity of the customer associated with the checkout. */
|
|
1643
|
-
buyerIdentity?: InputMaybe<CheckoutBuyerIdentityInput>;
|
|
1644
|
-
/**
|
|
1645
|
-
* A list of extra information that's added to the checkout.
|
|
1646
|
-
*
|
|
1647
|
-
* The input must not contain more than `250` values.
|
|
1648
|
-
*/
|
|
1649
|
-
customAttributes?: InputMaybe<Array<AttributeInput>>;
|
|
1650
|
-
/** The email with which the customer wants to checkout. */
|
|
1651
|
-
email?: InputMaybe<Scalars['String']['input']>;
|
|
1652
|
-
/**
|
|
1653
|
-
* A list of line item objects, each one containing information about an item in the checkout.
|
|
1654
|
-
*
|
|
1655
|
-
* The input must not contain more than `250` values.
|
|
1656
|
-
*/
|
|
1657
|
-
lineItems?: InputMaybe<Array<CheckoutLineItemInput>>;
|
|
1658
|
-
/** The text of an optional note that a shop owner can attach to the checkout. */
|
|
1659
|
-
note?: InputMaybe<Scalars['String']['input']>;
|
|
1660
|
-
/** The shipping address to where the line items will be shipped. */
|
|
1661
|
-
shippingAddress?: InputMaybe<MailingAddressInput>;
|
|
1662
|
-
};
|
|
1663
|
-
|
|
1664
|
-
/** Return type for `checkoutCreate` mutation. */
|
|
1665
|
-
export type CheckoutCreatePayload = {
|
|
1666
|
-
__typename?: 'CheckoutCreatePayload';
|
|
1667
|
-
/** The new checkout object. */
|
|
1668
|
-
checkout?: Maybe<Checkout>;
|
|
1669
|
-
/** The list of errors that occurred from executing the mutation. */
|
|
1670
|
-
checkoutUserErrors: Array<CheckoutUserError>;
|
|
1671
|
-
/** The checkout queue token. Available only to selected stores. */
|
|
1672
|
-
queueToken?: Maybe<Scalars['String']['output']>;
|
|
1673
|
-
/**
|
|
1674
|
-
* The list of errors that occurred from executing the mutation.
|
|
1675
|
-
* @deprecated Use `checkoutUserErrors` instead.
|
|
1676
|
-
*/
|
|
1677
|
-
userErrors: Array<UserError>;
|
|
1678
|
-
};
|
|
1679
|
-
|
|
1680
|
-
/** Return type for `checkoutCustomerAssociateV2` mutation. */
|
|
1681
|
-
export type CheckoutCustomerAssociateV2Payload = {
|
|
1682
|
-
__typename?: 'CheckoutCustomerAssociateV2Payload';
|
|
1683
|
-
/** The updated checkout object. */
|
|
1684
|
-
checkout?: Maybe<Checkout>;
|
|
1685
|
-
/** The list of errors that occurred from executing the mutation. */
|
|
1686
|
-
checkoutUserErrors: Array<CheckoutUserError>;
|
|
1687
|
-
/** The associated customer object. */
|
|
1688
|
-
customer?: Maybe<Customer>;
|
|
1689
|
-
/**
|
|
1690
|
-
* The list of errors that occurred from executing the mutation.
|
|
1691
|
-
* @deprecated Use `checkoutUserErrors` instead.
|
|
1692
|
-
*/
|
|
1693
|
-
userErrors: Array<UserError>;
|
|
1694
|
-
};
|
|
1695
|
-
|
|
1696
|
-
/** Return type for `checkoutCustomerDisassociateV2` mutation. */
|
|
1697
|
-
export type CheckoutCustomerDisassociateV2Payload = {
|
|
1698
|
-
__typename?: 'CheckoutCustomerDisassociateV2Payload';
|
|
1699
|
-
/** The updated checkout object. */
|
|
1700
|
-
checkout?: Maybe<Checkout>;
|
|
1701
|
-
/** The list of errors that occurred from executing the mutation. */
|
|
1702
|
-
checkoutUserErrors: Array<CheckoutUserError>;
|
|
1703
|
-
/**
|
|
1704
|
-
* The list of errors that occurred from executing the mutation.
|
|
1705
|
-
* @deprecated Use `checkoutUserErrors` instead.
|
|
1706
|
-
*/
|
|
1707
|
-
userErrors: Array<UserError>;
|
|
1708
|
-
};
|
|
1709
|
-
|
|
1710
|
-
/** Return type for `checkoutDiscountCodeApplyV2` mutation. */
|
|
1711
|
-
export type CheckoutDiscountCodeApplyV2Payload = {
|
|
1712
|
-
__typename?: 'CheckoutDiscountCodeApplyV2Payload';
|
|
1713
|
-
/** The updated checkout object. */
|
|
1714
|
-
checkout?: Maybe<Checkout>;
|
|
1715
|
-
/** The list of errors that occurred from executing the mutation. */
|
|
1716
|
-
checkoutUserErrors: Array<CheckoutUserError>;
|
|
1717
|
-
/**
|
|
1718
|
-
* The list of errors that occurred from executing the mutation.
|
|
1719
|
-
* @deprecated Use `checkoutUserErrors` instead.
|
|
1720
|
-
*/
|
|
1721
|
-
userErrors: Array<UserError>;
|
|
1722
|
-
};
|
|
1723
|
-
|
|
1724
|
-
/** Return type for `checkoutDiscountCodeRemove` mutation. */
|
|
1725
|
-
export type CheckoutDiscountCodeRemovePayload = {
|
|
1726
|
-
__typename?: 'CheckoutDiscountCodeRemovePayload';
|
|
1727
|
-
/** The updated checkout object. */
|
|
1728
|
-
checkout?: Maybe<Checkout>;
|
|
1729
|
-
/** The list of errors that occurred from executing the mutation. */
|
|
1730
|
-
checkoutUserErrors: Array<CheckoutUserError>;
|
|
1731
|
-
/**
|
|
1732
|
-
* The list of errors that occurred from executing the mutation.
|
|
1733
|
-
* @deprecated Use `checkoutUserErrors` instead.
|
|
1734
|
-
*/
|
|
1735
|
-
userErrors: Array<UserError>;
|
|
1736
|
-
};
|
|
1737
|
-
|
|
1738
|
-
/** Return type for `checkoutEmailUpdateV2` mutation. */
|
|
1739
|
-
export type CheckoutEmailUpdateV2Payload = {
|
|
1740
|
-
__typename?: 'CheckoutEmailUpdateV2Payload';
|
|
1741
|
-
/** The checkout object with the updated email. */
|
|
1742
|
-
checkout?: Maybe<Checkout>;
|
|
1743
|
-
/** The list of errors that occurred from executing the mutation. */
|
|
1744
|
-
checkoutUserErrors: Array<CheckoutUserError>;
|
|
1745
|
-
/**
|
|
1746
|
-
* The list of errors that occurred from executing the mutation.
|
|
1747
|
-
* @deprecated Use `checkoutUserErrors` instead.
|
|
1748
|
-
*/
|
|
1749
|
-
userErrors: Array<UserError>;
|
|
1750
|
-
};
|
|
1751
|
-
|
|
1752
|
-
/** Possible error codes that can be returned by `CheckoutUserError`. */
|
|
1753
|
-
export type CheckoutErrorCode =
|
|
1754
|
-
/** Checkout is already completed. */
|
|
1755
|
-
| 'ALREADY_COMPLETED'
|
|
1756
|
-
/** Input email contains an invalid domain name. */
|
|
1757
|
-
| 'BAD_DOMAIN'
|
|
1758
|
-
/** The input value is blank. */
|
|
1759
|
-
| 'BLANK'
|
|
1760
|
-
/** Cart does not meet discount requirements notice. */
|
|
1761
|
-
| 'CART_DOES_NOT_MEET_DISCOUNT_REQUIREMENTS_NOTICE'
|
|
1762
|
-
/** Customer already used once per customer discount notice. */
|
|
1763
|
-
| 'CUSTOMER_ALREADY_USED_ONCE_PER_CUSTOMER_DISCOUNT_NOTICE'
|
|
1764
|
-
/** Discount already applied. */
|
|
1765
|
-
| 'DISCOUNT_ALREADY_APPLIED'
|
|
1766
|
-
/** Discount code isn't working right now. Please contact us for help. */
|
|
1767
|
-
| 'DISCOUNT_CODE_APPLICATION_FAILED'
|
|
1768
|
-
/** Discount disabled. */
|
|
1769
|
-
| 'DISCOUNT_DISABLED'
|
|
1770
|
-
/** Discount expired. */
|
|
1771
|
-
| 'DISCOUNT_EXPIRED'
|
|
1772
|
-
/** Discount limit reached. */
|
|
1773
|
-
| 'DISCOUNT_LIMIT_REACHED'
|
|
1774
|
-
/** Discount not found. */
|
|
1775
|
-
| 'DISCOUNT_NOT_FOUND'
|
|
1776
|
-
/** Checkout is already completed. */
|
|
1777
|
-
| 'EMPTY'
|
|
1778
|
-
/** Queue token has expired. */
|
|
1779
|
-
| 'EXPIRED_QUEUE_TOKEN'
|
|
1780
|
-
/** Gift card has already been applied. */
|
|
1781
|
-
| 'GIFT_CARD_ALREADY_APPLIED'
|
|
1782
|
-
/** Gift card code is invalid. */
|
|
1783
|
-
| 'GIFT_CARD_CODE_INVALID'
|
|
1784
|
-
/** Gift card currency does not match checkout currency. */
|
|
1785
|
-
| 'GIFT_CARD_CURRENCY_MISMATCH'
|
|
1786
|
-
/** Gift card has no funds left. */
|
|
1787
|
-
| 'GIFT_CARD_DEPLETED'
|
|
1788
|
-
/** Gift card is disabled. */
|
|
1789
|
-
| 'GIFT_CARD_DISABLED'
|
|
1790
|
-
/** Gift card is expired. */
|
|
1791
|
-
| 'GIFT_CARD_EXPIRED'
|
|
1792
|
-
/** Gift card was not found. */
|
|
1793
|
-
| 'GIFT_CARD_NOT_FOUND'
|
|
1794
|
-
/** Gift card cannot be applied to a checkout that contains a gift card. */
|
|
1795
|
-
| 'GIFT_CARD_UNUSABLE'
|
|
1796
|
-
/** The input value should be greater than or equal to the minimum value allowed. */
|
|
1797
|
-
| 'GREATER_THAN_OR_EQUAL_TO'
|
|
1798
|
-
/** Higher value discount applied. */
|
|
1799
|
-
| 'HIGHER_VALUE_DISCOUNT_APPLIED'
|
|
1800
|
-
/** The input value is invalid. */
|
|
1801
|
-
| 'INVALID'
|
|
1802
|
-
/** Cannot specify country and presentment currency code. */
|
|
1803
|
-
| 'INVALID_COUNTRY_AND_CURRENCY'
|
|
1804
|
-
/** Input Zip is invalid for country provided. */
|
|
1805
|
-
| 'INVALID_FOR_COUNTRY'
|
|
1806
|
-
/** Input Zip is invalid for country and province provided. */
|
|
1807
|
-
| 'INVALID_FOR_COUNTRY_AND_PROVINCE'
|
|
1808
|
-
/** Invalid province in country. */
|
|
1809
|
-
| 'INVALID_PROVINCE_IN_COUNTRY'
|
|
1810
|
-
/** Queue token is invalid. */
|
|
1811
|
-
| 'INVALID_QUEUE_TOKEN'
|
|
1812
|
-
/** Invalid region in country. */
|
|
1813
|
-
| 'INVALID_REGION_IN_COUNTRY'
|
|
1814
|
-
/** Invalid state in country. */
|
|
1815
|
-
| 'INVALID_STATE_IN_COUNTRY'
|
|
1816
|
-
/** The input value should be less than the maximum value allowed. */
|
|
1817
|
-
| 'LESS_THAN'
|
|
1818
|
-
/** The input value should be less than or equal to the maximum value allowed. */
|
|
1819
|
-
| 'LESS_THAN_OR_EQUAL_TO'
|
|
1820
|
-
/** Line item was not found in checkout. */
|
|
1821
|
-
| 'LINE_ITEM_NOT_FOUND'
|
|
1822
|
-
/** Checkout is locked. */
|
|
1823
|
-
| 'LOCKED'
|
|
1824
|
-
/** Maximum number of discount codes limit reached. */
|
|
1825
|
-
| 'MAXIMUM_DISCOUNT_CODE_LIMIT_REACHED'
|
|
1826
|
-
/** Missing payment input. */
|
|
1827
|
-
| 'MISSING_PAYMENT_INPUT'
|
|
1828
|
-
/** Not enough in stock. */
|
|
1829
|
-
| 'NOT_ENOUGH_IN_STOCK'
|
|
1830
|
-
/** Input value is not supported. */
|
|
1831
|
-
| 'NOT_SUPPORTED'
|
|
1832
|
-
/** The input value needs to be blank. */
|
|
1833
|
-
| 'PRESENT'
|
|
1834
|
-
/** Product is not published for this customer. */
|
|
1835
|
-
| 'PRODUCT_NOT_AVAILABLE'
|
|
1836
|
-
/** Shipping rate expired. */
|
|
1837
|
-
| 'SHIPPING_RATE_EXPIRED'
|
|
1838
|
-
/** Throttled during checkout. */
|
|
1839
|
-
| 'THROTTLED_DURING_CHECKOUT'
|
|
1840
|
-
/** The input value is too long. */
|
|
1841
|
-
| 'TOO_LONG'
|
|
1842
|
-
/** The amount of the payment does not match the value to be paid. */
|
|
1843
|
-
| 'TOTAL_PRICE_MISMATCH'
|
|
1844
|
-
/** Unable to apply discount. */
|
|
1845
|
-
| 'UNABLE_TO_APPLY';
|
|
1846
|
-
|
|
1847
|
-
/** Return type for `checkoutGiftCardRemoveV2` mutation. */
|
|
1848
|
-
export type CheckoutGiftCardRemoveV2Payload = {
|
|
1849
|
-
__typename?: 'CheckoutGiftCardRemoveV2Payload';
|
|
1850
|
-
/** The updated checkout object. */
|
|
1851
|
-
checkout?: Maybe<Checkout>;
|
|
1852
|
-
/** The list of errors that occurred from executing the mutation. */
|
|
1853
|
-
checkoutUserErrors: Array<CheckoutUserError>;
|
|
1854
|
-
/**
|
|
1855
|
-
* The list of errors that occurred from executing the mutation.
|
|
1856
|
-
* @deprecated Use `checkoutUserErrors` instead.
|
|
1857
|
-
*/
|
|
1858
|
-
userErrors: Array<UserError>;
|
|
1859
|
-
};
|
|
1860
|
-
|
|
1861
|
-
/** Return type for `checkoutGiftCardsAppend` mutation. */
|
|
1862
|
-
export type CheckoutGiftCardsAppendPayload = {
|
|
1863
|
-
__typename?: 'CheckoutGiftCardsAppendPayload';
|
|
1864
|
-
/** The updated checkout object. */
|
|
1865
|
-
checkout?: Maybe<Checkout>;
|
|
1866
|
-
/** The list of errors that occurred from executing the mutation. */
|
|
1867
|
-
checkoutUserErrors: Array<CheckoutUserError>;
|
|
1868
|
-
/**
|
|
1869
|
-
* The list of errors that occurred from executing the mutation.
|
|
1870
|
-
* @deprecated Use `checkoutUserErrors` instead.
|
|
1871
|
-
*/
|
|
1872
|
-
userErrors: Array<UserError>;
|
|
1873
|
-
};
|
|
1874
|
-
|
|
1875
|
-
/** A single line item in the checkout, grouped by variant and attributes. */
|
|
1876
|
-
export type CheckoutLineItem = Node & {
|
|
1877
|
-
__typename?: 'CheckoutLineItem';
|
|
1878
|
-
/** Extra information in the form of an array of Key-Value pairs about the line item. */
|
|
1879
|
-
customAttributes: Array<Attribute>;
|
|
1880
|
-
/** The discounts that have been allocated onto the checkout line item by discount applications. */
|
|
1881
|
-
discountAllocations: Array<DiscountAllocation>;
|
|
1882
|
-
/** A globally-unique ID. */
|
|
1883
|
-
id: Scalars['ID']['output'];
|
|
1884
|
-
/** The quantity of the line item. */
|
|
1885
|
-
quantity: Scalars['Int']['output'];
|
|
1886
|
-
/** Title of the line item. Defaults to the product's title. */
|
|
1887
|
-
title: Scalars['String']['output'];
|
|
1888
|
-
/** Unit price of the line item. */
|
|
1889
|
-
unitPrice?: Maybe<MoneyV2>;
|
|
1890
|
-
/** Product variant of the line item. */
|
|
1891
|
-
variant?: Maybe<ProductVariant>;
|
|
1892
|
-
};
|
|
1893
|
-
|
|
1894
|
-
/**
|
|
1895
|
-
* An auto-generated type for paginating through multiple CheckoutLineItems.
|
|
1896
|
-
*
|
|
1897
|
-
*/
|
|
1898
|
-
export type CheckoutLineItemConnection = {
|
|
1899
|
-
__typename?: 'CheckoutLineItemConnection';
|
|
1900
|
-
/** A list of edges. */
|
|
1901
|
-
edges: Array<CheckoutLineItemEdge>;
|
|
1902
|
-
/** A list of the nodes contained in CheckoutLineItemEdge. */
|
|
1903
|
-
nodes: Array<CheckoutLineItem>;
|
|
1904
|
-
/** Information to aid in pagination. */
|
|
1905
|
-
pageInfo: PageInfo;
|
|
1906
|
-
};
|
|
1907
|
-
|
|
1908
|
-
/**
|
|
1909
|
-
* An auto-generated type which holds one CheckoutLineItem and a cursor during pagination.
|
|
1910
|
-
*
|
|
1911
|
-
*/
|
|
1912
|
-
export type CheckoutLineItemEdge = {
|
|
1913
|
-
__typename?: 'CheckoutLineItemEdge';
|
|
1914
|
-
/** A cursor for use in pagination. */
|
|
1915
|
-
cursor: Scalars['String']['output'];
|
|
1916
|
-
/** The item at the end of CheckoutLineItemEdge. */
|
|
1917
|
-
node: CheckoutLineItem;
|
|
1918
|
-
};
|
|
1919
|
-
|
|
1920
|
-
/** The input fields to create a line item on a checkout. */
|
|
1921
|
-
export type CheckoutLineItemInput = {
|
|
1922
|
-
/**
|
|
1923
|
-
* Extra information in the form of an array of Key-Value pairs about the line item.
|
|
1924
|
-
*
|
|
1925
|
-
* The input must not contain more than `250` values.
|
|
1926
|
-
*/
|
|
1927
|
-
customAttributes?: InputMaybe<Array<AttributeInput>>;
|
|
1928
|
-
/** The quantity of the line item. */
|
|
1929
|
-
quantity: Scalars['Int']['input'];
|
|
1930
|
-
/** The ID of the product variant for the line item. */
|
|
1931
|
-
variantId: Scalars['ID']['input'];
|
|
1932
|
-
};
|
|
1933
|
-
|
|
1934
|
-
/** The input fields to update a line item on the checkout. */
|
|
1935
|
-
export type CheckoutLineItemUpdateInput = {
|
|
1936
|
-
/**
|
|
1937
|
-
* Extra information in the form of an array of Key-Value pairs about the line item.
|
|
1938
|
-
*
|
|
1939
|
-
* The input must not contain more than `250` values.
|
|
1940
|
-
*/
|
|
1941
|
-
customAttributes?: InputMaybe<Array<AttributeInput>>;
|
|
1942
|
-
/** The ID of the line item. */
|
|
1943
|
-
id?: InputMaybe<Scalars['ID']['input']>;
|
|
1944
|
-
/** The quantity of the line item. */
|
|
1945
|
-
quantity?: InputMaybe<Scalars['Int']['input']>;
|
|
1946
|
-
/** The variant ID of the line item. */
|
|
1947
|
-
variantId?: InputMaybe<Scalars['ID']['input']>;
|
|
1948
|
-
};
|
|
1949
|
-
|
|
1950
|
-
/** Return type for `checkoutLineItemsAdd` mutation. */
|
|
1951
|
-
export type CheckoutLineItemsAddPayload = {
|
|
1952
|
-
__typename?: 'CheckoutLineItemsAddPayload';
|
|
1953
|
-
/** The updated checkout object. */
|
|
1954
|
-
checkout?: Maybe<Checkout>;
|
|
1955
|
-
/** The list of errors that occurred from executing the mutation. */
|
|
1956
|
-
checkoutUserErrors: Array<CheckoutUserError>;
|
|
1957
|
-
/**
|
|
1958
|
-
* The list of errors that occurred from executing the mutation.
|
|
1959
|
-
* @deprecated Use `checkoutUserErrors` instead.
|
|
1960
|
-
*/
|
|
1961
|
-
userErrors: Array<UserError>;
|
|
1962
|
-
};
|
|
1963
|
-
|
|
1964
|
-
/** Return type for `checkoutLineItemsRemove` mutation. */
|
|
1965
|
-
export type CheckoutLineItemsRemovePayload = {
|
|
1966
|
-
__typename?: 'CheckoutLineItemsRemovePayload';
|
|
1967
|
-
/** The updated checkout object. */
|
|
1968
|
-
checkout?: Maybe<Checkout>;
|
|
1969
|
-
/** The list of errors that occurred from executing the mutation. */
|
|
1970
|
-
checkoutUserErrors: Array<CheckoutUserError>;
|
|
1971
|
-
/**
|
|
1972
|
-
* The list of errors that occurred from executing the mutation.
|
|
1973
|
-
* @deprecated Use `checkoutUserErrors` instead.
|
|
1974
|
-
*/
|
|
1975
|
-
userErrors: Array<UserError>;
|
|
1976
|
-
};
|
|
1977
|
-
|
|
1978
|
-
/** Return type for `checkoutLineItemsReplace` mutation. */
|
|
1979
|
-
export type CheckoutLineItemsReplacePayload = {
|
|
1980
|
-
__typename?: 'CheckoutLineItemsReplacePayload';
|
|
1981
|
-
/** The updated checkout object. */
|
|
1982
|
-
checkout?: Maybe<Checkout>;
|
|
1983
|
-
/** The list of errors that occurred from executing the mutation. */
|
|
1984
|
-
userErrors: Array<CheckoutUserError>;
|
|
1985
|
-
};
|
|
1986
|
-
|
|
1987
|
-
/** Return type for `checkoutLineItemsUpdate` mutation. */
|
|
1988
|
-
export type CheckoutLineItemsUpdatePayload = {
|
|
1989
|
-
__typename?: 'CheckoutLineItemsUpdatePayload';
|
|
1990
|
-
/** The updated checkout object. */
|
|
1991
|
-
checkout?: Maybe<Checkout>;
|
|
1992
|
-
/** The list of errors that occurred from executing the mutation. */
|
|
1993
|
-
checkoutUserErrors: Array<CheckoutUserError>;
|
|
1994
|
-
/**
|
|
1995
|
-
* The list of errors that occurred from executing the mutation.
|
|
1996
|
-
* @deprecated Use `checkoutUserErrors` instead.
|
|
1997
|
-
*/
|
|
1998
|
-
userErrors: Array<UserError>;
|
|
1999
|
-
};
|
|
2000
|
-
|
|
2001
|
-
/** Return type for `checkoutShippingAddressUpdateV2` mutation. */
|
|
2002
|
-
export type CheckoutShippingAddressUpdateV2Payload = {
|
|
2003
|
-
__typename?: 'CheckoutShippingAddressUpdateV2Payload';
|
|
2004
|
-
/** The updated checkout object. */
|
|
2005
|
-
checkout?: Maybe<Checkout>;
|
|
2006
|
-
/** The list of errors that occurred from executing the mutation. */
|
|
2007
|
-
checkoutUserErrors: Array<CheckoutUserError>;
|
|
2008
|
-
/**
|
|
2009
|
-
* The list of errors that occurred from executing the mutation.
|
|
2010
|
-
* @deprecated Use `checkoutUserErrors` instead.
|
|
2011
|
-
*/
|
|
2012
|
-
userErrors: Array<UserError>;
|
|
2013
|
-
};
|
|
2014
|
-
|
|
2015
|
-
/** Return type for `checkoutShippingLineUpdate` mutation. */
|
|
2016
|
-
export type CheckoutShippingLineUpdatePayload = {
|
|
2017
|
-
__typename?: 'CheckoutShippingLineUpdatePayload';
|
|
2018
|
-
/** The updated checkout object. */
|
|
2019
|
-
checkout?: Maybe<Checkout>;
|
|
2020
|
-
/** The list of errors that occurred from executing the mutation. */
|
|
2021
|
-
checkoutUserErrors: Array<CheckoutUserError>;
|
|
2022
|
-
/**
|
|
2023
|
-
* The list of errors that occurred from executing the mutation.
|
|
2024
|
-
* @deprecated Use `checkoutUserErrors` instead.
|
|
2025
|
-
*/
|
|
2026
|
-
userErrors: Array<UserError>;
|
|
2027
|
-
};
|
|
2028
|
-
|
|
2029
|
-
/** Represents an error that happens during execution of a checkout mutation. */
|
|
2030
|
-
export type CheckoutUserError = DisplayableError & {
|
|
2031
|
-
__typename?: 'CheckoutUserError';
|
|
2032
|
-
/** The error code. */
|
|
2033
|
-
code?: Maybe<CheckoutErrorCode>;
|
|
2034
|
-
/** The path to the input field that caused the error. */
|
|
2035
|
-
field?: Maybe<Array<Scalars['String']['output']>>;
|
|
2036
|
-
/** The error message. */
|
|
2037
|
-
message: Scalars['String']['output'];
|
|
2038
|
-
};
|
|
2039
|
-
|
|
2040
1534
|
/**
|
|
2041
1535
|
* A collection represents a grouping of products that a shop owner can create to
|
|
2042
1536
|
* organize them or make their shops easier to browse.
|
|
@@ -2883,45 +2377,6 @@ export type CountryCode =
|
|
|
2883
2377
|
/** Unknown Region. */
|
|
2884
2378
|
| 'ZZ';
|
|
2885
2379
|
|
|
2886
|
-
/** Credit card information used for a payment. */
|
|
2887
|
-
export type CreditCard = {
|
|
2888
|
-
__typename?: 'CreditCard';
|
|
2889
|
-
/** The brand of the credit card. */
|
|
2890
|
-
brand?: Maybe<Scalars['String']['output']>;
|
|
2891
|
-
/** The expiry month of the credit card. */
|
|
2892
|
-
expiryMonth?: Maybe<Scalars['Int']['output']>;
|
|
2893
|
-
/** The expiry year of the credit card. */
|
|
2894
|
-
expiryYear?: Maybe<Scalars['Int']['output']>;
|
|
2895
|
-
/** The credit card's BIN number. */
|
|
2896
|
-
firstDigits?: Maybe<Scalars['String']['output']>;
|
|
2897
|
-
/** The first name of the card holder. */
|
|
2898
|
-
firstName?: Maybe<Scalars['String']['output']>;
|
|
2899
|
-
/** The last 4 digits of the credit card. */
|
|
2900
|
-
lastDigits?: Maybe<Scalars['String']['output']>;
|
|
2901
|
-
/** The last name of the card holder. */
|
|
2902
|
-
lastName?: Maybe<Scalars['String']['output']>;
|
|
2903
|
-
/** The masked credit card number with only the last 4 digits displayed. */
|
|
2904
|
-
maskedNumber?: Maybe<Scalars['String']['output']>;
|
|
2905
|
-
};
|
|
2906
|
-
|
|
2907
|
-
/**
|
|
2908
|
-
* Specifies the fields required to complete a checkout with
|
|
2909
|
-
* a Shopify vaulted credit card payment.
|
|
2910
|
-
*
|
|
2911
|
-
*/
|
|
2912
|
-
export type CreditCardPaymentInputV2 = {
|
|
2913
|
-
/** The billing address for the payment. */
|
|
2914
|
-
billingAddress: MailingAddressInput;
|
|
2915
|
-
/** A unique client generated key used to avoid duplicate charges. When a duplicate payment is found, the original is returned instead of creating a new one. For more information, refer to [Idempotent requests](https://shopify.dev/api/usage/idempotent-requests). */
|
|
2916
|
-
idempotencyKey: Scalars['String']['input'];
|
|
2917
|
-
/** The amount and currency of the payment. */
|
|
2918
|
-
paymentAmount: MoneyInput;
|
|
2919
|
-
/** Executes the payment in test mode if possible. Defaults to `false`. */
|
|
2920
|
-
test?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2921
|
-
/** The ID returned by Shopify's Card Vault. */
|
|
2922
|
-
vaultId: Scalars['String']['input'];
|
|
2923
|
-
};
|
|
2924
|
-
|
|
2925
2380
|
/** The part of the image that should remain after cropping. */
|
|
2926
2381
|
export type CropRegion =
|
|
2927
2382
|
/** Keep the bottom of the image. */
|
|
@@ -3295,11 +2750,6 @@ export type Customer = HasMetafields & {
|
|
|
3295
2750
|
firstName?: Maybe<Scalars['String']['output']>;
|
|
3296
2751
|
/** A unique ID for the customer. */
|
|
3297
2752
|
id: Scalars['ID']['output'];
|
|
3298
|
-
/**
|
|
3299
|
-
* The customer's most recently updated, incomplete checkout.
|
|
3300
|
-
* @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
|
|
3301
|
-
*/
|
|
3302
|
-
lastIncompleteCheckout?: Maybe<Checkout>;
|
|
3303
2753
|
/** The customer’s last name. */
|
|
3304
2754
|
lastName?: Maybe<Scalars['String']['output']>;
|
|
3305
2755
|
/** Returns a metafield found by namespace and key. */
|
|
@@ -3693,6 +3143,12 @@ export type DeliveryAddressInput = {
|
|
|
3693
3143
|
deliveryAddress?: InputMaybe<MailingAddressInput>;
|
|
3694
3144
|
/** Defines what kind of address validation is requested. */
|
|
3695
3145
|
deliveryAddressValidationStrategy?: InputMaybe<DeliveryAddressValidationStrategy>;
|
|
3146
|
+
/**
|
|
3147
|
+
* Whether the given delivery address is considered to be a one-time use address. One-time use addresses do not
|
|
3148
|
+
* get persisted to the buyer's personal addresses when checking out.
|
|
3149
|
+
*
|
|
3150
|
+
*/
|
|
3151
|
+
oneTimeUse?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3696
3152
|
};
|
|
3697
3153
|
|
|
3698
3154
|
/**
|
|
@@ -4722,7 +4178,7 @@ export type MailingAddress = Node & {
|
|
|
4722
4178
|
/** The region of the address, such as the province, state, or district. */
|
|
4723
4179
|
province?: Maybe<Scalars['String']['output']>;
|
|
4724
4180
|
/**
|
|
4725
|
-
* The
|
|
4181
|
+
* The alphanumeric code for the region.
|
|
4726
4182
|
*
|
|
4727
4183
|
* For example, ON.
|
|
4728
4184
|
*
|
|
@@ -5132,6 +4588,7 @@ export type MetafieldParentResource =
|
|
|
5132
4588
|
| Page
|
|
5133
4589
|
| Product
|
|
5134
4590
|
| ProductVariant
|
|
4591
|
+
| SellingPlan
|
|
5135
4592
|
| Shop;
|
|
5136
4593
|
|
|
5137
4594
|
/**
|
|
@@ -5370,6 +4827,8 @@ export type Mutation = {
|
|
|
5370
4827
|
__typename?: 'Mutation';
|
|
5371
4828
|
/** Updates the attributes on a cart. */
|
|
5372
4829
|
cartAttributesUpdate?: Maybe<CartAttributesUpdatePayload>;
|
|
4830
|
+
/** Updates the billing address on the cart. */
|
|
4831
|
+
cartBillingAddressUpdate?: Maybe<CartBillingAddressUpdatePayload>;
|
|
5373
4832
|
/**
|
|
5374
4833
|
* Updates customer information associated with a cart.
|
|
5375
4834
|
* Buyer identity is used to determine
|
|
@@ -5382,6 +4841,8 @@ export type Mutation = {
|
|
|
5382
4841
|
cartCreate?: Maybe<CartCreatePayload>;
|
|
5383
4842
|
/** Updates the discount codes applied to the cart. */
|
|
5384
4843
|
cartDiscountCodesUpdate?: Maybe<CartDiscountCodesUpdatePayload>;
|
|
4844
|
+
/** Updates the gift card codes applied to the cart. */
|
|
4845
|
+
cartGiftCardCodesUpdate?: Maybe<CartGiftCardCodesUpdatePayload>;
|
|
5385
4846
|
/** Adds a merchandise line to the cart. */
|
|
5386
4847
|
cartLinesAdd?: Maybe<CartLinesAddPayload>;
|
|
5387
4848
|
/** Removes one or more merchandise lines from the cart. */
|
|
@@ -5405,96 +4866,6 @@ export type Mutation = {
|
|
|
5405
4866
|
cartSelectedDeliveryOptionsUpdate?: Maybe<CartSelectedDeliveryOptionsUpdatePayload>;
|
|
5406
4867
|
/** Submit the cart for checkout completion. */
|
|
5407
4868
|
cartSubmitForCompletion?: Maybe<CartSubmitForCompletionPayload>;
|
|
5408
|
-
/**
|
|
5409
|
-
* Updates the attributes of a checkout if `allowPartialAddresses` is `true`.
|
|
5410
|
-
* @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
|
|
5411
|
-
*/
|
|
5412
|
-
checkoutAttributesUpdateV2?: Maybe<CheckoutAttributesUpdateV2Payload>;
|
|
5413
|
-
/**
|
|
5414
|
-
* Completes a checkout without providing payment information. You can use this mutation for free items or items whose purchase price is covered by a gift card.
|
|
5415
|
-
* @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
|
|
5416
|
-
*/
|
|
5417
|
-
checkoutCompleteFree?: Maybe<CheckoutCompleteFreePayload>;
|
|
5418
|
-
/**
|
|
5419
|
-
* Completes a checkout using a credit card token from Shopify's card vault. Before you can complete checkouts using CheckoutCompleteWithCreditCardV2, you need to [_request payment processing_](https://shopify.dev/apps/channels/getting-started#request-payment-processing).
|
|
5420
|
-
* @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
|
|
5421
|
-
*/
|
|
5422
|
-
checkoutCompleteWithCreditCardV2?: Maybe<CheckoutCompleteWithCreditCardV2Payload>;
|
|
5423
|
-
/**
|
|
5424
|
-
* Completes a checkout with a tokenized payment.
|
|
5425
|
-
* @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
|
|
5426
|
-
*/
|
|
5427
|
-
checkoutCompleteWithTokenizedPaymentV3?: Maybe<CheckoutCompleteWithTokenizedPaymentV3Payload>;
|
|
5428
|
-
/**
|
|
5429
|
-
* Creates a new checkout.
|
|
5430
|
-
* @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
|
|
5431
|
-
*/
|
|
5432
|
-
checkoutCreate?: Maybe<CheckoutCreatePayload>;
|
|
5433
|
-
/**
|
|
5434
|
-
* Associates a customer to the checkout.
|
|
5435
|
-
* @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
|
|
5436
|
-
*/
|
|
5437
|
-
checkoutCustomerAssociateV2?: Maybe<CheckoutCustomerAssociateV2Payload>;
|
|
5438
|
-
/**
|
|
5439
|
-
* Disassociates the current checkout customer from the checkout.
|
|
5440
|
-
* @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
|
|
5441
|
-
*/
|
|
5442
|
-
checkoutCustomerDisassociateV2?: Maybe<CheckoutCustomerDisassociateV2Payload>;
|
|
5443
|
-
/**
|
|
5444
|
-
* Applies a discount to an existing checkout using a discount code.
|
|
5445
|
-
* @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
|
|
5446
|
-
*/
|
|
5447
|
-
checkoutDiscountCodeApplyV2?: Maybe<CheckoutDiscountCodeApplyV2Payload>;
|
|
5448
|
-
/**
|
|
5449
|
-
* Removes the applied discounts from an existing checkout.
|
|
5450
|
-
* @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
|
|
5451
|
-
*/
|
|
5452
|
-
checkoutDiscountCodeRemove?: Maybe<CheckoutDiscountCodeRemovePayload>;
|
|
5453
|
-
/**
|
|
5454
|
-
* Updates the email on an existing checkout.
|
|
5455
|
-
* @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
|
|
5456
|
-
*/
|
|
5457
|
-
checkoutEmailUpdateV2?: Maybe<CheckoutEmailUpdateV2Payload>;
|
|
5458
|
-
/**
|
|
5459
|
-
* Removes an applied gift card from the checkout.
|
|
5460
|
-
* @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
|
|
5461
|
-
*/
|
|
5462
|
-
checkoutGiftCardRemoveV2?: Maybe<CheckoutGiftCardRemoveV2Payload>;
|
|
5463
|
-
/**
|
|
5464
|
-
* Appends gift cards to an existing checkout.
|
|
5465
|
-
* @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
|
|
5466
|
-
*/
|
|
5467
|
-
checkoutGiftCardsAppend?: Maybe<CheckoutGiftCardsAppendPayload>;
|
|
5468
|
-
/**
|
|
5469
|
-
* Adds a list of line items to a checkout.
|
|
5470
|
-
* @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
|
|
5471
|
-
*/
|
|
5472
|
-
checkoutLineItemsAdd?: Maybe<CheckoutLineItemsAddPayload>;
|
|
5473
|
-
/**
|
|
5474
|
-
* Removes line items from an existing checkout.
|
|
5475
|
-
* @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
|
|
5476
|
-
*/
|
|
5477
|
-
checkoutLineItemsRemove?: Maybe<CheckoutLineItemsRemovePayload>;
|
|
5478
|
-
/**
|
|
5479
|
-
* Sets a list of line items to a checkout.
|
|
5480
|
-
* @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
|
|
5481
|
-
*/
|
|
5482
|
-
checkoutLineItemsReplace?: Maybe<CheckoutLineItemsReplacePayload>;
|
|
5483
|
-
/**
|
|
5484
|
-
* Updates line items on a checkout.
|
|
5485
|
-
* @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
|
|
5486
|
-
*/
|
|
5487
|
-
checkoutLineItemsUpdate?: Maybe<CheckoutLineItemsUpdatePayload>;
|
|
5488
|
-
/**
|
|
5489
|
-
* Updates the shipping address of an existing checkout.
|
|
5490
|
-
* @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
|
|
5491
|
-
*/
|
|
5492
|
-
checkoutShippingAddressUpdateV2?: Maybe<CheckoutShippingAddressUpdateV2Payload>;
|
|
5493
|
-
/**
|
|
5494
|
-
* Updates the shipping lines on an existing checkout.
|
|
5495
|
-
* @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
|
|
5496
|
-
*/
|
|
5497
|
-
checkoutShippingLineUpdate?: Maybe<CheckoutShippingLineUpdatePayload>;
|
|
5498
4869
|
/**
|
|
5499
4870
|
* Creates a customer access token.
|
|
5500
4871
|
* The customer access token is required to modify the customer object in any way.
|
|
@@ -5561,186 +4932,97 @@ export type Mutation = {
|
|
|
5561
4932
|
customerResetByUrl?: Maybe<CustomerResetByUrlPayload>;
|
|
5562
4933
|
/** Updates an existing customer. */
|
|
5563
4934
|
customerUpdate?: Maybe<CustomerUpdatePayload>;
|
|
4935
|
+
/** Create a new Shop Pay payment request session. */
|
|
4936
|
+
shopPayPaymentRequestSessionCreate?: Maybe<ShopPayPaymentRequestSessionCreatePayload>;
|
|
4937
|
+
/** Submits a Shop Pay payment request session. */
|
|
4938
|
+
shopPayPaymentRequestSessionSubmit?: Maybe<ShopPayPaymentRequestSessionSubmitPayload>;
|
|
5564
4939
|
};
|
|
5565
4940
|
|
|
5566
4941
|
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5567
|
-
export type MutationCartAttributesUpdateArgs = {
|
|
5568
|
-
attributes: Array<AttributeInput>;
|
|
5569
|
-
cartId: Scalars['ID']['input'];
|
|
5570
|
-
};
|
|
5571
|
-
|
|
5572
|
-
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5573
|
-
export type MutationCartBuyerIdentityUpdateArgs = {
|
|
5574
|
-
buyerIdentity: CartBuyerIdentityInput;
|
|
5575
|
-
cartId: Scalars['ID']['input'];
|
|
5576
|
-
};
|
|
5577
|
-
|
|
5578
|
-
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5579
|
-
export type MutationCartCreateArgs = {
|
|
5580
|
-
input?: InputMaybe<CartInput>;
|
|
5581
|
-
};
|
|
5582
|
-
|
|
5583
|
-
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5584
|
-
export type MutationCartDiscountCodesUpdateArgs = {
|
|
5585
|
-
cartId: Scalars['ID']['input'];
|
|
5586
|
-
discountCodes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
5587
|
-
};
|
|
5588
|
-
|
|
5589
|
-
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5590
|
-
export type MutationCartLinesAddArgs = {
|
|
5591
|
-
cartId: Scalars['ID']['input'];
|
|
5592
|
-
lines: Array<CartLineInput>;
|
|
5593
|
-
};
|
|
5594
|
-
|
|
5595
|
-
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5596
|
-
export type MutationCartLinesRemoveArgs = {
|
|
5597
|
-
cartId: Scalars['ID']['input'];
|
|
5598
|
-
lineIds: Array<Scalars['ID']['input']>;
|
|
5599
|
-
};
|
|
5600
|
-
|
|
5601
|
-
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5602
|
-
export type MutationCartLinesUpdateArgs = {
|
|
5603
|
-
cartId: Scalars['ID']['input'];
|
|
5604
|
-
lines: Array<CartLineUpdateInput>;
|
|
5605
|
-
};
|
|
5606
|
-
|
|
5607
|
-
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5608
|
-
export type MutationCartMetafieldDeleteArgs = {
|
|
5609
|
-
input: CartMetafieldDeleteInput;
|
|
5610
|
-
};
|
|
5611
|
-
|
|
5612
|
-
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5613
|
-
export type MutationCartMetafieldsSetArgs = {
|
|
5614
|
-
metafields: Array<CartMetafieldsSetInput>;
|
|
5615
|
-
};
|
|
5616
|
-
|
|
5617
|
-
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5618
|
-
export type MutationCartNoteUpdateArgs = {
|
|
5619
|
-
cartId: Scalars['ID']['input'];
|
|
5620
|
-
note: Scalars['String']['input'];
|
|
5621
|
-
};
|
|
5622
|
-
|
|
5623
|
-
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5624
|
-
export type MutationCartPaymentUpdateArgs = {
|
|
5625
|
-
cartId: Scalars['ID']['input'];
|
|
5626
|
-
payment: CartPaymentInput;
|
|
5627
|
-
};
|
|
5628
|
-
|
|
5629
|
-
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5630
|
-
export type MutationCartSelectedDeliveryOptionsUpdateArgs = {
|
|
5631
|
-
cartId: Scalars['ID']['input'];
|
|
5632
|
-
selectedDeliveryOptions: Array<CartSelectedDeliveryOptionInput>;
|
|
5633
|
-
};
|
|
5634
|
-
|
|
5635
|
-
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5636
|
-
export type MutationCartSubmitForCompletionArgs = {
|
|
5637
|
-
attemptToken: Scalars['String']['input'];
|
|
5638
|
-
cartId: Scalars['ID']['input'];
|
|
5639
|
-
};
|
|
5640
|
-
|
|
5641
|
-
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5642
|
-
export type MutationCheckoutAttributesUpdateV2Args = {
|
|
5643
|
-
checkoutId: Scalars['ID']['input'];
|
|
5644
|
-
input: CheckoutAttributesUpdateV2Input;
|
|
5645
|
-
};
|
|
5646
|
-
|
|
5647
|
-
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5648
|
-
export type MutationCheckoutCompleteFreeArgs = {
|
|
5649
|
-
checkoutId: Scalars['ID']['input'];
|
|
5650
|
-
};
|
|
5651
|
-
|
|
5652
|
-
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5653
|
-
export type MutationCheckoutCompleteWithCreditCardV2Args = {
|
|
5654
|
-
checkoutId: Scalars['ID']['input'];
|
|
5655
|
-
payment: CreditCardPaymentInputV2;
|
|
5656
|
-
};
|
|
5657
|
-
|
|
5658
|
-
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5659
|
-
export type MutationCheckoutCompleteWithTokenizedPaymentV3Args = {
|
|
5660
|
-
checkoutId: Scalars['ID']['input'];
|
|
5661
|
-
payment: TokenizedPaymentInputV3;
|
|
4942
|
+
export type MutationCartAttributesUpdateArgs = {
|
|
4943
|
+
attributes: Array<AttributeInput>;
|
|
4944
|
+
cartId: Scalars['ID']['input'];
|
|
5662
4945
|
};
|
|
5663
4946
|
|
|
5664
4947
|
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5665
|
-
export type
|
|
5666
|
-
|
|
5667
|
-
|
|
4948
|
+
export type MutationCartBillingAddressUpdateArgs = {
|
|
4949
|
+
billingAddress?: InputMaybe<MailingAddressInput>;
|
|
4950
|
+
cartId: Scalars['ID']['input'];
|
|
5668
4951
|
};
|
|
5669
4952
|
|
|
5670
4953
|
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5671
|
-
export type
|
|
5672
|
-
|
|
5673
|
-
|
|
4954
|
+
export type MutationCartBuyerIdentityUpdateArgs = {
|
|
4955
|
+
buyerIdentity: CartBuyerIdentityInput;
|
|
4956
|
+
cartId: Scalars['ID']['input'];
|
|
5674
4957
|
};
|
|
5675
4958
|
|
|
5676
4959
|
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5677
|
-
export type
|
|
5678
|
-
|
|
4960
|
+
export type MutationCartCreateArgs = {
|
|
4961
|
+
input?: InputMaybe<CartInput>;
|
|
5679
4962
|
};
|
|
5680
4963
|
|
|
5681
4964
|
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5682
|
-
export type
|
|
5683
|
-
|
|
5684
|
-
|
|
4965
|
+
export type MutationCartDiscountCodesUpdateArgs = {
|
|
4966
|
+
cartId: Scalars['ID']['input'];
|
|
4967
|
+
discountCodes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
5685
4968
|
};
|
|
5686
4969
|
|
|
5687
4970
|
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5688
|
-
export type
|
|
5689
|
-
|
|
4971
|
+
export type MutationCartGiftCardCodesUpdateArgs = {
|
|
4972
|
+
cartId: Scalars['ID']['input'];
|
|
4973
|
+
giftCardCodes: Array<Scalars['String']['input']>;
|
|
5690
4974
|
};
|
|
5691
4975
|
|
|
5692
4976
|
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5693
|
-
export type
|
|
5694
|
-
|
|
5695
|
-
|
|
4977
|
+
export type MutationCartLinesAddArgs = {
|
|
4978
|
+
cartId: Scalars['ID']['input'];
|
|
4979
|
+
lines: Array<CartLineInput>;
|
|
5696
4980
|
};
|
|
5697
4981
|
|
|
5698
4982
|
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5699
|
-
export type
|
|
5700
|
-
|
|
5701
|
-
|
|
4983
|
+
export type MutationCartLinesRemoveArgs = {
|
|
4984
|
+
cartId: Scalars['ID']['input'];
|
|
4985
|
+
lineIds: Array<Scalars['ID']['input']>;
|
|
5702
4986
|
};
|
|
5703
4987
|
|
|
5704
4988
|
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5705
|
-
export type
|
|
5706
|
-
|
|
5707
|
-
|
|
4989
|
+
export type MutationCartLinesUpdateArgs = {
|
|
4990
|
+
cartId: Scalars['ID']['input'];
|
|
4991
|
+
lines: Array<CartLineUpdateInput>;
|
|
5708
4992
|
};
|
|
5709
4993
|
|
|
5710
4994
|
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5711
|
-
export type
|
|
5712
|
-
|
|
5713
|
-
lineItems: Array<CheckoutLineItemInput>;
|
|
4995
|
+
export type MutationCartMetafieldDeleteArgs = {
|
|
4996
|
+
input: CartMetafieldDeleteInput;
|
|
5714
4997
|
};
|
|
5715
4998
|
|
|
5716
4999
|
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5717
|
-
export type
|
|
5718
|
-
|
|
5719
|
-
lineItemIds: Array<Scalars['ID']['input']>;
|
|
5000
|
+
export type MutationCartMetafieldsSetArgs = {
|
|
5001
|
+
metafields: Array<CartMetafieldsSetInput>;
|
|
5720
5002
|
};
|
|
5721
5003
|
|
|
5722
5004
|
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5723
|
-
export type
|
|
5724
|
-
|
|
5725
|
-
|
|
5005
|
+
export type MutationCartNoteUpdateArgs = {
|
|
5006
|
+
cartId: Scalars['ID']['input'];
|
|
5007
|
+
note: Scalars['String']['input'];
|
|
5726
5008
|
};
|
|
5727
5009
|
|
|
5728
5010
|
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5729
|
-
export type
|
|
5730
|
-
|
|
5731
|
-
|
|
5011
|
+
export type MutationCartPaymentUpdateArgs = {
|
|
5012
|
+
cartId: Scalars['ID']['input'];
|
|
5013
|
+
payment: CartPaymentInput;
|
|
5732
5014
|
};
|
|
5733
5015
|
|
|
5734
5016
|
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5735
|
-
export type
|
|
5736
|
-
|
|
5737
|
-
|
|
5017
|
+
export type MutationCartSelectedDeliveryOptionsUpdateArgs = {
|
|
5018
|
+
cartId: Scalars['ID']['input'];
|
|
5019
|
+
selectedDeliveryOptions: Array<CartSelectedDeliveryOptionInput>;
|
|
5738
5020
|
};
|
|
5739
5021
|
|
|
5740
5022
|
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5741
|
-
export type
|
|
5742
|
-
|
|
5743
|
-
|
|
5023
|
+
export type MutationCartSubmitForCompletionArgs = {
|
|
5024
|
+
attemptToken: Scalars['String']['input'];
|
|
5025
|
+
cartId: Scalars['ID']['input'];
|
|
5744
5026
|
};
|
|
5745
5027
|
|
|
5746
5028
|
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
@@ -5828,6 +5110,20 @@ export type MutationCustomerUpdateArgs = {
|
|
|
5828
5110
|
customerAccessToken: Scalars['String']['input'];
|
|
5829
5111
|
};
|
|
5830
5112
|
|
|
5113
|
+
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5114
|
+
export type MutationShopPayPaymentRequestSessionCreateArgs = {
|
|
5115
|
+
paymentRequest: ShopPayPaymentRequestInput;
|
|
5116
|
+
sourceIdentifier: Scalars['String']['input'];
|
|
5117
|
+
};
|
|
5118
|
+
|
|
5119
|
+
/** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
|
|
5120
|
+
export type MutationShopPayPaymentRequestSessionSubmitArgs = {
|
|
5121
|
+
idempotencyKey: Scalars['String']['input'];
|
|
5122
|
+
orderName?: InputMaybe<Scalars['String']['input']>;
|
|
5123
|
+
paymentRequest: ShopPayPaymentRequestInput;
|
|
5124
|
+
token: Scalars['String']['input'];
|
|
5125
|
+
};
|
|
5126
|
+
|
|
5831
5127
|
/**
|
|
5832
5128
|
* An object with an ID field to support global identification, in accordance with the
|
|
5833
5129
|
* [Relay specification](https://relay.dev/graphql/objectidentification.htm#sec-Node-Interface).
|
|
@@ -5864,6 +5160,8 @@ export type Order = HasMetafields &
|
|
|
5864
5160
|
currentTotalDuties?: Maybe<MoneyV2>;
|
|
5865
5161
|
/** The total amount of the order, including duties, taxes and discounts, minus amounts for line items that have been removed. */
|
|
5866
5162
|
currentTotalPrice: MoneyV2;
|
|
5163
|
+
/** The total cost of shipping, excluding shipping lines that have been refunded or removed. Taxes aren't included unless the order is a taxes-included order. */
|
|
5164
|
+
currentTotalShippingPrice: MoneyV2;
|
|
5867
5165
|
/** The total of all taxes applied to the order, excluding taxes for returned line items. */
|
|
5868
5166
|
currentTotalTax: MoneyV2;
|
|
5869
5167
|
/** A list of the custom attributes added to the order. */
|
|
@@ -6238,43 +5536,6 @@ export type PageSortKeys =
|
|
|
6238
5536
|
/** Sort by the `updated_at` value. */
|
|
6239
5537
|
| 'UPDATED_AT';
|
|
6240
5538
|
|
|
6241
|
-
/** A payment applied to a checkout. */
|
|
6242
|
-
export type Payment = Node & {
|
|
6243
|
-
__typename?: 'Payment';
|
|
6244
|
-
/** The amount of the payment. */
|
|
6245
|
-
amount: MoneyV2;
|
|
6246
|
-
/**
|
|
6247
|
-
* The amount of the payment.
|
|
6248
|
-
* @deprecated Use `amount` instead.
|
|
6249
|
-
*/
|
|
6250
|
-
amountV2: MoneyV2;
|
|
6251
|
-
/** The billing address for the payment. */
|
|
6252
|
-
billingAddress?: Maybe<MailingAddress>;
|
|
6253
|
-
/** The checkout to which the payment belongs. */
|
|
6254
|
-
checkout: Checkout;
|
|
6255
|
-
/** The credit card used for the payment in the case of direct payments. */
|
|
6256
|
-
creditCard?: Maybe<CreditCard>;
|
|
6257
|
-
/** A message describing a processing error during asynchronous processing. */
|
|
6258
|
-
errorMessage?: Maybe<Scalars['String']['output']>;
|
|
6259
|
-
/** A globally-unique ID. */
|
|
6260
|
-
id: Scalars['ID']['output'];
|
|
6261
|
-
/**
|
|
6262
|
-
* A client-side generated token to identify a payment and perform idempotent operations.
|
|
6263
|
-
* For more information, refer to
|
|
6264
|
-
* [Idempotent requests](https://shopify.dev/api/usage/idempotent-requests).
|
|
6265
|
-
*
|
|
6266
|
-
*/
|
|
6267
|
-
idempotencyKey?: Maybe<Scalars['String']['output']>;
|
|
6268
|
-
/** The URL where the customer needs to be redirected so they can complete the 3D Secure payment flow. */
|
|
6269
|
-
nextActionUrl?: Maybe<Scalars['URL']['output']>;
|
|
6270
|
-
/** Whether the payment is still processing asynchronously. */
|
|
6271
|
-
ready: Scalars['Boolean']['output'];
|
|
6272
|
-
/** A flag to indicate if the payment is to be done in test mode for gateways that support it. */
|
|
6273
|
-
test: Scalars['Boolean']['output'];
|
|
6274
|
-
/** The actual transaction recorded by Shopify after having processed the payment with the gateway. */
|
|
6275
|
-
transaction?: Maybe<Transaction>;
|
|
6276
|
-
};
|
|
6277
|
-
|
|
6278
5539
|
/** Settings related to payments. */
|
|
6279
5540
|
export type PaymentSettings = {
|
|
6280
5541
|
__typename?: 'PaymentSettings';
|
|
@@ -6298,19 +5559,6 @@ export type PaymentSettings = {
|
|
|
6298
5559
|
supportedDigitalWallets: Array<DigitalWallet>;
|
|
6299
5560
|
};
|
|
6300
5561
|
|
|
6301
|
-
/** The valid values for the types of payment token. */
|
|
6302
|
-
export type PaymentTokenType =
|
|
6303
|
-
/** Apple Pay token type. */
|
|
6304
|
-
| 'APPLE_PAY'
|
|
6305
|
-
/** Google Pay token type. */
|
|
6306
|
-
| 'GOOGLE_PAY'
|
|
6307
|
-
/** Shopify Pay token type. */
|
|
6308
|
-
| 'SHOPIFY_PAY'
|
|
6309
|
-
/** Stripe token type. */
|
|
6310
|
-
| 'STRIPE_VAULT_TOKEN'
|
|
6311
|
-
/** Vault payment token type. */
|
|
6312
|
-
| 'VAULT';
|
|
6313
|
-
|
|
6314
5562
|
/** Decides the distribution of results. */
|
|
6315
5563
|
export type PredictiveSearchLimitScope =
|
|
6316
5564
|
/** Return results up to limit across all types. */
|
|
@@ -6350,6 +5598,15 @@ export type PredictiveSearchType =
|
|
|
6350
5598
|
/** Returns matching query strings. */
|
|
6351
5599
|
| 'QUERY';
|
|
6352
5600
|
|
|
5601
|
+
/** The preferred delivery methods such as shipping, local pickup or through pickup points. */
|
|
5602
|
+
export type PreferenceDeliveryMethodType =
|
|
5603
|
+
/** A delivery method used to let buyers collect purchases at designated locations like parcel lockers. */
|
|
5604
|
+
| 'PICKUP_POINT'
|
|
5605
|
+
/** A delivery method used to let buyers receive items directly from a specific location within an area. */
|
|
5606
|
+
| 'PICK_UP'
|
|
5607
|
+
/** A delivery method used to send items directly to a buyer’s specified address. */
|
|
5608
|
+
| 'SHIPPING';
|
|
5609
|
+
|
|
6353
5610
|
/**
|
|
6354
5611
|
* The input fields for a filter used to view a subset of products in a collection matching a specific price range.
|
|
6355
5612
|
*
|
|
@@ -6721,10 +5978,41 @@ export type ProductOption = Node & {
|
|
|
6721
5978
|
id: Scalars['ID']['output'];
|
|
6722
5979
|
/** The product option’s name. */
|
|
6723
5980
|
name: Scalars['String']['output'];
|
|
6724
|
-
/** The corresponding value to the product option
|
|
5981
|
+
/** The corresponding option value to the product option. */
|
|
5982
|
+
optionValues: Array<ProductOptionValue>;
|
|
5983
|
+
/**
|
|
5984
|
+
* The corresponding value to the product option name.
|
|
5985
|
+
* @deprecated Use `optionValues` instead.
|
|
5986
|
+
*/
|
|
6725
5987
|
values: Array<Scalars['String']['output']>;
|
|
6726
5988
|
};
|
|
6727
5989
|
|
|
5990
|
+
/**
|
|
5991
|
+
* The product option value names. For example, "Red", "Blue", and "Green" for a "Color" option.
|
|
5992
|
+
*
|
|
5993
|
+
*/
|
|
5994
|
+
export type ProductOptionValue = Node & {
|
|
5995
|
+
__typename?: 'ProductOptionValue';
|
|
5996
|
+
/** A globally-unique ID. */
|
|
5997
|
+
id: Scalars['ID']['output'];
|
|
5998
|
+
/** The name of the product option value. */
|
|
5999
|
+
name: Scalars['String']['output'];
|
|
6000
|
+
/** The swatch of the product option value. */
|
|
6001
|
+
swatch?: Maybe<ProductOptionValueSwatch>;
|
|
6002
|
+
};
|
|
6003
|
+
|
|
6004
|
+
/**
|
|
6005
|
+
* The product option value swatch.
|
|
6006
|
+
*
|
|
6007
|
+
*/
|
|
6008
|
+
export type ProductOptionValueSwatch = {
|
|
6009
|
+
__typename?: 'ProductOptionValueSwatch';
|
|
6010
|
+
/** The swatch color. */
|
|
6011
|
+
color?: Maybe<Scalars['Color']['output']>;
|
|
6012
|
+
/** The swatch image. */
|
|
6013
|
+
image?: Maybe<ExternalVideo | MediaImage | Model3d | Video>;
|
|
6014
|
+
};
|
|
6015
|
+
|
|
6728
6016
|
/** The price range of the product. */
|
|
6729
6017
|
export type ProductPriceRange = {
|
|
6730
6018
|
__typename?: 'ProductPriceRange';
|
|
@@ -6788,8 +6076,18 @@ export type ProductVariant = HasMetafields &
|
|
|
6788
6076
|
* @deprecated Use `compareAtPrice` instead.
|
|
6789
6077
|
*/
|
|
6790
6078
|
compareAtPriceV2?: Maybe<MoneyV2>;
|
|
6079
|
+
/**
|
|
6080
|
+
* List of bundles components included in the variant considering only fixed bundles.
|
|
6081
|
+
*
|
|
6082
|
+
*/
|
|
6083
|
+
components: ProductVariantComponentConnection;
|
|
6791
6084
|
/** Whether a product is out of stock but still available for purchase (used for backorders). */
|
|
6792
6085
|
currentlyNotInStock: Scalars['Boolean']['output'];
|
|
6086
|
+
/**
|
|
6087
|
+
* List of bundles that include this variant considering only fixed bundles.
|
|
6088
|
+
*
|
|
6089
|
+
*/
|
|
6090
|
+
groupedBy: ProductVariantConnection;
|
|
6793
6091
|
/** A globally-unique ID. */
|
|
6794
6092
|
id: Scalars['ID']['output'];
|
|
6795
6093
|
/** Image associated with the product variant. This field falls back to the product image if no image is available. */
|
|
@@ -6813,6 +6111,12 @@ export type ProductVariant = HasMetafields &
|
|
|
6813
6111
|
quantityPriceBreaks: QuantityPriceBreakConnection;
|
|
6814
6112
|
/** The quantity rule for the product variant in a given context. */
|
|
6815
6113
|
quantityRule: QuantityRule;
|
|
6114
|
+
/**
|
|
6115
|
+
* Whether a product variant requires components. The default value is `false`.
|
|
6116
|
+
* If `true`, then the product variant can only be purchased as a parent bundle with components.
|
|
6117
|
+
*
|
|
6118
|
+
*/
|
|
6119
|
+
requiresComponents: Scalars['Boolean']['output'];
|
|
6816
6120
|
/** Whether a customer needs to provide a shipping address when placing an order for the product variant. */
|
|
6817
6121
|
requiresShipping: Scalars['Boolean']['output'];
|
|
6818
6122
|
/** List of product options applied to the variant. */
|
|
@@ -6837,6 +6141,28 @@ export type ProductVariant = HasMetafields &
|
|
|
6837
6141
|
weightUnit: WeightUnit;
|
|
6838
6142
|
};
|
|
6839
6143
|
|
|
6144
|
+
/**
|
|
6145
|
+
* A product variant represents a different version of a product, such as differing sizes or differing colors.
|
|
6146
|
+
*
|
|
6147
|
+
*/
|
|
6148
|
+
export type ProductVariantComponentsArgs = {
|
|
6149
|
+
after?: InputMaybe<Scalars['String']['input']>;
|
|
6150
|
+
before?: InputMaybe<Scalars['String']['input']>;
|
|
6151
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
6152
|
+
last?: InputMaybe<Scalars['Int']['input']>;
|
|
6153
|
+
};
|
|
6154
|
+
|
|
6155
|
+
/**
|
|
6156
|
+
* A product variant represents a different version of a product, such as differing sizes or differing colors.
|
|
6157
|
+
*
|
|
6158
|
+
*/
|
|
6159
|
+
export type ProductVariantGroupedByArgs = {
|
|
6160
|
+
after?: InputMaybe<Scalars['String']['input']>;
|
|
6161
|
+
before?: InputMaybe<Scalars['String']['input']>;
|
|
6162
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
6163
|
+
last?: InputMaybe<Scalars['Int']['input']>;
|
|
6164
|
+
};
|
|
6165
|
+
|
|
6840
6166
|
/**
|
|
6841
6167
|
* A product variant represents a different version of a product, such as differing sizes or differing colors.
|
|
6842
6168
|
*
|
|
@@ -6890,6 +6216,44 @@ export type ProductVariantStoreAvailabilityArgs = {
|
|
|
6890
6216
|
reverse?: InputMaybe<Scalars['Boolean']['input']>;
|
|
6891
6217
|
};
|
|
6892
6218
|
|
|
6219
|
+
/**
|
|
6220
|
+
* Represents a component of a bundle variant.
|
|
6221
|
+
*
|
|
6222
|
+
*/
|
|
6223
|
+
export type ProductVariantComponent = {
|
|
6224
|
+
__typename?: 'ProductVariantComponent';
|
|
6225
|
+
/** The product variant object that the component belongs to. */
|
|
6226
|
+
productVariant: ProductVariant;
|
|
6227
|
+
/** The quantity of component present in the bundle. */
|
|
6228
|
+
quantity: Scalars['Int']['output'];
|
|
6229
|
+
};
|
|
6230
|
+
|
|
6231
|
+
/**
|
|
6232
|
+
* An auto-generated type for paginating through multiple ProductVariantComponents.
|
|
6233
|
+
*
|
|
6234
|
+
*/
|
|
6235
|
+
export type ProductVariantComponentConnection = {
|
|
6236
|
+
__typename?: 'ProductVariantComponentConnection';
|
|
6237
|
+
/** A list of edges. */
|
|
6238
|
+
edges: Array<ProductVariantComponentEdge>;
|
|
6239
|
+
/** A list of the nodes contained in ProductVariantComponentEdge. */
|
|
6240
|
+
nodes: Array<ProductVariantComponent>;
|
|
6241
|
+
/** Information to aid in pagination. */
|
|
6242
|
+
pageInfo: PageInfo;
|
|
6243
|
+
};
|
|
6244
|
+
|
|
6245
|
+
/**
|
|
6246
|
+
* An auto-generated type which holds one ProductVariantComponent and a cursor during pagination.
|
|
6247
|
+
*
|
|
6248
|
+
*/
|
|
6249
|
+
export type ProductVariantComponentEdge = {
|
|
6250
|
+
__typename?: 'ProductVariantComponentEdge';
|
|
6251
|
+
/** A cursor for use in pagination. */
|
|
6252
|
+
cursor: Scalars['String']['output'];
|
|
6253
|
+
/** The item at the end of ProductVariantComponentEdge. */
|
|
6254
|
+
node: ProductVariantComponent;
|
|
6255
|
+
};
|
|
6256
|
+
|
|
6893
6257
|
/**
|
|
6894
6258
|
* An auto-generated type for paginating through multiple ProductVariants.
|
|
6895
6259
|
*
|
|
@@ -7083,8 +6447,6 @@ export type QueryRoot = {
|
|
|
7083
6447
|
| Blog
|
|
7084
6448
|
| Cart
|
|
7085
6449
|
| CartLine
|
|
7086
|
-
| Checkout
|
|
7087
|
-
| CheckoutLineItem
|
|
7088
6450
|
| Collection
|
|
7089
6451
|
| Comment
|
|
7090
6452
|
| Company
|
|
@@ -7105,9 +6467,9 @@ export type QueryRoot = {
|
|
|
7105
6467
|
| Model3d
|
|
7106
6468
|
| Order
|
|
7107
6469
|
| Page
|
|
7108
|
-
| Payment
|
|
7109
6470
|
| Product
|
|
7110
6471
|
| ProductOption
|
|
6472
|
+
| ProductOptionValue
|
|
7111
6473
|
| ProductVariant
|
|
7112
6474
|
| Shop
|
|
7113
6475
|
| ShopPolicy
|
|
@@ -7122,8 +6484,6 @@ export type QueryRoot = {
|
|
|
7122
6484
|
| Blog
|
|
7123
6485
|
| Cart
|
|
7124
6486
|
| CartLine
|
|
7125
|
-
| Checkout
|
|
7126
|
-
| CheckoutLineItem
|
|
7127
6487
|
| Collection
|
|
7128
6488
|
| Comment
|
|
7129
6489
|
| Company
|
|
@@ -7144,9 +6504,9 @@ export type QueryRoot = {
|
|
|
7144
6504
|
| Model3d
|
|
7145
6505
|
| Order
|
|
7146
6506
|
| Page
|
|
7147
|
-
| Payment
|
|
7148
6507
|
| Product
|
|
7149
6508
|
| ProductOption
|
|
6509
|
+
| ProductOptionValue
|
|
7150
6510
|
| ProductVariant
|
|
7151
6511
|
| Shop
|
|
7152
6512
|
| ShopPolicy
|
|
@@ -7363,7 +6723,8 @@ export type QueryRootProductByHandleArgs = {
|
|
|
7363
6723
|
/** The schema’s entry-point for queries. This acts as the public, top-level API from which all queries must start. */
|
|
7364
6724
|
export type QueryRootProductRecommendationsArgs = {
|
|
7365
6725
|
intent?: InputMaybe<ProductRecommendationIntent>;
|
|
7366
|
-
|
|
6726
|
+
productHandle?: InputMaybe<Scalars['String']['input']>;
|
|
6727
|
+
productId?: InputMaybe<Scalars['ID']['input']>;
|
|
7367
6728
|
};
|
|
7368
6729
|
|
|
7369
6730
|
/** The schema’s entry-point for queries. This acts as the public, top-level API from which all queries must start. */
|
|
@@ -7562,14 +6923,22 @@ export type SelectedOptionInput = {
|
|
|
7562
6923
|
};
|
|
7563
6924
|
|
|
7564
6925
|
/** Represents how products and variants can be sold and purchased. */
|
|
7565
|
-
export type SellingPlan = {
|
|
6926
|
+
export type SellingPlan = HasMetafields & {
|
|
7566
6927
|
__typename?: 'SellingPlan';
|
|
6928
|
+
/** The billing policy for the selling plan. */
|
|
6929
|
+
billingPolicy?: Maybe<SellingPlanBillingPolicy>;
|
|
7567
6930
|
/** The initial payment due for the purchase. */
|
|
7568
6931
|
checkoutCharge: SellingPlanCheckoutCharge;
|
|
6932
|
+
/** The delivery policy for the selling plan. */
|
|
6933
|
+
deliveryPolicy?: Maybe<SellingPlanDeliveryPolicy>;
|
|
7569
6934
|
/** The description of the selling plan. */
|
|
7570
6935
|
description?: Maybe<Scalars['String']['output']>;
|
|
7571
6936
|
/** A globally-unique ID. */
|
|
7572
6937
|
id: Scalars['ID']['output'];
|
|
6938
|
+
/** Returns a metafield found by namespace and key. */
|
|
6939
|
+
metafield?: Maybe<Metafield>;
|
|
6940
|
+
/** The metafields associated with the resource matching the supplied list of namespaces and keys. */
|
|
6941
|
+
metafields: Array<Maybe<Metafield>>;
|
|
7573
6942
|
/** The name of the selling plan. For example, '6 weeks of prepaid granola, delivered weekly'. */
|
|
7574
6943
|
name: Scalars['String']['output'];
|
|
7575
6944
|
/** The selling plan options available in the drop-down list in the storefront. For example, 'Delivery every week' or 'Delivery every 2 weeks' specifies the delivery frequency options for the product. Individual selling plans contribute their options to the associated selling plan group. For example, a selling plan group might have an option called `option1: Delivery every`. One selling plan in that group could contribute `option1: 2 weeks` with the pricing for that option, and another selling plan could contribute `option1: 4 weeks`, with different pricing. */
|
|
@@ -7580,6 +6949,17 @@ export type SellingPlan = {
|
|
|
7580
6949
|
recurringDeliveries: Scalars['Boolean']['output'];
|
|
7581
6950
|
};
|
|
7582
6951
|
|
|
6952
|
+
/** Represents how products and variants can be sold and purchased. */
|
|
6953
|
+
export type SellingPlanMetafieldArgs = {
|
|
6954
|
+
key: Scalars['String']['input'];
|
|
6955
|
+
namespace?: InputMaybe<Scalars['String']['input']>;
|
|
6956
|
+
};
|
|
6957
|
+
|
|
6958
|
+
/** Represents how products and variants can be sold and purchased. */
|
|
6959
|
+
export type SellingPlanMetafieldsArgs = {
|
|
6960
|
+
identifiers: Array<HasMetafieldsIdentifier>;
|
|
6961
|
+
};
|
|
6962
|
+
|
|
7583
6963
|
/** Represents an association between a variant and a selling plan. Selling plan allocations describe the options offered for each variant, and the price of the variant when purchased with a selling plan. */
|
|
7584
6964
|
export type SellingPlanAllocation = {
|
|
7585
6965
|
__typename?: 'SellingPlanAllocation';
|
|
@@ -7632,6 +7012,9 @@ export type SellingPlanAllocationPriceAdjustment = {
|
|
|
7632
7012
|
unitPrice?: Maybe<MoneyV2>;
|
|
7633
7013
|
};
|
|
7634
7014
|
|
|
7015
|
+
/** The selling plan billing policy. */
|
|
7016
|
+
export type SellingPlanBillingPolicy = SellingPlanRecurringBillingPolicy;
|
|
7017
|
+
|
|
7635
7018
|
/** The initial payment due for the purchase. */
|
|
7636
7019
|
export type SellingPlanCheckoutCharge = {
|
|
7637
7020
|
__typename?: 'SellingPlanCheckoutCharge';
|
|
@@ -7674,6 +7057,9 @@ export type SellingPlanConnection = {
|
|
|
7674
7057
|
pageInfo: PageInfo;
|
|
7675
7058
|
};
|
|
7676
7059
|
|
|
7060
|
+
/** The selling plan delivery policy. */
|
|
7061
|
+
export type SellingPlanDeliveryPolicy = SellingPlanRecurringDeliveryPolicy;
|
|
7062
|
+
|
|
7677
7063
|
/**
|
|
7678
7064
|
* An auto-generated type which holds one SellingPlan and a cursor during pagination.
|
|
7679
7065
|
*
|
|
@@ -7761,6 +7147,17 @@ export type SellingPlanGroupOption = {
|
|
|
7761
7147
|
values: Array<Scalars['String']['output']>;
|
|
7762
7148
|
};
|
|
7763
7149
|
|
|
7150
|
+
/** Represents a valid selling plan interval. */
|
|
7151
|
+
export type SellingPlanInterval =
|
|
7152
|
+
/** Day interval. */
|
|
7153
|
+
| 'DAY'
|
|
7154
|
+
/** Month interval. */
|
|
7155
|
+
| 'MONTH'
|
|
7156
|
+
/** Week interval. */
|
|
7157
|
+
| 'WEEK'
|
|
7158
|
+
/** Year interval. */
|
|
7159
|
+
| 'YEAR';
|
|
7160
|
+
|
|
7764
7161
|
/** An option provided by a Selling Plan. */
|
|
7765
7162
|
export type SellingPlanOption = {
|
|
7766
7163
|
__typename?: 'SellingPlanOption';
|
|
@@ -7792,20 +7189,22 @@ export type SellingPlanPriceAdjustmentValue =
|
|
|
7792
7189
|
| SellingPlanFixedPriceAdjustment
|
|
7793
7190
|
| SellingPlanPercentagePriceAdjustment;
|
|
7794
7191
|
|
|
7795
|
-
/**
|
|
7796
|
-
export type
|
|
7797
|
-
__typename?: '
|
|
7798
|
-
/**
|
|
7799
|
-
|
|
7800
|
-
/**
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
/**
|
|
7808
|
-
|
|
7192
|
+
/** The recurring billing policy for the selling plan. */
|
|
7193
|
+
export type SellingPlanRecurringBillingPolicy = {
|
|
7194
|
+
__typename?: 'SellingPlanRecurringBillingPolicy';
|
|
7195
|
+
/** The billing frequency, it can be either: day, week, month or year. */
|
|
7196
|
+
interval: SellingPlanInterval;
|
|
7197
|
+
/** The number of intervals between billings. */
|
|
7198
|
+
intervalCount: Scalars['Int']['output'];
|
|
7199
|
+
};
|
|
7200
|
+
|
|
7201
|
+
/** The recurring delivery policy for the selling plan. */
|
|
7202
|
+
export type SellingPlanRecurringDeliveryPolicy = {
|
|
7203
|
+
__typename?: 'SellingPlanRecurringDeliveryPolicy';
|
|
7204
|
+
/** The delivery frequency, it can be either: day, week, month or year. */
|
|
7205
|
+
interval: SellingPlanInterval;
|
|
7206
|
+
/** The number of intervals between deliveries. */
|
|
7207
|
+
intervalCount: Scalars['Int']['output'];
|
|
7809
7208
|
};
|
|
7810
7209
|
|
|
7811
7210
|
/** Shop represents a collection of the general settings and information about the shop. */
|
|
@@ -7855,6 +7254,341 @@ export type ShopMetafieldsArgs = {
|
|
|
7855
7254
|
identifiers: Array<HasMetafieldsIdentifier>;
|
|
7856
7255
|
};
|
|
7857
7256
|
|
|
7257
|
+
/** Represents a Shop Pay payment request. */
|
|
7258
|
+
export type ShopPayPaymentRequest = {
|
|
7259
|
+
__typename?: 'ShopPayPaymentRequest';
|
|
7260
|
+
/** The delivery methods for the payment request. */
|
|
7261
|
+
deliveryMethods: Array<ShopPayPaymentRequestDeliveryMethod>;
|
|
7262
|
+
/** The discount codes for the payment request. */
|
|
7263
|
+
discountCodes: Array<Scalars['String']['output']>;
|
|
7264
|
+
/** The discounts for the payment request order. */
|
|
7265
|
+
discounts?: Maybe<Array<ShopPayPaymentRequestDiscount>>;
|
|
7266
|
+
/** The line items for the payment request. */
|
|
7267
|
+
lineItems: Array<ShopPayPaymentRequestLineItem>;
|
|
7268
|
+
/** The locale for the payment request. */
|
|
7269
|
+
locale: Scalars['String']['output'];
|
|
7270
|
+
/** The presentment currency for the payment request. */
|
|
7271
|
+
presentmentCurrency: CurrencyCode;
|
|
7272
|
+
/** The delivery method type for the payment request. */
|
|
7273
|
+
selectedDeliveryMethodType: ShopPayPaymentRequestDeliveryMethodType;
|
|
7274
|
+
/** The shipping address for the payment request. */
|
|
7275
|
+
shippingAddress?: Maybe<ShopPayPaymentRequestContactField>;
|
|
7276
|
+
/** The shipping lines for the payment request. */
|
|
7277
|
+
shippingLines: Array<ShopPayPaymentRequestShippingLine>;
|
|
7278
|
+
/** The subtotal amount for the payment request. */
|
|
7279
|
+
subtotal: MoneyV2;
|
|
7280
|
+
/** The total amount for the payment request. */
|
|
7281
|
+
total: MoneyV2;
|
|
7282
|
+
/** The total shipping price for the payment request. */
|
|
7283
|
+
totalShippingPrice?: Maybe<ShopPayPaymentRequestTotalShippingPrice>;
|
|
7284
|
+
/** The total tax for the payment request. */
|
|
7285
|
+
totalTax?: Maybe<MoneyV2>;
|
|
7286
|
+
};
|
|
7287
|
+
|
|
7288
|
+
/** Represents a contact field for a Shop Pay payment request. */
|
|
7289
|
+
export type ShopPayPaymentRequestContactField = {
|
|
7290
|
+
__typename?: 'ShopPayPaymentRequestContactField';
|
|
7291
|
+
/** The first address line of the contact field. */
|
|
7292
|
+
address1: Scalars['String']['output'];
|
|
7293
|
+
/** The second address line of the contact field. */
|
|
7294
|
+
address2?: Maybe<Scalars['String']['output']>;
|
|
7295
|
+
/** The city of the contact field. */
|
|
7296
|
+
city: Scalars['String']['output'];
|
|
7297
|
+
/** The company name of the contact field. */
|
|
7298
|
+
companyName?: Maybe<Scalars['String']['output']>;
|
|
7299
|
+
/** The country of the contact field. */
|
|
7300
|
+
countryCode: Scalars['String']['output'];
|
|
7301
|
+
/** The email of the contact field. */
|
|
7302
|
+
email?: Maybe<Scalars['String']['output']>;
|
|
7303
|
+
/** The first name of the contact field. */
|
|
7304
|
+
firstName: Scalars['String']['output'];
|
|
7305
|
+
/** The first name of the contact field. */
|
|
7306
|
+
lastName: Scalars['String']['output'];
|
|
7307
|
+
/** The phone number of the contact field. */
|
|
7308
|
+
phone?: Maybe<Scalars['String']['output']>;
|
|
7309
|
+
/** The postal code of the contact field. */
|
|
7310
|
+
postalCode?: Maybe<Scalars['String']['output']>;
|
|
7311
|
+
/** The province of the contact field. */
|
|
7312
|
+
provinceCode?: Maybe<Scalars['String']['output']>;
|
|
7313
|
+
};
|
|
7314
|
+
|
|
7315
|
+
/** Represents a delivery method for a Shop Pay payment request. */
|
|
7316
|
+
export type ShopPayPaymentRequestDeliveryMethod = {
|
|
7317
|
+
__typename?: 'ShopPayPaymentRequestDeliveryMethod';
|
|
7318
|
+
/** The amount for the delivery method. */
|
|
7319
|
+
amount: MoneyV2;
|
|
7320
|
+
/** The code of the delivery method. */
|
|
7321
|
+
code: Scalars['String']['output'];
|
|
7322
|
+
/** The detail about when the delivery may be expected. */
|
|
7323
|
+
deliveryExpectationLabel?: Maybe<Scalars['String']['output']>;
|
|
7324
|
+
/** The detail of the delivery method. */
|
|
7325
|
+
detail?: Maybe<Scalars['String']['output']>;
|
|
7326
|
+
/** The label of the delivery method. */
|
|
7327
|
+
label: Scalars['String']['output'];
|
|
7328
|
+
/** The maximum delivery date for the delivery method. */
|
|
7329
|
+
maxDeliveryDate?: Maybe<Scalars['ISO8601DateTime']['output']>;
|
|
7330
|
+
/** The minimum delivery date for the delivery method. */
|
|
7331
|
+
minDeliveryDate?: Maybe<Scalars['ISO8601DateTime']['output']>;
|
|
7332
|
+
};
|
|
7333
|
+
|
|
7334
|
+
/** The input fields to create a delivery method for a Shop Pay payment request. */
|
|
7335
|
+
export type ShopPayPaymentRequestDeliveryMethodInput = {
|
|
7336
|
+
/** The amount for the delivery method. */
|
|
7337
|
+
amount?: InputMaybe<MoneyInput>;
|
|
7338
|
+
/** The code of the delivery method. */
|
|
7339
|
+
code?: InputMaybe<Scalars['String']['input']>;
|
|
7340
|
+
/** The detail about when the delivery may be expected. */
|
|
7341
|
+
deliveryExpectationLabel?: InputMaybe<Scalars['String']['input']>;
|
|
7342
|
+
/** The detail of the delivery method. */
|
|
7343
|
+
detail?: InputMaybe<Scalars['String']['input']>;
|
|
7344
|
+
/** The label of the delivery method. */
|
|
7345
|
+
label?: InputMaybe<Scalars['String']['input']>;
|
|
7346
|
+
/** The maximum delivery date for the delivery method. */
|
|
7347
|
+
maxDeliveryDate?: InputMaybe<Scalars['ISO8601DateTime']['input']>;
|
|
7348
|
+
/** The minimum delivery date for the delivery method. */
|
|
7349
|
+
minDeliveryDate?: InputMaybe<Scalars['ISO8601DateTime']['input']>;
|
|
7350
|
+
};
|
|
7351
|
+
|
|
7352
|
+
/** Represents the delivery method type for a Shop Pay payment request. */
|
|
7353
|
+
export type ShopPayPaymentRequestDeliveryMethodType =
|
|
7354
|
+
/** The delivery method type is pickup. */
|
|
7355
|
+
| 'PICKUP'
|
|
7356
|
+
/** The delivery method type is shipping. */
|
|
7357
|
+
| 'SHIPPING';
|
|
7358
|
+
|
|
7359
|
+
/** Represents a discount for a Shop Pay payment request. */
|
|
7360
|
+
export type ShopPayPaymentRequestDiscount = {
|
|
7361
|
+
__typename?: 'ShopPayPaymentRequestDiscount';
|
|
7362
|
+
/** The amount of the discount. */
|
|
7363
|
+
amount: MoneyV2;
|
|
7364
|
+
/** The label of the discount. */
|
|
7365
|
+
label: Scalars['String']['output'];
|
|
7366
|
+
};
|
|
7367
|
+
|
|
7368
|
+
/** The input fields to create a discount for a Shop Pay payment request. */
|
|
7369
|
+
export type ShopPayPaymentRequestDiscountInput = {
|
|
7370
|
+
/** The amount of the discount. */
|
|
7371
|
+
amount?: InputMaybe<MoneyInput>;
|
|
7372
|
+
/** The label of the discount. */
|
|
7373
|
+
label?: InputMaybe<Scalars['String']['input']>;
|
|
7374
|
+
};
|
|
7375
|
+
|
|
7376
|
+
/** Represents an image for a Shop Pay payment request line item. */
|
|
7377
|
+
export type ShopPayPaymentRequestImage = {
|
|
7378
|
+
__typename?: 'ShopPayPaymentRequestImage';
|
|
7379
|
+
/** The alt text of the image. */
|
|
7380
|
+
alt?: Maybe<Scalars['String']['output']>;
|
|
7381
|
+
/** The source URL of the image. */
|
|
7382
|
+
url: Scalars['String']['output'];
|
|
7383
|
+
};
|
|
7384
|
+
|
|
7385
|
+
/** The input fields to create an image for a Shop Pay payment request. */
|
|
7386
|
+
export type ShopPayPaymentRequestImageInput = {
|
|
7387
|
+
/** The alt text of the image. */
|
|
7388
|
+
alt?: InputMaybe<Scalars['String']['input']>;
|
|
7389
|
+
/** The source URL of the image. */
|
|
7390
|
+
url: Scalars['String']['input'];
|
|
7391
|
+
};
|
|
7392
|
+
|
|
7393
|
+
/** The input fields represent a Shop Pay payment request. */
|
|
7394
|
+
export type ShopPayPaymentRequestInput = {
|
|
7395
|
+
/**
|
|
7396
|
+
* The delivery methods for the payment request.
|
|
7397
|
+
*
|
|
7398
|
+
* The input must not contain more than `250` values.
|
|
7399
|
+
*/
|
|
7400
|
+
deliveryMethods?: InputMaybe<Array<ShopPayPaymentRequestDeliveryMethodInput>>;
|
|
7401
|
+
/**
|
|
7402
|
+
* The discount codes for the payment request.
|
|
7403
|
+
*
|
|
7404
|
+
* The input must not contain more than `250` values.
|
|
7405
|
+
*/
|
|
7406
|
+
discountCodes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
7407
|
+
/**
|
|
7408
|
+
* The discounts for the payment request order.
|
|
7409
|
+
*
|
|
7410
|
+
* The input must not contain more than `250` values.
|
|
7411
|
+
*/
|
|
7412
|
+
discounts?: InputMaybe<Array<ShopPayPaymentRequestDiscountInput>>;
|
|
7413
|
+
/**
|
|
7414
|
+
* The line items for the payment request.
|
|
7415
|
+
*
|
|
7416
|
+
* The input must not contain more than `250` values.
|
|
7417
|
+
*/
|
|
7418
|
+
lineItems?: InputMaybe<Array<ShopPayPaymentRequestLineItemInput>>;
|
|
7419
|
+
/** The locale for the payment request. */
|
|
7420
|
+
locale: Scalars['String']['input'];
|
|
7421
|
+
/** The encrypted payment method for the payment request. */
|
|
7422
|
+
paymentMethod?: InputMaybe<Scalars['String']['input']>;
|
|
7423
|
+
/** The presentment currency for the payment request. */
|
|
7424
|
+
presentmentCurrency: CurrencyCode;
|
|
7425
|
+
/** The delivery method type for the payment request. */
|
|
7426
|
+
selectedDeliveryMethodType?: InputMaybe<ShopPayPaymentRequestDeliveryMethodType>;
|
|
7427
|
+
/**
|
|
7428
|
+
* The shipping lines for the payment request.
|
|
7429
|
+
*
|
|
7430
|
+
* The input must not contain more than `250` values.
|
|
7431
|
+
*/
|
|
7432
|
+
shippingLines?: InputMaybe<Array<ShopPayPaymentRequestShippingLineInput>>;
|
|
7433
|
+
/** The subtotal amount for the payment request. */
|
|
7434
|
+
subtotal: MoneyInput;
|
|
7435
|
+
/** The total amount for the payment request. */
|
|
7436
|
+
total: MoneyInput;
|
|
7437
|
+
/** The total shipping price for the payment request. */
|
|
7438
|
+
totalShippingPrice?: InputMaybe<ShopPayPaymentRequestTotalShippingPriceInput>;
|
|
7439
|
+
/** The total tax for the payment request. */
|
|
7440
|
+
totalTax?: InputMaybe<MoneyInput>;
|
|
7441
|
+
};
|
|
7442
|
+
|
|
7443
|
+
/** Represents a line item for a Shop Pay payment request. */
|
|
7444
|
+
export type ShopPayPaymentRequestLineItem = {
|
|
7445
|
+
__typename?: 'ShopPayPaymentRequestLineItem';
|
|
7446
|
+
/** The final item price for the line item. */
|
|
7447
|
+
finalItemPrice: MoneyV2;
|
|
7448
|
+
/** The final line price for the line item. */
|
|
7449
|
+
finalLinePrice: MoneyV2;
|
|
7450
|
+
/** The image of the line item. */
|
|
7451
|
+
image?: Maybe<ShopPayPaymentRequestImage>;
|
|
7452
|
+
/** The item discounts for the line item. */
|
|
7453
|
+
itemDiscounts?: Maybe<Array<ShopPayPaymentRequestDiscount>>;
|
|
7454
|
+
/** The label of the line item. */
|
|
7455
|
+
label: Scalars['String']['output'];
|
|
7456
|
+
/** The line discounts for the line item. */
|
|
7457
|
+
lineDiscounts?: Maybe<Array<ShopPayPaymentRequestDiscount>>;
|
|
7458
|
+
/** The original item price for the line item. */
|
|
7459
|
+
originalItemPrice?: Maybe<MoneyV2>;
|
|
7460
|
+
/** The original line price for the line item. */
|
|
7461
|
+
originalLinePrice?: Maybe<MoneyV2>;
|
|
7462
|
+
/** The quantity of the line item. */
|
|
7463
|
+
quantity: Scalars['Int']['output'];
|
|
7464
|
+
/** Whether the line item requires shipping. */
|
|
7465
|
+
requiresShipping?: Maybe<Scalars['Boolean']['output']>;
|
|
7466
|
+
/** The SKU of the line item. */
|
|
7467
|
+
sku?: Maybe<Scalars['String']['output']>;
|
|
7468
|
+
};
|
|
7469
|
+
|
|
7470
|
+
/** The input fields to create a line item for a Shop Pay payment request. */
|
|
7471
|
+
export type ShopPayPaymentRequestLineItemInput = {
|
|
7472
|
+
/** The final item price for the line item. */
|
|
7473
|
+
finalItemPrice?: InputMaybe<MoneyInput>;
|
|
7474
|
+
/** The final line price for the line item. */
|
|
7475
|
+
finalLinePrice?: InputMaybe<MoneyInput>;
|
|
7476
|
+
/** The image of the line item. */
|
|
7477
|
+
image?: InputMaybe<ShopPayPaymentRequestImageInput>;
|
|
7478
|
+
/**
|
|
7479
|
+
* The item discounts for the line item.
|
|
7480
|
+
*
|
|
7481
|
+
* The input must not contain more than `250` values.
|
|
7482
|
+
*/
|
|
7483
|
+
itemDiscounts?: InputMaybe<Array<ShopPayPaymentRequestDiscountInput>>;
|
|
7484
|
+
/** The label of the line item. */
|
|
7485
|
+
label?: InputMaybe<Scalars['String']['input']>;
|
|
7486
|
+
/**
|
|
7487
|
+
* The line discounts for the line item.
|
|
7488
|
+
*
|
|
7489
|
+
* The input must not contain more than `250` values.
|
|
7490
|
+
*/
|
|
7491
|
+
lineDiscounts?: InputMaybe<Array<ShopPayPaymentRequestDiscountInput>>;
|
|
7492
|
+
/** The original item price for the line item. */
|
|
7493
|
+
originalItemPrice?: InputMaybe<MoneyInput>;
|
|
7494
|
+
/** The original line price for the line item. */
|
|
7495
|
+
originalLinePrice?: InputMaybe<MoneyInput>;
|
|
7496
|
+
/** The quantity of the line item. */
|
|
7497
|
+
quantity: Scalars['Int']['input'];
|
|
7498
|
+
/** Whether the line item requires shipping. */
|
|
7499
|
+
requiresShipping?: InputMaybe<Scalars['Boolean']['input']>;
|
|
7500
|
+
/** The SKU of the line item. */
|
|
7501
|
+
sku?: InputMaybe<Scalars['String']['input']>;
|
|
7502
|
+
};
|
|
7503
|
+
|
|
7504
|
+
/** Represents a receipt for a Shop Pay payment request. */
|
|
7505
|
+
export type ShopPayPaymentRequestReceipt = {
|
|
7506
|
+
__typename?: 'ShopPayPaymentRequestReceipt';
|
|
7507
|
+
/** The payment request object. */
|
|
7508
|
+
paymentRequest: ShopPayPaymentRequest;
|
|
7509
|
+
/** The processing status. */
|
|
7510
|
+
processingStatusType: Scalars['String']['output'];
|
|
7511
|
+
/** The token of the receipt. */
|
|
7512
|
+
token: Scalars['String']['output'];
|
|
7513
|
+
};
|
|
7514
|
+
|
|
7515
|
+
/** Represents a Shop Pay payment request session. */
|
|
7516
|
+
export type ShopPayPaymentRequestSession = {
|
|
7517
|
+
__typename?: 'ShopPayPaymentRequestSession';
|
|
7518
|
+
/** The checkout URL of the Shop Pay payment request session. */
|
|
7519
|
+
checkoutUrl: Scalars['URL']['output'];
|
|
7520
|
+
/** The payment request associated with the Shop Pay payment request session. */
|
|
7521
|
+
paymentRequest: ShopPayPaymentRequest;
|
|
7522
|
+
/** The source identifier of the Shop Pay payment request session. */
|
|
7523
|
+
sourceIdentifier: Scalars['String']['output'];
|
|
7524
|
+
/** The token of the Shop Pay payment request session. */
|
|
7525
|
+
token: Scalars['String']['output'];
|
|
7526
|
+
};
|
|
7527
|
+
|
|
7528
|
+
/** Return type for `shopPayPaymentRequestSessionCreate` mutation. */
|
|
7529
|
+
export type ShopPayPaymentRequestSessionCreatePayload = {
|
|
7530
|
+
__typename?: 'ShopPayPaymentRequestSessionCreatePayload';
|
|
7531
|
+
/** The new Shop Pay payment request session object. */
|
|
7532
|
+
shopPayPaymentRequestSession?: Maybe<ShopPayPaymentRequestSession>;
|
|
7533
|
+
/** Error codes for failed Shop Pay payment request session mutations. */
|
|
7534
|
+
userErrors: Array<UserErrorsShopPayPaymentRequestSessionUserErrors>;
|
|
7535
|
+
};
|
|
7536
|
+
|
|
7537
|
+
/** Return type for `shopPayPaymentRequestSessionSubmit` mutation. */
|
|
7538
|
+
export type ShopPayPaymentRequestSessionSubmitPayload = {
|
|
7539
|
+
__typename?: 'ShopPayPaymentRequestSessionSubmitPayload';
|
|
7540
|
+
/** The checkout on which the payment was applied. */
|
|
7541
|
+
paymentRequestReceipt?: Maybe<ShopPayPaymentRequestReceipt>;
|
|
7542
|
+
/** Error codes for failed Shop Pay payment request session mutations. */
|
|
7543
|
+
userErrors: Array<UserErrorsShopPayPaymentRequestSessionUserErrors>;
|
|
7544
|
+
};
|
|
7545
|
+
|
|
7546
|
+
/** Represents a shipping line for a Shop Pay payment request. */
|
|
7547
|
+
export type ShopPayPaymentRequestShippingLine = {
|
|
7548
|
+
__typename?: 'ShopPayPaymentRequestShippingLine';
|
|
7549
|
+
/** The amount for the shipping line. */
|
|
7550
|
+
amount: MoneyV2;
|
|
7551
|
+
/** The code of the shipping line. */
|
|
7552
|
+
code: Scalars['String']['output'];
|
|
7553
|
+
/** The label of the shipping line. */
|
|
7554
|
+
label: Scalars['String']['output'];
|
|
7555
|
+
};
|
|
7556
|
+
|
|
7557
|
+
/** The input fields to create a shipping line for a Shop Pay payment request. */
|
|
7558
|
+
export type ShopPayPaymentRequestShippingLineInput = {
|
|
7559
|
+
/** The amount for the shipping line. */
|
|
7560
|
+
amount?: InputMaybe<MoneyInput>;
|
|
7561
|
+
/** The code of the shipping line. */
|
|
7562
|
+
code?: InputMaybe<Scalars['String']['input']>;
|
|
7563
|
+
/** The label of the shipping line. */
|
|
7564
|
+
label?: InputMaybe<Scalars['String']['input']>;
|
|
7565
|
+
};
|
|
7566
|
+
|
|
7567
|
+
/** Represents a shipping total for a Shop Pay payment request. */
|
|
7568
|
+
export type ShopPayPaymentRequestTotalShippingPrice = {
|
|
7569
|
+
__typename?: 'ShopPayPaymentRequestTotalShippingPrice';
|
|
7570
|
+
/** The discounts for the shipping total. */
|
|
7571
|
+
discounts: Array<ShopPayPaymentRequestDiscount>;
|
|
7572
|
+
/** The final total for the shipping total. */
|
|
7573
|
+
finalTotal: MoneyV2;
|
|
7574
|
+
/** The original total for the shipping total. */
|
|
7575
|
+
originalTotal?: Maybe<MoneyV2>;
|
|
7576
|
+
};
|
|
7577
|
+
|
|
7578
|
+
/** The input fields to create a shipping total for a Shop Pay payment request. */
|
|
7579
|
+
export type ShopPayPaymentRequestTotalShippingPriceInput = {
|
|
7580
|
+
/**
|
|
7581
|
+
* The discounts for the shipping total.
|
|
7582
|
+
*
|
|
7583
|
+
* The input must not contain more than `250` values.
|
|
7584
|
+
*/
|
|
7585
|
+
discounts?: InputMaybe<Array<ShopPayPaymentRequestDiscountInput>>;
|
|
7586
|
+
/** The final total for the shipping total. */
|
|
7587
|
+
finalTotal?: InputMaybe<MoneyInput>;
|
|
7588
|
+
/** The original total for the shipping total. */
|
|
7589
|
+
originalTotal?: InputMaybe<MoneyInput>;
|
|
7590
|
+
};
|
|
7591
|
+
|
|
7858
7592
|
/**
|
|
7859
7593
|
* The input fields for submitting Shop Pay payment method information for checkout.
|
|
7860
7594
|
*
|
|
@@ -8117,85 +7851,12 @@ export type Swatch = {
|
|
|
8117
7851
|
image?: Maybe<MediaImage>;
|
|
8118
7852
|
};
|
|
8119
7853
|
|
|
8120
|
-
/**
|
|
8121
|
-
* Specifies the fields required to complete a checkout with
|
|
8122
|
-
* a tokenized payment.
|
|
8123
|
-
*
|
|
8124
|
-
*/
|
|
8125
|
-
export type TokenizedPaymentInputV3 = {
|
|
8126
|
-
/** The billing address for the payment. */
|
|
8127
|
-
billingAddress: MailingAddressInput;
|
|
8128
|
-
/** A unique client generated key used to avoid duplicate charges. When a duplicate payment is found, the original is returned instead of creating a new one. For more information, refer to [Idempotent requests](https://shopify.dev/api/usage/idempotent-requests). */
|
|
8129
|
-
idempotencyKey: Scalars['String']['input'];
|
|
8130
|
-
/** Public Hash Key used for AndroidPay payments only. */
|
|
8131
|
-
identifier?: InputMaybe<Scalars['String']['input']>;
|
|
8132
|
-
/** The amount and currency of the payment. */
|
|
8133
|
-
paymentAmount: MoneyInput;
|
|
8134
|
-
/** A simple string or JSON containing the required payment data for the tokenized payment. */
|
|
8135
|
-
paymentData: Scalars['String']['input'];
|
|
8136
|
-
/** Whether to execute the payment in test mode, if possible. Test mode isn't supported in production stores. Defaults to `false`. */
|
|
8137
|
-
test?: InputMaybe<Scalars['Boolean']['input']>;
|
|
8138
|
-
/** The type of payment token. */
|
|
8139
|
-
type: PaymentTokenType;
|
|
8140
|
-
};
|
|
8141
|
-
|
|
8142
7854
|
/** Represents a resource that you can track the origin of the search traffic. */
|
|
8143
7855
|
export type Trackable = {
|
|
8144
7856
|
/** A URL parameters to be added to a page URL when it is linked from a GraphQL result. This allows for tracking the origin of the traffic. */
|
|
8145
7857
|
trackingParameters?: Maybe<Scalars['String']['output']>;
|
|
8146
7858
|
};
|
|
8147
7859
|
|
|
8148
|
-
/** An object representing exchange of money for a product or service. */
|
|
8149
|
-
export type Transaction = {
|
|
8150
|
-
__typename?: 'Transaction';
|
|
8151
|
-
/** The amount of money that the transaction was for. */
|
|
8152
|
-
amount: MoneyV2;
|
|
8153
|
-
/**
|
|
8154
|
-
* The amount of money that the transaction was for.
|
|
8155
|
-
* @deprecated Use `amount` instead.
|
|
8156
|
-
*/
|
|
8157
|
-
amountV2: MoneyV2;
|
|
8158
|
-
/** The kind of the transaction. */
|
|
8159
|
-
kind: TransactionKind;
|
|
8160
|
-
/**
|
|
8161
|
-
* The status of the transaction.
|
|
8162
|
-
* @deprecated Use `statusV2` instead.
|
|
8163
|
-
*/
|
|
8164
|
-
status: TransactionStatus;
|
|
8165
|
-
/** The status of the transaction. */
|
|
8166
|
-
statusV2?: Maybe<TransactionStatus>;
|
|
8167
|
-
/** Whether the transaction was done in test mode or not. */
|
|
8168
|
-
test: Scalars['Boolean']['output'];
|
|
8169
|
-
};
|
|
8170
|
-
|
|
8171
|
-
/** The different kinds of order transactions. */
|
|
8172
|
-
export type TransactionKind =
|
|
8173
|
-
/**
|
|
8174
|
-
* An amount reserved against the cardholder's funding source.
|
|
8175
|
-
* Money does not change hands until the authorization is captured.
|
|
8176
|
-
*
|
|
8177
|
-
*/
|
|
8178
|
-
| 'AUTHORIZATION'
|
|
8179
|
-
/** A transfer of the money that was reserved during the authorization stage. */
|
|
8180
|
-
| 'CAPTURE'
|
|
8181
|
-
/** Money returned to the customer when they have paid too much. */
|
|
8182
|
-
| 'CHANGE'
|
|
8183
|
-
/** An authorization for a payment taken with an EMV credit card reader. */
|
|
8184
|
-
| 'EMV_AUTHORIZATION'
|
|
8185
|
-
/** An authorization and capture performed together in a single step. */
|
|
8186
|
-
| 'SALE';
|
|
8187
|
-
|
|
8188
|
-
/** Transaction statuses describe the status of a transaction. */
|
|
8189
|
-
export type TransactionStatus =
|
|
8190
|
-
/** There was an error while processing the transaction. */
|
|
8191
|
-
| 'ERROR'
|
|
8192
|
-
/** The transaction failed. */
|
|
8193
|
-
| 'FAILURE'
|
|
8194
|
-
/** The transaction is pending. */
|
|
8195
|
-
| 'PENDING'
|
|
8196
|
-
/** The transaction succeeded. */
|
|
8197
|
-
| 'SUCCESS';
|
|
8198
|
-
|
|
8199
7860
|
/**
|
|
8200
7861
|
* The measurement used to calculate a unit price for a product variant (e.g. $9.99 / 100ml).
|
|
8201
7862
|
*
|
|
@@ -8303,6 +7964,27 @@ export type UserError = DisplayableError & {
|
|
|
8303
7964
|
message: Scalars['String']['output'];
|
|
8304
7965
|
};
|
|
8305
7966
|
|
|
7967
|
+
/** Represents an error that happens during execution of a customer mutation. */
|
|
7968
|
+
export type UserErrorsShopPayPaymentRequestSessionUserErrors =
|
|
7969
|
+
DisplayableError & {
|
|
7970
|
+
__typename?: 'UserErrorsShopPayPaymentRequestSessionUserErrors';
|
|
7971
|
+
/** The error code. */
|
|
7972
|
+
code?: Maybe<UserErrorsShopPayPaymentRequestSessionUserErrorsCode>;
|
|
7973
|
+
/** The path to the input field that caused the error. */
|
|
7974
|
+
field?: Maybe<Array<Scalars['String']['output']>>;
|
|
7975
|
+
/** The error message. */
|
|
7976
|
+
message: Scalars['String']['output'];
|
|
7977
|
+
};
|
|
7978
|
+
|
|
7979
|
+
/** Possible error codes that can be returned by `ShopPayPaymentRequestSessionUserErrors`. */
|
|
7980
|
+
export type UserErrorsShopPayPaymentRequestSessionUserErrorsCode =
|
|
7981
|
+
/** Idempotency key has already been used. */
|
|
7982
|
+
| 'IDEMPOTENCY_KEY_ALREADY_USED'
|
|
7983
|
+
/** Payment request input is invalid. */
|
|
7984
|
+
| 'PAYMENT_REQUEST_INVALID_INPUT'
|
|
7985
|
+
/** Payment request not found. */
|
|
7986
|
+
| 'PAYMENT_REQUEST_NOT_FOUND';
|
|
7987
|
+
|
|
8306
7988
|
/** The input fields for a filter used to view a subset of products in a collection matching a specific variant option. */
|
|
8307
7989
|
export type VariantOptionFilter = {
|
|
8308
7990
|
/** The name of the variant option to filter on. */
|