@epilot/pricing-client 3.44.0 → 3.46.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
@@ -270,14 +270,14 @@ declare namespace Components {
270
270
  * The date the coupon was last updated
271
271
  */
272
272
  _updated_at: string; // date-time
273
- name: string;
274
- description?: string;
273
+ name: string | null;
274
+ description?: string | null;
275
275
  type?: "fixed" | "percentage";
276
276
  category?: "discount" | "cashback";
277
277
  /**
278
278
  * Use if type is set to percentage. The percentage to be discounted, represented as a whole integer.
279
279
  */
280
- percentage_value?: string;
280
+ percentage_value?: string | null;
281
281
  /**
282
282
  * Use if type is set to fixed. The fixed amount in cents to be discounted, represented as a whole integer.
283
283
  */
@@ -1317,6 +1317,7 @@ declare namespace Components {
1317
1317
  */
1318
1318
  export interface CheckoutCart {
1319
1319
  cart?: string | /* A valid cart payload from a client. */ CartDto;
1320
+ redeemed_promos?: RedeemedPromo[];
1320
1321
  mode?: /* The checkout mode for the cart checkout. */ CheckoutMode;
1321
1322
  }
1322
1323
  /**
@@ -2292,14 +2293,14 @@ declare namespace Components {
2292
2293
  * The date the coupon was last updated
2293
2294
  */
2294
2295
  _updated_at: string; // date-time
2295
- name: string;
2296
- description?: string;
2296
+ name: string | null;
2297
+ description?: string | null;
2297
2298
  type?: "fixed" | "percentage";
2298
2299
  category?: "discount" | "cashback";
2299
2300
  /**
2300
2301
  * Use if type is set to percentage. The percentage to be discounted, represented as a whole integer.
2301
2302
  */
2302
- percentage_value?: string;
2303
+ percentage_value?: string | null;
2303
2304
  /**
2304
2305
  * Use if type is set to fixed. The fixed amount in cents to be discounted, represented as a whole integer.
2305
2306
  */
@@ -2412,14 +2413,14 @@ declare namespace Components {
2412
2413
  * The date the coupon was last updated
2413
2414
  */
2414
2415
  _updated_at: string; // date-time
2415
- name: string;
2416
- description?: string;
2416
+ name: string | null;
2417
+ description?: string | null;
2417
2418
  type?: "fixed" | "percentage";
2418
2419
  category?: "discount" | "cashback";
2419
2420
  /**
2420
2421
  * Use if type is set to percentage. The percentage to be discounted, represented as a whole integer.
2421
2422
  */
2422
- percentage_value?: string;
2423
+ percentage_value?: string | null;
2423
2424
  /**
2424
2425
  * Use if type is set to fixed. The fixed amount in cents to be discounted, represented as a whole integer.
2425
2426
  */
@@ -4421,6 +4422,7 @@ declare namespace Components {
4421
4422
  * EUR
4422
4423
  */
4423
4424
  Currency;
4425
+ redeemed_promos?: RedeemedPromo[];
4424
4426
  }
4425
4427
  /**
4426
4428
  * The result from the calculation of a set of price items.
@@ -4470,6 +4472,7 @@ declare namespace Components {
4470
4472
  * EUR
4471
4473
  */
4472
4474
  Currency;
4475
+ redeemed_promos?: RedeemedPromo[];
4473
4476
  }
4474
4477
  /**
4475
4478
  * Describes how to compute the price per period. Either `per_unit`, `tiered_graduated` or `tiered_volume`.
@@ -5278,6 +5281,7 @@ declare namespace Paths {
5278
5281
  namespace $CalculatePricingDetails {
5279
5282
  export interface RequestBody {
5280
5283
  line_items?: /* A valid set of product prices, quantities, (discounts) and taxes from a client. */ Components.Schemas.PriceItemsDto;
5284
+ redeemed_promos?: Components.Schemas.RedeemedPromo[];
5281
5285
  }
5282
5286
  namespace Responses {
5283
5287
  export type $200 = /* The result from the calculation of a set of price items. */ Components.Schemas.PricingDetailsResponse;
package/dist/openapi.json CHANGED
@@ -141,6 +141,12 @@
141
141
  "properties": {
142
142
  "line_items": {
143
143
  "$ref": "#/components/schemas/PriceItemsDto"
144
+ },
145
+ "redeemed_promos": {
146
+ "type": "array",
147
+ "items": {
148
+ "$ref": "#/components/schemas/RedeemedPromo"
149
+ }
144
150
  }
145
151
  }
146
152
  },
@@ -3798,6 +3804,12 @@
3798
3804
  }
