@epilot/pricing-client 3.47.8 → 3.47.9-alpha.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
@@ -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
  */
@@ -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
  */
@@ -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
@@ -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
@@ -4357,10 +4357,6 @@
4357
4357
  "type": "string",
4358
4358
  "description": "The id of the price."
4359
4359
  },
4360
- "is_composite_price": {
4361
- "description": "The flag for prices that contain price components.",
4362
- "type": "boolean"
4363
- },
4364
4360
  "description": {
4365
4361
  "type": "string",
4366
4362
  "description": "An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name."
@@ -4391,7 +4387,7 @@
4391
4387
  }
4392
4388
  }
4393
4389
  },
4394
- "PriceItemUnion": {
4390
+ "PriceItemDtoUnion": {
4395
4391
  "anyOf": [
4396
4392
  {
4397
4393
  "$ref": "#/components/schemas/PriceItemDto"
@@ -4412,7 +4408,7 @@
4412
4408
  "description": "A valid set of product prices, quantities, (discounts) and taxes from a client.",
4413
4409
  "type": "array",
4414
4410
  "items": {
4415
- "$ref": "#/components/schemas/PriceItemUnion"
4411
+ "$ref": "#/components/schemas/PriceItemDtoUnion"
4416
4412
  }
4417
4413
  },
4418
4414
  "BasePriceItemDto": {
@@ -4877,6 +4873,13 @@
4877
4873
  "description": "Represents a composite price input to the pricing library.",
4878
4874
  "type": "object",
4879
4875
  "properties": {
4876
+ "is_composite_price": {
4877
+ "description": "The flag for prices that contain price components.",
4878
+ "type": "boolean",
4879
+ "enum": [
4880
+ true
4881
+ ]
4882
+ },
4880
4883
  "item_components": {
4881
4884
  "type": "array",
4882
4885
  "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 +5177,13 @@
5174
5177
  "recurring"
5175
5178
  ]
5176
5179
  },
5180
+ "is_composite_price": {
5181
+ "description": "The flag for prices that contain price components.",
5182
+ "type": "boolean",
5183
+ "enum": [
5184
+ false
5185
+ ]
5186
+ },
5177
5187
  "billing_period": {
5178
5188
  "type": "string",
5179
5189
  "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.0",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",