@shopify/hydrogen 2024.4.7 → 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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE IS AUTO-GENERATED, DO NOT EDIT
3
- * Based on Customer Account API 2024-04
3
+ * Based on Customer Account 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
  Decimal: {input: string; output: string};
32
32
  HTML: {input: string; output: string};
33
33
  ISO8601DateTime: {input: string; output: string};
34
+ JSON: {input: unknown; output: unknown};
34
35
  URL: {input: string; output: string};
35
36
  UnsignedInt64: {input: string; output: string};
36
37
  };
@@ -59,24 +60,6 @@ export type AdditionalFeeSale = Node &
59
60
  totalTaxAmount: MoneyV2;
60
61
  };
61
62
 
62
- /** Return type for `addressCreate` mutation. */
63
- export type AddressCreatePayload = {
64
- __typename?: 'AddressCreatePayload';
65
- /** The created address. */
66
- address?: Maybe<CustomerMailingAddress>;
67
- /** The list of errors that occurred from executing the mutation. */
68
- userErrors: Array<UserErrorsAddressUserErrors>;
69
- };
70
-
71
- /** Return type for `addressDelete` mutation. */
72
- export type AddressDeletePayload = {
73
- __typename?: 'AddressDeletePayload';
74
- /** The ID of the deleted address. */
75
- deletedAddressId?: Maybe<Scalars['ID']['output']>;
76
- /** The list of errors that occurred from executing the mutation. */
77
- userErrors: Array<UserErrorsAddressUserErrors>;
78
- };
79
-
80
63
  /** The address form field. */
