@commercelayer/sdk 6.4.0 → 6.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -47,12 +47,14 @@ type RawResponseReader = {
47
47
 
48
48
  type RequestParams = Record<string, string | number | boolean>;
49
49
  type RequestHeaders = Record<string, string>;
50
+ type RefreshToken = (expiredToken: string) => Promise<string>;
50
51
  type RequestConfig = {
51
52
  timeout?: number;
52
53
  params?: RequestParams;
53
54
  headers?: RequestHeaders;
54
55
  userAgent?: string;
55
56
  fetch?: Fetch;
57
+ refreshToken?: RefreshToken;
56
58
  };
57
59
  type ApiConfig = {
58
60
  organization: string;
@@ -72,6 +74,7 @@ declare class ApiClient {
72
74
  userAgent(userAgent: string): this;
73
75
  request(method: Method, path: string, body?: any, options?: ApiClientConfig): Promise<FetchResponse>;
74
76
  private customHeaders;
77
+ get currentAccessToken(): string;
75
78
  }
76
79
 
77
80
  type CreateArrayWithLengthX<LENGTH extends number, ACC extends unknown[] = []> = ACC['length'] extends LENGTH ? ACC : CreateArrayWithLengthX<LENGTH, [...ACC, 1]>;
@@ -1165,7 +1168,7 @@ type AdyenPaymentType = 'adyen_payments';
1165
1168
  type AdyenPaymentRel$3 = ResourceRel & {
1166
1169
  type: AdyenPaymentType;
1167
1170
  };
1168
- type OrderRel$i = ResourceRel & {
1171
+ type OrderRel$j = ResourceRel & {
1169
1172
  type: OrderType;
1170
1173
  };
1171
1174
  type AdyenPaymentSort = Pick<AdyenPayment, 'id'> & ResourceSort;
@@ -1210,7 +1213,7 @@ interface AdyenPayment extends Resource {
1210
1213
  versions?: Version[] | null;
1211
1214
  }
1212
1215
  interface AdyenPaymentCreate extends ResourceCreate {
1213
- order: OrderRel$i;
1216
+ order: OrderRel$j;
1214
1217
  }
1215
1218
  interface AdyenPaymentUpdate extends ResourceUpdate {
1216
1219
  /**
@@ -1233,7 +1236,7 @@ interface AdyenPaymentUpdate extends ResourceUpdate {
1233
1236
  * @example ```"true"```
1234
1237
  */
1235
1238
  _details?: boolean | null;
1236
- order?: OrderRel$i | null;
1239
+ order?: OrderRel$j | null;
1237
1240
  }
1238
1241
  declare class AdyenPayments extends ApiResource<AdyenPayment> {
1239
1242
  static readonly TYPE: AdyenPaymentType;
@@ -1254,7 +1257,7 @@ type AxervePaymentType = 'axerve_payments';
1254
1257
  type AxervePaymentRel$3 = ResourceRel & {
1255
1258
  type: AxervePaymentType;
1256
1259
  };
1257
- type OrderRel$h = ResourceRel & {
1260
+ type OrderRel$i = ResourceRel & {
1258
1261
  type: OrderType;
1259
1262
  };
1260
1263
  type AxervePaymentSort = Pick<AxervePayment, 'id'> & ResourceSort;
@@ -1324,7 +1327,7 @@ interface AxervePaymentCreate extends ResourceCreate {
1324
1327
  * @example ```"true"```
1325
1328
  */
1326
1329
  request_token?: boolean | null;
1327
- order: OrderRel$h;
1330
+ order: OrderRel$i;
1328
1331
  }
1329
1332
  interface AxervePaymentUpdate extends ResourceUpdate {
1330
1333
  /**
@@ -1337,7 +1340,7 @@ interface AxervePaymentUpdate extends ResourceUpdate {
1337
1340
  * @example ```"true"```
1338
1341
  */
1339
1342
  _update?: boolean | null;
1340
- order?: OrderRel$h | null;
1343
+ order?: OrderRel$i | null;
1341
1344
  }
1342
1345
  declare class AxervePayments extends ApiResource<AxervePayment> {
1343
1346
  static readonly TYPE: AxervePaymentType;
@@ -1358,7 +1361,7 @@ type BraintreePaymentType = 'braintree_payments';
1358
1361
  type BraintreePaymentRel$3 = ResourceRel & {
1359
1362
  type: BraintreePaymentType;
1360
1363
  };
1361
- type OrderRel$g = ResourceRel & {
1364
+ type OrderRel$h = ResourceRel & {
1362
1365
  type: OrderType;
1363
1366
  };
1364
1367
  type BraintreePaymentSort = Pick<BraintreePayment, 'id'> & ResourceSort;
@@ -1414,7 +1417,7 @@ interface BraintreePaymentCreate extends ResourceCreate {
1414
1417
  * @example ```"[object Object]"```
1415
1418
  */
1416
1419
  options?: Record<string, any> | null;
1417
- order: OrderRel$g;
1420
+ order: OrderRel$h;
1418
1421
  }
1419
1422
  interface BraintreePaymentUpdate extends ResourceUpdate {
1420
1423
  /**
@@ -1437,7 +1440,7 @@ interface BraintreePaymentUpdate extends ResourceUpdate {
1437
1440
  * @example ```"[object Object]"```
1438
1441
  */
1439
1442
  options?: Record<string, any> | null;
1440
- order?: OrderRel$g | null;
1443
+ order?: OrderRel$h | null;
1441
1444
  }
1442
1445
  declare class BraintreePayments extends ApiResource<BraintreePayment> {
1443
1446
  static readonly TYPE: BraintreePaymentType;
@@ -1457,7 +1460,7 @@ type CheckoutComPaymentType = 'checkout_com_payments';
1457
1460
  type CheckoutComPaymentRel$3 = ResourceRel & {
1458
1461
  type: CheckoutComPaymentType;
1459
1462
  };
1460
- type OrderRel$f = ResourceRel & {
1463
+ type OrderRel$g = ResourceRel & {
1461
1464
  type: OrderType;
1462
1465
  };
1463
1466
  type CheckoutComPaymentSort = Pick<CheckoutComPayment, 'id'> & ResourceSort;
@@ -1552,7 +1555,7 @@ interface CheckoutComPaymentCreate extends ResourceCreate {
1552
1555
  * @example ```"http://commercelayer.dev/checkout_com/failure"```
1553
1556
  */
1554
1557
  failure_url?: string | null;
1555
- order: OrderRel$f;
1558
+ order: OrderRel$g;
1556
1559
  }
1557
1560
  interface CheckoutComPaymentUpdate extends ResourceUpdate {
1558
1561
  /**
@@ -1590,7 +1593,7 @@ interface CheckoutComPaymentUpdate extends ResourceUpdate {
1590
1593
  * @example ```"true"```
1591
1594
  */
1592
1595
  _refresh?: boolean | null;
1593
- order?: OrderRel$f | null;
1596
+ order?: OrderRel$g | null;
1594
1597
  }
1595
1598
  declare class CheckoutComPayments extends ApiResource<CheckoutComPayment> {
1596
1599
  static readonly TYPE: CheckoutComPaymentType;
@@ -1612,7 +1615,7 @@ type ExternalPaymentType = 'external_payments';
1612
1615
  type ExternalPaymentRel$2 = ResourceRel & {
1613
1616
  type: ExternalPaymentType;
1614
1617
  };
1615
- type OrderRel$e = ResourceRel & {
1618
+ type OrderRel$f = ResourceRel & {
1616
1619
  type: OrderType;
1617
1620
  };
1618
1621
  type ExternalPaymentSort = Pick<ExternalPayment, 'id'> & ResourceSort;
@@ -1649,7 +1652,7 @@ interface ExternalPaymentCreate extends ResourceCreate {
1649
1652
  * @example ```"[object Object]"```
1650
1653
  */
1651
1654
  options?: Record<string, any> | null;
1652
- order: OrderRel$e;
1655
+ order: OrderRel$f;
1653
1656
  }
1654
1657
  interface ExternalPaymentUpdate extends ResourceUpdate {
1655
1658
  /**
@@ -1657,7 +1660,7 @@ interface ExternalPaymentUpdate extends ResourceUpdate {
1657
1660
  * @example ```"[object Object]"```
1658
1661
  */
1659
1662
  options?: Record<string, any> | null;
1660
- order?: OrderRel$e | null;
1663
+ order?: OrderRel$f | null;
1661
1664
  }
1662
1665
  declare class ExternalPayments extends ApiResource<ExternalPayment> {
1663
1666
  static readonly TYPE: ExternalPaymentType;
@@ -1678,7 +1681,7 @@ type KlarnaPaymentType = 'klarna_payments';
1678
1681
  type KlarnaPaymentRel$3 = ResourceRel & {
1679
1682
  type: KlarnaPaymentType;
1680
1683
  };
1681
- type OrderRel$d = ResourceRel & {
1684
+ type OrderRel$e = ResourceRel & {
1682
1685
  type: OrderType;
1683
1686
  };
1684
1687
  type KlarnaPaymentSort = Pick<KlarnaPayment, 'id'> & ResourceSort;
@@ -1718,7 +1721,7 @@ interface KlarnaPayment extends Resource {
1718
1721
  versions?: Version[] | null;
1719
1722
  }
1720
1723
  interface KlarnaPaymentCreate extends ResourceCreate {
1721
- order: OrderRel$d;
1724
+ order: OrderRel$e;
1722
1725
  }
1723
1726
  interface KlarnaPaymentUpdate extends ResourceUpdate {
1724
1727
  /**
@@ -1731,7 +1734,7 @@ interface KlarnaPaymentUpdate extends ResourceUpdate {
1731
1734
  * @example ```"true"```
1732
1735
  */
1733
1736
  _update?: boolean | null;
1734
- order?: OrderRel$d | null;
1737
+ order?: OrderRel$e | null;
1735
1738
  }
1736
1739
  declare class KlarnaPayments extends ApiResource<KlarnaPayment> {
1737
1740
  static readonly TYPE: KlarnaPaymentType;
@@ -1752,7 +1755,7 @@ type SatispayPaymentType = 'satispay_payments';
1752
1755
  type SatispayPaymentRel$3 = ResourceRel & {
1753
1756
  type: SatispayPaymentType;
1754
1757
  };
1755
- type OrderRel$c = ResourceRel & {
1758
+ type OrderRel$d = ResourceRel & {
1756
1759
  type: OrderType;
1757
1760
  };
1758
1761
  type SatispayPaymentSort = Pick<SatispayPayment, 'id' | 'flow' | 'status'> & ResourceSort;
@@ -1803,7 +1806,7 @@ interface SatispayPaymentCreate extends ResourceCreate {
1803
1806
  * @example ```"http://commercelayer.dev/satispay/redirect"```
1804
1807
  */
1805
1808
  redirect_url?: string | null;
1806
- order: OrderRel$c;
1809
+ order: OrderRel$d;
1807
1810
  }
1808
1811
  interface SatispayPaymentUpdate extends ResourceUpdate {
1809
1812
  /**
@@ -1816,7 +1819,7 @@ interface SatispayPaymentUpdate extends ResourceUpdate {
1816
1819
  * @example ```"true"```
1817
1820
  */
1818
1821
  _refresh?: boolean | null;
1819
- order?: OrderRel$c | null;
1822
+ order?: OrderRel$d | null;
1820
1823
  }
1821
1824
  declare class SatispayPayments extends ApiResource<SatispayPayment> {
1822
1825
  static readonly TYPE: SatispayPaymentType;
@@ -1837,7 +1840,7 @@ type StripePaymentType = 'stripe_payments';
1837
1840
  type StripePaymentRel$2 = ResourceRel & {
1838
1841
  type: StripePaymentType;
1839
1842
  };
1840
- type OrderRel$b = ResourceRel & {
1843
+ type OrderRel$c = ResourceRel & {
1841
1844
  type: OrderType;
1842
1845
  };
1843
1846
  type StripePaymentSort = Pick<StripePayment, 'id'> & ResourceSort;
@@ -1922,7 +1925,7 @@ interface StripePaymentCreate extends ResourceCreate {
1922
1925
  * @example ```"john@example.com"```
1923
1926
  */
1924
1927
  receipt_email?: string | null;
1925
- order: OrderRel$b;
1928
+ order: OrderRel$c;
1926
1929
  }
1927
1930
  interface StripePaymentUpdate extends ResourceUpdate {
1928
1931
  /**
@@ -1945,7 +1948,7 @@ interface StripePaymentUpdate extends ResourceUpdate {
1945
1948
  * @example ```"true"```
1946
1949
  */
1947
1950
  _refresh?: boolean | null;
1948
- order?: OrderRel$b | null;
1951
+ order?: OrderRel$c | null;
1949
1952
  }
1950
1953
  declare class StripePayments extends ApiResource<StripePayment> {
1951
1954
  static readonly TYPE: StripePaymentType;
@@ -2302,7 +2305,7 @@ type SkuListItemType = 'sku_list_items';
2302
2305
  type SkuListItemRel = ResourceRel & {
2303
2306
  type: SkuListItemType;
2304
2307
  };
2305
- type SkuListRel$a = ResourceRel & {
2308
+ type SkuListRel$b = ResourceRel & {
2306
2309
  type: SkuListType;
2307
2310
  };
2308
2311
  type SkuRel$a = ResourceRel & {
@@ -2346,7 +2349,7 @@ interface SkuListItemCreate extends ResourceCreate {
2346
2349
  * @example ```"1"```
2347
2350
  */
2348
2351
  quantity?: number | null;
2349
- sku_list: SkuListRel$a;
2352
+ sku_list: SkuListRel$b;
2350
2353
  sku: SkuRel$a;
2351
2354
  }
2352
2355
  interface SkuListItemUpdate extends ResourceUpdate {
@@ -2381,7 +2384,7 @@ declare class SkuListItems extends ApiResource<SkuListItem> {
2381
2384
  }
2382
2385
 
2383
2386
  type SkuListType = 'sku_lists';
2384
- type SkuListRel$9 = ResourceRel & {
2387
+ type SkuListRel$a = ResourceRel & {
2385
2388
  type: SkuListType;
2386
2389
  };
2387
2390
  type CustomerRel$6 = ResourceRel & {
@@ -2492,8 +2495,8 @@ declare class SkuLists extends ApiResource<SkuList> {
2492
2495
  attachments(skuListId: string | SkuList, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
2493
2496
  versions(skuListId: string | SkuList, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
2494
2497
  isSkuList(resource: any): resource is SkuList;
2495
- relationship(id: string | ResourceId | null): SkuListRel$9;
2496
- relationshipToMany(...ids: string[]): SkuListRel$9[];
2498
+ relationship(id: string | ResourceId | null): SkuListRel$a;
2499
+ relationshipToMany(...ids: string[]): SkuListRel$a[];
2497
2500
  type(): SkuListType;
2498
2501
  }
2499
2502
 
@@ -2720,7 +2723,7 @@ type CouponCodesPromotionRuleRel$7 = ResourceRel & {
2720
2723
  type CustomPromotionRuleRel$7 = ResourceRel & {
2721
2724
  type: CustomPromotionRuleType;
2722
2725
  };
2723
- type SkuListRel$8 = ResourceRel & {
2726
+ type SkuListRel$9 = ResourceRel & {
2724
2727
  type: SkuListType;
2725
2728
  };
2726
2729
  type TagRel$h = ResourceRel & {
@@ -2869,7 +2872,7 @@ interface FixedPricePromotionCreate extends ResourceCreate {
2869
2872
  sku_list_promotion_rule?: SkuListPromotionRuleRel$7 | null;
2870
2873
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$7 | null;
2871
2874
  custom_promotion_rule?: CustomPromotionRuleRel$7 | null;
2872
- sku_list: SkuListRel$8;
2875
+ sku_list: SkuListRel$9;
2873
2876
  tags?: TagRel$h[] | null;
2874
2877
  }
2875
2878
  interface FixedPricePromotionUpdate extends ResourceUpdate {
@@ -2928,7 +2931,7 @@ interface FixedPricePromotionUpdate extends ResourceUpdate {
2928
2931
  sku_list_promotion_rule?: SkuListPromotionRuleRel$7 | null;
2929
2932
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$7 | null;
2930
2933
  custom_promotion_rule?: CustomPromotionRuleRel$7 | null;
2931
- sku_list?: SkuListRel$8 | null;
2934
+ sku_list?: SkuListRel$9 | null;
2932
2935
  tags?: TagRel$h[] | null;
2933
2936
  }
2934
2937
  declare class FixedPricePromotions extends ApiResource<FixedPricePromotion> {
@@ -2975,7 +2978,7 @@ type CouponCodesPromotionRuleRel$6 = ResourceRel & {
2975
2978
  type CustomPromotionRuleRel$6 = ResourceRel & {
2976
2979
  type: CustomPromotionRuleType;
2977
2980
  };
2978
- type SkuListRel$7 = ResourceRel & {
2981
+ type SkuListRel$8 = ResourceRel & {
2979
2982
  type: SkuListType;
2980
2983
  };
2981
2984
  type TagRel$g = ResourceRel & {
@@ -3124,7 +3127,7 @@ interface FixedAmountPromotionCreate extends ResourceCreate {
3124
3127
  sku_list_promotion_rule?: SkuListPromotionRuleRel$6 | null;
3125
3128
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$6 | null;
3126
3129
  custom_promotion_rule?: CustomPromotionRuleRel$6 | null;
3127
- sku_list?: SkuListRel$7 | null;
3130
+ sku_list?: SkuListRel$8 | null;
3128
3131
  tags?: TagRel$g[] | null;
3129
3132
  }
3130
3133
  interface FixedAmountPromotionUpdate extends ResourceUpdate {
@@ -3183,7 +3186,7 @@ interface FixedAmountPromotionUpdate extends ResourceUpdate {
3183
3186
  sku_list_promotion_rule?: SkuListPromotionRuleRel$6 | null;
3184
3187
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$6 | null;
3185
3188
  custom_promotion_rule?: CustomPromotionRuleRel$6 | null;
3186
- sku_list?: SkuListRel$7 | null;
3189
+ sku_list?: SkuListRel$8 | null;
3187
3190
  tags?: TagRel$g[] | null;
3188
3191
  }
3189
3192
  declare class FixedAmountPromotions extends ApiResource<FixedAmountPromotion> {
@@ -3294,7 +3297,7 @@ type CouponCodesPromotionRuleRel$5 = ResourceRel & {
3294
3297
  type CustomPromotionRuleRel$4 = ResourceRel & {
3295
3298
  type: CustomPromotionRuleType;
3296
3299
  };
3297
- type SkuListRel$6 = ResourceRel & {
3300
+ type SkuListRel$7 = ResourceRel & {
3298
3301
  type: SkuListType;
3299
3302
  };
3300
3303
  type TagRel$f = ResourceRel & {
@@ -3433,7 +3436,7 @@ interface FreeGiftPromotionCreate extends ResourceCreate {
3433
3436
  sku_list_promotion_rule?: SkuListPromotionRuleRel$5 | null;
3434
3437
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$5 | null;
3435
3438
  custom_promotion_rule?: CustomPromotionRuleRel$4 | null;
3436
- sku_list: SkuListRel$6;
3439
+ sku_list: SkuListRel$7;
3437
3440
  tags?: TagRel$f[] | null;
3438
3441
  }
3439
3442
  interface FreeGiftPromotionUpdate extends ResourceUpdate {
@@ -3492,7 +3495,7 @@ interface FreeGiftPromotionUpdate extends ResourceUpdate {
3492
3495
  sku_list_promotion_rule?: SkuListPromotionRuleRel$5 | null;
3493
3496
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$5 | null;
3494
3497
  custom_promotion_rule?: CustomPromotionRuleRel$4 | null;
3495
- sku_list?: SkuListRel$6 | null;
3498
+ sku_list?: SkuListRel$7 | null;
3496
3499
  tags?: TagRel$f[] | null;
3497
3500
  }
3498
3501
  declare class FreeGiftPromotions extends ApiResource<FreeGiftPromotion> {
@@ -3595,7 +3598,7 @@ type CouponCodesPromotionRuleRel$3 = ResourceRel & {
3595
3598
  type CustomPromotionRuleRel$3 = ResourceRel & {
3596
3599
  type: CustomPromotionRuleType;
3597
3600
  };
3598
- type SkuListRel$5 = ResourceRel & {
3601
+ type SkuListRel$6 = ResourceRel & {
3599
3602
  type: SkuListType;
3600
3603
  };
3601
3604
  type TagRel$e = ResourceRel & {
@@ -3754,7 +3757,7 @@ interface BuyXPayYPromotionCreate extends ResourceCreate {
3754
3757
  sku_list_promotion_rule?: SkuListPromotionRuleRel$4 | null;
3755
3758
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$3 | null;
3756
3759
  custom_promotion_rule?: CustomPromotionRuleRel$3 | null;
3757
- sku_list: SkuListRel$5;
3760
+ sku_list: SkuListRel$6;
3758
3761
  tags?: TagRel$e[] | null;
3759
3762
  }
3760
3763
  interface BuyXPayYPromotionUpdate extends ResourceUpdate {
@@ -3823,7 +3826,7 @@ interface BuyXPayYPromotionUpdate extends ResourceUpdate {
3823
3826
  sku_list_promotion_rule?: SkuListPromotionRuleRel$4 | null;
3824
3827
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$3 | null;
3825
3828
  custom_promotion_rule?: CustomPromotionRuleRel$3 | null;
3826
- sku_list?: SkuListRel$5 | null;
3829
+ sku_list?: SkuListRel$6 | null;
3827
3830
  tags?: TagRel$e[] | null;
3828
3831
  }
3829
3832
  declare class BuyXPayYPromotions extends ApiResource<BuyXPayYPromotion> {
@@ -3876,7 +3879,7 @@ type ExternalPromotionRel$3 = ResourceRel & {
3876
3879
  type FixedAmountPromotionRel$2 = ResourceRel & {
3877
3880
  type: FixedAmountPromotionType;
3878
3881
  };
3879
- type SkuListRel$4 = ResourceRel & {
3882
+ type SkuListRel$5 = ResourceRel & {
3880
3883
  type: SkuListType;
3881
3884
  };
3882
3885
  type SkuListPromotionRuleSort = Pick<SkuListPromotionRule, 'id'> & ResourceSort;
@@ -3909,7 +3912,7 @@ interface SkuListPromotionRuleCreate extends ResourceCreate {
3909
3912
  */
3910
3913
  min_quantity?: number | null;
3911
3914
  promotion: PercentageDiscountPromotionRel$3 | FreeShippingPromotionRel$3 | BuyXPayYPromotionRel$1 | FreeGiftPromotionRel$1 | FixedPricePromotionRel$1 | ExternalPromotionRel$3 | FixedAmountPromotionRel$2;
3912
- sku_list?: SkuListRel$4 | null;
3915
+ sku_list?: SkuListRel$5 | null;
3913
3916
  }
3914
3917
  interface SkuListPromotionRuleUpdate extends ResourceUpdate {
3915
3918
  /**
@@ -3923,7 +3926,7 @@ interface SkuListPromotionRuleUpdate extends ResourceUpdate {
3923
3926
  */
3924
3927
  min_quantity?: number | null;
3925
3928
  promotion?: PercentageDiscountPromotionRel$3 | FreeShippingPromotionRel$3 | BuyXPayYPromotionRel$1 | FreeGiftPromotionRel$1 | FixedPricePromotionRel$1 | ExternalPromotionRel$3 | FixedAmountPromotionRel$2 | null;
3926
- sku_list?: SkuListRel$4 | null;
3929
+ sku_list?: SkuListRel$5 | null;
3927
3930
  }
3928
3931
  declare class SkuListPromotionRules extends ApiResource<SkuListPromotionRule> {
3929
3932
  static readonly TYPE: SkuListPromotionRuleType;
@@ -3958,7 +3961,7 @@ type CouponCodesPromotionRuleRel$2 = ResourceRel & {
3958
3961
  type CustomPromotionRuleRel$2 = ResourceRel & {
3959
3962
  type: CustomPromotionRuleType;
3960
3963
  };
3961
- type SkuListRel$3 = ResourceRel & {
3964
+ type SkuListRel$4 = ResourceRel & {
3962
3965
  type: SkuListType;
3963
3966
  };
3964
3967
  type TagRel$d = ResourceRel & {
@@ -4086,7 +4089,7 @@ interface FreeShippingPromotionCreate extends ResourceCreate {
4086
4089
  sku_list_promotion_rule?: SkuListPromotionRuleRel$2 | null;
4087
4090
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$2 | null;
4088
4091
  custom_promotion_rule?: CustomPromotionRuleRel$2 | null;
4089
- sku_list?: SkuListRel$3 | null;
4092
+ sku_list?: SkuListRel$4 | null;
4090
4093
  tags?: TagRel$d[] | null;
4091
4094
  }
4092
4095
  interface FreeShippingPromotionUpdate extends ResourceUpdate {
@@ -4140,7 +4143,7 @@ interface FreeShippingPromotionUpdate extends ResourceUpdate {
4140
4143
  sku_list_promotion_rule?: SkuListPromotionRuleRel$2 | null;
4141
4144
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$2 | null;
4142
4145
  custom_promotion_rule?: CustomPromotionRuleRel$2 | null;
4143
- sku_list?: SkuListRel$3 | null;
4146
+ sku_list?: SkuListRel$4 | null;
4144
4147
  tags?: TagRel$d[] | null;
4145
4148
  }
4146
4149
  declare class FreeShippingPromotions extends ApiResource<FreeShippingPromotion> {
@@ -4275,7 +4278,7 @@ type CouponCodesPromotionRuleRel$1 = ResourceRel & {
4275
4278
  type CustomPromotionRuleRel$1 = ResourceRel & {
4276
4279
  type: CustomPromotionRuleType;
4277
4280
  };
4278
- type SkuListRel$2 = ResourceRel & {
4281
+ type SkuListRel$3 = ResourceRel & {
4279
4282
  type: SkuListType;
4280
4283
  };
4281
4284
  type TagRel$c = ResourceRel & {
@@ -4414,7 +4417,7 @@ interface PercentageDiscountPromotionCreate extends ResourceCreate {
4414
4417
  sku_list_promotion_rule?: SkuListPromotionRuleRel$1 | null;
4415
4418
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$1 | null;
4416
4419
  custom_promotion_rule?: CustomPromotionRuleRel$1 | null;
4417
- sku_list?: SkuListRel$2 | null;
4420
+ sku_list?: SkuListRel$3 | null;
4418
4421
  tags?: TagRel$c[] | null;
4419
4422
  }
4420
4423
  interface PercentageDiscountPromotionUpdate extends ResourceUpdate {
@@ -4473,7 +4476,7 @@ interface PercentageDiscountPromotionUpdate extends ResourceUpdate {
4473
4476
  sku_list_promotion_rule?: SkuListPromotionRuleRel$1 | null;
4474
4477
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$1 | null;
4475
4478
  custom_promotion_rule?: CustomPromotionRuleRel$1 | null;
4476
- sku_list?: SkuListRel$2 | null;
4479
+ sku_list?: SkuListRel$3 | null;
4477
4480
  tags?: TagRel$c[] | null;
4478
4481
  }
4479
4482
  declare class PercentageDiscountPromotions extends ApiResource<PercentageDiscountPromotion> {
@@ -4539,7 +4542,7 @@ type CouponCodesPromotionRuleRel = ResourceRel & {
4539
4542
  type CustomPromotionRuleRel = ResourceRel & {
4540
4543
  type: CustomPromotionRuleType;
4541
4544
  };
4542
- type SkuListRel$1 = ResourceRel & {
4545
+ type SkuListRel$2 = ResourceRel & {
4543
4546
  type: SkuListType;
4544
4547
  };
4545
4548
  type TagRel$b = ResourceRel & {
@@ -4693,7 +4696,7 @@ interface ExternalPromotionCreate extends ResourceCreate {
4693
4696
  sku_list_promotion_rule?: SkuListPromotionRuleRel | null;
4694
4697
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null;
4695
4698
  custom_promotion_rule?: CustomPromotionRuleRel | null;
4696
- sku_list?: SkuListRel$1 | null;
4699
+ sku_list?: SkuListRel$2 | null;
4697
4700
  tags?: TagRel$b[] | null;
4698
4701
  }
4699
4702
  interface ExternalPromotionUpdate extends ResourceUpdate {
@@ -4757,7 +4760,7 @@ interface ExternalPromotionUpdate extends ResourceUpdate {
4757
4760
  sku_list_promotion_rule?: SkuListPromotionRuleRel | null;
4758
4761
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null;
4759
4762
  custom_promotion_rule?: CustomPromotionRuleRel | null;
4760
- sku_list?: SkuListRel$1 | null;
4763
+ sku_list?: SkuListRel$2 | null;
4761
4764
  tags?: TagRel$b[] | null;
4762
4765
  }
4763
4766
  declare class ExternalPromotions extends ApiResource<ExternalPromotion> {
@@ -5418,7 +5421,7 @@ type ReturnType = 'returns';
5418
5421
  type ReturnRel$2 = ResourceRel & {
5419
5422
  type: ReturnType;
5420
5423
  };
5421
- type OrderRel$a = ResourceRel & {
5424
+ type OrderRel$b = ResourceRel & {
5422
5425
  type: OrderType;
5423
5426
  };
5424
5427
  type StockLocationRel$7 = ResourceRel & {
@@ -5492,7 +5495,7 @@ interface Return extends Resource {
5492
5495
  versions?: Version[] | null;
5493
5496
  }
5494
5497
  interface ReturnCreate extends ResourceCreate {
5495
- order: OrderRel$a;
5498
+ order: OrderRel$b;
5496
5499
  stock_location?: StockLocationRel$7 | null;
5497
5500
  tags?: TagRel$7[] | null;
5498
5501
  }
@@ -5876,7 +5879,7 @@ type LineItemType = 'line_items';
5876
5879
  type LineItemRel$1 = ResourceRel & {
5877
5880
  type: LineItemType;
5878
5881
  };
5879
- type OrderRel$9 = ResourceRel & {
5882
+ type OrderRel$a = ResourceRel & {
5880
5883
  type: OrderType;
5881
5884
  };
5882
5885
  type AdjustmentRel$1 = ResourceRel & {
@@ -6157,7 +6160,7 @@ interface LineItemCreate extends ResourceCreate {
6157
6160
  * @example ```"monthly"```
6158
6161
  */
6159
6162
  frequency?: string | null;
6160
- order: OrderRel$9;
6163
+ order: OrderRel$a;
6161
6164
  item?: AdjustmentRel$1 | BundleRel$3 | ExternalPromotionRel | FixedAmountPromotionRel | FreeShippingPromotionRel | GiftCardRel$1 | PaymentMethodRel$2 | PercentageDiscountPromotionRel | ShipmentRel$4 | SkuRel$8 | null;
6162
6165
  tags?: TagRel$6[] | null;
6163
6166
  }
@@ -6440,7 +6443,7 @@ type RecurringOrderCopyType = 'recurring_order_copies';
6440
6443
  type RecurringOrderCopyRel = ResourceRel & {
6441
6444
  type: RecurringOrderCopyType;
6442
6445
  };
6443
- type OrderRel$8 = ResourceRel & {
6446
+ type OrderRel$9 = ResourceRel & {
6444
6447
  type: OrderType;
6445
6448
  };
6446
6449
  type OrderSubscriptionRel$1 = ResourceRel & {
@@ -6505,7 +6508,7 @@ interface RecurringOrderCopyCreate extends ResourceCreate {
6505
6508
  * @example ```"true"```
6506
6509
  */
6507
6510
  reuse_wallet?: boolean | null;
6508
- source_order: OrderRel$8;
6511
+ source_order: OrderRel$9;
6509
6512
  order_subscription: OrderSubscriptionRel$1;
6510
6513
  }
6511
6514
  type RecurringOrderCopyUpdate = ResourceUpdate;
@@ -6531,7 +6534,7 @@ type OrderSubscriptionRel = ResourceRel & {
6531
6534
  type MarketRel$8 = ResourceRel & {
6532
6535
  type: MarketType;
6533
6536
  };
6534
- type OrderRel$7 = ResourceRel & {
6537
+ type OrderRel$8 = ResourceRel & {
6535
6538
  type: OrderType;
6536
6539
  };
6537
6540
  type CustomerPaymentSourceRel = ResourceRel & {
@@ -6654,7 +6657,7 @@ interface OrderSubscriptionCreate extends ResourceCreate {
6654
6657
  */
6655
6658
  expires_at?: string | null;
6656
6659
  market?: MarketRel$8 | null;
6657
- source_order: OrderRel$7;
6660
+ source_order: OrderRel$8;
6658
6661
  }
6659
6662
  interface OrderSubscriptionUpdate extends ResourceUpdate {
6660
6663
  /**
@@ -6833,7 +6836,7 @@ type PaypalPaymentType = 'paypal_payments';
6833
6836
  type PaypalPaymentRel$1 = ResourceRel & {
6834
6837
  type: PaypalPaymentType;
6835
6838
  };
6836
- type OrderRel$6 = ResourceRel & {
6839
+ type OrderRel$7 = ResourceRel & {
6837
6840
  type: OrderType;
6838
6841
  };
6839
6842
  type PaypalPaymentSort = Pick<PaypalPayment, 'id'> & ResourceSort;
@@ -6908,7 +6911,7 @@ interface PaypalPaymentCreate extends ResourceCreate {
6908
6911
  * @example ```"Thank you for shopping with us!"```
6909
6912
  */
6910
6913
  note_to_payer?: string | null;
6911
- order: OrderRel$6;
6914
+ order: OrderRel$7;
6912
6915
  }
6913
6916
  interface PaypalPaymentUpdate extends ResourceUpdate {
6914
6917
  /**
@@ -6916,7 +6919,7 @@ interface PaypalPaymentUpdate extends ResourceUpdate {
6916
6919
  * @example ```"ABCDEFGHG123456"```
6917
6920
  */
6918
6921
  paypal_payer_id?: string | null;
6919
- order?: OrderRel$6 | null;
6922
+ order?: OrderRel$7 | null;
6920
6923
  }
6921
6924
  declare class PaypalPayments extends ApiResource<PaypalPayment> {
6922
6925
  static readonly TYPE: PaypalPaymentType;
@@ -6936,7 +6939,7 @@ type WireTransferType = 'wire_transfers';
6936
6939
  type WireTransferRel$1 = ResourceRel & {
6937
6940
  type: WireTransferType;
6938
6941
  };
6939
- type OrderRel$5 = ResourceRel & {
6942
+ type OrderRel$6 = ResourceRel & {
6940
6943
  type: OrderType;
6941
6944
  };
6942
6945
  type WireTransferSort = Pick<WireTransfer, 'id'> & ResourceSort;
@@ -6951,10 +6954,10 @@ interface WireTransfer extends Resource {
6951
6954
  versions?: Version[] | null;
6952
6955
  }
6953
6956
  interface WireTransferCreate extends ResourceCreate {
6954
- order: OrderRel$5;
6957
+ order: OrderRel$6;
6955
6958
  }
6956
6959
  interface WireTransferUpdate extends ResourceUpdate {
6957
- order?: OrderRel$5 | null;
6960
+ order?: OrderRel$6 | null;
6958
6961
  }
6959
6962
  declare class WireTransfers extends ApiResource<WireTransfer> {
6960
6963
  static readonly TYPE: WireTransferType;
@@ -6973,7 +6976,7 @@ type PaymentOptionType = 'payment_options';
6973
6976
  type PaymentOptionRel = ResourceRel & {
6974
6977
  type: PaymentOptionType;
6975
6978
  };
6976
- type OrderRel$4 = ResourceRel & {
6979
+ type OrderRel$5 = ResourceRel & {
6977
6980
  type: OrderType;
6978
6981
  };
6979
6982
  type PaymentOptionSort = Pick<PaymentOption, 'id' | 'name' | 'payment_source_type'> & ResourceSort;
@@ -7013,7 +7016,7 @@ interface PaymentOptionCreate extends ResourceCreate {
7013
7016
  * @example ```"[object Object]"```
7014
7017
  */
7015
7018
  data: Record<string, any>;
7016
- order: OrderRel$4;
7019
+ order: OrderRel$5;
7017
7020
  }
7018
7021
  interface PaymentOptionUpdate extends ResourceUpdate {
7019
7022
  /**
@@ -7026,7 +7029,7 @@ interface PaymentOptionUpdate extends ResourceUpdate {
7026
7029
  * @example ```"[object Object]"```
7027
7030
  */
7028
7031
  data?: Record<string, any> | null;
7029
- order?: OrderRel$4 | null;
7032
+ order?: OrderRel$5 | null;
7030
7033
  }
7031
7034
  declare class PaymentOptions extends ApiResource<PaymentOption> {
7032
7035
  static readonly TYPE: PaymentOptionType;
@@ -7505,7 +7508,7 @@ type OrderCopyType = 'order_copies';
7505
7508
  type OrderCopyRel = ResourceRel & {
7506
7509
  type: OrderCopyType;
7507
7510
  };
7508
- type OrderRel$3 = ResourceRel & {
7511
+ type OrderRel$4 = ResourceRel & {
7509
7512
  type: OrderType;
7510
7513
  };
7511
7514
  type OrderCopySort = Pick<OrderCopy, 'id' | 'status' | 'started_at' | 'completed_at' | 'failed_at' | 'errors_count'> & ResourceSort;
@@ -7577,7 +7580,7 @@ interface OrderCopyCreate extends ResourceCreate {
7577
7580
  * @example ```"true"```
7578
7581
  */
7579
7582
  cancel_source_order?: boolean | null;
7580
- source_order: OrderRel$3;
7583
+ source_order: OrderRel$4;
7581
7584
  }
7582
7585
  type OrderCopyUpdate = ResourceUpdate;
7583
7586
  declare class OrderCopies extends ApiResource<OrderCopy> {
@@ -7628,7 +7631,7 @@ declare class ResourceErrors extends ApiResource<ResourceError> {
7628
7631
  }
7629
7632
 
7630
7633
  type OrderType = 'orders';
7631
- type OrderRel$2 = ResourceRel & {
7634
+ type OrderRel$3 = ResourceRel & {
7632
7635
  type: OrderType;
7633
7636
  };
7634
7637
  type MarketRel$7 = ResourceRel & {
@@ -7676,7 +7679,7 @@ type WireTransferRel = ResourceRel & {
7676
7679
  type TagRel$4 = ResourceRel & {
7677
7680
  type: TagType;
7678
7681
  };
7679
- type OrderSort = Pick<Order, 'id' | 'number' | 'place_async' | 'status' | 'payment_status' | 'fulfillment_status' | 'guest' | 'language_code' | 'currency_code' | 'tax_included' | 'tax_rate' | 'country_code' | 'coupon_code' | 'gift_card_code' | 'subtotal_amount_cents' | 'shipping_amount_cents' | 'payment_method_amount_cents' | 'discount_amount_cents' | 'adjustment_amount_cents' | 'gift_card_amount_cents' | 'total_tax_amount_cents' | 'subtotal_tax_amount_cents' | 'total_amount_cents' | 'fees_amount_cents' | 'duty_amount_cents' | 'placed_at' | 'approved_at' | 'cancelled_at' | 'payment_updated_at' | 'fulfillment_updated_at' | 'refreshed_at' | 'archived_at' | 'expires_at' | 'subscription_created_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort;
7682
+ type OrderSort = Pick<Order, 'id' | 'number' | 'place_async' | 'status' | 'payment_status' | 'fulfillment_status' | 'guest' | 'language_code' | 'currency_code' | 'tax_included' | 'tax_rate' | 'country_code' | 'coupon_code' | 'gift_card_code' | 'subtotal_amount_cents' | 'shipping_amount_cents' | 'payment_method_amount_cents' | 'discount_amount_cents' | 'adjustment_amount_cents' | 'gift_card_amount_cents' | 'total_tax_amount_cents' | 'subtotal_tax_amount_cents' | 'total_amount_cents' | 'fees_amount_cents' | 'duty_amount_cents' | 'placed_at' | 'approved_at' | 'cancelled_at' | 'payment_updated_at' | 'fulfillment_updated_at' | 'refreshed_at' | 'archived_at' | 'subscription_created_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort;
7680
7683
  interface Order extends Resource {
7681
7684
  readonly type: OrderType;
7682
7685
  /**
@@ -8190,11 +8193,6 @@ interface Order extends Resource {
8190
8193
  * @example ```"2018-01-01T12:00:00.000Z"```
8191
8194
  */
8192
8195
  archived_at?: string | null;
8193
- /**
8194
- * Time at which an order is marked for cleanup. Any order will start with a default expire time of 2 months. Expiration is reset once a line item is added to the order..
8195
- * @example ```"2018-01-01T12:00:00.000Z"```
8196
- */
8197
- expires_at?: string | null;
8198
8196
  /**
8199
8197
  * Time at which the order has been marked to create a subscription from its recurring line items..
8200
8198
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -8656,8 +8654,8 @@ declare class Orders extends ApiResource<Order> {
8656
8654
  _stop_editing(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
8657
8655
  _reset_circuit(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
8658
8656
  isOrder(resource: any): resource is Order;
8659
- relationship(id: string | ResourceId | null): OrderRel$2;
8660
- relationshipToMany(...ids: string[]): OrderRel$2[];
8657
+ relationship(id: string | ResourceId | null): OrderRel$3;
8658
+ relationshipToMany(...ids: string[]): OrderRel$3[];
8661
8659
  type(): OrderType;
8662
8660
  }
8663
8661
 
@@ -9933,7 +9931,7 @@ type ShipmentType = 'shipments';
9933
9931
  type ShipmentRel$2 = ResourceRel & {
9934
9932
  type: ShipmentType;
9935
9933
  };
9936
- type OrderRel$1 = ResourceRel & {
9934
+ type OrderRel$2 = ResourceRel & {
9937
9935
  type: OrderType;
9938
9936
  };
9939
9937
  type ShippingCategoryRel$2 = ResourceRel & {
@@ -10084,7 +10082,7 @@ interface Shipment extends Resource {
10084
10082
  versions?: Version[] | null;
10085
10083
  }
10086
10084
  interface ShipmentCreate extends ResourceCreate {
10087
- order: OrderRel$1;
10085
+ order: OrderRel$2;
10088
10086
  shipping_category?: ShippingCategoryRel$2 | null;
10089
10087
  inventory_stock_location: InventoryStockLocationRel;
10090
10088
  shipping_address?: AddressRel$2 | null;
@@ -10263,6 +10261,7 @@ interface StockTransfer extends Resource {
10263
10261
  destination_stock_location?: StockLocation | null;
10264
10262
  shipment?: Shipment | null;
10265
10263
  line_item?: LineItem | null;
10264
+ attachments?: Attachment[] | null;
10266
10265
  events?: Event[] | null;
10267
10266
  versions?: Version[] | null;
10268
10267
  }
@@ -10345,6 +10344,7 @@ declare class StockTransfers extends ApiResource<StockTransfer> {
10345
10344
  destination_stock_location(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<StockLocation>, options?: ResourcesConfig): Promise<StockLocation>;
10346
10345
  shipment(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment>;
10347
10346
  line_item(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem>;
10347
+ attachments(stockTransferId: string | StockTransfer, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
10348
10348
  events(stockTransferId: string | StockTransfer, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
10349
10349
  versions(stockTransferId: string | StockTransfer, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
10350
10350
  _upcoming(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer>;
@@ -11554,7 +11554,7 @@ type BundleRel$1 = ResourceRel & {
11554
11554
  type MarketRel$3 = ResourceRel & {
11555
11555
  type: MarketType;
11556
11556
  };
11557
- type SkuListRel = ResourceRel & {
11557
+ type SkuListRel$1 = ResourceRel & {
11558
11558
  type: SkuListType;
11559
11559
  };
11560
11560
  type TagRel$1 = ResourceRel & {
@@ -11686,7 +11686,7 @@ interface BundleCreate extends ResourceCreate {
11686
11686
  */
11687
11687
  _compute_compare_at_amount?: boolean | null;
11688
11688
  market?: MarketRel$3 | null;
11689
- sku_list: SkuListRel;
11689
+ sku_list: SkuListRel$1;
11690
11690
  tags?: TagRel$1[] | null;
11691
11691
  }
11692
11692
  interface BundleUpdate extends ResourceUpdate {
@@ -12521,7 +12521,7 @@ type MerchantRel = ResourceRel & {
12521
12521
  type BillingInfoValidationRuleRel = ResourceRel & {
12522
12522
  type: BillingInfoValidationRuleType;
12523
12523
  };
12524
- type OrderRel = ResourceRel & {
12524
+ type OrderRel$1 = ResourceRel & {
12525
12525
  type: OrderType;
12526
12526
  };
12527
12527
  type PackageRel = ResourceRel & {
@@ -12611,7 +12611,7 @@ interface AttachmentCreate extends ResourceCreate {
12611
12611
  * @example ```"https://s3.yourdomain.com/attachment.pdf"```
12612
12612
  */
12613
12613
  url?: string | null;
12614
- attachable: BundleRel | CarrierAccountRel | CustomerGroupRel | CustomerRel$1 | DeliveryLeadTimeRel | GeocoderRel$2 | GiftCardRecipientRel | GiftCardRel | InventoryModelRel | MarketRel$1 | MerchantRel | BillingInfoValidationRuleRel | OrderRel | PackageRel | ParcelRel | PaymentMethodRel | PriceListRel | PriceRel | PromotionRel | ReturnRel | ShipmentRel | ShippingCategoryRel | ShippingMethodRel | ShippingZoneRel | SkuOptionRel | SkuRel$1 | StockItemRel | StockLocationRel | TaxCalculatorRel | TaxCategoryRel;
12614
+ attachable: BundleRel | CarrierAccountRel | CustomerGroupRel | CustomerRel$1 | DeliveryLeadTimeRel | GeocoderRel$2 | GiftCardRecipientRel | GiftCardRel | InventoryModelRel | MarketRel$1 | MerchantRel | BillingInfoValidationRuleRel | OrderRel$1 | PackageRel | ParcelRel | PaymentMethodRel | PriceListRel | PriceRel | PromotionRel | ReturnRel | ShipmentRel | ShippingCategoryRel | ShippingMethodRel | ShippingZoneRel | SkuOptionRel | SkuRel$1 | StockItemRel | StockLocationRel | TaxCalculatorRel | TaxCategoryRel;
12615
12615
  }
12616
12616
  interface AttachmentUpdate extends ResourceUpdate {
12617
12617
  /**
@@ -12629,7 +12629,7 @@ interface AttachmentUpdate extends ResourceUpdate {
12629
12629
  * @example ```"https://s3.yourdomain.com/attachment.pdf"```
12630
12630
  */
12631
12631
  url?: string | null;
12632
- attachable?: BundleRel | CarrierAccountRel | CustomerGroupRel | CustomerRel$1 | DeliveryLeadTimeRel | GeocoderRel$2 | GiftCardRecipientRel | GiftCardRel | InventoryModelRel | MarketRel$1 | MerchantRel | BillingInfoValidationRuleRel | OrderRel | PackageRel | ParcelRel | PaymentMethodRel | PriceListRel | PriceRel | PromotionRel | ReturnRel | ShipmentRel | ShippingCategoryRel | ShippingMethodRel | ShippingZoneRel | SkuOptionRel | SkuRel$1 | StockItemRel | StockLocationRel | TaxCalculatorRel | TaxCategoryRel | null;
12632
+ attachable?: BundleRel | CarrierAccountRel | CustomerGroupRel | CustomerRel$1 | DeliveryLeadTimeRel | GeocoderRel$2 | GiftCardRecipientRel | GiftCardRel | InventoryModelRel | MarketRel$1 | MerchantRel | BillingInfoValidationRuleRel | OrderRel$1 | PackageRel | ParcelRel | PaymentMethodRel | PriceListRel | PriceRel | PromotionRel | ReturnRel | ShipmentRel | ShippingCategoryRel | ShippingMethodRel | ShippingZoneRel | SkuOptionRel | SkuRel$1 | StockItemRel | StockLocationRel | TaxCalculatorRel | TaxCategoryRel | null;
12633
12633
  }
12634
12634
  declare class Attachments extends ApiResource<Attachment> {
12635
12635
  static readonly TYPE: AttachmentType;
@@ -14254,6 +14254,172 @@ declare class KlarnaGateways extends ApiResource<KlarnaGateway> {
14254
14254
  type(): KlarnaGatewayType;
14255
14255
  }
14256
14256
 
14257
+ type LinkType = 'links';
14258
+ type LinkRel = ResourceRel & {
14259
+ type: LinkType;
14260
+ };
14261
+ type OrderRel = ResourceRel & {
14262
+ type: OrderType;
14263
+ };
14264
+ type SkuListRel = ResourceRel & {
14265
+ type: SkuListType;
14266
+ };
14267
+ type LinkSort = Pick<Link, 'id' | 'name' | 'starts_at' | 'expires_at' | 'disabled_at'> & ResourceSort;
14268
+ interface Link extends Resource {
14269
+ readonly type: LinkType;
14270
+ /**
14271
+ * The link internal name..
14272
+ * @example ```"FW SALE 2023"```
14273
+ */
14274
+ name: string;
14275
+ /**
14276
+ * The link application client id, used to fetch JWT..
14277
+ * @example ```"xxxx-yyyy-zzzz"```
14278
+ */
14279
+ client_id: string;
14280
+ /**
14281
+ * The link application scope, used to fetch JWT..
14282
+ * @example ```"market:GhvCxsElAQ,market:kJhgVcxZDr"```
14283
+ */
14284
+ scope: string;
14285
+ /**
14286
+ * The activation date/time of this link..
14287
+ * @example ```"2018-01-01T12:00:00.000Z"```
14288
+ */
14289
+ starts_at: string;
14290
+ /**
14291
+ * The expiration date/time of this link (must be after starts_at)..
14292
+ * @example ```"2018-01-02T12:00:00.000Z"```
14293
+ */
14294
+ expires_at: string;
14295
+ /**
14296
+ * Indicates if the link is active (enabled and not expired)..
14297
+ * @example ```"true"```
14298
+ */
14299
+ active?: boolean | null;
14300
+ /**
14301
+ * The link status, one of 'expired', 'pending', 'active', or 'disabled'..
14302
+ * @example ```"pending"```
14303
+ */
14304
+ status?: 'expired' | 'pending' | 'active' | 'disabled' | null;
14305
+ /**
14306
+ * The link URL second level domain..
14307
+ * @example ```"c11r.link"```
14308
+ */
14309
+ domain?: string | null;
14310
+ /**
14311
+ * The link URL..
14312
+ * @example ```"https://acme.c11r.link/a597dd63-576e-4aff-9094-0b7d690e94d6"```
14313
+ */
14314
+ url?: string | null;
14315
+ /**
14316
+ * Time at which this resource was disabled..
14317
+ * @example ```"2018-01-01T12:00:00.000Z"```
14318
+ */
14319
+ disabled_at?: string | null;
14320
+ item?: Order | SkuList | null;
14321
+ events?: Event[] | null;
14322
+ }
14323
+ interface LinkCreate extends ResourceCreate {
14324
+ /**
14325
+ * The link internal name..
14326
+ * @example ```"FW SALE 2023"```
14327
+ */
14328
+ name: string;
14329
+ /**
14330
+ * The link application client id, used to fetch JWT..
14331
+ * @example ```"xxxx-yyyy-zzzz"```
14332
+ */
14333
+ client_id: string;
14334
+ /**
14335
+ * The link application scope, used to fetch JWT..
14336
+ * @example ```"market:GhvCxsElAQ,market:kJhgVcxZDr"```
14337
+ */
14338
+ scope: string;
14339
+ /**
14340
+ * The activation date/time of this link..
14341
+ * @example ```"2018-01-01T12:00:00.000Z"```
14342
+ */
14343
+ starts_at: string;
14344
+ /**
14345
+ * The expiration date/time of this link (must be after starts_at)..
14346
+ * @example ```"2018-01-02T12:00:00.000Z"```
14347
+ */
14348
+ expires_at: string;
14349
+ /**
14350
+ * The link URL second level domain..
14351
+ * @example ```"c11r.link"```
14352
+ */
14353
+ domain?: string | null;
14354
+ /**
14355
+ * Send this attribute if you want to mark this resource as disabled..
14356
+ * @example ```"true"```
14357
+ */
14358
+ _disable?: boolean | null;
14359
+ /**
14360
+ * Send this attribute if you want to mark this resource as enabled..
14361
+ * @example ```"true"```
14362
+ */
14363
+ _enable?: boolean | null;
14364
+ item: OrderRel | SkuListRel;
14365
+ }
14366
+ interface LinkUpdate extends ResourceUpdate {
14367
+ /**
14368
+ * The link internal name..
14369
+ * @example ```"FW SALE 2023"```
14370
+ */
14371
+ name?: string | null;
14372
+ /**
14373
+ * The link application client id, used to fetch JWT..
14374
+ * @example ```"xxxx-yyyy-zzzz"```
14375
+ */
14376
+ client_id?: string | null;
14377
+ /**
14378
+ * The link application scope, used to fetch JWT..
14379
+ * @example ```"market:GhvCxsElAQ,market:kJhgVcxZDr"```
14380
+ */
14381
+ scope?: string | null;
14382
+ /**
14383
+ * The activation date/time of this link..
14384
+ * @example ```"2018-01-01T12:00:00.000Z"```
14385
+ */
14386
+ starts_at?: string | null;
14387
+ /**
14388
+ * The expiration date/time of this link (must be after starts_at)..
14389
+ * @example ```"2018-01-02T12:00:00.000Z"```
14390
+ */
14391
+ expires_at?: string | null;
14392
+ /**
14393
+ * The link URL second level domain..
14394
+ * @example ```"c11r.link"```
14395
+ */
14396
+ domain?: string | null;
14397
+ /**
14398
+ * Send this attribute if you want to mark this resource as disabled..
14399
+ * @example ```"true"```
14400
+ */
14401
+ _disable?: boolean | null;
14402
+ /**
14403
+ * Send this attribute if you want to mark this resource as enabled..
14404
+ * @example ```"true"```
14405
+ */
14406
+ _enable?: boolean | null;
14407
+ item?: OrderRel | SkuListRel | null;
14408
+ }
14409
+ declare class Links extends ApiResource<Link> {
14410
+ static readonly TYPE: LinkType;
14411
+ create(resource: LinkCreate, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link>;
14412
+ update(resource: LinkUpdate, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link>;
14413
+ delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
14414
+ events(linkId: string | Link, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
14415
+ _disable(id: string | Link, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link>;
14416
+ _enable(id: string | Link, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link>;
14417
+ isLink(resource: any): resource is Link;
14418
+ relationship(id: string | ResourceId | null): LinkRel;
14419
+ relationshipToMany(...ids: string[]): LinkRel[];
14420
+ type(): LinkType;
14421
+ }
14422
+
14257
14423
  type ManualGatewayType = 'manual_gateways';
14258
14424
  type ManualGatewayRel = ResourceRel & {
14259
14425
  type: ManualGatewayType;
@@ -14712,8 +14878,8 @@ declare class Transactions extends ApiResource<Transaction> {
14712
14878
  type(): TransactionType;
14713
14879
  }
14714
14880
 
14715
- type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'application' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'event_callbacks' | 'events' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'geocoders' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_factories' | 'order_subscription_items' | 'order_subscriptions' | 'order_validation_rules' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_list_schedulers' | 'price_lists' | 'price_tiers' | 'price_volume_tiers' | 'prices' | 'promotion_rules' | 'promotions' | 'recurring_order_copies' | 'refunds' | 'reserved_stocks' | 'resource_errors' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_method_tiers' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'versions' | 'voids' | 'webhooks' | 'wire_transfers';
14716
- declare const resourceList: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "application", "attachments", "authorizations", "avalara_accounts", "axerve_gateways", "axerve_payments", "billing_info_validation_rules", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "buy_x_pay_y_promotions", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "cleanups", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "custom_promotion_rules", "customer_addresses", "customer_groups", "customer_password_resets", "customer_payment_sources", "customer_subscriptions", "customers", "delivery_lead_times", "event_callbacks", "events", "exports", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "fixed_price_promotions", "free_gift_promotions", "free_shipping_promotions", "geocoders", "gift_card_recipients", "gift_cards", "google_geocoders", "imports", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "klarna_gateways", "klarna_payments", "line_item_options", "line_items", "manual_gateways", "manual_tax_calculators", "markets", "merchants", "order_amount_promotion_rules", "order_copies", "order_factories", "order_subscription_items", "order_subscriptions", "order_validation_rules", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "payment_options", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_frequency_tiers", "price_list_schedulers", "price_lists", "price_tiers", "price_volume_tiers", "prices", "promotion_rules", "promotions", "recurring_order_copies", "refunds", "reserved_stocks", "resource_errors", "return_line_items", "returns", "satispay_gateways", "satispay_payments", "shipments", "shipping_categories", "shipping_method_tiers", "shipping_methods", "shipping_weight_tiers", "shipping_zones", "sku_list_items", "sku_list_promotion_rules", "sku_lists", "sku_options", "skus", "stock_items", "stock_line_items", "stock_locations", "stock_reservations", "stock_transfers", "stripe_gateways", "stripe_payments", "subscription_models", "tags", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "versions", "voids", "webhooks", "wire_transfers"];
14881
+ type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'application' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'event_callbacks' | 'events' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'geocoders' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'links' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_factories' | 'order_subscription_items' | 'order_subscriptions' | 'order_validation_rules' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_list_schedulers' | 'price_lists' | 'price_tiers' | 'price_volume_tiers' | 'prices' | 'promotion_rules' | 'promotions' | 'recurring_order_copies' | 'refunds' | 'reserved_stocks' | 'resource_errors' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_method_tiers' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'versions' | 'voids' | 'webhooks' | 'wire_transfers';
14882
+ declare const resourceList: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "application", "attachments", "authorizations", "avalara_accounts", "axerve_gateways", "axerve_payments", "billing_info_validation_rules", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "buy_x_pay_y_promotions", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "cleanups", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "custom_promotion_rules", "customer_addresses", "customer_groups", "customer_password_resets", "customer_payment_sources", "customer_subscriptions", "customers", "delivery_lead_times", "event_callbacks", "events", "exports", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "fixed_price_promotions", "free_gift_promotions", "free_shipping_promotions", "geocoders", "gift_card_recipients", "gift_cards", "google_geocoders", "imports", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "klarna_gateways", "klarna_payments", "line_item_options", "line_items", "links", "manual_gateways", "manual_tax_calculators", "markets", "merchants", "order_amount_promotion_rules", "order_copies", "order_factories", "order_subscription_items", "order_subscriptions", "order_validation_rules", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "payment_options", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_frequency_tiers", "price_list_schedulers", "price_lists", "price_tiers", "price_volume_tiers", "prices", "promotion_rules", "promotions", "recurring_order_copies", "refunds", "reserved_stocks", "resource_errors", "return_line_items", "returns", "satispay_gateways", "satispay_payments", "shipments", "shipping_categories", "shipping_method_tiers", "shipping_methods", "shipping_weight_tiers", "shipping_zones", "sku_list_items", "sku_list_promotion_rules", "sku_lists", "sku_options", "skus", "stock_items", "stock_line_items", "stock_locations", "stock_reservations", "stock_transfers", "stripe_gateways", "stripe_payments", "subscription_models", "tags", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "versions", "voids", "webhooks", "wire_transfers"];
14717
14883
  declare const singletonList: readonly ["application", "organization"];
14718
14884
  type RetrievableResourceType = ResourceTypeLock;
14719
14885
  type RetrievableResource = Resource & {
@@ -14723,15 +14889,15 @@ type ListableResourceType = Exclude<ResourceTypeLock, 'application' | 'organizat
14723
14889
  type ListableResource = Resource & {
14724
14890
  type: ListableResourceType;
14725
14891
  };
14726
- type CreatableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'attachments' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscription_items' | 'order_subscriptions' | 'orders' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_list_schedulers' | 'price_lists' | 'price_volume_tiers' | 'prices' | 'recurring_order_copies' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'webhooks' | 'wire_transfers';
14892
+ type CreatableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'attachments' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'links' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscription_items' | 'order_subscriptions' | 'orders' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_list_schedulers' | 'price_lists' | 'price_volume_tiers' | 'prices' | 'recurring_order_copies' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'webhooks' | 'wire_transfers';
14727
14893
  type CreatableResource = Resource & {
14728
14894
  type: CreatableResourceType;
14729
14895
  };
14730
- type UpdatableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'captures' | 'checkout_com_gateways' | 'checkout_com_payments' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscription_items' | 'order_subscriptions' | 'orders' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_list_schedulers' | 'price_lists' | 'price_volume_tiers' | 'prices' | 'recurring_order_copies' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'webhooks' | 'wire_transfers';
14896
+ type UpdatableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'captures' | 'checkout_com_gateways' | 'checkout_com_payments' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'links' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscription_items' | 'order_subscriptions' | 'orders' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_list_schedulers' | 'price_lists' | 'price_volume_tiers' | 'prices' | 'recurring_order_copies' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'webhooks' | 'wire_transfers';
14731
14897
  type UpdatableResource = Resource & {
14732
14898
  type: UpdatableResourceType;
14733
14899
  };
14734
- type DeletableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'attachments' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscription_items' | 'order_subscriptions' | 'orders' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_list_schedulers' | 'price_lists' | 'price_volume_tiers' | 'prices' | 'recurring_order_copies' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'webhooks' | 'wire_transfers';
14900
+ type DeletableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'attachments' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'links' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscription_items' | 'order_subscriptions' | 'orders' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_list_schedulers' | 'price_lists' | 'price_volume_tiers' | 'prices' | 'recurring_order_copies' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'webhooks' | 'wire_transfers';
14735
14901
  type DeletableResource = Resource & {
14736
14902
  type: DeletableResourceType;
14737
14903
  };
@@ -14806,6 +14972,7 @@ type ResourceFields = {
14806
14972
  klarna_payments: KlarnaPayment;
14807
14973
  line_item_options: LineItemOption;
14808
14974
  line_items: LineItem;
14975
+ links: Link;
14809
14976
  manual_gateways: ManualGateway;
14810
14977
  manual_tax_calculators: ManualTaxCalculator;
14811
14978
  markets: Market;
@@ -14930,6 +15097,7 @@ type ResourceSortFields = {
14930
15097
  klarna_payments: KlarnaPaymentSort;
14931
15098
  line_item_options: LineItemOptionSort;
14932
15099
  line_items: LineItemSort;
15100
+ links: LinkSort;
14933
15101
  manual_gateways: ManualGatewaySort;
14934
15102
  manual_tax_calculators: ManualTaxCalculatorSort;
14935
15103
  markets: MarketSort;
@@ -15004,7 +15172,8 @@ declare enum ErrorType {
15004
15172
  RESPONSE = "response",// Error response from API
15005
15173
  CANCEL = "cancel",// Forced request abort using interceptor
15006
15174
  PARSE = "parse",// Error parsing API resource
15007
- TIMEOUT = "timeout"
15175
+ TIMEOUT = "timeout",// Timeout error
15176
+ TOKEN_REFRESH = "token-refresh"
15008
15177
  }
15009
15178
  declare class SdkError extends Error {
15010
15179
  static NAME: string;
@@ -15032,7 +15201,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
15032
15201
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
15033
15202
  declare class CommerceLayerClient {
15034
15203
  #private;
15035
- readonly openApiSchemaVersion = "5.3.3";
15204
+ readonly openApiSchemaVersion = "5.4.0";
15036
15205
  constructor(config: CommerceLayerInitConfig);
15037
15206
  get addresses(): Addresses;
15038
15207
  get adjustments(): Adjustments;
@@ -15090,6 +15259,7 @@ declare class CommerceLayerClient {
15090
15259
  get klarna_payments(): KlarnaPayments;
15091
15260
  get line_item_options(): LineItemOptions;
15092
15261
  get line_items(): LineItems;
15262
+ get links(): Links;
15093
15263
  get manual_gateways(): ManualGateways;
15094
15264
  get manual_tax_calculators(): ManualTaxCalculators;
15095
15265
  get markets(): Markets;
@@ -15157,6 +15327,7 @@ declare class CommerceLayerClient {
15157
15327
  get webhooks(): Webhooks;
15158
15328
  get wire_transfers(): WireTransfers;
15159
15329
  get currentOrganization(): string;
15330
+ get currentAccessToken(): string;
15160
15331
  private get interceptors();
15161
15332
  private localConfig;
15162
15333
  config(config: CommerceLayerConfig): this;
@@ -15167,6 +15338,7 @@ declare class CommerceLayerClient {
15167
15338
  addRequestInterceptor(onSuccess?: RequestInterceptor, onFailure?: ErrorInterceptor): number;
15168
15339
  addResponseInterceptor(onSuccess?: ResponseInterceptor, onFailure?: ErrorInterceptor): number;
15169
15340
  removeInterceptor(type: InterceptorType, id?: number): void;
15341
+ removeInterceptors(): void;
15170
15342
  addRawResponseReader(options?: {
15171
15343
  headers: boolean;
15172
15344
  }): RawResponseReader;
@@ -15181,7 +15353,8 @@ declare const CommerceLayerStatic: {
15181
15353
  isSdkError: (error: unknown) => error is SdkError;
15182
15354
  isApiError: (error: unknown) => error is ApiError;
15183
15355
  init: (config: CommerceLayerInitConfig) => CommerceLayerClient;
15356
+ isTokenExpired: (token: string) => boolean;
15184
15357
  readonly schemaVersion: string;
15185
15358
  };
15186
15359
 
15187
- export { type Address, type AddressCreate, type AddressSort, type AddressUpdate, Addresses, type Adjustment, type AdjustmentCreate, type AdjustmentSort, type AdjustmentUpdate, Adjustments, type AdyenGateway, type AdyenGatewayCreate, type AdyenGatewaySort, type AdyenGatewayUpdate, AdyenGateways, type AdyenPayment, type AdyenPaymentCreate, type AdyenPaymentSort, type AdyenPaymentUpdate, AdyenPayments, ApiError, ApiResource, ApiSingleton, type Application, type ApplicationSort, Applications, type Attachment, type AttachmentCreate, type AttachmentSort, type AttachmentUpdate, Attachments, type Authorization, type AuthorizationSort, type AuthorizationUpdate, Authorizations, type AvalaraAccount, type AvalaraAccountCreate, type AvalaraAccountSort, type AvalaraAccountUpdate, AvalaraAccounts, type AxerveGateway, type AxerveGatewayCreate, type AxerveGatewaySort, type AxerveGatewayUpdate, AxerveGateways, type AxervePayment, type AxervePaymentCreate, type AxervePaymentSort, type AxervePaymentUpdate, AxervePayments, type BillingInfoValidationRule, type BillingInfoValidationRuleCreate, type BillingInfoValidationRuleSort, type BillingInfoValidationRuleUpdate, BillingInfoValidationRules, type BingGeocoder, type BingGeocoderCreate, type BingGeocoderSort, type BingGeocoderUpdate, BingGeocoders, type BraintreeGateway, type BraintreeGatewayCreate, type BraintreeGatewaySort, type BraintreeGatewayUpdate, BraintreeGateways, type BraintreePayment, type BraintreePaymentCreate, type BraintreePaymentSort, type BraintreePaymentUpdate, BraintreePayments, type Bundle, type BundleCreate, type BundleSort, type BundleUpdate, Bundles, type BuyXPayYPromotion, type BuyXPayYPromotionCreate, type BuyXPayYPromotionSort, type BuyXPayYPromotionUpdate, BuyXPayYPromotions, type Capture, type CaptureSort, type CaptureUpdate, Captures, type CarrierAccount, type CarrierAccountSort, CarrierAccounts, type CheckoutComGateway, type CheckoutComGatewayCreate, type CheckoutComGatewaySort, type CheckoutComGatewayUpdate, CheckoutComGateways, type CheckoutComPayment, type CheckoutComPaymentCreate, type CheckoutComPaymentSort, type CheckoutComPaymentUpdate, CheckoutComPayments, type Cleanup, type CleanupCreate, type CleanupSort, Cleanups, CommerceLayer, CommerceLayerClient, type CommerceLayerConfig, type CommerceLayerInitConfig, CommerceLayerStatic, type Coupon, type CouponCodesPromotionRule, type CouponCodesPromotionRuleCreate, type CouponCodesPromotionRuleSort, type CouponCodesPromotionRuleUpdate, CouponCodesPromotionRules, type CouponCreate, type CouponRecipient, type CouponRecipientCreate, type CouponRecipientSort, type CouponRecipientUpdate, CouponRecipients, type CouponSort, type CouponUpdate, Coupons, type CreatableResource, type CreatableResourceType, type CustomPromotionRule, type CustomPromotionRuleCreate, type CustomPromotionRuleSort, type CustomPromotionRuleUpdate, CustomPromotionRules, type Customer, type CustomerAddress, type CustomerAddressCreate, type CustomerAddressSort, type CustomerAddressUpdate, CustomerAddresses, type CustomerCreate, type CustomerGroup, type CustomerGroupCreate, type CustomerGroupSort, type CustomerGroupUpdate, CustomerGroups, type CustomerPasswordReset, type CustomerPasswordResetCreate, type CustomerPasswordResetSort, type CustomerPasswordResetUpdate, CustomerPasswordResets, type CustomerPaymentSource, type CustomerPaymentSourceCreate, type CustomerPaymentSourceSort, type CustomerPaymentSourceUpdate, CustomerPaymentSources, type CustomerSort, type CustomerSubscription, type CustomerSubscriptionCreate, type CustomerSubscriptionSort, type CustomerSubscriptionUpdate, CustomerSubscriptions, type CustomerUpdate, Customers, type DeletableResource, type DeletableResourceType, type DeliveryLeadTime, type DeliveryLeadTimeCreate, type DeliveryLeadTimeSort, type DeliveryLeadTimeUpdate, DeliveryLeadTimes, type ErrorObj, ErrorType, type Event, type EventCallback, type EventCallbackSort, EventCallbacks, type EventSort, Events, type Export, type ExportCreate, type ExportSort, Exports, type ExternalGateway, type ExternalGatewayCreate, type ExternalGatewaySort, type ExternalGatewayUpdate, ExternalGateways, type ExternalPayment, type ExternalPaymentCreate, type ExternalPaymentSort, type ExternalPaymentUpdate, ExternalPayments, type ExternalPromotion, type ExternalPromotionCreate, type ExternalPromotionSort, type ExternalPromotionUpdate, ExternalPromotions, type ExternalTaxCalculator, type ExternalTaxCalculatorCreate, type ExternalTaxCalculatorSort, type ExternalTaxCalculatorUpdate, ExternalTaxCalculators, type FixedAmountPromotion, type FixedAmountPromotionCreate, type FixedAmountPromotionSort, type FixedAmountPromotionUpdate, FixedAmountPromotions, type FixedPricePromotion, type FixedPricePromotionCreate, type FixedPricePromotionSort, type FixedPricePromotionUpdate, FixedPricePromotions, type FreeGiftPromotion, type FreeGiftPromotionCreate, type FreeGiftPromotionSort, type FreeGiftPromotionUpdate, FreeGiftPromotions, type FreeShippingPromotion, type FreeShippingPromotionCreate, type FreeShippingPromotionSort, type FreeShippingPromotionUpdate, FreeShippingPromotions, type Geocoder, type GeocoderSort, Geocoders, type GiftCard, type GiftCardCreate, type GiftCardRecipient, type GiftCardRecipientCreate, type GiftCardRecipientSort, type GiftCardRecipientUpdate, GiftCardRecipients, type GiftCardSort, type GiftCardUpdate, GiftCards, type GoogleGeocoder, type GoogleGeocoderCreate, type GoogleGeocoderSort, type GoogleGeocoderUpdate, GoogleGeocoders, type HeadersObj, type Import, type ImportCreate, type ImportSort, Imports, type InStockSubscription, type InStockSubscriptionCreate, type InStockSubscriptionSort, type InStockSubscriptionUpdate, InStockSubscriptions, type InventoryModel, type InventoryModelCreate, type InventoryModelSort, type InventoryModelUpdate, InventoryModels, type InventoryReturnLocation, type InventoryReturnLocationCreate, type InventoryReturnLocationSort, type InventoryReturnLocationUpdate, InventoryReturnLocations, type InventoryStockLocation, type InventoryStockLocationCreate, type InventoryStockLocationSort, type InventoryStockLocationUpdate, InventoryStockLocations, type KlarnaGateway, type KlarnaGatewayCreate, type KlarnaGatewaySort, type KlarnaGatewayUpdate, KlarnaGateways, type KlarnaPayment, type KlarnaPaymentCreate, type KlarnaPaymentSort, type KlarnaPaymentUpdate, KlarnaPayments, type LineItem, type LineItemCreate, type LineItemOption, type LineItemOptionCreate, type LineItemOptionSort, type LineItemOptionUpdate, LineItemOptions, type LineItemSort, type LineItemUpdate, LineItems, type ListMeta, ListResponse, type ListableResource, type ListableResourceType, type ManualGateway, type ManualGatewayCreate, type ManualGatewaySort, type ManualGatewayUpdate, ManualGateways, type ManualTaxCalculator, type ManualTaxCalculatorCreate, type ManualTaxCalculatorSort, type ManualTaxCalculatorUpdate, ManualTaxCalculators, type Market, type MarketCreate, type MarketSort, type MarketUpdate, Markets, type Merchant, type MerchantCreate, type MerchantSort, type MerchantUpdate, Merchants, type Metadata, type Order, type OrderAmountPromotionRule, type OrderAmountPromotionRuleCreate, type OrderAmountPromotionRuleSort, type OrderAmountPromotionRuleUpdate, OrderAmountPromotionRules, OrderCopies, type OrderCopy, type OrderCopyCreate, type OrderCopySort, type OrderCopyUpdate, type OrderCreate, OrderFactories, type OrderFactory, type OrderFactorySort, type OrderSort, type OrderSubscription, type OrderSubscriptionCreate, type OrderSubscriptionItem, type OrderSubscriptionItemCreate, type OrderSubscriptionItemSort, type OrderSubscriptionItemUpdate, OrderSubscriptionItems, type OrderSubscriptionSort, type OrderSubscriptionUpdate, OrderSubscriptions, type OrderUpdate, type OrderValidationRule, type OrderValidationRuleSort, OrderValidationRules, Orders, type Organization, type OrganizationSort, Organizations, type Package, type PackageCreate, type PackageSort, type PackageUpdate, Packages, type Parcel, type ParcelCreate, type ParcelLineItem, type ParcelLineItemCreate, type ParcelLineItemSort, type ParcelLineItemUpdate, ParcelLineItems, type ParcelSort, type ParcelUpdate, Parcels, type PaymentGateway, type PaymentGatewaySort, PaymentGateways, type PaymentMethod, type PaymentMethodCreate, type PaymentMethodSort, type PaymentMethodUpdate, PaymentMethods, type PaymentOption, type PaymentOptionCreate, type PaymentOptionSort, type PaymentOptionUpdate, PaymentOptions, type PaypalGateway, type PaypalGatewayCreate, type PaypalGatewaySort, type PaypalGatewayUpdate, PaypalGateways, type PaypalPayment, type PaypalPaymentCreate, type PaypalPaymentSort, type PaypalPaymentUpdate, PaypalPayments, type PercentageDiscountPromotion, type PercentageDiscountPromotionCreate, type PercentageDiscountPromotionSort, type PercentageDiscountPromotionUpdate, PercentageDiscountPromotions, type Price, type PriceCreate, type PriceFrequencyTier, type PriceFrequencyTierCreate, type PriceFrequencyTierSort, type PriceFrequencyTierUpdate, PriceFrequencyTiers, type PriceList, type PriceListCreate, type PriceListScheduler, type PriceListSchedulerCreate, type PriceListSchedulerSort, type PriceListSchedulerUpdate, PriceListSchedulers, type PriceListSort, type PriceListUpdate, PriceLists, type PriceSort, type PriceTier, type PriceTierSort, PriceTiers, type PriceUpdate, type PriceVolumeTier, type PriceVolumeTierCreate, type PriceVolumeTierSort, type PriceVolumeTierUpdate, PriceVolumeTiers, Prices, type Promotion, type PromotionRule, type PromotionRuleSort, PromotionRules, type PromotionSort, Promotions, type QueryArrayFields, type QueryArraySortable, type QueryFilter, type QueryInclude, type QueryPageNumber, type QueryPageSize, type QueryParams, type QueryParamsList, type QueryParamsRetrieve, type QueryRecordFields, type QueryRecordSortable, RecurringOrderCopies, type RecurringOrderCopy, type RecurringOrderCopyCreate, type RecurringOrderCopySort, type RecurringOrderCopyUpdate, type Refund, type RefundSort, Refunds, type RequestObj, type ReservedStock, type ReservedStockSort, ReservedStocks, type Resource, ResourceAdapter, type ResourceCreate, type ResourceError, type ResourceErrorSort, ResourceErrors, type ResourceFields, type ResourceFilter, type ResourceId, type ResourceRel, type ResourceSort, type ResourceSortFields, type ResourceType, type ResourceTypeLock, type ResourceUpdate, type ResourcesConfig, type ResourcesInitConfig, type ResponseObj, type RetrievableResource, type RetrievableResourceType, type Return, type ReturnCreate, type ReturnLineItem, type ReturnLineItemCreate, type ReturnLineItemSort, type ReturnLineItemUpdate, ReturnLineItems, type ReturnSort, type ReturnUpdate, Returns, type SatispayGateway, type SatispayGatewayCreate, type SatispayGatewaySort, type SatispayGatewayUpdate, SatispayGateways, type SatispayPayment, type SatispayPaymentCreate, type SatispayPaymentSort, type SatispayPaymentUpdate, SatispayPayments, SdkError, type Shipment, type ShipmentCreate, type ShipmentSort, type ShipmentUpdate, Shipments, ShippingCategories, type ShippingCategory, type ShippingCategoryCreate, type ShippingCategorySort, type ShippingCategoryUpdate, type ShippingMethod, type ShippingMethodCreate, type ShippingMethodSort, type ShippingMethodTier, type ShippingMethodTierSort, ShippingMethodTiers, type ShippingMethodUpdate, ShippingMethods, type ShippingWeightTier, type ShippingWeightTierCreate, type ShippingWeightTierSort, type ShippingWeightTierUpdate, ShippingWeightTiers, type ShippingZone, type ShippingZoneCreate, type ShippingZoneSort, type ShippingZoneUpdate, ShippingZones, type Sku, type SkuCreate, type SkuList, type SkuListCreate, type SkuListItem, type SkuListItemCreate, type SkuListItemSort, type SkuListItemUpdate, SkuListItems, type SkuListPromotionRule, type SkuListPromotionRuleCreate, type SkuListPromotionRuleSort, type SkuListPromotionRuleUpdate, SkuListPromotionRules, type SkuListSort, type SkuListUpdate, SkuLists, type SkuOption, type SkuOptionCreate, type SkuOptionSort, type SkuOptionUpdate, SkuOptions, type SkuSort, type SkuUpdate, Skus, type StockItem, type StockItemCreate, type StockItemSort, type StockItemUpdate, StockItems, type StockLineItem, type StockLineItemCreate, type StockLineItemSort, type StockLineItemUpdate, StockLineItems, type StockLocation, type StockLocationCreate, type StockLocationSort, type StockLocationUpdate, StockLocations, type StockReservation, type StockReservationCreate, type StockReservationSort, type StockReservationUpdate, StockReservations, type StockTransfer, type StockTransferCreate, type StockTransferSort, type StockTransferUpdate, StockTransfers, type StripeGateway, type StripeGatewayCreate, type StripeGatewaySort, type StripeGatewayUpdate, StripeGateways, type StripePayment, type StripePaymentCreate, type StripePaymentSort, type StripePaymentUpdate, StripePayments, type SubscriptionModel, type SubscriptionModelCreate, type SubscriptionModelSort, type SubscriptionModelUpdate, SubscriptionModels, type Tag, type TagCreate, type TagSort, type TagUpdate, type TaggableResource, type TaggableResourceType, Tags, type TaxCalculator, type TaxCalculatorSort, TaxCalculators, TaxCategories, type TaxCategory, type TaxCategoryCreate, type TaxCategorySort, type TaxCategoryUpdate, type TaxRule, type TaxRuleCreate, type TaxRuleSort, type TaxRuleUpdate, TaxRules, type TaxjarAccount, type TaxjarAccountCreate, type TaxjarAccountSort, type TaxjarAccountUpdate, TaxjarAccounts, type Transaction, type TransactionSort, Transactions, type UpdatableResource, type UpdatableResourceType, type Version, type VersionSort, type VersionableResource, type VersionableResourceType, Versions, type Void, type VoidSort, Voids, type Webhook, type WebhookCreate, type WebhookSort, type WebhookUpdate, Webhooks, type WireTransfer, type WireTransferCreate, type WireTransferSort, type WireTransferUpdate, WireTransfers, apiResourceAdapter, CommerceLayer as default, generateQueryStringParams, generateSearchString, isParamsList, resourceList, singletonList };
15360
+ export { type Address, type AddressCreate, type AddressSort, type AddressUpdate, Addresses, type Adjustment, type AdjustmentCreate, type AdjustmentSort, type AdjustmentUpdate, Adjustments, type AdyenGateway, type AdyenGatewayCreate, type AdyenGatewaySort, type AdyenGatewayUpdate, AdyenGateways, type AdyenPayment, type AdyenPaymentCreate, type AdyenPaymentSort, type AdyenPaymentUpdate, AdyenPayments, ApiError, ApiResource, ApiSingleton, type Application, type ApplicationSort, Applications, type Attachment, type AttachmentCreate, type AttachmentSort, type AttachmentUpdate, Attachments, type Authorization, type AuthorizationSort, type AuthorizationUpdate, Authorizations, type AvalaraAccount, type AvalaraAccountCreate, type AvalaraAccountSort, type AvalaraAccountUpdate, AvalaraAccounts, type AxerveGateway, type AxerveGatewayCreate, type AxerveGatewaySort, type AxerveGatewayUpdate, AxerveGateways, type AxervePayment, type AxervePaymentCreate, type AxervePaymentSort, type AxervePaymentUpdate, AxervePayments, type BillingInfoValidationRule, type BillingInfoValidationRuleCreate, type BillingInfoValidationRuleSort, type BillingInfoValidationRuleUpdate, BillingInfoValidationRules, type BingGeocoder, type BingGeocoderCreate, type BingGeocoderSort, type BingGeocoderUpdate, BingGeocoders, type BraintreeGateway, type BraintreeGatewayCreate, type BraintreeGatewaySort, type BraintreeGatewayUpdate, BraintreeGateways, type BraintreePayment, type BraintreePaymentCreate, type BraintreePaymentSort, type BraintreePaymentUpdate, BraintreePayments, type Bundle, type BundleCreate, type BundleSort, type BundleUpdate, Bundles, type BuyXPayYPromotion, type BuyXPayYPromotionCreate, type BuyXPayYPromotionSort, type BuyXPayYPromotionUpdate, BuyXPayYPromotions, type Capture, type CaptureSort, type CaptureUpdate, Captures, type CarrierAccount, type CarrierAccountSort, CarrierAccounts, type CheckoutComGateway, type CheckoutComGatewayCreate, type CheckoutComGatewaySort, type CheckoutComGatewayUpdate, CheckoutComGateways, type CheckoutComPayment, type CheckoutComPaymentCreate, type CheckoutComPaymentSort, type CheckoutComPaymentUpdate, CheckoutComPayments, type Cleanup, type CleanupCreate, type CleanupSort, Cleanups, CommerceLayer, CommerceLayerClient, type CommerceLayerConfig, type CommerceLayerInitConfig, CommerceLayerStatic, type Coupon, type CouponCodesPromotionRule, type CouponCodesPromotionRuleCreate, type CouponCodesPromotionRuleSort, type CouponCodesPromotionRuleUpdate, CouponCodesPromotionRules, type CouponCreate, type CouponRecipient, type CouponRecipientCreate, type CouponRecipientSort, type CouponRecipientUpdate, CouponRecipients, type CouponSort, type CouponUpdate, Coupons, type CreatableResource, type CreatableResourceType, type CustomPromotionRule, type CustomPromotionRuleCreate, type CustomPromotionRuleSort, type CustomPromotionRuleUpdate, CustomPromotionRules, type Customer, type CustomerAddress, type CustomerAddressCreate, type CustomerAddressSort, type CustomerAddressUpdate, CustomerAddresses, type CustomerCreate, type CustomerGroup, type CustomerGroupCreate, type CustomerGroupSort, type CustomerGroupUpdate, CustomerGroups, type CustomerPasswordReset, type CustomerPasswordResetCreate, type CustomerPasswordResetSort, type CustomerPasswordResetUpdate, CustomerPasswordResets, type CustomerPaymentSource, type CustomerPaymentSourceCreate, type CustomerPaymentSourceSort, type CustomerPaymentSourceUpdate, CustomerPaymentSources, type CustomerSort, type CustomerSubscription, type CustomerSubscriptionCreate, type CustomerSubscriptionSort, type CustomerSubscriptionUpdate, CustomerSubscriptions, type CustomerUpdate, Customers, type DeletableResource, type DeletableResourceType, type DeliveryLeadTime, type DeliveryLeadTimeCreate, type DeliveryLeadTimeSort, type DeliveryLeadTimeUpdate, DeliveryLeadTimes, type ErrorObj, ErrorType, type Event, type EventCallback, type EventCallbackSort, EventCallbacks, type EventSort, Events, type Export, type ExportCreate, type ExportSort, Exports, type ExternalGateway, type ExternalGatewayCreate, type ExternalGatewaySort, type ExternalGatewayUpdate, ExternalGateways, type ExternalPayment, type ExternalPaymentCreate, type ExternalPaymentSort, type ExternalPaymentUpdate, ExternalPayments, type ExternalPromotion, type ExternalPromotionCreate, type ExternalPromotionSort, type ExternalPromotionUpdate, ExternalPromotions, type ExternalTaxCalculator, type ExternalTaxCalculatorCreate, type ExternalTaxCalculatorSort, type ExternalTaxCalculatorUpdate, ExternalTaxCalculators, type FixedAmountPromotion, type FixedAmountPromotionCreate, type FixedAmountPromotionSort, type FixedAmountPromotionUpdate, FixedAmountPromotions, type FixedPricePromotion, type FixedPricePromotionCreate, type FixedPricePromotionSort, type FixedPricePromotionUpdate, FixedPricePromotions, type FreeGiftPromotion, type FreeGiftPromotionCreate, type FreeGiftPromotionSort, type FreeGiftPromotionUpdate, FreeGiftPromotions, type FreeShippingPromotion, type FreeShippingPromotionCreate, type FreeShippingPromotionSort, type FreeShippingPromotionUpdate, FreeShippingPromotions, type Geocoder, type GeocoderSort, Geocoders, type GiftCard, type GiftCardCreate, type GiftCardRecipient, type GiftCardRecipientCreate, type GiftCardRecipientSort, type GiftCardRecipientUpdate, GiftCardRecipients, type GiftCardSort, type GiftCardUpdate, GiftCards, type GoogleGeocoder, type GoogleGeocoderCreate, type GoogleGeocoderSort, type GoogleGeocoderUpdate, GoogleGeocoders, type HeadersObj, type Import, type ImportCreate, type ImportSort, Imports, type InStockSubscription, type InStockSubscriptionCreate, type InStockSubscriptionSort, type InStockSubscriptionUpdate, InStockSubscriptions, type InventoryModel, type InventoryModelCreate, type InventoryModelSort, type InventoryModelUpdate, InventoryModels, type InventoryReturnLocation, type InventoryReturnLocationCreate, type InventoryReturnLocationSort, type InventoryReturnLocationUpdate, InventoryReturnLocations, type InventoryStockLocation, type InventoryStockLocationCreate, type InventoryStockLocationSort, type InventoryStockLocationUpdate, InventoryStockLocations, type KlarnaGateway, type KlarnaGatewayCreate, type KlarnaGatewaySort, type KlarnaGatewayUpdate, KlarnaGateways, type KlarnaPayment, type KlarnaPaymentCreate, type KlarnaPaymentSort, type KlarnaPaymentUpdate, KlarnaPayments, type LineItem, type LineItemCreate, type LineItemOption, type LineItemOptionCreate, type LineItemOptionSort, type LineItemOptionUpdate, LineItemOptions, type LineItemSort, type LineItemUpdate, LineItems, type Link, type LinkCreate, type LinkSort, type LinkUpdate, Links, type ListMeta, ListResponse, type ListableResource, type ListableResourceType, type ManualGateway, type ManualGatewayCreate, type ManualGatewaySort, type ManualGatewayUpdate, ManualGateways, type ManualTaxCalculator, type ManualTaxCalculatorCreate, type ManualTaxCalculatorSort, type ManualTaxCalculatorUpdate, ManualTaxCalculators, type Market, type MarketCreate, type MarketSort, type MarketUpdate, Markets, type Merchant, type MerchantCreate, type MerchantSort, type MerchantUpdate, Merchants, type Metadata, type Order, type OrderAmountPromotionRule, type OrderAmountPromotionRuleCreate, type OrderAmountPromotionRuleSort, type OrderAmountPromotionRuleUpdate, OrderAmountPromotionRules, OrderCopies, type OrderCopy, type OrderCopyCreate, type OrderCopySort, type OrderCopyUpdate, type OrderCreate, OrderFactories, type OrderFactory, type OrderFactorySort, type OrderSort, type OrderSubscription, type OrderSubscriptionCreate, type OrderSubscriptionItem, type OrderSubscriptionItemCreate, type OrderSubscriptionItemSort, type OrderSubscriptionItemUpdate, OrderSubscriptionItems, type OrderSubscriptionSort, type OrderSubscriptionUpdate, OrderSubscriptions, type OrderUpdate, type OrderValidationRule, type OrderValidationRuleSort, OrderValidationRules, Orders, type Organization, type OrganizationSort, Organizations, type Package, type PackageCreate, type PackageSort, type PackageUpdate, Packages, type Parcel, type ParcelCreate, type ParcelLineItem, type ParcelLineItemCreate, type ParcelLineItemSort, type ParcelLineItemUpdate, ParcelLineItems, type ParcelSort, type ParcelUpdate, Parcels, type PaymentGateway, type PaymentGatewaySort, PaymentGateways, type PaymentMethod, type PaymentMethodCreate, type PaymentMethodSort, type PaymentMethodUpdate, PaymentMethods, type PaymentOption, type PaymentOptionCreate, type PaymentOptionSort, type PaymentOptionUpdate, PaymentOptions, type PaypalGateway, type PaypalGatewayCreate, type PaypalGatewaySort, type PaypalGatewayUpdate, PaypalGateways, type PaypalPayment, type PaypalPaymentCreate, type PaypalPaymentSort, type PaypalPaymentUpdate, PaypalPayments, type PercentageDiscountPromotion, type PercentageDiscountPromotionCreate, type PercentageDiscountPromotionSort, type PercentageDiscountPromotionUpdate, PercentageDiscountPromotions, type Price, type PriceCreate, type PriceFrequencyTier, type PriceFrequencyTierCreate, type PriceFrequencyTierSort, type PriceFrequencyTierUpdate, PriceFrequencyTiers, type PriceList, type PriceListCreate, type PriceListScheduler, type PriceListSchedulerCreate, type PriceListSchedulerSort, type PriceListSchedulerUpdate, PriceListSchedulers, type PriceListSort, type PriceListUpdate, PriceLists, type PriceSort, type PriceTier, type PriceTierSort, PriceTiers, type PriceUpdate, type PriceVolumeTier, type PriceVolumeTierCreate, type PriceVolumeTierSort, type PriceVolumeTierUpdate, PriceVolumeTiers, Prices, type Promotion, type PromotionRule, type PromotionRuleSort, PromotionRules, type PromotionSort, Promotions, type QueryArrayFields, type QueryArraySortable, type QueryFilter, type QueryInclude, type QueryPageNumber, type QueryPageSize, type QueryParams, type QueryParamsList, type QueryParamsRetrieve, type QueryRecordFields, type QueryRecordSortable, RecurringOrderCopies, type RecurringOrderCopy, type RecurringOrderCopyCreate, type RecurringOrderCopySort, type RecurringOrderCopyUpdate, type Refund, type RefundSort, Refunds, type RequestObj, type ReservedStock, type ReservedStockSort, ReservedStocks, type Resource, ResourceAdapter, type ResourceCreate, type ResourceError, type ResourceErrorSort, ResourceErrors, type ResourceFields, type ResourceFilter, type ResourceId, type ResourceRel, type ResourceSort, type ResourceSortFields, type ResourceType, type ResourceTypeLock, type ResourceUpdate, type ResourcesConfig, type ResourcesInitConfig, type ResponseObj, type RetrievableResource, type RetrievableResourceType, type Return, type ReturnCreate, type ReturnLineItem, type ReturnLineItemCreate, type ReturnLineItemSort, type ReturnLineItemUpdate, ReturnLineItems, type ReturnSort, type ReturnUpdate, Returns, type SatispayGateway, type SatispayGatewayCreate, type SatispayGatewaySort, type SatispayGatewayUpdate, SatispayGateways, type SatispayPayment, type SatispayPaymentCreate, type SatispayPaymentSort, type SatispayPaymentUpdate, SatispayPayments, SdkError, type Shipment, type ShipmentCreate, type ShipmentSort, type ShipmentUpdate, Shipments, ShippingCategories, type ShippingCategory, type ShippingCategoryCreate, type ShippingCategorySort, type ShippingCategoryUpdate, type ShippingMethod, type ShippingMethodCreate, type ShippingMethodSort, type ShippingMethodTier, type ShippingMethodTierSort, ShippingMethodTiers, type ShippingMethodUpdate, ShippingMethods, type ShippingWeightTier, type ShippingWeightTierCreate, type ShippingWeightTierSort, type ShippingWeightTierUpdate, ShippingWeightTiers, type ShippingZone, type ShippingZoneCreate, type ShippingZoneSort, type ShippingZoneUpdate, ShippingZones, type Sku, type SkuCreate, type SkuList, type SkuListCreate, type SkuListItem, type SkuListItemCreate, type SkuListItemSort, type SkuListItemUpdate, SkuListItems, type SkuListPromotionRule, type SkuListPromotionRuleCreate, type SkuListPromotionRuleSort, type SkuListPromotionRuleUpdate, SkuListPromotionRules, type SkuListSort, type SkuListUpdate, SkuLists, type SkuOption, type SkuOptionCreate, type SkuOptionSort, type SkuOptionUpdate, SkuOptions, type SkuSort, type SkuUpdate, Skus, type StockItem, type StockItemCreate, type StockItemSort, type StockItemUpdate, StockItems, type StockLineItem, type StockLineItemCreate, type StockLineItemSort, type StockLineItemUpdate, StockLineItems, type StockLocation, type StockLocationCreate, type StockLocationSort, type StockLocationUpdate, StockLocations, type StockReservation, type StockReservationCreate, type StockReservationSort, type StockReservationUpdate, StockReservations, type StockTransfer, type StockTransferCreate, type StockTransferSort, type StockTransferUpdate, StockTransfers, type StripeGateway, type StripeGatewayCreate, type StripeGatewaySort, type StripeGatewayUpdate, StripeGateways, type StripePayment, type StripePaymentCreate, type StripePaymentSort, type StripePaymentUpdate, StripePayments, type SubscriptionModel, type SubscriptionModelCreate, type SubscriptionModelSort, type SubscriptionModelUpdate, SubscriptionModels, type Tag, type TagCreate, type TagSort, type TagUpdate, type TaggableResource, type TaggableResourceType, Tags, type TaxCalculator, type TaxCalculatorSort, TaxCalculators, TaxCategories, type TaxCategory, type TaxCategoryCreate, type TaxCategorySort, type TaxCategoryUpdate, type TaxRule, type TaxRuleCreate, type TaxRuleSort, type TaxRuleUpdate, TaxRules, type TaxjarAccount, type TaxjarAccountCreate, type TaxjarAccountSort, type TaxjarAccountUpdate, TaxjarAccounts, type Transaction, type TransactionSort, Transactions, type UpdatableResource, type UpdatableResourceType, type Version, type VersionSort, type VersionableResource, type VersionableResourceType, Versions, type Void, type VoidSort, Voids, type Webhook, type WebhookCreate, type WebhookSort, type WebhookUpdate, Webhooks, type WireTransfer, type WireTransferCreate, type WireTransferSort, type WireTransferUpdate, WireTransfers, apiResourceAdapter, CommerceLayer as default, generateQueryStringParams, generateSearchString, isParamsList, resourceList, singletonList };