@commercelayer/sdk 6.10.0 → 6.12.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
@@ -825,10 +825,19 @@ interface Event extends Resource {
825
825
  webhooks?: Webhook[] | null;
826
826
  last_event_callbacks?: EventCallback[] | null;
827
827
  }
828
+ interface EventUpdate extends ResourceUpdate {
829
+ /**
830
+ * Send this attribute if you want to force webhooks execution for this event.
831
+ * @example ```"true"```
832
+ */
833
+ _trigger?: boolean | null;
834
+ }
828
835
  declare class Events extends ApiResource<Event> {
829
836
  static readonly TYPE: EventType;
837
+ update(resource: EventUpdate, params?: QueryParamsRetrieve<Event>, options?: ResourcesConfig): Promise<Event>;
830
838
  webhooks(eventId: string | Event, params?: QueryParamsList<Webhook>, options?: ResourcesConfig): Promise<ListResponse<Webhook>>;
831
839
  last_event_callbacks(eventId: string | Event, params?: QueryParamsList<EventCallback>, options?: ResourcesConfig): Promise<ListResponse<EventCallback>>;
840
+ _trigger(id: string | Event, params?: QueryParamsRetrieve<Event>, options?: ResourcesConfig): Promise<Event>;
832
841
  isEvent(resource: any): resource is Event;
833
842
  relationship(id: string | ResourceId | null): EventRel;
834
843
  relationshipToMany(...ids: string[]): EventRel[];
@@ -920,7 +929,7 @@ type PaymentMethodType = 'payment_methods';
920
929
  type PaymentMethodRel$4 = ResourceRel & {
921
930
  type: PaymentMethodType;
922
931
  };
923
- type MarketRel$i = ResourceRel & {
932
+ type MarketRel$j = ResourceRel & {
924
933
  type: MarketType;
925
934
  };
926
935
  type PaymentGatewayRel = ResourceRel & {
@@ -1045,7 +1054,7 @@ interface PaymentMethodCreate extends ResourceCreate {
1045
1054
  * @example ```"true"```
1046
1055
  */
1047
1056
  _enable?: boolean | null;
1048
- market?: MarketRel$i | null;
1057
+ market?: MarketRel$j | null;
1049
1058
  payment_gateway: PaymentGatewayRel;
1050
1059
  }
1051
1060
  interface PaymentMethodUpdate extends ResourceUpdate {
@@ -1095,7 +1104,7 @@ interface PaymentMethodUpdate extends ResourceUpdate {
1095
1104
  * @example ```"true"```
1096
1105
  */
1097
1106
  _enable?: boolean | null;
1098
- market?: MarketRel$i | null;
1107
+ market?: MarketRel$j | null;
1099
1108
  payment_gateway?: PaymentGatewayRel | null;
1100
1109
  }
1101
1110
  declare class PaymentMethods extends ApiResource<PaymentMethod> {
@@ -2312,7 +2321,7 @@ type SkuOptionType = 'sku_options';
2312
2321
  type SkuOptionRel$2 = ResourceRel & {
2313
2322
  type: SkuOptionType;
2314
2323
  };
2315
- type MarketRel$h = ResourceRel & {
2324
+ type MarketRel$i = ResourceRel & {
2316
2325
  type: MarketType;
2317
2326
  };
2318
2327
  type TagRel$j = ResourceRel & {
@@ -2403,7 +2412,7 @@ interface SkuOptionCreate extends ResourceCreate {
2403
2412
  * @example ```"^(A|B).*$"```
2404
2413
  */
2405
2414
  sku_code_regex?: string | null;
2406
- market?: MarketRel$h | null;
2415
+ market?: MarketRel$i | null;
2407
2416
  tags?: TagRel$j[] | null;
2408
2417
  }
2409
2418
  interface SkuOptionUpdate extends ResourceUpdate {
@@ -2437,7 +2446,7 @@ interface SkuOptionUpdate extends ResourceUpdate {
2437
2446
  * @example ```"^(A|B).*$"```
2438
2447
  */
2439
2448
  sku_code_regex?: string | null;
2440
- market?: MarketRel$h | null;
2449
+ market?: MarketRel$i | null;
2441
2450
  tags?: TagRel$j[] | null;
2442
2451
  }
2443
2452
  declare class SkuOptions extends ApiResource<SkuOption> {
@@ -2815,7 +2824,7 @@ interface AuthorizationUpdate extends ResourceUpdate {
2815
2824
  */
2816
2825
  succeeded?: boolean | null;
2817
2826
  /**
2818
- * Send this attribute if you want to forwrad a stuck transaction to succeeded and update associated order states accordingly.
2827
+ * Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly.
2819
2828
  * @example ```"true"```
2820
2829
  */
2821
2830
  _forward?: boolean | null;
@@ -3041,7 +3050,7 @@ interface CaptureUpdate extends ResourceUpdate {
3041
3050
  */
3042
3051
  succeeded?: boolean | null;
3043
3052
  /**
3044
- * Send this attribute if you want to forwrad a stuck transaction to succeeded and update associated order states accordingly.
3053
+ * Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly.
3045
3054
  * @example ```"true"```
3046
3055
  */
3047
3056
  _forward?: boolean | null;
@@ -3341,7 +3350,7 @@ interface ReturnLineItem extends Resource {
3341
3350
  quantity: number;
3342
3351
  /**
3343
3352
  * The name of the line item.
3344
- * @example ```"Black Men T-shirt with White Logo (XL)"```
3353
+ * @example ```"Men's Black T-shirt with White Logo (XL)"```
3345
3354
  */
3346
3355
  name?: string | null;
3347
3356
  /**
@@ -3437,12 +3446,14 @@ interface ReservedStock extends Resource {
3437
3446
  stock_item?: StockItem | null;
3438
3447
  sku?: Sku | null;
3439
3448
  stock_reservations?: StockReservation[] | null;
3449
+ versions?: Version[] | null;
3440
3450
  }
3441
3451
  declare class ReservedStocks extends ApiResource<ReservedStock> {
3442
3452
  static readonly TYPE: ReservedStockType;
3443
3453
  stock_item(reservedStockId: string | ReservedStock, params?: QueryParamsRetrieve<StockItem>, options?: ResourcesConfig): Promise<StockItem>;
3444
3454
  sku(reservedStockId: string | ReservedStock, params?: QueryParamsRetrieve<Sku>, options?: ResourcesConfig): Promise<Sku>;
3445
3455
  stock_reservations(reservedStockId: string | ReservedStock, params?: QueryParamsList<StockReservation>, options?: ResourcesConfig): Promise<ListResponse<StockReservation>>;
3456
+ versions(reservedStockId: string | ReservedStock, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
3446
3457
  isReservedStock(resource: any): resource is ReservedStock;
3447
3458
  relationship(id: string | ResourceId | null): ReservedStockRel;
3448
3459
  relationshipToMany(...ids: string[]): ReservedStockRel[];
@@ -3530,7 +3541,7 @@ type LineItemRel$2 = ResourceRel & {
3530
3541
  type StockItemRel$2 = ResourceRel & {
3531
3542
  type: StockItemType;
3532
3543
  };
3533
- type SkuRel$a = ResourceRel & {
3544
+ type SkuRel$b = ResourceRel & {
3534
3545
  type: SkuType;
3535
3546
  };
3536
3547
  type StockLineItemSort = Pick<StockLineItem, 'id' | 'quantity'> & ResourceSort;
@@ -3571,7 +3582,7 @@ interface StockLineItemCreate extends ResourceCreate {
3571
3582
  shipment?: ShipmentRel$5 | null;
3572
3583
  line_item?: LineItemRel$2 | null;
3573
3584
  stock_item?: StockItemRel$2 | null;
3574
- sku?: SkuRel$a | null;
3585
+ sku?: SkuRel$b | null;
3575
3586
  }
3576
3587
  interface StockLineItemUpdate extends ResourceUpdate {
3577
3588
  /**
@@ -3602,7 +3613,7 @@ interface StockLineItemUpdate extends ResourceUpdate {
3602
3613
  shipment?: ShipmentRel$5 | null;
3603
3614
  line_item?: LineItemRel$2 | null;
3604
3615
  stock_item?: StockItemRel$2 | null;
3605
- sku?: SkuRel$a | null;
3616
+ sku?: SkuRel$b | null;
3606
3617
  }
3607
3618
  declare class StockLineItems extends ApiResource<StockLineItem> {
3608
3619
  static readonly TYPE: StockLineItemType;
@@ -3630,7 +3641,7 @@ type SkuListItemRel = ResourceRel & {
3630
3641
  type SkuListRel$c = ResourceRel & {
3631
3642
  type: SkuListType;
3632
3643
  };
3633
- type SkuRel$9 = ResourceRel & {
3644
+ type SkuRel$a = ResourceRel & {
3634
3645
  type: SkuType;
3635
3646
  };
3636
3647
  type SkuListItemSort = Pick<SkuListItem, 'id' | 'position' | 'quantity'> & ResourceSort;
@@ -3672,7 +3683,7 @@ interface SkuListItemCreate extends ResourceCreate {
3672
3683
  */
3673
3684
  quantity?: number | null;
3674
3685
  sku_list: SkuListRel$c;
3675
- sku: SkuRel$9;
3686
+ sku: SkuRel$a;
3676
3687
  }
3677
3688
  interface SkuListItemUpdate extends ResourceUpdate {
3678
3689
  /**
@@ -3705,10 +3716,189 @@ declare class SkuListItems extends ApiResource<SkuListItem> {
3705
3716
  type(): SkuListItemType;
3706
3717
  }
3707
3718
 
3708
- type SkuListType = 'sku_lists';
3719
+ type LinkType = 'links';
3720
+ type LinkRel = ResourceRel & {
3721
+ type: LinkType;
3722
+ };
3723
+ type OrderRel$8 = ResourceRel & {
3724
+ type: OrderType;
3725
+ };
3726
+ type SkuRel$9 = ResourceRel & {
3727
+ type: SkuType;
3728
+ };
3709
3729
  type SkuListRel$b = ResourceRel & {
3710
3730
  type: SkuListType;
3711
3731
  };
3732
+ type LinkSort = Pick<Link, 'id' | 'name' | 'starts_at' | 'expires_at' | 'item_type' | 'disabled_at'> & ResourceSort;
3733
+ interface Link extends Resource {
3734
+ readonly type: LinkType;
3735
+ /**
3736
+ * The link internal name.
3737
+ * @example ```"FW SALE 2023"```
3738
+ */
3739
+ name: string;
3740
+ /**
3741
+ * The link application client id, used to fetch JWT.
3742
+ * @example ```"xxxx-yyyy-zzzz"```
3743
+ */
3744
+ client_id: string;
3745
+ /**
3746
+ * The link application scope, used to fetch JWT.
3747
+ * @example ```"market:id:GhvCxsElAQ,market:id:kJhgVcxZDr"```
3748
+ */
3749
+ scope: string;
3750
+ /**
3751
+ * The activation date/time of this link.
3752
+ * @example ```"2018-01-01T12:00:00.000Z"```
3753
+ */
3754
+ starts_at: string;
3755
+ /**
3756
+ * The expiration date/time of this link (must be after starts_at).
3757
+ * @example ```"2018-01-02T12:00:00.000Z"```
3758
+ */
3759
+ expires_at: string;
3760
+ /**
3761
+ * Indicates if the link is active (enabled and not expired).
3762
+ * @example ```"true"```
3763
+ */
3764
+ active?: boolean | null;
3765
+ /**
3766
+ * The link status. One of 'expired', 'pending', 'active', or 'disabled'.
3767
+ * @example ```"pending"```
3768
+ */
3769
+ status?: 'expired' | 'pending' | 'active' | 'disabled' | null;
3770
+ /**
3771
+ * The link URL second level domain.
3772
+ * @example ```"commercelayer.link"```
3773
+ */
3774
+ domain?: string | null;
3775
+ /**
3776
+ * The link URL.
3777
+ * @example ```"https://c11r.link/ZXUtd2VzdC0xLzE5ZjBlMGVlLTg4OGMtNDQ1Yi1iYTA0LTg3MTUxY2FjZjFmYQ"```
3778
+ */
3779
+ url?: string | null;
3780
+ /**
3781
+ * The type of the associated item. One of 'orders', 'skus', or 'sku_lists'.
3782
+ * @example ```"orders"```
3783
+ */
3784
+ item_type?: 'orders' | 'skus' | 'sku_lists' | null;
3785
+ /**
3786
+ * Time at which this resource was disabled.
3787
+ * @example ```"2018-01-01T12:00:00.000Z"```
3788
+ */
3789
+ disabled_at?: string | null;
3790
+ item?: Order | Sku | SkuList | null;
3791
+ events?: Event[] | null;
3792
+ }
3793
+ interface LinkCreate extends ResourceCreate {
3794
+ /**
3795
+ * The link internal name.
3796
+ * @example ```"FW SALE 2023"```
3797
+ */
3798
+ name: string;
3799
+ /**
3800
+ * The link application client id, used to fetch JWT.
3801
+ * @example ```"xxxx-yyyy-zzzz"```
3802
+ */
3803
+ client_id: string;
3804
+ /**
3805
+ * The link application scope, used to fetch JWT.
3806
+ * @example ```"market:id:GhvCxsElAQ,market:id:kJhgVcxZDr"```
3807
+ */
3808
+ scope: string;
3809
+ /**
3810
+ * The activation date/time of this link.
3811
+ * @example ```"2018-01-01T12:00:00.000Z"```
3812
+ */
3813
+ starts_at: string;
3814
+ /**
3815
+ * The expiration date/time of this link (must be after starts_at).
3816
+ * @example ```"2018-01-02T12:00:00.000Z"```
3817
+ */
3818
+ expires_at: string;
3819
+ /**
3820
+ * The link URL second level domain.
3821
+ * @example ```"commercelayer.link"```
3822
+ */
3823
+ domain?: string | null;
3824
+ /**
3825
+ * The type of the associated item. One of 'orders', 'skus', or 'sku_lists'.
3826
+ * @example ```"orders"```
3827
+ */
3828
+ item_type?: 'orders' | 'skus' | 'sku_lists' | null;
3829
+ /**
3830
+ * Send this attribute if you want to mark this resource as disabled.
3831
+ * @example ```"true"```
3832
+ */
3833
+ _disable?: boolean | null;
3834
+ /**
3835
+ * Send this attribute if you want to mark this resource as enabled.
3836
+ * @example ```"true"```
3837
+ */
3838
+ _enable?: boolean | null;
3839
+ item: OrderRel$8 | SkuRel$9 | SkuListRel$b;
3840
+ }
3841
+ interface LinkUpdate extends ResourceUpdate {
3842
+ /**
3843
+ * The link internal name.
3844
+ * @example ```"FW SALE 2023"```
3845
+ */
3846
+ name?: string | null;
3847
+ /**
3848
+ * The link application client id, used to fetch JWT.
3849
+ * @example ```"xxxx-yyyy-zzzz"```
3850
+ */
3851
+ client_id?: string | null;
3852
+ /**
3853
+ * The link application scope, used to fetch JWT.
3854
+ * @example ```"market:id:GhvCxsElAQ,market:id:kJhgVcxZDr"```
3855
+ */
3856
+ scope?: string | null;
3857
+ /**
3858
+ * The activation date/time of this link.
3859
+ * @example ```"2018-01-01T12:00:00.000Z"```
3860
+ */
3861
+ starts_at?: string | null;
3862
+ /**
3863
+ * The expiration date/time of this link (must be after starts_at).
3864
+ * @example ```"2018-01-02T12:00:00.000Z"```
3865
+ */
3866
+ expires_at?: string | null;
3867
+ /**
3868
+ * The link URL second level domain.
3869
+ * @example ```"commercelayer.link"```
3870
+ */
3871
+ domain?: string | null;
3872
+ /**
3873
+ * Send this attribute if you want to mark this resource as disabled.
3874
+ * @example ```"true"```
3875
+ */
3876
+ _disable?: boolean | null;
3877
+ /**
3878
+ * Send this attribute if you want to mark this resource as enabled.
3879
+ * @example ```"true"```
3880
+ */
3881
+ _enable?: boolean | null;
3882
+ item?: OrderRel$8 | SkuRel$9 | SkuListRel$b | null;
3883
+ }
3884
+ declare class Links extends ApiResource<Link> {
3885
+ static readonly TYPE: LinkType;
3886
+ create(resource: LinkCreate, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link>;
3887
+ update(resource: LinkUpdate, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link>;
3888
+ delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
3889
+ events(linkId: string | Link, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
3890
+ _disable(id: string | Link, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link>;
3891
+ _enable(id: string | Link, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link>;
3892
+ isLink(resource: any): resource is Link;
3893
+ relationship(id: string | ResourceId | null): LinkRel;
3894
+ relationshipToMany(...ids: string[]): LinkRel[];
3895
+ type(): LinkType;
3896
+ }
3897
+
3898
+ type SkuListType = 'sku_lists';
3899
+ type SkuListRel$a = ResourceRel & {
3900
+ type: SkuListType;
3901
+ };
3712
3902
  type CustomerRel$6 = ResourceRel & {
3713
3903
  type: CustomerType;
3714
3904
  };
@@ -3749,6 +3939,7 @@ interface SkuList extends Resource {
3749
3939
  sku_list_items?: SkuListItem[] | null;
3750
3940
  bundles?: Bundle[] | null;
3751
3941
  attachments?: Attachment[] | null;
3942
+ links?: Link[] | null;
3752
3943
  versions?: Version[] | null;
3753
3944
  }
3754
3945
  interface SkuListCreate extends ResourceCreate {
@@ -3815,10 +4006,11 @@ declare class SkuLists extends ApiResource<SkuList> {
3815
4006
  sku_list_items(skuListId: string | SkuList, params?: QueryParamsList<SkuListItem>, options?: ResourcesConfig): Promise<ListResponse<SkuListItem>>;
3816
4007
  bundles(skuListId: string | SkuList, params?: QueryParamsList<Bundle>, options?: ResourcesConfig): Promise<ListResponse<Bundle>>;
3817
4008
  attachments(skuListId: string | SkuList, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
4009
+ links(skuListId: string | SkuList, params?: QueryParamsList<Link>, options?: ResourcesConfig): Promise<ListResponse<Link>>;
3818
4010
  versions(skuListId: string | SkuList, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
3819
4011
  isSkuList(resource: any): resource is SkuList;
3820
- relationship(id: string | ResourceId | null): SkuListRel$b;
3821
- relationshipToMany(...ids: string[]): SkuListRel$b[];
4012
+ relationship(id: string | ResourceId | null): SkuListRel$a;
4013
+ relationshipToMany(...ids: string[]): SkuListRel$a[];
3822
4014
  type(): SkuListType;
3823
4015
  }
3824
4016
 
@@ -3826,10 +4018,10 @@ type BundleType = 'bundles';
3826
4018
  type BundleRel$3 = ResourceRel & {
3827
4019
  type: BundleType;
3828
4020
  };
3829
- type MarketRel$g = ResourceRel & {
4021
+ type MarketRel$h = ResourceRel & {
3830
4022
  type: MarketType;
3831
4023
  };
3832
- type SkuListRel$a = ResourceRel & {
4024
+ type SkuListRel$9 = ResourceRel & {
3833
4025
  type: SkuListType;
3834
4026
  };
3835
4027
  type TagRel$g = ResourceRel & {
@@ -3845,7 +4037,7 @@ interface Bundle extends Resource {
3845
4037
  code: string;
3846
4038
  /**
3847
4039
  * The internal name of the bundle.
3848
- * @example ```"Black Men T-shirt (XL) with Black Cap and Socks, all with White Logo"```
4040
+ * @example ```"Men's Black T-shirt (XL) with Black Cap and Socks, all with White Logo"```
3849
4041
  */
3850
4042
  name: string;
3851
4043
  /**
@@ -3922,7 +4114,7 @@ interface BundleCreate extends ResourceCreate {
3922
4114
  code: string;
3923
4115
  /**
3924
4116
  * The internal name of the bundle.
3925
- * @example ```"Black Men T-shirt (XL) with Black Cap and Socks, all with White Logo"```
4117
+ * @example ```"Men's Black T-shirt (XL) with Black Cap and Socks, all with White Logo"```
3926
4118
  */
3927
4119
  name: string;
3928
4120
  /**
@@ -3960,8 +4152,8 @@ interface BundleCreate extends ResourceCreate {
3960
4152
  * @example ```"true"```
3961
4153
  */
3962
4154
  _compute_compare_at_amount?: boolean | null;
3963
- market?: MarketRel$g | null;
3964
- sku_list: SkuListRel$a;
4155
+ market?: MarketRel$h | null;
4156
+ sku_list: SkuListRel$9;
3965
4157
  tags?: TagRel$g[] | null;
3966
4158
  }
3967
4159
  interface BundleUpdate extends ResourceUpdate {
@@ -3972,7 +4164,7 @@ interface BundleUpdate extends ResourceUpdate {
3972
4164
  code?: string | null;
3973
4165
  /**
3974
4166
  * The internal name of the bundle.
3975
- * @example ```"Black Men T-shirt (XL) with Black Cap and Socks, all with White Logo"```
4167
+ * @example ```"Men's Black T-shirt (XL) with Black Cap and Socks, all with White Logo"```
3976
4168
  */
3977
4169
  name?: string | null;
3978
4170
  /**
@@ -4115,7 +4307,7 @@ type GiftCardType = 'gift_cards';
4115
4307
  type GiftCardRel$2 = ResourceRel & {
4116
4308
  type: GiftCardType;
4117
4309
  };
4118
- type MarketRel$f = ResourceRel & {
4310
+ type MarketRel$g = ResourceRel & {
4119
4311
  type: MarketType;
4120
4312
  };
4121
4313
  type GiftCardRecipientRel$1 = ResourceRel & {
@@ -4283,7 +4475,7 @@ interface GiftCardCreate extends ResourceCreate {
4283
4475
  * @example ```"john@example.com"```
4284
4476
  */
4285
4477
  recipient_email?: string | null;
4286
- market?: MarketRel$f | null;
4478
+ market?: MarketRel$g | null;
4287
4479
  gift_card_recipient?: GiftCardRecipientRel$1 | null;
4288
4480
  tags?: TagRel$f[] | null;
4289
4481
  }
@@ -4352,7 +4544,7 @@ interface GiftCardUpdate extends ResourceUpdate {
4352
4544
  * @example ```"-5000"```
4353
4545
  */
4354
4546
  _balance_change_cents?: number | null;
4355
- market?: MarketRel$f | null;
4547
+ market?: MarketRel$g | null;
4356
4548
  gift_card_recipient?: GiftCardRecipientRel$1 | null;
4357
4549
  tags?: TagRel$f[] | null;
4358
4550
  }
@@ -4680,7 +4872,7 @@ type ExternalPromotionType = 'external_promotions';
4680
4872
  type ExternalPromotionRel$5 = ResourceRel & {
4681
4873
  type: ExternalPromotionType;
4682
4874
  };
4683
- type MarketRel$e = ResourceRel & {
4875
+ type MarketRel$f = ResourceRel & {
4684
4876
  type: MarketType;
4685
4877
  };
4686
4878
  type OrderAmountPromotionRuleRel$7 = ResourceRel & {
@@ -4695,7 +4887,7 @@ type CouponCodesPromotionRuleRel$7 = ResourceRel & {
4695
4887
  type CustomPromotionRuleRel$7 = ResourceRel & {
4696
4888
  type: CustomPromotionRuleType;
4697
4889
  };
4698
- type SkuListRel$9 = ResourceRel & {
4890
+ type SkuListRel$8 = ResourceRel & {
4699
4891
  type: SkuListType;
4700
4892
  };
4701
4893
  type TagRel$d = ResourceRel & {
@@ -4844,12 +5036,12 @@ interface ExternalPromotionCreate extends ResourceCreate {
4844
5036
  * @example ```"https://external_promotion.yourbrand.com"```
4845
5037
  */
4846
5038
  promotion_url: string;
4847
- market?: MarketRel$e | null;
5039
+ market?: MarketRel$f | null;
4848
5040
  order_amount_promotion_rule?: OrderAmountPromotionRuleRel$7 | null;
4849
5041
  sku_list_promotion_rule?: SkuListPromotionRuleRel$7 | null;
4850
5042
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$7 | null;
4851
5043
  custom_promotion_rule?: CustomPromotionRuleRel$7 | null;
4852
- sku_list?: SkuListRel$9 | null;
5044
+ sku_list?: SkuListRel$8 | null;
4853
5045
  tags?: TagRel$d[] | null;
4854
5046
  }
4855
5047
  interface ExternalPromotionUpdate extends ResourceUpdate {
@@ -4908,12 +5100,12 @@ interface ExternalPromotionUpdate extends ResourceUpdate {
4908
5100
  * @example ```"true"```
4909
5101
  */
4910
5102
  _reset_circuit?: boolean | null;
4911
- market?: MarketRel$e | null;
5103
+ market?: MarketRel$f | null;
4912
5104
  order_amount_promotion_rule?: OrderAmountPromotionRuleRel$7 | null;
4913
5105
  sku_list_promotion_rule?: SkuListPromotionRuleRel$7 | null;
4914
5106
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$7 | null;
4915
5107
  custom_promotion_rule?: CustomPromotionRuleRel$7 | null;
4916
- sku_list?: SkuListRel$9 | null;
5108
+ sku_list?: SkuListRel$8 | null;
4917
5109
  tags?: TagRel$d[] | null;
4918
5110
  }
4919
5111
  declare class ExternalPromotions extends ApiResource<ExternalPromotion> {
@@ -4946,7 +5138,7 @@ type FixedAmountPromotionType = 'fixed_amount_promotions';
4946
5138
  type FixedAmountPromotionRel$5 = ResourceRel & {
4947
5139
  type: FixedAmountPromotionType;
4948
5140
  };
4949
- type MarketRel$d = ResourceRel & {
5141
+ type MarketRel$e = ResourceRel & {
4950
5142
  type: MarketType;
4951
5143
  };
4952
5144
  type OrderAmountPromotionRuleRel$6 = ResourceRel & {
@@ -4961,7 +5153,7 @@ type CouponCodesPromotionRuleRel$6 = ResourceRel & {
4961
5153
  type CustomPromotionRuleRel$6 = ResourceRel & {
4962
5154
  type: CustomPromotionRuleType;
4963
5155
  };
4964
- type SkuListRel$8 = ResourceRel & {
5156
+ type SkuListRel$7 = ResourceRel & {
4965
5157
  type: SkuListType;
4966
5158
  };
4967
5159
  type TagRel$c = ResourceRel & {
@@ -5105,12 +5297,12 @@ interface FixedAmountPromotionCreate extends ResourceCreate {
5105
5297
  * @example ```"1000"```
5106
5298
  */
5107
5299
  fixed_amount_cents: number;
5108
- market?: MarketRel$d | null;
5300
+ market?: MarketRel$e | null;
5109
5301
  order_amount_promotion_rule?: OrderAmountPromotionRuleRel$6 | null;
5110
5302
  sku_list_promotion_rule?: SkuListPromotionRuleRel$6 | null;
5111
5303
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$6 | null;
5112
5304
  custom_promotion_rule?: CustomPromotionRuleRel$6 | null;
5113
- sku_list?: SkuListRel$8 | null;
5305
+ sku_list?: SkuListRel$7 | null;
5114
5306
  tags?: TagRel$c[] | null;
5115
5307
  }
5116
5308
  interface FixedAmountPromotionUpdate extends ResourceUpdate {
@@ -5164,12 +5356,12 @@ interface FixedAmountPromotionUpdate extends ResourceUpdate {
5164
5356
  * @example ```"1000"```
5165
5357
  */
5166
5358
  fixed_amount_cents?: number | null;
5167
- market?: MarketRel$d | null;
5359
+ market?: MarketRel$e | null;
5168
5360
  order_amount_promotion_rule?: OrderAmountPromotionRuleRel$6 | null;
5169
5361
  sku_list_promotion_rule?: SkuListPromotionRuleRel$6 | null;
5170
5362
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$6 | null;
5171
5363
  custom_promotion_rule?: CustomPromotionRuleRel$6 | null;
5172
- sku_list?: SkuListRel$8 | null;
5364
+ sku_list?: SkuListRel$7 | null;
5173
5365
  tags?: TagRel$c[] | null;
5174
5366
  }
5175
5367
  declare class FixedAmountPromotions extends ApiResource<FixedAmountPromotion> {
@@ -5220,7 +5412,7 @@ type FixedPricePromotionType = 'fixed_price_promotions';
5220
5412
  type FixedPricePromotionRel$5 = ResourceRel & {
5221
5413
  type: FixedPricePromotionType;
5222
5414
  };
5223
- type MarketRel$c = ResourceRel & {
5415
+ type MarketRel$d = ResourceRel & {
5224
5416
  type: MarketType;
5225
5417
  };
5226
5418
  type OrderAmountPromotionRuleRel$5 = ResourceRel & {
@@ -5235,7 +5427,7 @@ type CouponCodesPromotionRuleRel$5 = ResourceRel & {
5235
5427
  type CustomPromotionRuleRel$5 = ResourceRel & {
5236
5428
  type: CustomPromotionRuleType;
5237
5429
  };
5238
- type SkuListRel$7 = ResourceRel & {
5430
+ type SkuListRel$6 = ResourceRel & {
5239
5431
  type: SkuListType;
5240
5432
  };
5241
5433
  type TagRel$b = ResourceRel & {
@@ -5379,12 +5571,12 @@ interface FixedPricePromotionCreate extends ResourceCreate {
5379
5571
  * @example ```"1000"```
5380
5572
  */
5381
5573
  fixed_amount_cents: number;
5382
- market?: MarketRel$c | null;
5574
+ market?: MarketRel$d | null;
5383
5575
  order_amount_promotion_rule?: OrderAmountPromotionRuleRel$5 | null;
5384
5576
  sku_list_promotion_rule?: SkuListPromotionRuleRel$5 | null;
5385
5577
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$5 | null;
5386
5578
  custom_promotion_rule?: CustomPromotionRuleRel$5 | null;
5387
- sku_list: SkuListRel$7;
5579
+ sku_list: SkuListRel$6;
5388
5580
  tags?: TagRel$b[] | null;
5389
5581
  }
5390
5582
  interface FixedPricePromotionUpdate extends ResourceUpdate {
@@ -5438,12 +5630,12 @@ interface FixedPricePromotionUpdate extends ResourceUpdate {
5438
5630
  * @example ```"1000"```
5439
5631
  */
5440
5632
  fixed_amount_cents?: number | null;
5441
- market?: MarketRel$c | null;
5633
+ market?: MarketRel$d | null;
5442
5634
  order_amount_promotion_rule?: OrderAmountPromotionRuleRel$5 | null;
5443
5635
  sku_list_promotion_rule?: SkuListPromotionRuleRel$5 | null;
5444
5636
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$5 | null;
5445
5637
  custom_promotion_rule?: CustomPromotionRuleRel$5 | null;
5446
- sku_list?: SkuListRel$7 | null;
5638
+ sku_list?: SkuListRel$6 | null;
5447
5639
  tags?: TagRel$b[] | null;
5448
5640
  }
5449
5641
  declare class FixedPricePromotions extends ApiResource<FixedPricePromotion> {
@@ -5539,7 +5731,7 @@ type FreeGiftPromotionType = 'free_gift_promotions';
5539
5731
  type FreeGiftPromotionRel$4 = ResourceRel & {
5540
5732
  type: FreeGiftPromotionType;
5541
5733
  };
5542
- type MarketRel$b = ResourceRel & {
5734
+ type MarketRel$c = ResourceRel & {
5543
5735
  type: MarketType;
5544
5736
  };
5545
5737
  type OrderAmountPromotionRuleRel$4 = ResourceRel & {
@@ -5554,7 +5746,7 @@ type CouponCodesPromotionRuleRel$4 = ResourceRel & {
5554
5746
  type CustomPromotionRuleRel$3 = ResourceRel & {
5555
5747
  type: CustomPromotionRuleType;
5556
5748
  };
5557
- type SkuListRel$6 = ResourceRel & {
5749
+ type SkuListRel$5 = ResourceRel & {
5558
5750
  type: SkuListType;
5559
5751
  };
5560
5752
  type TagRel$a = ResourceRel & {
@@ -5688,12 +5880,12 @@ interface FreeGiftPromotionCreate extends ResourceCreate {
5688
5880
  * @example ```"3"```
5689
5881
  */
5690
5882
  max_quantity?: number | null;
5691
- market?: MarketRel$b | null;
5883
+ market?: MarketRel$c | null;
5692
5884
  order_amount_promotion_rule?: OrderAmountPromotionRuleRel$4 | null;
5693
5885
  sku_list_promotion_rule?: SkuListPromotionRuleRel$4 | null;
5694
5886
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$4 | null;
5695
5887
  custom_promotion_rule?: CustomPromotionRuleRel$3 | null;
5696
- sku_list: SkuListRel$6;
5888
+ sku_list: SkuListRel$5;
5697
5889
  tags?: TagRel$a[] | null;
5698
5890
  }
5699
5891
  interface FreeGiftPromotionUpdate extends ResourceUpdate {
@@ -5747,12 +5939,12 @@ interface FreeGiftPromotionUpdate extends ResourceUpdate {
5747
5939
  * @example ```"3"```
5748
5940
  */
5749
5941
  max_quantity?: number | null;
5750
- market?: MarketRel$b | null;
5942
+ market?: MarketRel$c | null;
5751
5943
  order_amount_promotion_rule?: OrderAmountPromotionRuleRel$4 | null;
5752
5944
  sku_list_promotion_rule?: SkuListPromotionRuleRel$4 | null;
5753
5945
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$4 | null;
5754
5946
  custom_promotion_rule?: CustomPromotionRuleRel$3 | null;
5755
- sku_list?: SkuListRel$6 | null;
5947
+ sku_list?: SkuListRel$5 | null;
5756
5948
  tags?: TagRel$a[] | null;
5757
5949
  }
5758
5950
  declare class FreeGiftPromotions extends ApiResource<FreeGiftPromotion> {
@@ -5840,7 +6032,7 @@ type BuyXPayYPromotionType = 'buy_x_pay_y_promotions';
5840
6032
  type BuyXPayYPromotionRel$3 = ResourceRel & {
5841
6033
  type: BuyXPayYPromotionType;
5842
6034
  };
5843
- type MarketRel$a = ResourceRel & {
6035
+ type MarketRel$b = ResourceRel & {
5844
6036
  type: MarketType;
5845
6037
  };
5846
6038
  type OrderAmountPromotionRuleRel$3 = ResourceRel & {
@@ -5855,7 +6047,7 @@ type CouponCodesPromotionRuleRel$2 = ResourceRel & {
5855
6047
  type CustomPromotionRuleRel$2 = ResourceRel & {
5856
6048
  type: CustomPromotionRuleType;
5857
6049
  };
5858
- type SkuListRel$5 = ResourceRel & {
6050
+ type SkuListRel$4 = ResourceRel & {
5859
6051
  type: SkuListType;
5860
6052
  };
5861
6053
  type TagRel$9 = ResourceRel & {
@@ -6009,12 +6201,12 @@ interface BuyXPayYPromotionCreate extends ResourceCreate {
6009
6201
  * @example ```"true"```
6010
6202
  */
6011
6203
  cheapest_free?: boolean | null;
6012
- market?: MarketRel$a | null;
6204
+ market?: MarketRel$b | null;
6013
6205
  order_amount_promotion_rule?: OrderAmountPromotionRuleRel$3 | null;
6014
6206
  sku_list_promotion_rule?: SkuListPromotionRuleRel$3 | null;
6015
6207
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$2 | null;
6016
6208
  custom_promotion_rule?: CustomPromotionRuleRel$2 | null;
6017
- sku_list: SkuListRel$5;
6209
+ sku_list: SkuListRel$4;
6018
6210
  tags?: TagRel$9[] | null;
6019
6211
  }
6020
6212
  interface BuyXPayYPromotionUpdate extends ResourceUpdate {
@@ -6078,12 +6270,12 @@ interface BuyXPayYPromotionUpdate extends ResourceUpdate {
6078
6270
  * @example ```"true"```
6079
6271
  */
6080
6272
  cheapest_free?: boolean | null;
6081
- market?: MarketRel$a | null;
6273
+ market?: MarketRel$b | null;
6082
6274
  order_amount_promotion_rule?: OrderAmountPromotionRuleRel$3 | null;
6083
6275
  sku_list_promotion_rule?: SkuListPromotionRuleRel$3 | null;
6084
6276
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$2 | null;
6085
6277
  custom_promotion_rule?: CustomPromotionRuleRel$2 | null;
6086
- sku_list?: SkuListRel$5 | null;
6278
+ sku_list?: SkuListRel$4 | null;
6087
6279
  tags?: TagRel$9[] | null;
6088
6280
  }
6089
6281
  declare class BuyXPayYPromotions extends ApiResource<BuyXPayYPromotion> {
@@ -6136,7 +6328,7 @@ type ExternalPromotionRel$2 = ResourceRel & {
6136
6328
  type FixedAmountPromotionRel$2 = ResourceRel & {
6137
6329
  type: FixedAmountPromotionType;
6138
6330
  };
6139
- type SkuListRel$4 = ResourceRel & {
6331
+ type SkuListRel$3 = ResourceRel & {
6140
6332
  type: SkuListType;
6141
6333
  };
6142
6334
  type SkuListPromotionRuleSort = Pick<SkuListPromotionRule, 'id'> & ResourceSort;
@@ -6169,7 +6361,7 @@ interface SkuListPromotionRuleCreate extends ResourceCreate {
6169
6361
  */
6170
6362
  min_quantity?: number | null;
6171
6363
  promotion: PercentageDiscountPromotionRel$3 | FreeShippingPromotionRel$3 | BuyXPayYPromotionRel$2 | FreeGiftPromotionRel$2 | FixedPricePromotionRel$2 | ExternalPromotionRel$2 | FixedAmountPromotionRel$2;
6172
- sku_list?: SkuListRel$4 | null;
6364
+ sku_list?: SkuListRel$3 | null;
6173
6365
  }
6174
6366
  interface SkuListPromotionRuleUpdate extends ResourceUpdate {
6175
6367
  /**
@@ -6183,7 +6375,7 @@ interface SkuListPromotionRuleUpdate extends ResourceUpdate {
6183
6375
  */
6184
6376
  min_quantity?: number | null;
6185
6377
  promotion?: PercentageDiscountPromotionRel$3 | FreeShippingPromotionRel$3 | BuyXPayYPromotionRel$2 | FreeGiftPromotionRel$2 | FixedPricePromotionRel$2 | ExternalPromotionRel$2 | FixedAmountPromotionRel$2 | null;
6186
- sku_list?: SkuListRel$4 | null;
6378
+ sku_list?: SkuListRel$3 | null;
6187
6379
  }
6188
6380
  declare class SkuListPromotionRules extends ApiResource<SkuListPromotionRule> {
6189
6381
  static readonly TYPE: SkuListPromotionRuleType;
@@ -6203,7 +6395,7 @@ type FreeShippingPromotionType = 'free_shipping_promotions';
6203
6395
  type FreeShippingPromotionRel$2 = ResourceRel & {
6204
6396
  type: FreeShippingPromotionType;
6205
6397
  };
6206
- type MarketRel$9 = ResourceRel & {
6398
+ type MarketRel$a = ResourceRel & {
6207
6399
  type: MarketType;
6208
6400
  };
6209
6401
  type OrderAmountPromotionRuleRel$2 = ResourceRel & {
@@ -6218,7 +6410,7 @@ type CouponCodesPromotionRuleRel$1 = ResourceRel & {
6218
6410
  type CustomPromotionRuleRel$1 = ResourceRel & {
6219
6411
  type: CustomPromotionRuleType;
6220
6412
  };
6221
- type SkuListRel$3 = ResourceRel & {
6413
+ type SkuListRel$2 = ResourceRel & {
6222
6414
  type: SkuListType;
6223
6415
  };
6224
6416
  type TagRel$8 = ResourceRel & {
@@ -6341,12 +6533,12 @@ interface FreeShippingPromotionCreate extends ResourceCreate {
6341
6533
  * @example ```"true"```
6342
6534
  */
6343
6535
  _enable?: boolean | null;
6344
- market?: MarketRel$9 | null;
6536
+ market?: MarketRel$a | null;
6345
6537
  order_amount_promotion_rule?: OrderAmountPromotionRuleRel$2 | null;
6346
6538
  sku_list_promotion_rule?: SkuListPromotionRuleRel$1 | null;
6347
6539
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$1 | null;
6348
6540
  custom_promotion_rule?: CustomPromotionRuleRel$1 | null;
6349
- sku_list?: SkuListRel$3 | null;
6541
+ sku_list?: SkuListRel$2 | null;
6350
6542
  tags?: TagRel$8[] | null;
6351
6543
  }
6352
6544
  interface FreeShippingPromotionUpdate extends ResourceUpdate {
@@ -6395,12 +6587,12 @@ interface FreeShippingPromotionUpdate extends ResourceUpdate {
6395
6587
  * @example ```"true"```
6396
6588
  */
6397
6589
  _enable?: boolean | null;
6398
- market?: MarketRel$9 | null;
6590
+ market?: MarketRel$a | null;
6399
6591
  order_amount_promotion_rule?: OrderAmountPromotionRuleRel$2 | null;
6400
6592
  sku_list_promotion_rule?: SkuListPromotionRuleRel$1 | null;
6401
6593
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$1 | null;
6402
6594
  custom_promotion_rule?: CustomPromotionRuleRel$1 | null;
6403
- sku_list?: SkuListRel$3 | null;
6595
+ sku_list?: SkuListRel$2 | null;
6404
6596
  tags?: TagRel$8[] | null;
6405
6597
  }
6406
6598
  declare class FreeShippingPromotions extends ApiResource<FreeShippingPromotion> {
@@ -6520,7 +6712,7 @@ type PercentageDiscountPromotionType = 'percentage_discount_promotions';
6520
6712
  type PercentageDiscountPromotionRel$1 = ResourceRel & {
6521
6713
  type: PercentageDiscountPromotionType;
6522
6714
  };
6523
- type MarketRel$8 = ResourceRel & {
6715
+ type MarketRel$9 = ResourceRel & {
6524
6716
  type: MarketType;
6525
6717
  };
6526
6718
  type OrderAmountPromotionRuleRel = ResourceRel & {
@@ -6535,7 +6727,7 @@ type CouponCodesPromotionRuleRel = ResourceRel & {
6535
6727
  type CustomPromotionRuleRel = ResourceRel & {
6536
6728
  type: CustomPromotionRuleType;
6537
6729
  };
6538
- type SkuListRel$2 = ResourceRel & {
6730
+ type SkuListRel$1 = ResourceRel & {
6539
6731
  type: SkuListType;
6540
6732
  };
6541
6733
  type TagRel$7 = ResourceRel & {
@@ -6669,12 +6861,12 @@ interface PercentageDiscountPromotionCreate extends ResourceCreate {
6669
6861
  * @example ```"10"```
6670
6862
  */
6671
6863
  percentage: number;
6672
- market?: MarketRel$8 | null;
6864
+ market?: MarketRel$9 | null;
6673
6865
  order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null;
6674
6866
  sku_list_promotion_rule?: SkuListPromotionRuleRel | null;
6675
6867
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null;
6676
6868
  custom_promotion_rule?: CustomPromotionRuleRel | null;
6677
- sku_list?: SkuListRel$2 | null;
6869
+ sku_list?: SkuListRel$1 | null;
6678
6870
  tags?: TagRel$7[] | null;
6679
6871
  }
6680
6872
  interface PercentageDiscountPromotionUpdate extends ResourceUpdate {
@@ -6728,12 +6920,12 @@ interface PercentageDiscountPromotionUpdate extends ResourceUpdate {
6728
6920
  * @example ```"10"```
6729
6921
  */
6730
6922
  percentage?: number | null;
6731
- market?: MarketRel$8 | null;
6923
+ market?: MarketRel$9 | null;
6732
6924
  order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null;
6733
6925
  sku_list_promotion_rule?: SkuListPromotionRuleRel | null;
6734
6926
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null;
6735
6927
  custom_promotion_rule?: CustomPromotionRuleRel | null;
6736
- sku_list?: SkuListRel$2 | null;
6928
+ sku_list?: SkuListRel$1 | null;
6737
6929
  tags?: TagRel$7[] | null;
6738
6930
  }
6739
6931
  declare class PercentageDiscountPromotions extends ApiResource<PercentageDiscountPromotion> {
@@ -6765,7 +6957,7 @@ type LineItemType = 'line_items';
6765
6957
  type LineItemRel$1 = ResourceRel & {
6766
6958
  type: LineItemType;
6767
6959
  };
6768
- type OrderRel$8 = ResourceRel & {
6960
+ type OrderRel$7 = ResourceRel & {
6769
6961
  type: OrderType;
6770
6962
  };
6771
6963
  type SkuRel$8 = ResourceRel & {
@@ -6930,7 +7122,7 @@ interface LineItem extends Resource {
6930
7122
  formatted_tax_amount?: string | null;
6931
7123
  /**
6932
7124
  * The name of the line item. When blank, it gets populated with the name of the associated item (if present).
6933
- * @example ```"Black Men T-shirt with White Logo (XL)"```
7125
+ * @example ```"Men's Black T-shirt with White Logo (XL)"```
6934
7126
  */
6935
7127
  name?: string | null;
6936
7128
  /**
@@ -7037,7 +7229,7 @@ interface LineItemCreate extends ResourceCreate {
7037
7229
  compare_at_amount_cents?: number | null;
7038
7230
  /**
7039
7231
  * The name of the line item. When blank, it gets populated with the name of the associated item (if present).
7040
- * @example ```"Black Men T-shirt with White Logo (XL)"```
7232
+ * @example ```"Men's Black T-shirt with White Logo (XL)"```
7041
7233
  */
7042
7234
  name?: string | null;
7043
7235
  /**
@@ -7055,7 +7247,7 @@ interface LineItemCreate extends ResourceCreate {
7055
7247
  * @example ```"monthly"```
7056
7248
  */
7057
7249
  frequency?: string | null;
7058
- order: OrderRel$8;
7250
+ order: OrderRel$7;
7059
7251
  item?: SkuRel$8 | BundleRel$2 | GiftCardRel$1 | ShipmentRel$4 | PaymentMethodRel$2 | AdjustmentRel$1 | PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | null;
7060
7252
  tags?: TagRel$6[] | null;
7061
7253
  }
@@ -7097,7 +7289,7 @@ interface LineItemUpdate extends ResourceUpdate {
7097
7289
  compare_at_amount_cents?: number | null;
7098
7290
  /**
7099
7291
  * The name of the line item. When blank, it gets populated with the name of the associated item (if present).
7100
- * @example ```"Black Men T-shirt with White Logo (XL)"```
7292
+ * @example ```"Men's Black T-shirt with White Logo (XL)"```
7101
7293
  */
7102
7294
  name?: string | null;
7103
7295
  /**
@@ -7338,7 +7530,7 @@ type RecurringOrderCopyType = 'recurring_order_copies';
7338
7530
  type RecurringOrderCopyRel = ResourceRel & {
7339
7531
  type: RecurringOrderCopyType;
7340
7532
  };
7341
- type OrderRel$7 = ResourceRel & {
7533
+ type OrderRel$6 = ResourceRel & {
7342
7534
  type: OrderType;
7343
7535
  };
7344
7536
  type OrderSubscriptionRel$1 = ResourceRel & {
@@ -7403,7 +7595,7 @@ interface RecurringOrderCopyCreate extends ResourceCreate {
7403
7595
  * @example ```"true"```
7404
7596
  */
7405
7597
  reuse_wallet?: boolean | null;
7406
- source_order: OrderRel$7;
7598
+ source_order: OrderRel$6;
7407
7599
  order_subscription: OrderSubscriptionRel$1;
7408
7600
  }
7409
7601
  type RecurringOrderCopyUpdate = ResourceUpdate;
@@ -7426,10 +7618,10 @@ type OrderSubscriptionType = 'order_subscriptions';
7426
7618
  type OrderSubscriptionRel = ResourceRel & {
7427
7619
  type: OrderSubscriptionType;
7428
7620
  };
7429
- type MarketRel$7 = ResourceRel & {
7621
+ type MarketRel$8 = ResourceRel & {
7430
7622
  type: MarketType;
7431
7623
  };
7432
- type OrderRel$6 = ResourceRel & {
7624
+ type OrderRel$5 = ResourceRel & {
7433
7625
  type: OrderType;
7434
7626
  };
7435
7627
  type TagRel$5 = ResourceRel & {
@@ -7555,8 +7747,8 @@ interface OrderSubscriptionCreate extends ResourceCreate {
7555
7747
  * @example ```"2018-01-02T12:00:00.000Z"```
7556
7748
  */
7557
7749
  expires_at?: string | null;
7558
- market?: MarketRel$7 | null;
7559
- source_order: OrderRel$6;
7750
+ market?: MarketRel$8 | null;
7751
+ source_order: OrderRel$5;
7560
7752
  tags?: TagRel$5[] | null;
7561
7753
  }
7562
7754
  interface OrderSubscriptionUpdate extends ResourceUpdate {
@@ -7753,7 +7945,7 @@ type PaymentOptionType = 'payment_options';
7753
7945
  type PaymentOptionRel$1 = ResourceRel & {
7754
7946
  type: PaymentOptionType;
7755
7947
  };
7756
- type OrderRel$5 = ResourceRel & {
7948
+ type OrderRel$4 = ResourceRel & {
7757
7949
  type: OrderType;
7758
7950
  };
7759
7951
  type PaymentOptionSort = Pick<PaymentOption, 'id' | 'name' | 'payment_source_type'> & ResourceSort;
@@ -7793,7 +7985,7 @@ interface PaymentOptionCreate extends ResourceCreate {
7793
7985
  * @example ```"[object Object]"```
7794
7986
  */
7795
7987
  data: Record<string, any>;
7796
- order: OrderRel$5;
7988
+ order: OrderRel$4;
7797
7989
  }
7798
7990
  interface PaymentOptionUpdate extends ResourceUpdate {
7799
7991
  /**
@@ -7806,7 +7998,7 @@ interface PaymentOptionUpdate extends ResourceUpdate {
7806
7998
  * @example ```"[object Object]"```
7807
7999
  */
7808
8000
  data?: Record<string, any> | null;
7809
- order?: OrderRel$5 | null;
8001
+ order?: OrderRel$4 | null;
7810
8002
  }
7811
8003
  declare class PaymentOptions extends ApiResource<PaymentOption> {
7812
8004
  static readonly TYPE: PaymentOptionType;
@@ -7825,7 +8017,7 @@ type OrderCopyType = 'order_copies';
7825
8017
  type OrderCopyRel = ResourceRel & {
7826
8018
  type: OrderCopyType;
7827
8019
  };
7828
- type OrderRel$4 = ResourceRel & {
8020
+ type OrderRel$3 = ResourceRel & {
7829
8021
  type: OrderType;
7830
8022
  };
7831
8023
  type OrderCopySort = Pick<OrderCopy, 'id' | 'status' | 'started_at' | 'completed_at' | 'failed_at' | 'errors_count'> & ResourceSort;
@@ -7897,7 +8089,7 @@ interface OrderCopyCreate extends ResourceCreate {
7897
8089
  * @example ```"true"```
7898
8090
  */
7899
8091
  cancel_source_order?: boolean | null;
7900
- source_order: OrderRel$4;
8092
+ source_order: OrderRel$3;
7901
8093
  }
7902
8094
  type OrderCopyUpdate = ResourceUpdate;
7903
8095
  declare class OrderCopies extends ApiResource<OrderCopy> {
@@ -7916,10 +8108,10 @@ declare class OrderCopies extends ApiResource<OrderCopy> {
7916
8108
  }
7917
8109
 
7918
8110
  type OrderType = 'orders';
7919
- type OrderRel$3 = ResourceRel & {
8111
+ type OrderRel$2 = ResourceRel & {
7920
8112
  type: OrderType;
7921
8113
  };
7922
- type MarketRel$6 = ResourceRel & {
8114
+ type MarketRel$7 = ResourceRel & {
7923
8115
  type: MarketType;
7924
8116
  };
7925
8117
  type CustomerRel$2 = ResourceRel & {
@@ -8366,7 +8558,7 @@ interface Order extends Resource {
8366
8558
  */
8367
8559
  formatted_duty_amount?: string | null;
8368
8560
  /**
8369
- * The total amount at place time, in cents.
8561
+ * The total amount at place time, in cents, which is used internally for editing.
8370
8562
  */
8371
8563
  place_total_amount_cents?: number | null;
8372
8564
  /**
@@ -8522,6 +8714,7 @@ interface Order extends Resource {
8522
8714
  order_copies?: OrderCopy[] | null;
8523
8715
  recurring_order_copies?: RecurringOrderCopy[] | null;
8524
8716
  attachments?: Attachment[] | null;
8717
+ links?: Link[] | null;
8525
8718
  resource_errors?: ResourceError[] | null;
8526
8719
  events?: Event[] | null;
8527
8720
  tags?: Tag[] | null;
@@ -8617,7 +8810,7 @@ interface OrderCreate extends ResourceCreate {
8617
8810
  * @example ```"https://yourdomain.com/privacy"```
8618
8811
  */
8619
8812
  privacy_url?: string | null;
8620
- market?: MarketRel$6 | null;
8813
+ market?: MarketRel$7 | null;
8621
8814
  customer?: CustomerRel$2 | null;
8622
8815
  shipping_address?: AddressRel$4 | null;
8623
8816
  billing_address?: AddressRel$4 | null;
@@ -8771,7 +8964,7 @@ interface OrderUpdate extends ResourceUpdate {
8771
8964
  */
8772
8965
  _refund?: boolean | null;
8773
8966
  /**
8774
- * Send this attribute if you want to mark as fulfilled a shipped/delivered order.
8967
+ * Send this attribute if you want to mark as fulfilled the order (shipments must be cancelled, shipped or delivered).
8775
8968
  * @example ```"true"```
8776
8969
  */
8777
8970
  _fulfill?: boolean | null;
@@ -8864,7 +9057,7 @@ interface OrderUpdate extends ResourceUpdate {
8864
9057
  * @example ```"true"```
8865
9058
  */
8866
9059
  _reset_circuit?: boolean | null;
8867
- market?: MarketRel$6 | null;
9060
+ market?: MarketRel$7 | null;
8868
9061
  customer?: CustomerRel$2 | null;
8869
9062
  shipping_address?: AddressRel$4 | null;
8870
9063
  billing_address?: AddressRel$4 | null;
@@ -8904,6 +9097,7 @@ declare class Orders extends ApiResource<Order> {
8904
9097
  order_copies(orderId: string | Order, params?: QueryParamsList<OrderCopy>, options?: ResourcesConfig): Promise<ListResponse<OrderCopy>>;
8905
9098
  recurring_order_copies(orderId: string | Order, params?: QueryParamsList<RecurringOrderCopy>, options?: ResourcesConfig): Promise<ListResponse<RecurringOrderCopy>>;
8906
9099
  attachments(orderId: string | Order, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
9100
+ links(orderId: string | Order, params?: QueryParamsList<Link>, options?: ResourcesConfig): Promise<ListResponse<Link>>;
8907
9101
  resource_errors(orderId: string | Order, params?: QueryParamsList<ResourceError>, options?: ResourcesConfig): Promise<ListResponse<ResourceError>>;
8908
9102
  events(orderId: string | Order, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
8909
9103
  tags(orderId: string | Order, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
@@ -8939,8 +9133,8 @@ declare class Orders extends ApiResource<Order> {
8939
9133
  _stop_editing(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
8940
9134
  _reset_circuit(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
8941
9135
  isOrder(resource: any): resource is Order;
8942
- relationship(id: string | ResourceId | null): OrderRel$3;
8943
- relationshipToMany(...ids: string[]): OrderRel$3[];
9136
+ relationship(id: string | ResourceId | null): OrderRel$2;
9137
+ relationshipToMany(...ids: string[]): OrderRel$2[];
8944
9138
  type(): OrderType;
8945
9139
  }
8946
9140
 
@@ -9297,7 +9491,7 @@ type ShippingMethodType = 'shipping_methods';
9297
9491
  type ShippingMethodRel$2 = ResourceRel & {
9298
9492
  type: ShippingMethodType;
9299
9493
  };
9300
- type MarketRel$5 = ResourceRel & {
9494
+ type MarketRel$6 = ResourceRel & {
9301
9495
  type: MarketType;
9302
9496
  };
9303
9497
  type ShippingZoneRel$1 = ResourceRel & {
@@ -9484,7 +9678,7 @@ interface ShippingMethodCreate extends ResourceCreate {
9484
9678
  * @example ```"true"```
9485
9679
  */
9486
9680
  _enable?: boolean | null;
9487
- market?: MarketRel$5 | null;
9681
+ market?: MarketRel$6 | null;
9488
9682
  shipping_zone?: ShippingZoneRel$1 | null;
9489
9683
  shipping_category?: ShippingCategoryRel$3 | null;
9490
9684
  stock_location?: StockLocationRel$5 | null;
@@ -9556,7 +9750,7 @@ interface ShippingMethodUpdate extends ResourceUpdate {
9556
9750
  * @example ```"true"```
9557
9751
  */
9558
9752
  _reset_circuit?: boolean | null;
9559
- market?: MarketRel$5 | null;
9753
+ market?: MarketRel$6 | null;
9560
9754
  shipping_zone?: ShippingZoneRel$1 | null;
9561
9755
  shipping_category?: ShippingCategoryRel$3 | null;
9562
9756
  stock_location?: StockLocationRel$5 | null;
@@ -9589,30 +9783,77 @@ type CarrierAccountType = 'carrier_accounts';
9589
9783
  type CarrierAccountRel$1 = ResourceRel & {
9590
9784
  type: CarrierAccountType;
9591
9785
  };
9592
- type CarrierAccountSort = Pick<CarrierAccount, 'id'> & ResourceSort;
9786
+ type MarketRel$5 = ResourceRel & {
9787
+ type: MarketType;
9788
+ };
9789
+ type CarrierAccountSort = Pick<CarrierAccount, 'id' | 'name'> & ResourceSort;
9593
9790
  interface CarrierAccount extends Resource {
9594
9791
  readonly type: CarrierAccountType;
9595
9792
  /**
9596
9793
  * The carrier account internal name.
9597
- * @example ```"UPS"```
9794
+ * @example ```"Accurate"```
9598
9795
  */
9599
- name?: string | null;
9796
+ name: string;
9600
9797
  /**
9601
9798
  * The Easypost service carrier type.
9602
- * @example ```"UPS"```
9799
+ * @example ```"AccurateAccount"```
9603
9800
  */
9604
- easypost_type?: string | null;
9801
+ easypost_type: string;
9605
9802
  /**
9606
9803
  * The Easypost internal reference ID.
9607
9804
  * @example ```"xxxx-yyyy-zzzz"```
9608
9805
  */
9609
9806
  easypost_id?: string | null;
9807
+ /**
9808
+ * The Easypost carrier accounts credentials fields.
9809
+ * @example ```"[object Object]"```
9810
+ */
9811
+ credentials: Record<string, any>;
9610
9812
  market?: Market | null;
9611
9813
  attachments?: Attachment[] | null;
9612
9814
  versions?: Version[] | null;
9613
9815
  }
9816
+ interface CarrierAccountCreate extends ResourceCreate {
9817
+ /**
9818
+ * The carrier account internal name.
9819
+ * @example ```"Accurate"```
9820
+ */
9821
+ name: string;
9822
+ /**
9823
+ * The Easypost service carrier type.
9824
+ * @example ```"AccurateAccount"```
9825
+ */
9826
+ easypost_type: string;
9827
+ /**
9828
+ * The Easypost carrier accounts credentials fields.
9829
+ * @example ```"[object Object]"```
9830
+ */
9831
+ credentials: Record<string, any>;
9832
+ market?: MarketRel$5 | null;
9833
+ }
9834
+ interface CarrierAccountUpdate extends ResourceUpdate {
9835
+ /**
9836
+ * The carrier account internal name.
9837
+ * @example ```"Accurate"```
9838
+ */
9839
+ name?: string | null;
9840
+ /**
9841
+ * The Easypost service carrier type.
9842
+ * @example ```"AccurateAccount"```
9843
+ */
9844
+ easypost_type?: string | null;
9845
+ /**
9846
+ * The Easypost carrier accounts credentials fields.
9847
+ * @example ```"[object Object]"```
9848
+ */
9849
+ credentials?: Record<string, any> | null;
9850
+ market?: MarketRel$5 | null;
9851
+ }
9614
9852
  declare class CarrierAccounts extends ApiResource<CarrierAccount> {
9615
9853
  static readonly TYPE: CarrierAccountType;
9854
+ create(resource: CarrierAccountCreate, params?: QueryParamsRetrieve<CarrierAccount>, options?: ResourcesConfig): Promise<CarrierAccount>;
9855
+ update(resource: CarrierAccountUpdate, params?: QueryParamsRetrieve<CarrierAccount>, options?: ResourcesConfig): Promise<CarrierAccount>;
9856
+ delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
9616
9857
  market(carrierAccountId: string | CarrierAccount, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market>;
9617
9858
  attachments(carrierAccountId: string | CarrierAccount, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
9618
9859
  versions(carrierAccountId: string | CarrierAccount, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
@@ -9778,7 +10019,7 @@ interface ParcelLineItem extends Resource {
9778
10019
  quantity: number;
9779
10020
  /**
9780
10021
  * The internal name of the associated line item.
9781
- * @example ```"Black Men T-shirt with White Logo (XL)"```
10022
+ * @example ```"Men's Black T-shirt with White Logo (XL)"```
9782
10023
  */
9783
10024
  name: string;
9784
10025
  /**
@@ -10216,7 +10457,7 @@ type ShipmentType = 'shipments';
10216
10457
  type ShipmentRel$2 = ResourceRel & {
10217
10458
  type: ShipmentType;
10218
10459
  };
10219
- type OrderRel$2 = ResourceRel & {
10460
+ type OrderRel$1 = ResourceRel & {
10220
10461
  type: OrderType;
10221
10462
  };
10222
10463
  type ShippingCategoryRel$2 = ResourceRel & {
@@ -10367,7 +10608,7 @@ interface Shipment extends Resource {
10367
10608
  versions?: Version[] | null;
10368
10609
  }
10369
10610
  interface ShipmentCreate extends ResourceCreate {
10370
- order: OrderRel$2;
10611
+ order: OrderRel$1;
10371
10612
  shipping_category?: ShippingCategoryRel$2 | null;
10372
10613
  inventory_stock_location: InventoryStockLocationRel;
10373
10614
  shipping_address?: AddressRel$3 | null;
@@ -10855,7 +11096,7 @@ interface Sku extends Resource {
10855
11096
  code: string;
10856
11097
  /**
10857
11098
  * The internal name of the SKU.
10858
- * @example ```"Black Men T-shirt with White Logo (XL)"```
11099
+ * @example ```"Men's Black T-shirt with White Logo (XL)"```
10859
11100
  */
10860
11101
  name: string;
10861
11102
  /**
@@ -10908,6 +11149,7 @@ interface Sku extends Resource {
10908
11149
  delivery_lead_times?: DeliveryLeadTime[] | null;
10909
11150
  sku_options?: SkuOption[] | null;
10910
11151
  attachments?: Attachment[] | null;
11152
+ links?: Link[] | null;
10911
11153
  events?: Event[] | null;
10912
11154
  tags?: Tag[] | null;
10913
11155
  versions?: Version[] | null;
@@ -10920,7 +11162,7 @@ interface SkuCreate extends ResourceCreate {
10920
11162
  code: string;
10921
11163
  /**
10922
11164
  * The internal name of the SKU.
10923
- * @example ```"Black Men T-shirt with White Logo (XL)"```
11165
+ * @example ```"Men's Black T-shirt with White Logo (XL)"```
10924
11166
  */
10925
11167
  name: string;
10926
11168
  /**
@@ -10972,7 +11214,7 @@ interface SkuUpdate extends ResourceUpdate {
10972
11214
  code?: string | null;
10973
11215
  /**
10974
11216
  * The internal name of the SKU.
10975
- * @example ```"Black Men T-shirt with White Logo (XL)"```
11217
+ * @example ```"Men's Black T-shirt with White Logo (XL)"```
10976
11218
  */
10977
11219
  name?: string | null;
10978
11220
  /**
@@ -11028,6 +11270,7 @@ declare class Skus extends ApiResource<Sku> {
11028
11270
  delivery_lead_times(skuId: string | Sku, params?: QueryParamsList<DeliveryLeadTime>, options?: ResourcesConfig): Promise<ListResponse<DeliveryLeadTime>>;
11029
11271
  sku_options(skuId: string | Sku, params?: QueryParamsList<SkuOption>, options?: ResourcesConfig): Promise<ListResponse<SkuOption>>;
11030
11272
  attachments(skuId: string | Sku, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
11273
+ links(skuId: string | Sku, params?: QueryParamsList<Link>, options?: ResourcesConfig): Promise<ListResponse<Link>>;
11031
11274
  events(skuId: string | Sku, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
11032
11275
  tags(skuId: string | Sku, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
11033
11276
  versions(skuId: string | Sku, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
@@ -12422,7 +12665,7 @@ type MarketRel$3 = ResourceRel & {
12422
12665
  type CustomerGroupRel$1 = ResourceRel & {
12423
12666
  type: CustomerGroupType;
12424
12667
  };
12425
- type OrderRel$1 = ResourceRel & {
12668
+ type OrderRel = ResourceRel & {
12426
12669
  type: OrderType;
12427
12670
  };
12428
12671
  type TransactionRel = ResourceRel & {
@@ -12446,7 +12689,7 @@ type ShippingCategoryRel = ResourceRel & {
12446
12689
  type BundleRel = ResourceRel & {
12447
12690
  type: BundleType;
12448
12691
  };
12449
- type SkuListRel$1 = ResourceRel & {
12692
+ type SkuListRel = ResourceRel & {
12450
12693
  type: SkuListType;
12451
12694
  };
12452
12695
  type StockItemRel = ResourceRel & {
@@ -12554,7 +12797,7 @@ interface AttachmentCreate extends ResourceCreate {
12554
12797
  * @example ```"https://s3.yourdomain.com/attachment.pdf"```
12555
12798
  */
12556
12799
  url?: string | null;
12557
- attachable: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel | MarketRel$3 | CustomerGroupRel$1 | OrderRel$1 | TransactionRel | PromotionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel$1 | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$1 | DeliveryLeadTimeRel | ShippingMethodRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel$1 | StockTransferRel | SkuOptionRel | MerchantRel$2 | SubscriptionModelRel$1 | ShipmentRel | PaymentOptionRel | PackageRel | ParcelRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel;
12800
+ attachable: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel | MarketRel$3 | CustomerGroupRel$1 | OrderRel | TransactionRel | PromotionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$1 | DeliveryLeadTimeRel | ShippingMethodRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel$1 | StockTransferRel | SkuOptionRel | MerchantRel$2 | SubscriptionModelRel$1 | ShipmentRel | PaymentOptionRel | PackageRel | ParcelRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel;
12558
12801
  }
12559
12802
  interface AttachmentUpdate extends ResourceUpdate {
12560
12803
  /**
@@ -12572,7 +12815,7 @@ interface AttachmentUpdate extends ResourceUpdate {
12572
12815
  * @example ```"https://s3.yourdomain.com/attachment.pdf"```
12573
12816
  */
12574
12817
  url?: string | null;
12575
- attachable?: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel | MarketRel$3 | CustomerGroupRel$1 | OrderRel$1 | TransactionRel | PromotionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel$1 | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$1 | DeliveryLeadTimeRel | ShippingMethodRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel$1 | StockTransferRel | SkuOptionRel | MerchantRel$2 | SubscriptionModelRel$1 | ShipmentRel | PaymentOptionRel | PackageRel | ParcelRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel | null;
12818
+ attachable?: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel | MarketRel$3 | CustomerGroupRel$1 | OrderRel | TransactionRel | PromotionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$1 | DeliveryLeadTimeRel | ShippingMethodRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel$1 | StockTransferRel | SkuOptionRel | MerchantRel$2 | SubscriptionModelRel$1 | ShipmentRel | PaymentOptionRel | PackageRel | ParcelRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel | null;
12576
12819
  }
12577
12820
  declare class Attachments extends ApiResource<Attachment> {
12578
12821
  static readonly TYPE: AttachmentType;
@@ -13219,7 +13462,12 @@ interface AdyenGateway extends Resource {
13219
13462
  */
13220
13463
  live_url_prefix: string;
13221
13464
  /**
13222
- * Indicates if the gateway will leverage on the Adyen notification webhooks.
13465
+ * The checkout API version, supported range is from 66 to 71, default is 71.
13466
+ * @example ```"71"```
13467
+ */
13468
+ api_version?: number | null;
13469
+ /**
13470
+ * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version.
13223
13471
  * @example ```"true"```
13224
13472
  */
13225
13473
  async_api?: boolean | null;
@@ -13269,12 +13517,12 @@ interface AdyenGatewayCreate extends ResourceCreate {
13269
13517
  */
13270
13518
  live_url_prefix: string;
13271
13519
  /**
13272
- * The checkout API version, supported range is from 66 to 68, default is 68.
13273
- * @example ```"68"```
13520
+ * The checkout API version, supported range is from 66 to 71, default is 71.
13521
+ * @example ```"71"```
13274
13522
  */
13275
13523
  api_version?: number | null;
13276
13524
  /**
13277
- * Indicates if the gateway will leverage on the Adyen notification webhooks.
13525
+ * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version.
13278
13526
  * @example ```"true"```
13279
13527
  */
13280
13528
  async_api?: boolean | null;
@@ -13317,12 +13565,12 @@ interface AdyenGatewayUpdate extends ResourceUpdate {
13317
13565
  */
13318
13566
  live_url_prefix?: string | null;
13319
13567
  /**
13320
- * The checkout API version, supported range is from 66 to 68, default is 68.
13321
- * @example ```"68"```
13568
+ * The checkout API version, supported range is from 66 to 71, default is 71.
13569
+ * @example ```"71"```
13322
13570
  */
13323
13571
  api_version?: number | null;
13324
13572
  /**
13325
- * Indicates if the gateway will leverage on the Adyen notification webhooks.
13573
+ * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version.
13326
13574
  * @example ```"true"```
13327
13575
  */
13328
13576
  async_api?: boolean | null;
@@ -14520,172 +14768,6 @@ declare class KlarnaGateways extends ApiResource<KlarnaGateway> {
14520
14768
  type(): KlarnaGatewayType;
14521
14769
  }
14522
14770
 
14523
- type LinkType = 'links';
14524
- type LinkRel = ResourceRel & {
14525
- type: LinkType;
14526
- };
14527
- type OrderRel = ResourceRel & {
14528
- type: OrderType;
14529
- };
14530
- type SkuListRel = ResourceRel & {
14531
- type: SkuListType;
14532
- };
14533
- type LinkSort = Pick<Link, 'id' | 'name' | 'starts_at' | 'expires_at' | 'disabled_at'> & ResourceSort;
14534
- interface Link extends Resource {
14535
- readonly type: LinkType;
14536
- /**
14537
- * The link internal name.
14538
- * @example ```"FW SALE 2023"```
14539
- */
14540
- name: string;
14541
- /**
14542
- * The link application client id, used to fetch JWT.
14543
- * @example ```"xxxx-yyyy-zzzz"```
14544
- */
14545
- client_id: string;
14546
- /**
14547
- * The link application scope, used to fetch JWT.
14548
- * @example ```"market:GhvCxsElAQ,market:kJhgVcxZDr"```
14549
- */
14550
- scope: string;
14551
- /**
14552
- * The activation date/time of this link.
14553
- * @example ```"2018-01-01T12:00:00.000Z"```
14554
- */
14555
- starts_at: string;
14556
- /**
14557
- * The expiration date/time of this link (must be after starts_at).
14558
- * @example ```"2018-01-02T12:00:00.000Z"```
14559
- */
14560
- expires_at: string;
14561
- /**
14562
- * Indicates if the link is active (enabled and not expired).
14563
- * @example ```"true"```
14564
- */
14565
- active?: boolean | null;
14566
- /**
14567
- * The link status. One of 'expired', 'pending', 'active', or 'disabled'.
14568
- * @example ```"pending"```
14569
- */
14570
- status?: 'expired' | 'pending' | 'active' | 'disabled' | null;
14571
- /**
14572
- * The link URL second level domain.
14573
- * @example ```"c11r.link"```
14574
- */
14575
- domain?: string | null;
14576
- /**
14577
- * The link URL.
14578
- * @example ```"https://c11r.link/ZXUtd2VzdC0xLzE5ZjBlMGVlLTg4OGMtNDQ1Yi1iYTA0LTg3MTUxY2FjZjFmYQ"```
14579
- */
14580
- url?: string | null;
14581
- /**
14582
- * Time at which this resource was disabled.
14583
- * @example ```"2018-01-01T12:00:00.000Z"```
14584
- */
14585
- disabled_at?: string | null;
14586
- item?: Order | SkuList | null;
14587
- events?: Event[] | null;
14588
- }
14589
- interface LinkCreate extends ResourceCreate {
14590
- /**
14591
- * The link internal name.
14592
- * @example ```"FW SALE 2023"```
14593
- */
14594
- name: string;
14595
- /**
14596
- * The link application client id, used to fetch JWT.
14597
- * @example ```"xxxx-yyyy-zzzz"```
14598
- */
14599
- client_id: string;
14600
- /**
14601
- * The link application scope, used to fetch JWT.
14602
- * @example ```"market:GhvCxsElAQ,market:kJhgVcxZDr"```
14603
- */
14604
- scope: string;
14605
- /**
14606
- * The activation date/time of this link.
14607
- * @example ```"2018-01-01T12:00:00.000Z"```
14608
- */
14609
- starts_at: string;
14610
- /**
14611
- * The expiration date/time of this link (must be after starts_at).
14612
- * @example ```"2018-01-02T12:00:00.000Z"```
14613
- */
14614
- expires_at: string;
14615
- /**
14616
- * The link URL second level domain.
14617
- * @example ```"c11r.link"```
14618
- */
14619
- domain?: string | null;
14620
- /**
14621
- * Send this attribute if you want to mark this resource as disabled.
14622
- * @example ```"true"```
14623
- */
14624
- _disable?: boolean | null;
14625
- /**
14626
- * Send this attribute if you want to mark this resource as enabled.
14627
- * @example ```"true"```
14628
- */
14629
- _enable?: boolean | null;
14630
- item: OrderRel | SkuListRel;
14631
- }
14632
- interface LinkUpdate extends ResourceUpdate {
14633
- /**
14634
- * The link internal name.
14635
- * @example ```"FW SALE 2023"```
14636
- */
14637
- name?: string | null;
14638
- /**
14639
- * The link application client id, used to fetch JWT.
14640
- * @example ```"xxxx-yyyy-zzzz"```
14641
- */
14642
- client_id?: string | null;
14643
- /**
14644
- * The link application scope, used to fetch JWT.
14645
- * @example ```"market:GhvCxsElAQ,market:kJhgVcxZDr"```
14646
- */
14647
- scope?: string | null;
14648
- /**
14649
- * The activation date/time of this link.
14650
- * @example ```"2018-01-01T12:00:00.000Z"```
14651
- */
14652
- starts_at?: string | null;
14653
- /**
14654
- * The expiration date/time of this link (must be after starts_at).
14655
- * @example ```"2018-01-02T12:00:00.000Z"```
14656
- */
14657
- expires_at?: string | null;
14658
- /**
14659
- * The link URL second level domain.
14660
- * @example ```"c11r.link"```
14661
- */
14662
- domain?: string | null;
14663
- /**
14664
- * Send this attribute if you want to mark this resource as disabled.
14665
- * @example ```"true"```
14666
- */
14667
- _disable?: boolean | null;
14668
- /**
14669
- * Send this attribute if you want to mark this resource as enabled.
14670
- * @example ```"true"```
14671
- */
14672
- _enable?: boolean | null;
14673
- item?: OrderRel | SkuListRel | null;
14674
- }
14675
- declare class Links extends ApiResource<Link> {
14676
- static readonly TYPE: LinkType;
14677
- create(resource: LinkCreate, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link>;
14678
- update(resource: LinkUpdate, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link>;
14679
- delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
14680
- events(linkId: string | Link, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
14681
- _disable(id: string | Link, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link>;
14682
- _enable(id: string | Link, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link>;
14683
- isLink(resource: any): resource is Link;
14684
- relationship(id: string | ResourceId | null): LinkRel;
14685
- relationshipToMany(...ids: string[]): LinkRel[];
14686
- type(): LinkType;
14687
- }
14688
-
14689
14771
  type ManualGatewayType = 'manual_gateways';
14690
14772
  type ManualGatewayRel = ResourceRel & {
14691
14773
  type: ManualGatewayType;
@@ -15055,15 +15137,15 @@ type ListableResourceType = Exclude<ResourceTypeLock, 'application' | 'organizat
15055
15137
  type ListableResource = Resource & {
15056
15138
  type: ListableResourceType;
15057
15139
  };
15058
- 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';
15140
+ 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' | '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' | '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';
15059
15141
  type CreatableResource = Resource & {
15060
15142
  type: CreatableResourceType;
15061
15143
  };
15062
- 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';
15144
+ 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' | 'carrier_accounts' | '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' | 'events' | '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';
15063
15145
  type UpdatableResource = Resource & {
15064
15146
  type: UpdatableResourceType;
15065
15147
  };
15066
- 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';
15148
+ 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' | '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' | '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';
15067
15149
  type DeletableResource = Resource & {
15068
15150
  type: DeletableResourceType;
15069
15151
  };
@@ -15074,7 +15156,7 @@ type TaggableResource = Resource & {
15074
15156
  type: TagType;
15075
15157
  }> | null;
15076
15158
  };
15077
- type VersionableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | '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_payment_sources' | 'customer_subscriptions' | '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' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_subscriptions' | 'orders' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_list_schedulers' | 'price_lists' | 'price_tiers' | 'price_volume_tiers' | 'prices' | 'promotion_rules' | 'promotions' | 'refunds' | '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_transfers' | 'stripe_gateways' | 'stripe_payments' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'voids' | 'webhooks' | 'wire_transfers';
15159
+ type VersionableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | '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_payment_sources' | 'customer_subscriptions' | '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' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_subscriptions' | 'orders' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_list_schedulers' | 'price_lists' | 'price_tiers' | 'price_volume_tiers' | 'prices' | 'promotion_rules' | 'promotions' | 'refunds' | 'reserved_stocks' | '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_transfers' | 'stripe_gateways' | 'stripe_payments' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'voids' | 'webhooks' | 'wire_transfers';
15078
15160
  type VersionableResource = Resource & {
15079
15161
  type: VersionableResourceType;
15080
15162
  versions?: Array<ResourceRel & {
@@ -15367,7 +15449,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
15367
15449
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
15368
15450
  declare class CommerceLayerClient {
15369
15451
  #private;
15370
- readonly openApiSchemaVersion = "6.0.0";
15452
+ readonly openApiSchemaVersion = "6.2.0";
15371
15453
  constructor(config: CommerceLayerInitConfig);
15372
15454
  get addresses(): Addresses;
15373
15455
  get adjustments(): Adjustments;
@@ -15522,4 +15604,4 @@ declare const CommerceLayerStatic: {
15522
15604
  readonly schemaVersion: string;
15523
15605
  };
15524
15606
 
15525
- 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, 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 };
15607
+ 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 CarrierAccountCreate, type CarrierAccountSort, type CarrierAccountUpdate, 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, type EventUpdate, 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, 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 };