3799
3805
  ]
3800
3806
  },
3807
+ "redeemed_promos": {
3808
+ "type": "array",
3809
+ "items": {
3810
+ "$ref": "#/components/schemas/RedeemedPromo"
3811
+ }
3812
+ },
3801
3813
  "mode": {
3802
3814
  "$ref": "#/components/schemas/CheckoutMode"
3803
3815
  }
@@ -4581,7 +4593,8 @@
4581
4593
  "enum": [
4582
4594
  "0",
4583
4595
  "12"
4584
- ]
4596
+ ],
4597
+ "nullable": true
4585
4598
  },
4586
4599
  "after_cashback_amount_total": {
4587
4600
  "type": "integer",
@@ -4774,7 +4787,8 @@
4774
4787
  "enum": [
4775
4788
  "0",
4776
4789
  "12"
4777
- ]
4790
+ ],
4791
+ "nullable": true
4778
4792
  },
4779
4793
  "amount_total": {
4780
4794
  "type": "integer",
@@ -4941,6 +4955,12 @@
4941
4955
  },
4942
4956
  "currency": {
4943
4957
  "$ref": "#/components/schemas/Currency"
4958
+ },
4959
+ "redeemed_promos": {
4960
+ "type": "array",
4961
+ "items": {
4962
+ "$ref": "#/components/schemas/RedeemedPromo"
4963
+ }
4944
4964
  }
4945
4965
  }
4946
4966
  },
@@ -4959,47 +4979,11 @@
4959
4979
  "PricingDetailsResponse": {
4960
4980
  "type": "object",
4961
4981
  "description": "The result from the calculation of a set of price items.",
4962
- "properties": {
4963
- "items": {
4964
- "type": "array",
4965
- "items": {
4966
- "oneOf": [
4967
- {
4968
- "$ref": "#/components/schemas/PriceItem"
4969
- },
4970
- {
4971
- "$ref": "#/components/schemas/CompositePriceItem"
4972
- }
4973
- ]
4974
- }
4975
- },
4976
- "amount_subtotal": {
4977
- "type": "integer",
4978
- "description": "Total of all items before (discounts or) taxes are applied."
4979
- },
4980
- "amount_total": {
4981
- "type": "integer",
4982
- "description": "Total of all items after (discounts and) taxes are applied."
4983
- },
4984
- "unit_amount_gross": {
4985
- "type": "integer",
4986
- "description": "The unit gross amount value."
4987
- },
4988
- "unit_amount_net": {
4989
- "type": "integer",
4990
- "description": "The unit net amount value."
4991
- },
4992
- "amount_tax": {
4993
- "type": "integer",
4994
- "description": "This is the sum of all the price item tax amounts."
4995
- },
4996
- "total_details": {
4997
- "$ref": "#/components/schemas/TotalDetails"
4998
- },
4999
- "currency": {
5000
- "$ref": "#/components/schemas/Currency"
4982
+ "allOf": [
4983
+ {
4984
+ "$ref": "#/components/schemas/PricingDetails"
5001
4985
  }
5002
- }
4986
+ ]
5003
4987
  },
5004
4988
  "BillingPeriod": {
5005
4989
  "type": "string",
@@ -5489,10 +5473,12 @@
5489
5473
  "description": "The date the coupon was last updated"
5490
5474
  },
5491
5475
  "name": {
5492
- "type": "string"
5476
+ "type": "string",
5477
+ "nullable": true
5493
5478
  },
5494
5479
  "description": {
5495
- "type": "string"
5480
+ "type": "string",
5481
+ "nullable": true
5496
5482
  },
5497
5483
  "type": {
5498
5484
  "type": "string",
@@ -5510,7 +5496,8 @@
5510
5496
  },
5511
5497
  "percentage_value": {
5512
5498
  "type": "string",
5513
- "description": "Use if type is set to percentage. The percentage to be discounted, represented as a whole integer."
5499
+ "description": "Use if type is set to percentage. The percentage to be discounted, represented as a whole integer.",
5500
+ "nullable": true
5514
5501
  },
5515
5502
  "fixed_value": {
5516
5503
  "description": "Use if type is set to fixed. The fixed amount in cents to be discounted, represented as a whole integer.",
@@ -5534,7 +5521,8 @@
5534
5521
  "enum": [
5535
5522
  "0",
5536
5523
  "12"
5537
- ]
5524
+ ],
5525
+ "nullable": true
5538
5526
  },
5539
5527
  "active": {
5540
5528
  "type": "boolean"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.44.0",
3
+ "version": "3.46.0",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",