@commercelayer/sdk 6.11.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.mts 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[];
@@ -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
 
@@ -3829,7 +4021,7 @@ type BundleRel$3 = ResourceRel & {
3829
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 & {
@@ -3961,7 +4153,7 @@ interface BundleCreate extends ResourceCreate {
3961
4153
  */
3962
4154
  _compute_compare_at_amount?: boolean | null;
3963
4155
  market?: MarketRel$h | null;
3964
- sku_list: SkuListRel$a;
4156
+ sku_list: SkuListRel$9;
3965
4157
  tags?: TagRel$g[] | null;
3966
4158
  }
3967
4159
  interface BundleUpdate extends ResourceUpdate {
@@ -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 & {
@@ -4849,7 +5041,7 @@ interface ExternalPromotionCreate extends ResourceCreate {
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 {
@@ -4913,7 +5105,7 @@ interface ExternalPromotionUpdate extends ResourceUpdate {
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> {
@@ -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 & {
@@ -5110,7 +5302,7 @@ interface FixedAmountPromotionCreate extends ResourceCreate {
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 {
@@ -5169,7 +5361,7 @@ interface FixedAmountPromotionUpdate extends ResourceUpdate {
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> {
@@ -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 & {
@@ -5384,7 +5576,7 @@ interface FixedPricePromotionCreate extends ResourceCreate {
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 {
@@ -5443,7 +5635,7 @@ interface FixedPricePromotionUpdate extends ResourceUpdate {
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> {
@@ -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 & {
@@ -5693,7 +5885,7 @@ interface FreeGiftPromotionCreate extends ResourceCreate {
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 {
@@ -5752,7 +5944,7 @@ interface FreeGiftPromotionUpdate extends ResourceUpdate {
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> {
@@ -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 & {
@@ -6014,7 +6206,7 @@ interface BuyXPayYPromotionCreate extends ResourceCreate {
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 {
@@ -6083,7 +6275,7 @@ interface BuyXPayYPromotionUpdate extends ResourceUpdate {
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;
@@ -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 & {
@@ -6346,7 +6538,7 @@ interface FreeShippingPromotionCreate extends ResourceCreate {
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 {
@@ -6400,7 +6592,7 @@ interface FreeShippingPromotionUpdate extends ResourceUpdate {
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> {
@@ -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 & {
@@ -6674,7 +6866,7 @@ interface PercentageDiscountPromotionCreate extends ResourceCreate {
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 {
@@ -6733,7 +6925,7 @@ interface PercentageDiscountPromotionUpdate extends ResourceUpdate {
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 & {
@@ -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
  }
@@ -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;
@@ -7429,7 +7621,7 @@ type OrderSubscriptionRel = ResourceRel & {
7429
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 & {
@@ -7556,7 +7748,7 @@ interface OrderSubscriptionCreate extends ResourceCreate {
7556
7748
  */
7557
7749
  expires_at?: string | null;
7558
7750
  market?: MarketRel$8 | null;
7559
- source_order: OrderRel$6;
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,7 +8108,7 @@ 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
8114
  type MarketRel$7 = 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;
@@ -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;
@@ -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
 
@@ -10263,7 +10457,7 @@ type ShipmentType = 'shipments';
10263
10457
  type ShipmentRel$2 = ResourceRel & {
10264
10458
  type: ShipmentType;
10265
10459
  };
10266
- type OrderRel$2 = ResourceRel & {
10460
+ type OrderRel$1 = ResourceRel & {
10267
10461
  type: OrderType;
10268
10462
  };
10269
10463
  type ShippingCategoryRel$2 = ResourceRel & {
@@ -10414,7 +10608,7 @@ interface Shipment extends Resource {
10414
10608
  versions?: Version[] | null;
10415
10609
  }
10416
10610
  interface ShipmentCreate extends ResourceCreate {
10417
- order: OrderRel$2;
10611
+ order: OrderRel$1;
10418
10612
  shipping_category?: ShippingCategoryRel$2 | null;
10419
10613
  inventory_stock_location: InventoryStockLocationRel;
10420
10614
  shipping_address?: AddressRel$3 | null;
@@ -10955,6 +11149,7 @@ interface Sku extends Resource {
10955
11149
  delivery_lead_times?: DeliveryLeadTime[] | null;
10956
11150
  sku_options?: SkuOption[] | null;
10957
11151
  attachments?: Attachment[] | null;
11152
+ links?: Link[] | null;
10958
11153
  events?: Event[] | null;
10959
11154
  tags?: Tag[] | null;
10960
11155
  versions?: Version[] | null;
@@ -11075,6 +11270,7 @@ declare class Skus extends ApiResource<Sku> {
11075
11270
  delivery_lead_times(skuId: string | Sku, params?: QueryParamsList<DeliveryLeadTime>, options?: ResourcesConfig): Promise<ListResponse<DeliveryLeadTime>>;
11076
11271
  sku_options(skuId: string | Sku, params?: QueryParamsList<SkuOption>, options?: ResourcesConfig): Promise<ListResponse<SkuOption>>;
11077
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>>;
11078
11274
  events(skuId: string | Sku, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
11079
11275
  tags(skuId: string | Sku, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
11080
11276
  versions(skuId: string | Sku, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
@@ -12469,7 +12665,7 @@ type MarketRel$3 = ResourceRel & {
12469
12665
  type CustomerGroupRel$1 = ResourceRel & {
12470
12666
  type: CustomerGroupType;
12471
12667
  };
12472
- type OrderRel$1 = ResourceRel & {
12668
+ type OrderRel = ResourceRel & {
12473
12669
  type: OrderType;
12474
12670
  };
12475
12671
  type TransactionRel = ResourceRel & {
@@ -12493,7 +12689,7 @@ type ShippingCategoryRel = ResourceRel & {
12493
12689
  type BundleRel = ResourceRel & {
12494
12690
  type: BundleType;
12495
12691
  };
12496
- type SkuListRel$1 = ResourceRel & {
12692
+ type SkuListRel = ResourceRel & {
12497
12693
  type: SkuListType;
12498
12694
  };
12499
12695
  type StockItemRel = ResourceRel & {
@@ -12601,7 +12797,7 @@ interface AttachmentCreate extends ResourceCreate {
12601
12797
  * @example ```"https://s3.yourdomain.com/attachment.pdf"```
12602
12798
  */
12603
12799
  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;
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;
12605
12801
  }
12606
12802
  interface AttachmentUpdate extends ResourceUpdate {
12607
12803
  /**
@@ -12619,7 +12815,7 @@ interface AttachmentUpdate extends ResourceUpdate {
12619
12815
  * @example ```"https://s3.yourdomain.com/attachment.pdf"```
12620
12816
  */
12621
12817
  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;
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;
12623
12819
  }
12624
12820
  declare class Attachments extends ApiResource<Attachment> {
12625
12821
  static readonly TYPE: AttachmentType;
@@ -13265,6 +13461,11 @@ interface AdyenGateway extends Resource {
13265
13461
  * @example ```"1797a841fbb37ca7-AdyenDemo"```
13266
13462
  */
13267
13463
  live_url_prefix: string;
13464
+ /**
13465
+ * The checkout API version, supported range is from 66 to 71, default is 71.
13466
+ * @example ```"71"```
13467
+ */
13468
+ api_version?: number | null;
13268
13469
  /**
13269
13470
  * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version.
13270
13471
  * @example ```"true"```
@@ -14567,172 +14768,6 @@ declare class KlarnaGateways extends ApiResource<KlarnaGateway> {
14567
14768
  type(): KlarnaGatewayType;
14568
14769
  }
14569
14770
 
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
14771
  type ManualGatewayType = 'manual_gateways';
14737
14772
  type ManualGatewayRel = ResourceRel & {
14738
14773
  type: ManualGatewayType;
@@ -15106,7 +15141,7 @@ type CreatableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'a
15106
15141
  type CreatableResource = Resource & {
15107
15142
  type: CreatableResourceType;
15108
15143
  };
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';
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';
15110
15145
  type UpdatableResource = Resource & {
15111
15146
  type: UpdatableResourceType;
15112
15147
  };
@@ -15121,7 +15156,7 @@ type TaggableResource = Resource & {
15121
15156
  type: TagType;
15122
15157
  }> | null;
15123
15158
  };
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';
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';
15125
15160
  type VersionableResource = Resource & {
15126
15161
  type: VersionableResourceType;
15127
15162
  versions?: Array<ResourceRel & {
@@ -15414,7 +15449,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
15414
15449
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
15415
15450
  declare class CommerceLayerClient {
15416
15451
  #private;
15417
- readonly openApiSchemaVersion = "6.1.0";
15452
+ readonly openApiSchemaVersion = "6.2.0";
15418
15453
  constructor(config: CommerceLayerInitConfig);
15419
15454
  get addresses(): Addresses;
15420
15455
  get adjustments(): Adjustments;
@@ -15569,4 +15604,4 @@ declare const CommerceLayerStatic: {
15569
15604
  readonly schemaVersion: string;
15570
15605
  };
15571
15606
 
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 };
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 };