@commercelayer/sdk 6.27.0 → 6.28.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) [2023] [Commerce Layer]
3
+ Copyright (c) [2025] [Commerce Layer]
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/lib/index.d.mts CHANGED
@@ -5714,6 +5714,11 @@ interface FlexPromotion extends Resource {
5714
5714
  * @example ```"[object Object]"```
5715
5715
  */
5716
5716
  rule_outcomes?: Record<string, any> | null;
5717
+ /**
5718
+ * The payload used to evaluate the rules.
5719
+ * @example ```"[object Object]"```
5720
+ */
5721
+ resource_payload?: Record<string, any> | null;
5717
5722
  coupon_codes_promotion_rule?: CouponCodesPromotionRule | null;
5718
5723
  coupons?: Coupon[] | null;
5719
5724
  attachments?: Attachment[] | null;
@@ -12170,6 +12175,11 @@ interface Price extends Resource {
12170
12175
  * @example ```"[object Object]"```
12171
12176
  */
12172
12177
  rule_outcomes?: Record<string, any> | null;
12178
+ /**
12179
+ * The payload used to evaluate the rules.
12180
+ * @example ```"[object Object]"```
12181
+ */
12182
+ resource_payload?: Record<string, any> | null;
12173
12183
  /**
12174
12184
  * The custom_claim attached to the current JWT (if any).
12175
12185
  * @example ```"[object Object]"```
@@ -12417,6 +12427,11 @@ interface PriceList extends Resource {
12417
12427
  * @example ```"[object Object]"```
12418
12428
  */
12419
12429
  rule_outcomes?: Record<string, any> | null;
12430
+ /**
12431
+ * The payload used to evaluate the rules.
12432
+ * @example ```"[object Object]"```
12433
+ */
12434
+ resource_payload?: Record<string, any> | null;
12420
12435
  prices?: Price[] | null;
12421
12436
  price_list_schedulers?: PriceListScheduler[] | null;
12422
12437
  attachments?: Attachment[] | null;
@@ -16242,7 +16257,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
16242
16257
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
16243
16258
  declare class CommerceLayerClient {
16244
16259
  #private;
16245
- readonly openApiSchemaVersion = "7.6.0";
16260
+ readonly openApiSchemaVersion = "7.6.1";
16246
16261
  constructor(config: CommerceLayerInitConfig);
16247
16262
  get addresses(): Addresses;
16248
16263
  get adjustments(): Adjustments;
package/lib/index.d.ts CHANGED
@@ -5714,6 +5714,11 @@ interface FlexPromotion extends Resource {
5714
5714
  * @example ```"[object Object]"```
5715
5715
  */
5716
5716
  rule_outcomes?: Record<string, any> | null;
5717
+ /**
5718
+ * The payload used to evaluate the rules.
5719
+ * @example ```"[object Object]"```
5720
+ */
5721
+ resource_payload?: Record<string, any> | null;
5717
5722
  coupon_codes_promotion_rule?: CouponCodesPromotionRule | null;
5718
5723
  coupons?: Coupon[] | null;
5719
5724
  attachments?: Attachment[] | null;
@@ -12170,6 +12175,11 @@ interface Price extends Resource {
12170
12175
  * @example ```"[object Object]"```
12171
12176
  */
12172
12177
  rule_outcomes?: Record<string, any> | null;
12178
+ /**
12179
+ * The payload used to evaluate the rules.
12180
+ * @example ```"[object Object]"```
12181
+ */
12182
+ resource_payload?: Record<string, any> | null;
12173
12183
  /**
12174
12184
  * The custom_claim attached to the current JWT (if any).
12175
12185
  * @example ```"[object Object]"```
@@ -12417,6 +12427,11 @@ interface PriceList extends Resource {
12417
12427
  * @example ```"[object Object]"```
12418
12428
  */
12419
12429
  rule_outcomes?: Record<string, any> | null;
12430
+ /**
12431
+ * The payload used to evaluate the rules.
12432
+ * @example ```"[object Object]"```
12433
+ */
12434
+ resource_payload?: Record<string, any> | null;
12420
12435
  prices?: Price[] | null;
12421
12436
  price_list_schedulers?: PriceListScheduler[] | null;
12422
12437
  attachments?: Attachment[] | null;
@@ -16242,7 +16257,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
16242
16257
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
16243
16258
  declare class CommerceLayerClient {
16244
16259
  #private;
16245
- readonly openApiSchemaVersion = "7.6.0";
16260
+ readonly openApiSchemaVersion = "7.6.1";
16246
16261
  constructor(config: CommerceLayerInitConfig);
16247
16262
  get addresses(): Addresses;
16248
16263
  get adjustments(): Adjustments;