81
64
  export type AddressFormField = {
82
65
  __typename?: 'AddressFormField';
@@ -118,15 +101,6 @@ export type AddressFormSettings = {
118
101
  phone: AddressFormField;
119
102
  };
120
103
 
121
- /** Return type for `addressUpdate` mutation. */
122
- export type AddressUpdatePayload = {
123
- __typename?: 'AddressUpdatePayload';
124
- /** The updated address. */
125
- address?: Maybe<CustomerMailingAddress>;
126
- /** The list of errors that occurred from executing the mutation. */
127
- userErrors: Array<UserErrorsAddressUserErrors>;
128
- };
129
-
130
104
  /** A sale event that results in an adjustment to the order price. */
131
105
  export type AdjustmentSale = Node &
132
106
  Sale & {
@@ -294,35 +268,6 @@ export type AvailableShippingRates = {
294
268
  shippingRates?: Maybe<Array<ShippingRate>>;
295
269
  };
296
270
 
297
- /** Represents the business account information. */
298
- export type BusinessAccount = {
299
- __typename?: 'BusinessAccount';
300
- /** The list of companies the customer operates in. */
301
- companies: CompanyConnection;
302
- /** The information of the customer's company. */
303
- company?: Maybe<Company>;
304
- /** A globally-unique ID. */
305
- id: Scalars['ID']['output'];
306
- /** The profile of the customer. */
307
- profile?: Maybe<Contact>;
308
- /** The profile of the customer. */
309
- profileV1?: Maybe<Contact>;
310
- };
311
-
312
- /** Represents the business account information. */
313
- export type BusinessAccountCompaniesArgs = {
314
- after?: InputMaybe<Scalars['String']['input']>;
315
- before?: InputMaybe<Scalars['String']['input']>;
316
- first?: InputMaybe<Scalars['Int']['input']>;
317
- last?: InputMaybe<Scalars['Int']['input']>;
318
- reverse?: InputMaybe<Scalars['Boolean']['input']>;
319
- };
320
-
321
- /** Represents the business account information. */
322
- export type BusinessAccountCompanyArgs = {
323
- id?: InputMaybe<Scalars['ID']['input']>;
324
- };
325
-
326
271
  /**
327
272
  * The input fields required for updating a business contact.
328
273
  *
@@ -347,15 +292,6 @@ export type BusinessContactUpdatePayload = {
347
292
  userErrors: Array<UserErrorsBusinessContactUserErrors>;
348
293
  };
349
294
 
350
- /** Return type for `businessContactUpdateV1` mutation. */
351
- export type BusinessContactUpdateV1Payload = {
352
- __typename?: 'BusinessContactUpdateV1Payload';
353
- /** The updated business contact information. */
354
- businessContact?: Maybe<Contact>;
355
- /** The list of errors that occurred from executing the mutation. */
356
- userErrors: Array<UserErrorsBusinessContactUserErrors>;
357
- };
358
-
359
295
  /** Possible error codes that can be returned by `BusinessCustomerUserError`. */
360
296
  export type BusinessCustomerErrorCode =
361
297
  /** The input value is blank. */
@@ -398,24 +334,6 @@ export type BusinessCustomerUserError = DisplayableError & {
398
334
  message: Scalars['String']['output'];
399
335
  };
400
336
 
401
- /** Return type for `businessLocationBillingAddressCreate` mutation. */
402
- export type BusinessLocationBillingAddressCreatePayload = {
403
- __typename?: 'BusinessLocationBillingAddressCreatePayload';
404
- /** The created address. */
405
- businessLocationBillingAddress?: Maybe<CompanyAddress>;
406
- /** The list of errors that occurred from executing the mutation. */
407
- userErrors: Array<UserErrorsCompanyAddressUserErrors>;
408
- };
409
-
410
- /** Return type for `businessLocationBillingAddressUpdate` mutation. */
411
- export type BusinessLocationBillingAddressUpdatePayload = {
412
- __typename?: 'BusinessLocationBillingAddressUpdatePayload';
413
- /** The updated address. */
414
- businessLocationBillingAddress?: Maybe<CompanyAddress>;
415
- /** The list of errors that occurred from executing the mutation. */
416
- userErrors: Array<UserErrorsCompanyAddressUserErrors>;
417
- };
418
-
419
337
  /** Return type for `businessLocationCreditCardAdd` mutation. */
420
338
  export type BusinessLocationCreditCardAddPayload = {
421
339
  __typename?: 'BusinessLocationCreditCardAddPayload';
@@ -452,24 +370,6 @@ export type BusinessLocationPaymentInstrumentRemovePayload = {
452
370
  userErrors: Array<UserErrorsBusinessLocationPaymentInstrumentUserErrors>;
453
371
  };
454
372
 
455
- /** Return type for `businessLocationShippingAddressCreate` mutation. */
456
- export type BusinessLocationShippingAddressCreatePayload = {
457
- __typename?: 'BusinessLocationShippingAddressCreatePayload';
458
- /** The created address. */
459
- businessLocationShippingAddress?: Maybe<CompanyAddress>;
460
- /** The list of errors that occurred from executing the mutation. */
461
- userErrors: Array<UserErrorsCompanyAddressUserErrors>;
462
- };
463
-
464
- /** Return type for `businessLocationShippingAddressUpdate` mutation. */
465
- export type BusinessLocationShippingAddressUpdatePayload = {
466
- __typename?: 'BusinessLocationShippingAddressUpdatePayload';
467
- /** The updated address. */
468
- businessLocationShippingAddress?: Maybe<CompanyAddress>;
469
- /** The list of errors that occurred from executing the mutation. */
470
- userErrors: Array<UserErrorsCompanyAddressUserErrors>;
471
- };
472
-
473
373
  /** The configuration for the buyer's checkout. */
474
374
  export type BuyerExperienceConfiguration = {
475
375
  __typename?: 'BuyerExperienceConfiguration';
@@ -658,8 +558,6 @@ export type Company = HasMetafields &
658
558
  orders: OrderConnection;
659
559
  /** The profile of the customer. */
660
560
  profile?: Maybe<CompanyContact>;
661
- /** The profile of the customer. */
662
- profileV1?: Maybe<Contact>;
663
561
  };
664
562
 
665
563
  /** Represents a company's information. */
@@ -754,7 +652,7 @@ export type CompanyAddress = Node & {
754
652
  phone?: Maybe<Scalars['String']['output']>;
755
653
  /** The region of the address, such as the province, state, or district. */
756
654
  province?: Maybe<Scalars['String']['output']>;
757
- /** The two-letter code for the region, for example, ON. */
655
+ /** The alphanumeric code for the region, for example, ON. */
758
656
  provinceCode?: Maybe<Scalars['String']['output']>;
759
657
  /** The identity of the recipient, for example, 'Receiving Department'. */
760
658
  recipient?: Maybe<Scalars['String']['output']>;
@@ -766,7 +664,7 @@ export type CompanyAddress = Node & {
766
664
  updatedAt: Scalars['DateTime']['output'];
767
665
  /** The zip or postal code of the address. */
768
666
  zip?: Maybe<Scalars['String']['output']>;
769
- /** The two-letter code for the region, for example, ON. */
667
+ /** The alphanumeric code for the region, for example, ON. */
770
668
  zoneCode?: Maybe<Scalars['String']['output']>;
771
669
  };
772
670
 
@@ -813,20 +711,6 @@ export type CompanyAddressType =
813
711
  /** The address is a shipping address. */
814
712
  | 'SHIPPING';
815
713
 
816
- /**
817
- * An auto-generated type for paginating through multiple Companies.
818
- *
819
- */
820
- export type CompanyConnection = {
821
- __typename?: 'CompanyConnection';
822
- /** A list of edges. */
823
- edges: Array<CompanyEdge>;
824
- /** A list of the nodes contained in CompanyEdge. */
825
- nodes: Array<Company>;
826
- /** Information to aid in pagination. */
827
- pageInfo: PageInfo;
828
- };
829
-
830
714
  /** Represents the customer's contact information. */
831
715
  export type CompanyContact = Node & {
832
716
  __typename?: 'CompanyContact';
@@ -842,8 +726,6 @@ export type CompanyContact = Node & {
842
726
  id: Scalars['ID']['output'];
843
727
  /** The list of locations that the company contact belongs to. */
844
728
  locations: CompanyLocationConnection;
845
- /** The list of locations that the company contact belongs to. */
846
- locationsV1: LocationConnection;
847
729
  /** The list of company contact's orders. */
848
730
  orders: OrderConnection;
849
731
  /** The current status of the company contact. */
@@ -883,17 +765,6 @@ export type CompanyContactLocationsArgs = {
883
765
  sortKey?: InputMaybe<CompanyLocationSortKeys>;
884
766
  };
885
767
 
886
- /** Represents the customer's contact information. */
887
- export type CompanyContactLocationsV1Args = {
888
- after?: InputMaybe<Scalars['String']['input']>;
889
- before?: InputMaybe<Scalars['String']['input']>;
890
- first?: InputMaybe<Scalars['Int']['input']>;
891
- last?: InputMaybe<Scalars['Int']['input']>;
892
- query?: InputMaybe<Scalars['String']['input']>;
893
- reverse?: InputMaybe<Scalars['Boolean']['input']>;
894
- sortKey?: InputMaybe<CompanyLocationSortKeys>;
895
- };
896
-
897
768
  /** Represents the customer's contact information. */
898
769
  export type CompanyContactOrdersArgs = {
899
770
  after?: InputMaybe<Scalars['String']['input']>;
@@ -954,8 +825,6 @@ export type CompanyContactRoleAssignment = Node & {
954
825
  __typename?: 'CompanyContactRoleAssignment';
955
826
  /** The company contact for whom this role is assigned. */
956
827
  contact: CompanyContact;
957
- /** The company contact for whom this role is assigned. */
958
- contactV1: Contact;
959
828
  /** A globally-unique ID. */
960
829
  id: Scalars['ID']['output'];
961
830
  /** The role that's assigned. */
@@ -1037,18 +906,6 @@ export type CompanyContactStatusType =
1037
906
  /** The contact is enabled and active. */
1038
907
  | 'ENABLED';
1039
908
 
1040
- /**
1041
- * An auto-generated type which holds one Company and a cursor during pagination.
1042
- *
1043
- */
1044
- export type CompanyEdge = {
1045
- __typename?: 'CompanyEdge';
1046
- /** A cursor for use in pagination. */
1047
- cursor: Scalars['String']['output'];
1048
- /** The item at the end of CompanyEdge. */
1049
- node: Company;
1050
- };
1051
-
1052
909
  /** Represents a company's business location. */
1053
910
  export type CompanyLocation = HasMetafields &
1054
911
  Node & {
@@ -1059,8 +916,6 @@ export type CompanyLocation = HasMetafields &
1059
916
  buyerExperienceConfiguration?: Maybe<BuyerExperienceConfiguration>;
1060
917
  /** The list of contacts under a particular business location. */
1061
918
  contacts: CompanyContactConnection;
1062
- /** The list of contacts under a particular business location. */
1063
- contactsV1: ContactConnection;
1064
919
  /** The credit card corresponding to the provided ID. */
1065
920
  creditCard?: Maybe<CustomerCreditCard>;
1066
921
  /** The list of stored credit cards. */
@@ -1108,17 +963,6 @@ export type CompanyLocationContactsArgs = {
1108
963
  sortKey?: InputMaybe<CompanyContactSortKeys>;
1109
964
  };
1110
965
 
1111
- /** Represents a company's business location. */
1112
- export type CompanyLocationContactsV1Args = {
1113
- after?: InputMaybe<Scalars['String']['input']>;
1114
- before?: InputMaybe<Scalars['String']['input']>;
1115
- first?: InputMaybe<Scalars['Int']['input']>;
1116
- last?: InputMaybe<Scalars['Int']['input']>;
1117
- query?: InputMaybe<Scalars['String']['input']>;
1118
- reverse?: InputMaybe<Scalars['Boolean']['input']>;
1119
- sortKey?: InputMaybe<CompanyContactSortKeys>;
1120
- };
1121
-
1122
966
  /** Represents a company's business location. */
1123
967
  export type CompanyLocationCreditCardArgs = {
1124
968
  id: Scalars['ID']['input'];
@@ -1233,161 +1077,6 @@ export type CompanyLocationSortKeys =
1233
1077
  /** Sort by the `updated_at` value. */
1234
1078
  | 'UPDATED_AT';
1235
1079
 
1236
- /** Represents customer's personal information. */
1237
- export type Contact = Node & {
1238
- __typename?: 'Contact';
1239
- /** The Draft Order corresponding to the provided ID. */
1240
- draftOrder?: Maybe<DraftOrder>;
1241
- /** The list of company draft orders. */
1242
- draftOrders: DraftOrderConnection;
1243
- /** The email address of the customer. */
1244
- email?: Maybe<Scalars['String']['output']>;
1245
- /** The email address of the contact. */
1246
- emailAddress?: Maybe<CustomerEmailAddress>;
1247
- /** The first name of the customer. */
1248
- firstName?: Maybe<Scalars['String']['output']>;
1249
- /** Whether the company contact has view permission on any location. */
1250
- hasOrdersViewPermissionOnAnyLocation: Scalars['Boolean']['output'];
1251
- /** Whether the company contact has permissions on locations in the scope. */
1252
- hasPermissionOnLocations: Scalars['Boolean']['output'];
1253
- /** A globally-unique ID. */
1254
- id: Scalars['ID']['output'];
1255
- /** The last name of the customer. */
1256
- lastName?: Maybe<Scalars['String']['output']>;
1257
- /** The locale of the customer. */
1258
- locale?: Maybe<Scalars['String']['output']>;
1259
- /** The Location corresponding to the provided ID. */
1260
- location?: Maybe<CompanyLocation>;
1261
- /** The Location corresponding to the provided ID. */
1262
- locationV1?: Maybe<Location>;
1263
- /** The list of locations that the business of the business contact belongs to. */
1264
- locations: CompanyLocationConnection;
1265
- /** The list of locations that the business of the business contact belongs to. */
1266
- locationsV1: LocationConnection;
1267
- /** The Order corresponding to the provided ID. */
1268
- order?: Maybe<Order>;
1269
- /** The Order corresponding to the provided ID. */
1270
- orderDetailsPageOrder?: Maybe<OrderDetailsPageOrder>;
1271
- /** The list of contact orders. */
1272
- orders: OrderConnection;
1273
- /** The phone number of the customer. */
1274
- phone?: Maybe<Scalars['String']['output']>;
1275
- /** The phone number of the customer. */
1276
- phoneNumber?: Maybe<CustomerPhoneNumber>;
1277
- /** The current status of the customer. */
1278
- status: CompanyContactStatusType;
1279
- /** Whether the company contact is exempt from being charged taxes on their orders. */
1280
- taxExempt: Scalars['Boolean']['output'];
1281
- /** The list of tax exemption types applied to the company_contact. */
1282
- taxExemptions: Array<TaxExemption>;
1283
- /** The list of tax exemptions applied to the company contact with additional details. */
1284
- taxExemptionsDetails: Array<TaxExemptionDetails>;
1285
- /** The title of the customer. */
1286
- title?: Maybe<Scalars['String']['output']>;
1287
- };
1288
-
1289
- /** Represents customer's personal information. */
1290
- export type ContactDraftOrderArgs = {
1291
- id: Scalars['ID']['input'];
1292
- };
1293
-
1294
- /** Represents customer's personal information. */
1295
- export type ContactDraftOrdersArgs = {
1296
- after?: InputMaybe<Scalars['String']['input']>;
1297
- before?: InputMaybe<Scalars['String']['input']>;
1298
- first?: InputMaybe<Scalars['Int']['input']>;
1299
- last?: InputMaybe<Scalars['Int']['input']>;
1300
- query?: InputMaybe<Scalars['String']['input']>;
1301
- reverse?: InputMaybe<Scalars['Boolean']['input']>;
1302
- sortKey?: InputMaybe<DraftOrderSortKeys>;
1303
- };
1304
-
1305
- /** Represents customer's personal information. */
1306
- export type ContactHasPermissionOnLocationsArgs = {
1307
- permissions: Array<PermittedOperation>;
1308
- resource: ResourceType;
1309
- scope: ContactPermissionLocationScopeType;
1310
- };
1311
-
1312
- /** Represents customer's personal information. */
1313
- export type ContactLocationArgs = {
1314
- id: Scalars['ID']['input'];
1315
- };
1316
-
1317
- /** Represents customer's personal information. */
1318
- export type ContactLocationV1Args = {
1319
- id: Scalars['ID']['input'];
1320
- };
1321
-
1322
- /** Represents customer's personal information. */
1323
- export type ContactLocationsArgs = {
1324
- after?: InputMaybe<Scalars['String']['input']>;
1325
- before?: InputMaybe<Scalars['String']['input']>;
1326
- first?: InputMaybe<Scalars['Int']['input']>;
1327
- last?: InputMaybe<Scalars['Int']['input']>;
1328
- query?: InputMaybe<Scalars['String']['input']>;
1329
- reverse?: InputMaybe<Scalars['Boolean']['input']>;
1330
- sortKey?: InputMaybe<CompanyLocationSortKeys>;
1331
- };
1332
-
1333
- /** Represents customer's personal information. */
1334
- export type ContactLocationsV1Args = {
1335
- after?: InputMaybe<Scalars['String']['input']>;
1336
- before?: InputMaybe<Scalars['String']['input']>;
1337
- first?: InputMaybe<Scalars['Int']['input']>;
1338
- last?: InputMaybe<Scalars['Int']['input']>;
1339
- query?: InputMaybe<Scalars['String']['input']>;
1340
- reverse?: InputMaybe<Scalars['Boolean']['input']>;
1341
- sortKey?: InputMaybe<CompanyLocationSortKeys>;
1342
- };
1343
-
1344
- /** Represents customer's personal information. */
1345
- export type ContactOrderArgs = {
1346
- id: Scalars['ID']['input'];
1347
- };
1348
-
1349
- /** Represents customer's personal information. */
1350
- export type ContactOrderDetailsPageOrderArgs = {
1351
- id: Scalars['ID']['input'];
1352
- };
1353
-
1354
- /** Represents customer's personal information. */
1355
- export type ContactOrdersArgs = {
1356
- after?: InputMaybe<Scalars['String']['input']>;
1357
- before?: InputMaybe<Scalars['String']['input']>;
1358
- first?: InputMaybe<Scalars['Int']['input']>;
1359
- last?: InputMaybe<Scalars['Int']['input']>;
1360
- query?: InputMaybe<Scalars['String']['input']>;
1361
- reverse?: InputMaybe<Scalars['Boolean']['input']>;
1362
- sortKey?: InputMaybe<OrderByContactSortKeys>;
1363
- };
1364
-
1365
- /**
1366
- * An auto-generated type for paginating through multiple Contacts.
1367
- *
1368
- */
1369
- export type ContactConnection = {
1370
- __typename?: 'ContactConnection';
1371
- /** A list of edges. */
1372
- edges: Array<ContactEdge>;
1373
- /** A list of the nodes contained in ContactEdge. */
1374
- nodes: Array<Contact>;
1375
- /** Information to aid in pagination. */
1376
- pageInfo: PageInfo;
1377
- };
1378
-
1379
- /**
1380
- * An auto-generated type which holds one Contact and a cursor during pagination.
1381
- *
1382
- */
1383
- export type ContactEdge = {
1384
- __typename?: 'ContactEdge';
1385
- /** A cursor for use in pagination. */
1386
- cursor: Scalars['String']['output'];
1387
- /** The item at the end of ContactEdge. */
1388
- node: Contact;
1389
- };
1390
-
1391
1080
  /**
1392
1081
  * Defines the extent of locations for which a contact holds permissions on a resource.
1393
1082
  *
@@ -2281,6 +1970,7 @@ export type CurrencyCode =
2281
1970
 
2282
1971
  /** Represents the personal information of a customer. */
2283
1972
  export type Customer = HasMetafields &
1973
+ HasStoreCreditAccounts &
2284
1974
  Node & {
2285
1975
  __typename?: 'Customer';
2286
1976
  /** The addresses associated with the customer. */
@@ -2334,6 +2024,8 @@ export type Customer = HasMetafields &
2334
2024
  phoneNumber?: Maybe<CustomerPhoneNumber>;
2335
2025
  /** A Return identified by ID. */
2336
2026
  return?: Maybe<Return>;
2027
+ /** A list of the owner resource's store credit accounts. Store credit accounts are not shown for shops with store credit disabled at checkout. */
2028
+ storeCreditAccounts: StoreCreditAccountConnection;
2337
2029
  /** A Subscription Contract resource identified by ID. */
2338
2030
  subscriptionContract?: Maybe<SubscriptionContract>;
2339
2031
  /** The Subscription Contracts associated with the customer. */
@@ -2415,6 +2107,15 @@ export type CustomerReturnArgs = {
2415
2107
  id: Scalars['ID']['input'];
2416
2108
  };
2417
2109
 
2110
+ /** Represents the personal information of a customer. */
2111
+ export type CustomerStoreCreditAccountsArgs = {
2112
+ after?: InputMaybe<Scalars['String']['input']>;
2113
+ before?: InputMaybe<Scalars['String']['input']>;
2114
+ first?: InputMaybe<Scalars['Int']['input']>;
2115
+ last?: InputMaybe<Scalars['Int']['input']>;
2116
+ query?: InputMaybe<Scalars['String']['input']>;
2117
+ };
2118
+
2418
2119
  /** Represents the personal information of a customer. */
2419
2120
  export type CustomerSubscriptionContractArgs = {
2420
2121
  id: Scalars['ID']['input'];
@@ -2494,7 +2195,7 @@ export type CustomerAddress = Node & {
2494
2195
  /** The zip or postal code of the address. */
2495
2196
  zip?: Maybe<Scalars['String']['output']>;
2496
2197
  /**
2497
- * The two-letter code for the region.
2198
+ * The alphanumeric code for the region.
2498
2199
  *
2499
2200
  * For example, ON.
2500
2201
  *
@@ -2582,9 +2283,8 @@ export type CustomerAddressInput = {
2582
2283
  /** The zip or postal code of the address. */
2583
2284
  zip?: InputMaybe<Scalars['String']['input']>;
2584
2285
  /**
2585
- * The two-letter code ([ISO 3166-2 alpha-2]](https://en.wikipedia.org/wiki/ISO_3166-2) format)
2586
- * for the region of the address, such as the province, state, or district. For example, 'ON' for Ontario,
2587
- * Canada.
2286
+ * The alphanumeric code for the region of the address, such as the province, state, or district.
2287
+ * For example, 'ON' for Ontario, Canada.
2588
2288
  *
2589
2289
  */
2590
2290
  zoneCode?: InputMaybe<Scalars['String']['input']>;
@@ -2811,7 +2511,7 @@ export type CustomerMailingAddress = Node & {
2811
2511
  /** The region of the address, such as the province, state, or district. */
2812
2512
  province?: Maybe<Scalars['String']['output']>;
2813
2513
  /**
2814
- * The two-letter code for the region.
2514
+ * The alphanumeric code for the region.
2815
2515
  *
2816
2516
  * For example, ON.
2817
2517
  *
@@ -2829,7 +2529,7 @@ export type CustomerMailingAddress = Node & {
2829
2529
  /** The zip or postal code of the address. */
2830
2530
  zip?: Maybe<Scalars['String']['output']>;
2831
2531
  /**
2832
- * The two-letter code for the region.
2532
+ * The alphanumeric code for the region.
2833
2533
  *
2834
2534
  * For example, ON.
2835
2535
  *
@@ -2847,32 +2547,6 @@ export type CustomerMailingAddressFormattedArgs = {
2847
2547
  withName?: InputMaybe<Scalars['Boolean']['input']>;
2848
2548
  };
2849
2549
 
2850
- /**
2851
- * An auto-generated type for paginating through multiple CustomerMailingAddresses.
2852
- *
2853
- */
2854
- export type CustomerMailingAddressConnection = {
2855
- __typename?: 'CustomerMailingAddressConnection';
2856
- /** A list of edges. */
2857
- edges: Array<CustomerMailingAddressEdge>;
2858
- /** A list of the nodes contained in CustomerMailingAddressEdge. */
2859
- nodes: Array<CustomerMailingAddress>;
2860
- /** Information to aid in pagination. */
2861
- pageInfo: PageInfo;
2862
- };
2863
-
2864
- /**
2865
- * An auto-generated type which holds one CustomerMailingAddress and a cursor during pagination.
2866
- *
2867
- */
2868
- export type CustomerMailingAddressEdge = {
2869
- __typename?: 'CustomerMailingAddressEdge';
2870
- /** A cursor for use in pagination. */
2871
- cursor: Scalars['String']['output'];
2872
- /** The item at the end of CustomerMailingAddressEdge. */
2873
- node: CustomerMailingAddress;
2874
- };
2875
-
2876
2550
  /** The input fields to create or update a mailing address. */
2877
2551
  export type CustomerMailingAddressInput = {
2878
2552
  /** The first line of the address. Typically the street address or PO Box number. */
@@ -3113,20 +2787,22 @@ export type DraftOrder = Node & {
3113
2787
  currencyCode: CurrencyCode;
3114
2788
  /** The customer who placed the order. */
3115
2789
  customer?: Maybe<Customer>;
3116
- /** The customer who placed the order. */
3117
- customerV1?: Maybe<PersonalAccount>;
3118
2790
  /** The discount information for the draft order. */
3119
2791
  discountInformation: DraftOrderDiscountInformation;
3120
2792
  /** The email address of the customer, which is used to send notifications to. */
3121
2793
  email?: Maybe<Scalars['String']['output']>;
3122
- /** The email address of the customer, which is used to send notifications to. */
3123
- emailAddress?: Maybe<CustomerEmailAddress>;
3124
2794
  /** A globally-unique ID. */
3125
2795
  id: Scalars['ID']['output'];
3126
2796
  /** Whether the draft order is created from the online store and is open. */
3127
2797
  inReview: Scalars['Boolean']['output'];
3128
2798
  /** The link to the checkout, which is sent to the customer in the invoice email. */
3129
2799
  invoiceUrl?: Maybe<Scalars['URL']['output']>;
2800
+ /** The merchandise lines marked as fees with total value, aggregated by title. */
2801
+ legacyAggregatedMerchandiseTermsAsFees: Array<LegacyAggregatedMerchandiseTermsAsFees>;
2802
+ /** Whether or not products marked as fees should be rendered as money lines. */
2803
+ legacyRepresentProductsAsFees: Scalars['Boolean']['output'];
2804
+ /** The subtotal of the line items (doesn't include shipping charges, shipping discounts, taxes, or fees). */
2805
+ legacySubtotalWithoutFees: MoneyV2;
3130
2806
  /** The list of the line items in the draft order. */
3131
2807
  lineItems: DraftOrderLineItemConnection;
3132
2808
  /** The summary of draft order line items quantity. */
@@ -3142,8 +2818,6 @@ export type DraftOrder = Node & {
3142
2818
  phone?: Maybe<Scalars['String']['output']>;
3143
2819
  /** The purchasing entity for the draft order. */
3144
2820
  purchasingEntity?: Maybe<PurchasingEntity>;
3145
- /** The purchasing entity for the draft order. */
3146
- purchasingEntityV1?: Maybe<PurchasingEntityV1>;
3147
2821
  /** Whether the draft order requires shipping or not. */
3148
2822
  requiresShipping: Scalars['Boolean']['output'];
3149
2823
  /** The shipping address of the customer. */
@@ -3305,6 +2979,12 @@ export type DraftOrderLineItem = Node & {
3305
2979
  id: Scalars['ID']['output'];
3306
2980
  /** The image associated with the line item. */
3307
2981
  image?: Maybe<Image>;
2982
+ /** Whether this is line item is marked as a fee. */
2983
+ legacyFee: Scalars['Boolean']['output'];
2984
+ /** The fee's description, if this line item has been marked as a fee. */
2985
+ legacyFeeDescription?: Maybe<Scalars['String']['output']>;
2986
+ /** The fee's title, if this line item has been marked as a fee. */
2987
+ legacyFeeTitle?: Maybe<Scalars['String']['output']>;
3308
2988
  /** The name of the product. */
3309
2989
  name: Scalars['String']['output'];
3310
2990
  /**
@@ -3380,6 +3060,8 @@ export type DraftOrderLineItemsSummary = {
3380
3060
  __typename?: 'DraftOrderLineItemsSummary';
3381
3061
  /** The total number of line items in the draft order. */
3382
3062
  lineItemCount: Scalars['Int']['output'];
3063
+ /** The total quantity of all legacy fee line items in the draft order. */
3064
+ totalQuantityOfLegacyFeeLineItems: Scalars['Int']['output'];
3383
3065
  /** The total quantity of all line items in the draft order. */
3384
3066
  totalQuantityOfLineItems: Scalars['Int']['output'];
3385
3067
  };
@@ -3438,28 +3120,6 @@ export type DutySale = Node &
3438
3120
  totalTaxAmount: MoneyV2;
3439
3121
  };
3440
3122
 
3441
- /**
3442
- * Represents the customer's consent to receive marketing material by email.
3443
- *
3444
- */
3445
- export type EmailMarketingConsentState = Node & {
3446
- __typename?: 'EmailMarketingConsentState';
3447
- /**
3448
- * The date and time when the customer consented to receive marketing material by email.
3449
- *
3450
- */
3451
- consentUpdatedAt?: Maybe<Scalars['DateTime']['output']>;
3452
- /** A globally-unique ID. */
3453
- id: Scalars['ID']['output'];
3454
- /**
3455
- * The marketing subscription opt-in level that the customer gave when they consented to receive marketing material by email.
3456
- *
3457
- */
3458
- marketingOptInLevel?: Maybe<MarketingOptInLevel>;
3459
- /** The current email marketing state for the customer. */
3460
- marketingState: EmailMarketingState;
3461
- };
3462
-
3463
3123
  /**
3464
3124
  * Represents the possible email marketing states for a customer.
3465
3125
  *
@@ -3904,6 +3564,17 @@ export type GooglePayWalletConfig = {
3904
3564
  merchantOrigin: Scalars['String']['output'];
3905
3565
  };
3906
3566
 
3567
+ /**
3568
+ * Represents a summary of the current version of data in a resource.
3569
+ *
3570
+ * The `compare_digest` field can be used as input for mutations that implement a compare-and-swap mechanism.
3571
+ *
3572
+ */
3573
+ export type HasCompareDigest = {
3574
+ /** The data stored in the resource, represented as a digest. */
3575
+ compareDigest: Scalars['String']['output'];
3576
+ };
3577
+
3907
3578
  /** The information about the metafields associated with the specified resource. */
3908
3579
  export type HasMetafields = {
3909
3580
  /** A metafield found by namespace and key. */
@@ -3935,6 +3606,21 @@ export type HasMetafieldsIdentifier = {
3935
3606
  namespace: Scalars['String']['input'];
3936
3607
  };
3937
3608
 
3609
+ /** Represents information about the store credit accounts associated to the specified owner. */
3610
+ export type HasStoreCreditAccounts = {
3611
+ /** A list of the owner resource's store credit accounts. Store credit accounts are not shown for shops with store credit disabled at checkout. */
3612
+ storeCreditAccounts: StoreCreditAccountConnection;
3613
+ };
3614
+
3615
+ /** Represents information about the store credit accounts associated to the specified owner. */
3616
+ export type HasStoreCreditAccountsStoreCreditAccountsArgs = {
3617
+ after?: InputMaybe<Scalars['String']['input']>;
3618
+ before?: InputMaybe<Scalars['String']['input']>;
3619
+ first?: InputMaybe<Scalars['Int']['input']>;
3620
+ last?: InputMaybe<Scalars['Int']['input']>;
3621
+ query?: InputMaybe<Scalars['String']['input']>;
3622
+ };
3623
+
3938
3624
  /** Represents an image resource. */
3939
3625
  export type Image = {
3940
3626
  __typename?: 'Image';
@@ -4043,6 +3729,28 @@ export type ImageTransformInput = {
4043
3729
  scale?: InputMaybe<Scalars['Int']['input']>;
4044
3730
  };
4045
3731
 
3732
+ /** An object representing a product marked as a fee, aggregated by title. */
3733
+ export type LegacyAggregatedMerchandiseTermsAsFees = Node & {
3734
+ __typename?: 'LegacyAggregatedMerchandiseTermsAsFees';
3735
+ /**
3736
+ * The description of the fee line, as provided by the _legacy_product_as_fee_description line item property.
3737
+ *
3738
+ */
3739
+ description?: Maybe<Scalars['String']['output']>;
3740
+ /** A globally-unique ID. */
3741
+ id: Scalars['ID']['output'];
3742
+ /**
3743
+ * The title of the fee line, as provided by the _legacy_product_as_fee_title line item property.
3744
+ *
3745
+ */
3746
+ title: Scalars['String']['output'];
3747
+ /**
3748
+ * The total value of all the products with the same title.
3749
+ *
3750
+ */
3751
+ total: MoneyV2;
3752
+ };
3753
+
4046
3754
  /** A single line item in an order. */
4047
3755
  export type LineItem = Node & {
4048
3756
  __typename?: 'LineItem';
@@ -4065,6 +3773,12 @@ export type LineItem = Node & {
4065
3773
  id: Scalars['ID']['output'];
4066
3774
  /** The image object associated with the line item. */
4067
3775
  image?: Maybe<Image>;
3776
+ /** Whether this is line item is marked as a fee. */
3777
+ legacyFee: Scalars['Boolean']['output'];
3778
+ /** The fee's description, if this line item has been marked as a fee. */
3779
+ legacyFeeDescription?: Maybe<Scalars['String']['output']>;
3780
+ /** The fee's title, if this line item has been marked as a fee. */
3781
+ legacyFeeTitle?: Maybe<Scalars['String']['output']>;
4068
3782
  /** The name of the product. */
4069
3783
  name: Scalars['String']['output'];
4070
3784
  /** The title of the line item variant. */
@@ -4241,112 +3955,6 @@ export type LineItemVariantOption = {
4241
3955
  value: Scalars['String']['output'];
4242
3956
  };
4243
3957
 
4244
- /** Represents a company's business location. */
4245
- export type Location = Node & {
4246
- __typename?: 'Location';
4247
- /** The billing address of the company location. */
4248
- billingAddress?: Maybe<CompanyAddress>;
4249
- /** The configuration of the buyer's B2B checkout. */
4250
- buyerExperienceConfiguration?: Maybe<BuyerExperienceConfiguration>;
4251
- /** The list of contacts under a particular business location. */
4252
- contacts: CompanyContactConnection;
4253
- /** The list of contacts under a particular business location. */
4254
- contactsV1: ContactConnection;
4255
- /** The credit card corresponding to the provided ID. */
4256
- creditCard?: Maybe<CustomerCreditCard>;
4257
- /** The list of stored credit cards. */
4258
- creditCards: CustomerCreditCardConnection;
4259
- /** A globally-unique ID. */
4260
- id: Scalars['ID']['output'];
4261
- /** The market that includes the location's shipping address. If the shipping address is empty, the shop's primary market is returned. */
4262
- market: Market;
4263
- /** The name of the company location. */
4264
- name: Scalars['String']['output'];
4265
- /** The list of roles assigned to this location. */
4266
- roleAssignments: CompanyContactRoleAssignmentConnection;
4267
- /** The shipping address of the company location. */
4268
- shippingAddress?: Maybe<CompanyAddress>;
4269
- /** The list of tax exemptions applied to the location. */
4270
- taxExemptions: Array<TaxExemption>;
4271
- /** The list of tax exemptions applied to the location with additional details. */
4272
- taxExemptionsDetails: Array<TaxExemptionDetails>;
4273
- /** The tax id of the company location. */
4274
- taxIdentifier?: Maybe<Scalars['String']['output']>;
4275
- };
4276
-
4277
- /** Represents a company's business location. */
4278
- export type LocationContactsArgs = {
4279
- after?: InputMaybe<Scalars['String']['input']>;
4280
- before?: InputMaybe<Scalars['String']['input']>;
4281
- first?: InputMaybe<Scalars['Int']['input']>;
4282
- last?: InputMaybe<Scalars['Int']['input']>;
4283
- query?: InputMaybe<Scalars['String']['input']>;
4284
- reverse?: InputMaybe<Scalars['Boolean']['input']>;
4285
- sortKey?: InputMaybe<CompanyContactSortKeys>;
4286
- };
4287
-
4288
- /** Represents a company's business location. */
4289
- export type LocationContactsV1Args = {
4290
- after?: InputMaybe<Scalars['String']['input']>;
4291
- before?: InputMaybe<Scalars['String']['input']>;
4292
- first?: InputMaybe<Scalars['Int']['input']>;
4293
- last?: InputMaybe<Scalars['Int']['input']>;
4294
- query?: InputMaybe<Scalars['String']['input']>;
4295
- reverse?: InputMaybe<Scalars['Boolean']['input']>;
4296
- sortKey?: InputMaybe<CompanyContactSortKeys>;
4297
- };
4298
-
4299
- /** Represents a company's business location. */
4300
- export type LocationCreditCardArgs = {
4301
- id: Scalars['ID']['input'];
4302
- };
4303
-
4304
- /** Represents a company's business location. */
4305
- export type LocationCreditCardsArgs = {
4306
- after?: InputMaybe<Scalars['String']['input']>;
4307
- before?: InputMaybe<Scalars['String']['input']>;
4308
- first?: InputMaybe<Scalars['Int']['input']>;
4309
- last?: InputMaybe<Scalars['Int']['input']>;
4310
- reverse?: InputMaybe<Scalars['Boolean']['input']>;
4311
- };
4312
-
4313
- /** Represents a company's business location. */
4314
- export type LocationRoleAssignmentsArgs = {
4315
- after?: InputMaybe<Scalars['String']['input']>;
4316
- before?: InputMaybe<Scalars['String']['input']>;
4317
- first?: InputMaybe<Scalars['Int']['input']>;
4318
- last?: InputMaybe<Scalars['Int']['input']>;
4319
- query?: InputMaybe<Scalars['String']['input']>;
4320
- reverse?: InputMaybe<Scalars['Boolean']['input']>;
4321
- sortKey?: InputMaybe<CompanyContactRoleAssignmentSortKeys>;
4322
- };
4323
-
4324
- /**
4325
- * An auto-generated type for paginating through multiple Locations.
4326
- *
4327
- */
4328
- export type LocationConnection = {
4329
- __typename?: 'LocationConnection';
4330
- /** A list of edges. */
4331
- edges: Array<LocationEdge>;
4332
- /** A list of the nodes contained in LocationEdge. */
4333
- nodes: Array<Location>;
4334
- /** Information to aid in pagination. */
4335
- pageInfo: PageInfo;
4336
- };
4337
-
4338
- /**
4339
- * An auto-generated type which holds one Location and a cursor during pagination.
4340
- *
4341
- */
4342
- export type LocationEdge = {
4343
- __typename?: 'LocationEdge';
4344
- /** A cursor for use in pagination. */
4345
- cursor: Scalars['String']['output'];
4346
- /** The item at the end of LocationEdge. */
4347
- node: Location;
4348
- };
4349
-
4350
3958
  /**
4351
3959
  * Captures the intentions of a discount that was manually created.
4352
3960
  *
@@ -4436,59 +4044,64 @@ export type MarketWebPresenceRootUrl = {
4436
4044
  };
4437
4045
 
4438
4046
  /**
4439
- * The possible values for the marketing subscription opt-in level enabled
4440
- * when the customer consented to receive marketing information.
4441
- *
4442
- * The levels follow the M3AAWG best practices guideline
4443
- * [document](https://www.m3aawg.org/sites/maawg/files/news/M3AAWG_Senders_BCP_Ver3-2015-02.pdf).
4047
+ * The custom metadata attached to a resource. Metafields can be sorted into namespaces and are
4048
+ * comprised of keys, values, and value types.
4444
4049
  *
4445
4050
  */
4446
- export type MarketingOptInLevel =
4447
- /**
4448
- * The customer gets a confirmation and needs to
4449
- * perform an intermediate step before getting marketing information after providing their information.
4450
- *
4451
- */
4452
- | 'CONFIRMED_OPT_IN'
4453
- /**
4454
- * The customer gets marketing information without any
4455
- * intermediate steps after providing their information.
4456
- *
4457
- */
4458
- | 'SINGLE_OPT_IN'
4459
- /**
4460
- * The customer gets marketing information, but the opt-in method is unknown.
4461
- *
4462
- */
4463
- | 'UNKNOWN';
4051
+ export type Metafield = HasCompareDigest &
4052
+ Node & {
4053
+ __typename?: 'Metafield';
4054
+ /** The data stored in the resource, represented as a digest. */
4055
+ compareDigest: Scalars['String']['output'];
4056
+ /** The date and time when the metafield was created. */
4057
+ createdAt: Scalars['DateTime']['output'];
4058
+ /** The description of a metafield. */
4059
+ description?: Maybe<Scalars['String']['output']>;
4060
+ /** A globally-unique ID. */
4061
+ id: Scalars['ID']['output'];
4062
+ /** The data stored in the metafield in JSON format. */
4063
+ jsonValue: Scalars['JSON']['output'];
4064
+ /** The key name for a metafield. */
4065
+ key: Scalars['String']['output'];
4066
+ /** The namespace for a metafield. */
4067
+ namespace: Scalars['String']['output'];
4068
+ /**
4069
+ * The type name of the metafield.
4070
+ * See the list of [supported types](https://shopify.dev/apps/metafields/definitions/types).
4071
+ *
4072
+ */
4073
+ type: Scalars['String']['output'];
4074
+ /** The date and time when the metafield was updated. */
4075
+ updatedAt: Scalars['DateTime']['output'];
4076
+ /** The value of a metafield. */
4077
+ value: Scalars['String']['output'];
4078
+ };
4464
4079
 
4465
4080
  /**
4466
- * The custom metadata attached to a resource. Metafields can be sorted into namespaces and are
4467
- * comprised of keys, values, and value types.
4081
+ * Identifies a metafield by its owner resource, namespace, and key.
4468
4082
  *
4469
4083
  */
4470
- export type Metafield = Node & {
4471
- __typename?: 'Metafield';
4472
- /** The date and time when the metafield was created. */
4473
- createdAt: Scalars['DateTime']['output'];
4474
- /** The description of a metafield. */
4475
- description?: Maybe<Scalars['String']['output']>;
4476
- /** A globally-unique ID. */
4477
- id: Scalars['ID']['output'];
4478
- /** The key name for a metafield. */
4084
+ export type MetafieldIdentifier = {
4085
+ __typename?: 'MetafieldIdentifier';
4086
+ /** The key of the metafield. */
4479
4087
  key: Scalars['String']['output'];
4480
- /** The namespace for a metafield. */
4088
+ /** The namespace of the metafield. */
4481
4089
  namespace: Scalars['String']['output'];
4482
- /**
4483
- * The type name of the metafield.
4484
- * See the list of [supported types](https://shopify.dev/apps/metafields/definitions/types).
4485
- *
4486
- */
4487
- type: Scalars['String']['output'];
4488
- /** The date and time when the metafield was updated. */
4489
- updatedAt: Scalars['DateTime']['output'];
4490
- /** The value of a metafield. */
4491
- value: Scalars['String']['output'];
4090
+ /** GID of the owner resource that the metafield belongs to. */
4091
+ ownerId: Scalars['ID']['output'];
4092
+ };
4093
+
4094
+ /**
4095
+ * The input fields that identify metafields.
4096
+ *
4097
+ */
4098
+ export type MetafieldIdentifierInput = {
4099
+ /** The key of the metafield. */
4100
+ key: Scalars['String']['input'];
4101
+ /** The namespace of the metafield. */
4102
+ namespace: Scalars['String']['input'];
4103
+ /** The unique ID of the resource that the metafield is attached to. */
4104
+ ownerId: Scalars['ID']['input'];
4492
4105
  };
4493
4106
 
4494
4107
  /** Value type to describe the Metafield value. */
@@ -4504,6 +4117,128 @@ export type MetafieldValueType =
4504
4117
  /** A string. */
4505
4118
  | 'STRING';
4506
4119
 
4120
+ /** Return type for `metafieldsDelete` mutation. */
4121
+ export type MetafieldsDeletePayload = {
4122
+ __typename?: 'MetafieldsDeletePayload';
4123
+ /** List of metafield identifiers that were deleted, null if the corresponding metafield isn't found. */
4124
+ deletedMetafields?: Maybe<Array<Maybe<MetafieldIdentifier>>>;
4125
+ /** The list of errors that occurred from executing the mutation. */
4126
+ userErrors: Array<MetafieldsDeleteUserError>;
4127
+ };
4128
+
4129
+ /** An error that occurs during the execution of `MetafieldsDelete`. */
4130
+ export type MetafieldsDeleteUserError = DisplayableError & {
4131
+ __typename?: 'MetafieldsDeleteUserError';
4132
+ /** The error code. */
4133
+ code?: Maybe<MetafieldsDeleteUserErrorCode>;
4134
+ /** The index of the array element that's causing the error. */
4135
+ elementIndex?: Maybe<Scalars['Int']['output']>;
4136
+ /** The path to the input field that caused the error. */
4137
+ field?: Maybe<Array<Scalars['String']['output']>>;
4138
+ /** The error message. */
4139
+ message: Scalars['String']['output'];
4140
+ };
4141
+
4142
+ /** Possible error codes that can be returned by `MetafieldsDeleteUserError`. */
4143
+ export type MetafieldsDeleteUserErrorCode =
4144
+ /** The input value is blank. */
4145
+ | 'BLANK'
4146
+ /** Owner type can't be used in this mutation. */
4147
+ | 'DISALLOWED_OWNER_TYPE'
4148
+ /** The input value is invalid. */
4149
+ | 'INVALID'
4150
+ /** The metafield delete operation failed. */
4151
+ | 'METAFIELD_DELETE_FAILED'
4152
+ /** The record with the ID used as the input value couldn't be found. */
4153
+ | 'NOT_FOUND';
4154
+
4155
+ /** The input fields for a metafield value to set. */
4156
+ export type MetafieldsSetInput = {
4157
+ /**
4158
+ * The `compareDigest` value obtained from a previous query. Provide this with updates to ensure the metafield is modified safely.
4159
+ *
4160
+ */
4161
+ compareDigest?: InputMaybe<Scalars['String']['input']>;
4162
+ /**
4163
+ * The unique identifier for a metafield within its namespace.
4164
+ * Must be 3-64 characters long and can contain alphanumeric, hyphen, and underscore characters.
4165
+ *
4166
+ */
4167
+ key: Scalars['String']['input'];
4168
+ /**
4169
+ * The container for a group of metafields that the metafield is or will be associated with. Used in tandem
4170
+ * with `key` to lookup a metafield on a resource, preventing conflicts with other metafields with the
4171
+ * same `key`.
4172
+ * Must be 3-255 characters long and can contain alphanumeric, hyphen, and underscore characters.
4173
+ *
4174
+ */
4175
+ namespace: Scalars['String']['input'];
4176
+ /** The unique ID of the resource that the metafield is attached to. */
4177
+ ownerId: Scalars['ID']['input'];
4178
+ /**
4179
+ * The type of data that is stored in the metafield.
4180
+ * The type must be one of the [supported types](https://shopify.dev/apps/metafields/types).
4181
+ * Required when there is no corresponding definition for the given `namespace`, `key`, and
4182
+ * owner resource type (derived from `ownerId`).
4183
+ *
4184
+ */
4185
+ type?: InputMaybe<Scalars['String']['input']>;
4186
+ /**
4187
+ * The data stored in the metafield. Always stored as a string, regardless of the metafield's type.
4188
+ *
4189
+ */
4190
+ value: Scalars['String']['input'];
4191
+ };
4192
+
4193
+ /** Return type for `metafieldsSet` mutation. */
4194
+ export type MetafieldsSetPayload = {
4195
+ __typename?: 'MetafieldsSetPayload';
4196
+ /** The list of metafields that were set. */
4197
+ metafields?: Maybe<Array<Metafield>>;
4198
+ /** The list of errors that occurred from executing the mutation. */
4199
+ userErrors: Array<MetafieldsSetUserError>;
4200
+ };
4201
+
4202
+ /** An error that occurs during the execution of `MetafieldsSet`. */
4203
+ export type MetafieldsSetUserError = DisplayableError & {
4204
+ __typename?: 'MetafieldsSetUserError';
4205
+ /** The error code. */
4206
+ code?: Maybe<MetafieldsSetUserErrorCode>;
4207
+ /** The index of the array element that's causing the error. */
4208
+ elementIndex?: Maybe<Scalars['Int']['output']>;
4209
+ /** The path to the input field that caused the error. */
4210
+ field?: Maybe<Array<Scalars['String']['output']>>;
4211
+ /** The error message. */
4212
+ message: Scalars['String']['output'];
4213
+ };
4214
+
4215
+ /** Possible error codes that can be returned by `MetafieldsSetUserError`. */
4216
+ export type MetafieldsSetUserErrorCode =
4217
+ /** ApiPermission metafields can only be created or updated by the app owner. */
4218
+ | 'APP_NOT_AUTHORIZED'
4219
+ /** The input value is blank. */
4220
+ | 'BLANK'
4221
+ /** Owner type can't be used in this mutation. */
4222
+ | 'DISALLOWED_OWNER_TYPE'
4223
+ /** The input value isn't included in the list. */
4224
+ | 'INCLUSION'
4225
+ /** The compareDigest is invalid. */
4226
+ | 'INVALID_COMPARE_DIGEST'
4227
+ /** The type is invalid. */
4228
+ | 'INVALID_TYPE'
4229
+ /** The value is invalid for metafield type or for definition options. */
4230
+ | 'INVALID_VALUE'
4231
+ /** The input value should be less than or equal to the maximum value allowed. */
4232
+ | 'LESS_THAN_OR_EQUAL_TO'
4233
+ /** The input value needs to be blank. */
4234
+ | 'PRESENT'
4235
+ /** The metafield has been modified since it was loaded. */
4236
+ | 'STALE_OBJECT'
4237
+ /** The input value is too long. */
4238
+ | 'TOO_LONG'
4239
+ /** The input value is too short. */
4240
+ | 'TOO_SHORT';
4241
+
4507
4242
  /**
4508
4243
  * A collection of monetary values in their respective currencies. Typically used in the context of multi-currency pricing and transactions,
4509
4244
  * when an amount in the shop's currency is converted to the customer's currency of choice (the presentment currency).
@@ -4532,21 +4267,6 @@ export type MoneyV2 = {
4532
4267
  /** This is the schema's entry point for all mutation operations. */
4533
4268
  export type Mutation = {
4534
4269
  __typename?: 'Mutation';
4535
- /**
4536
- * Creates a new address for a customer.
4537
- *
4538
- */
4539
- addressCreate?: Maybe<AddressCreatePayload>;
4540
- /**
4541
- * Deletes a specific address for a customer.
4542
- *
4543
- */
4544
- addressDelete?: Maybe<AddressDeletePayload>;
4545
- /**
4546
- * Updates a specific address for a customer.
4547
- *
4548
- */
4549
- addressUpdate?: Maybe<AddressUpdatePayload>;
4550
4270
  /** Adds a new credit card using Apple Pay. */
4551
4271
  applePayCreditCardAdd?: Maybe<ApplePayCreditCardAddPayload>;
4552
4272
  /** Updates a credit card using Apple Pay. */
@@ -4558,21 +4278,6 @@ export type Mutation = {
4558
4278
  *
4559
4279
  */
4560
4280
  businessContactUpdate?: Maybe<BusinessContactUpdatePayload>;
4561
- /**
4562
- * Updates the information for a business contact.
4563
- *
4564
- */
4565
- businessContactUpdateV1?: Maybe<BusinessContactUpdateV1Payload>;
4566
- /**
4567
- * Creates a billing address for a business location and optionally a shipping address with the same input.
4568
- *
4569
- */
4570
- businessLocationBillingAddressCreate?: Maybe<BusinessLocationBillingAddressCreatePayload>;
4571
- /**
4572
- * Updates the billing address of a business location.
4573
- *
4574
- */
4575
- businessLocationBillingAddressUpdate?: Maybe<BusinessLocationBillingAddressUpdatePayload>;
4576
4281
  /**
4577
4282
  * Adds a new credit card to the available payment methods of a customer.
4578
4283
  *
@@ -4588,16 +4293,6 @@ export type Mutation = {
4588
4293
  *
4589
4294
  */
4590
4295
  businessLocationPaymentInstrumentRemove?: Maybe<BusinessLocationPaymentInstrumentRemovePayload>;
4591
- /**
4592
- * Creates a shipping address for a business location and optionally a billing address with the same input.
4593
- *
4594
- */
4595
- businessLocationShippingAddressCreate?: Maybe<BusinessLocationShippingAddressCreatePayload>;
4596
- /**
4597
- * Updates the shipping address of a business location.
4598
- *
4599
- */
4600
- businessLocationShippingAddressUpdate?: Maybe<BusinessLocationShippingAddressUpdatePayload>;
4601
4296
  /** Updates an address on a company location. */
4602
4297
  companyLocationAssignAddress?: Maybe<CompanyLocationAssignAddressPayload>;
4603
4298
  /** Adds a new credit card to a customer's list of available payment methods. */
@@ -4634,6 +4329,24 @@ export type Mutation = {
4634
4329
  googlePayCreditCardAdd?: Maybe<GooglePayCreditCardAddPayload>;
4635
4330
  /** Updates a credit card using Google Pay. */
4636
4331
  googlePayCreditCardUpdate?: Maybe<GooglePayCreditCardUpdatePayload>;
4332
+ /** Deletes multiple metafields in bulk. */
4333
+ metafieldsDelete?: Maybe<MetafieldsDeletePayload>;
4334
+ /**
4335
+ * Sets metafield values. Metafield values will be set regardless if they were previously created or not.
4336
+ *
4337
+ * Allows a maximum of 25 metafields to be set at a time.
4338
+ *
4339
+ * This operation is atomic, meaning no changes are persisted if an error is encountered.
4340
+ *
4341
+ * As of `2024-07`, this operation supports compare-and-set functionality to better handle concurrent requests.
4342
+ * If `compareDigest` is set for any metafield, the mutation will only set that metafield if the persisted metafield value matches the digest used on `compareDigest`.
4343
+ * If the metafield doesn't exist yet, but you want to guarantee that the operation will run in a safe manner, set `compareDigest` to `null`.
4344
+ * The `compareDigest` value can be acquired by querying the metafield object and selecting `compareDigest` as a field.
4345
+ * If the `compareDigest` value does not match the digest for the persisted value, the mutation will return an error.
4346
+ * You can opt out of write guarantees by not sending `compareDigest` in the request.
4347
+ *
4348
+ */
4349
+ metafieldsSet?: Maybe<MetafieldsSetPayload>;
4637
4350
  /** Request a new return on behalf of a customer. */
4638
4351
  orderRequestReturn?: Maybe<OrderRequestReturnPayload>;
4639
4352
  /** Removes a payment instrument from a customer's account. */
@@ -4647,11 +4360,6 @@ export type Mutation = {
4647
4360
  paypalAccountEnable?: Maybe<PaypalAccountEnablePayload>;
4648
4361
  /** Creates a PayPal Express token. */
4649
4362
  paypalTokenCreate?: Maybe<PaypalTokenCreatePayload>;
4650
- /**
4651
- * Updates the customer's personal information.
4652
- *
4653
- */
4654
- personalInformationUpdate?: Maybe<PersonalInformationUpdatePayload>;
4655
4363
  /** Resends a gift card to the customer. */
4656
4364
  resendGiftCard?: Maybe<ResendGiftCardPayload>;
4657
4365
  /** Provides a URL that enables the customer to update a Shop Pay credit card. */
@@ -4680,24 +4388,6 @@ export type Mutation = {
4680
4388
  subscriptionContractSelectDeliveryMethod?: Maybe<SubscriptionContractSelectDeliveryMethodPayload>;
4681
4389
  };
4682
4390
 
4683
- /** This is the schema's entry point for all mutation operations. */
4684
- export type MutationAddressCreateArgs = {
4685
- address: CustomerMailingAddressInput;
4686
- defaultAddress?: InputMaybe<Scalars['Boolean']['input']>;
4687
- };
4688
-
4689
- /** This is the schema's entry point for all mutation operations. */
4690
- export type MutationAddressDeleteArgs = {
4691
- addressId: Scalars['ID']['input'];
4692
- };
4693
-
4694
- /** This is the schema's entry point for all mutation operations. */
4695
- export type MutationAddressUpdateArgs = {
4696
- address?: InputMaybe<CustomerMailingAddressInput>;
4697
- addressId: Scalars['ID']['input'];
4698
- defaultAddress?: InputMaybe<Scalars['Boolean']['input']>;
4699
- };
4700
-
4701
4391
  /** This is the schema's entry point for all mutation operations. */
4702
4392
  export type MutationApplePayCreditCardAddArgs = {
4703
4393
  applePayTokenizedCard: Scalars['String']['input'];
@@ -4725,25 +4415,6 @@ export type MutationBusinessContactUpdateArgs = {
4725
4415
  input: BusinessContactUpdateInput;
4726
4416
  };
4727
4417
 
4728
- /** This is the schema's entry point for all mutation operations. */
4729
- export type MutationBusinessContactUpdateV1Args = {
4730
- companyId?: InputMaybe<Scalars['ID']['input']>;
4731
- input: BusinessContactUpdateInput;
4732
- };
4733
-
4734
- /** This is the schema's entry point for all mutation operations. */
4735
- export type MutationBusinessLocationBillingAddressCreateArgs = {
4736
- address: CompanyAddressInput;
4737
- companyLocationId: Scalars['ID']['input'];
4738
- useAsShipping?: InputMaybe<Scalars['Boolean']['input']>;
4739
- };
4740
-
4741
- /** This is the schema's entry point for all mutation operations. */
4742
- export type MutationBusinessLocationBillingAddressUpdateArgs = {
4743
- address: CompanyAddressInput;
4744
- companyLocationId: Scalars['ID']['input'];
4745
- };
4746
-
4747
4418
  /** This is the schema's entry point for all mutation operations. */
4748
4419
  export type MutationBusinessLocationCreditCardAddArgs = {
4749
4420
  billingAddress: CustomerMailingAddressInput;
@@ -4766,19 +4437,6 @@ export type MutationBusinessLocationPaymentInstrumentRemoveArgs = {
4766
4437
  replacementPaymentInstrumentId?: InputMaybe<Scalars['ID']['input']>;
4767
4438
  };
4768
4439
 
4769
- /** This is the schema's entry point for all mutation operations. */
4770
- export type MutationBusinessLocationShippingAddressCreateArgs = {
4771
- address: CompanyAddressInput;
4772
- companyLocationId: Scalars['ID']['input'];
4773
- useAsBilling?: InputMaybe<Scalars['Boolean']['input']>;
4774
- };
4775
-
4776
- /** This is the schema's entry point for all mutation operations. */
4777
- export type MutationBusinessLocationShippingAddressUpdateArgs = {
4778
- address: CompanyAddressInput;
4779
- companyLocationId: Scalars['ID']['input'];
4780
- };
4781
-
4782
4440
  /** This is the schema's entry point for all mutation operations. */
4783
4441
  export type MutationCompanyLocationAssignAddressArgs = {
4784
4442
  address: CompanyAddressInput;
@@ -4836,6 +4494,16 @@ export type MutationGooglePayCreditCardUpdateArgs = {
4836
4494
  paymentMethodId: Scalars['ID']['input'];
4837
4495
  };
4838
4496
 
4497
+ /** This is the schema's entry point for all mutation operations. */
4498
+ export type MutationMetafieldsDeleteArgs = {
4499
+ metafields: Array<MetafieldIdentifierInput>;
4500
+ };
4501
+
4502
+ /** This is the schema's entry point for all mutation operations. */
4503
+ export type MutationMetafieldsSetArgs = {
4504
+ metafields: Array<MetafieldsSetInput>;
4505
+ };
4506
+
4839
4507
  /** This is the schema's entry point for all mutation operations. */
4840
4508
  export type MutationOrderRequestReturnArgs = {
4841
4509
  orderId: Scalars['ID']['input'];
@@ -4860,11 +4528,6 @@ export type MutationPaypalAccountEnableArgs = {
4860
4528
  paypalToken: Scalars['String']['input'];
4861
4529
  };
4862
4530
 
4863
- /** This is the schema's entry point for all mutation operations. */
4864
- export type MutationPersonalInformationUpdateArgs = {
4865
- input: PersonalInformationUpdateInput;
4866
- };
4867
-
4868
4531
  /** This is the schema's entry point for all mutation operations. */
4869
4532
  export type MutationResendGiftCardArgs = {
4870
4533
  orderId: Scalars['ID']['input'];
@@ -4959,8 +4622,6 @@ export type Order = HasMetafields &
4959
4622
  *
4960
4623
  */
4961
4624
  confirmationNumber?: Maybe<Scalars['String']['output']>;
4962
- /** Whether the customer who made the order has an enabled associated contact. */
4963
- contactExists: Scalars['Boolean']['output'];
4964
4625
  /** The date and time when the order was created. */
4965
4626
  createdAt: Scalars['DateTime']['output'];
4966
4627
  /** The shop currency when the order was placed. */
@@ -4971,10 +4632,6 @@ export type Order = HasMetafields &
4971
4632
  customer?: Maybe<Customer>;
4972
4633
  /** The locale code representing the region where this specific order was placed. */
4973
4634
  customerLocale?: Maybe<Scalars['String']['output']>;
4974
- /** The unique URL for the customer to access the order. */
4975
- customerStatusPageUrl?: Maybe<Scalars['URL']['output']>;
4976
- /** The customer who placed the order. */
4977
- customerV1?: Maybe<PersonalAccount>;
4978
4635
  /** The discounts that have been applied to the order. */
4979
4636
  discountApplications: DiscountApplicationConnection;
4980
4637
  /** The discount information for the order, including line-level discount applications. */
@@ -4992,8 +4649,6 @@ export type Order = HasMetafields &
4992
4649
  edited: Scalars['Boolean']['output'];
4993
4650
  /** The email address of the customer. */
4994
4651
  email?: Maybe<Scalars['String']['output']>;
4995
- /** The email address of the customer. */
4996
- emailAddress?: Maybe<CustomerEmailAddress>;
4997
4652
  /** The financial status of the order. */
4998
4653
  financialStatus?: Maybe<OrderFinancialStatus>;
4999
4654
  /** The fulfillment status of the order. */
@@ -5008,6 +4663,12 @@ export type Order = HasMetafields &
5008
4663
  id: Scalars['ID']['output'];
5009
4664
  /** The delivery or estimated delivery date of the latest fulfillment. */
5010
4665
  latestFulfillmentDeliveryDate?: Maybe<Scalars['DateTime']['output']>;
4666
+ /** The merchandise lines marked as fees with total value, aggregated by title. */
4667
+ legacyAggregatedMerchandiseTermsAsFees: Array<LegacyAggregatedMerchandiseTermsAsFees>;
4668
+ /** Whether or not products marked as fees should be rendered as money lines. */
4669
+ legacyRepresentProductsAsFees: Scalars['Boolean']['output'];
4670
+ /** The price of the order before duties, shipping, taxes, and fees. */
4671
+ legacySubtotalWithoutFees?: Maybe<MoneyV2>;
5011
4672
  /** The list of the order's line item containers (e.g., Unfulfilled). */
5012
4673
  lineItemContainers: Array<LineItemContainer>;
5013
4674
  /** The list of line items of the order. */
@@ -5066,6 +4727,8 @@ export type Order = HasMetafields &
5066
4727
  reorderPath?: Maybe<Scalars['String']['output']>;
5067
4728
  /** Whether the order requires shipping. */
5068
4729
  requiresShipping: Scalars['Boolean']['output'];
4730
+ /** A Return identified by ID. */
4731
+ return?: Maybe<Return>;
5069
4732
  /** The list of returns for the order with pagination. */
5070
4733
  returns: ReturnConnection;
5071
4734
  /**
@@ -5090,8 +4753,6 @@ export type Order = HasMetafields &
5090
4753
  soldInformation: OrderSoldInformation;
5091
4754
  /** The unique URL for the status page of the order. */
5092
4755
  statusPageUrl: Scalars['URL']['output'];
5093
- /** The unique URL for the status page of the order. */
5094
- statusUrl: Scalars['URL']['output'];
5095
4756
  /** The price of the order before duties, shipping, and taxes. */
5096
4757
  subtotal?: Maybe<MoneyV2>;
5097
4758
  /** The price of the order before order-level discounts, duties, shipping. It includes taxes in tax-inclusive orders. */
@@ -5165,6 +4826,11 @@ export type OrderMetafieldsArgs = {
5165
4826
  identifiers: Array<HasMetafieldsIdentifier>;
5166
4827
  };
5167
4828
 
4829
+ /** A customer’s completed request to purchase one or more products from a shop. */
4830
+ export type OrderReturnArgs = {
4831
+ id: Scalars['ID']['input'];
4832
+ };
4833
+
5168
4834
  /** A customer’s completed request to purchase one or more products from a shop. */
5169
4835
  export type OrderReturnsArgs = {
5170
4836
  after?: InputMaybe<Scalars['String']['input']>;
@@ -5430,6 +5096,8 @@ export type OrderEditSummaryChange = Node & {
5430
5096
  export type OrderFinancialStatus =
5431
5097
  /** Displayed as **Authorized**. */
5432
5098
  | 'AUTHORIZED'
5099
+ /** Displayed as **Expired**. */
5100
+ | 'EXPIRED'
5433
5101
  /** Displayed as **Paid**. */
5434
5102
  | 'PAID'
5435
5103
  /** Displayed as **Partially paid**. */
@@ -5509,6 +5177,8 @@ export type OrderLineItemsSummary = {
5509
5177
  __typename?: 'OrderLineItemsSummary';
5510
5178
  /** The number of line items in the order. */
5511
5179
  lineItemCount: Scalars['Int']['output'];
5180
+ /** The total quantity of all legacy fees in the order. */
5181
+ totalQuantityOfLegacyFeesLineItems: Scalars['Int']['output'];
5512
5182
  /** The total quantity of all line items in the order. */
5513
5183
  totalQuantityOfLineItems: Scalars['Int']['output'];
5514
5184
  /** The total quantity of all tips in the order. */
@@ -5707,7 +5377,9 @@ export type OrderTransactionType =
5707
5377
  /** A money order transaction. */
5708
5378
  | 'MONEY_ORDER'
5709
5379
  /** A Shopify installments transaction. */
5710
- | 'SHOPIFY_INSTALLMENTS';
5380
+ | 'SHOPIFY_INSTALLMENTS'
5381
+ /** A store credit transaction. */
5382
+ | 'STORE_CREDIT';
5711
5383
 
5712
5384
  /**
5713
5385
  * Returns information about pagination in a connection, in accordance with the
@@ -5821,7 +5493,7 @@ export type PaymentInstrumentBillingAddress = {
5821
5493
  lastName?: Maybe<Scalars['String']['output']>;
5822
5494
  /** The region of the address, such as the province, state, or district. */
5823
5495
  province?: Maybe<Scalars['String']['output']>;
5824
- /** The two-letter code for the region, for example, ON. */
5496
+ /** The alphanumeric code for the region, for example, ON. */
5825
5497
  provinceCode?: Maybe<Scalars['String']['output']>;
5826
5498
  /** The zip or postal code of the address. */
5827
5499
  zip?: Maybe<Scalars['String']['output']>;
@@ -6009,250 +5681,42 @@ export type PaypalTokenCreatePayload = {
6009
5681
  };
6010
5682
 
6011
5683
  /**
6012
- * The operations that can be performed on a B2B resource.
6013
- *
6014
- */
6015
- export type PermittedOperation =
6016
- /**
6017
- * The permission to add a resource.
6018
- *
6019
- */
6020
- | 'ADD'
6021
- /**
6022
- * All permissions for a resource.
6023
- *
6024
- */
6025
- | 'ALL'
6026
- /**
6027
- * The permission to delete a resource.
6028
- *
6029
- */
6030
- | 'DELETE'
6031
- /**
6032
- * The permission to edit a resource.
6033
- *
6034
- */
6035
- | 'EDIT'
6036
- /**
6037
- * The permission to use a resource.
6038
- *
6039
- */
6040
- | 'USE'
6041
- /**
6042
- * The permission to view a resource.
6043
- *
6044
- */
6045
- | 'VIEW';
6046
-
6047
- /** Represents the personal information of a customer. */
6048
- export type PersonalAccount = HasMetafields &
6049
- Node & {
6050
- __typename?: 'PersonalAccount';
6051
- /**
6052
- * Indicates if the customer accepts email marketing communication.
6053
- * If the customer doesn't have an email address, then this property is `false`.
6054
- *
6055
- */
6056
- acceptsEmailMarketing: Scalars['Boolean']['output'];
6057
- /**
6058
- * Indicates if the customer accepts sms marketing communication.
6059
- * If the customer doesn't have a phone number, then this property is `false`.
6060
- *
6061
- */
6062
- acceptsSmsMarketing: Scalars['Boolean']['output'];
6063
- /** The addresses associated with the customer. */
6064
- addresses: CustomerMailingAddressConnection;
6065
- /** The list of wallet payment configs for providers that the payment method accepts. */
6066
- availableWalletPaymentConfigs: Array<WalletPaymentConfig>;
6067
- /** The date and time when the customer was created. */
6068
- createdAt: Scalars['DateTime']['output'];
6069
- /** The date and time when the customer was created. */
6070
- creationDate: Scalars['DateTime']['output'];
6071
- /** A Credit Card resource identified by ID. */
6072
- creditCard?: Maybe<CustomerCreditCard>;
6073
- /** The stored Credit Cards associated with the customer. */
6074
- creditCards: CustomerCreditCardConnection;
6075
- /** The email address of the customer. */
6076
- customerEmailAddress?: Maybe<CustomerEmailAddress>;
6077
- /** The phone number of the customer. */
6078
- customerPhoneNumber?: Maybe<CustomerPhoneNumber>;
6079
- /** The default mailing address of the customer. */
6080
- defaultAddress?: Maybe<CustomerMailingAddress>;
6081
- /**
6082
- * The full name of the customer, based on the first_name and last_name values. If these aren't available, it falls back to the customer's email address, and if that isn't available, the customer's phone number.
6083
- *
6084
- */
6085
- displayName: Scalars['String']['output'];
6086
- /** A Draft Order resource identified by ID. */
6087
- draftOrder?: Maybe<DraftOrder>;
6088
- /** The Draft Orders associated with the customer. */
6089
- draftOrders: DraftOrderConnection;
6090
- /** The email address of the customer. */
6091
- email?: Maybe<Scalars['String']['output']>;
6092
- /**
6093
- * The current email marketing state for the customer.
6094
- * If the customer doesn't have an email address, then this property is `null`.
6095
- *
6096
- */
6097
- emailMarketingConsent?: Maybe<EmailMarketingConsentState>;
6098
- /** The first name of the customer. */
6099
- firstName?: Maybe<Scalars['String']['output']>;
6100
- /** A globally-unique ID. */
6101
- id: Scalars['ID']['output'];
6102
- /** The URL to the avatar image of the customer. */
6103
- imageUrl: Scalars['URL']['output'];
6104
- /** The customer's most recently updated, incomplete checkout. */
6105
- lastIncompleteCheckout?: Maybe<Checkout>;
6106
- /** The last name of the customer. */
6107
- lastName?: Maybe<Scalars['String']['output']>;
6108
- /** A metafield found by namespace and key. */
6109
- metafield?: Maybe<Metafield>;
6110
- /**
6111
- * The metafields associated with the resource matching the
6112
- * supplied list of namespaces and keys.
6113
- *
6114
- */
6115
- metafields: Array<Maybe<Metafield>>;
6116
- /** Returns an Order resource by ID. */
6117
- order?: Maybe<Order>;
6118
- /** An Order resource identified by ID. */
6119
- orderDetailsPageOrder?: Maybe<OrderDetailsPageOrder>;
6120
- /** The orders associated with the customer. */
6121
- orders: OrderConnection;
6122
- /** A PayPal Billing Agreement resource. */
6123
- paypalBillingAgreement?: Maybe<PaypalBillingAgreement>;
6124
- /** The phone number of the customer. */
6125
- phone?: Maybe<Scalars['String']['output']>;
6126
- /** A Return identified by ID. */
6127
- return?: Maybe<Return>;
6128
- /** A Subscription Contract resource identified by ID. */
6129
- subscriptionContract?: Maybe<SubscriptionContract>;
6130
- /** The Subscription Contracts associated with the customer. */
6131
- subscriptionContracts: SubscriptionContractConnection;
6132
- /** A comma-separated list of tags that have been added to the customer. */
6133
- tags: Array<Scalars['String']['output']>;
6134
- /** Indicates whether the customer is exempt from being charged taxes on their orders. */
6135
- taxExempt: Scalars['Boolean']['output'];
6136
- /** The list of tax exemption types applied to the customer. */
6137
- taxExemptions: Array<TaxExemption>;
6138
- /** The list of tax exemptions applied to the customer with additional details. */
6139
- taxExemptionsDetails: Array<TaxExemptionDetails>;
6140
- };
6141
-
6142
- /** Represents the personal information of a customer. */
6143
- export type PersonalAccountAddressesArgs = {
6144
- after?: InputMaybe<Scalars['String']['input']>;
6145
- before?: InputMaybe<Scalars['String']['input']>;
6146
- first?: InputMaybe<Scalars['Int']['input']>;
6147
- last?: InputMaybe<Scalars['Int']['input']>;
6148
- reverse?: InputMaybe<Scalars['Boolean']['input']>;
6149
- skipDefault?: InputMaybe<Scalars['Boolean']['input']>;
6150
- };
6151
-
6152
- /** Represents the personal information of a customer. */
6153
- export type PersonalAccountCreditCardArgs = {
6154
- id: Scalars['ID']['input'];
6155
- };
6156
-
6157
- /** Represents the personal information of a customer. */
6158
- export type PersonalAccountCreditCardsArgs = {
6159
- after?: InputMaybe<Scalars['String']['input']>;
6160
- before?: InputMaybe<Scalars['String']['input']>;
6161
- first?: InputMaybe<Scalars['Int']['input']>;
6162
- last?: InputMaybe<Scalars['Int']['input']>;
6163
- reverse?: InputMaybe<Scalars['Boolean']['input']>;
6164
- };
6165
-
6166
- /** Represents the personal information of a customer. */
6167
- export type PersonalAccountDraftOrderArgs = {
6168
- id: Scalars['ID']['input'];
6169
- };
6170
-
6171
- /** Represents the personal information of a customer. */
6172
- export type PersonalAccountDraftOrdersArgs = {
6173
- after?: InputMaybe<Scalars['String']['input']>;
6174
- before?: InputMaybe<Scalars['String']['input']>;
6175
- first?: InputMaybe<Scalars['Int']['input']>;
6176
- last?: InputMaybe<Scalars['Int']['input']>;
6177
- query?: InputMaybe<Scalars['String']['input']>;
6178
- reverse?: InputMaybe<Scalars['Boolean']['input']>;
6179
- sortKey?: InputMaybe<DraftOrderSortKeys>;
6180
- };
6181
-
6182
- /** Represents the personal information of a customer. */
6183
- export type PersonalAccountMetafieldArgs = {
6184
- key: Scalars['String']['input'];
6185
- namespace: Scalars['String']['input'];
6186
- };
6187
-
6188
- /** Represents the personal information of a customer. */
6189
- export type PersonalAccountMetafieldsArgs = {
6190
- identifiers: Array<HasMetafieldsIdentifier>;
6191
- };
6192
-
6193
- /** Represents the personal information of a customer. */
6194
- export type PersonalAccountOrderArgs = {
6195
- id: Scalars['ID']['input'];
6196
- };
6197
-
6198
- /** Represents the personal information of a customer. */
6199
- export type PersonalAccountOrderDetailsPageOrderArgs = {
6200
- id: Scalars['ID']['input'];
6201
- };
6202
-
6203
- /** Represents the personal information of a customer. */
6204
- export type PersonalAccountOrdersArgs = {
6205
- after?: InputMaybe<Scalars['String']['input']>;
6206
- before?: InputMaybe<Scalars['String']['input']>;
6207
- first?: InputMaybe<Scalars['Int']['input']>;
6208
- last?: InputMaybe<Scalars['Int']['input']>;
6209
- query?: InputMaybe<Scalars['String']['input']>;
6210
- reverse?: InputMaybe<Scalars['Boolean']['input']>;
6211
- sortKey?: InputMaybe<OrderSortKeys>;
6212
- };
6213
-
6214
- /** Represents the personal information of a customer. */
6215
- export type PersonalAccountReturnArgs = {
6216
- id: Scalars['ID']['input'];
6217
- };
6218
-
6219
- /** Represents the personal information of a customer. */
6220
- export type PersonalAccountSubscriptionContractArgs = {
6221
- id: Scalars['ID']['input'];
6222
- };
6223
-
6224
- /** Represents the personal information of a customer. */
6225
- export type PersonalAccountSubscriptionContractsArgs = {
6226
- after?: InputMaybe<Scalars['String']['input']>;
6227
- before?: InputMaybe<Scalars['String']['input']>;
6228
- first?: InputMaybe<Scalars['Int']['input']>;
6229
- last?: InputMaybe<Scalars['Int']['input']>;
6230
- query?: InputMaybe<Scalars['String']['input']>;
6231
- reverse?: InputMaybe<Scalars['Boolean']['input']>;
6232
- sortKey?: InputMaybe<SubscriptionContractsSortKeys>;
6233
- };
6234
-
6235
- /**
6236
- * The input fields to update a customer's personal information.
6237
- *
6238
- */
6239
- export type PersonalInformationUpdateInput = {
6240
- /** The customer's first name. */
6241
- firstName?: InputMaybe<Scalars['String']['input']>;
6242
- /** The customer's last name. */
6243
- lastName?: InputMaybe<Scalars['String']['input']>;
6244
- };
6245
-
6246
- /** Return type for `personalInformationUpdate` mutation. */
6247
- export type PersonalInformationUpdatePayload = {
6248
- __typename?: 'PersonalInformationUpdatePayload';
6249
- /** The customer's personal information that has been updated. */
6250
- personalInformation?: Maybe<PersonalAccount>;
6251
- /** The list of errors that occurred from executing the mutation. */
6252
- userErrors: Array<UserErrorsPersonalInformationUserErrors>;
6253
- };
6254
-
6255
- /**
5684
+ * The operations that can be performed on a B2B resource.
5685
+ *
5686
+ */
5687
+ export type PermittedOperation =
5688
+ /**
5689
+ * The permission to add a resource.
5690
+ *
5691
+ */
5692
+ | 'ADD'
5693
+ /**
5694
+ * All permissions for a resource.
5695
+ *
5696
+ */
5697
+ | 'ALL'
5698
+ /**
5699
+ * The permission to delete a resource.
5700
+ *
5701
+ */
5702
+ | 'DELETE'
5703
+ /**
5704
+ * The permission to edit a resource.
5705
+ *
5706
+ */
5707
+ | 'EDIT'
5708
+ /**
5709
+ * The permission to use a resource.
5710
+ *
5711
+ */
5712
+ | 'USE'
5713
+ /**
5714
+ * The permission to view a resource.
5715
+ *
5716
+ */
5717
+ | 'VIEW';
5718
+
5719
+ /**
6256
5720
  * The address of a pickup location.
6257
5721
  *
6258
5722
  */
@@ -6354,6 +5818,12 @@ export type PublicOrder = Node & {
6354
5818
  hasEmail: Scalars['Boolean']['output'];
6355
5819
  /** A globally-unique ID. */
6356
5820
  id: Scalars['ID']['output'];
5821
+ /** The merchandise lines marked as fees with total value, aggregated by title. */
5822
+ legacyAggregatedMerchandiseTermsAsFees: Array<LegacyAggregatedMerchandiseTermsAsFees>;
5823
+ /** Whether or not products marked as fees should be rendered as money lines. */
5824
+ legacyRepresentProductsAsFees: Scalars['Boolean']['output'];
5825
+ /** The price of the order before duties, shipping, taxes, and fees. */
5826
+ legacySubtotalWithoutFees?: Maybe<MoneyV2>;
6357
5827
  /** The list of the order's line item containers (e.g., Unfulfilled). */
6358
5828
  lineItemContainers: Array<LineItemContainer>;
6359
5829
  /** The list of line items of the order. */
@@ -6385,6 +5855,8 @@ export type PublicOrder = Node & {
6385
5855
  reorderPath?: Maybe<Scalars['String']['output']>;
6386
5856
  /** Whether the order requires shipping. */
6387
5857
  requiresShipping: Scalars['Boolean']['output'];
5858
+ /** A Return identified by ID. */
5859
+ return?: Maybe<Return>;
6388
5860
  /** The list of returns for the order with pagination. */
6389
5861
  returns: ReturnConnection;
6390
5862
  /** The list of shipping line groups for the order. */
@@ -6435,6 +5907,11 @@ export type PublicOrderLineItemsArgs = {
6435
5907
  reverse?: InputMaybe<Scalars['Boolean']['input']>;
6436
5908
  };
6437
5909
 
5910
+ /** The data that about an order that is visible to anyone with the order ID. */
5911
+ export type PublicOrderReturnArgs = {
5912
+ id: Scalars['ID']['input'];
5913
+ };
5914
+
6438
5915
  /** The data that about an order that is visible to anyone with the order ID. */
6439
5916
  export type PublicOrderReturnsArgs = {
6440
5917
  after?: InputMaybe<Scalars['String']['input']>;
@@ -6455,12 +5932,8 @@ export type PurchasingCompany = {
6455
5932
  company: Company;
6456
5933
  /** The company contact associated with the order or draft order. */
6457
5934
  contact?: Maybe<CompanyContact>;
6458
- /** The company contact associated with the order or draft order. */
6459
- contactV1?: Maybe<Contact>;
6460
5935
  /** The company location associated with the order or draft order. */
6461
5936
  location: CompanyLocation;
6462
- /** The company location associated with the order or draft order. */
6463
- locationV1: Location;
6464
5937
  };
6465
5938
 
6466
5939
  /**
@@ -6469,26 +5942,16 @@ export type PurchasingCompany = {
6469
5942
  */
6470
5943
  export type PurchasingEntity = Customer | PurchasingCompany;
6471
5944
 
6472
- /**
6473
- * Represents information about the purchasing entity for the order or draft order.
6474
- *
6475
- */
6476
- export type PurchasingEntityV1 = PersonalAccount | PurchasingCompany;
6477
-
6478
5945
  /** This acts as the public, top-level API from which all queries start. */
6479
5946
  export type QueryRoot = {
6480
5947
  __typename?: 'QueryRoot';
6481
- /** Returns the settings for the address form. */
6482
- addressFormSettings: AddressFormSettings;
6483
- /** Returns the business account of the customer. */
6484
- businessAccount: BusinessAccount;
6485
5948
  /** The information of the customer's company. */
6486
5949
  company?: Maybe<Company>;
6487
5950
  /** The Location corresponding to the provided ID. */
6488
5951
  companyLocation?: Maybe<CompanyLocation>;
6489
5952
  /** Returns the Customer resource. */
6490
5953
  customer: Customer;
6491
- /** Returns a Draft Order resource by ID. */
5954
+ /** Returns a draft order resource by ID. */
6492
5955
  draftOrder?: Maybe<DraftOrder>;
6493
5956
  /** The API tokens for UI extensions. */
6494
5957
  extensionApiTokens?: Maybe<ExtensionApiTokens>;
@@ -6496,8 +5959,6 @@ export type QueryRoot = {
6496
5959
  order?: Maybe<Order>;
6497
5960
  /** An Order resource identified by ID. */
6498
5961
  orderDetailsPageOrder?: Maybe<OrderDetailsPageOrder>;
6499
- /** Returns the personal information of the customer. */
6500
- personalAccount: PersonalAccount;
6501
5962
  /** Returns the information about the shop. */
6502
5963
  shop: Shop;
6503
5964
  /**
@@ -7490,6 +6951,235 @@ export type SmsMarketingState =
7490
6951
  */
7491
6952
  | 'UNSUBSCRIBED';
7492
6953
 
6954
+ /**
6955
+ * A store credit account contains a monetary balance that can be redeemed at checkout for purchases in the shop.
6956
+ * The account is held in the specified currency and has an owner that cannot be transferred.
6957
+ *
6958
+ * The account balance is redeemable at checkout only when the owner is authenticated via [new customer accounts authentication](https://shopify.dev/docs/api/customer).
6959
+ *
6960
+ */
6961
+ export type StoreCreditAccount = Node & {
6962
+ __typename?: 'StoreCreditAccount';
6963
+ /** The current balance of the store credit account. */
6964
+ balance: MoneyV2;
6965
+ /** A globally-unique ID. */
6966
+ id: Scalars['ID']['output'];
6967
+ /** The transaction history of the store credit account. */
6968
+ transactions: StoreCreditAccountTransactionConnection;
6969
+ };
6970
+
6971
+ /**
6972
+ * A store credit account contains a monetary balance that can be redeemed at checkout for purchases in the shop.
6973
+ * The account is held in the specified currency and has an owner that cannot be transferred.
6974
+ *
6975
+ * The account balance is redeemable at checkout only when the owner is authenticated via [new customer accounts authentication](https://shopify.dev/docs/api/customer).
6976
+ *
6977
+ */
6978
+ export type StoreCreditAccountTransactionsArgs = {
6979
+ after?: InputMaybe<Scalars['String']['input']>;
6980
+ before?: InputMaybe<Scalars['String']['input']>;
6981
+ first?: InputMaybe<Scalars['Int']['input']>;
6982
+ last?: InputMaybe<Scalars['Int']['input']>;
6983
+ query?: InputMaybe<Scalars['String']['input']>;
6984
+ reverse?: InputMaybe<Scalars['Boolean']['input']>;
6985
+ sortKey?: InputMaybe<TransactionSortKeys>;
6986
+ };
6987
+
6988
+ /**
6989
+ * An auto-generated type for paginating through multiple StoreCreditAccounts.
6990
+ *
6991
+ */
6992
+ export type StoreCreditAccountConnection = {
6993
+ __typename?: 'StoreCreditAccountConnection';
6994
+ /** A list of edges. */
6995
+ edges: Array<StoreCreditAccountEdge>;
6996
+ /** A list of the nodes contained in StoreCreditAccountEdge. */
6997
+ nodes: Array<StoreCreditAccount>;
6998
+ /** Information to aid in pagination. */
6999
+ pageInfo: PageInfo;
7000
+ };
7001
+
7002
+ /** A credit transaction which increases the store credit account balance. */
7003
+ export type StoreCreditAccountCreditTransaction = Node &
7004
+ StoreCreditAccountTransaction & {
7005
+ __typename?: 'StoreCreditAccountCreditTransaction';
7006
+ /**
7007
+ * The store credit account that the transaction belongs to.
7008
+ *
7009
+ */
7010
+ account: StoreCreditAccount;
7011
+ /**
7012
+ * The amount of the transaction.
7013
+ *
7014
+ */
7015
+ amount: MoneyV2;
7016
+ /** The balance of the account after the transaction. */
7017
+ balanceAfterTransaction: MoneyV2;
7018
+ /** The date and time when the transaction was created. */
7019
+ createdAt: Scalars['DateTime']['output'];
7020
+ /**
7021
+ * The time at which the transaction expires.
7022
+ * Debit transactions will always spend the soonest expiring credit first.
7023
+ *
7024
+ */
7025
+ expiresAt?: Maybe<Scalars['DateTime']['output']>;
7026
+ /** A globally-unique ID. */
7027
+ id: Scalars['ID']['output'];
7028
+ /**
7029
+ * The remaining amount of the credit.
7030
+ * The remaining amount will decrease when a debit spends this credit. It may also increase if that debit is subsequently reverted.
7031
+ * In the event that the credit expires, the remaining amount will represent the amount that remained as the expiry ocurred.
7032
+ *
7033
+ */
7034
+ remainingAmount: MoneyV2;
7035
+ };
7036
+
7037
+ /**
7038
+ * A debit revert transaction which increases the store credit account balance.
7039
+ * Debit revert transactions are created automatically when a [store credit account debit transaction](https://shopify.dev/api/admin-graphql/latest/objects/StoreCreditAccountDebitTransaction) is reverted.
7040
+ *
7041
+ * Store credit account debit transactions are reverted when an order is cancelled, refunded or in the event of a payment failure at checkout.
7042
+ * The amount added to the balance is equal to the amount reverted on the original credit.
7043
+ *
7044
+ */
7045
+ export type StoreCreditAccountDebitRevertTransaction = Node &
7046
+ StoreCreditAccountTransaction & {
7047
+ __typename?: 'StoreCreditAccountDebitRevertTransaction';
7048
+ /**
7049
+ * The store credit account that the transaction belongs to.
7050
+ *
7051
+ */
7052
+ account: StoreCreditAccount;
7053
+ /**
7054
+ * The amount of the transaction.
7055
+ *
7056
+ */
7057
+ amount: MoneyV2;
7058
+ /** The balance of the account after the transaction. */
7059
+ balanceAfterTransaction: MoneyV2;
7060
+ /** The date and time when the transaction was created. */
7061
+ createdAt: Scalars['DateTime']['output'];
7062
+ /** The reverted debit transaction. */
7063
+ debitTransaction: StoreCreditAccountDebitTransaction;
7064
+ /** A globally-unique ID. */
7065
+ id: Scalars['ID']['output'];
7066
+ };
7067
+
7068
+ /** A debit transaction which decreases the store credit account balance. */
7069
+ export type StoreCreditAccountDebitTransaction = Node &
7070
+ StoreCreditAccountTransaction & {
7071
+ __typename?: 'StoreCreditAccountDebitTransaction';
7072
+ /**
7073
+ * The store credit account that the transaction belongs to.
7074
+ *
7075
+ */
7076
+ account: StoreCreditAccount;
7077
+ /**
7078
+ * The amount of the transaction.
7079
+ *
7080
+ */
7081
+ amount: MoneyV2;
7082
+ /** The balance of the account after the transaction. */
7083
+ balanceAfterTransaction: MoneyV2;
7084
+ /** The date and time when the transaction was created. */
7085
+ createdAt: Scalars['DateTime']['output'];
7086
+ /** A globally-unique ID. */
7087
+ id: Scalars['ID']['output'];
7088
+ };
7089
+
7090
+ /**
7091
+ * An auto-generated type which holds one StoreCreditAccount and a cursor during pagination.
7092
+ *
7093
+ */
7094
+ export type StoreCreditAccountEdge = {
7095
+ __typename?: 'StoreCreditAccountEdge';
7096
+ /** A cursor for use in pagination. */
7097
+ cursor: Scalars['String']['output'];
7098
+ /** The item at the end of StoreCreditAccountEdge. */
7099
+ node: StoreCreditAccount;
7100
+ };
7101
+
7102
+ /**
7103
+ * An expiration transaction which decreases the store credit account balance.
7104
+ * Expiration transactions are created automatically when a [store credit account credit transaction](https://shopify.dev/api/admin-graphql/latest/objects/StoreCreditAccountCreditTransaction) expires.
7105
+ *
7106
+ * The amount subtracted from the balance is equal to the remaining amount of the credit transaction.
7107
+ *
7108
+ */
7109
+ export type StoreCreditAccountExpirationTransaction =
7110
+ StoreCreditAccountTransaction & {
7111
+ __typename?: 'StoreCreditAccountExpirationTransaction';
7112
+ /**
7113
+ * The store credit account that the transaction belongs to.
7114
+ *
7115
+ */
7116
+ account: StoreCreditAccount;
7117
+ /**
7118
+ * The amount of the transaction.
7119
+ *
7120
+ */
7121
+ amount: MoneyV2;
7122
+ /** The balance of the account after the transaction. */
7123
+ balanceAfterTransaction: MoneyV2;
7124
+ /** The date and time when the transaction was created. */
7125
+ createdAt: Scalars['DateTime']['output'];
7126
+ /** The credit transaction which expired. */
7127
+ creditTransaction: StoreCreditAccountCreditTransaction;
7128
+ };
7129
+
7130
+ /** Interface for a store credit account transaction. */
7131
+ export type StoreCreditAccountTransaction = {
7132
+ /**
7133
+ * The store credit account that the transaction belongs to.
7134
+ *
7135
+ */
7136
+ account: StoreCreditAccount;
7137
+ /**
7138
+ * The amount of the transaction.
7139
+ *
7140
+ */
7141
+ amount: MoneyV2;
7142
+ /** The balance of the account after the transaction. */
7143
+ balanceAfterTransaction: MoneyV2;
7144
+ /** The date and time when the transaction was created. */
7145
+ createdAt: Scalars['DateTime']['output'];
7146
+ };
7147
+
7148
+ /**
7149
+ * An auto-generated type for paginating through multiple StoreCreditAccountTransactions.
7150
+ *
7151
+ */
7152
+ export type StoreCreditAccountTransactionConnection = {
7153
+ __typename?: 'StoreCreditAccountTransactionConnection';
7154
+ /** A list of edges. */
7155
+ edges: Array<StoreCreditAccountTransactionEdge>;
7156
+ /** A list of the nodes contained in StoreCreditAccountTransactionEdge. */
7157
+ nodes: Array<
7158
+ | StoreCreditAccountCreditTransaction
7159
+ | StoreCreditAccountDebitRevertTransaction
7160
+ | StoreCreditAccountDebitTransaction
7161
+ | StoreCreditAccountExpirationTransaction
7162
+ >;
7163
+ /** Information to aid in pagination. */
7164
+ pageInfo: PageInfo;
7165
+ };
7166
+
7167
+ /**
7168
+ * An auto-generated type which holds one StoreCreditAccountTransaction and a cursor during pagination.
7169
+ *
7170
+ */
7171
+ export type StoreCreditAccountTransactionEdge = {
7172
+ __typename?: 'StoreCreditAccountTransactionEdge';
7173
+ /** A cursor for use in pagination. */
7174
+ cursor: Scalars['String']['output'];
7175
+ /** The item at the end of StoreCreditAccountTransactionEdge. */
7176
+ node:
7177
+ | StoreCreditAccountCreditTransaction
7178
+ | StoreCreditAccountDebitRevertTransaction
7179
+ | StoreCreditAccountDebitTransaction
7180
+ | StoreCreditAccountExpirationTransaction;
7181
+ };
7182
+
7493
7183
  /** Return type for `storefrontCustomerAccessTokenCreate` mutation. */
7494
7184
  export type StorefrontCustomerAccessTokenCreatePayload = {
7495
7185
  __typename?: 'StorefrontCustomerAccessTokenCreatePayload';
@@ -8197,7 +7887,7 @@ export type SubscriptionMailingAddress = {
8197
7887
  /** The region of the address, such as the province, state, or district. */
8198
7888
  province?: Maybe<Scalars['String']['output']>;
8199
7889
  /**
8200
- * The two-letter code for the region.
7890
+ * The alphanumeric code for the region.
8201
7891
  * For example, ON.
8202
7892
  *
8203
7893
  */
@@ -9009,6 +8699,13 @@ export type TrackingInformation = {
9009
8699
  url?: Maybe<Scalars['URL']['output']>;
9010
8700
  };
9011
8701
 
8702
+ /** The set of valid sort keys for the Transaction query. */
8703
+ export type TransactionSortKeys =
8704
+ /** Sort by the `created_at` value. */
8705
+ | 'CREATED_AT'
8706
+ /** Sort by the `expires_at` value. */
8707
+ | 'EXPIRES_AT';
8708
+
9012
8709
  /** The details related to the transaction type. */
9013
8710
  export type TransactionTypeDetails = {
9014
8711
  __typename?: 'TransactionTypeDetails';
@@ -9272,54 +8969,6 @@ export type UnknownSale = Node &
9272
8969
  totalTaxAmount: MoneyV2;
9273
8970
  };
9274
8971
 
9275
- /** The error codes that are provided for failed address mutations. */
9276
- export type UserErrorsAddressUserErrors = DisplayableError & {
9277
- __typename?: 'UserErrorsAddressUserErrors';
9278
- /** The error code. */
9279
- code?: Maybe<UserErrorsAddressUserErrorsCode>;
9280
- /** The path to the input field that caused the error. */
9281
- field?: Maybe<Array<Scalars['String']['output']>>;
9282
- /** The error message. */
9283
- message: Scalars['String']['output'];
9284
- };
9285
-
9286
- /** Possible error codes that can be returned by `UserErrorsAddressUserErrors`. */
9287
- export type UserErrorsAddressUserErrorsCode =
9288
- /** The Address1 field is missing. */
9289
- | 'ADDRESS1_MISSING'
9290
- /** The provided address already exists. */
9291
- | 'ADDRESS_ALREADY_EXISTS'
9292
- /** The provided address argument is empty. */
9293
- | 'ADDRESS_ARGUMENT_EMPTY'
9294
- /** The provided address ID doesn't exist. */
9295
- | 'ADDRESS_ID_DOES_NOT_EXIST'
9296
- /** The Country Code field is missing. */
9297
- | 'COUNTRY_CODE_MISSING'
9298
- /** The provided country doesn't exist. */
9299
- | 'COUNTRY_NOT_EXIST'
9300
- /** The default address can't be deleted before setting another one as default. */
9301
- | 'DELETING_DEFAULT_ADDRESS_NOT_ALLOWED'
9302
- /** Demoting the default address isn't allowed. */
9303
- | 'DEMOTING_DEFAULT_ADDRESS_NOT_ALLOWED'
9304
- /** The provided address field isn't valid. */
9305
- | 'INVALID'
9306
- /** The provided value is invalid for the country. */
9307
- | 'INVALID_FOR_COUNTRY'
9308
- /** The provided value is invalid for the country and province. */
9309
- | 'INVALID_FOR_COUNTRY_AND_PROVINCE'
9310
- /** The provided Territory Code isn't valid. */
9311
- | 'INVALID_TERRITORY_CODE'
9312
- /** The provided phone number isn't valid. */
9313
- | 'PHONE_NUMBER_NOT_VALID'
9314
- /** The field is required. */
9315
- | 'REQUIRED'
9316
- /** The Territory Code field is missing. */
9317
- | 'TERRITORY_CODE_MISSING'
9318
- /** The provided address field is too long. */
9319
- | 'TOO_LONG'
9320
- /** The Zone Code field is missing. */
9321
- | 'ZONE_CODE_MISSING';
9322
-
9323
8972
  /** The error codes for failed business contact mutations. */
9324
8973
  export type UserErrorsBusinessContactUserErrors = DisplayableError & {
9325
8974
  __typename?: 'UserErrorsBusinessContactUserErrors';
@@ -9425,80 +9074,6 @@ export type UserErrorsBusinessLocationPaymentInstrumentUserErrorsCode =
9425
9074
  /** Zone Code field is missing. */
9426
9075
  | 'ZONE_CODE_MISSING';
9427
9076
 
9428
- /** The error codes for failed business location address mutations. */
9429
- export type UserErrorsCompanyAddressUserErrors = DisplayableError & {
9430
- __typename?: 'UserErrorsCompanyAddressUserErrors';
9431
- /** The error code. */
9432
- code?: Maybe<UserErrorsCompanyAddressUserErrorsCode>;
9433
- /** The path to the input field that caused the error. */
9434
- field?: Maybe<Array<Scalars['String']['output']>>;
9435
- /** The error message. */
9436
- message: Scalars['String']['output'];
9437
- };
9438
-
9439
- /** Possible error codes that can be returned by `UserErrorsCompanyAddressUserErrors`. */
9440
- export type UserErrorsCompanyAddressUserErrorsCode =
9441
- /** Address1 field cannot be blank. */
9442
- | 'ADDRESS1_CANNOT_BE_BLANK'
9443
- /** Address1 field is missing. */
9444
- | 'ADDRESS1_MISSING'
9445
- /** Business location billing address doesn't exist. */
9446
- | 'BUSINESS_LOCATION_BILLING_ADDRESS_NOT_FOUND'
9447
- /** Business location doesn't exist. */
9448
- | 'BUSINESS_LOCATION_NOT_FOUND'
9449
- /** Business location shipping address doesn't exist. */
9450
- | 'BUSINESS_LOCATION_SHIPPING_ADDRESS_NOT_FOUND'
9451
- /** Company address create input argument is empty. */
9452
- | 'COMPANY_ADDRESS_CREATE_INPUT_ARGUMENT_EMPTY'
9453
- /** Company address update input argument is empty. */
9454
- | 'COMPANY_ADDRESS_UPDATE_INPUT_ARGUMENT_EMPTY'
9455
- /** Country_code field cannot be blank. */
9456
- | 'COUNTRY_CODE_CANNOT_BE_BLANK'
9457
- /** Country Code field is missing. */
9458
- | 'COUNTRY_CODE_MISSING'
9459
- /** Creating the address failed. */
9460
- | 'FAILED_TO_CREATE'
9461
- /** Deleting the address failed. */
9462
- | 'FAILED_TO_DELETE'
9463
- /** Setting the address failed. */
9464
- | 'FAILED_TO_SET_ADDRESS'
9465
- /** Setting the billing address failed. */
9466
- | 'FAILED_TO_SET_BILLING_ADDRESS'
9467
- /** Setting the shipping address failed. */
9468
- | 'FAILED_TO_SET_SHIPPING_ADDRESS'
9469
- /** Updating the address failed. */
9470
- | 'FAILED_TO_UPDATE'
9471
- /** The input value is invalid. */
9472
- | 'INVALID'
9473
- /** Invalid address field. */
9474
- | 'INVALID_ADDRESS_FIELD'
9475
- /** Invalid address type. */
9476
- | 'INVALID_ADDRESS_TYPE'
9477
- /** Location has already a billing address. */
9478
- | 'LOCATION_HAS_ALREADY_BILLING_ADDRESS'
9479
- /** Location has already a shipping address. */
9480
- | 'LOCATION_HAS_ALREADY_SHIPPING_ADDRESS'
9481
- /** The country does not have zones. */
9482
- | 'NO_ZONE_IN_COUNTRY'
9483
- /** Permission denied. */
9484
- | 'PERMISSION_DENIED'
9485
- /** Phone field cannot be blank. */
9486
- | 'PHONE_CANNOT_BE_BLANK'
9487
- /** Phone number is not valid. */
9488
- | 'PHONE_NUMBER_NOT_VALID'
9489
- /** Recipient and first/last name present at the same time. */
9490
- | 'PRESENT'
9491
- /** The field is required. */
9492
- | 'REQUIRED'
9493
- /** The field value is too long. */
9494
- | 'TOO_LONG'
9495
- /** Unexpected type. */
9496
- | 'UNEXPECTED_TYPE'
9497
- /** Zone_code field cannot be blank. */
9498
- | 'ZONE_CODE_CANNOT_BE_BLANK'
9499
- /** Zone Code field is missing. */
9500
- | 'ZONE_CODE_MISSING';
9501
-
9502
9077
  /** The error codes that are provided for failed address mutations. */
9503
9078
  export type UserErrorsCustomerAddressUserErrors = DisplayableError & {
9504
9079
  __typename?: 'UserErrorsCustomerAddressUserErrors';
@@ -9716,28 +9291,6 @@ export type UserErrorsPaypalTokenUserErrorsCode =
9716
9291
  /** PayPal Express token could not be created. */
9717
9292
  | 'TOKEN_COULD_NOT_BE_CREATED';
9718
9293
 
9719
- /** Provides error codes for failed personal information mutations. */
9720
- export type UserErrorsPersonalInformationUserErrors = DisplayableError & {
9721
- __typename?: 'UserErrorsPersonalInformationUserErrors';
9722
- /** The error code. */
9723
- code?: Maybe<UserErrorsPersonalInformationUserErrorsCode>;
9724
- /** The path to the input field that caused the error. */
9725
- field?: Maybe<Array<Scalars['String']['output']>>;
9726
- /** The error message. */
9727
- message: Scalars['String']['output'];
9728
- };
9729
-
9730
- /** Possible error codes that can be returned by `UserErrorsPersonalInformationUserErrors`. */
9731
- export type UserErrorsPersonalInformationUserErrorsCode =
9732
- /** The customer does not exist. */
9733
- | 'CUSTOMER_DOES_NOT_EXIST'
9734
- /** The personal information field is not valid. */
9735
- | 'INVALID'
9736
- /** The personal information input argument is empty. */
9737
- | 'PERSONAL_INFORMATION_INPUT_ARGUMENT_EMPTY'
9738
- /** The personal information field is too long. */
9739
- | 'TOO_LONG';
9740
-
9741
9294
  /** The error codes for failed resending gift card mutations. */
9742
9295
  export type UserErrorsResendGiftCardErrors = DisplayableError & {
9743
9296
  __typename?: 'UserErrorsResendGiftCardErrors';