@commercelayer/sdk 6.11.0 → 6.13.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.mts CHANGED
@@ -57,7 +57,7 @@ type RequestConfig = {
57
57
  refreshToken?: RefreshToken;
58
58
  };
59
59
  type ApiConfig = {
60
- organization: string;
60
+ organization?: string;
61
61
  domain?: string;
62
62
  accessToken: string;
63
63
  };
@@ -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[];
@@ -926,11 +935,11 @@ type MarketRel$j = ResourceRel & {
926
935
  type PaymentGatewayRel = ResourceRel & {
927
936
  type: PaymentGatewayType;
928
937
  };
929
- type PaymentMethodSort = Pick<PaymentMethod, 'id' | 'payment_source_type' | 'currency_code' | 'price_amount_cents' | 'disabled_at'> & ResourceSort;
938
+ type PaymentMethodSort = Pick<PaymentMethod, 'id' | 'name' | 'payment_source_type' | 'currency_code' | 'price_amount_cents' | 'disabled_at'> & ResourceSort;
930
939
  interface PaymentMethod extends Resource {
931
940
  readonly type: PaymentMethodType;
932
941
  /**
933
- * Payment source type, titleized.
942
+ * The payment method's internal name.
934
943
  * @example ```"Stripe Payment"```
935
944
  */
936
945
  name?: string | null;
@@ -999,6 +1008,11 @@ interface PaymentMethod extends Resource {
999
1008
  versions?: Version[] | null;
1000
1009
  }
1001
1010
  interface PaymentMethodCreate extends ResourceCreate {
1011
+ /**
1012
+ * The payment method's internal name.
1013
+ * @example ```"Stripe Payment"```
1014
+ */
1015
+ name?: string | null;
1002
1016
  /**
1003
1017
  * The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'credit_cards', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'.
1004
1018
  * @example ```"stripe_payments"```
@@ -1049,6 +1063,11 @@ interface PaymentMethodCreate extends ResourceCreate {
1049
1063
  payment_gateway: PaymentGatewayRel;
1050
1064
  }
1051
1065
  interface PaymentMethodUpdate extends ResourceUpdate {
1066
+ /**
1067
+ * The payment method's internal name.
1068
+ * @example ```"Stripe Payment"```
1069
+ */
1070
+ name?: string | null;
1052
1071
  /**
1053
1072
  * The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'credit_cards', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'.
1054
1073
  * @example ```"stripe_payments"```
@@ -3437,12 +3456,14 @@ interface ReservedStock extends Resource {
3437
3456
  stock_item?: StockItem | null;
3438
3457
  sku?: Sku | null;
3439
3458
  stock_reservations?: StockReservation[] | null;
3459
+ versions?: Version[] | null;
3440
3460
  }
3441
3461
  declare class ReservedStocks extends ApiResource<ReservedStock> {
3442
3462
  static readonly TYPE: ReservedStockType;
3443
3463
  stock_item(reservedStockId: string | ReservedStock, params?: QueryParamsRetrieve<StockItem>, options?: ResourcesConfig): Promise<StockItem>;
3444
3464
  sku(reservedStockId: string | ReservedStock, params?: QueryParamsRetrieve<Sku>, options?: ResourcesConfig): Promise<Sku>;
3445
3465
  stock_reservations(reservedStockId: string | ReservedStock, params?: QueryParamsList<StockReservation>, options?: ResourcesConfig): Promise<ListResponse<StockReservation>>;
3466
+ versions(reservedStockId: string | ReservedStock, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
3446
3467
  isReservedStock(resource: any): resource is ReservedStock;
3447
3468
  relationship(id: string | ResourceId | null): ReservedStockRel;
3448
3469
  relationshipToMany(...ids: string[]): ReservedStockRel[];
@@ -3530,7 +3551,7 @@ type LineItemRel$2 = ResourceRel & {
3530
3551
  type StockItemRel$2 = ResourceRel & {
3531
3552
  type: StockItemType;
3532
3553
  };
3533
- type SkuRel$a = ResourceRel & {
3554
+ type SkuRel$b = ResourceRel & {
3534
3555
  type: SkuType;
3535
3556
  };
3536
3557
  type StockLineItemSort = Pick<StockLineItem, 'id' | 'quantity'> & ResourceSort;
@@ -3571,7 +3592,7 @@ interface StockLineItemCreate extends ResourceCreate {
3571
3592
  shipment?: ShipmentRel$5 | null;
3572
3593
  line_item?: LineItemRel$2 | null;
3573
3594
  stock_item?: StockItemRel$2 | null;
3574
- sku?: SkuRel$a | null;
3595
+ sku?: SkuRel$b | null;
3575
3596
  }
3576
3597
  interface StockLineItemUpdate extends ResourceUpdate {
3577
3598
  /**
@@ -3602,7 +3623,7 @@ interface StockLineItemUpdate extends ResourceUpdate {
3602
3623
  shipment?: ShipmentRel$5 | null;
3603
3624
  line_item?: LineItemRel$2 | null;
3604
3625
  stock_item?: StockItemRel$2 | null;
3605
- sku?: SkuRel$a | null;
3626
+ sku?: SkuRel$b | null;
3606
3627
  }
3607
3628
  declare class StockLineItems extends ApiResource<StockLineItem> {
3608
3629
  static readonly TYPE: StockLineItemType;
@@ -3630,7 +3651,7 @@ type SkuListItemRel = ResourceRel & {
3630
3651
  type SkuListRel$c = ResourceRel & {
3631
3652
  type: SkuListType;
3632
3653
  };
3633
- type SkuRel$9 = ResourceRel & {
3654
+ type SkuRel$a = ResourceRel & {
3634
3655
  type: SkuType;
3635
3656
  };
3636
3657
  type SkuListItemSort = Pick<SkuListItem, 'id' | 'position' | 'quantity'> & ResourceSort;
@@ -3672,7 +3693,7 @@ interface SkuListItemCreate extends ResourceCreate {
3672
3693
  */
3673
3694
  quantity?: number | null;
3674
3695
  sku_list: SkuListRel$c;
3675
- sku: SkuRel$9;
3696
+ sku: SkuRel$a;
3676
3697
  }
3677
3698
  interface SkuListItemUpdate extends ResourceUpdate {
3678
3699
  /**
@@ -3705,10 +3726,189 @@ declare class SkuListItems extends ApiResource<SkuListItem> {
3705
3726
  type(): SkuListItemType;
3706
3727
  }
3707
3728
 
3708
- type SkuListType = 'sku_lists';
3729
+ type LinkType = 'links';
3730
+ type LinkRel = ResourceRel & {
3731
+ type: LinkType;
3732
+ };
3733
+ type OrderRel$8 = ResourceRel & {
3734
+ type: OrderType;
3735
+ };
3736
+ type SkuRel$9 = ResourceRel & {
3737
+ type: SkuType;
3738
+ };
3709
3739
  type SkuListRel$b = ResourceRel & {
3710
3740
  type: SkuListType;
3711
3741
  };
3742
+ type LinkSort = Pick<Link, 'id' | 'name' | 'starts_at' | 'expires_at' | 'item_type' | 'disabled_at'> & ResourceSort;
3743
+ interface Link extends Resource {
3744
+ readonly type: LinkType;
3745
+ /**
3746
+ * The link internal name.
3747
+ * @example ```"FW SALE 2023"```
3748
+ */
3749
+ name: string;
3750
+ /**
3751
+ * The link application client id, used to fetch JWT.
3752
+ * @example ```"xxxx-yyyy-zzzz"```
3753
+ */
3754
+ client_id: string;
3755
+ /**
3756
+ * The link application scope, used to fetch JWT.
3757
+ * @example ```"market:id:GhvCxsElAQ,market:id:kJhgVcxZDr"```
3758
+ */
3759
+ scope: string;
3760
+ /**
3761
+ * The activation date/time of this link.
3762
+ * @example ```"2018-01-01T12:00:00.000Z"```
3763
+ */
3764
+ starts_at: string;
3765
+ /**
3766
+ * The expiration date/time of this link (must be after starts_at).
3767
+ * @example ```"2018-01-02T12:00:00.000Z"```
3768
+ */
3769
+ expires_at: string;
3770
+ /**
3771
+ * Indicates if the link is active (enabled and not expired).
3772
+ * @example ```"true"```
3773
+ */
3774
+ active?: boolean | null;
3775
+ /**
3776
+ * The link status. One of 'disabled', 'expired', 'pending', or 'active'.
3777
+ * @example ```"pending"```
3778
+ */
3779
+ status?: 'disabled' | 'expired' | 'pending' | 'active' | null;
3780
+ /**
3781
+ * The link URL second level domain.
3782
+ * @example ```"commercelayer.link"```
3783
+ */
3784
+ domain?: string | null;
3785
+ /**
3786
+ * The link URL.
3787
+ * @example ```"https://c11r.link/ZXUtd2VzdC0xLzE5ZjBlMGVlLTg4OGMtNDQ1Yi1iYTA0LTg3MTUxY2FjZjFmYQ"```
3788
+ */
3789
+ url?: string | null;
3790
+ /**
3791
+ * The type of the associated item. One of 'orders', 'skus', or 'sku_lists'.
3792
+ * @example ```"orders"```
3793
+ */
3794
+ item_type?: 'orders' | 'skus' | 'sku_lists' | null;
3795
+ /**
3796
+ * Time at which this resource was disabled.
3797
+ * @example ```"2018-01-01T12:00:00.000Z"```
3798
+ */
3799
+ disabled_at?: string | null;
3800
+ item?: Order | Sku | SkuList | null;
3801
+ events?: Event[] | null;
3802
+ }
3803
+ interface LinkCreate extends ResourceCreate {
3804
+ /**
3805
+ * The link internal name.
3806
+ * @example ```"FW SALE 2023"```
3807
+ */
3808
+ name: string;
3809
+ /**
3810
+ * The link application client id, used to fetch JWT.
3811
+ * @example ```"xxxx-yyyy-zzzz"```
3812
+ */
3813
+ client_id: string;
3814
+ /**
3815
+ * The link application scope, used to fetch JWT.
3816
+ * @example ```"market:id:GhvCxsElAQ,market:id:kJhgVcxZDr"```
3817
+ */
3818
+ scope: string;
3819
+ /**
3820
+ * The activation date/time of this link.
3821
+ * @example ```"2018-01-01T12:00:00.000Z"```
3822
+ */
3823
+ starts_at: string;
3824
+ /**
3825
+ * The expiration date/time of this link (must be after starts_at).
3826
+ * @example ```"2018-01-02T12:00:00.000Z"```
3827
+ */
3828
+ expires_at: string;
3829
+ /**
3830
+ * The link URL second level domain.
3831
+ * @example ```"commercelayer.link"```
3832
+ */
3833
+ domain?: string | null;
3834
+ /**
3835
+ * The type of the associated item. One of 'orders', 'skus', or 'sku_lists'.
3836
+ * @example ```"orders"```
3837
+ */
3838
+ item_type?: 'orders' | 'skus' | 'sku_lists' | null;
3839
+ /**
3840
+ * Send this attribute if you want to mark this resource as disabled.
3841
+ * @example ```"true"```
3842
+ */
3843
+ _disable?: boolean | null;
3844
+ /**
3845
+ * Send this attribute if you want to mark this resource as enabled.
3846
+ * @example ```"true"```
3847
+ */
3848
+ _enable?: boolean | null;
3849
+ item: OrderRel$8 | SkuRel$9 | SkuListRel$b;
3850
+ }
3851
+ interface LinkUpdate extends ResourceUpdate {
3852
+ /**
3853
+ * The link internal name.
3854
+ * @example ```"FW SALE 2023"```
3855
+ */
3856
+ name?: string | null;
3857
+ /**
3858
+ * The link application client id, used to fetch JWT.
3859
+ * @example ```"xxxx-yyyy-zzzz"```
3860
+ */
3861
+ client_id?: string | null;
3862
+ /**
3863
+ * The link application scope, used to fetch JWT.
3864
+ * @example ```"market:id:GhvCxsElAQ,market:id:kJhgVcxZDr"```
3865
+ */
3866
+ scope?: string | null;
3867
+ /**
3868
+ * The activation date/time of this link.
3869
+ * @example ```"2018-01-01T12:00:00.000Z"```
3870
+ */
3871
+ starts_at?: string | null;
3872
+ /**
3873
+ * The expiration date/time of this link (must be after starts_at).
3874
+ * @example ```"2018-01-02T12:00:00.000Z"```
3875
+ */
3876
+ expires_at?: string | null;
3877
+ /**
3878
+ * The link URL second level domain.
3879
+ * @example ```"commercelayer.link"```
3880
+ */
3881
+ domain?: string | null;
3882
+ /**
3883
+ * Send this attribute if you want to mark this resource as disabled.
3884
+ * @example ```"true"```
3885
+ */
3886
+ _disable?: boolean | null;
3887
+ /**
3888
+ * Send this attribute if you want to mark this resource as enabled.
3889
+ * @example ```"true"```
3890
+ */
3891
+ _enable?: boolean | null;
3892
+ item?: OrderRel$8 | SkuRel$9 | SkuListRel$b | null;
3893
+ }
3894
+ declare class Links extends ApiResource<Link> {
3895
+ static readonly TYPE: LinkType;
3896
+ create(resource: LinkCreate, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link>;
3897
+ update(resource: LinkUpdate, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link>;
3898
+ delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
3899
+ events(linkId: string | Link, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
3900
+ _disable(id: string | Link, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link>;
3901
+ _enable(id: string | Link, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link>;
3902
+ isLink(resource: any): resource is Link;
3903
+ relationship(id: string | ResourceId | null): LinkRel;
3904
+ relationshipToMany(...ids: string[]): LinkRel[];
3905
+ type(): LinkType;
3906
+ }
3907
+
3908
+ type SkuListType = 'sku_lists';
3909
+ type SkuListRel$a = ResourceRel & {
3910
+ type: SkuListType;
3911
+ };
3712
3912
  type CustomerRel$6 = ResourceRel & {
3713
3913
  type: CustomerType;
3714
3914
  };
@@ -3749,6 +3949,7 @@ interface SkuList extends Resource {
3749
3949
  sku_list_items?: SkuListItem[] | null;
3750
3950
  bundles?: Bundle[] | null;
3751
3951
  attachments?: Attachment[] | null;
3952
+ links?: Link[] | null;
3752
3953
  versions?: Version[] | null;
3753
3954
  }
3754
3955
  interface SkuListCreate extends ResourceCreate {
@@ -3815,10 +4016,11 @@ declare class SkuLists extends ApiResource<SkuList> {
3815
4016
  sku_list_items(skuListId: string | SkuList, params?: QueryParamsList<SkuListItem>, options?: ResourcesConfig): Promise<ListResponse<SkuListItem>>;
3816
4017
  bundles(skuListId: string | SkuList, params?: QueryParamsList<Bundle>, options?: ResourcesConfig): Promise<ListResponse<Bundle>>;
3817
4018
  attachments(skuListId: string | SkuList, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
4019
+ links(skuListId: string | SkuList, params?: QueryParamsList<Link>, options?: ResourcesConfig): Promise<ListResponse<Link>>;
3818
4020
  versions(skuListId: string | SkuList, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
3819
4021
  isSkuList(resource: any): resource is SkuList;
3820
- relationship(id: string | ResourceId | null): SkuListRel$b;
3821
- relationshipToMany(...ids: string[]): SkuListRel$b[];
4022
+ relationship(id: string | ResourceId | null): SkuListRel$a;
4023
+ relationshipToMany(...ids: string[]): SkuListRel$a[];
3822
4024
  type(): SkuListType;
3823
4025
  }
3824
4026
 
@@ -3829,7 +4031,7 @@ type BundleRel$3 = ResourceRel & {
3829
4031
  type MarketRel$h = ResourceRel & {
3830
4032
  type: MarketType;
3831
4033
  };
3832
- type SkuListRel$a = ResourceRel & {
4034
+ type SkuListRel$9 = ResourceRel & {
3833
4035
  type: SkuListType;
3834
4036
  };
3835
4037
  type TagRel$g = ResourceRel & {
@@ -3961,7 +4163,7 @@ interface BundleCreate extends ResourceCreate {
3961
4163
  */
3962
4164
  _compute_compare_at_amount?: boolean | null;
3963
4165
  market?: MarketRel$h | null;
3964
- sku_list: SkuListRel$a;
4166
+ sku_list: SkuListRel$9;
3965
4167
  tags?: TagRel$g[] | null;
3966
4168
  }
3967
4169
  interface BundleUpdate extends ResourceUpdate {
@@ -4695,7 +4897,7 @@ type CouponCodesPromotionRuleRel$7 = ResourceRel & {
4695
4897
  type CustomPromotionRuleRel$7 = ResourceRel & {
4696
4898
  type: CustomPromotionRuleType;
4697
4899
  };
4698
- type SkuListRel$9 = ResourceRel & {
4900
+ type SkuListRel$8 = ResourceRel & {
4699
4901
  type: SkuListType;
4700
4902
  };
4701
4903
  type TagRel$d = ResourceRel & {
@@ -4750,10 +4952,10 @@ interface ExternalPromotion extends Resource {
4750
4952
  */
4751
4953
  active?: boolean | null;
4752
4954
  /**
4753
- * The promotion status. One of 'expired', 'pending', 'active', 'inactive', or 'disabled'.
4955
+ * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'.
4754
4956
  * @example ```"pending"```
4755
4957
  */
4756
- status?: 'expired' | 'pending' | 'active' | 'inactive' | 'disabled' | null;
4958
+ status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
4757
4959
  /**
4758
4960
  * Time at which this resource was disabled.
4759
4961
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -4849,7 +5051,7 @@ interface ExternalPromotionCreate extends ResourceCreate {
4849
5051
  sku_list_promotion_rule?: SkuListPromotionRuleRel$7 | null;
4850
5052
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$7 | null;
4851
5053
  custom_promotion_rule?: CustomPromotionRuleRel$7 | null;
4852
- sku_list?: SkuListRel$9 | null;
5054
+ sku_list?: SkuListRel$8 | null;
4853
5055
  tags?: TagRel$d[] | null;
4854
5056
  }
4855
5057
  interface ExternalPromotionUpdate extends ResourceUpdate {
@@ -4913,7 +5115,7 @@ interface ExternalPromotionUpdate extends ResourceUpdate {
4913
5115
  sku_list_promotion_rule?: SkuListPromotionRuleRel$7 | null;
4914
5116
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$7 | null;
4915
5117
  custom_promotion_rule?: CustomPromotionRuleRel$7 | null;
4916
- sku_list?: SkuListRel$9 | null;
5118
+ sku_list?: SkuListRel$8 | null;
4917
5119
  tags?: TagRel$d[] | null;
4918
5120
  }
4919
5121
  declare class ExternalPromotions extends ApiResource<ExternalPromotion> {
@@ -4961,7 +5163,7 @@ type CouponCodesPromotionRuleRel$6 = ResourceRel & {
4961
5163
  type CustomPromotionRuleRel$6 = ResourceRel & {
4962
5164
  type: CustomPromotionRuleType;
4963
5165
  };
4964
- type SkuListRel$8 = ResourceRel & {
5166
+ type SkuListRel$7 = ResourceRel & {
4965
5167
  type: SkuListType;
4966
5168
  };
4967
5169
  type TagRel$c = ResourceRel & {
@@ -5016,10 +5218,10 @@ interface FixedAmountPromotion extends Resource {
5016
5218
  */
5017
5219
  active?: boolean | null;
5018
5220
  /**
5019
- * The promotion status. One of 'expired', 'pending', 'active', 'inactive', or 'disabled'.
5221
+ * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'.
5020
5222
  * @example ```"pending"```
5021
5223
  */
5022
- status?: 'expired' | 'pending' | 'active' | 'inactive' | 'disabled' | null;
5224
+ status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
5023
5225
  /**
5024
5226
  * Time at which this resource was disabled.
5025
5227
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -5110,7 +5312,7 @@ interface FixedAmountPromotionCreate extends ResourceCreate {
5110
5312
  sku_list_promotion_rule?: SkuListPromotionRuleRel$6 | null;
5111
5313
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$6 | null;
5112
5314
  custom_promotion_rule?: CustomPromotionRuleRel$6 | null;
5113
- sku_list?: SkuListRel$8 | null;
5315
+ sku_list?: SkuListRel$7 | null;
5114
5316
  tags?: TagRel$c[] | null;
5115
5317
  }
5116
5318
  interface FixedAmountPromotionUpdate extends ResourceUpdate {
@@ -5169,7 +5371,7 @@ interface FixedAmountPromotionUpdate extends ResourceUpdate {
5169
5371
  sku_list_promotion_rule?: SkuListPromotionRuleRel$6 | null;
5170
5372
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$6 | null;
5171
5373
  custom_promotion_rule?: CustomPromotionRuleRel$6 | null;
5172
- sku_list?: SkuListRel$8 | null;
5374
+ sku_list?: SkuListRel$7 | null;
5173
5375
  tags?: TagRel$c[] | null;
5174
5376
  }
5175
5377
  declare class FixedAmountPromotions extends ApiResource<FixedAmountPromotion> {
@@ -5235,7 +5437,7 @@ type CouponCodesPromotionRuleRel$5 = ResourceRel & {
5235
5437
  type CustomPromotionRuleRel$5 = ResourceRel & {
5236
5438
  type: CustomPromotionRuleType;
5237
5439
  };
5238
- type SkuListRel$7 = ResourceRel & {
5440
+ type SkuListRel$6 = ResourceRel & {
5239
5441
  type: SkuListType;
5240
5442
  };
5241
5443
  type TagRel$b = ResourceRel & {
@@ -5290,10 +5492,10 @@ interface FixedPricePromotion extends Resource {
5290
5492
  */
5291
5493
  active?: boolean | null;
5292
5494
  /**
5293
- * The promotion status. One of 'expired', 'pending', 'active', 'inactive', or 'disabled'.
5495
+ * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'.
5294
5496
  * @example ```"pending"```
5295
5497
  */
5296
- status?: 'expired' | 'pending' | 'active' | 'inactive' | 'disabled' | null;
5498
+ status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
5297
5499
  /**
5298
5500
  * Time at which this resource was disabled.
5299
5501
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -5384,7 +5586,7 @@ interface FixedPricePromotionCreate extends ResourceCreate {
5384
5586
  sku_list_promotion_rule?: SkuListPromotionRuleRel$5 | null;
5385
5587
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$5 | null;
5386
5588
  custom_promotion_rule?: CustomPromotionRuleRel$5 | null;
5387
- sku_list: SkuListRel$7;
5589
+ sku_list: SkuListRel$6;
5388
5590
  tags?: TagRel$b[] | null;
5389
5591
  }
5390
5592
  interface FixedPricePromotionUpdate extends ResourceUpdate {
@@ -5443,7 +5645,7 @@ interface FixedPricePromotionUpdate extends ResourceUpdate {
5443
5645
  sku_list_promotion_rule?: SkuListPromotionRuleRel$5 | null;
5444
5646
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$5 | null;
5445
5647
  custom_promotion_rule?: CustomPromotionRuleRel$5 | null;
5446
- sku_list?: SkuListRel$7 | null;
5648
+ sku_list?: SkuListRel$6 | null;
5447
5649
  tags?: TagRel$b[] | null;
5448
5650
  }
5449
5651
  declare class FixedPricePromotions extends ApiResource<FixedPricePromotion> {
@@ -5554,7 +5756,7 @@ type CouponCodesPromotionRuleRel$4 = ResourceRel & {
5554
5756
  type CustomPromotionRuleRel$3 = ResourceRel & {
5555
5757
  type: CustomPromotionRuleType;
5556
5758
  };
5557
- type SkuListRel$6 = ResourceRel & {
5759
+ type SkuListRel$5 = ResourceRel & {
5558
5760
  type: SkuListType;
5559
5761
  };
5560
5762
  type TagRel$a = ResourceRel & {
@@ -5609,10 +5811,10 @@ interface FreeGiftPromotion extends Resource {
5609
5811
  */
5610
5812
  active?: boolean | null;
5611
5813
  /**
5612
- * The promotion status. One of 'expired', 'pending', 'active', 'inactive', or 'disabled'.
5814
+ * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'.
5613
5815
  * @example ```"pending"```
5614
5816
  */
5615
- status?: 'expired' | 'pending' | 'active' | 'inactive' | 'disabled' | null;
5817
+ status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
5616
5818
  /**
5617
5819
  * Time at which this resource was disabled.
5618
5820
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -5693,7 +5895,7 @@ interface FreeGiftPromotionCreate extends ResourceCreate {
5693
5895
  sku_list_promotion_rule?: SkuListPromotionRuleRel$4 | null;
5694
5896
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$4 | null;
5695
5897
  custom_promotion_rule?: CustomPromotionRuleRel$3 | null;
5696
- sku_list: SkuListRel$6;
5898
+ sku_list: SkuListRel$5;
5697
5899
  tags?: TagRel$a[] | null;
5698
5900
  }
5699
5901
  interface FreeGiftPromotionUpdate extends ResourceUpdate {
@@ -5752,7 +5954,7 @@ interface FreeGiftPromotionUpdate extends ResourceUpdate {
5752
5954
  sku_list_promotion_rule?: SkuListPromotionRuleRel$4 | null;
5753
5955
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$4 | null;
5754
5956
  custom_promotion_rule?: CustomPromotionRuleRel$3 | null;
5755
- sku_list?: SkuListRel$6 | null;
5957
+ sku_list?: SkuListRel$5 | null;
5756
5958
  tags?: TagRel$a[] | null;
5757
5959
  }
5758
5960
  declare class FreeGiftPromotions extends ApiResource<FreeGiftPromotion> {
@@ -5855,7 +6057,7 @@ type CouponCodesPromotionRuleRel$2 = ResourceRel & {
5855
6057
  type CustomPromotionRuleRel$2 = ResourceRel & {
5856
6058
  type: CustomPromotionRuleType;
5857
6059
  };
5858
- type SkuListRel$5 = ResourceRel & {
6060
+ type SkuListRel$4 = ResourceRel & {
5859
6061
  type: SkuListType;
5860
6062
  };
5861
6063
  type TagRel$9 = ResourceRel & {
@@ -5910,10 +6112,10 @@ interface BuyXPayYPromotion extends Resource {
5910
6112
  */
5911
6113
  active?: boolean | null;
5912
6114
  /**
5913
- * The promotion status. One of 'expired', 'pending', 'active', 'inactive', or 'disabled'.
6115
+ * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'.
5914
6116
  * @example ```"pending"```
5915
6117
  */
5916
- status?: 'expired' | 'pending' | 'active' | 'inactive' | 'disabled' | null;
6118
+ status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
5917
6119
  /**
5918
6120
  * Time at which this resource was disabled.
5919
6121
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -6014,7 +6216,7 @@ interface BuyXPayYPromotionCreate extends ResourceCreate {
6014
6216
  sku_list_promotion_rule?: SkuListPromotionRuleRel$3 | null;
6015
6217
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$2 | null;
6016
6218
  custom_promotion_rule?: CustomPromotionRuleRel$2 | null;
6017
- sku_list: SkuListRel$5;
6219
+ sku_list: SkuListRel$4;
6018
6220
  tags?: TagRel$9[] | null;
6019
6221
  }
6020
6222
  interface BuyXPayYPromotionUpdate extends ResourceUpdate {
@@ -6083,7 +6285,7 @@ interface BuyXPayYPromotionUpdate extends ResourceUpdate {
6083
6285
  sku_list_promotion_rule?: SkuListPromotionRuleRel$3 | null;
6084
6286
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$2 | null;
6085
6287
  custom_promotion_rule?: CustomPromotionRuleRel$2 | null;
6086
- sku_list?: SkuListRel$5 | null;
6288
+ sku_list?: SkuListRel$4 | null;
6087
6289
  tags?: TagRel$9[] | null;
6088
6290
  }
6089
6291
  declare class BuyXPayYPromotions extends ApiResource<BuyXPayYPromotion> {
@@ -6136,7 +6338,7 @@ type ExternalPromotionRel$2 = ResourceRel & {
6136
6338
  type FixedAmountPromotionRel$2 = ResourceRel & {
6137
6339
  type: FixedAmountPromotionType;
6138
6340
  };
6139
- type SkuListRel$4 = ResourceRel & {
6341
+ type SkuListRel$3 = ResourceRel & {
6140
6342
  type: SkuListType;
6141
6343
  };
6142
6344
  type SkuListPromotionRuleSort = Pick<SkuListPromotionRule, 'id'> & ResourceSort;
@@ -6169,7 +6371,7 @@ interface SkuListPromotionRuleCreate extends ResourceCreate {
6169
6371
  */
6170
6372
  min_quantity?: number | null;
6171
6373
  promotion: PercentageDiscountPromotionRel$3 | FreeShippingPromotionRel$3 | BuyXPayYPromotionRel$2 | FreeGiftPromotionRel$2 | FixedPricePromotionRel$2 | ExternalPromotionRel$2 | FixedAmountPromotionRel$2;
6172
- sku_list?: SkuListRel$4 | null;
6374
+ sku_list?: SkuListRel$3 | null;
6173
6375
  }
6174
6376
  interface SkuListPromotionRuleUpdate extends ResourceUpdate {
6175
6377
  /**
@@ -6183,7 +6385,7 @@ interface SkuListPromotionRuleUpdate extends ResourceUpdate {
6183
6385
  */
6184
6386
  min_quantity?: number | null;
6185
6387
  promotion?: PercentageDiscountPromotionRel$3 | FreeShippingPromotionRel$3 | BuyXPayYPromotionRel$2 | FreeGiftPromotionRel$2 | FixedPricePromotionRel$2 | ExternalPromotionRel$2 | FixedAmountPromotionRel$2 | null;
6186
- sku_list?: SkuListRel$4 | null;
6388
+ sku_list?: SkuListRel$3 | null;
6187
6389
  }
6188
6390
  declare class SkuListPromotionRules extends ApiResource<SkuListPromotionRule> {
6189
6391
  static readonly TYPE: SkuListPromotionRuleType;
@@ -6218,7 +6420,7 @@ type CouponCodesPromotionRuleRel$1 = ResourceRel & {
6218
6420
  type CustomPromotionRuleRel$1 = ResourceRel & {
6219
6421
  type: CustomPromotionRuleType;
6220
6422
  };
6221
- type SkuListRel$3 = ResourceRel & {
6423
+ type SkuListRel$2 = ResourceRel & {
6222
6424
  type: SkuListType;
6223
6425
  };
6224
6426
  type TagRel$8 = ResourceRel & {
@@ -6273,10 +6475,10 @@ interface FreeShippingPromotion extends Resource {
6273
6475
  */
6274
6476
  active?: boolean | null;
6275
6477
  /**
6276
- * The promotion status. One of 'expired', 'pending', 'active', 'inactive', or 'disabled'.
6478
+ * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'.
6277
6479
  * @example ```"pending"```
6278
6480
  */
6279
- status?: 'expired' | 'pending' | 'active' | 'inactive' | 'disabled' | null;
6481
+ status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
6280
6482
  /**
6281
6483
  * Time at which this resource was disabled.
6282
6484
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -6346,7 +6548,7 @@ interface FreeShippingPromotionCreate extends ResourceCreate {
6346
6548
  sku_list_promotion_rule?: SkuListPromotionRuleRel$1 | null;
6347
6549
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$1 | null;
6348
6550
  custom_promotion_rule?: CustomPromotionRuleRel$1 | null;
6349
- sku_list?: SkuListRel$3 | null;
6551
+ sku_list?: SkuListRel$2 | null;
6350
6552
  tags?: TagRel$8[] | null;
6351
6553
  }
6352
6554
  interface FreeShippingPromotionUpdate extends ResourceUpdate {
@@ -6400,7 +6602,7 @@ interface FreeShippingPromotionUpdate extends ResourceUpdate {
6400
6602
  sku_list_promotion_rule?: SkuListPromotionRuleRel$1 | null;
6401
6603
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$1 | null;
6402
6604
  custom_promotion_rule?: CustomPromotionRuleRel$1 | null;
6403
- sku_list?: SkuListRel$3 | null;
6605
+ sku_list?: SkuListRel$2 | null;
6404
6606
  tags?: TagRel$8[] | null;
6405
6607
  }
6406
6608
  declare class FreeShippingPromotions extends ApiResource<FreeShippingPromotion> {
@@ -6535,7 +6737,7 @@ type CouponCodesPromotionRuleRel = ResourceRel & {
6535
6737
  type CustomPromotionRuleRel = ResourceRel & {
6536
6738
  type: CustomPromotionRuleType;
6537
6739
  };
6538
- type SkuListRel$2 = ResourceRel & {
6740
+ type SkuListRel$1 = ResourceRel & {
6539
6741
  type: SkuListType;
6540
6742
  };
6541
6743
  type TagRel$7 = ResourceRel & {
@@ -6590,10 +6792,10 @@ interface PercentageDiscountPromotion extends Resource {
6590
6792
  */
6591
6793
  active?: boolean | null;
6592
6794
  /**
6593
- * The promotion status. One of 'expired', 'pending', 'active', 'inactive', or 'disabled'.
6795
+ * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'.
6594
6796
  * @example ```"pending"```
6595
6797
  */
6596
- status?: 'expired' | 'pending' | 'active' | 'inactive' | 'disabled' | null;
6798
+ status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
6597
6799
  /**
6598
6800
  * Time at which this resource was disabled.
6599
6801
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -6674,7 +6876,7 @@ interface PercentageDiscountPromotionCreate extends ResourceCreate {
6674
6876
  sku_list_promotion_rule?: SkuListPromotionRuleRel | null;
6675
6877
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null;
6676
6878
  custom_promotion_rule?: CustomPromotionRuleRel | null;
6677
- sku_list?: SkuListRel$2 | null;
6879
+ sku_list?: SkuListRel$1 | null;
6678
6880
  tags?: TagRel$7[] | null;
6679
6881
  }
6680
6882
  interface PercentageDiscountPromotionUpdate extends ResourceUpdate {
@@ -6733,7 +6935,7 @@ interface PercentageDiscountPromotionUpdate extends ResourceUpdate {
6733
6935
  sku_list_promotion_rule?: SkuListPromotionRuleRel | null;
6734
6936
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null;
6735
6937
  custom_promotion_rule?: CustomPromotionRuleRel | null;
6736
- sku_list?: SkuListRel$2 | null;
6938
+ sku_list?: SkuListRel$1 | null;
6737
6939
  tags?: TagRel$7[] | null;
6738
6940
  }
6739
6941
  declare class PercentageDiscountPromotions extends ApiResource<PercentageDiscountPromotion> {
@@ -6765,7 +6967,7 @@ type LineItemType = 'line_items';
6765
6967
  type LineItemRel$1 = ResourceRel & {
6766
6968
  type: LineItemType;
6767
6969
  };
6768
- type OrderRel$8 = ResourceRel & {
6970
+ type OrderRel$7 = ResourceRel & {
6769
6971
  type: OrderType;
6770
6972
  };
6771
6973
  type SkuRel$8 = ResourceRel & {
@@ -7055,7 +7257,7 @@ interface LineItemCreate extends ResourceCreate {
7055
7257
  * @example ```"monthly"```
7056
7258
  */
7057
7259
  frequency?: string | null;
7058
- order: OrderRel$8;
7260
+ order: OrderRel$7;
7059
7261
  item?: SkuRel$8 | BundleRel$2 | GiftCardRel$1 | ShipmentRel$4 | PaymentMethodRel$2 | AdjustmentRel$1 | PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | null;
7060
7262
  tags?: TagRel$6[] | null;
7061
7263
  }
@@ -7338,7 +7540,7 @@ type RecurringOrderCopyType = 'recurring_order_copies';
7338
7540
  type RecurringOrderCopyRel = ResourceRel & {
7339
7541
  type: RecurringOrderCopyType;
7340
7542
  };
7341
- type OrderRel$7 = ResourceRel & {
7543
+ type OrderRel$6 = ResourceRel & {
7342
7544
  type: OrderType;
7343
7545
  };
7344
7546
  type OrderSubscriptionRel$1 = ResourceRel & {
@@ -7403,7 +7605,7 @@ interface RecurringOrderCopyCreate extends ResourceCreate {
7403
7605
  * @example ```"true"```
7404
7606
  */
7405
7607
  reuse_wallet?: boolean | null;
7406
- source_order: OrderRel$7;
7608
+ source_order: OrderRel$6;
7407
7609
  order_subscription: OrderSubscriptionRel$1;
7408
7610
  }
7409
7611
  type RecurringOrderCopyUpdate = ResourceUpdate;
@@ -7429,7 +7631,7 @@ type OrderSubscriptionRel = ResourceRel & {
7429
7631
  type MarketRel$8 = ResourceRel & {
7430
7632
  type: MarketType;
7431
7633
  };
7432
- type OrderRel$6 = ResourceRel & {
7634
+ type OrderRel$5 = ResourceRel & {
7433
7635
  type: OrderType;
7434
7636
  };
7435
7637
  type TagRel$5 = ResourceRel & {
@@ -7556,7 +7758,7 @@ interface OrderSubscriptionCreate extends ResourceCreate {
7556
7758
  */
7557
7759
  expires_at?: string | null;
7558
7760
  market?: MarketRel$8 | null;
7559
- source_order: OrderRel$6;
7761
+ source_order: OrderRel$5;
7560
7762
  tags?: TagRel$5[] | null;
7561
7763
  }
7562
7764
  interface OrderSubscriptionUpdate extends ResourceUpdate {
@@ -7753,7 +7955,7 @@ type PaymentOptionType = 'payment_options';
7753
7955
  type PaymentOptionRel$1 = ResourceRel & {
7754
7956
  type: PaymentOptionType;
7755
7957
  };
7756
- type OrderRel$5 = ResourceRel & {
7958
+ type OrderRel$4 = ResourceRel & {
7757
7959
  type: OrderType;
7758
7960
  };
7759
7961
  type PaymentOptionSort = Pick<PaymentOption, 'id' | 'name' | 'payment_source_type'> & ResourceSort;
@@ -7793,7 +7995,7 @@ interface PaymentOptionCreate extends ResourceCreate {
7793
7995
  * @example ```"[object Object]"```
7794
7996
  */
7795
7997
  data: Record<string, any>;
7796
- order: OrderRel$5;
7998
+ order: OrderRel$4;
7797
7999
  }
7798
8000
  interface PaymentOptionUpdate extends ResourceUpdate {
7799
8001
  /**
@@ -7806,7 +8008,7 @@ interface PaymentOptionUpdate extends ResourceUpdate {
7806
8008
  * @example ```"[object Object]"```
7807
8009
  */
7808
8010
  data?: Record<string, any> | null;
7809
- order?: OrderRel$5 | null;
8011
+ order?: OrderRel$4 | null;
7810
8012
  }
7811
8013
  declare class PaymentOptions extends ApiResource<PaymentOption> {
7812
8014
  static readonly TYPE: PaymentOptionType;
@@ -7825,7 +8027,7 @@ type OrderCopyType = 'order_copies';
7825
8027
  type OrderCopyRel = ResourceRel & {
7826
8028
  type: OrderCopyType;
7827
8029
  };
7828
- type OrderRel$4 = ResourceRel & {
8030
+ type OrderRel$3 = ResourceRel & {
7829
8031
  type: OrderType;
7830
8032
  };
7831
8033
  type OrderCopySort = Pick<OrderCopy, 'id' | 'status' | 'started_at' | 'completed_at' | 'failed_at' | 'errors_count'> & ResourceSort;
@@ -7897,7 +8099,7 @@ interface OrderCopyCreate extends ResourceCreate {
7897
8099
  * @example ```"true"```
7898
8100
  */
7899
8101
  cancel_source_order?: boolean | null;
7900
- source_order: OrderRel$4;
8102
+ source_order: OrderRel$3;
7901
8103
  }
7902
8104
  type OrderCopyUpdate = ResourceUpdate;
7903
8105
  declare class OrderCopies extends ApiResource<OrderCopy> {
@@ -7916,7 +8118,7 @@ declare class OrderCopies extends ApiResource<OrderCopy> {
7916
8118
  }
7917
8119
 
7918
8120
  type OrderType = 'orders';
7919
- type OrderRel$3 = ResourceRel & {
8121
+ type OrderRel$2 = ResourceRel & {
7920
8122
  type: OrderType;
7921
8123
  };
7922
8124
  type MarketRel$7 = ResourceRel & {
@@ -8366,7 +8568,7 @@ interface Order extends Resource {
8366
8568
  */
8367
8569
  formatted_duty_amount?: string | null;
8368
8570
  /**
8369
- * The total amount at place time, in cents.
8571
+ * The total amount at place time, in cents, which is used internally for editing.
8370
8572
  */
8371
8573
  place_total_amount_cents?: number | null;
8372
8574
  /**
@@ -8522,6 +8724,7 @@ interface Order extends Resource {
8522
8724
  order_copies?: OrderCopy[] | null;
8523
8725
  recurring_order_copies?: RecurringOrderCopy[] | null;
8524
8726
  attachments?: Attachment[] | null;
8727
+ links?: Link[] | null;
8525
8728
  resource_errors?: ResourceError[] | null;
8526
8729
  events?: Event[] | null;
8527
8730
  tags?: Tag[] | null;
@@ -8771,7 +8974,7 @@ interface OrderUpdate extends ResourceUpdate {
8771
8974
  */
8772
8975
  _refund?: boolean | null;
8773
8976
  /**
8774
- * Send this attribute if you want to mark as fulfilled a shipped/delivered order.
8977
+ * Send this attribute if you want to mark as fulfilled the order (shipments must be cancelled, shipped or delivered).
8775
8978
  * @example ```"true"```
8776
8979
  */
8777
8980
  _fulfill?: boolean | null;
@@ -8904,6 +9107,7 @@ declare class Orders extends ApiResource<Order> {
8904
9107
  order_copies(orderId: string | Order, params?: QueryParamsList<OrderCopy>, options?: ResourcesConfig): Promise<ListResponse<OrderCopy>>;
8905
9108
  recurring_order_copies(orderId: string | Order, params?: QueryParamsList<RecurringOrderCopy>, options?: ResourcesConfig): Promise<ListResponse<RecurringOrderCopy>>;
8906
9109
  attachments(orderId: string | Order, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
9110
+ links(orderId: string | Order, params?: QueryParamsList<Link>, options?: ResourcesConfig): Promise<ListResponse<Link>>;
8907
9111
  resource_errors(orderId: string | Order, params?: QueryParamsList<ResourceError>, options?: ResourcesConfig): Promise<ListResponse<ResourceError>>;
8908
9112
  events(orderId: string | Order, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
8909
9113
  tags(orderId: string | Order, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
@@ -8939,8 +9143,8 @@ declare class Orders extends ApiResource<Order> {
8939
9143
  _stop_editing(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
8940
9144
  _reset_circuit(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
8941
9145
  isOrder(resource: any): resource is Order;
8942
- relationship(id: string | ResourceId | null): OrderRel$3;
8943
- relationshipToMany(...ids: string[]): OrderRel$3[];
9146
+ relationship(id: string | ResourceId | null): OrderRel$2;
9147
+ relationshipToMany(...ids: string[]): OrderRel$2[];
8944
9148
  type(): OrderType;
8945
9149
  }
8946
9150
 
@@ -10263,7 +10467,7 @@ type ShipmentType = 'shipments';
10263
10467
  type ShipmentRel$2 = ResourceRel & {
10264
10468
  type: ShipmentType;
10265
10469
  };
10266
- type OrderRel$2 = ResourceRel & {
10470
+ type OrderRel$1 = ResourceRel & {
10267
10471
  type: OrderType;
10268
10472
  };
10269
10473
  type ShippingCategoryRel$2 = ResourceRel & {
@@ -10414,7 +10618,7 @@ interface Shipment extends Resource {
10414
10618
  versions?: Version[] | null;
10415
10619
  }
10416
10620
  interface ShipmentCreate extends ResourceCreate {
10417
- order: OrderRel$2;
10621
+ order: OrderRel$1;
10418
10622
  shipping_category?: ShippingCategoryRel$2 | null;
10419
10623
  inventory_stock_location: InventoryStockLocationRel;
10420
10624
  shipping_address?: AddressRel$3 | null;
@@ -10955,6 +11159,7 @@ interface Sku extends Resource {
10955
11159
  delivery_lead_times?: DeliveryLeadTime[] | null;
10956
11160
  sku_options?: SkuOption[] | null;
10957
11161
  attachments?: Attachment[] | null;
11162
+ links?: Link[] | null;
10958
11163
  events?: Event[] | null;
10959
11164
  tags?: Tag[] | null;
10960
11165
  versions?: Version[] | null;
@@ -11075,6 +11280,7 @@ declare class Skus extends ApiResource<Sku> {
11075
11280
  delivery_lead_times(skuId: string | Sku, params?: QueryParamsList<DeliveryLeadTime>, options?: ResourcesConfig): Promise<ListResponse<DeliveryLeadTime>>;
11076
11281
  sku_options(skuId: string | Sku, params?: QueryParamsList<SkuOption>, options?: ResourcesConfig): Promise<ListResponse<SkuOption>>;
11077
11282
  attachments(skuId: string | Sku, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
11283
+ links(skuId: string | Sku, params?: QueryParamsList<Link>, options?: ResourcesConfig): Promise<ListResponse<Link>>;
11078
11284
  events(skuId: string | Sku, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
11079
11285
  tags(skuId: string | Sku, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
11080
11286
  versions(skuId: string | Sku, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
@@ -11475,10 +11681,10 @@ interface PriceListScheduler extends Resource {
11475
11681
  */
11476
11682
  active?: boolean | null;
11477
11683
  /**
11478
- * The price list scheduler status. One of 'expired', 'pending', 'active', or 'disabled'.
11684
+ * The price list scheduler status. One of 'disabled', 'expired', 'pending', or 'active'.
11479
11685
  * @example ```"pending"```
11480
11686
  */
11481
- status?: 'expired' | 'pending' | 'active' | 'disabled' | null;
11687
+ status?: 'disabled' | 'expired' | 'pending' | 'active' | null;
11482
11688
  /**
11483
11689
  * Time at which this resource was disabled.
11484
11690
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -11786,10 +11992,10 @@ interface Promotion extends Resource {
11786
11992
  */
11787
11993
  active?: boolean | null;
11788
11994
  /**
11789
- * The promotion status. One of 'expired', 'pending', 'active', 'inactive', or 'disabled'.
11995
+ * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'.
11790
11996
  * @example ```"pending"```
11791
11997
  */
11792
- status?: 'expired' | 'pending' | 'active' | 'inactive' | 'disabled' | null;
11998
+ status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
11793
11999
  /**
11794
12000
  * Time at which this resource was disabled.
11795
12001
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -12469,7 +12675,7 @@ type MarketRel$3 = ResourceRel & {
12469
12675
  type CustomerGroupRel$1 = ResourceRel & {
12470
12676
  type: CustomerGroupType;
12471
12677
  };
12472
- type OrderRel$1 = ResourceRel & {
12678
+ type OrderRel = ResourceRel & {
12473
12679
  type: OrderType;
12474
12680
  };
12475
12681
  type TransactionRel = ResourceRel & {
@@ -12493,7 +12699,7 @@ type ShippingCategoryRel = ResourceRel & {
12493
12699
  type BundleRel = ResourceRel & {
12494
12700
  type: BundleType;
12495
12701
  };
12496
- type SkuListRel$1 = ResourceRel & {
12702
+ type SkuListRel = ResourceRel & {
12497
12703
  type: SkuListType;
12498
12704
  };
12499
12705
  type StockItemRel = ResourceRel & {
@@ -12601,7 +12807,7 @@ interface AttachmentCreate extends ResourceCreate {
12601
12807
  * @example ```"https://s3.yourdomain.com/attachment.pdf"```
12602
12808
  */
12603
12809
  url?: string | null;
12604
- 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;
12810
+ 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;
12605
12811
  }
12606
12812
  interface AttachmentUpdate extends ResourceUpdate {
12607
12813
  /**
@@ -12619,7 +12825,7 @@ interface AttachmentUpdate extends ResourceUpdate {
12619
12825
  * @example ```"https://s3.yourdomain.com/attachment.pdf"```
12620
12826
  */
12621
12827
  url?: string | null;
12622
- 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;
12828
+ 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;
12623
12829
  }
12624
12830
  declare class Attachments extends ApiResource<Attachment> {
12625
12831
  static readonly TYPE: AttachmentType;
@@ -13265,6 +13471,11 @@ interface AdyenGateway extends Resource {
13265
13471
  * @example ```"1797a841fbb37ca7-AdyenDemo"```
13266
13472
  */
13267
13473
  live_url_prefix: string;
13474
+ /**
13475
+ * The checkout API version, supported range is from 66 to 71, default is 71.
13476
+ * @example ```"71"```
13477
+ */
13478
+ api_version?: number | null;
13268
13479
  /**
13269
13480
  * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version.
13270
13481
  * @example ```"true"```
@@ -14567,172 +14778,6 @@ declare class KlarnaGateways extends ApiResource<KlarnaGateway> {
14567
14778
  type(): KlarnaGatewayType;
14568
14779
  }
14569
14780
 
14570
- type LinkType = 'links';
14571
- type LinkRel = ResourceRel & {
14572
- type: LinkType;
14573
- };
14574
- type OrderRel = ResourceRel & {
14575
- type: OrderType;
14576
- };
14577
- type SkuListRel = ResourceRel & {
14578
- type: SkuListType;
14579
- };
14580
- type LinkSort = Pick<Link, 'id' | 'name' | 'starts_at' | 'expires_at' | 'disabled_at'> & ResourceSort;
14581
- interface Link extends Resource {
14582
- readonly type: LinkType;
14583
- /**
14584
- * The link internal name.
14585
- * @example ```"FW SALE 2023"```
14586
- */
14587
- name: string;
14588
- /**
14589
- * The link application client id, used to fetch JWT.
14590
- * @example ```"xxxx-yyyy-zzzz"```
14591
- */
14592
- client_id: string;
14593
- /**
14594
- * The link application scope, used to fetch JWT.
14595
- * @example ```"market:GhvCxsElAQ,market:kJhgVcxZDr"```
14596
- */
14597
- scope: string;
14598
- /**
14599
- * The activation date/time of this link.
14600
- * @example ```"2018-01-01T12:00:00.000Z"```
14601
- */
14602
- starts_at: string;
14603
- /**
14604
- * The expiration date/time of this link (must be after starts_at).
14605
- * @example ```"2018-01-02T12:00:00.000Z"```
14606
- */
14607
- expires_at: string;
14608
- /**
14609
- * Indicates if the link is active (enabled and not expired).
14610
- * @example ```"true"```
14611
- */
14612
- active?: boolean | null;
14613
- /**
14614
- * The link status. One of 'expired', 'pending', 'active', or 'disabled'.
14615
- * @example ```"pending"```
14616
- */
14617
- status?: 'expired' | 'pending' | 'active' | 'disabled' | null;
14618
- /**
14619
- * The link URL second level domain.
14620
- * @example ```"c11r.link"```
14621
- */
14622
- domain?: string | null;
14623
- /**
14624
- * The link URL.
14625
- * @example ```"https://c11r.link/ZXUtd2VzdC0xLzE5ZjBlMGVlLTg4OGMtNDQ1Yi1iYTA0LTg3MTUxY2FjZjFmYQ"```
14626
- */
14627
- url?: string | null;
14628
- /**
14629
- * Time at which this resource was disabled.
14630
- * @example ```"2018-01-01T12:00:00.000Z"```
14631
- */
14632
- disabled_at?: string | null;
14633
- item?: Order | SkuList | null;
14634
- events?: Event[] | null;
14635
- }
14636
- interface LinkCreate extends ResourceCreate {
14637
- /**
14638
- * The link internal name.
14639
- * @example ```"FW SALE 2023"```
14640
- */
14641
- name: string;
14642
- /**
14643
- * The link application client id, used to fetch JWT.
14644
- * @example ```"xxxx-yyyy-zzzz"```
14645
- */
14646
- client_id: string;
14647
- /**
14648
- * The link application scope, used to fetch JWT.
14649
- * @example ```"market:GhvCxsElAQ,market:kJhgVcxZDr"```
14650
- */
14651
- scope: string;
14652
- /**
14653
- * The activation date/time of this link.
14654
- * @example ```"2018-01-01T12:00:00.000Z"```
14655
- */
14656
- starts_at: string;
14657
- /**
14658
- * The expiration date/time of this link (must be after starts_at).
14659
- * @example ```"2018-01-02T12:00:00.000Z"```
14660
- */
14661
- expires_at: string;
14662
- /**
14663
- * The link URL second level domain.
14664
- * @example ```"c11r.link"```
14665
- */
14666
- domain?: string | null;
14667
- /**
14668
- * Send this attribute if you want to mark this resource as disabled.
14669
- * @example ```"true"```
14670
- */
14671
- _disable?: boolean | null;
14672
- /**
14673
- * Send this attribute if you want to mark this resource as enabled.
14674
- * @example ```"true"```
14675
- */
14676
- _enable?: boolean | null;
14677
- item: OrderRel | SkuListRel;
14678
- }
14679
- interface LinkUpdate extends ResourceUpdate {
14680
- /**
14681
- * The link internal name.
14682
- * @example ```"FW SALE 2023"```
14683
- */
14684
- name?: string | null;
14685
- /**
14686
- * The link application client id, used to fetch JWT.
14687
- * @example ```"xxxx-yyyy-zzzz"```
14688
- */
14689
- client_id?: string | null;
14690
- /**
14691
- * The link application scope, used to fetch JWT.
14692
- * @example ```"market:GhvCxsElAQ,market:kJhgVcxZDr"```
14693
- */
14694
- scope?: string | null;
14695
- /**
14696
- * The activation date/time of this link.
14697
- * @example ```"2018-01-01T12:00:00.000Z"```
14698
- */
14699
- starts_at?: string | null;
14700
- /**
14701
- * The expiration date/time of this link (must be after starts_at).
14702
- * @example ```"2018-01-02T12:00:00.000Z"```
14703
- */
14704
- expires_at?: string | null;
14705
- /**
14706
- * The link URL second level domain.
14707
- * @example ```"c11r.link"```
14708
- */
14709
- domain?: string | null;
14710
- /**
14711
- * Send this attribute if you want to mark this resource as disabled.
14712
- * @example ```"true"```
14713
- */
14714
- _disable?: boolean | null;
14715
- /**
14716
- * Send this attribute if you want to mark this resource as enabled.
14717
- * @example ```"true"```
14718
- */
14719
- _enable?: boolean | null;
14720
- item?: OrderRel | SkuListRel | null;
14721
- }
14722
- declare class Links extends ApiResource<Link> {
14723
- static readonly TYPE: LinkType;
14724
- create(resource: LinkCreate, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link>;
14725
- update(resource: LinkUpdate, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link>;
14726
- delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
14727
- events(linkId: string | Link, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
14728
- _disable(id: string | Link, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link>;
14729
- _enable(id: string | Link, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link>;
14730
- isLink(resource: any): resource is Link;
14731
- relationship(id: string | ResourceId | null): LinkRel;
14732
- relationshipToMany(...ids: string[]): LinkRel[];
14733
- type(): LinkType;
14734
- }
14735
-
14736
14781
  type ManualGatewayType = 'manual_gateways';
14737
14782
  type ManualGatewayRel = ResourceRel & {
14738
14783
  type: ManualGatewayType;
@@ -15106,7 +15151,7 @@ type CreatableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'a
15106
15151
  type CreatableResource = Resource & {
15107
15152
  type: CreatableResourceType;
15108
15153
  };
15109
- 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' | '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';
15154
+ 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';
15110
15155
  type UpdatableResource = Resource & {
15111
15156
  type: UpdatableResourceType;
15112
15157
  };
@@ -15121,7 +15166,7 @@ type TaggableResource = Resource & {
15121
15166
  type: TagType;
15122
15167
  }> | null;
15123
15168
  };
15124
- 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';
15169
+ 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';
15125
15170
  type VersionableResource = Resource & {
15126
15171
  type: VersionableResourceType;
15127
15172
  versions?: Array<ResourceRel & {
@@ -15414,7 +15459,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
15414
15459
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
15415
15460
  declare class CommerceLayerClient {
15416
15461
  #private;
15417
- readonly openApiSchemaVersion = "6.1.0";
15462
+ readonly openApiSchemaVersion = "6.2.1";
15418
15463
  constructor(config: CommerceLayerInitConfig);
15419
15464
  get addresses(): Addresses;
15420
15465
  get adjustments(): Adjustments;
@@ -15569,4 +15614,4 @@ declare const CommerceLayerStatic: {
15569
15614
  readonly schemaVersion: string;
15570
15615
  };
15571
15616
 
15572
- 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, 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 };
15617
+ 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 };