@epilot/pricing-client 3.50.3 → 3.51.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.
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Additional legacy types that were removed from the OpenAPI specification
3
+ * because they are no longer used by the API.
4
+ *
5
+ * These types remain temporarily for backwards compatibility and will be
6
+ * removed once all dependent code has been migrated.
7
+ */
8
+ import { Address, Amounts, Customer, MetaData, OrderStatus, PriceItems, PriceTier, TotalDetails } from './openapi';
9
+ export interface AvailabilityDate {
10
+ /**
11
+ * The availability interval start date
12
+ * example:
13
+ * 2017-07-21
14
+ */
15
+ available_start_date?: string;
16
+ /**
17
+ * The availability interval end date
18
+ * example:
19
+ * 2017-07-21
20
+ */
21
+ available_end_date?: string;
22
+ }
23
+ export interface PriceTierEnhanced extends PriceTier {
24
+ unit_amount_gross?: number;
25
+ unit_amount_gross_decimal?: string;
26
+ flat_fee_amount_gross?: number;
27
+ flat_fee_amount_gross_decimal?: string;
28
+ }
29
+ export interface Cart extends Amounts {
30
+ /**
31
+ * The cart identifier
32
+ */
33
+ id?: string;
34
+ /**
35
+ * The user's Organization Id the cart belongs to
36
+ */
37
+ org_id?: string;
38
+ /**
39
+ * The status of the Cart:
40
+ * - open - the cart checkout is still in progress. Payment processing has not started
41
+ * - complete - the cart checkout is complete. Payment processing may still be in progress
42
+ * - expired - the cart checkout has expired. No further processing will occur
43
+ *
44
+ */
45
+ status?: OrderStatus;
46
+ customer?: Customer;
47
+ billing_address?: Address;
48
+ delivery_address?: Address;
49
+ metadata?: MetaData;
50
+ line_items?: PriceItems;
51
+ total_details?: TotalDetails;
52
+ created_at?: string;
53
+ updated_at?: string;
54
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * Additional legacy types that were removed from the OpenAPI specification
4
+ * because they are no longer used by the API.
5
+ *
6
+ * These types remain temporarily for backwards compatibility and will be
7
+ * removed once all dependent code has been migrated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ //# sourceMappingURL=additional-types.js.map
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export type { OpenAPIClient, OpenAPIClientAxios, Document } from 'openapi-client-axios';
2
2
  export * from './client';
3
3
  export * from './openapi';
4
+ export * from './additional-types';
package/dist/index.js CHANGED
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client"), exports);
18
+ __exportStar(require("./additional-types"), exports);
18
19
  //# sourceMappingURL=index.js.map
package/dist/openapi.d.ts CHANGED
@@ -332,7 +332,7 @@ declare namespace Components {
332
332
  /**
333
333
  * The billing period duration
334
334
  */
335
- billing_duration_amount?: number;
335
+ billing_duration_amount?: number | null;
336
336
  /**
337
337
  * The billing period duration unit
338
338
  */
@@ -340,7 +340,7 @@ declare namespace Components {
340
340
  /**
341
341
  * The notice period duration
342
342
  */
343
- notice_time_amount?: number;
343
+ notice_time_amount?: number | null;
344
344
  /**
345
345
  * The notice period duration unit
346
346
  */
@@ -348,7 +348,7 @@ declare namespace Components {
348
348
  /**
349
349
  * The termination period duration
350
350
  */
351
- termination_time_amount?: number;
351
+ termination_time_amount?: number | null;
352
352
  /**
353
353
  * The termination period duration unit
354
354
  */
@@ -356,7 +356,7 @@ declare namespace Components {
356
356
  /**
357
357
  * The renewal period duration
358
358
  */
359
- renewal_duration_amount?: number;
359
+ renewal_duration_amount?: number | null;
360
360
  /**
361
361
  * The renewal period duration unit
362
362
  */
@@ -4781,7 +4781,7 @@ declare namespace Components {
4781
4781
  /**
4782
4782
  * The billing period duration
4783
4783
  */
4784
- billing_duration_amount?: number;
4784
+ billing_duration_amount?: number | null;
4785
4785
  /**
4786
4786
  * The billing period duration unit
4787
4787
  */
@@ -4789,7 +4789,7 @@ declare namespace Components {
4789
4789
  /**
4790
4790
  * The notice period duration
4791
4791
  */
4792
- notice_time_amount?: number;
4792
+ notice_time_amount?: number | null;
4793
4793
  /**
4794
4794
  * The notice period duration unit
4795
4795
  */
@@ -4797,7 +4797,7 @@ declare namespace Components {
4797
4797
  /**
4798
4798
  * The termination period duration
4799
4799
  */
4800
- termination_time_amount?: number;
4800
+ termination_time_amount?: number | null;
4801
4801
  /**
4802
4802
  * The termination period duration unit
4803
4803
  */
@@ -4805,7 +4805,7 @@ declare namespace Components {
4805
4805
  /**
4806
4806
  * The renewal period duration
4807
4807
  */
4808
- renewal_duration_amount?: number;
4808
+ renewal_duration_amount?: number | null;
4809
4809
  /**
4810
4810
  * The renewal period duration unit
4811
4811
  */
@@ -5112,7 +5112,7 @@ declare namespace Components {
5112
5112
  /**
5113
5113
  * The billing period duration
5114
5114
  */
5115
- billing_duration_amount?: number;
5115
+ billing_duration_amount?: number | null;
5116
5116
  /**
5117
5117
  * The billing period duration unit
5118
5118
  */
@@ -5120,7 +5120,7 @@ declare namespace Components {
5120
5120
  /**
5121
5121
  * The notice period duration
5122
5122
  */
5123
- notice_time_amount?: number;
5123
+ notice_time_amount?: number | null;
5124
5124
  /**
5125
5125
  * The notice period duration unit
5126
5126
  */
@@ -5128,7 +5128,7 @@ declare namespace Components {
5128
5128
  /**
5129
5129
  * The termination period duration
5130
5130
  */
5131
- termination_time_amount?: number;
5131
+ termination_time_amount?: number | null;
5132
5132
  /**
5133
5133
  * The termination period duration unit
5134
5134
  */
@@ -5136,7 +5136,7 @@ declare namespace Components {
5136
5136
  /**
5137
5137
  * The renewal period duration
5138
5138
  */
5139
- renewal_duration_amount?: number;
5139
+ renewal_duration_amount?: number | null;
5140
5140
  /**
5141
5141
  * The renewal period duration unit
5142
5142
  */
@@ -6381,7 +6381,7 @@ declare namespace Components {
6381
6381
  /**
6382
6382
  * The billing period duration
6383
6383
  */
6384
- billing_duration_amount?: number;
6384
+ billing_duration_amount?: number | null;
6385
6385
  /**
6386
6386
  * The billing period duration unit
6387
6387
  */
@@ -6389,7 +6389,7 @@ declare namespace Components {
6389
6389
  /**
6390
6390
  * The notice period duration
6391
6391
  */
6392
- notice_time_amount?: number;
6392
+ notice_time_amount?: number | null;
6393
6393
  /**
6394
6394
  * The notice period duration unit
6395
6395
  */
@@ -6397,7 +6397,7 @@ declare namespace Components {
6397
6397
  /**
6398
6398
  * The termination period duration
6399
6399
  */
6400
- termination_time_amount?: number;
6400
+ termination_time_amount?: number | null;
6401
6401
  /**
6402
6402
  * The termination period duration unit
6403
6403
  */
@@ -6405,7 +6405,7 @@ declare namespace Components {
6405
6405
  /**
6406
6406
  * The renewal period duration
6407
6407
  */
6408
- renewal_duration_amount?: number;
6408
+ renewal_duration_amount?: number | null;
6409
6409
  /**
6410
6410
  * The renewal period duration unit
6411
6411
  */
@@ -6589,7 +6589,7 @@ declare namespace Components {
6589
6589
  /**
6590
6590
  * The billing period duration
6591
6591
  */
6592
- billing_duration_amount?: number;
6592
+ billing_duration_amount?: number | null;
6593
6593
  /**
6594
6594
  * The billing period duration unit
6595
6595
  */
@@ -6597,7 +6597,7 @@ declare namespace Components {
6597
6597
  /**
6598
6598
  * The notice period duration
6599
6599
  */
6600
- notice_time_amount?: number;
6600
+ notice_time_amount?: number | null;
6601
6601
  /**
6602
6602
  * The notice period duration unit
6603
6603
  */
@@ -6605,7 +6605,7 @@ declare namespace Components {
6605
6605
  /**
6606
6606
  * The termination period duration
6607
6607
  */
6608
- termination_time_amount?: number;
6608
+ termination_time_amount?: number | null;
6609
6609
  /**
6610
6610
  * The termination period duration unit
6611
6611
  */
@@ -6613,7 +6613,7 @@ declare namespace Components {
6613
6613
  /**
6614
6614
  * The renewal period duration
6615
6615
  */
6616
- renewal_duration_amount?: number;
6616
+ renewal_duration_amount?: number | null;
6617
6617
  /**
6618
6618
  * The renewal period duration unit
6619
6619
  */
@@ -7627,7 +7627,7 @@ declare namespace Components {
7627
7627
  /**
7628
7628
  * The billing period duration
7629
7629
  */
7630
- billing_duration_amount?: number;
7630
+ billing_duration_amount?: number | null;
7631
7631
  /**
7632
7632
  * The billing period duration unit
7633
7633
  */
@@ -7635,7 +7635,7 @@ declare namespace Components {
7635
7635
  /**
7636
7636
  * The notice period duration
7637
7637
  */
7638
- notice_time_amount?: number;
7638
+ notice_time_amount?: number | null;
7639
7639
  /**
7640
7640
  * The notice period duration unit
7641
7641
  */
@@ -7643,7 +7643,7 @@ declare namespace Components {
7643
7643
  /**
7644
7644
  * The termination period duration
7645
7645
  */
7646
- termination_time_amount?: number;
7646
+ termination_time_amount?: number | null;
7647
7647
  /**
7648
7648
  * The termination period duration unit
7649
7649
  */
@@ -7651,7 +7651,7 @@ declare namespace Components {
7651
7651
  /**
7652
7652
  * The renewal period duration
7653
7653
  */
7654
- renewal_duration_amount?: number;
7654
+ renewal_duration_amount?: number | null;
7655
7655
  /**
7656
7656
  * The renewal period duration unit
7657
7657
  */
@@ -9026,9 +9026,7 @@ declare namespace Components {
9026
9026
  /**
9027
9027
  * The taxes applied to the price item.
9028
9028
  */
9029
- tax?: {
9030
- [name: string]: /* A tax amount associated with a specific tax rate. */ TaxAmountBreakdown;
9031
- };
9029
+ tax?: /* A tax amount associated with a specific tax rate. */ TaxAmountBreakdown;
9032
9030
  }
9033
9031
  export interface RedeemedPromo {
9034
9032
  /**
package/dist/openapi.json CHANGED
@@ -4598,7 +4598,8 @@
4598
4598
  "properties": {
4599
4599
  "billing_duration_amount": {
4600
4600
  "description": "The billing period duration",
4601
- "type": "number"
4601
+ "type": "number",
4602
+ "nullable": true
4602
4603
  },
4603
4604
  "billing_duration_unit": {
4604
4605
  "description": "The billing period duration unit",
@@ -4607,11 +4608,13 @@
4607
4608
  "weeks",
4608
4609
  "months",
4609
4610
  "years"
4610
- ]
4611
+ ],
4612
+ "nullable": true
4611
4613
  },
4612
4614
  "notice_time_amount": {
4613
4615
  "description": "The notice period duration",
4614
- "type": "number"
4616
+ "type": "number",
4617
+ "nullable": true
4615
4618
  },
4616
4619
  "notice_time_unit": {
4617
4620
  "description": "The notice period duration unit",
@@ -4620,11 +4623,13 @@
4620
4623
  "weeks",
4621
4624
  "months",
4622
4625
  "years"
4623
- ]
4626
+ ],
4627
+ "nullable": true
4624
4628
  },
4625
4629
  "termination_time_amount": {
4626
4630
  "description": "The termination period duration",
4627
- "type": "number"
4631
+ "type": "number",
4632
+ "nullable": true
4628
4633
  },
4629
4634
  "termination_time_unit": {
4630
4635
  "description": "The termination period duration unit",
@@ -4633,11 +4638,13 @@
4633
4638
  "weeks",
4634
4639
  "months",
4635
4640
  "years"
4636
- ]
4641
+ ],
4642
+ "nullable": true
4637
4643
  },
4638
4644
  "renewal_duration_amount": {
4639
4645
  "description": "The renewal period duration",
4640
- "type": "number"
4646
+ "type": "number",
4647
+ "nullable": true
4641
4648
  },
4642
4649
  "renewal_duration_unit": {
4643
4650
  "description": "The renewal period duration unit",
@@ -4646,7 +4653,8 @@
4646
4653
  "weeks",
4647
4654
  "months",
4648
4655
  "years"
4649
- ]
4656
+ ],
4657
+ "nullable": true
4650
4658
  }
4651
4659
  }
4652
4660
  },
@@ -6850,9 +6858,7 @@
6850
6858
  "tax": {
6851
6859
  "type": "object",
6852
6860
  "description": "The taxes applied to the price item.",
6853
- "additionalProperties": {
6854
- "$ref": "#/components/schemas/TaxAmountBreakdown"
6855
- }
6861
+ "$ref": "#/components/schemas/TaxAmountBreakdown"
6856
6862
  }
6857
6863
  },
6858
6864
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.50.3",
3
+ "version": "3.51.0",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",