@commercelayer/sdk 6.49.0 → 6.50.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.mts CHANGED
@@ -6082,7 +6082,7 @@ type SkuListRel$8 = ResourceRel & {
6082
6082
  type TagRel$e = ResourceRel & {
6083
6083
  type: TagType;
6084
6084
  };
6085
- 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;
6085
+ type ExternalPromotionSort = Pick<ExternalPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort;
6086
6086
  interface ExternalPromotion extends Resource {
6087
6087
  readonly type: ExternalPromotionType;
6088
6088
  /**
@@ -6125,6 +6125,10 @@ interface ExternalPromotion extends Resource {
6125
6125
  * @example ```2```
6126
6126
  */
6127
6127
  total_usage_count?: number | null;
6128
+ /**
6129
+ * Indicates if the promotion has been applied the total number of allowed times.
6130
+ */
6131
+ total_usage_reached?: boolean | null;
6128
6132
  /**
6129
6133
  * Indicates if the promotion is active (enabled and not expired).
6130
6134
  * @example ```true```
@@ -6365,7 +6369,7 @@ type SkuListRel$7 = ResourceRel & {
6365
6369
  type TagRel$d = ResourceRel & {
6366
6370
  type: TagType;
6367
6371
  };
6368
- type FixedAmountPromotionSort = Pick<FixedAmountPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at'> & ResourceSort;
6372
+ type FixedAmountPromotionSort = Pick<FixedAmountPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceSort;
6369
6373
  interface FixedAmountPromotion extends Resource {
6370
6374
  readonly type: FixedAmountPromotionType;
6371
6375
  /**
@@ -6408,6 +6412,10 @@ interface FixedAmountPromotion extends Resource {
6408
6412
  * @example ```2```
6409
6413
  */
6410
6414
  total_usage_count?: number | null;
6415
+ /**
6416
+ * Indicates if the promotion has been applied the total number of allowed times.
6417
+ */
6418
+ total_usage_reached?: boolean | null;
6411
6419
  /**
6412
6420
  * Indicates if the promotion is active (enabled and not expired).
6413
6421
  * @example ```true```
@@ -6872,7 +6880,7 @@ type SkuListRel$6 = ResourceRel & {
6872
6880
  type TagRel$b = ResourceRel & {
6873
6881
  type: TagType;
6874
6882
  };
6875
- type FixedPricePromotionSort = Pick<FixedPricePromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at'> & ResourceSort;
6883
+ type FixedPricePromotionSort = Pick<FixedPricePromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceSort;
6876
6884
  interface FixedPricePromotion extends Resource {
6877
6885
  readonly type: FixedPricePromotionType;
6878
6886
  /**
@@ -6915,6 +6923,10 @@ interface FixedPricePromotion extends Resource {
6915
6923
  * @example ```2```
6916
6924
  */
6917
6925
  total_usage_count?: number | null;
6926
+ /**
6927
+ * Indicates if the promotion has been applied the total number of allowed times.
6928
+ */
6929
+ total_usage_reached?: boolean | null;
6918
6930
  /**
6919
6931
  * Indicates if the promotion is active (enabled and not expired).
6920
6932
  * @example ```true```
@@ -7213,7 +7225,7 @@ type SkuListRel$5 = ResourceRel & {
7213
7225
  type TagRel$a = ResourceRel & {
7214
7226
  type: TagType;
7215
7227
  };
7216
- type FreeGiftPromotionSort = Pick<FreeGiftPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at'> & ResourceSort;
7228
+ type FreeGiftPromotionSort = Pick<FreeGiftPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceSort;
7217
7229
  interface FreeGiftPromotion extends Resource {
7218
7230
  readonly type: FreeGiftPromotionType;
7219
7231
  /**
@@ -7256,6 +7268,10 @@ interface FreeGiftPromotion extends Resource {
7256
7268
  * @example ```2```
7257
7269
  */
7258
7270
  total_usage_count?: number | null;
7271
+ /**
7272
+ * Indicates if the promotion has been applied the total number of allowed times.
7273
+ */
7274
+ total_usage_reached?: boolean | null;
7259
7275
  /**
7260
7276
  * Indicates if the promotion is active (enabled and not expired).
7261
7277
  * @example ```true```
@@ -7536,7 +7552,7 @@ type SkuListRel$4 = ResourceRel & {
7536
7552
  type TagRel$9 = ResourceRel & {
7537
7553
  type: TagType;
7538
7554
  };
7539
- type BuyXPayYPromotionSort = Pick<BuyXPayYPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at' | 'x' | 'y'> & ResourceSort;
7555
+ type BuyXPayYPromotionSort = Pick<BuyXPayYPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at' | 'x' | 'y'> & ResourceSort;
7540
7556
  interface BuyXPayYPromotion extends Resource {
7541
7557
  readonly type: BuyXPayYPromotionType;
7542
7558
  /**
@@ -7579,6 +7595,10 @@ interface BuyXPayYPromotion extends Resource {
7579
7595
  * @example ```2```
7580
7596
  */
7581
7597
  total_usage_count?: number | null;
7598
+ /**
7599
+ * Indicates if the promotion has been applied the total number of allowed times.
7600
+ */
7601
+ total_usage_reached?: boolean | null;
7582
7602
  /**
7583
7603
  * Indicates if the promotion is active (enabled and not expired).
7584
7604
  * @example ```true```
@@ -7921,7 +7941,7 @@ type SkuListRel$2 = ResourceRel & {
7921
7941
  type TagRel$8 = ResourceRel & {
7922
7942
  type: TagType;
7923
7943
  };
7924
- type FreeShippingPromotionSort = Pick<FreeShippingPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at'> & ResourceSort;
7944
+ type FreeShippingPromotionSort = Pick<FreeShippingPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceSort;
7925
7945
  interface FreeShippingPromotion extends Resource {
7926
7946
  readonly type: FreeShippingPromotionType;
7927
7947
  /**
@@ -7964,6 +7984,10 @@ interface FreeShippingPromotion extends Resource {
7964
7984
  * @example ```2```
7965
7985
  */
7966
7986
  total_usage_count?: number | null;
7987
+ /**
7988
+ * Indicates if the promotion has been applied the total number of allowed times.
7989
+ */
7990
+ total_usage_reached?: boolean | null;
7967
7991
  /**
7968
7992
  * Indicates if the promotion is active (enabled and not expired).
7969
7993
  * @example ```true```
@@ -8260,7 +8284,7 @@ type SkuListRel$1 = ResourceRel & {
8260
8284
  type TagRel$7 = ResourceRel & {
8261
8285
  type: TagType;
8262
8286
  };
8263
- type PercentageDiscountPromotionSort = Pick<PercentageDiscountPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at'> & ResourceSort;
8287
+ type PercentageDiscountPromotionSort = Pick<PercentageDiscountPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceSort;
8264
8288
  interface PercentageDiscountPromotion extends Resource {
8265
8289
  readonly type: PercentageDiscountPromotionType;
8266
8290
  /**
@@ -8303,6 +8327,10 @@ interface PercentageDiscountPromotion extends Resource {
8303
8327
  * @example ```2```
8304
8328
  */
8305
8329
  total_usage_count?: number | null;
8330
+ /**
8331
+ * Indicates if the promotion has been applied the total number of allowed times.
8332
+ */
8333
+ total_usage_reached?: boolean | null;
8306
8334
  /**
8307
8335
  * Indicates if the promotion is active (enabled and not expired).
8308
8336
  * @example ```true```
@@ -13295,7 +13323,7 @@ type PromotionType = 'promotions';
13295
13323
  type PromotionRel$1 = ResourceRel & {
13296
13324
  type: PromotionType;
13297
13325
  };
13298
- type PromotionSort = Pick<Promotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at'> & ResourceSort;
13326
+ type PromotionSort = Pick<Promotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceSort;
13299
13327
  interface Promotion extends Resource {
13300
13328
  readonly type: PromotionType;
13301
13329
  /**
@@ -13338,6 +13366,10 @@ interface Promotion extends Resource {
13338
13366
  * @example ```2```
13339
13367
  */
13340
13368
  total_usage_count?: number | null;
13369
+ /**
13370
+ * Indicates if the promotion has been applied the total number of allowed times.
13371
+ */
13372
+ total_usage_reached?: boolean | null;
13341
13373
  /**
13342
13374
  * Indicates if the promotion is active (enabled and not expired).
13343
13375
  * @example ```true```
@@ -17610,7 +17642,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
17610
17642
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
17611
17643
  declare class CommerceLayerClient {
17612
17644
  #private;
17613
- readonly openApiSchemaVersion = "7.9.8";
17645
+ readonly openApiSchemaVersion = "7.9.9";
17614
17646
  constructor(config: CommerceLayerInitConfig);
17615
17647
  get addresses(): Addresses;
17616
17648
  get adjustments(): Adjustments;
package/lib/index.d.ts CHANGED
@@ -6082,7 +6082,7 @@ type SkuListRel$8 = ResourceRel & {
6082
6082
  type TagRel$e = ResourceRel & {
6083
6083
  type: TagType;
6084
6084
  };
6085
- 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;
6085
+ type ExternalPromotionSort = Pick<ExternalPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort;
6086
6086
  interface ExternalPromotion extends Resource {
6087
6087
  readonly type: ExternalPromotionType;
6088
6088
  /**
@@ -6125,6 +6125,10 @@ interface ExternalPromotion extends Resource {
6125
6125
  * @example ```2```
6126
6126
  */
6127
6127
  total_usage_count?: number | null;
6128
+ /**
6129
+ * Indicates if the promotion has been applied the total number of allowed times.
6130
+ */
6131
+ total_usage_reached?: boolean | null;
6128
6132
  /**
6129
6133
  * Indicates if the promotion is active (enabled and not expired).
6130
6134
  * @example ```true```
@@ -6365,7 +6369,7 @@ type SkuListRel$7 = ResourceRel & {
6365
6369
  type TagRel$d = ResourceRel & {
6366
6370
  type: TagType;
6367
6371
  };
6368
- type FixedAmountPromotionSort = Pick<FixedAmountPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at'> & ResourceSort;
6372
+ type FixedAmountPromotionSort = Pick<FixedAmountPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceSort;
6369
6373
  interface FixedAmountPromotion extends Resource {
6370
6374
  readonly type: FixedAmountPromotionType;
6371
6375
  /**
@@ -6408,6 +6412,10 @@ interface FixedAmountPromotion extends Resource {
6408
6412
  * @example ```2```
6409
6413
  */
6410
6414
  total_usage_count?: number | null;
6415
+ /**
6416
+ * Indicates if the promotion has been applied the total number of allowed times.
6417
+ */
6418
+ total_usage_reached?: boolean | null;
6411
6419
  /**
6412
6420
  * Indicates if the promotion is active (enabled and not expired).
6413
6421
  * @example ```true```
@@ -6872,7 +6880,7 @@ type SkuListRel$6 = ResourceRel & {
6872
6880
  type TagRel$b = ResourceRel & {
6873
6881
  type: TagType;
6874
6882
  };
6875
- type FixedPricePromotionSort = Pick<FixedPricePromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at'> & ResourceSort;
6883
+ type FixedPricePromotionSort = Pick<FixedPricePromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceSort;
6876
6884
  interface FixedPricePromotion extends Resource {
6877
6885
  readonly type: FixedPricePromotionType;
6878
6886
  /**
@@ -6915,6 +6923,10 @@ interface FixedPricePromotion extends Resource {
6915
6923
  * @example ```2```
6916
6924
  */
6917
6925
  total_usage_count?: number | null;
6926
+ /**
6927
+ * Indicates if the promotion has been applied the total number of allowed times.
6928
+ */
6929
+ total_usage_reached?: boolean | null;
6918
6930
  /**
6919
6931
  * Indicates if the promotion is active (enabled and not expired).
6920
6932
  * @example ```true```
@@ -7213,7 +7225,7 @@ type SkuListRel$5 = ResourceRel & {
7213
7225
  type TagRel$a = ResourceRel & {
7214
7226
  type: TagType;
7215
7227
  };
7216
- type FreeGiftPromotionSort = Pick<FreeGiftPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at'> & ResourceSort;
7228
+ type FreeGiftPromotionSort = Pick<FreeGiftPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceSort;
7217
7229
  interface FreeGiftPromotion extends Resource {
7218
7230
  readonly type: FreeGiftPromotionType;
7219
7231
  /**
@@ -7256,6 +7268,10 @@ interface FreeGiftPromotion extends Resource {
7256
7268
  * @example ```2```
7257
7269
  */
7258
7270
  total_usage_count?: number | null;
7271
+ /**
7272
+ * Indicates if the promotion has been applied the total number of allowed times.
7273
+ */
7274
+ total_usage_reached?: boolean | null;
7259
7275
  /**
7260
7276
  * Indicates if the promotion is active (enabled and not expired).
7261
7277
  * @example ```true```
@@ -7536,7 +7552,7 @@ type SkuListRel$4 = ResourceRel & {
7536
7552
  type TagRel$9 = ResourceRel & {
7537
7553
  type: TagType;
7538
7554
  };
7539
- type BuyXPayYPromotionSort = Pick<BuyXPayYPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at' | 'x' | 'y'> & ResourceSort;
7555
+ type BuyXPayYPromotionSort = Pick<BuyXPayYPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at' | 'x' | 'y'> & ResourceSort;
7540
7556
  interface BuyXPayYPromotion extends Resource {
7541
7557
  readonly type: BuyXPayYPromotionType;
7542
7558
  /**
@@ -7579,6 +7595,10 @@ interface BuyXPayYPromotion extends Resource {
7579
7595
  * @example ```2```
7580
7596
  */
7581
7597
  total_usage_count?: number | null;
7598
+ /**
7599
+ * Indicates if the promotion has been applied the total number of allowed times.
7600
+ */
7601
+ total_usage_reached?: boolean | null;
7582
7602
  /**
7583
7603
  * Indicates if the promotion is active (enabled and not expired).
7584
7604
  * @example ```true```
@@ -7921,7 +7941,7 @@ type SkuListRel$2 = ResourceRel & {
7921
7941
  type TagRel$8 = ResourceRel & {
7922
7942
  type: TagType;
7923
7943
  };
7924
- type FreeShippingPromotionSort = Pick<FreeShippingPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at'> & ResourceSort;
7944
+ type FreeShippingPromotionSort = Pick<FreeShippingPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceSort;
7925
7945
  interface FreeShippingPromotion extends Resource {
7926
7946
  readonly type: FreeShippingPromotionType;
7927
7947
  /**
@@ -7964,6 +7984,10 @@ interface FreeShippingPromotion extends Resource {
7964
7984
  * @example ```2```
7965
7985
  */
7966
7986
  total_usage_count?: number | null;
7987
+ /**
7988
+ * Indicates if the promotion has been applied the total number of allowed times.
7989
+ */
7990
+ total_usage_reached?: boolean | null;
7967
7991
  /**
7968
7992
  * Indicates if the promotion is active (enabled and not expired).
7969
7993
  * @example ```true```
@@ -8260,7 +8284,7 @@ type SkuListRel$1 = ResourceRel & {
8260
8284
  type TagRel$7 = ResourceRel & {
8261
8285
  type: TagType;
8262
8286
  };
8263
- type PercentageDiscountPromotionSort = Pick<PercentageDiscountPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at'> & ResourceSort;
8287
+ type PercentageDiscountPromotionSort = Pick<PercentageDiscountPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceSort;
8264
8288
  interface PercentageDiscountPromotion extends Resource {
8265
8289
  readonly type: PercentageDiscountPromotionType;
8266
8290
  /**
@@ -8303,6 +8327,10 @@ interface PercentageDiscountPromotion extends Resource {
8303
8327
  * @example ```2```
8304
8328
  */
8305
8329
  total_usage_count?: number | null;
8330
+ /**
8331
+ * Indicates if the promotion has been applied the total number of allowed times.
8332
+ */
8333
+ total_usage_reached?: boolean | null;
8306
8334
  /**
8307
8335
  * Indicates if the promotion is active (enabled and not expired).
8308
8336
  * @example ```true```
@@ -13295,7 +13323,7 @@ type PromotionType = 'promotions';
13295
13323
  type PromotionRel$1 = ResourceRel & {
13296
13324
  type: PromotionType;
13297
13325
  };
13298
- type PromotionSort = Pick<Promotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at'> & ResourceSort;
13326
+ type PromotionSort = Pick<Promotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceSort;
13299
13327
  interface Promotion extends Resource {
13300
13328
  readonly type: PromotionType;
13301
13329
  /**
@@ -13338,6 +13366,10 @@ interface Promotion extends Resource {
13338
13366
  * @example ```2```
13339
13367
  */
13340
13368
  total_usage_count?: number | null;
13369
+ /**
13370
+ * Indicates if the promotion has been applied the total number of allowed times.
13371
+ */
13372
+ total_usage_reached?: boolean | null;
13341
13373
  /**
13342
13374
  * Indicates if the promotion is active (enabled and not expired).
13343
13375
  * @example ```true```
@@ -17610,7 +17642,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
17610
17642
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
17611
17643
  declare class CommerceLayerClient {
17612
17644
  #private;
17613
- readonly openApiSchemaVersion = "7.9.8";
17645
+ readonly openApiSchemaVersion = "7.9.9";
17614
17646
  constructor(config: CommerceLayerInitConfig);
17615
17647
  get addresses(): Addresses;
17616
17648
  get adjustments(): Adjustments;