@commercelayer/sdk 6.7.2 → 6.8.1

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
@@ -198,7 +198,7 @@ declare abstract class ApiSingleton<R extends Resource> extends ApiResourceBase<
198
198
  }
199
199
 
200
200
  type TagType = 'tags';
201
- type TagRel$j = ResourceRel & {
201
+ type TagRel$k = ResourceRel & {
202
202
  type: TagType;
203
203
  };
204
204
  type TagSort = Pick<Tag, 'id' | 'name'> & ResourceSort;
@@ -230,8 +230,8 @@ declare class Tags extends ApiResource<Tag> {
230
230
  update(resource: TagUpdate, params?: QueryParamsRetrieve<Tag>, options?: ResourcesConfig): Promise<Tag>;
231
231
  delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
232
232
  isTag(resource: any): resource is Tag;
233
- relationship(id: string | ResourceId | null): TagRel$j;
234
- relationshipToMany(...ids: string[]): TagRel$j[];
233
+ relationship(id: string | ResourceId | null): TagRel$k;
234
+ relationshipToMany(...ids: string[]): TagRel$k[];
235
235
  type(): TagType;
236
236
  }
237
237
 
@@ -2589,7 +2589,7 @@ type CouponCodesPromotionRuleRel$8 = ResourceRel & {
2589
2589
  type CouponRecipientRel = ResourceRel & {
2590
2590
  type: CouponRecipientType;
2591
2591
  };
2592
- type TagRel$i = ResourceRel & {
2592
+ type TagRel$j = ResourceRel & {
2593
2593
  type: TagType;
2594
2594
  };
2595
2595
  type CouponSort = Pick<Coupon, 'id' | 'code' | 'customer_single_use' | 'usage_limit' | 'usage_count' | 'expires_at'> & ResourceSort;
@@ -2657,7 +2657,7 @@ interface CouponCreate extends ResourceCreate {
2657
2657
  expires_at?: string | null;
2658
2658
  promotion_rule: CouponCodesPromotionRuleRel$8;
2659
2659
  coupon_recipient?: CouponRecipientRel | null;
2660
- tags?: TagRel$i[] | null;
2660
+ tags?: TagRel$j[] | null;
2661
2661
  }
2662
2662
  interface CouponUpdate extends ResourceUpdate {
2663
2663
  /**
@@ -2686,7 +2686,7 @@ interface CouponUpdate extends ResourceUpdate {
2686
2686
  expires_at?: string | null;
2687
2687
  promotion_rule?: CouponCodesPromotionRuleRel$8 | null;
2688
2688
  coupon_recipient?: CouponRecipientRel | null;
2689
- tags?: TagRel$i[] | null;
2689
+ tags?: TagRel$j[] | null;
2690
2690
  }
2691
2691
  declare class Coupons extends ApiResource<Coupon> {
2692
2692
  static readonly TYPE: CouponType;
@@ -2726,7 +2726,7 @@ type CustomPromotionRuleRel$7 = ResourceRel & {
2726
2726
  type SkuListRel$9 = ResourceRel & {
2727
2727
  type: SkuListType;
2728
2728
  };
2729
- type TagRel$h = ResourceRel & {
2729
+ type TagRel$i = ResourceRel & {
2730
2730
  type: TagType;
2731
2731
  };
2732
2732
  type FixedPricePromotionSort = Pick<FixedPricePromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at'> & ResourceSort;
@@ -2873,7 +2873,7 @@ interface FixedPricePromotionCreate extends ResourceCreate {
2873
2873
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$7 | null;
2874
2874
  custom_promotion_rule?: CustomPromotionRuleRel$7 | null;
2875
2875
  sku_list: SkuListRel$9;
2876
- tags?: TagRel$h[] | null;
2876
+ tags?: TagRel$i[] | null;
2877
2877
  }
2878
2878
  interface FixedPricePromotionUpdate extends ResourceUpdate {
2879
2879
  /**
@@ -2932,7 +2932,7 @@ interface FixedPricePromotionUpdate extends ResourceUpdate {
2932
2932
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$7 | null;
2933
2933
  custom_promotion_rule?: CustomPromotionRuleRel$7 | null;
2934
2934
  sku_list?: SkuListRel$9 | null;
2935
- tags?: TagRel$h[] | null;
2935
+ tags?: TagRel$i[] | null;
2936
2936
  }
2937
2937
  declare class FixedPricePromotions extends ApiResource<FixedPricePromotion> {
2938
2938
  static readonly TYPE: FixedPricePromotionType;
@@ -2981,7 +2981,7 @@ type CustomPromotionRuleRel$6 = ResourceRel & {
2981
2981
  type SkuListRel$8 = ResourceRel & {
2982
2982
  type: SkuListType;
2983
2983
  };
2984
- type TagRel$g = ResourceRel & {
2984
+ type TagRel$h = ResourceRel & {
2985
2985
  type: TagType;
2986
2986
  };
2987
2987
  type FixedAmountPromotionSort = Pick<FixedAmountPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at'> & ResourceSort;
@@ -3128,7 +3128,7 @@ interface FixedAmountPromotionCreate extends ResourceCreate {
3128
3128
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$6 | null;
3129
3129
  custom_promotion_rule?: CustomPromotionRuleRel$6 | null;
3130
3130
  sku_list?: SkuListRel$8 | null;
3131
- tags?: TagRel$g[] | null;
3131
+ tags?: TagRel$h[] | null;
3132
3132
  }
3133
3133
  interface FixedAmountPromotionUpdate extends ResourceUpdate {
3134
3134
  /**
@@ -3187,7 +3187,7 @@ interface FixedAmountPromotionUpdate extends ResourceUpdate {
3187
3187
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$6 | null;
3188
3188
  custom_promotion_rule?: CustomPromotionRuleRel$6 | null;
3189
3189
  sku_list?: SkuListRel$8 | null;
3190
- tags?: TagRel$g[] | null;
3190
+ tags?: TagRel$h[] | null;
3191
3191
  }
3192
3192
  declare class FixedAmountPromotions extends ApiResource<FixedAmountPromotion> {
3193
3193
  static readonly TYPE: FixedAmountPromotionType;
@@ -3300,7 +3300,7 @@ type CustomPromotionRuleRel$4 = ResourceRel & {
3300
3300
  type SkuListRel$7 = ResourceRel & {
3301
3301
  type: SkuListType;
3302
3302
  };
3303
- type TagRel$f = ResourceRel & {
3303
+ type TagRel$g = ResourceRel & {
3304
3304
  type: TagType;
3305
3305
  };
3306
3306
  type FreeGiftPromotionSort = Pick<FreeGiftPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at'> & ResourceSort;
@@ -3437,7 +3437,7 @@ interface FreeGiftPromotionCreate extends ResourceCreate {
3437
3437
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$5 | null;
3438
3438
  custom_promotion_rule?: CustomPromotionRuleRel$4 | null;
3439
3439
  sku_list: SkuListRel$7;
3440
- tags?: TagRel$f[] | null;
3440
+ tags?: TagRel$g[] | null;
3441
3441
  }
3442
3442
  interface FreeGiftPromotionUpdate extends ResourceUpdate {
3443
3443
  /**
@@ -3496,7 +3496,7 @@ interface FreeGiftPromotionUpdate extends ResourceUpdate {
3496
3496
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$5 | null;
3497
3497
  custom_promotion_rule?: CustomPromotionRuleRel$4 | null;
3498
3498
  sku_list?: SkuListRel$7 | null;
3499
- tags?: TagRel$f[] | null;
3499
+ tags?: TagRel$g[] | null;
3500
3500
  }
3501
3501
  declare class FreeGiftPromotions extends ApiResource<FreeGiftPromotion> {
3502
3502
  static readonly TYPE: FreeGiftPromotionType;
@@ -3601,7 +3601,7 @@ type CustomPromotionRuleRel$3 = ResourceRel & {
3601
3601
  type SkuListRel$6 = ResourceRel & {
3602
3602
  type: SkuListType;
3603
3603
  };
3604
- type TagRel$e = ResourceRel & {
3604
+ type TagRel$f = ResourceRel & {
3605
3605
  type: TagType;
3606
3606
  };
3607
3607
  type BuyXPayYPromotionSort = Pick<BuyXPayYPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at' | 'x' | 'y'> & ResourceSort;
@@ -3758,7 +3758,7 @@ interface BuyXPayYPromotionCreate extends ResourceCreate {
3758
3758
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$3 | null;
3759
3759
  custom_promotion_rule?: CustomPromotionRuleRel$3 | null;
3760
3760
  sku_list: SkuListRel$6;
3761
- tags?: TagRel$e[] | null;
3761
+ tags?: TagRel$f[] | null;
3762
3762
  }
3763
3763
  interface BuyXPayYPromotionUpdate extends ResourceUpdate {
3764
3764
  /**
@@ -3827,7 +3827,7 @@ interface BuyXPayYPromotionUpdate extends ResourceUpdate {
3827
3827
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$3 | null;
3828
3828
  custom_promotion_rule?: CustomPromotionRuleRel$3 | null;
3829
3829
  sku_list?: SkuListRel$6 | null;
3830
- tags?: TagRel$e[] | null;
3830
+ tags?: TagRel$f[] | null;
3831
3831
  }
3832
3832
  declare class BuyXPayYPromotions extends ApiResource<BuyXPayYPromotion> {
3833
3833
  static readonly TYPE: BuyXPayYPromotionType;
@@ -3964,7 +3964,7 @@ type CustomPromotionRuleRel$2 = ResourceRel & {
3964
3964
  type SkuListRel$4 = ResourceRel & {
3965
3965
  type: SkuListType;
3966
3966
  };
3967
- type TagRel$d = ResourceRel & {
3967
+ type TagRel$e = ResourceRel & {
3968
3968
  type: TagType;
3969
3969
  };
3970
3970
  type FreeShippingPromotionSort = Pick<FreeShippingPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at'> & ResourceSort;
@@ -4090,7 +4090,7 @@ interface FreeShippingPromotionCreate extends ResourceCreate {
4090
4090
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$2 | null;
4091
4091
  custom_promotion_rule?: CustomPromotionRuleRel$2 | null;
4092
4092
  sku_list?: SkuListRel$4 | null;
4093
- tags?: TagRel$d[] | null;
4093
+ tags?: TagRel$e[] | null;
4094
4094
  }
4095
4095
  interface FreeShippingPromotionUpdate extends ResourceUpdate {
4096
4096
  /**
@@ -4144,7 +4144,7 @@ interface FreeShippingPromotionUpdate extends ResourceUpdate {
4144
4144
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$2 | null;
4145
4145
  custom_promotion_rule?: CustomPromotionRuleRel$2 | null;
4146
4146
  sku_list?: SkuListRel$4 | null;
4147
- tags?: TagRel$d[] | null;
4147
+ tags?: TagRel$e[] | null;
4148
4148
  }
4149
4149
  declare class FreeShippingPromotions extends ApiResource<FreeShippingPromotion> {
4150
4150
  static readonly TYPE: FreeShippingPromotionType;
@@ -4281,7 +4281,7 @@ type CustomPromotionRuleRel$1 = ResourceRel & {
4281
4281
  type SkuListRel$3 = ResourceRel & {
4282
4282
  type: SkuListType;
4283
4283
  };
4284
- type TagRel$c = ResourceRel & {
4284
+ type TagRel$d = ResourceRel & {
4285
4285
  type: TagType;
4286
4286
  };
4287
4287
  type PercentageDiscountPromotionSort = Pick<PercentageDiscountPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at'> & ResourceSort;
@@ -4418,7 +4418,7 @@ interface PercentageDiscountPromotionCreate extends ResourceCreate {
4418
4418
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$1 | null;
4419
4419
  custom_promotion_rule?: CustomPromotionRuleRel$1 | null;
4420
4420
  sku_list?: SkuListRel$3 | null;
4421
- tags?: TagRel$c[] | null;
4421
+ tags?: TagRel$d[] | null;
4422
4422
  }
4423
4423
  interface PercentageDiscountPromotionUpdate extends ResourceUpdate {
4424
4424
  /**
@@ -4477,7 +4477,7 @@ interface PercentageDiscountPromotionUpdate extends ResourceUpdate {
4477
4477
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$1 | null;
4478
4478
  custom_promotion_rule?: CustomPromotionRuleRel$1 | null;
4479
4479
  sku_list?: SkuListRel$3 | null;
4480
- tags?: TagRel$c[] | null;
4480
+ tags?: TagRel$d[] | null;
4481
4481
  }
4482
4482
  declare class PercentageDiscountPromotions extends ApiResource<PercentageDiscountPromotion> {
4483
4483
  static readonly TYPE: PercentageDiscountPromotionType;
@@ -4545,7 +4545,7 @@ type CustomPromotionRuleRel = ResourceRel & {
4545
4545
  type SkuListRel$2 = ResourceRel & {
4546
4546
  type: SkuListType;
4547
4547
  };
4548
- type TagRel$b = ResourceRel & {
4548
+ type TagRel$c = ResourceRel & {
4549
4549
  type: TagType;
4550
4550
  };
4551
4551
  type ExternalPromotionSort = Pick<ExternalPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort;
@@ -4697,7 +4697,7 @@ interface ExternalPromotionCreate extends ResourceCreate {
4697
4697
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null;
4698
4698
  custom_promotion_rule?: CustomPromotionRuleRel | null;
4699
4699
  sku_list?: SkuListRel$2 | null;
4700
- tags?: TagRel$b[] | null;
4700
+ tags?: TagRel$c[] | null;
4701
4701
  }
4702
4702
  interface ExternalPromotionUpdate extends ResourceUpdate {
4703
4703
  /**
@@ -4761,7 +4761,7 @@ interface ExternalPromotionUpdate extends ResourceUpdate {
4761
4761
  coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null;
4762
4762
  custom_promotion_rule?: CustomPromotionRuleRel | null;
4763
4763
  sku_list?: SkuListRel$2 | null;
4764
- tags?: TagRel$b[] | null;
4764
+ tags?: TagRel$c[] | null;
4765
4765
  }
4766
4766
  declare class ExternalPromotions extends ApiResource<ExternalPromotion> {
4767
4767
  static readonly TYPE: ExternalPromotionType;
@@ -4878,7 +4878,7 @@ type MarketRel$a = ResourceRel & {
4878
4878
  type GiftCardRecipientRel$1 = ResourceRel & {
4879
4879
  type: GiftCardRecipientType;
4880
4880
  };
4881
- type TagRel$a = ResourceRel & {
4881
+ type TagRel$b = ResourceRel & {
4882
4882
  type: TagType;
4883
4883
  };
4884
4884
  type GiftCardSort = Pick<GiftCard, 'id' | 'status' | 'currency_code' | 'balance_cents' | 'balance_max_cents' | 'expires_at'> & ResourceSort;
@@ -5042,7 +5042,7 @@ interface GiftCardCreate extends ResourceCreate {
5042
5042
  recipient_email?: string | null;
5043
5043
  market?: MarketRel$a | null;
5044
5044
  gift_card_recipient?: GiftCardRecipientRel$1 | null;
5045
- tags?: TagRel$a[] | null;
5045
+ tags?: TagRel$b[] | null;
5046
5046
  }
5047
5047
  interface GiftCardUpdate extends ResourceUpdate {
5048
5048
  /**
@@ -5111,7 +5111,7 @@ interface GiftCardUpdate extends ResourceUpdate {
5111
5111
  _balance_change_cents?: number | null;
5112
5112
  market?: MarketRel$a | null;
5113
5113
  gift_card_recipient?: GiftCardRecipientRel$1 | null;
5114
- tags?: TagRel$a[] | null;
5114
+ tags?: TagRel$b[] | null;
5115
5115
  }
5116
5116
  declare class GiftCards extends ApiResource<GiftCard> {
5117
5117
  static readonly TYPE: GiftCardType;
@@ -5141,7 +5141,7 @@ type SkuOptionRel$2 = ResourceRel & {
5141
5141
  type MarketRel$9 = ResourceRel & {
5142
5142
  type: MarketType;
5143
5143
  };
5144
- type TagRel$9 = ResourceRel & {
5144
+ type TagRel$a = ResourceRel & {
5145
5145
  type: TagType;
5146
5146
  };
5147
5147
  type SkuOptionSort = Pick<SkuOption, 'id' | 'name' | 'currency_code' | 'price_amount_cents' | 'delay_hours' | 'delay_days'> & ResourceSort;
@@ -5230,7 +5230,7 @@ interface SkuOptionCreate extends ResourceCreate {
5230
5230
  */
5231
5231
  sku_code_regex?: string | null;
5232
5232
  market?: MarketRel$9 | null;
5233
- tags?: TagRel$9[] | null;
5233
+ tags?: TagRel$a[] | null;
5234
5234
  }
5235
5235
  interface SkuOptionUpdate extends ResourceUpdate {
5236
5236
  /**
@@ -5264,7 +5264,7 @@ interface SkuOptionUpdate extends ResourceUpdate {
5264
5264
  */
5265
5265
  sku_code_regex?: string | null;
5266
5266
  market?: MarketRel$9 | null;
5267
- tags?: TagRel$9[] | null;
5267
+ tags?: TagRel$a[] | null;
5268
5268
  }
5269
5269
  declare class SkuOptions extends ApiResource<SkuOption> {
5270
5270
  static readonly TYPE: SkuOptionType;
@@ -5292,7 +5292,7 @@ type LineItemRel$4 = ResourceRel & {
5292
5292
  type SkuOptionRel$1 = ResourceRel & {
5293
5293
  type: SkuOptionType;
5294
5294
  };
5295
- type TagRel$8 = ResourceRel & {
5295
+ type TagRel$9 = ResourceRel & {
5296
5296
  type: TagType;
5297
5297
  };
5298
5298
  type LineItemOptionSort = Pick<LineItemOption, 'id' | 'name' | 'quantity' | 'currency_code' | 'unit_amount_cents' | 'delay_hours'> & ResourceSort;
@@ -5381,7 +5381,7 @@ interface LineItemOptionCreate extends ResourceCreate {
5381
5381
  options: Record<string, any>;
5382
5382
  line_item: LineItemRel$4;
5383
5383
  sku_option: SkuOptionRel$1;
5384
- tags?: TagRel$8[] | null;
5384
+ tags?: TagRel$9[] | null;
5385
5385
  }
5386
5386
  interface LineItemOptionUpdate extends ResourceUpdate {
5387
5387
  /**
@@ -5400,7 +5400,7 @@ interface LineItemOptionUpdate extends ResourceUpdate {
5400
5400
  */
5401
5401
  options?: Record<string, any> | null;
5402
5402
  sku_option?: SkuOptionRel$1 | null;
5403
- tags?: TagRel$8[] | null;
5403
+ tags?: TagRel$9[] | null;
5404
5404
  }
5405
5405
  declare class LineItemOptions extends ApiResource<LineItemOption> {
5406
5406
  static readonly TYPE: LineItemOptionType;
@@ -5427,7 +5427,7 @@ type OrderRel$b = ResourceRel & {
5427
5427
  type StockLocationRel$7 = ResourceRel & {
5428
5428
  type: StockLocationType;
5429
5429
  };
5430
- type TagRel$7 = ResourceRel & {
5430
+ type TagRel$8 = ResourceRel & {
5431
5431
  type: TagType;
5432
5432
  };
5433
5433
  type ReturnSort = Pick<Return, 'id' | 'number' | 'status' | 'approved_at' | 'cancelled_at' | 'shipped_at' | 'rejected_at' | 'received_at' | 'archived_at'> & ResourceSort;
@@ -5497,7 +5497,7 @@ interface Return extends Resource {
5497
5497
  interface ReturnCreate extends ResourceCreate {
5498
5498
  order: OrderRel$b;
5499
5499
  stock_location?: StockLocationRel$7 | null;
5500
- tags?: TagRel$7[] | null;
5500
+ tags?: TagRel$8[] | null;
5501
5501
  }
5502
5502
  interface ReturnUpdate extends ResourceUpdate {
5503
5503
  /**
@@ -5546,7 +5546,7 @@ interface ReturnUpdate extends ResourceUpdate {
5546
5546
  */
5547
5547
  _unarchive?: boolean | null;
5548
5548
  stock_location?: StockLocationRel$7 | null;
5549
- tags?: TagRel$7[] | null;
5549
+ tags?: TagRel$8[] | null;
5550
5550
  }
5551
5551
  declare class Returns extends ApiResource<Return> {
5552
5552
  static readonly TYPE: ReturnType;
@@ -5912,7 +5912,7 @@ type ShipmentRel$4 = ResourceRel & {
5912
5912
  type SkuRel$8 = ResourceRel & {
5913
5913
  type: SkuType;
5914
5914
  };
5915
- type TagRel$6 = ResourceRel & {
5915
+ type TagRel$7 = ResourceRel & {
5916
5916
  type: TagType;
5917
5917
  };
5918
5918
  type LineItemSort = Pick<LineItem, 'id' | 'currency_code' | 'unit_amount_cents' | 'compare_at_amount_cents' | 'options_amount_cents' | 'discount_cents' | 'total_amount_cents' | 'tax_amount_cents' | 'name' | 'item_type' | 'coupon_code' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort;
@@ -6162,7 +6162,7 @@ interface LineItemCreate extends ResourceCreate {
6162
6162
  frequency?: string | null;
6163
6163
  order: OrderRel$a;
6164
6164
  item?: AdjustmentRel$1 | BundleRel$3 | ExternalPromotionRel | FixedAmountPromotionRel | FreeShippingPromotionRel | GiftCardRel$1 | PaymentMethodRel$2 | PercentageDiscountPromotionRel | ShipmentRel$4 | SkuRel$8 | null;
6165
- tags?: TagRel$6[] | null;
6165
+ tags?: TagRel$7[] | null;
6166
6166
  }
6167
6167
  interface LineItemUpdate extends ResourceUpdate {
6168
6168
  /**
@@ -6220,7 +6220,7 @@ interface LineItemUpdate extends ResourceUpdate {
6220
6220
  * @example ```"true"```
6221
6221
  */
6222
6222
  _reset_circuit?: boolean | null;
6223
- tags?: TagRel$6[] | null;
6223
+ tags?: TagRel$7[] | null;
6224
6224
  }
6225
6225
  declare class LineItems extends ApiResource<LineItem> {
6226
6226
  static readonly TYPE: LineItemType;
@@ -6537,6 +6537,9 @@ type MarketRel$8 = ResourceRel & {
6537
6537
  type OrderRel$8 = ResourceRel & {
6538
6538
  type: OrderType;
6539
6539
  };
6540
+ type TagRel$6 = ResourceRel & {
6541
+ type: TagType;
6542
+ };
6540
6543
  type CustomerPaymentSourceRel = ResourceRel & {
6541
6544
  type: CustomerPaymentSourceType;
6542
6545
  };
@@ -6623,6 +6626,7 @@ interface OrderSubscription extends Resource {
6623
6626
  recurring_order_copies?: RecurringOrderCopy[] | null;
6624
6627
  orders?: Order[] | null;
6625
6628
  events?: Event[] | null;
6629
+ tags?: Tag[] | null;
6626
6630
  versions?: Version[] | null;
6627
6631
  }
6628
6632
  interface OrderSubscriptionCreate extends ResourceCreate {
@@ -6658,6 +6662,7 @@ interface OrderSubscriptionCreate extends ResourceCreate {
6658
6662
  expires_at?: string | null;
6659
6663
  market?: MarketRel$8 | null;
6660
6664
  source_order: OrderRel$8;
6665
+ tags?: TagRel$6[] | null;
6661
6666
  }
6662
6667
  interface OrderSubscriptionUpdate extends ResourceUpdate {
6663
6668
  /**
@@ -6711,6 +6716,7 @@ interface OrderSubscriptionUpdate extends ResourceUpdate {
6711
6716
  */
6712
6717
  _convert?: boolean | null;
6713
6718
  customer_payment_source?: CustomerPaymentSourceRel | null;
6719
+ tags?: TagRel$6[] | null;
6714
6720
  }
6715
6721
  declare class OrderSubscriptions extends ApiResource<OrderSubscription> {
6716
6722
  static readonly TYPE: OrderSubscriptionType;
@@ -6727,6 +6733,7 @@ declare class OrderSubscriptions extends ApiResource<OrderSubscription> {
6727
6733
  recurring_order_copies(orderSubscriptionId: string | OrderSubscription, params?: QueryParamsList<RecurringOrderCopy>, options?: ResourcesConfig): Promise<ListResponse<RecurringOrderCopy>>;
6728
6734
  orders(orderSubscriptionId: string | OrderSubscription, params?: QueryParamsList<Order>, options?: ResourcesConfig): Promise<ListResponse<Order>>;
6729
6735
  events(orderSubscriptionId: string | OrderSubscription, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
6736
+ tags(orderSubscriptionId: string | OrderSubscription, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
6730
6737
  versions(orderSubscriptionId: string | OrderSubscription, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
6731
6738
  _activate(id: string | OrderSubscription, params?: QueryParamsRetrieve<OrderSubscription>, options?: ResourcesConfig): Promise<OrderSubscription>;
6732
6739
  _deactivate(id: string | OrderSubscription, params?: QueryParamsRetrieve<OrderSubscription>, options?: ResourcesConfig): Promise<OrderSubscription>;
@@ -14912,7 +14919,7 @@ type DeletableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'a
14912
14919
  type DeletableResource = Resource & {
14913
14920
  type: DeletableResourceType;
14914
14921
  };
14915
- type TaggableResourceType = 'addresses' | 'bundles' | 'buy_x_pay_y_promotions' | 'coupons' | 'customers' | 'external_promotions' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'gift_cards' | 'line_item_options' | 'line_items' | 'orders' | 'percentage_discount_promotions' | 'promotions' | 'returns' | 'shipments' | 'sku_options' | 'skus';
14922
+ type TaggableResourceType = 'addresses' | 'bundles' | 'buy_x_pay_y_promotions' | 'coupons' | 'customers' | 'external_promotions' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'gift_cards' | 'line_item_options' | 'line_items' | 'order_subscriptions' | 'orders' | 'percentage_discount_promotions' | 'promotions' | 'returns' | 'shipments' | 'sku_options' | 'skus';
14916
14923
  type TaggableResource = Resource & {
14917
14924
  type: TaggableResourceType;
14918
14925
  tags?: Array<ResourceRel & {
@@ -15212,7 +15219,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
15212
15219
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
15213
15220
  declare class CommerceLayerClient {
15214
15221
  #private;
15215
- readonly openApiSchemaVersion = "5.4.1";
15222
+ readonly openApiSchemaVersion = "5.4.2";
15216
15223
  constructor(config: CommerceLayerInitConfig);
15217
15224
  get addresses(): Addresses;
15218
15225
  get adjustments(): Adjustments;