@commercelayer/sdk 6.14.0 → 6.15.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
@@ -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$k = ResourceRel & {
201
+ type TagRel$l = 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$k;
234
- relationshipToMany(...ids: string[]): TagRel$k[];
233
+ relationship(id: string | ResourceId | null): TagRel$l;
234
+ relationshipToMany(...ids: string[]): TagRel$l[];
235
235
  type(): TagType;
236
236
  }
237
237
 
@@ -2334,7 +2334,7 @@ type SkuOptionRel$2 = ResourceRel & {
2334
2334
  type MarketRel$i = ResourceRel & {
2335
2335
  type: MarketType;
2336
2336
  };
2337
- type TagRel$j = ResourceRel & {
2337
+ type TagRel$k = ResourceRel & {
2338
2338
  type: TagType;
2339
2339
  };
2340
2340
  type SkuOptionSort = Pick<SkuOption, 'id' | 'name' | 'currency_code' | 'price_amount_cents' | 'delay_hours' | 'delay_days'> & ResourceSort;
@@ -2423,7 +2423,7 @@ interface SkuOptionCreate extends ResourceCreate {
2423
2423
  */
2424
2424
  sku_code_regex?: string | null;
2425
2425
  market?: MarketRel$i | null;
2426
- tags?: TagRel$j[] | null;
2426
+ tags?: TagRel$k[] | null;
2427
2427
  }
2428
2428
  interface SkuOptionUpdate extends ResourceUpdate {
2429
2429
  /**
@@ -2457,7 +2457,7 @@ interface SkuOptionUpdate extends ResourceUpdate {
2457
2457
  */
2458
2458
  sku_code_regex?: string | null;
2459
2459
  market?: MarketRel$i | null;
2460
- tags?: TagRel$j[] | null;
2460
+ tags?: TagRel$k[] | null;
2461
2461
  }
2462
2462
  declare class SkuOptions extends ApiResource<SkuOption> {
2463
2463
  static readonly TYPE: SkuOptionType;
@@ -2485,7 +2485,7 @@ type LineItemRel$4 = ResourceRel & {
2485
2485
  type SkuOptionRel$1 = ResourceRel & {
2486
2486
  type: SkuOptionType;
2487
2487
  };
2488
- type TagRel$i = ResourceRel & {
2488
+ type TagRel$j = ResourceRel & {
2489
2489
  type: TagType;
2490
2490
  };
2491
2491
  type LineItemOptionSort = Pick<LineItemOption, 'id' | 'name' | 'quantity' | 'currency_code' | 'unit_amount_cents' | 'delay_hours'> & ResourceSort;
@@ -2574,7 +2574,7 @@ interface LineItemOptionCreate extends ResourceCreate {
2574
2574
  options: Record<string, any>;
2575
2575
  line_item: LineItemRel$4;
2576
2576
  sku_option: SkuOptionRel$1;
2577
- tags?: TagRel$i[] | null;
2577
+ tags?: TagRel$j[] | null;
2578
2578
  }
2579
2579
  interface LineItemOptionUpdate extends ResourceUpdate {
2580
2580
  /**
@@ -2593,7 +2593,7 @@ interface LineItemOptionUpdate extends ResourceUpdate {
2593
2593
  */
2594
2594
  options?: Record<string, any> | null;
2595
2595
  sku_option?: SkuOptionRel$1 | null;
2596
- tags?: TagRel$i[] | null;
2596
+ tags?: TagRel$j[] | null;
2597
2597
  }
2598
2598
  declare class LineItemOptions extends ApiResource<LineItemOption> {
2599
2599
  static readonly TYPE: LineItemOptionType;
@@ -3116,7 +3116,7 @@ interface ResourceError extends Resource {
3116
3116
  * @example ```"can't be blank"```
3117
3117
  */
3118
3118
  message: string;
3119
- resource?: Resource | null;
3119
+ resource?: Order | Return | null;
3120
3120
  }
3121
3121
  declare class ResourceErrors extends ApiResource<ResourceError> {
3122
3122
  static readonly TYPE: ResourceErrorType;
@@ -3139,7 +3139,7 @@ type StockLocationRel$7 = ResourceRel & {
3139
3139
  type CaptureRel = ResourceRel & {
3140
3140
  type: CaptureType;
3141
3141
  };
3142
- type TagRel$h = ResourceRel & {
3142
+ type TagRel$i = ResourceRel & {
3143
3143
  type: TagType;
3144
3144
  };
3145
3145
  type ReturnSort = Pick<Return, 'id' | 'number' | 'status' | 'approved_at' | 'cancelled_at' | 'shipped_at' | 'rejected_at' | 'received_at' | 'refunded_at' | 'archived_at'> & ResourceSort;
@@ -3233,7 +3233,7 @@ interface ReturnCreate extends ResourceCreate {
3233
3233
  order: OrderRel$9;
3234
3234
  stock_location?: StockLocationRel$7 | null;
3235
3235
  reference_capture?: CaptureRel | null;
3236
- tags?: TagRel$h[] | null;
3236
+ tags?: TagRel$i[] | null;
3237
3237
  }
3238
3238
  interface ReturnUpdate extends ResourceUpdate {
3239
3239
  /**
@@ -3293,7 +3293,7 @@ interface ReturnUpdate extends ResourceUpdate {
3293
3293
  _refund_amount_cents?: number | null;
3294
3294
  stock_location?: StockLocationRel$7 | null;
3295
3295
  reference_capture?: CaptureRel | null;
3296
- tags?: TagRel$h[] | null;
3296
+ tags?: TagRel$i[] | null;
3297
3297
  }
3298
3298
  declare class Returns extends ApiResource<Return> {
3299
3299
  static readonly TYPE: ReturnType;
@@ -4034,7 +4034,7 @@ type MarketRel$h = ResourceRel & {
4034
4034
  type SkuListRel$9 = ResourceRel & {
4035
4035
  type: SkuListType;
4036
4036
  };
4037
- type TagRel$g = ResourceRel & {
4037
+ type TagRel$h = ResourceRel & {
4038
4038
  type: TagType;
4039
4039
  };
4040
4040
  type BundleSort = Pick<Bundle, 'id' | 'code' | 'currency_code' | 'price_amount_cents' | 'compare_at_amount_cents'> & ResourceSort;
@@ -4164,7 +4164,7 @@ interface BundleCreate extends ResourceCreate {
4164
4164
  _compute_compare_at_amount?: boolean | null;
4165
4165
  market?: MarketRel$h | null;
4166
4166
  sku_list: SkuListRel$9;
4167
- tags?: TagRel$g[] | null;
4167
+ tags?: TagRel$h[] | null;
4168
4168
  }
4169
4169
  interface BundleUpdate extends ResourceUpdate {
4170
4170
  /**
@@ -4212,7 +4212,7 @@ interface BundleUpdate extends ResourceUpdate {
4212
4212
  * @example ```"true"```
4213
4213
  */
4214
4214
  _compute_compare_at_amount?: boolean | null;
4215
- tags?: TagRel$g[] | null;
4215
+ tags?: TagRel$h[] | null;
4216
4216
  }
4217
4217
  declare class Bundles extends ApiResource<Bundle> {
4218
4218
  static readonly TYPE: BundleType;
@@ -4323,7 +4323,7 @@ type MarketRel$g = ResourceRel & {
4323
4323
  type GiftCardRecipientRel$1 = ResourceRel & {
4324
4324
  type: GiftCardRecipientType;
4325
4325
  };
4326
- type TagRel$f = ResourceRel & {
4326
+ type TagRel$g = ResourceRel & {
4327
4327
  type: TagType;
4328
4328
  };
4329
4329
  type GiftCardSort = Pick<GiftCard, 'id' | 'status' | 'currency_code' | 'balance_cents' | 'balance_max_cents' | 'expires_at'> & ResourceSort;
@@ -4487,7 +4487,7 @@ interface GiftCardCreate extends ResourceCreate {
4487
4487
  recipient_email?: string | null;
4488
4488
  market?: MarketRel$g | null;
4489
4489
  gift_card_recipient?: GiftCardRecipientRel$1 | null;
4490
- tags?: TagRel$f[] | null;
4490
+ tags?: TagRel$g[] | null;
4491
4491
  }
4492
4492
  interface GiftCardUpdate extends ResourceUpdate {
4493
4493
  /**
@@ -4556,7 +4556,7 @@ interface GiftCardUpdate extends ResourceUpdate {
4556
4556
  _balance_change_cents?: number | null;
4557
4557
  market?: MarketRel$g | null;
4558
4558
  gift_card_recipient?: GiftCardRecipientRel$1 | null;
4559
- tags?: TagRel$f[] | null;
4559
+ tags?: TagRel$g[] | null;
4560
4560
  }
4561
4561
  declare class GiftCards extends ApiResource<GiftCard> {
4562
4562
  static readonly TYPE: GiftCardType;
@@ -4757,13 +4757,13 @@ type CouponType = 'coupons';
4757
4757
  type CouponRel$1 = ResourceRel & {
4758
4758
  type: CouponType;
4759
4759
  };
4760
- type CouponCodesPromotionRuleRel$8 = ResourceRel & {
4760
+ type CouponCodesPromotionRuleRel$9 = ResourceRel & {
4761
4761
  type: CouponCodesPromotionRuleType;
4762
4762
  };
4763
4763
  type CouponRecipientRel$1 = ResourceRel & {
4764
4764
  type: CouponRecipientType;
4765
4765
  };
4766
- type TagRel$e = ResourceRel & {
4766
+ type TagRel$f = ResourceRel & {
4767
4767
  type: TagType;
4768
4768
  };
4769
4769
  type CouponSort = Pick<Coupon, 'id' | 'code' | 'customer_single_use' | 'usage_limit' | 'usage_count' | 'expires_at'> & ResourceSort;
@@ -4829,9 +4829,9 @@ interface CouponCreate extends ResourceCreate {
4829
4829
  * @example ```"2018-01-01T12:00:00.000Z"```
4830
4830
  */
4831
4831
  expires_at?: string | null;
4832
- promotion_rule: CouponCodesPromotionRuleRel$8;
4832
+ promotion_rule: CouponCodesPromotionRuleRel$9;
4833
4833
  coupon_recipient?: CouponRecipientRel$1 | null;
4834
- tags?: TagRel$e[] | null;
4834
+ tags?: TagRel$f[] | null;
4835
4835
  }
4836
4836
  interface CouponUpdate extends ResourceUpdate {
4837
4837
  /**
@@ -4858,9 +4858,9 @@ interface CouponUpdate extends ResourceUpdate {
4858
4858
  * @example ```"2018-01-01T12:00:00.000Z"```
4859
4859
  */
4860
4860
  expires_at?: string | null;
4861
- promotion_rule?: CouponCodesPromotionRuleRel$8 | null;
4861
+ promotion_rule?: CouponCodesPromotionRuleRel$9 | null;
4862
4862
  coupon_recipient?: CouponRecipientRel$1 | null;
4863
- tags?: TagRel$e[] | null;
4863
+ tags?: TagRel$f[] | null;
4864
4864
  }
4865
4865
  declare class Coupons extends ApiResource<Coupon> {
4866
4866
  static readonly TYPE: CouponType;
@@ -4891,7 +4891,7 @@ type OrderAmountPromotionRuleRel$7 = ResourceRel & {
4891
4891
  type SkuListPromotionRuleRel$7 = ResourceRel & {
4892
4892
  type: SkuListPromotionRuleType;
4893
4893
  };
4894
- type CouponCodesPromotionRuleRel$7 = ResourceRel & {
4894
+ type CouponCodesPromotionRuleRel$8 = ResourceRel & {
4895
4895
  type: CouponCodesPromotionRuleType;
4896
4896
  };
4897
4897
  type CustomPromotionRuleRel$7 = ResourceRel & {
@@ -4900,7 +4900,7 @@ type CustomPromotionRuleRel$7 = ResourceRel & {
4900
4900
  type SkuListRel$8 = ResourceRel & {
4901
4901
  type: SkuListType;
4902
4902
  };
4903
- type TagRel$d = ResourceRel & {
4903
+ type TagRel$e = ResourceRel & {
4904
4904
  type: TagType;
4905
4905
  };
4906
4906
  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;
@@ -5049,10 +5049,10 @@ interface ExternalPromotionCreate extends ResourceCreate {
5049
5049
  market?: MarketRel$f | null;
5050
5050
  order_amount_promotion_rule?: OrderAmountPromotionRuleRel$7 | null;
5051
5051
  sku_list_promotion_rule?: SkuListPromotionRuleRel$7 | null;
5052
- coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$7 | null;
5052
+ coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$8 | null;
5053
5053
  custom_promotion_rule?: CustomPromotionRuleRel$7 | null;
5054
5054
  sku_list?: SkuListRel$8 | null;
5055
- tags?: TagRel$d[] | null;
5055
+ tags?: TagRel$e[] | null;
5056
5056
  }
5057
5057
  interface ExternalPromotionUpdate extends ResourceUpdate {
5058
5058
  /**
@@ -5113,10 +5113,10 @@ interface ExternalPromotionUpdate extends ResourceUpdate {
5113
5113
  market?: MarketRel$f | null;
5114
5114
  order_amount_promotion_rule?: OrderAmountPromotionRuleRel$7 | null;
5115
5115
  sku_list_promotion_rule?: SkuListPromotionRuleRel$7 | null;
5116
- coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$7 | null;
5116
+ coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$8 | null;
5117
5117
  custom_promotion_rule?: CustomPromotionRuleRel$7 | null;
5118
5118
  sku_list?: SkuListRel$8 | null;
5119
- tags?: TagRel$d[] | null;
5119
+ tags?: TagRel$e[] | null;
5120
5120
  }
5121
5121
  declare class ExternalPromotions extends ApiResource<ExternalPromotion> {
5122
5122
  static readonly TYPE: ExternalPromotionType;
@@ -5157,7 +5157,7 @@ type OrderAmountPromotionRuleRel$6 = ResourceRel & {
5157
5157
  type SkuListPromotionRuleRel$6 = ResourceRel & {
5158
5158
  type: SkuListPromotionRuleType;
5159
5159
  };
5160
- type CouponCodesPromotionRuleRel$6 = ResourceRel & {
5160
+ type CouponCodesPromotionRuleRel$7 = ResourceRel & {
5161
5161
  type: CouponCodesPromotionRuleType;
5162
5162
  };
5163
5163
  type CustomPromotionRuleRel$6 = ResourceRel & {
@@ -5166,7 +5166,7 @@ type CustomPromotionRuleRel$6 = ResourceRel & {
5166
5166
  type SkuListRel$7 = ResourceRel & {
5167
5167
  type: SkuListType;
5168
5168
  };
5169
- type TagRel$c = ResourceRel & {
5169
+ type TagRel$d = ResourceRel & {
5170
5170
  type: TagType;
5171
5171
  };
5172
5172
  type FixedAmountPromotionSort = Pick<FixedAmountPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at'> & ResourceSort;
@@ -5310,10 +5310,10 @@ interface FixedAmountPromotionCreate extends ResourceCreate {
5310
5310
  market?: MarketRel$e | null;
5311
5311
  order_amount_promotion_rule?: OrderAmountPromotionRuleRel$6 | null;
5312
5312
  sku_list_promotion_rule?: SkuListPromotionRuleRel$6 | null;
5313
- coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$6 | null;
5313
+ coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$7 | null;
5314
5314
  custom_promotion_rule?: CustomPromotionRuleRel$6 | null;
5315
5315
  sku_list?: SkuListRel$7 | null;
5316
- tags?: TagRel$c[] | null;
5316
+ tags?: TagRel$d[] | null;
5317
5317
  }
5318
5318
  interface FixedAmountPromotionUpdate extends ResourceUpdate {
5319
5319
  /**
@@ -5369,10 +5369,10 @@ interface FixedAmountPromotionUpdate extends ResourceUpdate {
5369
5369
  market?: MarketRel$e | null;
5370
5370
  order_amount_promotion_rule?: OrderAmountPromotionRuleRel$6 | null;
5371
5371
  sku_list_promotion_rule?: SkuListPromotionRuleRel$6 | null;
5372
- coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$6 | null;
5372
+ coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$7 | null;
5373
5373
  custom_promotion_rule?: CustomPromotionRuleRel$6 | null;
5374
5374
  sku_list?: SkuListRel$7 | null;
5375
- tags?: TagRel$c[] | null;
5375
+ tags?: TagRel$d[] | null;
5376
5376
  }
5377
5377
  declare class FixedAmountPromotions extends ApiResource<FixedAmountPromotion> {
5378
5378
  static readonly TYPE: FixedAmountPromotionType;
@@ -5399,6 +5399,203 @@ declare class FixedAmountPromotions extends ApiResource<FixedAmountPromotion> {
5399
5399
  type(): FixedAmountPromotionType;
5400
5400
  }
5401
5401
 
5402
+ type FlexPromotionType = 'flex_promotions';
5403
+ type FlexPromotionRel$5 = ResourceRel & {
5404
+ type: FlexPromotionType;
5405
+ };
5406
+ type CouponCodesPromotionRuleRel$6 = ResourceRel & {
5407
+ type: CouponCodesPromotionRuleType;
5408
+ };
5409
+ type TagRel$c = ResourceRel & {
5410
+ type: TagType;
5411
+ };
5412
+ type FlexPromotionSort = Pick<FlexPromotion, 'id' | 'name' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at'> & ResourceSort;
5413
+ interface FlexPromotion extends Resource {
5414
+ readonly type: FlexPromotionType;
5415
+ /**
5416
+ * The promotion's internal name.
5417
+ * @example ```"Personal promotion"```
5418
+ */
5419
+ name: string;
5420
+ /**
5421
+ * Indicates if the promotion will be applied exclusively, based on its priority score.
5422
+ * @example ```"true"```
5423
+ */
5424
+ exclusive?: boolean | null;
5425
+ /**
5426
+ * The priority assigned to the promotion (lower means higher priority).
5427
+ * @example ```"2"```
5428
+ */
5429
+ priority?: number | null;
5430
+ /**
5431
+ * The activation date/time of this promotion.
5432
+ * @example ```"2018-01-01T12:00:00.000Z"```
5433
+ */
5434
+ starts_at: string;
5435
+ /**
5436
+ * The expiration date/time of this promotion (must be after starts_at).
5437
+ * @example ```"2018-01-02T12:00:00.000Z"```
5438
+ */
5439
+ expires_at: string;
5440
+ /**
5441
+ * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.
5442
+ * @example ```"5"```
5443
+ */
5444
+ total_usage_limit?: number | null;
5445
+ /**
5446
+ * The number of times this promotion has been applied.
5447
+ * @example ```"2"```
5448
+ */
5449
+ total_usage_count?: number | null;
5450
+ /**
5451
+ * Indicates if the promotion is active (enabled and not expired).
5452
+ * @example ```"true"```
5453
+ */
5454
+ active?: boolean | null;
5455
+ /**
5456
+ * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'.
5457
+ * @example ```"pending"```
5458
+ */
5459
+ status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
5460
+ /**
5461
+ * The discount rule to be applied.
5462
+ * @example ```"{}"```
5463
+ */
5464
+ rules: object;
5465
+ /**
5466
+ * Time at which this resource was disabled.
5467
+ * @example ```"2018-01-01T12:00:00.000Z"```
5468
+ */
5469
+ disabled_at?: string | null;
5470
+ /**
5471
+ * The rule outcomes.
5472
+ * @example ```"{}"```
5473
+ */
5474
+ rule_outcomes?: object | null;
5475
+ coupon_codes_promotion_rule?: CouponCodesPromotionRule | null;
5476
+ coupons?: Coupon[] | null;
5477
+ attachments?: Attachment[] | null;
5478
+ events?: Event[] | null;
5479
+ tags?: Tag[] | null;
5480
+ versions?: Version[] | null;
5481
+ }
5482
+ interface FlexPromotionCreate extends ResourceCreate {
5483
+ /**
5484
+ * The promotion's internal name.
5485
+ * @example ```"Personal promotion"```
5486
+ */
5487
+ name: string;
5488
+ /**
5489
+ * Indicates if the promotion will be applied exclusively, based on its priority score.
5490
+ * @example ```"true"```
5491
+ */
5492
+ exclusive?: boolean | null;
5493
+ /**
5494
+ * The priority assigned to the promotion (lower means higher priority).
5495
+ * @example ```"2"```
5496
+ */
5497
+ priority?: number | null;
5498
+ /**
5499
+ * The activation date/time of this promotion.
5500
+ * @example ```"2018-01-01T12:00:00.000Z"```
5501
+ */
5502
+ starts_at: string;
5503
+ /**
5504
+ * The expiration date/time of this promotion (must be after starts_at).
5505
+ * @example ```"2018-01-02T12:00:00.000Z"```
5506
+ */
5507
+ expires_at: string;
5508
+ /**
5509
+ * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.
5510
+ * @example ```"5"```
5511
+ */
5512
+ total_usage_limit?: number | null;
5513
+ /**
5514
+ * The discount rule to be applied.
5515
+ * @example ```"{}"```
5516
+ */
5517
+ rules: object;
5518
+ /**
5519
+ * Send this attribute if you want to mark this resource as disabled.
5520
+ * @example ```"true"```
5521
+ */
5522
+ _disable?: boolean | null;
5523
+ /**
5524
+ * Send this attribute if you want to mark this resource as enabled.
5525
+ * @example ```"true"```
5526
+ */
5527
+ _enable?: boolean | null;
5528
+ coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$6 | null;
5529
+ tags?: TagRel$c[] | null;
5530
+ }
5531
+ interface FlexPromotionUpdate extends ResourceUpdate {
5532
+ /**
5533
+ * The promotion's internal name.
5534
+ * @example ```"Personal promotion"```
5535
+ */
5536
+ name?: string | null;
5537
+ /**
5538
+ * Indicates if the promotion will be applied exclusively, based on its priority score.
5539
+ * @example ```"true"```
5540
+ */
5541
+ exclusive?: boolean | null;
5542
+ /**
5543
+ * The priority assigned to the promotion (lower means higher priority).
5544
+ * @example ```"2"```
5545
+ */
5546
+ priority?: number | null;
5547
+ /**
5548
+ * The activation date/time of this promotion.
5549
+ * @example ```"2018-01-01T12:00:00.000Z"```
5550
+ */
5551
+ starts_at?: string | null;
5552
+ /**
5553
+ * The expiration date/time of this promotion (must be after starts_at).
5554
+ * @example ```"2018-01-02T12:00:00.000Z"```
5555
+ */
5556
+ expires_at?: string | null;
5557
+ /**
5558
+ * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.
5559
+ * @example ```"5"```
5560
+ */
5561
+ total_usage_limit?: number | null;
5562
+ /**
5563
+ * The discount rule to be applied.
5564
+ * @example ```"{}"```
5565
+ */
5566
+ rules?: object | null;
5567
+ /**
5568
+ * Send this attribute if you want to mark this resource as disabled.
5569
+ * @example ```"true"```
5570
+ */
5571
+ _disable?: boolean | null;
5572
+ /**
5573
+ * Send this attribute if you want to mark this resource as enabled.
5574
+ * @example ```"true"```
5575
+ */
5576
+ _enable?: boolean | null;
5577
+ coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$6 | null;
5578
+ tags?: TagRel$c[] | null;
5579
+ }
5580
+ declare class FlexPromotions extends ApiResource<FlexPromotion> {
5581
+ static readonly TYPE: FlexPromotionType;
5582
+ create(resource: FlexPromotionCreate, params?: QueryParamsRetrieve<FlexPromotion>, options?: ResourcesConfig): Promise<FlexPromotion>;
5583
+ update(resource: FlexPromotionUpdate, params?: QueryParamsRetrieve<FlexPromotion>, options?: ResourcesConfig): Promise<FlexPromotion>;
5584
+ delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
5585
+ coupon_codes_promotion_rule(flexPromotionId: string | FlexPromotion, params?: QueryParamsRetrieve<CouponCodesPromotionRule>, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
5586
+ coupons(flexPromotionId: string | FlexPromotion, params?: QueryParamsList<Coupon>, options?: ResourcesConfig): Promise<ListResponse<Coupon>>;
5587
+ attachments(flexPromotionId: string | FlexPromotion, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
5588
+ events(flexPromotionId: string | FlexPromotion, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
5589
+ tags(flexPromotionId: string | FlexPromotion, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
5590
+ versions(flexPromotionId: string | FlexPromotion, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
5591
+ _disable(id: string | FlexPromotion, params?: QueryParamsRetrieve<FlexPromotion>, options?: ResourcesConfig): Promise<FlexPromotion>;
5592
+ _enable(id: string | FlexPromotion, params?: QueryParamsRetrieve<FlexPromotion>, options?: ResourcesConfig): Promise<FlexPromotion>;
5593
+ isFlexPromotion(resource: any): resource is FlexPromotion;
5594
+ relationship(id: string | ResourceId | null): FlexPromotionRel$5;
5595
+ relationshipToMany(...ids: string[]): FlexPromotionRel$5[];
5596
+ type(): FlexPromotionType;
5597
+ }
5598
+
5402
5599
  type PromotionRuleType = 'promotion_rules';
5403
5600
  type PromotionRuleRel = ResourceRel & {
5404
5601
  type: PromotionRuleType;
@@ -5406,7 +5603,7 @@ type PromotionRuleRel = ResourceRel & {
5406
5603
  type PromotionRuleSort = Pick<PromotionRule, 'id'> & ResourceSort;
5407
5604
  interface PromotionRule extends Resource {
5408
5605
  readonly type: PromotionRuleType;
5409
- promotion?: PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | null;
5606
+ promotion?: PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | FlexPromotion | null;
5410
5607
  versions?: Version[] | null;
5411
5608
  }
5412
5609
  declare class PromotionRules extends ApiResource<PromotionRule> {
@@ -5698,6 +5895,9 @@ type ExternalPromotionRel$4 = ResourceRel & {
5698
5895
  type FixedAmountPromotionRel$4 = ResourceRel & {
5699
5896
  type: FixedAmountPromotionType;
5700
5897
  };
5898
+ type FlexPromotionRel$4 = ResourceRel & {
5899
+ type: FlexPromotionType;
5900
+ };
5701
5901
  type CustomPromotionRuleSort = Pick<CustomPromotionRule, 'id'> & ResourceSort;
5702
5902
  interface CustomPromotionRule extends Resource {
5703
5903
  readonly type: CustomPromotionRuleType;
@@ -5706,7 +5906,7 @@ interface CustomPromotionRule extends Resource {
5706
5906
  * @example ```"[object Object]"```
5707
5907
  */
5708
5908
  filters?: Record<string, any> | null;
5709
- promotion?: PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | null;
5909
+ promotion?: PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | FlexPromotion | null;
5710
5910
  versions?: Version[] | null;
5711
5911
  }
5712
5912
  interface CustomPromotionRuleCreate extends ResourceCreate {
@@ -5715,7 +5915,7 @@ interface CustomPromotionRuleCreate extends ResourceCreate {
5715
5915
  * @example ```"[object Object]"```
5716
5916
  */
5717
5917
  filters?: Record<string, any> | null;
5718
- promotion: PercentageDiscountPromotionRel$5 | FreeShippingPromotionRel$5 | BuyXPayYPromotionRel$5 | FreeGiftPromotionRel$5 | FixedPricePromotionRel$4 | ExternalPromotionRel$4 | FixedAmountPromotionRel$4;
5918
+ promotion: PercentageDiscountPromotionRel$5 | FreeShippingPromotionRel$5 | BuyXPayYPromotionRel$5 | FreeGiftPromotionRel$5 | FixedPricePromotionRel$4 | ExternalPromotionRel$4 | FixedAmountPromotionRel$4 | FlexPromotionRel$4;
5719
5919
  }
5720
5920
  interface CustomPromotionRuleUpdate extends ResourceUpdate {
5721
5921
  /**
@@ -5723,7 +5923,7 @@ interface CustomPromotionRuleUpdate extends ResourceUpdate {
5723
5923
  * @example ```"[object Object]"```
5724
5924
  */
5725
5925
  filters?: Record<string, any> | null;
5726
- promotion?: PercentageDiscountPromotionRel$5 | FreeShippingPromotionRel$5 | BuyXPayYPromotionRel$5 | FreeGiftPromotionRel$5 | FixedPricePromotionRel$4 | ExternalPromotionRel$4 | FixedAmountPromotionRel$4 | null;
5926
+ promotion?: PercentageDiscountPromotionRel$5 | FreeShippingPromotionRel$5 | BuyXPayYPromotionRel$5 | FreeGiftPromotionRel$5 | FixedPricePromotionRel$4 | ExternalPromotionRel$4 | FixedAmountPromotionRel$4 | FlexPromotionRel$4 | null;
5727
5927
  }
5728
5928
  declare class CustomPromotionRules extends ApiResource<CustomPromotionRule> {
5729
5929
  static readonly TYPE: CustomPromotionRuleType;
@@ -6007,22 +6207,25 @@ type ExternalPromotionRel$3 = ResourceRel & {
6007
6207
  type FixedAmountPromotionRel$3 = ResourceRel & {
6008
6208
  type: FixedAmountPromotionType;
6009
6209
  };
6210
+ type FlexPromotionRel$3 = ResourceRel & {
6211
+ type: FlexPromotionType;
6212
+ };
6010
6213
  type CouponRel = ResourceRel & {
6011
6214
  type: CouponType;
6012
6215
  };
6013
6216
  type CouponCodesPromotionRuleSort = Pick<CouponCodesPromotionRule, 'id'> & ResourceSort;
6014
6217
  interface CouponCodesPromotionRule extends Resource {
6015
6218
  readonly type: CouponCodesPromotionRuleType;
6016
- promotion?: PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | null;
6219
+ promotion?: PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | FlexPromotion | null;
6017
6220
  versions?: Version[] | null;
6018
6221
  coupons?: Coupon[] | null;
6019
6222
  }
6020
6223
  interface CouponCodesPromotionRuleCreate extends ResourceCreate {
6021
- promotion: PercentageDiscountPromotionRel$4 | FreeShippingPromotionRel$4 | BuyXPayYPromotionRel$4 | FreeGiftPromotionRel$3 | FixedPricePromotionRel$3 | ExternalPromotionRel$3 | FixedAmountPromotionRel$3;
6224
+ promotion: PercentageDiscountPromotionRel$4 | FreeShippingPromotionRel$4 | BuyXPayYPromotionRel$4 | FreeGiftPromotionRel$3 | FixedPricePromotionRel$3 | ExternalPromotionRel$3 | FixedAmountPromotionRel$3 | FlexPromotionRel$3;
6022
6225
  coupons?: CouponRel[] | null;
6023
6226
  }
6024
6227
  interface CouponCodesPromotionRuleUpdate extends ResourceUpdate {
6025
- promotion?: PercentageDiscountPromotionRel$4 | FreeShippingPromotionRel$4 | BuyXPayYPromotionRel$4 | FreeGiftPromotionRel$3 | FixedPricePromotionRel$3 | ExternalPromotionRel$3 | FixedAmountPromotionRel$3 | null;
6228
+ promotion?: PercentageDiscountPromotionRel$4 | FreeShippingPromotionRel$4 | BuyXPayYPromotionRel$4 | FreeGiftPromotionRel$3 | FixedPricePromotionRel$3 | ExternalPromotionRel$3 | FixedAmountPromotionRel$3 | FlexPromotionRel$3 | null;
6026
6229
  coupons?: CouponRel[] | null;
6027
6230
  }
6028
6231
  declare class CouponCodesPromotionRules extends ApiResource<CouponCodesPromotionRule> {
@@ -6338,6 +6541,9 @@ type ExternalPromotionRel$2 = ResourceRel & {
6338
6541
  type FixedAmountPromotionRel$2 = ResourceRel & {
6339
6542
  type: FixedAmountPromotionType;
6340
6543
  };
6544
+ type FlexPromotionRel$2 = ResourceRel & {
6545
+ type: FlexPromotionType;
6546
+ };
6341
6547
  type SkuListRel$3 = ResourceRel & {
6342
6548
  type: SkuListType;
6343
6549
  };
@@ -6354,7 +6560,7 @@ interface SkuListPromotionRule extends Resource {
6354
6560
  * @example ```"3"```
6355
6561
  */
6356
6562
  min_quantity?: number | null;
6357
- promotion?: PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | null;
6563
+ promotion?: PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | FlexPromotion | null;
6358
6564
  versions?: Version[] | null;
6359
6565
  sku_list?: SkuList | null;
6360
6566
  skus?: Sku[] | null;
@@ -6370,7 +6576,7 @@ interface SkuListPromotionRuleCreate extends ResourceCreate {
6370
6576
  * @example ```"3"```
6371
6577
  */
6372
6578
  min_quantity?: number | null;
6373
- promotion: PercentageDiscountPromotionRel$3 | FreeShippingPromotionRel$3 | BuyXPayYPromotionRel$2 | FreeGiftPromotionRel$2 | FixedPricePromotionRel$2 | ExternalPromotionRel$2 | FixedAmountPromotionRel$2;
6579
+ promotion: PercentageDiscountPromotionRel$3 | FreeShippingPromotionRel$3 | BuyXPayYPromotionRel$2 | FreeGiftPromotionRel$2 | FixedPricePromotionRel$2 | ExternalPromotionRel$2 | FixedAmountPromotionRel$2 | FlexPromotionRel$2;
6374
6580
  sku_list?: SkuListRel$3 | null;
6375
6581
  }
6376
6582
  interface SkuListPromotionRuleUpdate extends ResourceUpdate {
@@ -6384,7 +6590,7 @@ interface SkuListPromotionRuleUpdate extends ResourceUpdate {
6384
6590
  * @example ```"3"```
6385
6591
  */
6386
6592
  min_quantity?: number | null;
6387
- promotion?: PercentageDiscountPromotionRel$3 | FreeShippingPromotionRel$3 | BuyXPayYPromotionRel$2 | FreeGiftPromotionRel$2 | FixedPricePromotionRel$2 | ExternalPromotionRel$2 | FixedAmountPromotionRel$2 | null;
6593
+ promotion?: PercentageDiscountPromotionRel$3 | FreeShippingPromotionRel$3 | BuyXPayYPromotionRel$2 | FreeGiftPromotionRel$2 | FixedPricePromotionRel$2 | ExternalPromotionRel$2 | FixedAmountPromotionRel$2 | FlexPromotionRel$2 | null;
6388
6594
  sku_list?: SkuListRel$3 | null;
6389
6595
  }
6390
6596
  declare class SkuListPromotionRules extends ApiResource<SkuListPromotionRule> {
@@ -6654,6 +6860,9 @@ type ExternalPromotionRel$1 = ResourceRel & {
6654
6860
  type FixedAmountPromotionRel$1 = ResourceRel & {
6655
6861
  type: FixedAmountPromotionType;
6656
6862
  };
6863
+ type FlexPromotionRel$1 = ResourceRel & {
6864
+ type: FlexPromotionType;
6865
+ };
6657
6866
  type OrderAmountPromotionRuleSort = Pick<OrderAmountPromotionRule, 'id'> & ResourceSort;
6658
6867
  interface OrderAmountPromotionRule extends Resource {
6659
6868
  readonly type: OrderAmountPromotionRuleType;
@@ -6677,7 +6886,7 @@ interface OrderAmountPromotionRule extends Resource {
6677
6886
  * @example ```"true"```
6678
6887
  */
6679
6888
  use_subtotal?: boolean | null;
6680
- promotion?: PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | null;
6889
+ promotion?: PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | FlexPromotion | null;
6681
6890
  versions?: Version[] | null;
6682
6891
  }
6683
6892
  interface OrderAmountPromotionRuleCreate extends ResourceCreate {
@@ -6691,7 +6900,7 @@ interface OrderAmountPromotionRuleCreate extends ResourceCreate {
6691
6900
  * @example ```"true"```
6692
6901
  */
6693
6902
  use_subtotal?: boolean | null;
6694
- promotion: PercentageDiscountPromotionRel$2 | FreeShippingPromotionRel$1 | BuyXPayYPromotionRel$1 | FreeGiftPromotionRel$1 | FixedPricePromotionRel$1 | ExternalPromotionRel$1 | FixedAmountPromotionRel$1;
6903
+ promotion: PercentageDiscountPromotionRel$2 | FreeShippingPromotionRel$1 | BuyXPayYPromotionRel$1 | FreeGiftPromotionRel$1 | FixedPricePromotionRel$1 | ExternalPromotionRel$1 | FixedAmountPromotionRel$1 | FlexPromotionRel$1;
6695
6904
  }
6696
6905
  interface OrderAmountPromotionRuleUpdate extends ResourceUpdate {
6697
6906
  /**
@@ -6704,7 +6913,7 @@ interface OrderAmountPromotionRuleUpdate extends ResourceUpdate {
6704
6913
  * @example ```"true"```
6705
6914
  */
6706
6915
  use_subtotal?: boolean | null;
6707
- promotion?: PercentageDiscountPromotionRel$2 | FreeShippingPromotionRel$1 | BuyXPayYPromotionRel$1 | FreeGiftPromotionRel$1 | FixedPricePromotionRel$1 | ExternalPromotionRel$1 | FixedAmountPromotionRel$1 | null;
6916
+ promotion?: PercentageDiscountPromotionRel$2 | FreeShippingPromotionRel$1 | BuyXPayYPromotionRel$1 | FreeGiftPromotionRel$1 | FixedPricePromotionRel$1 | ExternalPromotionRel$1 | FixedAmountPromotionRel$1 | FlexPromotionRel$1 | null;
6708
6917
  }
6709
6918
  declare class OrderAmountPromotionRules extends ApiResource<OrderAmountPromotionRule> {
6710
6919
  static readonly TYPE: OrderAmountPromotionRuleType;
@@ -7009,6 +7218,9 @@ type ExternalPromotionRel = ResourceRel & {
7009
7218
  type FixedAmountPromotionRel = ResourceRel & {
7010
7219
  type: FixedAmountPromotionType;
7011
7220
  };
7221
+ type FlexPromotionRel = ResourceRel & {
7222
+ type: FlexPromotionType;
7223
+ };
7012
7224
  type TagRel$6 = ResourceRel & {
7013
7225
  type: TagType;
7014
7226
  };
@@ -7156,10 +7368,10 @@ interface LineItem extends Resource {
7156
7368
  */
7157
7369
  tax_breakdown?: Record<string, any> | null;
7158
7370
  /**
7159
- * The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', or 'fixed_amount_promotions'.
7371
+ * The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'.
7160
7372
  * @example ```"skus"```
7161
7373
  */
7162
- item_type?: 'skus' | 'bundles' | 'gift_cards' | 'shipments' | 'payment_methods' | 'adjustments' | 'percentage_discount_promotions' | 'free_shipping_promotions' | 'buy_x_pay_y_promotions' | 'free_gift_promotions' | 'fixed_price_promotions' | 'external_promotions' | 'fixed_amount_promotions' | null;
7374
+ item_type?: 'skus' | 'bundles' | 'gift_cards' | 'shipments' | 'payment_methods' | 'adjustments' | 'percentage_discount_promotions' | 'free_shipping_promotions' | 'buy_x_pay_y_promotions' | 'free_gift_promotions' | 'fixed_price_promotions' | 'external_promotions' | 'fixed_amount_promotions' | 'flex_promotions' | null;
7163
7375
  /**
7164
7376
  * The frequency which generates a subscription. Must be supported by existing associated subscription_model.
7165
7377
  * @example ```"monthly"```
@@ -7181,7 +7393,7 @@ interface LineItem extends Resource {
7181
7393
  */
7182
7394
  circuit_failure_count?: number | null;
7183
7395
  order?: Order | null;
7184
- item?: Sku | Bundle | GiftCard | Shipment | PaymentMethod | Adjustment | PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | null;
7396
+ item?: Sku | Bundle | GiftCard | Shipment | PaymentMethod | Adjustment | PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | FlexPromotion | null;
7185
7397
  sku?: Sku | null;
7186
7398
  bundle?: Bundle | null;
7187
7399
  adjustment?: Adjustment | null;
@@ -7248,17 +7460,17 @@ interface LineItemCreate extends ResourceCreate {
7248
7460
  */
7249
7461
  image_url?: string | null;
7250
7462
  /**
7251
- * The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', or 'fixed_amount_promotions'.
7463
+ * The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'.
7252
7464
  * @example ```"skus"```
7253
7465
  */
7254
- item_type?: 'skus' | 'bundles' | 'gift_cards' | 'shipments' | 'payment_methods' | 'adjustments' | 'percentage_discount_promotions' | 'free_shipping_promotions' | 'buy_x_pay_y_promotions' | 'free_gift_promotions' | 'fixed_price_promotions' | 'external_promotions' | 'fixed_amount_promotions' | null;
7466
+ item_type?: 'skus' | 'bundles' | 'gift_cards' | 'shipments' | 'payment_methods' | 'adjustments' | 'percentage_discount_promotions' | 'free_shipping_promotions' | 'buy_x_pay_y_promotions' | 'free_gift_promotions' | 'fixed_price_promotions' | 'external_promotions' | 'fixed_amount_promotions' | 'flex_promotions' | null;
7255
7467
  /**
7256
7468
  * The frequency which generates a subscription. Must be supported by existing associated subscription_model.
7257
7469
  * @example ```"monthly"```
7258
7470
  */
7259
7471
  frequency?: string | null;
7260
7472
  order: OrderRel$7;
7261
- item?: SkuRel$8 | BundleRel$2 | GiftCardRel$1 | ShipmentRel$4 | PaymentMethodRel$2 | AdjustmentRel$1 | PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | null;
7473
+ item?: SkuRel$8 | BundleRel$2 | GiftCardRel$1 | ShipmentRel$4 | PaymentMethodRel$2 | AdjustmentRel$1 | PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | FlexPromotionRel | null;
7262
7474
  tags?: TagRel$6[] | null;
7263
7475
  }
7264
7476
  interface LineItemUpdate extends ResourceUpdate {
@@ -11163,6 +11375,9 @@ interface Sku extends Resource {
11163
11375
  events?: Event[] | null;
11164
11376
  tags?: Tag[] | null;
11165
11377
  versions?: Version[] | null;
11378
+ jwt_customer?: Customer | null;
11379
+ jwt_markets?: Market[] | null;
11380
+ jwt_stock_locations?: StockLocation[] | null;
11166
11381
  }
11167
11382
  interface SkuCreate extends ResourceCreate {
11168
11383
  /**
@@ -11284,6 +11499,9 @@ declare class Skus extends ApiResource<Sku> {
11284
11499
  events(skuId: string | Sku, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
11285
11500
  tags(skuId: string | Sku, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
11286
11501
  versions(skuId: string | Sku, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
11502
+ jwt_customer(skuId: string | Sku, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer>;
11503
+ jwt_markets(skuId: string | Sku, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>>;
11504
+ jwt_stock_locations(skuId: string | Sku, params?: QueryParamsList<StockLocation>, options?: ResourcesConfig): Promise<ListResponse<StockLocation>>;
11287
11505
  isSku(resource: any): resource is Sku;
11288
11506
  relationship(id: string | ResourceId | null): SkuRel$4;
11289
11507
  relationshipToMany(...ids: string[]): SkuRel$4[];
@@ -11560,6 +11778,16 @@ interface Price extends Resource {
11560
11778
  * @example ```"€100,00"```
11561
11779
  */
11562
11780
  formatted_amount?: string | null;
11781
+ /**
11782
+ * The SKU price amount for the associated price list, in cents before any applied rule.
11783
+ * @example ```"10000"```
11784
+ */
11785
+ original_amount_cents?: number | null;
11786
+ /**
11787
+ * The SKU price amount for the associated price list, in cents before any applied rule, formatted.
11788
+ * @example ```"€100,00"```
11789
+ */
11790
+ formatted_original_amount?: string | null;
11563
11791
  /**
11564
11792
  * The compared price amount, in cents. Useful to display a percentage discount.
11565
11793
  * @example ```"13000"```
@@ -11575,6 +11803,16 @@ interface Price extends Resource {
11575
11803
  * @example ```"€130,00"```
11576
11804
  */
11577
11805
  formatted_compare_at_amount?: string | null;
11806
+ /**
11807
+ * The rules (using Rules Engine) to be applied.
11808
+ * @example ```"{}"```
11809
+ */
11810
+ rules?: object | null;
11811
+ /**
11812
+ * The rule outcomes.
11813
+ * @example ```"{}"```
11814
+ */
11815
+ rule_outcomes?: object | null;
11578
11816
  price_list?: PriceList | null;
11579
11817
  sku?: Sku | null;
11580
11818
  price_tiers?: PriceTier[] | null;
@@ -11602,6 +11840,11 @@ interface PriceCreate extends ResourceCreate {
11602
11840
  * @example ```"13000"```
11603
11841
  */
11604
11842
  compare_at_amount_cents?: number | null;
11843
+ /**
11844
+ * The rules (using Rules Engine) to be applied.
11845
+ * @example ```"{}"```
11846
+ */
11847
+ rules?: object | null;
11605
11848
  price_list: PriceListRel$4;
11606
11849
  sku: SkuRel$3;
11607
11850
  price_tiers?: PriceTierRel$1[] | null;
@@ -11622,6 +11865,11 @@ interface PriceUpdate extends ResourceUpdate {
11622
11865
  * @example ```"13000"```
11623
11866
  */
11624
11867
  compare_at_amount_cents?: number | null;
11868
+ /**
11869
+ * The rules (using Rules Engine) to be applied.
11870
+ * @example ```"{}"```
11871
+ */
11872
+ rules?: object | null;
11625
11873
  price_list?: PriceListRel$4 | null;
11626
11874
  sku?: SkuRel$3 | null;
11627
11875
  price_tiers?: PriceTierRel$1[] | null;
@@ -11797,6 +12045,16 @@ interface PriceList extends Resource {
11797
12045
  * @example ```"true"```
11798
12046
  */
11799
12047
  tax_included?: boolean | null;
12048
+ /**
12049
+ * The rules (using Rules Engine) to be applied.
12050
+ * @example ```"{}"```
12051
+ */
12052
+ rules?: object | null;
12053
+ /**
12054
+ * The rule outcomes.
12055
+ * @example ```"{}"```
12056
+ */
12057
+ rule_outcomes?: object | null;
11800
12058
  prices?: Price[] | null;
11801
12059
  price_list_schedulers?: PriceListScheduler[] | null;
11802
12060
  attachments?: Attachment[] | null;
@@ -11823,6 +12081,11 @@ interface PriceListCreate extends ResourceCreate {
11823
12081
  * @example ```"true"```
11824
12082
  */
11825
12083
  tax_included?: boolean | null;
12084
+ /**
12085
+ * The rules (using Rules Engine) to be applied.
12086
+ * @example ```"{}"```
12087
+ */
12088
+ rules?: object | null;
11826
12089
  }
11827
12090
  interface PriceListUpdate extends ResourceUpdate {
11828
12091
  /**
@@ -11845,6 +12108,11 @@ interface PriceListUpdate extends ResourceUpdate {
11845
12108
  * @example ```"true"```
11846
12109
  */
11847
12110
  tax_included?: boolean | null;
12111
+ /**
12112
+ * The rules (using Rules Engine) to be applied.
12113
+ * @example ```"{}"```
12114
+ */
12115
+ rules?: object | null;
11848
12116
  }
11849
12117
  declare class PriceLists extends ApiResource<PriceList> {
11850
12118
  static readonly TYPE: PriceListType;
@@ -15183,8 +15451,8 @@ declare class StripeGateways extends ApiResource<StripeGateway> {
15183
15451
  type(): StripeGatewayType;
15184
15452
  }
15185
15453
 
15186
- type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'application' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'event_callbacks' | 'events' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'geocoders' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'links' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_factories' | 'order_subscription_items' | 'order_subscriptions' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_list_schedulers' | 'price_lists' | 'price_tiers' | 'price_volume_tiers' | 'prices' | 'promotion_rules' | 'promotions' | 'recurring_order_copies' | 'refunds' | 'reserved_stocks' | 'resource_errors' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_method_tiers' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'versions' | 'voids' | 'webhooks' | 'wire_transfers';
15187
- declare const resourceList: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "application", "attachments", "authorizations", "avalara_accounts", "axerve_gateways", "axerve_payments", "billing_info_validation_rules", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "buy_x_pay_y_promotions", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "cleanups", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "custom_promotion_rules", "customer_addresses", "customer_groups", "customer_password_resets", "customer_payment_sources", "customer_subscriptions", "customers", "delivery_lead_times", "event_callbacks", "events", "exports", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "fixed_price_promotions", "free_gift_promotions", "free_shipping_promotions", "geocoders", "gift_card_recipients", "gift_cards", "google_geocoders", "imports", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "klarna_gateways", "klarna_payments", "line_item_options", "line_items", "links", "manual_gateways", "manual_tax_calculators", "markets", "merchants", "order_amount_promotion_rules", "order_copies", "order_factories", "order_subscription_items", "order_subscriptions", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "payment_options", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_frequency_tiers", "price_list_schedulers", "price_lists", "price_tiers", "price_volume_tiers", "prices", "promotion_rules", "promotions", "recurring_order_copies", "refunds", "reserved_stocks", "resource_errors", "return_line_items", "returns", "satispay_gateways", "satispay_payments", "shipments", "shipping_categories", "shipping_method_tiers", "shipping_methods", "shipping_weight_tiers", "shipping_zones", "sku_list_items", "sku_list_promotion_rules", "sku_lists", "sku_options", "skus", "stock_items", "stock_line_items", "stock_locations", "stock_reservations", "stock_transfers", "stripe_gateways", "stripe_payments", "subscription_models", "tags", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "versions", "voids", "webhooks", "wire_transfers"];
15454
+ type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'application' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'event_callbacks' | 'events' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'flex_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'geocoders' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'links' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_factories' | 'order_subscription_items' | 'order_subscriptions' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_list_schedulers' | 'price_lists' | 'price_tiers' | 'price_volume_tiers' | 'prices' | 'promotion_rules' | 'promotions' | 'recurring_order_copies' | 'refunds' | 'reserved_stocks' | 'resource_errors' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_method_tiers' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'versions' | 'voids' | 'webhooks' | 'wire_transfers';
15455
+ declare const resourceList: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "application", "attachments", "authorizations", "avalara_accounts", "axerve_gateways", "axerve_payments", "billing_info_validation_rules", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "buy_x_pay_y_promotions", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "cleanups", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "custom_promotion_rules", "customer_addresses", "customer_groups", "customer_password_resets", "customer_payment_sources", "customer_subscriptions", "customers", "delivery_lead_times", "event_callbacks", "events", "exports", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "fixed_price_promotions", "flex_promotions", "free_gift_promotions", "free_shipping_promotions", "geocoders", "gift_card_recipients", "gift_cards", "google_geocoders", "imports", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "klarna_gateways", "klarna_payments", "line_item_options", "line_items", "links", "manual_gateways", "manual_tax_calculators", "markets", "merchants", "order_amount_promotion_rules", "order_copies", "order_factories", "order_subscription_items", "order_subscriptions", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "payment_options", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_frequency_tiers", "price_list_schedulers", "price_lists", "price_tiers", "price_volume_tiers", "prices", "promotion_rules", "promotions", "recurring_order_copies", "refunds", "reserved_stocks", "resource_errors", "return_line_items", "returns", "satispay_gateways", "satispay_payments", "shipments", "shipping_categories", "shipping_method_tiers", "shipping_methods", "shipping_weight_tiers", "shipping_zones", "sku_list_items", "sku_list_promotion_rules", "sku_lists", "sku_options", "skus", "stock_items", "stock_line_items", "stock_locations", "stock_reservations", "stock_transfers", "stripe_gateways", "stripe_payments", "subscription_models", "tags", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "versions", "voids", "webhooks", "wire_transfers"];
15188
15456
  declare const singletonList: readonly ["application", "organization"];
15189
15457
  type RetrievableResourceType = ResourceTypeLock;
15190
15458
  type RetrievableResource = Resource & {
@@ -15194,26 +15462,26 @@ type ListableResourceType = Exclude<ResourceTypeLock, 'application' | 'organizat
15194
15462
  type ListableResource = Resource & {
15195
15463
  type: ListableResourceType;
15196
15464
  };
15197
- type CreatableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'attachments' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'links' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscription_items' | 'order_subscriptions' | 'orders' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_list_schedulers' | 'price_lists' | 'price_volume_tiers' | 'prices' | 'recurring_order_copies' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'webhooks' | 'wire_transfers';
15465
+ type CreatableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'attachments' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'flex_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'links' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscription_items' | 'order_subscriptions' | 'orders' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_list_schedulers' | 'price_lists' | 'price_volume_tiers' | 'prices' | 'recurring_order_copies' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'webhooks' | 'wire_transfers';
15198
15466
  type CreatableResource = Resource & {
15199
15467
  type: CreatableResourceType;
15200
15468
  };
15201
- 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';
15469
+ 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' | 'flex_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';
15202
15470
  type UpdatableResource = Resource & {
15203
15471
  type: UpdatableResourceType;
15204
15472
  };
15205
- type DeletableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'attachments' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'links' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscription_items' | 'order_subscriptions' | 'orders' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_list_schedulers' | 'price_lists' | 'price_volume_tiers' | 'prices' | 'recurring_order_copies' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'webhooks' | 'wire_transfers';
15473
+ type DeletableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'attachments' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'flex_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'links' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscription_items' | 'order_subscriptions' | 'orders' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_list_schedulers' | 'price_lists' | 'price_volume_tiers' | 'prices' | 'recurring_order_copies' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'webhooks' | 'wire_transfers';
15206
15474
  type DeletableResource = Resource & {
15207
15475
  type: DeletableResourceType;
15208
15476
  };
15209
- 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';
15477
+ type TaggableResourceType = 'addresses' | 'bundles' | 'buy_x_pay_y_promotions' | 'coupons' | 'customers' | 'external_promotions' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'flex_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';
15210
15478
  type TaggableResource = Resource & {
15211
15479
  type: TaggableResourceType;
15212
15480
  tags?: Array<ResourceRel & {
15213
15481
  type: TagType;
15214
15482
  }> | null;
15215
15483
  };
15216
- 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';
15484
+ 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' | 'flex_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';
15217
15485
  type VersionableResource = Resource & {
15218
15486
  type: VersionableResourceType;
15219
15487
  versions?: Array<ResourceRel & {
@@ -15262,6 +15530,7 @@ type ResourceFields = {
15262
15530
  external_tax_calculators: ExternalTaxCalculator;
15263
15531
  fixed_amount_promotions: FixedAmountPromotion;
15264
15532
  fixed_price_promotions: FixedPricePromotion;
15533
+ flex_promotions: FlexPromotion;
15265
15534
  free_gift_promotions: FreeGiftPromotion;
15266
15535
  free_shipping_promotions: FreeShippingPromotion;
15267
15536
  geocoders: Geocoder;
@@ -15386,6 +15655,7 @@ type ResourceSortFields = {
15386
15655
  external_tax_calculators: ExternalTaxCalculatorSort;
15387
15656
  fixed_amount_promotions: FixedAmountPromotionSort;
15388
15657
  fixed_price_promotions: FixedPricePromotionSort;
15658
+ flex_promotions: FlexPromotionSort;
15389
15659
  free_gift_promotions: FreeGiftPromotionSort;
15390
15660
  free_shipping_promotions: FreeShippingPromotionSort;
15391
15661
  geocoders: GeocoderSort;
@@ -15506,7 +15776,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
15506
15776
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
15507
15777
  declare class CommerceLayerClient {
15508
15778
  #private;
15509
- readonly openApiSchemaVersion = "6.3.0";
15779
+ readonly openApiSchemaVersion = "7.0.0";
15510
15780
  constructor(config: CommerceLayerInitConfig);
15511
15781
  get addresses(): Addresses;
15512
15782
  get adjustments(): Adjustments;
@@ -15549,6 +15819,7 @@ declare class CommerceLayerClient {
15549
15819
  get external_tax_calculators(): ExternalTaxCalculators;
15550
15820
  get fixed_amount_promotions(): FixedAmountPromotions;
15551
15821
  get fixed_price_promotions(): FixedPricePromotions;
15822
+ get flex_promotions(): FlexPromotions;
15552
15823
  get free_gift_promotions(): FreeGiftPromotions;
15553
15824
  get free_shipping_promotions(): FreeShippingPromotions;
15554
15825
  get geocoders(): Geocoders;
@@ -15661,4 +15932,4 @@ declare const CommerceLayerStatic: {
15661
15932
  readonly schemaVersion: string;
15662
15933
  };
15663
15934
 
15664
- 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 };
15935
+ 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 FlexPromotion, type FlexPromotionCreate, type FlexPromotionSort, type FlexPromotionUpdate, FlexPromotions, 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 };