@zoxllc/shopify-checkout-extensions 0.0.3 → 0.0.5
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/migrate.ts +64 -0
- package/package.json +2 -1
- package/src/common/AndSelector.ts +17 -10
- package/src/common/Campaign.ts +27 -12
- package/src/common/CampaignFactory.ts +103 -51
- package/src/common/CartHasItemQualifier.ts +1 -1
- package/src/common/CartQuantityQualifier.ts +1 -1
- package/src/common/CountryCodeQualifier.ts +49 -0
- package/src/common/CustomerEmailQualifier.ts +14 -7
- package/src/common/CustomerTagQualifier.ts +29 -16
- package/src/common/DiscountCart.ts +78 -51
- package/src/common/DiscountInterface.ts +17 -2
- package/src/common/OrSelector.ts +13 -8
- package/src/common/ProductHandleSelector.ts +5 -3
- package/src/common/ProductIdSelector.ts +10 -4
- package/src/common/ProductTagSelector.ts +2 -1
- package/src/common/ProductTypeSelector.ts +10 -4
- package/src/common/SaleItemSelector.ts +2 -1
- package/src/common/Selector.ts +11 -3
- package/src/common/SubscriptionItemSelector.ts +2 -1
- package/src/index.ts +1 -1
- package/src/{common → lineItem}/BuyXGetY.ts +7 -7
- package/src/lineItem/ConditionalDiscount.ts +1 -1
- package/src/lineItem/FixedItemDiscount.ts +2 -4
- package/src/lineItem/PercentageDiscount.ts +2 -4
- package/src/shipping/FixedDiscount.ts +37 -0
- package/src/shipping/RateNameSelector.ts +54 -0
- package/src/shipping/ShippingDiscount.ts +75 -0
- package/src/shipping/api.ts +2014 -0
- package/tests/AndSelector.test.ts +1 -1
- package/tests/CartQuantityQualifier.test.ts +1 -1
- package/tests/CountryCodeQualifier.test.ts +55 -0
- package/tests/CustomerSubscriberQualifier.test.ts +1 -1
- package/tests/CustomerTagQualifier.test.ts +71 -0
- package/tests/DiscountCart.test.ts +1 -1
- package/tests/OrSelector.test.ts +1 -1
- package/tests/ProductIdSelector.test.ts +83 -0
- package/tests/ProductTagSelector.test.ts +1 -1
- package/tests/Qualifier.test.ts +1 -1
- package/tests/RateNameSelector.test.ts +107 -0
- package/tests/SaleItemSelector.test.ts +1 -1
- package/tests/Selector.test.ts +1 -1
- /package/src/{generated → lineItem}/api.ts +0 -0
|
@@ -0,0 +1,2014 @@
|
|
|
1
|
+
export type Maybe<T> = T | null;
|
|
2
|
+
export type InputMaybe<T> = Maybe<T>;
|
|
3
|
+
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
|
|
4
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
|
|
5
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
|
|
6
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
7
|
+
export type Scalars = {
|
|
8
|
+
ID: string;
|
|
9
|
+
String: string;
|
|
10
|
+
Boolean: boolean;
|
|
11
|
+
Int: number;
|
|
12
|
+
Float: number;
|
|
13
|
+
/**
|
|
14
|
+
* Represents an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)-encoded date string.
|
|
15
|
+
* For example, September 7, 2019 is represented as `"2019-07-16"`.
|
|
16
|
+
*/
|
|
17
|
+
Date: any;
|
|
18
|
+
/**
|
|
19
|
+
* Represents an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)-encoded date and time string.
|
|
20
|
+
* For example, 3:50 pm on September 7, 2019 in the time zone of UTC (Coordinated Universal Time) is
|
|
21
|
+
* represented as `"2019-09-07T15:50:00Z`".
|
|
22
|
+
*/
|
|
23
|
+
DateTime: any;
|
|
24
|
+
/**
|
|
25
|
+
* A subset of the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format that
|
|
26
|
+
* includes the date and time but not the timezone which is determined from context.
|
|
27
|
+
*
|
|
28
|
+
* For example, "2018-01-01T00:00:00".
|
|
29
|
+
*/
|
|
30
|
+
DateTimeWithoutTimezone: any;
|
|
31
|
+
/**
|
|
32
|
+
* A signed decimal number, which supports arbitrary precision and is serialized as a string.
|
|
33
|
+
*
|
|
34
|
+
* Example values: `"29.99"`, `"29.999"`.
|
|
35
|
+
*/
|
|
36
|
+
Decimal: any;
|
|
37
|
+
/**
|
|
38
|
+
* A function-scoped handle to a refer a resource.
|
|
39
|
+
* The Handle type appears in a JSON response as a String, but it is not intended to be human-readable.
|
|
40
|
+
* Example value: `"10079785100"`
|
|
41
|
+
*/
|
|
42
|
+
Handle: any;
|
|
43
|
+
/**
|
|
44
|
+
* A subset of the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format that
|
|
45
|
+
* includes the time but not the date or timezone which is determined from context.
|
|
46
|
+
* For example, "05:43:21".
|
|
47
|
+
*/
|
|
48
|
+
TimeWithoutTimezone: any;
|
|
49
|
+
/** A void type that can be used to return a null value from a mutation. */
|
|
50
|
+
Void: any;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** Represents a generic custom attribute. */
|
|
54
|
+
export type Attribute = {
|
|
55
|
+
__typename?: 'Attribute';
|
|
56
|
+
/** Key or name of the attribute. */
|
|
57
|
+
key: Scalars['String'];
|
|
58
|
+
/** Value of the attribute. */
|
|
59
|
+
value?: Maybe<Scalars['String']>;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/** Represents information about the buyer that is interacting with the cart. */
|
|
63
|
+
export type BuyerIdentity = {
|
|
64
|
+
__typename?: 'BuyerIdentity';
|
|
65
|
+
/** The customer associated with the cart. */
|
|
66
|
+
customer?: Maybe<Customer>;
|
|
67
|
+
/** The email address of the buyer that's interacting with the cart. */
|
|
68
|
+
email?: Maybe<Scalars['String']>;
|
|
69
|
+
/** Whether the buyer authenticated with a customer account. */
|
|
70
|
+
isAuthenticated: Scalars['Boolean'];
|
|
71
|
+
/** The phone number of the buyer that's interacting with the cart. */
|
|
72
|
+
phone?: Maybe<Scalars['String']>;
|
|
73
|
+
/** The purchasing company associated with the cart. */
|
|
74
|
+
purchasingCompany?: Maybe<PurchasingCompany>;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
/** A cart represents the merchandise that a buyer intends to purchase, and the cost associated with the cart. */
|
|
78
|
+
export type Cart = {
|
|
79
|
+
__typename?: 'Cart';
|
|
80
|
+
/** The attributes associated with the cart. Attributes are represented as key-value pairs. */
|
|
81
|
+
attribute?: Maybe<Attribute>;
|
|
82
|
+
/** Information about the buyer that is interacting with the cart. */
|
|
83
|
+
buyerIdentity?: Maybe<BuyerIdentity>;
|
|
84
|
+
/** The costs that the buyer will pay at checkout. */
|
|
85
|
+
cost: CartCost;
|
|
86
|
+
/** A list of lines containing information about the items that can be delivered. */
|
|
87
|
+
deliverableLines: Array<DeliverableCartLine>;
|
|
88
|
+
/** The delivery groups available for the cart based on the buyer's shipping address. */
|
|
89
|
+
deliveryGroups: Array<CartDeliveryGroup>;
|
|
90
|
+
/** A list of lines containing information about the items the customer intends to purchase. */
|
|
91
|
+
lines: Array<CartLine>;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
/** A cart represents the merchandise that a buyer intends to purchase, and the cost associated with the cart. */
|
|
96
|
+
export type CartAttributeArgs = {
|
|
97
|
+
key?: InputMaybe<Scalars['String']>;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/** The cost that the buyer will pay at checkout. */
|
|
101
|
+
export type CartCost = {
|
|
102
|
+
__typename?: 'CartCost';
|
|
103
|
+
/** The amount, before taxes and discounts, for the customer to pay. */
|
|
104
|
+
subtotalAmount: MoneyV2;
|
|
105
|
+
/** The total amount for the customer to pay. */
|
|
106
|
+
totalAmount: MoneyV2;
|
|
107
|
+
/** The duty amount for the customer to pay at checkout. */
|
|
108
|
+
totalDutyAmount?: Maybe<MoneyV2>;
|
|
109
|
+
/** The tax amount for the customer to pay at checkout. */
|
|
110
|
+
totalTaxAmount?: Maybe<MoneyV2>;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
/** Information about the options available for one or more line items to be delivered to a specific address. */
|
|
114
|
+
export type CartDeliveryGroup = {
|
|
115
|
+
__typename?: 'CartDeliveryGroup';
|
|
116
|
+
/** A list of cart lines for the delivery group. */
|
|
117
|
+
cartLines: Array<CartLine>;
|
|
118
|
+
/** The destination address for the delivery group. */
|
|
119
|
+
deliveryAddress?: Maybe<MailingAddress>;
|
|
120
|
+
/** The delivery options available for the delivery group. */
|
|
121
|
+
deliveryOptions: Array<CartDeliveryOption>;
|
|
122
|
+
/** Unique identifier for the delivery group. */
|
|
123
|
+
id: Scalars['ID'];
|
|
124
|
+
/** Information about the delivery option the buyer has selected. */
|
|
125
|
+
selectedDeliveryOption?: Maybe<CartDeliveryOption>;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
/** Information about a delivery option. */
|
|
129
|
+
export type CartDeliveryOption = {
|
|
130
|
+
__typename?: 'CartDeliveryOption';
|
|
131
|
+
/** The code of the delivery option. */
|
|
132
|
+
code?: Maybe<Scalars['String']>;
|
|
133
|
+
/** The cost for the delivery option. */
|
|
134
|
+
cost: MoneyV2;
|
|
135
|
+
/** The method for the delivery option. */
|
|
136
|
+
deliveryMethodType: DeliveryMethod;
|
|
137
|
+
/** The description of the delivery option. */
|
|
138
|
+
description?: Maybe<Scalars['String']>;
|
|
139
|
+
/** The unique identifier of the delivery option. */
|
|
140
|
+
handle: Scalars['Handle'];
|
|
141
|
+
/** The title of the delivery option. */
|
|
142
|
+
title?: Maybe<Scalars['String']>;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
/** Represents information about the merchandise in the cart. */
|
|
146
|
+
export type CartLine = {
|
|
147
|
+
__typename?: 'CartLine';
|
|
148
|
+
/**
|
|
149
|
+
* Retrieve a cart line attribute by key.
|
|
150
|
+
*
|
|
151
|
+
* Cart line attributes are also known as line item properties in Liquid.
|
|
152
|
+
*/
|
|
153
|
+
attribute?: Maybe<Attribute>;
|
|
154
|
+
/** The cost of the merchandise line that the buyer will pay at checkout. */
|
|
155
|
+
cost: CartLineCost;
|
|
156
|
+
/** The ID of the cart line. */
|
|
157
|
+
id: Scalars['ID'];
|
|
158
|
+
/** The merchandise that the buyer intends to purchase. */
|
|
159
|
+
merchandise: Merchandise;
|
|
160
|
+
/** The quantity of the merchandise that the customer intends to purchase. */
|
|
161
|
+
quantity: Scalars['Int'];
|
|
162
|
+
/**
|
|
163
|
+
* The selling plan associated with the cart line and the effect that each
|
|
164
|
+
* selling plan has on variants when they're purchased.
|
|
165
|
+
*/
|
|
166
|
+
sellingPlanAllocation?: Maybe<SellingPlanAllocation>;
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
/** Represents information about the merchandise in the cart. */
|
|
171
|
+
export type CartLineAttributeArgs = {
|
|
172
|
+
key?: InputMaybe<Scalars['String']>;
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
/** The cost of the merchandise line that the buyer will pay at checkout. */
|
|
176
|
+
export type CartLineCost = {
|
|
177
|
+
__typename?: 'CartLineCost';
|
|
178
|
+
/** The amount of the merchandise line. */
|
|
179
|
+
amountPerQuantity: MoneyV2;
|
|
180
|
+
/** The compare at amount of the merchandise line. */
|
|
181
|
+
compareAtAmountPerQuantity?: Maybe<MoneyV2>;
|
|
182
|
+
/** The cost of the merchandise line before line-level discounts. */
|
|
183
|
+
subtotalAmount: MoneyV2;
|
|
184
|
+
/** The total cost of the merchandise line. */
|
|
185
|
+
totalAmount: MoneyV2;
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
/** Represents whether the product is a member of the given collection. */
|
|
189
|
+
export type CollectionMembership = {
|
|
190
|
+
__typename?: 'CollectionMembership';
|
|
191
|
+
/** The ID of the collection. */
|
|
192
|
+
collectionId: Scalars['ID'];
|
|
193
|
+
/** Whether the product is a member of the collection. */
|
|
194
|
+
isMember: Scalars['Boolean'];
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
/** Represents information about a company which is also a customer of the shop. */
|
|
198
|
+
export type Company = HasMetafields & {
|
|
199
|
+
__typename?: 'Company';
|
|
200
|
+
/** The date and time ([ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601)) at which the company was created in Shopify. */
|
|
201
|
+
createdAt: Scalars['DateTime'];
|
|
202
|
+
/** A unique externally-supplied ID for the company. */
|
|
203
|
+
externalId?: Maybe<Scalars['String']>;
|
|
204
|
+
/** The ID of the company. */
|
|
205
|
+
id: Scalars['ID'];
|
|
206
|
+
/** Returns a metafield by namespace and key that belongs to the resource. */
|
|
207
|
+
metafield?: Maybe<Metafield>;
|
|
208
|
+
/** The name of the company. */
|
|
209
|
+
name: Scalars['String'];
|
|
210
|
+
/** The date and time ([ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601)) at which the company was last modified. */
|
|
211
|
+
updatedAt: Scalars['DateTime'];
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
/** Represents information about a company which is also a customer of the shop. */
|
|
216
|
+
export type CompanyMetafieldArgs = {
|
|
217
|
+
key: Scalars['String'];
|
|
218
|
+
namespace?: InputMaybe<Scalars['String']>;
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
/** A company's main point of contact. */
|
|
222
|
+
export type CompanyContact = {
|
|
223
|
+
__typename?: 'CompanyContact';
|
|
224
|
+
/**
|
|
225
|
+
* The date and time ([ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601))
|
|
226
|
+
* at which the company contact was created in Shopify.
|
|
227
|
+
*/
|
|
228
|
+
createdAt: Scalars['DateTime'];
|
|
229
|
+
/** The ID of the company. */
|
|
230
|
+
id: Scalars['ID'];
|
|
231
|
+
/** The company contact's locale (language). */
|
|
232
|
+
locale?: Maybe<Scalars['String']>;
|
|
233
|
+
/** The company contact's job title. */
|
|
234
|
+
title?: Maybe<Scalars['String']>;
|
|
235
|
+
/**
|
|
236
|
+
* The date and time ([ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601))
|
|
237
|
+
* at which the company contact was last modified.
|
|
238
|
+
*/
|
|
239
|
+
updatedAt: Scalars['DateTime'];
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
/** A company's location. */
|
|
243
|
+
export type CompanyLocation = HasMetafields & {
|
|
244
|
+
__typename?: 'CompanyLocation';
|
|
245
|
+
/**
|
|
246
|
+
* The date and time ([ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601))
|
|
247
|
+
* at which the company location was created in Shopify.
|
|
248
|
+
*/
|
|
249
|
+
createdAt: Scalars['DateTime'];
|
|
250
|
+
/** A unique externally-supplied ID for the company. */
|
|
251
|
+
externalId?: Maybe<Scalars['String']>;
|
|
252
|
+
/** The ID of the company. */
|
|
253
|
+
id: Scalars['ID'];
|
|
254
|
+
/** The preferred locale of the company location. */
|
|
255
|
+
locale?: Maybe<Scalars['String']>;
|
|
256
|
+
/** Returns a metafield by namespace and key that belongs to the resource. */
|
|
257
|
+
metafield?: Maybe<Metafield>;
|
|
258
|
+
/** The name of the company location. */
|
|
259
|
+
name: Scalars['String'];
|
|
260
|
+
/**
|
|
261
|
+
* The date and time ([ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601))
|
|
262
|
+
* at which the company location was last modified.
|
|
263
|
+
*/
|
|
264
|
+
updatedAt: Scalars['DateTime'];
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
/** A company's location. */
|
|
269
|
+
export type CompanyLocationMetafieldArgs = {
|
|
270
|
+
key: Scalars['String'];
|
|
271
|
+
namespace?: InputMaybe<Scalars['String']>;
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
/** A country. */
|
|
275
|
+
export type Country = {
|
|
276
|
+
__typename?: 'Country';
|
|
277
|
+
/** The ISO code of the country. */
|
|
278
|
+
isoCode: CountryCode;
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* The code designating a country/region, which generally follows ISO 3166-1 alpha-2 guidelines.
|
|
283
|
+
* If a territory doesn't have a country code value in the `CountryCode` enum, then it might be considered a subdivision
|
|
284
|
+
* of another country. For example, the territories associated with Spain are represented by the country code `ES`,
|
|
285
|
+
* and the territories associated with the United States of America are represented by the country code `US`.
|
|
286
|
+
*/
|
|
287
|
+
export enum CountryCode {
|
|
288
|
+
/** Ascension Island. */
|
|
289
|
+
Ac = 'AC',
|
|
290
|
+
/** Andorra. */
|
|
291
|
+
Ad = 'AD',
|
|
292
|
+
/** United Arab Emirates. */
|
|
293
|
+
Ae = 'AE',
|
|
294
|
+
/** Afghanistan. */
|
|
295
|
+
Af = 'AF',
|
|
296
|
+
/** Antigua & Barbuda. */
|
|
297
|
+
Ag = 'AG',
|
|
298
|
+
/** Anguilla. */
|
|
299
|
+
Ai = 'AI',
|
|
300
|
+
/** Albania. */
|
|
301
|
+
Al = 'AL',
|
|
302
|
+
/** Armenia. */
|
|
303
|
+
Am = 'AM',
|
|
304
|
+
/** Netherlands Antilles. */
|
|
305
|
+
An = 'AN',
|
|
306
|
+
/** Angola. */
|
|
307
|
+
Ao = 'AO',
|
|
308
|
+
/** Argentina. */
|
|
309
|
+
Ar = 'AR',
|
|
310
|
+
/** Austria. */
|
|
311
|
+
At = 'AT',
|
|
312
|
+
/** Australia. */
|
|
313
|
+
Au = 'AU',
|
|
314
|
+
/** Aruba. */
|
|
315
|
+
Aw = 'AW',
|
|
316
|
+
/** Åland Islands. */
|
|
317
|
+
Ax = 'AX',
|
|
318
|
+
/** Azerbaijan. */
|
|
319
|
+
Az = 'AZ',
|
|
320
|
+
/** Bosnia & Herzegovina. */
|
|
321
|
+
Ba = 'BA',
|
|
322
|
+
/** Barbados. */
|
|
323
|
+
Bb = 'BB',
|
|
324
|
+
/** Bangladesh. */
|
|
325
|
+
Bd = 'BD',
|
|
326
|
+
/** Belgium. */
|
|
327
|
+
Be = 'BE',
|
|
328
|
+
/** Burkina Faso. */
|
|
329
|
+
Bf = 'BF',
|
|
330
|
+
/** Bulgaria. */
|
|
331
|
+
Bg = 'BG',
|
|
332
|
+
/** Bahrain. */
|
|
333
|
+
Bh = 'BH',
|
|
334
|
+
/** Burundi. */
|
|
335
|
+
Bi = 'BI',
|
|
336
|
+
/** Benin. */
|
|
337
|
+
Bj = 'BJ',
|
|
338
|
+
/** St. Barthélemy. */
|
|
339
|
+
Bl = 'BL',
|
|
340
|
+
/** Bermuda. */
|
|
341
|
+
Bm = 'BM',
|
|
342
|
+
/** Brunei. */
|
|
343
|
+
Bn = 'BN',
|
|
344
|
+
/** Bolivia. */
|
|
345
|
+
Bo = 'BO',
|
|
346
|
+
/** Caribbean Netherlands. */
|
|
347
|
+
Bq = 'BQ',
|
|
348
|
+
/** Brazil. */
|
|
349
|
+
Br = 'BR',
|
|
350
|
+
/** Bahamas. */
|
|
351
|
+
Bs = 'BS',
|
|
352
|
+
/** Bhutan. */
|
|
353
|
+
Bt = 'BT',
|
|
354
|
+
/** Bouvet Island. */
|
|
355
|
+
Bv = 'BV',
|
|
356
|
+
/** Botswana. */
|
|
357
|
+
Bw = 'BW',
|
|
358
|
+
/** Belarus. */
|
|
359
|
+
By = 'BY',
|
|
360
|
+
/** Belize. */
|
|
361
|
+
Bz = 'BZ',
|
|
362
|
+
/** Canada. */
|
|
363
|
+
Ca = 'CA',
|
|
364
|
+
/** Cocos (Keeling) Islands. */
|
|
365
|
+
Cc = 'CC',
|
|
366
|
+
/** Congo - Kinshasa. */
|
|
367
|
+
Cd = 'CD',
|
|
368
|
+
/** Central African Republic. */
|
|
369
|
+
Cf = 'CF',
|
|
370
|
+
/** Congo - Brazzaville. */
|
|
371
|
+
Cg = 'CG',
|
|
372
|
+
/** Switzerland. */
|
|
373
|
+
Ch = 'CH',
|
|
374
|
+
/** Côte d’Ivoire. */
|
|
375
|
+
Ci = 'CI',
|
|
376
|
+
/** Cook Islands. */
|
|
377
|
+
Ck = 'CK',
|
|
378
|
+
/** Chile. */
|
|
379
|
+
Cl = 'CL',
|
|
380
|
+
/** Cameroon. */
|
|
381
|
+
Cm = 'CM',
|
|
382
|
+
/** China. */
|
|
383
|
+
Cn = 'CN',
|
|
384
|
+
/** Colombia. */
|
|
385
|
+
Co = 'CO',
|
|
386
|
+
/** Costa Rica. */
|
|
387
|
+
Cr = 'CR',
|
|
388
|
+
/** Cuba. */
|
|
389
|
+
Cu = 'CU',
|
|
390
|
+
/** Cape Verde. */
|
|
391
|
+
Cv = 'CV',
|
|
392
|
+
/** Curaçao. */
|
|
393
|
+
Cw = 'CW',
|
|
394
|
+
/** Christmas Island. */
|
|
395
|
+
Cx = 'CX',
|
|
396
|
+
/** Cyprus. */
|
|
397
|
+
Cy = 'CY',
|
|
398
|
+
/** Czechia. */
|
|
399
|
+
Cz = 'CZ',
|
|
400
|
+
/** Germany. */
|
|
401
|
+
De = 'DE',
|
|
402
|
+
/** Djibouti. */
|
|
403
|
+
Dj = 'DJ',
|
|
404
|
+
/** Denmark. */
|
|
405
|
+
Dk = 'DK',
|
|
406
|
+
/** Dominica. */
|
|
407
|
+
Dm = 'DM',
|
|
408
|
+
/** Dominican Republic. */
|
|
409
|
+
Do = 'DO',
|
|
410
|
+
/** Algeria. */
|
|
411
|
+
Dz = 'DZ',
|
|
412
|
+
/** Ecuador. */
|
|
413
|
+
Ec = 'EC',
|
|
414
|
+
/** Estonia. */
|
|
415
|
+
Ee = 'EE',
|
|
416
|
+
/** Egypt. */
|
|
417
|
+
Eg = 'EG',
|
|
418
|
+
/** Western Sahara. */
|
|
419
|
+
Eh = 'EH',
|
|
420
|
+
/** Eritrea. */
|
|
421
|
+
Er = 'ER',
|
|
422
|
+
/** Spain. */
|
|
423
|
+
Es = 'ES',
|
|
424
|
+
/** Ethiopia. */
|
|
425
|
+
Et = 'ET',
|
|
426
|
+
/** Finland. */
|
|
427
|
+
Fi = 'FI',
|
|
428
|
+
/** Fiji. */
|
|
429
|
+
Fj = 'FJ',
|
|
430
|
+
/** Falkland Islands. */
|
|
431
|
+
Fk = 'FK',
|
|
432
|
+
/** Faroe Islands. */
|
|
433
|
+
Fo = 'FO',
|
|
434
|
+
/** France. */
|
|
435
|
+
Fr = 'FR',
|
|
436
|
+
/** Gabon. */
|
|
437
|
+
Ga = 'GA',
|
|
438
|
+
/** United Kingdom. */
|
|
439
|
+
Gb = 'GB',
|
|
440
|
+
/** Grenada. */
|
|
441
|
+
Gd = 'GD',
|
|
442
|
+
/** Georgia. */
|
|
443
|
+
Ge = 'GE',
|
|
444
|
+
/** French Guiana. */
|
|
445
|
+
Gf = 'GF',
|
|
446
|
+
/** Guernsey. */
|
|
447
|
+
Gg = 'GG',
|
|
448
|
+
/** Ghana. */
|
|
449
|
+
Gh = 'GH',
|
|
450
|
+
/** Gibraltar. */
|
|
451
|
+
Gi = 'GI',
|
|
452
|
+
/** Greenland. */
|
|
453
|
+
Gl = 'GL',
|
|
454
|
+
/** Gambia. */
|
|
455
|
+
Gm = 'GM',
|
|
456
|
+
/** Guinea. */
|
|
457
|
+
Gn = 'GN',
|
|
458
|
+
/** Guadeloupe. */
|
|
459
|
+
Gp = 'GP',
|
|
460
|
+
/** Equatorial Guinea. */
|
|
461
|
+
Gq = 'GQ',
|
|
462
|
+
/** Greece. */
|
|
463
|
+
Gr = 'GR',
|
|
464
|
+
/** South Georgia & South Sandwich Islands. */
|
|
465
|
+
Gs = 'GS',
|
|
466
|
+
/** Guatemala. */
|
|
467
|
+
Gt = 'GT',
|
|
468
|
+
/** Guinea-Bissau. */
|
|
469
|
+
Gw = 'GW',
|
|
470
|
+
/** Guyana. */
|
|
471
|
+
Gy = 'GY',
|
|
472
|
+
/** Hong Kong SAR. */
|
|
473
|
+
Hk = 'HK',
|
|
474
|
+
/** Heard & McDonald Islands. */
|
|
475
|
+
Hm = 'HM',
|
|
476
|
+
/** Honduras. */
|
|
477
|
+
Hn = 'HN',
|
|
478
|
+
/** Croatia. */
|
|
479
|
+
Hr = 'HR',
|
|
480
|
+
/** Haiti. */
|
|
481
|
+
Ht = 'HT',
|
|
482
|
+
/** Hungary. */
|
|
483
|
+
Hu = 'HU',
|
|
484
|
+
/** Indonesia. */
|
|
485
|
+
Id = 'ID',
|
|
486
|
+
/** Ireland. */
|
|
487
|
+
Ie = 'IE',
|
|
488
|
+
/** Israel. */
|
|
489
|
+
Il = 'IL',
|
|
490
|
+
/** Isle of Man. */
|
|
491
|
+
Im = 'IM',
|
|
492
|
+
/** India. */
|
|
493
|
+
In = 'IN',
|
|
494
|
+
/** British Indian Ocean Territory. */
|
|
495
|
+
Io = 'IO',
|
|
496
|
+
/** Iraq. */
|
|
497
|
+
Iq = 'IQ',
|
|
498
|
+
/** Iran. */
|
|
499
|
+
Ir = 'IR',
|
|
500
|
+
/** Iceland. */
|
|
501
|
+
Is = 'IS',
|
|
502
|
+
/** Italy. */
|
|
503
|
+
It = 'IT',
|
|
504
|
+
/** Jersey. */
|
|
505
|
+
Je = 'JE',
|
|
506
|
+
/** Jamaica. */
|
|
507
|
+
Jm = 'JM',
|
|
508
|
+
/** Jordan. */
|
|
509
|
+
Jo = 'JO',
|
|
510
|
+
/** Japan. */
|
|
511
|
+
Jp = 'JP',
|
|
512
|
+
/** Kenya. */
|
|
513
|
+
Ke = 'KE',
|
|
514
|
+
/** Kyrgyzstan. */
|
|
515
|
+
Kg = 'KG',
|
|
516
|
+
/** Cambodia. */
|
|
517
|
+
Kh = 'KH',
|
|
518
|
+
/** Kiribati. */
|
|
519
|
+
Ki = 'KI',
|
|
520
|
+
/** Comoros. */
|
|
521
|
+
Km = 'KM',
|
|
522
|
+
/** St. Kitts & Nevis. */
|
|
523
|
+
Kn = 'KN',
|
|
524
|
+
/** North Korea. */
|
|
525
|
+
Kp = 'KP',
|
|
526
|
+
/** South Korea. */
|
|
527
|
+
Kr = 'KR',
|
|
528
|
+
/** Kuwait. */
|
|
529
|
+
Kw = 'KW',
|
|
530
|
+
/** Cayman Islands. */
|
|
531
|
+
Ky = 'KY',
|
|
532
|
+
/** Kazakhstan. */
|
|
533
|
+
Kz = 'KZ',
|
|
534
|
+
/** Laos. */
|
|
535
|
+
La = 'LA',
|
|
536
|
+
/** Lebanon. */
|
|
537
|
+
Lb = 'LB',
|
|
538
|
+
/** St. Lucia. */
|
|
539
|
+
Lc = 'LC',
|
|
540
|
+
/** Liechtenstein. */
|
|
541
|
+
Li = 'LI',
|
|
542
|
+
/** Sri Lanka. */
|
|
543
|
+
Lk = 'LK',
|
|
544
|
+
/** Liberia. */
|
|
545
|
+
Lr = 'LR',
|
|
546
|
+
/** Lesotho. */
|
|
547
|
+
Ls = 'LS',
|
|
548
|
+
/** Lithuania. */
|
|
549
|
+
Lt = 'LT',
|
|
550
|
+
/** Luxembourg. */
|
|
551
|
+
Lu = 'LU',
|
|
552
|
+
/** Latvia. */
|
|
553
|
+
Lv = 'LV',
|
|
554
|
+
/** Libya. */
|
|
555
|
+
Ly = 'LY',
|
|
556
|
+
/** Morocco. */
|
|
557
|
+
Ma = 'MA',
|
|
558
|
+
/** Monaco. */
|
|
559
|
+
Mc = 'MC',
|
|
560
|
+
/** Moldova. */
|
|
561
|
+
Md = 'MD',
|
|
562
|
+
/** Montenegro. */
|
|
563
|
+
Me = 'ME',
|
|
564
|
+
/** St. Martin. */
|
|
565
|
+
Mf = 'MF',
|
|
566
|
+
/** Madagascar. */
|
|
567
|
+
Mg = 'MG',
|
|
568
|
+
/** North Macedonia. */
|
|
569
|
+
Mk = 'MK',
|
|
570
|
+
/** Mali. */
|
|
571
|
+
Ml = 'ML',
|
|
572
|
+
/** Myanmar (Burma). */
|
|
573
|
+
Mm = 'MM',
|
|
574
|
+
/** Mongolia. */
|
|
575
|
+
Mn = 'MN',
|
|
576
|
+
/** Macao SAR. */
|
|
577
|
+
Mo = 'MO',
|
|
578
|
+
/** Martinique. */
|
|
579
|
+
Mq = 'MQ',
|
|
580
|
+
/** Mauritania. */
|
|
581
|
+
Mr = 'MR',
|
|
582
|
+
/** Montserrat. */
|
|
583
|
+
Ms = 'MS',
|
|
584
|
+
/** Malta. */
|
|
585
|
+
Mt = 'MT',
|
|
586
|
+
/** Mauritius. */
|
|
587
|
+
Mu = 'MU',
|
|
588
|
+
/** Maldives. */
|
|
589
|
+
Mv = 'MV',
|
|
590
|
+
/** Malawi. */
|
|
591
|
+
Mw = 'MW',
|
|
592
|
+
/** Mexico. */
|
|
593
|
+
Mx = 'MX',
|
|
594
|
+
/** Malaysia. */
|
|
595
|
+
My = 'MY',
|
|
596
|
+
/** Mozambique. */
|
|
597
|
+
Mz = 'MZ',
|
|
598
|
+
/** Namibia. */
|
|
599
|
+
Na = 'NA',
|
|
600
|
+
/** New Caledonia. */
|
|
601
|
+
Nc = 'NC',
|
|
602
|
+
/** Niger. */
|
|
603
|
+
Ne = 'NE',
|
|
604
|
+
/** Norfolk Island. */
|
|
605
|
+
Nf = 'NF',
|
|
606
|
+
/** Nigeria. */
|
|
607
|
+
Ng = 'NG',
|
|
608
|
+
/** Nicaragua. */
|
|
609
|
+
Ni = 'NI',
|
|
610
|
+
/** Netherlands. */
|
|
611
|
+
Nl = 'NL',
|
|
612
|
+
/** Norway. */
|
|
613
|
+
No = 'NO',
|
|
614
|
+
/** Nepal. */
|
|
615
|
+
Np = 'NP',
|
|
616
|
+
/** Nauru. */
|
|
617
|
+
Nr = 'NR',
|
|
618
|
+
/** Niue. */
|
|
619
|
+
Nu = 'NU',
|
|
620
|
+
/** New Zealand. */
|
|
621
|
+
Nz = 'NZ',
|
|
622
|
+
/** Oman. */
|
|
623
|
+
Om = 'OM',
|
|
624
|
+
/** Panama. */
|
|
625
|
+
Pa = 'PA',
|
|
626
|
+
/** Peru. */
|
|
627
|
+
Pe = 'PE',
|
|
628
|
+
/** French Polynesia. */
|
|
629
|
+
Pf = 'PF',
|
|
630
|
+
/** Papua New Guinea. */
|
|
631
|
+
Pg = 'PG',
|
|
632
|
+
/** Philippines. */
|
|
633
|
+
Ph = 'PH',
|
|
634
|
+
/** Pakistan. */
|
|
635
|
+
Pk = 'PK',
|
|
636
|
+
/** Poland. */
|
|
637
|
+
Pl = 'PL',
|
|
638
|
+
/** St. Pierre & Miquelon. */
|
|
639
|
+
Pm = 'PM',
|
|
640
|
+
/** Pitcairn Islands. */
|
|
641
|
+
Pn = 'PN',
|
|
642
|
+
/** Palestinian Territories. */
|
|
643
|
+
Ps = 'PS',
|
|
644
|
+
/** Portugal. */
|
|
645
|
+
Pt = 'PT',
|
|
646
|
+
/** Paraguay. */
|
|
647
|
+
Py = 'PY',
|
|
648
|
+
/** Qatar. */
|
|
649
|
+
Qa = 'QA',
|
|
650
|
+
/** Réunion. */
|
|
651
|
+
Re = 'RE',
|
|
652
|
+
/** Romania. */
|
|
653
|
+
Ro = 'RO',
|
|
654
|
+
/** Serbia. */
|
|
655
|
+
Rs = 'RS',
|
|
656
|
+
/** Russia. */
|
|
657
|
+
Ru = 'RU',
|
|
658
|
+
/** Rwanda. */
|
|
659
|
+
Rw = 'RW',
|
|
660
|
+
/** Saudi Arabia. */
|
|
661
|
+
Sa = 'SA',
|
|
662
|
+
/** Solomon Islands. */
|
|
663
|
+
Sb = 'SB',
|
|
664
|
+
/** Seychelles. */
|
|
665
|
+
Sc = 'SC',
|
|
666
|
+
/** Sudan. */
|
|
667
|
+
Sd = 'SD',
|
|
668
|
+
/** Sweden. */
|
|
669
|
+
Se = 'SE',
|
|
670
|
+
/** Singapore. */
|
|
671
|
+
Sg = 'SG',
|
|
672
|
+
/** St. Helena. */
|
|
673
|
+
Sh = 'SH',
|
|
674
|
+
/** Slovenia. */
|
|
675
|
+
Si = 'SI',
|
|
676
|
+
/** Svalbard & Jan Mayen. */
|
|
677
|
+
Sj = 'SJ',
|
|
678
|
+
/** Slovakia. */
|
|
679
|
+
Sk = 'SK',
|
|
680
|
+
/** Sierra Leone. */
|
|
681
|
+
Sl = 'SL',
|
|
682
|
+
/** San Marino. */
|
|
683
|
+
Sm = 'SM',
|
|
684
|
+
/** Senegal. */
|
|
685
|
+
Sn = 'SN',
|
|
686
|
+
/** Somalia. */
|
|
687
|
+
So = 'SO',
|
|
688
|
+
/** Suriname. */
|
|
689
|
+
Sr = 'SR',
|
|
690
|
+
/** South Sudan. */
|
|
691
|
+
Ss = 'SS',
|
|
692
|
+
/** São Tomé & Príncipe. */
|
|
693
|
+
St = 'ST',
|
|
694
|
+
/** El Salvador. */
|
|
695
|
+
Sv = 'SV',
|
|
696
|
+
/** Sint Maarten. */
|
|
697
|
+
Sx = 'SX',
|
|
698
|
+
/** Syria. */
|
|
699
|
+
Sy = 'SY',
|
|
700
|
+
/** Eswatini. */
|
|
701
|
+
Sz = 'SZ',
|
|
702
|
+
/** Tristan da Cunha. */
|
|
703
|
+
Ta = 'TA',
|
|
704
|
+
/** Turks & Caicos Islands. */
|
|
705
|
+
Tc = 'TC',
|
|
706
|
+
/** Chad. */
|
|
707
|
+
Td = 'TD',
|
|
708
|
+
/** French Southern Territories. */
|
|
709
|
+
Tf = 'TF',
|
|
710
|
+
/** Togo. */
|
|
711
|
+
Tg = 'TG',
|
|
712
|
+
/** Thailand. */
|
|
713
|
+
Th = 'TH',
|
|
714
|
+
/** Tajikistan. */
|
|
715
|
+
Tj = 'TJ',
|
|
716
|
+
/** Tokelau. */
|
|
717
|
+
Tk = 'TK',
|
|
718
|
+
/** Timor-Leste. */
|
|
719
|
+
Tl = 'TL',
|
|
720
|
+
/** Turkmenistan. */
|
|
721
|
+
Tm = 'TM',
|
|
722
|
+
/** Tunisia. */
|
|
723
|
+
Tn = 'TN',
|
|
724
|
+
/** Tonga. */
|
|
725
|
+
To = 'TO',
|
|
726
|
+
/** Türkiye. */
|
|
727
|
+
Tr = 'TR',
|
|
728
|
+
/** Trinidad & Tobago. */
|
|
729
|
+
Tt = 'TT',
|
|
730
|
+
/** Tuvalu. */
|
|
731
|
+
Tv = 'TV',
|
|
732
|
+
/** Taiwan. */
|
|
733
|
+
Tw = 'TW',
|
|
734
|
+
/** Tanzania. */
|
|
735
|
+
Tz = 'TZ',
|
|
736
|
+
/** Ukraine. */
|
|
737
|
+
Ua = 'UA',
|
|
738
|
+
/** Uganda. */
|
|
739
|
+
Ug = 'UG',
|
|
740
|
+
/** U.S. Outlying Islands. */
|
|
741
|
+
Um = 'UM',
|
|
742
|
+
/** United States. */
|
|
743
|
+
Us = 'US',
|
|
744
|
+
/** Uruguay. */
|
|
745
|
+
Uy = 'UY',
|
|
746
|
+
/** Uzbekistan. */
|
|
747
|
+
Uz = 'UZ',
|
|
748
|
+
/** Vatican City. */
|
|
749
|
+
Va = 'VA',
|
|
750
|
+
/** St. Vincent & Grenadines. */
|
|
751
|
+
Vc = 'VC',
|
|
752
|
+
/** Venezuela. */
|
|
753
|
+
Ve = 'VE',
|
|
754
|
+
/** British Virgin Islands. */
|
|
755
|
+
Vg = 'VG',
|
|
756
|
+
/** Vietnam. */
|
|
757
|
+
Vn = 'VN',
|
|
758
|
+
/** Vanuatu. */
|
|
759
|
+
Vu = 'VU',
|
|
760
|
+
/** Wallis & Futuna. */
|
|
761
|
+
Wf = 'WF',
|
|
762
|
+
/** Samoa. */
|
|
763
|
+
Ws = 'WS',
|
|
764
|
+
/** Kosovo. */
|
|
765
|
+
Xk = 'XK',
|
|
766
|
+
/** Yemen. */
|
|
767
|
+
Ye = 'YE',
|
|
768
|
+
/** Mayotte. */
|
|
769
|
+
Yt = 'YT',
|
|
770
|
+
/** South Africa. */
|
|
771
|
+
Za = 'ZA',
|
|
772
|
+
/** Zambia. */
|
|
773
|
+
Zm = 'ZM',
|
|
774
|
+
/** Zimbabwe. */
|
|
775
|
+
Zw = 'ZW',
|
|
776
|
+
/** Unknown Region. */
|
|
777
|
+
Zz = 'ZZ'
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* The three-letter currency codes that represent the world currencies used in
|
|
782
|
+
* stores. These include standard ISO 4217 codes, legacy codes,
|
|
783
|
+
* and non-standard codes.
|
|
784
|
+
*/
|
|
785
|
+
export enum CurrencyCode {
|
|
786
|
+
/** United Arab Emirates Dirham (AED). */
|
|
787
|
+
Aed = 'AED',
|
|
788
|
+
/** Afghan Afghani (AFN). */
|
|
789
|
+
Afn = 'AFN',
|
|
790
|
+
/** Albanian Lek (ALL). */
|
|
791
|
+
All = 'ALL',
|
|
792
|
+
/** Armenian Dram (AMD). */
|
|
793
|
+
Amd = 'AMD',
|
|
794
|
+
/** Netherlands Antillean Guilder. */
|
|
795
|
+
Ang = 'ANG',
|
|
796
|
+
/** Angolan Kwanza (AOA). */
|
|
797
|
+
Aoa = 'AOA',
|
|
798
|
+
/** Argentine Pesos (ARS). */
|
|
799
|
+
Ars = 'ARS',
|
|
800
|
+
/** Australian Dollars (AUD). */
|
|
801
|
+
Aud = 'AUD',
|
|
802
|
+
/** Aruban Florin (AWG). */
|
|
803
|
+
Awg = 'AWG',
|
|
804
|
+
/** Azerbaijani Manat (AZN). */
|
|
805
|
+
Azn = 'AZN',
|
|
806
|
+
/** Bosnia and Herzegovina Convertible Mark (BAM). */
|
|
807
|
+
Bam = 'BAM',
|
|
808
|
+
/** Barbadian Dollar (BBD). */
|
|
809
|
+
Bbd = 'BBD',
|
|
810
|
+
/** Bangladesh Taka (BDT). */
|
|
811
|
+
Bdt = 'BDT',
|
|
812
|
+
/** Bulgarian Lev (BGN). */
|
|
813
|
+
Bgn = 'BGN',
|
|
814
|
+
/** Bahraini Dinar (BHD). */
|
|
815
|
+
Bhd = 'BHD',
|
|
816
|
+
/** Burundian Franc (BIF). */
|
|
817
|
+
Bif = 'BIF',
|
|
818
|
+
/** Bermudian Dollar (BMD). */
|
|
819
|
+
Bmd = 'BMD',
|
|
820
|
+
/** Brunei Dollar (BND). */
|
|
821
|
+
Bnd = 'BND',
|
|
822
|
+
/** Bolivian Boliviano (BOB). */
|
|
823
|
+
Bob = 'BOB',
|
|
824
|
+
/** Brazilian Real (BRL). */
|
|
825
|
+
Brl = 'BRL',
|
|
826
|
+
/** Bahamian Dollar (BSD). */
|
|
827
|
+
Bsd = 'BSD',
|
|
828
|
+
/** Bhutanese Ngultrum (BTN). */
|
|
829
|
+
Btn = 'BTN',
|
|
830
|
+
/** Botswana Pula (BWP). */
|
|
831
|
+
Bwp = 'BWP',
|
|
832
|
+
/** Belarusian Ruble (BYN). */
|
|
833
|
+
Byn = 'BYN',
|
|
834
|
+
/**
|
|
835
|
+
* Belarusian Ruble (BYR).
|
|
836
|
+
* @deprecated `BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.
|
|
837
|
+
*/
|
|
838
|
+
Byr = 'BYR',
|
|
839
|
+
/** Belize Dollar (BZD). */
|
|
840
|
+
Bzd = 'BZD',
|
|
841
|
+
/** Canadian Dollars (CAD). */
|
|
842
|
+
Cad = 'CAD',
|
|
843
|
+
/** Congolese franc (CDF). */
|
|
844
|
+
Cdf = 'CDF',
|
|
845
|
+
/** Swiss Francs (CHF). */
|
|
846
|
+
Chf = 'CHF',
|
|
847
|
+
/** Chilean Peso (CLP). */
|
|
848
|
+
Clp = 'CLP',
|
|
849
|
+
/** Chinese Yuan Renminbi (CNY). */
|
|
850
|
+
Cny = 'CNY',
|
|
851
|
+
/** Colombian Peso (COP). */
|
|
852
|
+
Cop = 'COP',
|
|
853
|
+
/** Costa Rican Colones (CRC). */
|
|
854
|
+
Crc = 'CRC',
|
|
855
|
+
/** Cape Verdean escudo (CVE). */
|
|
856
|
+
Cve = 'CVE',
|
|
857
|
+
/** Czech Koruny (CZK). */
|
|
858
|
+
Czk = 'CZK',
|
|
859
|
+
/** Djiboutian Franc (DJF). */
|
|
860
|
+
Djf = 'DJF',
|
|
861
|
+
/** Danish Kroner (DKK). */
|
|
862
|
+
Dkk = 'DKK',
|
|
863
|
+
/** Dominican Peso (DOP). */
|
|
864
|
+
Dop = 'DOP',
|
|
865
|
+
/** Algerian Dinar (DZD). */
|
|
866
|
+
Dzd = 'DZD',
|
|
867
|
+
/** Egyptian Pound (EGP). */
|
|
868
|
+
Egp = 'EGP',
|
|
869
|
+
/** Eritrean Nakfa (ERN). */
|
|
870
|
+
Ern = 'ERN',
|
|
871
|
+
/** Ethiopian Birr (ETB). */
|
|
872
|
+
Etb = 'ETB',
|
|
873
|
+
/** Euro (EUR). */
|
|
874
|
+
Eur = 'EUR',
|
|
875
|
+
/** Fijian Dollars (FJD). */
|
|
876
|
+
Fjd = 'FJD',
|
|
877
|
+
/** Falkland Islands Pounds (FKP). */
|
|
878
|
+
Fkp = 'FKP',
|
|
879
|
+
/** United Kingdom Pounds (GBP). */
|
|
880
|
+
Gbp = 'GBP',
|
|
881
|
+
/** Georgian Lari (GEL). */
|
|
882
|
+
Gel = 'GEL',
|
|
883
|
+
/** Ghanaian Cedi (GHS). */
|
|
884
|
+
Ghs = 'GHS',
|
|
885
|
+
/** Gibraltar Pounds (GIP). */
|
|
886
|
+
Gip = 'GIP',
|
|
887
|
+
/** Gambian Dalasi (GMD). */
|
|
888
|
+
Gmd = 'GMD',
|
|
889
|
+
/** Guinean Franc (GNF). */
|
|
890
|
+
Gnf = 'GNF',
|
|
891
|
+
/** Guatemalan Quetzal (GTQ). */
|
|
892
|
+
Gtq = 'GTQ',
|
|
893
|
+
/** Guyanese Dollar (GYD). */
|
|
894
|
+
Gyd = 'GYD',
|
|
895
|
+
/** Hong Kong Dollars (HKD). */
|
|
896
|
+
Hkd = 'HKD',
|
|
897
|
+
/** Honduran Lempira (HNL). */
|
|
898
|
+
Hnl = 'HNL',
|
|
899
|
+
/** Croatian Kuna (HRK). */
|
|
900
|
+
Hrk = 'HRK',
|
|
901
|
+
/** Haitian Gourde (HTG). */
|
|
902
|
+
Htg = 'HTG',
|
|
903
|
+
/** Hungarian Forint (HUF). */
|
|
904
|
+
Huf = 'HUF',
|
|
905
|
+
/** Indonesian Rupiah (IDR). */
|
|
906
|
+
Idr = 'IDR',
|
|
907
|
+
/** Israeli New Shekel (NIS). */
|
|
908
|
+
Ils = 'ILS',
|
|
909
|
+
/** Indian Rupees (INR). */
|
|
910
|
+
Inr = 'INR',
|
|
911
|
+
/** Iraqi Dinar (IQD). */
|
|
912
|
+
Iqd = 'IQD',
|
|
913
|
+
/** Iranian Rial (IRR). */
|
|
914
|
+
Irr = 'IRR',
|
|
915
|
+
/** Icelandic Kronur (ISK). */
|
|
916
|
+
Isk = 'ISK',
|
|
917
|
+
/** Jersey Pound. */
|
|
918
|
+
Jep = 'JEP',
|
|
919
|
+
/** Jamaican Dollars (JMD). */
|
|
920
|
+
Jmd = 'JMD',
|
|
921
|
+
/** Jordanian Dinar (JOD). */
|
|
922
|
+
Jod = 'JOD',
|
|
923
|
+
/** Japanese Yen (JPY). */
|
|
924
|
+
Jpy = 'JPY',
|
|
925
|
+
/** Kenyan Shilling (KES). */
|
|
926
|
+
Kes = 'KES',
|
|
927
|
+
/** Kyrgyzstani Som (KGS). */
|
|
928
|
+
Kgs = 'KGS',
|
|
929
|
+
/** Cambodian Riel. */
|
|
930
|
+
Khr = 'KHR',
|
|
931
|
+
/** Kiribati Dollar (KID). */
|
|
932
|
+
Kid = 'KID',
|
|
933
|
+
/** Comorian Franc (KMF). */
|
|
934
|
+
Kmf = 'KMF',
|
|
935
|
+
/** South Korean Won (KRW). */
|
|
936
|
+
Krw = 'KRW',
|
|
937
|
+
/** Kuwaiti Dinar (KWD). */
|
|
938
|
+
Kwd = 'KWD',
|
|
939
|
+
/** Cayman Dollars (KYD). */
|
|
940
|
+
Kyd = 'KYD',
|
|
941
|
+
/** Kazakhstani Tenge (KZT). */
|
|
942
|
+
Kzt = 'KZT',
|
|
943
|
+
/** Laotian Kip (LAK). */
|
|
944
|
+
Lak = 'LAK',
|
|
945
|
+
/** Lebanese Pounds (LBP). */
|
|
946
|
+
Lbp = 'LBP',
|
|
947
|
+
/** Sri Lankan Rupees (LKR). */
|
|
948
|
+
Lkr = 'LKR',
|
|
949
|
+
/** Liberian Dollar (LRD). */
|
|
950
|
+
Lrd = 'LRD',
|
|
951
|
+
/** Lesotho Loti (LSL). */
|
|
952
|
+
Lsl = 'LSL',
|
|
953
|
+
/** Lithuanian Litai (LTL). */
|
|
954
|
+
Ltl = 'LTL',
|
|
955
|
+
/** Latvian Lati (LVL). */
|
|
956
|
+
Lvl = 'LVL',
|
|
957
|
+
/** Libyan Dinar (LYD). */
|
|
958
|
+
Lyd = 'LYD',
|
|
959
|
+
/** Moroccan Dirham. */
|
|
960
|
+
Mad = 'MAD',
|
|
961
|
+
/** Moldovan Leu (MDL). */
|
|
962
|
+
Mdl = 'MDL',
|
|
963
|
+
/** Malagasy Ariary (MGA). */
|
|
964
|
+
Mga = 'MGA',
|
|
965
|
+
/** Macedonia Denar (MKD). */
|
|
966
|
+
Mkd = 'MKD',
|
|
967
|
+
/** Burmese Kyat (MMK). */
|
|
968
|
+
Mmk = 'MMK',
|
|
969
|
+
/** Mongolian Tugrik. */
|
|
970
|
+
Mnt = 'MNT',
|
|
971
|
+
/** Macanese Pataca (MOP). */
|
|
972
|
+
Mop = 'MOP',
|
|
973
|
+
/** Mauritanian Ouguiya (MRU). */
|
|
974
|
+
Mru = 'MRU',
|
|
975
|
+
/** Mauritian Rupee (MUR). */
|
|
976
|
+
Mur = 'MUR',
|
|
977
|
+
/** Maldivian Rufiyaa (MVR). */
|
|
978
|
+
Mvr = 'MVR',
|
|
979
|
+
/** Malawian Kwacha (MWK). */
|
|
980
|
+
Mwk = 'MWK',
|
|
981
|
+
/** Mexican Pesos (MXN). */
|
|
982
|
+
Mxn = 'MXN',
|
|
983
|
+
/** Malaysian Ringgits (MYR). */
|
|
984
|
+
Myr = 'MYR',
|
|
985
|
+
/** Mozambican Metical. */
|
|
986
|
+
Mzn = 'MZN',
|
|
987
|
+
/** Namibian Dollar. */
|
|
988
|
+
Nad = 'NAD',
|
|
989
|
+
/** Nigerian Naira (NGN). */
|
|
990
|
+
Ngn = 'NGN',
|
|
991
|
+
/** Nicaraguan Córdoba (NIO). */
|
|
992
|
+
Nio = 'NIO',
|
|
993
|
+
/** Norwegian Kroner (NOK). */
|
|
994
|
+
Nok = 'NOK',
|
|
995
|
+
/** Nepalese Rupee (NPR). */
|
|
996
|
+
Npr = 'NPR',
|
|
997
|
+
/** New Zealand Dollars (NZD). */
|
|
998
|
+
Nzd = 'NZD',
|
|
999
|
+
/** Omani Rial (OMR). */
|
|
1000
|
+
Omr = 'OMR',
|
|
1001
|
+
/** Panamian Balboa (PAB). */
|
|
1002
|
+
Pab = 'PAB',
|
|
1003
|
+
/** Peruvian Nuevo Sol (PEN). */
|
|
1004
|
+
Pen = 'PEN',
|
|
1005
|
+
/** Papua New Guinean Kina (PGK). */
|
|
1006
|
+
Pgk = 'PGK',
|
|
1007
|
+
/** Philippine Peso (PHP). */
|
|
1008
|
+
Php = 'PHP',
|
|
1009
|
+
/** Pakistani Rupee (PKR). */
|
|
1010
|
+
Pkr = 'PKR',
|
|
1011
|
+
/** Polish Zlotych (PLN). */
|
|
1012
|
+
Pln = 'PLN',
|
|
1013
|
+
/** Paraguayan Guarani (PYG). */
|
|
1014
|
+
Pyg = 'PYG',
|
|
1015
|
+
/** Qatari Rial (QAR). */
|
|
1016
|
+
Qar = 'QAR',
|
|
1017
|
+
/** Romanian Lei (RON). */
|
|
1018
|
+
Ron = 'RON',
|
|
1019
|
+
/** Serbian dinar (RSD). */
|
|
1020
|
+
Rsd = 'RSD',
|
|
1021
|
+
/** Russian Rubles (RUB). */
|
|
1022
|
+
Rub = 'RUB',
|
|
1023
|
+
/** Rwandan Franc (RWF). */
|
|
1024
|
+
Rwf = 'RWF',
|
|
1025
|
+
/** Saudi Riyal (SAR). */
|
|
1026
|
+
Sar = 'SAR',
|
|
1027
|
+
/** Solomon Islands Dollar (SBD). */
|
|
1028
|
+
Sbd = 'SBD',
|
|
1029
|
+
/** Seychellois Rupee (SCR). */
|
|
1030
|
+
Scr = 'SCR',
|
|
1031
|
+
/** Sudanese Pound (SDG). */
|
|
1032
|
+
Sdg = 'SDG',
|
|
1033
|
+
/** Swedish Kronor (SEK). */
|
|
1034
|
+
Sek = 'SEK',
|
|
1035
|
+
/** Singapore Dollars (SGD). */
|
|
1036
|
+
Sgd = 'SGD',
|
|
1037
|
+
/** Saint Helena Pounds (SHP). */
|
|
1038
|
+
Shp = 'SHP',
|
|
1039
|
+
/** Sierra Leonean Leone (SLL). */
|
|
1040
|
+
Sll = 'SLL',
|
|
1041
|
+
/** Somali Shilling (SOS). */
|
|
1042
|
+
Sos = 'SOS',
|
|
1043
|
+
/** Surinamese Dollar (SRD). */
|
|
1044
|
+
Srd = 'SRD',
|
|
1045
|
+
/** South Sudanese Pound (SSP). */
|
|
1046
|
+
Ssp = 'SSP',
|
|
1047
|
+
/**
|
|
1048
|
+
* Sao Tome And Principe Dobra (STD).
|
|
1049
|
+
* @deprecated `STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.
|
|
1050
|
+
*/
|
|
1051
|
+
Std = 'STD',
|
|
1052
|
+
/** Sao Tome And Principe Dobra (STN). */
|
|
1053
|
+
Stn = 'STN',
|
|
1054
|
+
/** Syrian Pound (SYP). */
|
|
1055
|
+
Syp = 'SYP',
|
|
1056
|
+
/** Swazi Lilangeni (SZL). */
|
|
1057
|
+
Szl = 'SZL',
|
|
1058
|
+
/** Thai baht (THB). */
|
|
1059
|
+
Thb = 'THB',
|
|
1060
|
+
/** Tajikistani Somoni (TJS). */
|
|
1061
|
+
Tjs = 'TJS',
|
|
1062
|
+
/** Turkmenistani Manat (TMT). */
|
|
1063
|
+
Tmt = 'TMT',
|
|
1064
|
+
/** Tunisian Dinar (TND). */
|
|
1065
|
+
Tnd = 'TND',
|
|
1066
|
+
/** Tongan Pa'anga (TOP). */
|
|
1067
|
+
Top = 'TOP',
|
|
1068
|
+
/** Turkish Lira (TRY). */
|
|
1069
|
+
Try = 'TRY',
|
|
1070
|
+
/** Trinidad and Tobago Dollars (TTD). */
|
|
1071
|
+
Ttd = 'TTD',
|
|
1072
|
+
/** Taiwan Dollars (TWD). */
|
|
1073
|
+
Twd = 'TWD',
|
|
1074
|
+
/** Tanzanian Shilling (TZS). */
|
|
1075
|
+
Tzs = 'TZS',
|
|
1076
|
+
/** Ukrainian Hryvnia (UAH). */
|
|
1077
|
+
Uah = 'UAH',
|
|
1078
|
+
/** Ugandan Shilling (UGX). */
|
|
1079
|
+
Ugx = 'UGX',
|
|
1080
|
+
/** United States Dollars (USD). */
|
|
1081
|
+
Usd = 'USD',
|
|
1082
|
+
/** Uruguayan Pesos (UYU). */
|
|
1083
|
+
Uyu = 'UYU',
|
|
1084
|
+
/** Uzbekistan som (UZS). */
|
|
1085
|
+
Uzs = 'UZS',
|
|
1086
|
+
/** Venezuelan Bolivares (VED). */
|
|
1087
|
+
Ved = 'VED',
|
|
1088
|
+
/**
|
|
1089
|
+
* Venezuelan Bolivares (VEF).
|
|
1090
|
+
* @deprecated `VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.
|
|
1091
|
+
*/
|
|
1092
|
+
Vef = 'VEF',
|
|
1093
|
+
/** Venezuelan Bolivares Soberanos (VES). */
|
|
1094
|
+
Ves = 'VES',
|
|
1095
|
+
/** Vietnamese đồng (VND). */
|
|
1096
|
+
Vnd = 'VND',
|
|
1097
|
+
/** Vanuatu Vatu (VUV). */
|
|
1098
|
+
Vuv = 'VUV',
|
|
1099
|
+
/** Samoan Tala (WST). */
|
|
1100
|
+
Wst = 'WST',
|
|
1101
|
+
/** Central African CFA Franc (XAF). */
|
|
1102
|
+
Xaf = 'XAF',
|
|
1103
|
+
/** East Caribbean Dollar (XCD). */
|
|
1104
|
+
Xcd = 'XCD',
|
|
1105
|
+
/** West African CFA franc (XOF). */
|
|
1106
|
+
Xof = 'XOF',
|
|
1107
|
+
/** CFP Franc (XPF). */
|
|
1108
|
+
Xpf = 'XPF',
|
|
1109
|
+
/** Unrecognized currency. */
|
|
1110
|
+
Xxx = 'XXX',
|
|
1111
|
+
/** Yemeni Rial (YER). */
|
|
1112
|
+
Yer = 'YER',
|
|
1113
|
+
/** South African Rand (ZAR). */
|
|
1114
|
+
Zar = 'ZAR',
|
|
1115
|
+
/** Zambian Kwacha (ZMW). */
|
|
1116
|
+
Zmw = 'ZMW'
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
/** A custom product. */
|
|
1120
|
+
export type CustomProduct = {
|
|
1121
|
+
__typename?: 'CustomProduct';
|
|
1122
|
+
/** Whether the merchandise is a gift card. */
|
|
1123
|
+
isGiftCard: Scalars['Boolean'];
|
|
1124
|
+
/** Whether the merchandise requires shipping. */
|
|
1125
|
+
requiresShipping: Scalars['Boolean'];
|
|
1126
|
+
/** The localized title of the product in the customer’s locale. */
|
|
1127
|
+
title: Scalars['String'];
|
|
1128
|
+
/** The weight of the product variant in the unit system specified with `weight_unit`. */
|
|
1129
|
+
weight?: Maybe<Scalars['Float']>;
|
|
1130
|
+
/** Unit of measurement for weight. */
|
|
1131
|
+
weightUnit: WeightUnit;
|
|
1132
|
+
};
|
|
1133
|
+
|
|
1134
|
+
/** Represents a customer with the shop. */
|
|
1135
|
+
export type Customer = HasMetafields & {
|
|
1136
|
+
__typename?: 'Customer';
|
|
1137
|
+
/**
|
|
1138
|
+
* The total amount of money spent by the customer. Converted from the shop's
|
|
1139
|
+
* currency to the currency of the cart using a market rate.
|
|
1140
|
+
*/
|
|
1141
|
+
amountSpent: MoneyV2;
|
|
1142
|
+
/** The customer’s name, email or phone number. */
|
|
1143
|
+
displayName: Scalars['String'];
|
|
1144
|
+
/** The customer’s email address. */
|
|
1145
|
+
email?: Maybe<Scalars['String']>;
|
|
1146
|
+
/** The customer's first name. */
|
|
1147
|
+
firstName?: Maybe<Scalars['String']>;
|
|
1148
|
+
/** Whether the customer has any of the given tags. */
|
|
1149
|
+
hasAnyTag: Scalars['Boolean'];
|
|
1150
|
+
/** Whether the customer has the given tags. */
|
|
1151
|
+
hasTags: Array<HasTagResponse>;
|
|
1152
|
+
/** A unique identifier for the customer. */
|
|
1153
|
+
id: Scalars['ID'];
|
|
1154
|
+
/** The customer's last name. */
|
|
1155
|
+
lastName?: Maybe<Scalars['String']>;
|
|
1156
|
+
/** Returns a metafield by namespace and key that belongs to the resource. */
|
|
1157
|
+
metafield?: Maybe<Metafield>;
|
|
1158
|
+
/** The number of orders made by the customer. */
|
|
1159
|
+
numberOfOrders: Scalars['Int'];
|
|
1160
|
+
};
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
/** Represents a customer with the shop. */
|
|
1164
|
+
export type CustomerHasAnyTagArgs = {
|
|
1165
|
+
tags?: Array<Scalars['String']>;
|
|
1166
|
+
};
|
|
1167
|
+
|
|
1168
|
+
|
|
1169
|
+
/** Represents a customer with the shop. */
|
|
1170
|
+
export type CustomerHasTagsArgs = {
|
|
1171
|
+
tags?: Array<Scalars['String']>;
|
|
1172
|
+
};
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
/** Represents a customer with the shop. */
|
|
1176
|
+
export type CustomerMetafieldArgs = {
|
|
1177
|
+
key: Scalars['String'];
|
|
1178
|
+
namespace?: InputMaybe<Scalars['String']>;
|
|
1179
|
+
};
|
|
1180
|
+
|
|
1181
|
+
/** Represents information about the merchandise in the cart. */
|
|
1182
|
+
export type DeliverableCartLine = {
|
|
1183
|
+
__typename?: 'DeliverableCartLine';
|
|
1184
|
+
/**
|
|
1185
|
+
* Retrieve a cart line attribute by key.
|
|
1186
|
+
*
|
|
1187
|
+
* Cart line attributes are also known as line item properties in Liquid.
|
|
1188
|
+
*/
|
|
1189
|
+
attribute?: Maybe<Attribute>;
|
|
1190
|
+
/** The ID of the cart line. */
|
|
1191
|
+
id: Scalars['ID'];
|
|
1192
|
+
/** The merchandise that the buyer intends to purchase. */
|
|
1193
|
+
merchandise: Merchandise;
|
|
1194
|
+
/** The quantity of the merchandise that the customer intends to purchase. */
|
|
1195
|
+
quantity: Scalars['Int'];
|
|
1196
|
+
};
|
|
1197
|
+
|
|
1198
|
+
|
|
1199
|
+
/** Represents information about the merchandise in the cart. */
|
|
1200
|
+
export type DeliverableCartLineAttributeArgs = {
|
|
1201
|
+
key?: InputMaybe<Scalars['String']>;
|
|
1202
|
+
};
|
|
1203
|
+
|
|
1204
|
+
/** The target delivery group. */
|
|
1205
|
+
export type DeliveryGroupTarget = {
|
|
1206
|
+
/** The ID of the target delivery group. */
|
|
1207
|
+
id: Scalars['ID'];
|
|
1208
|
+
};
|
|
1209
|
+
|
|
1210
|
+
/** List of different delivery method types. */
|
|
1211
|
+
export enum DeliveryMethod {
|
|
1212
|
+
/** Local Delivery. */
|
|
1213
|
+
Local = 'LOCAL',
|
|
1214
|
+
/** None. */
|
|
1215
|
+
None = 'NONE',
|
|
1216
|
+
/** Shipping to a Pickup Point. */
|
|
1217
|
+
PickupPoint = 'PICKUP_POINT',
|
|
1218
|
+
/** Local Pickup. */
|
|
1219
|
+
PickUp = 'PICK_UP',
|
|
1220
|
+
/** Retail. */
|
|
1221
|
+
Retail = 'RETAIL',
|
|
1222
|
+
/** Shipping. */
|
|
1223
|
+
Shipping = 'SHIPPING'
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
/** The target delivery option. */
|
|
1227
|
+
export type DeliveryOptionTarget = {
|
|
1228
|
+
/** The handle of the target delivery option. */
|
|
1229
|
+
handle: Scalars['Handle'];
|
|
1230
|
+
};
|
|
1231
|
+
|
|
1232
|
+
/** The discount to be applied. */
|
|
1233
|
+
export type Discount = {
|
|
1234
|
+
/** The discount message. */
|
|
1235
|
+
message?: InputMaybe<Scalars['String']>;
|
|
1236
|
+
/** The targets of the discount. */
|
|
1237
|
+
targets: Array<Target>;
|
|
1238
|
+
/** The value of the discount. */
|
|
1239
|
+
value: Value;
|
|
1240
|
+
};
|
|
1241
|
+
|
|
1242
|
+
/** A discount wrapper node. */
|
|
1243
|
+
export type DiscountNode = HasMetafields & {
|
|
1244
|
+
__typename?: 'DiscountNode';
|
|
1245
|
+
/** Returns a metafield by namespace and key that belongs to the resource. */
|
|
1246
|
+
metafield?: Maybe<Metafield>;
|
|
1247
|
+
};
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
/** A discount wrapper node. */
|
|
1251
|
+
export type DiscountNodeMetafieldArgs = {
|
|
1252
|
+
key: Scalars['String'];
|
|
1253
|
+
namespace?: InputMaybe<Scalars['String']>;
|
|
1254
|
+
};
|
|
1255
|
+
|
|
1256
|
+
/** A fixed amount value. */
|
|
1257
|
+
export type FixedAmount = {
|
|
1258
|
+
/**
|
|
1259
|
+
* The fixed amount value of the discount, in the currency of the cart.
|
|
1260
|
+
*
|
|
1261
|
+
* The amount must be greater than or equal to 0.
|
|
1262
|
+
*/
|
|
1263
|
+
amount: Scalars['Decimal'];
|
|
1264
|
+
};
|
|
1265
|
+
|
|
1266
|
+
/** The result of the function. In API versions 2023-10 and beyond, this type is deprecated in favor of `FunctionRunResult`. */
|
|
1267
|
+
export type FunctionResult = {
|
|
1268
|
+
/** The list of discounts to be applied. */
|
|
1269
|
+
discounts: Array<Discount>;
|
|
1270
|
+
};
|
|
1271
|
+
|
|
1272
|
+
/** The result of the function. */
|
|
1273
|
+
export type FunctionRunResult = {
|
|
1274
|
+
/** The list of discounts to be applied. */
|
|
1275
|
+
discounts: Array<Discount>;
|
|
1276
|
+
};
|
|
1277
|
+
|
|
1278
|
+
/** Represents information about the metafields associated to the specified resource. */
|
|
1279
|
+
export type HasMetafields = {
|
|
1280
|
+
/** Returns a metafield by namespace and key that belongs to the resource. */
|
|
1281
|
+
metafield?: Maybe<Metafield>;
|
|
1282
|
+
};
|
|
1283
|
+
|
|
1284
|
+
|
|
1285
|
+
/** Represents information about the metafields associated to the specified resource. */
|
|
1286
|
+
export type HasMetafieldsMetafieldArgs = {
|
|
1287
|
+
key: Scalars['String'];
|
|
1288
|
+
namespace?: InputMaybe<Scalars['String']>;
|
|
1289
|
+
};
|
|
1290
|
+
|
|
1291
|
+
/** Represents whether the current object has the given tag. */
|
|
1292
|
+
export type HasTagResponse = {
|
|
1293
|
+
__typename?: 'HasTagResponse';
|
|
1294
|
+
/** Whether the current object has the tag. */
|
|
1295
|
+
hasTag: Scalars['Boolean'];
|
|
1296
|
+
/** The tag. */
|
|
1297
|
+
tag: Scalars['String'];
|
|
1298
|
+
};
|
|
1299
|
+
|
|
1300
|
+
/** The input object for the function. */
|
|
1301
|
+
export type Input = {
|
|
1302
|
+
__typename?: 'Input';
|
|
1303
|
+
/** The cart. */
|
|
1304
|
+
cart: Cart;
|
|
1305
|
+
/** The discount node executing the function. */
|
|
1306
|
+
discountNode: DiscountNode;
|
|
1307
|
+
/** The localization of the Function execution context. */
|
|
1308
|
+
localization: Localization;
|
|
1309
|
+
/** The conversion rate between the shop's currency and the currency of the cart. */
|
|
1310
|
+
presentmentCurrencyRate: Scalars['Decimal'];
|
|
1311
|
+
/** Information about the shop. */
|
|
1312
|
+
shop: Shop;
|
|
1313
|
+
};
|
|
1314
|
+
|
|
1315
|
+
/** A language. */
|
|
1316
|
+
export type Language = {
|
|
1317
|
+
__typename?: 'Language';
|
|
1318
|
+
/** The ISO code. */
|
|
1319
|
+
isoCode: LanguageCode;
|
|
1320
|
+
};
|
|
1321
|
+
|
|
1322
|
+
/** ISO 639-1 language codes supported by Shopify. */
|
|
1323
|
+
export enum LanguageCode {
|
|
1324
|
+
/** Afrikaans. */
|
|
1325
|
+
Af = 'AF',
|
|
1326
|
+
/** Akan. */
|
|
1327
|
+
Ak = 'AK',
|
|
1328
|
+
/** Amharic. */
|
|
1329
|
+
Am = 'AM',
|
|
1330
|
+
/** Arabic. */
|
|
1331
|
+
Ar = 'AR',
|
|
1332
|
+
/** Assamese. */
|
|
1333
|
+
As = 'AS',
|
|
1334
|
+
/** Azerbaijani. */
|
|
1335
|
+
Az = 'AZ',
|
|
1336
|
+
/** Belarusian. */
|
|
1337
|
+
Be = 'BE',
|
|
1338
|
+
/** Bulgarian. */
|
|
1339
|
+
Bg = 'BG',
|
|
1340
|
+
/** Bambara. */
|
|
1341
|
+
Bm = 'BM',
|
|
1342
|
+
/** Bangla. */
|
|
1343
|
+
Bn = 'BN',
|
|
1344
|
+
/** Tibetan. */
|
|
1345
|
+
Bo = 'BO',
|
|
1346
|
+
/** Breton. */
|
|
1347
|
+
Br = 'BR',
|
|
1348
|
+
/** Bosnian. */
|
|
1349
|
+
Bs = 'BS',
|
|
1350
|
+
/** Catalan. */
|
|
1351
|
+
Ca = 'CA',
|
|
1352
|
+
/** Chechen. */
|
|
1353
|
+
Ce = 'CE',
|
|
1354
|
+
/** Czech. */
|
|
1355
|
+
Cs = 'CS',
|
|
1356
|
+
/** Church Slavic. */
|
|
1357
|
+
Cu = 'CU',
|
|
1358
|
+
/** Welsh. */
|
|
1359
|
+
Cy = 'CY',
|
|
1360
|
+
/** Danish. */
|
|
1361
|
+
Da = 'DA',
|
|
1362
|
+
/** German. */
|
|
1363
|
+
De = 'DE',
|
|
1364
|
+
/** Dzongkha. */
|
|
1365
|
+
Dz = 'DZ',
|
|
1366
|
+
/** Ewe. */
|
|
1367
|
+
Ee = 'EE',
|
|
1368
|
+
/** Greek. */
|
|
1369
|
+
El = 'EL',
|
|
1370
|
+
/** English. */
|
|
1371
|
+
En = 'EN',
|
|
1372
|
+
/** Esperanto. */
|
|
1373
|
+
Eo = 'EO',
|
|
1374
|
+
/** Spanish. */
|
|
1375
|
+
Es = 'ES',
|
|
1376
|
+
/** Estonian. */
|
|
1377
|
+
Et = 'ET',
|
|
1378
|
+
/** Basque. */
|
|
1379
|
+
Eu = 'EU',
|
|
1380
|
+
/** Persian. */
|
|
1381
|
+
Fa = 'FA',
|
|
1382
|
+
/** Fulah. */
|
|
1383
|
+
Ff = 'FF',
|
|
1384
|
+
/** Finnish. */
|
|
1385
|
+
Fi = 'FI',
|
|
1386
|
+
/** Faroese. */
|
|
1387
|
+
Fo = 'FO',
|
|
1388
|
+
/** French. */
|
|
1389
|
+
Fr = 'FR',
|
|
1390
|
+
/** Western Frisian. */
|
|
1391
|
+
Fy = 'FY',
|
|
1392
|
+
/** Irish. */
|
|
1393
|
+
Ga = 'GA',
|
|
1394
|
+
/** Scottish Gaelic. */
|
|
1395
|
+
Gd = 'GD',
|
|
1396
|
+
/** Galician. */
|
|
1397
|
+
Gl = 'GL',
|
|
1398
|
+
/** Gujarati. */
|
|
1399
|
+
Gu = 'GU',
|
|
1400
|
+
/** Manx. */
|
|
1401
|
+
Gv = 'GV',
|
|
1402
|
+
/** Hausa. */
|
|
1403
|
+
Ha = 'HA',
|
|
1404
|
+
/** Hebrew. */
|
|
1405
|
+
He = 'HE',
|
|
1406
|
+
/** Hindi. */
|
|
1407
|
+
Hi = 'HI',
|
|
1408
|
+
/** Croatian. */
|
|
1409
|
+
Hr = 'HR',
|
|
1410
|
+
/** Hungarian. */
|
|
1411
|
+
Hu = 'HU',
|
|
1412
|
+
/** Armenian. */
|
|
1413
|
+
Hy = 'HY',
|
|
1414
|
+
/** Interlingua. */
|
|
1415
|
+
Ia = 'IA',
|
|
1416
|
+
/** Indonesian. */
|
|
1417
|
+
Id = 'ID',
|
|
1418
|
+
/** Igbo. */
|
|
1419
|
+
Ig = 'IG',
|
|
1420
|
+
/** Sichuan Yi. */
|
|
1421
|
+
Ii = 'II',
|
|
1422
|
+
/** Icelandic. */
|
|
1423
|
+
Is = 'IS',
|
|
1424
|
+
/** Italian. */
|
|
1425
|
+
It = 'IT',
|
|
1426
|
+
/** Japanese. */
|
|
1427
|
+
Ja = 'JA',
|
|
1428
|
+
/** Javanese. */
|
|
1429
|
+
Jv = 'JV',
|
|
1430
|
+
/** Georgian. */
|
|
1431
|
+
Ka = 'KA',
|
|
1432
|
+
/** Kikuyu. */
|
|
1433
|
+
Ki = 'KI',
|
|
1434
|
+
/** Kazakh. */
|
|
1435
|
+
Kk = 'KK',
|
|
1436
|
+
/** Kalaallisut. */
|
|
1437
|
+
Kl = 'KL',
|
|
1438
|
+
/** Khmer. */
|
|
1439
|
+
Km = 'KM',
|
|
1440
|
+
/** Kannada. */
|
|
1441
|
+
Kn = 'KN',
|
|
1442
|
+
/** Korean. */
|
|
1443
|
+
Ko = 'KO',
|
|
1444
|
+
/** Kashmiri. */
|
|
1445
|
+
Ks = 'KS',
|
|
1446
|
+
/** Kurdish. */
|
|
1447
|
+
Ku = 'KU',
|
|
1448
|
+
/** Cornish. */
|
|
1449
|
+
Kw = 'KW',
|
|
1450
|
+
/** Kyrgyz. */
|
|
1451
|
+
Ky = 'KY',
|
|
1452
|
+
/** Luxembourgish. */
|
|
1453
|
+
Lb = 'LB',
|
|
1454
|
+
/** Ganda. */
|
|
1455
|
+
Lg = 'LG',
|
|
1456
|
+
/** Lingala. */
|
|
1457
|
+
Ln = 'LN',
|
|
1458
|
+
/** Lao. */
|
|
1459
|
+
Lo = 'LO',
|
|
1460
|
+
/** Lithuanian. */
|
|
1461
|
+
Lt = 'LT',
|
|
1462
|
+
/** Luba-Katanga. */
|
|
1463
|
+
Lu = 'LU',
|
|
1464
|
+
/** Latvian. */
|
|
1465
|
+
Lv = 'LV',
|
|
1466
|
+
/** Malagasy. */
|
|
1467
|
+
Mg = 'MG',
|
|
1468
|
+
/** Māori. */
|
|
1469
|
+
Mi = 'MI',
|
|
1470
|
+
/** Macedonian. */
|
|
1471
|
+
Mk = 'MK',
|
|
1472
|
+
/** Malayalam. */
|
|
1473
|
+
Ml = 'ML',
|
|
1474
|
+
/** Mongolian. */
|
|
1475
|
+
Mn = 'MN',
|
|
1476
|
+
/** Marathi. */
|
|
1477
|
+
Mr = 'MR',
|
|
1478
|
+
/** Malay. */
|
|
1479
|
+
Ms = 'MS',
|
|
1480
|
+
/** Maltese. */
|
|
1481
|
+
Mt = 'MT',
|
|
1482
|
+
/** Burmese. */
|
|
1483
|
+
My = 'MY',
|
|
1484
|
+
/** Norwegian (Bokmål). */
|
|
1485
|
+
Nb = 'NB',
|
|
1486
|
+
/** North Ndebele. */
|
|
1487
|
+
Nd = 'ND',
|
|
1488
|
+
/** Nepali. */
|
|
1489
|
+
Ne = 'NE',
|
|
1490
|
+
/** Dutch. */
|
|
1491
|
+
Nl = 'NL',
|
|
1492
|
+
/** Norwegian Nynorsk. */
|
|
1493
|
+
Nn = 'NN',
|
|
1494
|
+
/** Norwegian. */
|
|
1495
|
+
No = 'NO',
|
|
1496
|
+
/** Oromo. */
|
|
1497
|
+
Om = 'OM',
|
|
1498
|
+
/** Odia. */
|
|
1499
|
+
Or = 'OR',
|
|
1500
|
+
/** Ossetic. */
|
|
1501
|
+
Os = 'OS',
|
|
1502
|
+
/** Punjabi. */
|
|
1503
|
+
Pa = 'PA',
|
|
1504
|
+
/** Polish. */
|
|
1505
|
+
Pl = 'PL',
|
|
1506
|
+
/** Pashto. */
|
|
1507
|
+
Ps = 'PS',
|
|
1508
|
+
/** Portuguese. */
|
|
1509
|
+
Pt = 'PT',
|
|
1510
|
+
/** Portuguese (Brazil). */
|
|
1511
|
+
PtBr = 'PT_BR',
|
|
1512
|
+
/** Portuguese (Portugal). */
|
|
1513
|
+
PtPt = 'PT_PT',
|
|
1514
|
+
/** Quechua. */
|
|
1515
|
+
Qu = 'QU',
|
|
1516
|
+
/** Romansh. */
|
|
1517
|
+
Rm = 'RM',
|
|
1518
|
+
/** Rundi. */
|
|
1519
|
+
Rn = 'RN',
|
|
1520
|
+
/** Romanian. */
|
|
1521
|
+
Ro = 'RO',
|
|
1522
|
+
/** Russian. */
|
|
1523
|
+
Ru = 'RU',
|
|
1524
|
+
/** Kinyarwanda. */
|
|
1525
|
+
Rw = 'RW',
|
|
1526
|
+
/** Sindhi. */
|
|
1527
|
+
Sd = 'SD',
|
|
1528
|
+
/** Northern Sami. */
|
|
1529
|
+
Se = 'SE',
|
|
1530
|
+
/** Sango. */
|
|
1531
|
+
Sg = 'SG',
|
|
1532
|
+
/** Sinhala. */
|
|
1533
|
+
Si = 'SI',
|
|
1534
|
+
/** Slovak. */
|
|
1535
|
+
Sk = 'SK',
|
|
1536
|
+
/** Slovenian. */
|
|
1537
|
+
Sl = 'SL',
|
|
1538
|
+
/** Shona. */
|
|
1539
|
+
Sn = 'SN',
|
|
1540
|
+
/** Somali. */
|
|
1541
|
+
So = 'SO',
|
|
1542
|
+
/** Albanian. */
|
|
1543
|
+
Sq = 'SQ',
|
|
1544
|
+
/** Serbian. */
|
|
1545
|
+
Sr = 'SR',
|
|
1546
|
+
/** Sundanese. */
|
|
1547
|
+
Su = 'SU',
|
|
1548
|
+
/** Swedish. */
|
|
1549
|
+
Sv = 'SV',
|
|
1550
|
+
/** Swahili. */
|
|
1551
|
+
Sw = 'SW',
|
|
1552
|
+
/** Tamil. */
|
|
1553
|
+
Ta = 'TA',
|
|
1554
|
+
/** Telugu. */
|
|
1555
|
+
Te = 'TE',
|
|
1556
|
+
/** Tajik. */
|
|
1557
|
+
Tg = 'TG',
|
|
1558
|
+
/** Thai. */
|
|
1559
|
+
Th = 'TH',
|
|
1560
|
+
/** Tigrinya. */
|
|
1561
|
+
Ti = 'TI',
|
|
1562
|
+
/** Turkmen. */
|
|
1563
|
+
Tk = 'TK',
|
|
1564
|
+
/** Tongan. */
|
|
1565
|
+
To = 'TO',
|
|
1566
|
+
/** Turkish. */
|
|
1567
|
+
Tr = 'TR',
|
|
1568
|
+
/** Tatar. */
|
|
1569
|
+
Tt = 'TT',
|
|
1570
|
+
/** Uyghur. */
|
|
1571
|
+
Ug = 'UG',
|
|
1572
|
+
/** Ukrainian. */
|
|
1573
|
+
Uk = 'UK',
|
|
1574
|
+
/** Urdu. */
|
|
1575
|
+
Ur = 'UR',
|
|
1576
|
+
/** Uzbek. */
|
|
1577
|
+
Uz = 'UZ',
|
|
1578
|
+
/** Vietnamese. */
|
|
1579
|
+
Vi = 'VI',
|
|
1580
|
+
/** Volapük. */
|
|
1581
|
+
Vo = 'VO',
|
|
1582
|
+
/** Wolof. */
|
|
1583
|
+
Wo = 'WO',
|
|
1584
|
+
/** Xhosa. */
|
|
1585
|
+
Xh = 'XH',
|
|
1586
|
+
/** Yiddish. */
|
|
1587
|
+
Yi = 'YI',
|
|
1588
|
+
/** Yoruba. */
|
|
1589
|
+
Yo = 'YO',
|
|
1590
|
+
/** Chinese. */
|
|
1591
|
+
Zh = 'ZH',
|
|
1592
|
+
/** Chinese (Simplified). */
|
|
1593
|
+
ZhCn = 'ZH_CN',
|
|
1594
|
+
/** Chinese (Traditional). */
|
|
1595
|
+
ZhTw = 'ZH_TW',
|
|
1596
|
+
/** Zulu. */
|
|
1597
|
+
Zu = 'ZU'
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
/** Represents limited information about the current time relative to the parent object. */
|
|
1601
|
+
export type LocalTime = {
|
|
1602
|
+
__typename?: 'LocalTime';
|
|
1603
|
+
/** The current date relative to the parent object. */
|
|
1604
|
+
date: Scalars['Date'];
|
|
1605
|
+
/** Returns true if the current date and time is at or past the given date and time, and false otherwise. */
|
|
1606
|
+
dateTimeAfter: Scalars['Boolean'];
|
|
1607
|
+
/** Returns true if the current date and time is before the given date and time, and false otherwise. */
|
|
1608
|
+
dateTimeBefore: Scalars['Boolean'];
|
|
1609
|
+
/** Returns true if the current date and time is between the two given date and times, and false otherwise. */
|
|
1610
|
+
dateTimeBetween: Scalars['Boolean'];
|
|
1611
|
+
/** Returns true if the current time is at or past the given time, and false otherwise. */
|
|
1612
|
+
timeAfter: Scalars['Boolean'];
|
|
1613
|
+
/** Returns true if the current time is at or past the given time, and false otherwise. */
|
|
1614
|
+
timeBefore: Scalars['Boolean'];
|
|
1615
|
+
/** Returns true if the current time is between the two given times, and false otherwise. */
|
|
1616
|
+
timeBetween: Scalars['Boolean'];
|
|
1617
|
+
};
|
|
1618
|
+
|
|
1619
|
+
|
|
1620
|
+
/** Represents limited information about the current time relative to the parent object. */
|
|
1621
|
+
export type LocalTimeDateTimeAfterArgs = {
|
|
1622
|
+
dateTime: Scalars['DateTimeWithoutTimezone'];
|
|
1623
|
+
};
|
|
1624
|
+
|
|
1625
|
+
|
|
1626
|
+
/** Represents limited information about the current time relative to the parent object. */
|
|
1627
|
+
export type LocalTimeDateTimeBeforeArgs = {
|
|
1628
|
+
dateTime: Scalars['DateTimeWithoutTimezone'];
|
|
1629
|
+
};
|
|
1630
|
+
|
|
1631
|
+
|
|
1632
|
+
/** Represents limited information about the current time relative to the parent object. */
|
|
1633
|
+
export type LocalTimeDateTimeBetweenArgs = {
|
|
1634
|
+
endDateTime: Scalars['DateTimeWithoutTimezone'];
|
|
1635
|
+
startDateTime: Scalars['DateTimeWithoutTimezone'];
|
|
1636
|
+
};
|
|
1637
|
+
|
|
1638
|
+
|
|
1639
|
+
/** Represents limited information about the current time relative to the parent object. */
|
|
1640
|
+
export type LocalTimeTimeAfterArgs = {
|
|
1641
|
+
time: Scalars['TimeWithoutTimezone'];
|
|
1642
|
+
};
|
|
1643
|
+
|
|
1644
|
+
|
|
1645
|
+
/** Represents limited information about the current time relative to the parent object. */
|
|
1646
|
+
export type LocalTimeTimeBeforeArgs = {
|
|
1647
|
+
time: Scalars['TimeWithoutTimezone'];
|
|
1648
|
+
};
|
|
1649
|
+
|
|
1650
|
+
|
|
1651
|
+
/** Represents limited information about the current time relative to the parent object. */
|
|
1652
|
+
export type LocalTimeTimeBetweenArgs = {
|
|
1653
|
+
endTime: Scalars['TimeWithoutTimezone'];
|
|
1654
|
+
startTime: Scalars['TimeWithoutTimezone'];
|
|
1655
|
+
};
|
|
1656
|
+
|
|
1657
|
+
/** Information about the localized experiences configured for the shop. */
|
|
1658
|
+
export type Localization = {
|
|
1659
|
+
__typename?: 'Localization';
|
|
1660
|
+
/** The country of the active localized experience. */
|
|
1661
|
+
country: Country;
|
|
1662
|
+
/** The language of the active localized experience. */
|
|
1663
|
+
language: Language;
|
|
1664
|
+
/** The market of the active localized experience. */
|
|
1665
|
+
market: Market;
|
|
1666
|
+
};
|
|
1667
|
+
|
|
1668
|
+
/** Represents a mailing address. */
|
|
1669
|
+
export type MailingAddress = {
|
|
1670
|
+
__typename?: 'MailingAddress';
|
|
1671
|
+
/** The first line of the address. Typically the street address or PO Box number. */
|
|
1672
|
+
address1?: Maybe<Scalars['String']>;
|
|
1673
|
+
/** The second line of the address. Typically the number of the apartment, suite, or unit. */
|
|
1674
|
+
address2?: Maybe<Scalars['String']>;
|
|
1675
|
+
/** The name of the city, district, village, or town. */
|
|
1676
|
+
city?: Maybe<Scalars['String']>;
|
|
1677
|
+
/** The name of the customer's company or organization. */
|
|
1678
|
+
company?: Maybe<Scalars['String']>;
|
|
1679
|
+
/** The two-letter code for the country of the address. For example, US. */
|
|
1680
|
+
countryCode?: Maybe<CountryCode>;
|
|
1681
|
+
/** The first name of the customer. */
|
|
1682
|
+
firstName?: Maybe<Scalars['String']>;
|
|
1683
|
+
/** The last name of the customer. */
|
|
1684
|
+
lastName?: Maybe<Scalars['String']>;
|
|
1685
|
+
/** The approximate latitude of the address. */
|
|
1686
|
+
latitude?: Maybe<Scalars['Float']>;
|
|
1687
|
+
/** The approximate longitude of the address. */
|
|
1688
|
+
longitude?: Maybe<Scalars['Float']>;
|
|
1689
|
+
/** The market of the address. */
|
|
1690
|
+
market?: Maybe<Market>;
|
|
1691
|
+
/** The full name of the customer, based on firstName and lastName. */
|
|
1692
|
+
name?: Maybe<Scalars['String']>;
|
|
1693
|
+
/** A unique phone number for the customer. Formatted using E.164 standard. For example, +16135551111. */
|
|
1694
|
+
phone?: Maybe<Scalars['String']>;
|
|
1695
|
+
/** The two-letter code for the region. For example, ON. */
|
|
1696
|
+
provinceCode?: Maybe<Scalars['String']>;
|
|
1697
|
+
/** The zip or postal code of the address. */
|
|
1698
|
+
zip?: Maybe<Scalars['String']>;
|
|
1699
|
+
};
|
|
1700
|
+
|
|
1701
|
+
/**
|
|
1702
|
+
* A market is a group of one or more regions that you want to target for international sales.
|
|
1703
|
+
* By creating a market, you can configure a distinct, localized shopping experience for
|
|
1704
|
+
* customers from a specific area of the world. For example, you can
|
|
1705
|
+
* [change currency](https://shopify.dev/api/admin-graphql/current/mutations/marketCurrencySettingsUpdate),
|
|
1706
|
+
* [configure international pricing](https://shopify.dev/api/examples/product-price-lists),
|
|
1707
|
+
* or [add market-specific domains or subfolders](https://shopify.dev/api/admin-graphql/current/objects/MarketWebPresence).
|
|
1708
|
+
*/
|
|
1709
|
+
export type Market = HasMetafields & {
|
|
1710
|
+
__typename?: 'Market';
|
|
1711
|
+
/** A human-readable unique string for the market automatically generated from its title. */
|
|
1712
|
+
handle: Scalars['Handle'];
|
|
1713
|
+
/** A globally-unique identifier. */
|
|
1714
|
+
id: Scalars['ID'];
|
|
1715
|
+
/** Returns a metafield by namespace and key that belongs to the resource. */
|
|
1716
|
+
metafield?: Maybe<Metafield>;
|
|
1717
|
+
/** A geographic region which comprises a market. */
|
|
1718
|
+
regions: Array<MarketRegion>;
|
|
1719
|
+
};
|
|
1720
|
+
|
|
1721
|
+
|
|
1722
|
+
/**
|
|
1723
|
+
* A market is a group of one or more regions that you want to target for international sales.
|
|
1724
|
+
* By creating a market, you can configure a distinct, localized shopping experience for
|
|
1725
|
+
* customers from a specific area of the world. For example, you can
|
|
1726
|
+
* [change currency](https://shopify.dev/api/admin-graphql/current/mutations/marketCurrencySettingsUpdate),
|
|
1727
|
+
* [configure international pricing](https://shopify.dev/api/examples/product-price-lists),
|
|
1728
|
+
* or [add market-specific domains or subfolders](https://shopify.dev/api/admin-graphql/current/objects/MarketWebPresence).
|
|
1729
|
+
*/
|
|
1730
|
+
export type MarketMetafieldArgs = {
|
|
1731
|
+
key: Scalars['String'];
|
|
1732
|
+
namespace?: InputMaybe<Scalars['String']>;
|
|
1733
|
+
};
|
|
1734
|
+
|
|
1735
|
+
/** Represents a region. */
|
|
1736
|
+
export type MarketRegion = {
|
|
1737
|
+
/** The name of the region in the language of the current localization. */
|
|
1738
|
+
name?: Maybe<Scalars['String']>;
|
|
1739
|
+
};
|
|
1740
|
+
|
|
1741
|
+
/** A country which comprises a market. */
|
|
1742
|
+
export type MarketRegionCountry = MarketRegion & {
|
|
1743
|
+
__typename?: 'MarketRegionCountry';
|
|
1744
|
+
/** The two-letter code for the country. */
|
|
1745
|
+
code: CountryCode;
|
|
1746
|
+
/** The country name in the language of the current localization. */
|
|
1747
|
+
name: Scalars['String'];
|
|
1748
|
+
};
|
|
1749
|
+
|
|
1750
|
+
/** The merchandise to be purchased at checkout. */
|
|
1751
|
+
export type Merchandise = CustomProduct | ProductVariant;
|
|
1752
|
+
|
|
1753
|
+
/**
|
|
1754
|
+
* [Metafields](https://shopify.dev/apps/metafields)
|
|
1755
|
+
* enable you to attach additional information to a
|
|
1756
|
+
* Shopify resource, such as a [Product](https://shopify.dev/api/admin-graphql/latest/objects/product)
|
|
1757
|
+
* or a [Collection](https://shopify.dev/api/admin-graphql/latest/objects/collection).
|
|
1758
|
+
* For more information about the Shopify resources that you can attach metafields to, refer to
|
|
1759
|
+
* [HasMetafields](https://shopify.dev/api/admin/graphql/reference/common-objects/HasMetafields).
|
|
1760
|
+
*/
|
|
1761
|
+
export type Metafield = {
|
|
1762
|
+
__typename?: 'Metafield';
|
|
1763
|
+
/**
|
|
1764
|
+
* The type of data that the metafield stores in the `value` field.
|
|
1765
|
+
* Refer to the list of [supported types](https://shopify.dev/apps/metafields/types).
|
|
1766
|
+
*/
|
|
1767
|
+
type: Scalars['String'];
|
|
1768
|
+
/** The data to store in the metafield. The data is always stored as a string, regardless of the metafield's type. */
|
|
1769
|
+
value: Scalars['String'];
|
|
1770
|
+
};
|
|
1771
|
+
|
|
1772
|
+
/** A monetary value with currency. */
|
|
1773
|
+
export type MoneyV2 = {
|
|
1774
|
+
__typename?: 'MoneyV2';
|
|
1775
|
+
/** Decimal money amount. */
|
|
1776
|
+
amount: Scalars['Decimal'];
|
|
1777
|
+
/** Currency of the money. */
|
|
1778
|
+
currencyCode: CurrencyCode;
|
|
1779
|
+
};
|
|
1780
|
+
|
|
1781
|
+
/** The root mutation for the API. */
|
|
1782
|
+
export type MutationRoot = {
|
|
1783
|
+
__typename?: 'MutationRoot';
|
|
1784
|
+
/**
|
|
1785
|
+
* Handles the Function result.
|
|
1786
|
+
* @deprecated Use the target-specific field instead.
|
|
1787
|
+
*/
|
|
1788
|
+
handleResult: Scalars['Void'];
|
|
1789
|
+
/** Handles the Function result for the purchase.shipping-discount.run target. */
|
|
1790
|
+
run: Scalars['Void'];
|
|
1791
|
+
};
|
|
1792
|
+
|
|
1793
|
+
|
|
1794
|
+
/** The root mutation for the API. */
|
|
1795
|
+
export type MutationRootHandleResultArgs = {
|
|
1796
|
+
result: FunctionResult;
|
|
1797
|
+
};
|
|
1798
|
+
|
|
1799
|
+
|
|
1800
|
+
/** The root mutation for the API. */
|
|
1801
|
+
export type MutationRootRunArgs = {
|
|
1802
|
+
result: FunctionRunResult;
|
|
1803
|
+
};
|
|
1804
|
+
|
|
1805
|
+
/** A percentage value. */
|
|
1806
|
+
export type Percentage = {
|
|
1807
|
+
/**
|
|
1808
|
+
* The percentage value.
|
|
1809
|
+
*
|
|
1810
|
+
* The value is validated against: >= 0.
|
|
1811
|
+
*/
|
|
1812
|
+
value: Scalars['Decimal'];
|
|
1813
|
+
};
|
|
1814
|
+
|
|
1815
|
+
/** Represents a product. */
|
|
1816
|
+
export type Product = HasMetafields & {
|
|
1817
|
+
__typename?: 'Product';
|
|
1818
|
+
/** A unique human-friendly string of the product's title. */
|
|
1819
|
+
handle: Scalars['Handle'];
|
|
1820
|
+
/** Whether the product has any of the given tags. */
|
|
1821
|
+
hasAnyTag: Scalars['Boolean'];
|
|
1822
|
+
/** Whether the product has the given tags. */
|
|
1823
|
+
hasTags: Array<HasTagResponse>;
|
|
1824
|
+
/** A globally-unique identifier. */
|
|
1825
|
+
id: Scalars['ID'];
|
|
1826
|
+
/** Whether the product is in any of the given collections. */
|
|
1827
|
+
inAnyCollection: Scalars['Boolean'];
|
|
1828
|
+
/** Whether the product is in the given collections. */
|
|
1829
|
+
inCollections: Array<CollectionMembership>;
|
|
1830
|
+
/** Whether the product is a gift card. */
|
|
1831
|
+
isGiftCard: Scalars['Boolean'];
|
|
1832
|
+
/** Returns a metafield by namespace and key that belongs to the resource. */
|
|
1833
|
+
metafield?: Maybe<Metafield>;
|
|
1834
|
+
/** The product type specified by the merchant. */
|
|
1835
|
+
productType?: Maybe<Scalars['String']>;
|
|
1836
|
+
/** The localized title of the product in the customer’s locale. */
|
|
1837
|
+
title: Scalars['String'];
|
|
1838
|
+
/** The name of the product's vendor. */
|
|
1839
|
+
vendor?: Maybe<Scalars['String']>;
|
|
1840
|
+
};
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
/** Represents a product. */
|
|
1844
|
+
export type ProductHasAnyTagArgs = {
|
|
1845
|
+
tags?: Array<Scalars['String']>;
|
|
1846
|
+
};
|
|
1847
|
+
|
|
1848
|
+
|
|
1849
|
+
/** Represents a product. */
|
|
1850
|
+
export type ProductHasTagsArgs = {
|
|
1851
|
+
tags?: Array<Scalars['String']>;
|
|
1852
|
+
};
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
/** Represents a product. */
|
|
1856
|
+
export type ProductInAnyCollectionArgs = {
|
|
1857
|
+
ids?: Array<Scalars['ID']>;
|
|
1858
|
+
};
|
|
1859
|
+
|
|
1860
|
+
|
|
1861
|
+
/** Represents a product. */
|
|
1862
|
+
export type ProductInCollectionsArgs = {
|
|
1863
|
+
ids?: Array<Scalars['ID']>;
|
|
1864
|
+
};
|
|
1865
|
+
|
|
1866
|
+
|
|
1867
|
+
/** Represents a product. */
|
|
1868
|
+
export type ProductMetafieldArgs = {
|
|
1869
|
+
key: Scalars['String'];
|
|
1870
|
+
namespace?: InputMaybe<Scalars['String']>;
|
|
1871
|
+
};
|
|
1872
|
+
|
|
1873
|
+
/** Represents a product variant. */
|
|
1874
|
+
export type ProductVariant = HasMetafields & {
|
|
1875
|
+
__typename?: 'ProductVariant';
|
|
1876
|
+
/** A globally-unique identifier. */
|
|
1877
|
+
id: Scalars['ID'];
|
|
1878
|
+
/** Returns a metafield by namespace and key that belongs to the resource. */
|
|
1879
|
+
metafield?: Maybe<Metafield>;
|
|
1880
|
+
/** The product that this variant belongs to. */
|
|
1881
|
+
product: Product;
|
|
1882
|
+
/** Whether the merchandise requires shipping. */
|
|
1883
|
+
requiresShipping: Scalars['Boolean'];
|
|
1884
|
+
/** An identifier for the product variant in the shop. Required in order to connect to a fulfillment service. */
|
|
1885
|
+
sku?: Maybe<Scalars['String']>;
|
|
1886
|
+
/** The localized title of the product variant in the customer’s locale. */
|
|
1887
|
+
title?: Maybe<Scalars['String']>;
|
|
1888
|
+
/** The weight of the product variant in the unit system specified with `weight_unit`. */
|
|
1889
|
+
weight?: Maybe<Scalars['Float']>;
|
|
1890
|
+
/** Unit of measurement for weight. */
|
|
1891
|
+
weightUnit: WeightUnit;
|
|
1892
|
+
};
|
|
1893
|
+
|
|
1894
|
+
|
|
1895
|
+
/** Represents a product variant. */
|
|
1896
|
+
export type ProductVariantMetafieldArgs = {
|
|
1897
|
+
key: Scalars['String'];
|
|
1898
|
+
namespace?: InputMaybe<Scalars['String']>;
|
|
1899
|
+
};
|
|
1900
|
+
|
|
1901
|
+
/** Represents information about the buyer that is interacting with the cart. */
|
|
1902
|
+
export type PurchasingCompany = {
|
|
1903
|
+
__typename?: 'PurchasingCompany';
|
|
1904
|
+
/** The company associated to the order or draft order. */
|
|
1905
|
+
company: Company;
|
|
1906
|
+
/** The company contact associated to the order or draft order. */
|
|
1907
|
+
contact?: Maybe<CompanyContact>;
|
|
1908
|
+
/** The company location associated to the order or draft order. */
|
|
1909
|
+
location: CompanyLocation;
|
|
1910
|
+
};
|
|
1911
|
+
|
|
1912
|
+
/** Represents how products and variants can be sold and purchased. */
|
|
1913
|
+
export type SellingPlan = {
|
|
1914
|
+
__typename?: 'SellingPlan';
|
|
1915
|
+
/** The description of the selling plan. */
|
|
1916
|
+
description?: Maybe<Scalars['String']>;
|
|
1917
|
+
/** A globally-unique identifier. */
|
|
1918
|
+
id: Scalars['ID'];
|
|
1919
|
+
/** The name of the selling plan. For example, '6 weeks of prepaid granola, delivered weekly'. */
|
|
1920
|
+
name: Scalars['String'];
|
|
1921
|
+
/** Whether purchasing the selling plan will result in multiple deliveries. */
|
|
1922
|
+
recurringDeliveries: Scalars['Boolean'];
|
|
1923
|
+
};
|
|
1924
|
+
|
|
1925
|
+
/**
|
|
1926
|
+
* Represents an association between a variant and a selling plan. Selling plan
|
|
1927
|
+
* allocations describe the options offered for each variant, and the price of the
|
|
1928
|
+
* variant when purchased with a selling plan.
|
|
1929
|
+
*/
|
|
1930
|
+
export type SellingPlanAllocation = {
|
|
1931
|
+
__typename?: 'SellingPlanAllocation';
|
|
1932
|
+
/**
|
|
1933
|
+
* A list of price adjustments, with a maximum of two. When there are two, the
|
|
1934
|
+
* first price adjustment goes into effect at the time of purchase, while the
|
|
1935
|
+
* second one starts after a certain number of orders. A price adjustment
|
|
1936
|
+
* represents how a selling plan affects pricing when a variant is purchased with
|
|
1937
|
+
* a selling plan. Prices display in the customer's currency if the shop is
|
|
1938
|
+
* configured for it.
|
|
1939
|
+
*/
|
|
1940
|
+
priceAdjustments: Array<SellingPlanAllocationPriceAdjustment>;
|
|
1941
|
+
/**
|
|
1942
|
+
* A representation of how products and variants can be sold and purchased. For
|
|
1943
|
+
* example, an individual selling plan could be '6 weeks of prepaid granola,
|
|
1944
|
+
* delivered weekly'.
|
|
1945
|
+
*/
|
|
1946
|
+
sellingPlan: SellingPlan;
|
|
1947
|
+
};
|
|
1948
|
+
|
|
1949
|
+
/** The resulting prices for variants when they're purchased with a specific selling plan. */
|
|
1950
|
+
export type SellingPlanAllocationPriceAdjustment = {
|
|
1951
|
+
__typename?: 'SellingPlanAllocationPriceAdjustment';
|
|
1952
|
+
/**
|
|
1953
|
+
* The effective price for a single delivery. For example, for a prepaid
|
|
1954
|
+
* subscription plan that includes 6 deliveries at the price of $48.00, the per
|
|
1955
|
+
* delivery price is $8.00.
|
|
1956
|
+
*/
|
|
1957
|
+
perDeliveryPrice: MoneyV2;
|
|
1958
|
+
/**
|
|
1959
|
+
* The price of the variant when it's purchased with a selling plan For example,
|
|
1960
|
+
* for a prepaid subscription plan that includes 6 deliveries of $10.00 granola,
|
|
1961
|
+
* where the customer gets 20% off, the price is 6 x $10.00 x 0.80 = $48.00.
|
|
1962
|
+
*/
|
|
1963
|
+
price: MoneyV2;
|
|
1964
|
+
};
|
|
1965
|
+
|
|
1966
|
+
/** Information about the shop. */
|
|
1967
|
+
export type Shop = HasMetafields & {
|
|
1968
|
+
__typename?: 'Shop';
|
|
1969
|
+
/** Information about the current time relative to the shop's timezone setting. */
|
|
1970
|
+
localTime: LocalTime;
|
|
1971
|
+
/** Returns a metafield by namespace and key that belongs to the resource. */
|
|
1972
|
+
metafield?: Maybe<Metafield>;
|
|
1973
|
+
};
|
|
1974
|
+
|
|
1975
|
+
|
|
1976
|
+
/** Information about the shop. */
|
|
1977
|
+
export type ShopMetafieldArgs = {
|
|
1978
|
+
key: Scalars['String'];
|
|
1979
|
+
namespace?: InputMaybe<Scalars['String']>;
|
|
1980
|
+
};
|
|
1981
|
+
|
|
1982
|
+
/** The target of the discount. */
|
|
1983
|
+
export type Target =
|
|
1984
|
+
/** The target delivery group. */
|
|
1985
|
+
{ deliveryGroup: DeliveryGroupTarget; deliveryOption?: never; }
|
|
1986
|
+
| /** The target delivery option. */
|
|
1987
|
+
{ deliveryGroup?: never; deliveryOption: DeliveryOptionTarget; };
|
|
1988
|
+
|
|
1989
|
+
/** The discount value. */
|
|
1990
|
+
export type Value =
|
|
1991
|
+
/** A fixed amount value. */
|
|
1992
|
+
{ fixedAmount: FixedAmount; percentage?: never; }
|
|
1993
|
+
| /** A percentage value. */
|
|
1994
|
+
{ fixedAmount?: never; percentage: Percentage; };
|
|
1995
|
+
|
|
1996
|
+
/** Units of measurement for weight. */
|
|
1997
|
+
export enum WeightUnit {
|
|
1998
|
+
/** Metric system unit of mass. */
|
|
1999
|
+
Grams = 'GRAMS',
|
|
2000
|
+
/** 1 kilogram equals 1000 grams. */
|
|
2001
|
+
Kilograms = 'KILOGRAMS',
|
|
2002
|
+
/** Imperial system unit of mass. */
|
|
2003
|
+
Ounces = 'OUNCES',
|
|
2004
|
+
/** 1 pound equals 16 ounces. */
|
|
2005
|
+
Pounds = 'POUNDS'
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
export type RunInputVariables = Exact<{
|
|
2009
|
+
customerTags?: InputMaybe<Array<Scalars['String']> | Scalars['String']>;
|
|
2010
|
+
productCollectionIds?: InputMaybe<Array<Scalars['ID']> | Scalars['ID']>;
|
|
2011
|
+
}>;
|
|
2012
|
+
|
|
2013
|
+
|
|
2014
|
+
export type RunInput = { __typename?: 'Input', cart: { __typename?: 'Cart', buyerIdentity?: { __typename?: 'BuyerIdentity', customer?: { __typename?: 'Customer', email?: string | null, hasTags: Array<{ __typename?: 'HasTagResponse', tag: string, hasTag: boolean }> } | null } | null, cost: { __typename?: 'CartCost', subtotalAmount: { __typename?: 'MoneyV2', amount: any } }, lines: Array<{ __typename?: 'CartLine', quantity: number, cost: { __typename?: 'CartLineCost', amountPerQuantity: { __typename?: 'MoneyV2', amount: any }, subtotalAmount: { __typename?: 'MoneyV2', amount: any }, totalAmount: { __typename?: 'MoneyV2', amount: any }, compareAtAmountPerQuantity?: { __typename?: 'MoneyV2', amount: any } | null }, sellingPlanAllocation?: { __typename?: 'SellingPlanAllocation', sellingPlan: { __typename?: 'SellingPlan', id: string } } | null, merchandise: { __typename: 'CustomProduct' } | { __typename: 'ProductVariant', id: string, product: { __typename?: 'Product', id: string, productType?: string | null, inAnyCollection: boolean, hasTags: Array<{ __typename?: 'HasTagResponse', tag: string, hasTag: boolean }> } } }>, deliveryGroups: Array<{ __typename?: 'CartDeliveryGroup', deliveryAddress?: { __typename?: 'MailingAddress', countryCode?: CountryCode | null } | null, deliveryOptions: Array<{ __typename?: 'CartDeliveryOption', title?: string | null, handle: any, code?: string | null, cost: { __typename?: 'MoneyV2', amount: any } }> }> }, discountNode: { __typename?: 'DiscountNode', metafield?: { __typename?: 'Metafield', value: string } | null } };
|