@epilot/pricing-client 3.29.0 → 3.30.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/dist/openapi.d.ts CHANGED
@@ -481,6 +481,40 @@ declare namespace Components {
481
481
  */
482
482
  _updated_at?: string;
483
483
  };
484
+ /**
485
+ * The coupons applicable to the price item
486
+ */
487
+ coupons?: (/**
488
+ * The coupon configuration
489
+ * example:
490
+ * {
491
+ * "_id": "123e4567-e89b-12d3-a456-426614174000",
492
+ * "_schema": "coupon",
493
+ * "_org": "org_12345",
494
+ * "_created_at": "2024-01-15T10:00:00.000Z",
495
+ * "_updated_at": "2024-01-20T12:00:00.000Z",
496
+ * "_title": "Sample Coupon",
497
+ * "name": "Sample Coupon",
498
+ * "type": "fixed",
499
+ * "fixed_value": 555,
500
+ * "fixed_value_currency": "USD",
501
+ * "fixed_value_decimal": "5.55",
502
+ * "active": true,
503
+ * "prices": {
504
+ * "$relation": [
505
+ * {
506
+ * "entity_id": "abc12345-def6-7890-gh12-ijklmnopqrst",
507
+ * "_tags": [
508
+ * "discount",
509
+ * "special"
510
+ * ],
511
+ * "_schema": "price"
512
+ * }
513
+ * ]
514
+ * }
515
+ * }
516
+ */
517
+ Coupon)[];
484
518
  /**
485
519
  * Specifies whether the price is considered `inclusive` of taxes or not.
486
520
  */
@@ -1105,6 +1139,40 @@ declare namespace Components {
1105
1139
  */
1106
1140
  _updated_at?: string;
1107
1141
  };
1142
+ /**
1143
+ * The coupons applicable to the price item
1144
+ */
1145
+ coupons?: (/**
1146
+ * The coupon configuration
1147
+ * example:
1148
+ * {
1149
+ * "_id": "123e4567-e89b-12d3-a456-426614174000",
1150
+ * "_schema": "coupon",
1151
+ * "_org": "org_12345",
1152
+ * "_created_at": "2024-01-15T10:00:00.000Z",
1153
+ * "_updated_at": "2024-01-20T12:00:00.000Z",
1154
+ * "_title": "Sample Coupon",
1155
+ * "name": "Sample Coupon",
1156
+ * "type": "fixed",
1157
+ * "fixed_value": 555,
1158
+ * "fixed_value_currency": "USD",
1159
+ * "fixed_value_decimal": "5.55",
1160
+ * "active": true,
1161
+ * "prices": {
1162
+ * "$relation": [
1163
+ * {
1164
+ * "entity_id": "abc12345-def6-7890-gh12-ijklmnopqrst",
1165
+ * "_tags": [
1166
+ * "discount",
1167
+ * "special"
1168
+ * ],
1169
+ * "_schema": "price"
1170
+ * }
1171
+ * ]
1172
+ * }
1173
+ * }
1174
+ */
1175
+ Coupon)[];
1108
1176
  /**
1109
1177
  * Specifies whether the price is considered `inclusive` of taxes or not.
1110
1178
  */
@@ -1380,7 +1448,7 @@ declare namespace Components {
1380
1448
  /**
1381
1449
  * Use if type is set to percentage. The percentage to be discounted, represented as a whole integer.
1382
1450
  */
1383
- percentage_value?: number;
1451
+ percentage_value?: string;
1384
1452
  /**
1385
1453
  * Use if type is set to fixed. The fixed amount in cents to be discounted, represented as a whole integer.
1386
1454
  */
@@ -2642,6 +2710,40 @@ declare namespace Components {
2642
2710
  */
2643
2711
  _updated_at?: string;
2644
2712
  };
2713
+ /**
2714
+ * The coupons applicable to the price item
2715
+ */
2716
+ coupons?: (/**
2717
+ * The coupon configuration
2718
+ * example:
2719
+ * {
2720
+ * "_id": "123e4567-e89b-12d3-a456-426614174000",
2721
+ * "_schema": "coupon",
2722
+ * "_org": "org_12345",
2723
+ * "_created_at": "2024-01-15T10:00:00.000Z",
2724
+ * "_updated_at": "2024-01-20T12:00:00.000Z",
2725
+ * "_title": "Sample Coupon",
2726
+ * "name": "Sample Coupon",
2727
+ * "type": "fixed",
2728
+ * "fixed_value": 555,
2729
+ * "fixed_value_currency": "USD",
2730
+ * "fixed_value_decimal": "5.55",
2731
+ * "active": true,
2732
+ * "prices": {
2733
+ * "$relation": [
2734
+ * {
2735
+ * "entity_id": "abc12345-def6-7890-gh12-ijklmnopqrst",
2736
+ * "_tags": [
2737
+ * "discount",
2738
+ * "special"
2739
+ * ],
2740
+ * "_schema": "price"
2741
+ * }
2742
+ * ]
2743
+ * }
2744
+ * }
2745
+ */
2746
+ Coupon)[];
2645
2747
  /**
2646
2748
  * Specifies whether the price is considered `inclusive` of taxes or not.
2647
2749
  */
package/dist/openapi.json CHANGED
@@ -3402,6 +3402,18 @@
3402
3402
  }
3403
3403
  ]
3404
3404
  },
3405
+ "coupons": {
3406
+ "type": "array",
3407
+ "description": "The coupons applicable to the price item",
3408
+ "readOnly": true,
3409
+ "items": {
3410
+ "oneOf": [
3411
+ {
3412
+ "$ref": "#/components/schemas/Coupon"
3413
+ }
3414
+ ]
3415
+ }
3416
+ },
3405
3417
  "is_tax_inclusive": {
3406
3418
  "type": "boolean",
3407
3419
  "description": "Specifies whether the price is considered `inclusive` of taxes or not."
@@ -4770,7 +4782,7 @@
4770
4782
  ]
4771
4783
  },
4772
4784
  "percentage_value": {
4773
- "type": "number",
4785
+ "type": "string",
4774
4786
  "description": "Use if type is set to percentage. The percentage to be discounted, represented as a whole integer."
4775
4787
  },
4776
4788
  "fixed_value": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.29.0",
3
+ "version": "3.30.0",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",