@epilot/pricing-client 3.47.8 → 3.47.9-alpha.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/dist/openapi.d.ts CHANGED
@@ -456,10 +456,6 @@ declare namespace Components {
456
456
  * The id of the price.
457
457
  */
458
458
  price_id?: string;
459
- /**
460
- * The flag for prices that contain price components.
461
- */
462
- is_composite_price?: boolean;
463
459
  /**
464
460
  * An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
465
461
  */
@@ -748,10 +744,6 @@ declare namespace Components {
748
744
  * The id of the price.
749
745
  */
750
746
  price_id?: string;
751
- /**
752
- * The flag for prices that contain price components.
753
- */
754
- is_composite_price?: boolean;
755
747
  /**
756
748
  * An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
757
749
  */
@@ -905,10 +897,6 @@ declare namespace Components {
905
897
  * The id of the price.
906
898
  */
907
899
  price_id?: string;
908
- /**
909
- * The flag for prices that contain price components.
910
- */
911
- is_composite_price?: boolean;
912
900
  /**
913
901
  * An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
914
902
  */
@@ -1461,7 +1449,7 @@ declare namespace Components {
1461
1449
  /**
1462
1450
  * The flag for prices that contain price components.
1463
1451
  */
1464
- is_composite_price?: boolean;
1452
+ is_composite_price?: true;
1465
1453
  /**
1466
1454
  * The price creation date
1467
1455
  */
@@ -1564,10 +1552,6 @@ declare namespace Components {
1564
1552
  * The id of the price.
1565
1553
  */
1566
1554
  price_id?: string;
1567
- /**
1568
- * The flag for prices that contain price components.
1569
- */
1570
- is_composite_price?: boolean;
1571
1555
  /**
1572
1556
  * An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
1573
1557
  */
@@ -1838,6 +1822,10 @@ declare namespace Components {
1838
1822
  * When set to true on a `_price` displayed as OnRequest (`show_as_on_request: 'on_request'`) this flag means the price has been approved and can now be displayed to the customer. This flag is only valid for prices shown as 'on_request'.
1839
1823
  */
1840
1824
  on_request_approved?: boolean;
1825
+ /**
1826
+ * The flag for prices that contain price components.
1827
+ */
1828
+ is_composite_price?: true;
1841
1829
  /**
1842
1830
  * Contains price item configurations, per price component, when the main price item is a [composite price](/api/pricing#tag/dynamic_price_schema).
1843
1831
  */
@@ -1868,10 +1856,6 @@ declare namespace Components {
1868
1856
  * The id of the price.
1869
1857
  */
1870
1858
  price_id?: string;
1871
- /**
1872
- * The flag for prices that contain price components.
1873
- */
1874
- is_composite_price?: true;
1875
1859
  /**
1876
1860
  * An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
1877
1861
  */
@@ -2035,6 +2019,10 @@ declare namespace Components {
2035
2019
  * The coupons applicable to the price item
2036
2020
  */
2037
2021
  _coupons?: (CouponItem)[];
2022
+ /**
2023
+ * The flag for prices that contain price components.
2024
+ */
2025
+ is_composite_price?: true;
2038
2026
  /**
2039
2027
  * Contains price item configurations, per price component, when the main price item is a [composite price](/api/pricing#tag/dynamic_price_schema).
2040
2028
  */
@@ -3454,7 +3442,7 @@ declare namespace Components {
3454
3442
  /**
3455
3443
  * The flag for prices that contain price components.
3456
3444
  */
3457
- is_composite_price?: boolean;
3445
+ is_composite_price?: false;
3458
3446
  /**
3459
3447
  * Describes how to compute the price per period. Either `per_unit`, `tiered_graduated` or `tiered_volume`.
3460
3448
  * - `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity
@@ -3839,10 +3827,6 @@ declare namespace Components {
3839
3827
  * The id of the price.
3840
3828
  */
3841
3829
  price_id?: string;
3842
- /**
3843
- * The flag for prices that contain price components.
3844
- */
3845
- is_composite_price?: boolean;
3846
3830
  /**
3847
3831
  * An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
3848
3832
  */
@@ -4117,6 +4101,10 @@ declare namespace Components {
4117
4101
  * One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
4118
4102
  */
4119
4103
  type?: "one_time" | "recurring";
4104
+ /**
4105
+ * The flag for prices that contain price components.
4106
+ */
4107
+ is_composite_price?: false;
4120
4108
  /**
4121
4109
  * The price billing period.
4122
4110
  */
@@ -4153,10 +4141,6 @@ declare namespace Components {
4153
4141
  * The id of the price.
4154
4142
  */
4155
4143
  price_id?: string;
4156
- /**
4157
- * The flag for prices that contain price components.
4158
- */
4159
- is_composite_price?: false;
4160
4144
  /**
4161
4145
  * An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
4162
4146
  */
@@ -4348,6 +4332,10 @@ declare namespace Components {
4348
4332
  * The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.
4349
4333
  */
4350
4334
  unit_amount_decimal?: string;
4335
+ /**
4336
+ * The flag for prices that contain price components.
4337
+ */
4338
+ is_composite_price?: false;
4351
4339
  /**
4352
4340
  * Describes how to compute the price per period. Either `per_unit`, `tiered_graduated` or `tiered_volume`.
4353
4341
  * - `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity
@@ -4407,7 +4395,7 @@ declare namespace Components {
4407
4395
  /**
4408
4396
  * The flag for prices that contain price components.
4409
4397
  */
4410
- is_composite_price?: boolean;
4398
+ is_composite_price?: false;
4411
4399
  /**
4412
4400
  * Describes how to compute the price per period. Either `per_unit`, `tiered_graduated` or `tiered_volume`.
4413
4401
  * - `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity
@@ -4540,7 +4528,7 @@ declare namespace Components {
4540
4528
  _tags?: string[];
4541
4529
  };
4542
4530
  }
4543
- export type PriceItemUnion = /* Represents a price input to the pricing library. */ PriceItemDto | /* Represents a composite price input to the pricing library. */ CompositePriceItemDto;
4531
+ export type PriceItemDtoUnion = /* Represents a price input to the pricing library. */ PriceItemDto | /* Represents a composite price input to the pricing library. */ CompositePriceItemDto;
4544
4532
  /**
4545
4533
  * Tracks a set of product prices, quantities, (discounts) and taxes.
4546
4534
  */
@@ -4562,7 +4550,7 @@ declare namespace Components {
4562
4550
  /**
4563
4551
  * A valid set of product prices, quantities, (discounts) and taxes from a client.
4564
4552
  */
4565
- export type PriceItemsDto = PriceItemUnion[];
4553
+ export type PriceItemsDto = PriceItemDtoUnion[];
4566
4554
  export interface PriceTier {
4567
4555
  up_to?: number | null;
4568
4556
  flat_fee_amount?: number;
@@ -6313,7 +6301,7 @@ export type PriceInputMapping = Components.Schemas.PriceInputMapping;
6313
6301
  export type PriceInputMappings = Components.Schemas.PriceInputMappings;
6314
6302
  export type PriceItem = Components.Schemas.PriceItem;
6315
6303
  export type PriceItemDto = Components.Schemas.PriceItemDto;
6316
- export type PriceItemUnion = Components.Schemas.PriceItemUnion;
6304
+ export type PriceItemDtoUnion = Components.Schemas.PriceItemDtoUnion;
6317
6305
  export type PriceItems = Components.Schemas.PriceItems;
6318
6306
  export type PriceItemsDto = Components.Schemas.PriceItemsDto;
6319
6307
  export type PriceTier = Components.Schemas.PriceTier;
package/dist/openapi.json CHANGED
@@ -2841,7 +2841,10 @@
2841
2841
  },
2842
2842
  "is_composite_price": {
2843
2843
  "description": "The flag for prices that contain price components.",
2844
- "type": "boolean"
2844
+ "type": "boolean",
2845
+ "enum": [
2846
+ false
2847
+ ]
2845
2848
  },
2846
2849
  "pricing_model": {
2847
2850
  "type": "string",
@@ -3071,7 +3074,10 @@
3071
3074
  },
3072
3075
  "is_composite_price": {
3073
3076
  "description": "The flag for prices that contain price components.",
3074
- "type": "boolean"
3077
+ "type": "boolean",
3078
+ "enum": [
3079
+ true
3080
+ ]
3075
3081
  },
3076
3082
  "_created_at": {
3077
3083
  "description": "The price creation date",
@@ -4357,10 +4363,6 @@
4357
4363
  "type": "string",
4358
4364
  "description": "The id of the price."
4359
4365
  },
4360
- "is_composite_price": {
4361
- "description": "The flag for prices that contain price components.",
4362
- "type": "boolean"
4363
- },
4364
4366
  "description": {
4365
4367
  "type": "string",
4366
4368
  "description": "An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name."
@@ -4391,7 +4393,7 @@
4391
4393
  }
4392
4394
  }
4393
4395
  },
4394
- "PriceItemUnion": {
4396
+ "PriceItemDtoUnion": {
4395
4397
  "anyOf": [
4396
4398
  {
4397
4399
  "$ref": "#/components/schemas/PriceItemDto"
@@ -4412,7 +4414,7 @@
4412
4414
  "description": "A valid set of product prices, quantities, (discounts) and taxes from a client.",
4413
4415
  "type": "array",
4414
4416
  "items": {
4415
- "$ref": "#/components/schemas/PriceItemUnion"
4417
+ "$ref": "#/components/schemas/PriceItemDtoUnion"
4416
4418
  }
4417
4419
  },
4418
4420
  "BasePriceItemDto": {
@@ -4877,6 +4879,13 @@
4877
4879
  "description": "Represents a composite price input to the pricing library.",
4878
4880
  "type": "object",
4879
4881
  "properties": {
4882
+ "is_composite_price": {
4883
+ "description": "The flag for prices that contain price components.",
4884
+ "type": "boolean",
4885
+ "enum": [
4886
+ true
4887
+ ]
4888
+ },
4880
4889
  "item_components": {
4881
4890
  "type": "array",
4882
4891
  "description": "Contains price item configurations, per price component, when the main price item is a [composite price](/api/pricing#tag/dynamic_price_schema).",
@@ -5174,6 +5183,13 @@
5174
5183
  "recurring"
5175
5184
  ]
5176
5185
  },
5186
+ "is_composite_price": {
5187
+ "description": "The flag for prices that contain price components.",
5188
+ "type": "boolean",
5189
+ "enum": [
5190
+ false
5191
+ ]
5192
+ },
5177
5193
  "billing_period": {
5178
5194
  "type": "string",
5179
5195
  "description": "The price billing period.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.47.8",
3
+ "version": "3.47.9-alpha.1",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",