@epilot/pricing-client 3.7.0 → 3.7.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/client.d.ts +0 -0
- package/dist/client.js +0 -0
- package/dist/definition.d.ts +0 -0
- package/dist/definition.js +1 -1
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/openapi-runtime.json +117 -0
- package/dist/openapi.d.ts +37 -330
- package/dist/openapi.json +4383 -4777
- package/package.json +4 -4
package/dist/openapi.d.ts
CHANGED
|
@@ -252,29 +252,6 @@ declare namespace Components {
|
|
|
252
252
|
* The sum of amounts of the price items by recurrence.
|
|
253
253
|
*/
|
|
254
254
|
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
|
|
255
|
-
/**
|
|
256
|
-
* Price mapping information required to compute totals
|
|
257
|
-
*/
|
|
258
|
-
price_mappings?: /**
|
|
259
|
-
* example:
|
|
260
|
-
* [
|
|
261
|
-
* {
|
|
262
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
263
|
-
* "frequency_unit": "weekly",
|
|
264
|
-
* "value": 1000.245,
|
|
265
|
-
* "name": "avg consumption",
|
|
266
|
-
* "metadata": {
|
|
267
|
-
* "journey_title": "energy journey",
|
|
268
|
-
* "step_name": "avg consumption picker"
|
|
269
|
-
* }
|
|
270
|
-
* }
|
|
271
|
-
* ]
|
|
272
|
-
*/
|
|
273
|
-
PriceInputMappings;
|
|
274
|
-
/**
|
|
275
|
-
* 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'.
|
|
276
|
-
*/
|
|
277
|
-
on_request_approved?: boolean;
|
|
278
255
|
}
|
|
279
256
|
/**
|
|
280
257
|
* Represents a valid base price item from a client.
|
|
@@ -285,25 +262,6 @@ declare namespace Components {
|
|
|
285
262
|
* The quantity of products being purchased.
|
|
286
263
|
*/
|
|
287
264
|
quantity?: number;
|
|
288
|
-
/**
|
|
289
|
-
* Price mapping information required to compute totals
|
|
290
|
-
*/
|
|
291
|
-
price_mappings?: /**
|
|
292
|
-
* example:
|
|
293
|
-
* [
|
|
294
|
-
* {
|
|
295
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
296
|
-
* "frequency_unit": "weekly",
|
|
297
|
-
* "value": 1000.245,
|
|
298
|
-
* "name": "avg consumption",
|
|
299
|
-
* "metadata": {
|
|
300
|
-
* "journey_title": "energy journey",
|
|
301
|
-
* "step_name": "avg consumption picker"
|
|
302
|
-
* }
|
|
303
|
-
* }
|
|
304
|
-
* ]
|
|
305
|
-
*/
|
|
306
|
-
PriceInputMappings;
|
|
307
265
|
/**
|
|
308
266
|
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
309
267
|
*/
|
|
@@ -777,26 +735,6 @@ declare namespace Components {
|
|
|
777
735
|
* The sum of amounts of the price items by recurrence.
|
|
778
736
|
*/
|
|
779
737
|
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
|
|
780
|
-
price_mappings?: /**
|
|
781
|
-
* example:
|
|
782
|
-
* [
|
|
783
|
-
* {
|
|
784
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
785
|
-
* "frequency_unit": "weekly",
|
|
786
|
-
* "value": 1000.245,
|
|
787
|
-
* "name": "avg consumption",
|
|
788
|
-
* "metadata": {
|
|
789
|
-
* "journey_title": "energy journey",
|
|
790
|
-
* "step_name": "avg consumption picker"
|
|
791
|
-
* }
|
|
792
|
-
* }
|
|
793
|
-
* ]
|
|
794
|
-
*/
|
|
795
|
-
PriceInputMappings;
|
|
796
|
-
/**
|
|
797
|
-
* 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'.
|
|
798
|
-
*/
|
|
799
|
-
on_request_approved?: boolean;
|
|
800
738
|
/**
|
|
801
739
|
* Contains price item configurations, per price component, when the main price item is a [composite price](/api/pricing#tag/dynamic_price_schema).
|
|
802
740
|
*/
|
|
@@ -808,7 +746,6 @@ declare namespace Components {
|
|
|
808
746
|
* }
|
|
809
747
|
*/
|
|
810
748
|
PriceItem[];
|
|
811
|
-
total_details?: /* The total details with tax (and discount) aggregated totals. */ TotalDetails;
|
|
812
749
|
}
|
|
813
750
|
/**
|
|
814
751
|
* Represents a composite price input to the pricing library.
|
|
@@ -819,22 +756,6 @@ declare namespace Components {
|
|
|
819
756
|
* The quantity of products being purchased.
|
|
820
757
|
*/
|
|
821
758
|
quantity?: number;
|
|
822
|
-
price_mappings?: /**
|
|
823
|
-
* example:
|
|
824
|
-
* [
|
|
825
|
-
* {
|
|
826
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
827
|
-
* "frequency_unit": "weekly",
|
|
828
|
-
* "value": 1000.245,
|
|
829
|
-
* "name": "avg consumption",
|
|
830
|
-
* "metadata": {
|
|
831
|
-
* "journey_title": "energy journey",
|
|
832
|
-
* "step_name": "avg consumption picker"
|
|
833
|
-
* }
|
|
834
|
-
* }
|
|
835
|
-
* ]
|
|
836
|
-
*/
|
|
837
|
-
PriceInputMappings;
|
|
838
759
|
/**
|
|
839
760
|
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
840
761
|
*/
|
|
@@ -1398,7 +1319,7 @@ declare namespace Components {
|
|
|
1398
1319
|
*
|
|
1399
1320
|
*/
|
|
1400
1321
|
OrderStatus;
|
|
1401
|
-
line_items?: /*
|
|
1322
|
+
line_items?: /* Tracks a set of product prices, quantities, (discounts) and taxes. */ PriceItems;
|
|
1402
1323
|
/**
|
|
1403
1324
|
* type of source, e.g. journey or manual
|
|
1404
1325
|
* example:
|
|
@@ -1505,27 +1426,18 @@ declare namespace Components {
|
|
|
1505
1426
|
*/
|
|
1506
1427
|
is_composite_price?: boolean;
|
|
1507
1428
|
/**
|
|
1508
|
-
* Describes how to compute the price per period. Either `per_unit
|
|
1429
|
+
* Describes how to compute the price per period. Either `per_unit` or `tiered`.
|
|
1509
1430
|
* - `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity
|
|
1510
|
-
* - `
|
|
1511
|
-
* - `tiered_volume` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.
|
|
1512
|
-
* - `tiered_flatfee` While similar to tiered_volume, tiered flat fee charges for the same price (flat) for the entire range instead using the unit price to multiply the quantity.
|
|
1431
|
+
* - `tiered` indicates that the unit pricing will be computed using a tiering strategy as defined using the tiers and tiers_mode attributes.
|
|
1513
1432
|
*
|
|
1514
|
-
|
|
1515
|
-
pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee";
|
|
1516
|
-
/**
|
|
1517
|
-
* Defines an array of tiers. Each tier has an upper bound, an unit amount and a flat fee.
|
|
1433
|
+
* ⚠️ Tiered pricing is **not supported** yet.
|
|
1518
1434
|
*
|
|
1519
1435
|
*/
|
|
1520
|
-
|
|
1436
|
+
billing_scheme?: "per_unit";
|
|
1521
1437
|
/**
|
|
1522
1438
|
* A brief description of the price.
|
|
1523
1439
|
*/
|
|
1524
1440
|
description?: string;
|
|
1525
|
-
/**
|
|
1526
|
-
* A detailed description of the price. This is shown on the order document and order table.
|
|
1527
|
-
*/
|
|
1528
|
-
long_description?: string;
|
|
1529
1441
|
/**
|
|
1530
1442
|
* The default tax rate applicable to the product.
|
|
1531
1443
|
* This field is deprecated, use the new `tax` attribute.
|
|
@@ -1549,6 +1461,7 @@ declare namespace Components {
|
|
|
1549
1461
|
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
1550
1462
|
* "type": "VAT",
|
|
1551
1463
|
* "description": "Tax description",
|
|
1464
|
+
* "behavior": "Exclusive",
|
|
1552
1465
|
* "active": "true",
|
|
1553
1466
|
* "region": "DE",
|
|
1554
1467
|
* "region_label": "Germany",
|
|
@@ -1564,9 +1477,15 @@ declare namespace Components {
|
|
|
1564
1477
|
*/
|
|
1565
1478
|
Tax[];
|
|
1566
1479
|
/**
|
|
1567
|
-
* Specifies whether the price is considered `inclusive` of taxes or
|
|
1480
|
+
* Specifies whether the price is considered `inclusive` of taxes or `exclusive` of taxes.
|
|
1481
|
+
* One of `inclusive`, `exclusive`, or `unspecified`.
|
|
1482
|
+
*
|
|
1483
|
+
*/
|
|
1484
|
+
tax_behavior?: "inclusive" | "exclusive";
|
|
1485
|
+
/**
|
|
1486
|
+
* Defines the tiered pricing type of the price.
|
|
1568
1487
|
*/
|
|
1569
|
-
|
|
1488
|
+
tiers_mode?: "standard";
|
|
1570
1489
|
/**
|
|
1571
1490
|
* One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
|
|
1572
1491
|
*/
|
|
@@ -1637,7 +1556,7 @@ declare namespace Components {
|
|
|
1637
1556
|
/**
|
|
1638
1557
|
* The unit of measurement used for display purposes and possibly for calculations when the price is variable.
|
|
1639
1558
|
*/
|
|
1640
|
-
unit?: /* The unit of measurement used for display purposes and possibly for calculations when the price is variable. */ ("kw" | "kwh" | "m" | "m2" | "l"
|
|
1559
|
+
unit?: /* The unit of measurement used for display purposes and possibly for calculations when the price is variable. */ ("kw" | "kwh" | "m" | "m2" | "l") | string;
|
|
1641
1560
|
/**
|
|
1642
1561
|
* The price creation date
|
|
1643
1562
|
*/
|
|
@@ -1679,57 +1598,6 @@ declare namespace Components {
|
|
|
1679
1598
|
*/
|
|
1680
1599
|
_tags?: string[];
|
|
1681
1600
|
}
|
|
1682
|
-
/**
|
|
1683
|
-
* example:
|
|
1684
|
-
* {
|
|
1685
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
1686
|
-
* "frequency_unit": "weekly",
|
|
1687
|
-
* "value": 1000.245,
|
|
1688
|
-
* "name": "avg consumption",
|
|
1689
|
-
* "metadata": {
|
|
1690
|
-
* "journey_title": "energy journey",
|
|
1691
|
-
* "step_name": "avg consumption picker"
|
|
1692
|
-
* }
|
|
1693
|
-
* }
|
|
1694
|
-
*/
|
|
1695
|
-
export interface PriceInputMapping {
|
|
1696
|
-
price_id?: string;
|
|
1697
|
-
frequency_unit?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly" | "one_time";
|
|
1698
|
-
name?: string;
|
|
1699
|
-
value?: number;
|
|
1700
|
-
metadata?: {
|
|
1701
|
-
[name: string]: string;
|
|
1702
|
-
};
|
|
1703
|
-
}
|
|
1704
|
-
/**
|
|
1705
|
-
* example:
|
|
1706
|
-
* [
|
|
1707
|
-
* {
|
|
1708
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
1709
|
-
* "frequency_unit": "weekly",
|
|
1710
|
-
* "value": 1000.245,
|
|
1711
|
-
* "name": "avg consumption",
|
|
1712
|
-
* "metadata": {
|
|
1713
|
-
* "journey_title": "energy journey",
|
|
1714
|
-
* "step_name": "avg consumption picker"
|
|
1715
|
-
* }
|
|
1716
|
-
* }
|
|
1717
|
-
* ]
|
|
1718
|
-
*/
|
|
1719
|
-
export type PriceInputMappings = /**
|
|
1720
|
-
* example:
|
|
1721
|
-
* {
|
|
1722
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
1723
|
-
* "frequency_unit": "weekly",
|
|
1724
|
-
* "value": 1000.245,
|
|
1725
|
-
* "name": "avg consumption",
|
|
1726
|
-
* "metadata": {
|
|
1727
|
-
* "journey_title": "energy journey",
|
|
1728
|
-
* "step_name": "avg consumption picker"
|
|
1729
|
-
* }
|
|
1730
|
-
* }
|
|
1731
|
-
*/
|
|
1732
|
-
PriceInputMapping[];
|
|
1733
1601
|
/**
|
|
1734
1602
|
* Represents a price item
|
|
1735
1603
|
* example:
|
|
@@ -1825,39 +1693,14 @@ declare namespace Components {
|
|
|
1825
1693
|
* The sum of amounts of the price items by recurrence.
|
|
1826
1694
|
*/
|
|
1827
1695
|
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
|
|
1828
|
-
price_mappings?: /**
|
|
1829
|
-
* example:
|
|
1830
|
-
* [
|
|
1831
|
-
* {
|
|
1832
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
1833
|
-
* "frequency_unit": "weekly",
|
|
1834
|
-
* "value": 1000.245,
|
|
1835
|
-
* "name": "avg consumption",
|
|
1836
|
-
* "metadata": {
|
|
1837
|
-
* "journey_title": "energy journey",
|
|
1838
|
-
* "step_name": "avg consumption picker"
|
|
1839
|
-
* }
|
|
1840
|
-
* }
|
|
1841
|
-
* ]
|
|
1842
|
-
*/
|
|
1843
|
-
PriceInputMappings;
|
|
1844
|
-
/**
|
|
1845
|
-
* 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'.
|
|
1846
|
-
*/
|
|
1847
|
-
on_request_approved?: boolean;
|
|
1848
1696
|
/**
|
|
1849
1697
|
* One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
|
|
1850
1698
|
*/
|
|
1851
1699
|
type?: "one_time" | "recurring";
|
|
1852
1700
|
/**
|
|
1853
|
-
*
|
|
1854
|
-
* - `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity
|
|
1855
|
-
* - `tiered_graduated` indicates that the unit pricing will be computed using tiers attribute. The customer pays the price per unit in every range their purchase rises through.
|
|
1856
|
-
* - `tiered_volume` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.
|
|
1857
|
-
* - `tiered_flatfee` While similar to tiered_volume, tiered flat fee charges for the same price (flat) for the entire range instead using the unit price to multiply the quantity.
|
|
1858
|
-
*
|
|
1701
|
+
* 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'.
|
|
1859
1702
|
*/
|
|
1860
|
-
|
|
1703
|
+
on_request_approved?: boolean;
|
|
1861
1704
|
}
|
|
1862
1705
|
/**
|
|
1863
1706
|
* Represents a price input to the pricing library.
|
|
@@ -1868,22 +1711,6 @@ declare namespace Components {
|
|
|
1868
1711
|
* The quantity of products being purchased.
|
|
1869
1712
|
*/
|
|
1870
1713
|
quantity?: number;
|
|
1871
|
-
price_mappings?: /**
|
|
1872
|
-
* example:
|
|
1873
|
-
* [
|
|
1874
|
-
* {
|
|
1875
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
1876
|
-
* "frequency_unit": "weekly",
|
|
1877
|
-
* "value": 1000.245,
|
|
1878
|
-
* "name": "avg consumption",
|
|
1879
|
-
* "metadata": {
|
|
1880
|
-
* "journey_title": "energy journey",
|
|
1881
|
-
* "step_name": "avg consumption picker"
|
|
1882
|
-
* }
|
|
1883
|
-
* }
|
|
1884
|
-
* ]
|
|
1885
|
-
*/
|
|
1886
|
-
PriceInputMappings;
|
|
1887
1714
|
/**
|
|
1888
1715
|
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
1889
1716
|
*/
|
|
@@ -2003,27 +1830,10 @@ declare namespace Components {
|
|
|
2003
1830
|
* The unit amount value
|
|
2004
1831
|
*/
|
|
2005
1832
|
unit_amount?: number;
|
|
2006
|
-
unit_amount_currency?: /**
|
|
2007
|
-
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
2008
|
-
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
2009
|
-
*
|
|
2010
|
-
* example:
|
|
2011
|
-
* EUR
|
|
2012
|
-
*/
|
|
2013
|
-
Currency;
|
|
2014
1833
|
/**
|
|
2015
1834
|
* The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.
|
|
2016
1835
|
*/
|
|
2017
1836
|
unit_amount_decimal?: string;
|
|
2018
|
-
/**
|
|
2019
|
-
* Describes how to compute the price per period. Either `per_unit`, `tiered_graduated` or `tiered_volume`.
|
|
2020
|
-
* - `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity
|
|
2021
|
-
* - `tiered_graduated` indicates that the unit pricing will be computed using tiers attribute. The customer pays the price per unit in every range their purchase rises through.
|
|
2022
|
-
* - `tiered_volume` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.
|
|
2023
|
-
* - `tiered_flatfee` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.
|
|
2024
|
-
*
|
|
2025
|
-
*/
|
|
2026
|
-
pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee";
|
|
2027
1837
|
/**
|
|
2028
1838
|
* The snapshot of the price linked to the price item.
|
|
2029
1839
|
* example:
|
|
@@ -2042,27 +1852,18 @@ declare namespace Components {
|
|
|
2042
1852
|
*/
|
|
2043
1853
|
is_composite_price?: boolean;
|
|
2044
1854
|
/**
|
|
2045
|
-
* Describes how to compute the price per period. Either `per_unit
|
|
1855
|
+
* Describes how to compute the price per period. Either `per_unit` or `tiered`.
|
|
2046
1856
|
* - `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity
|
|
2047
|
-
* - `
|
|
2048
|
-
* - `tiered_volume` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.
|
|
2049
|
-
* - `tiered_flatfee` While similar to tiered_volume, tiered flat fee charges for the same price (flat) for the entire range instead using the unit price to multiply the quantity.
|
|
1857
|
+
* - `tiered` indicates that the unit pricing will be computed using a tiering strategy as defined using the tiers and tiers_mode attributes.
|
|
2050
1858
|
*
|
|
2051
|
-
|
|
2052
|
-
pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee";
|
|
2053
|
-
/**
|
|
2054
|
-
* Defines an array of tiers. Each tier has an upper bound, an unit amount and a flat fee.
|
|
1859
|
+
* ⚠️ Tiered pricing is **not supported** yet.
|
|
2055
1860
|
*
|
|
2056
1861
|
*/
|
|
2057
|
-
|
|
1862
|
+
billing_scheme?: "per_unit";
|
|
2058
1863
|
/**
|
|
2059
1864
|
* A brief description of the price.
|
|
2060
1865
|
*/
|
|
2061
1866
|
description?: string;
|
|
2062
|
-
/**
|
|
2063
|
-
* A detailed description of the price. This is shown on the order document and order table.
|
|
2064
|
-
*/
|
|
2065
|
-
long_description?: string;
|
|
2066
1867
|
/**
|
|
2067
1868
|
* The default tax rate applicable to the product.
|
|
2068
1869
|
* This field is deprecated, use the new `tax` attribute.
|
|
@@ -2086,6 +1887,7 @@ declare namespace Components {
|
|
|
2086
1887
|
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
2087
1888
|
* "type": "VAT",
|
|
2088
1889
|
* "description": "Tax description",
|
|
1890
|
+
* "behavior": "Exclusive",
|
|
2089
1891
|
* "active": "true",
|
|
2090
1892
|
* "region": "DE",
|
|
2091
1893
|
* "region_label": "Germany",
|
|
@@ -2101,9 +1903,15 @@ declare namespace Components {
|
|
|
2101
1903
|
*/
|
|
2102
1904
|
Tax[];
|
|
2103
1905
|
/**
|
|
2104
|
-
* Specifies whether the price is considered `inclusive` of taxes or
|
|
1906
|
+
* Specifies whether the price is considered `inclusive` of taxes or `exclusive` of taxes.
|
|
1907
|
+
* One of `inclusive`, `exclusive`, or `unspecified`.
|
|
1908
|
+
*
|
|
1909
|
+
*/
|
|
1910
|
+
tax_behavior?: "inclusive" | "exclusive";
|
|
1911
|
+
/**
|
|
1912
|
+
* Defines the tiered pricing type of the price.
|
|
2105
1913
|
*/
|
|
2106
|
-
|
|
1914
|
+
tiers_mode?: "standard";
|
|
2107
1915
|
/**
|
|
2108
1916
|
* One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
|
|
2109
1917
|
*/
|
|
@@ -2174,7 +1982,7 @@ declare namespace Components {
|
|
|
2174
1982
|
/**
|
|
2175
1983
|
* The unit of measurement used for display purposes and possibly for calculations when the price is variable.
|
|
2176
1984
|
*/
|
|
2177
|
-
unit?: /* The unit of measurement used for display purposes and possibly for calculations when the price is variable. */ ("kw" | "kwh" | "m" | "m2" | "l"
|
|
1985
|
+
unit?: /* The unit of measurement used for display purposes and possibly for calculations when the price is variable. */ ("kw" | "kwh" | "m" | "m2" | "l") | string;
|
|
2178
1986
|
/**
|
|
2179
1987
|
* The price creation date
|
|
2180
1988
|
*/
|
|
@@ -2222,16 +2030,7 @@ declare namespace Components {
|
|
|
2222
2030
|
/**
|
|
2223
2031
|
* A valid set of product prices, quantities, (discounts) and taxes from a client.
|
|
2224
2032
|
*/
|
|
2225
|
-
export type PriceItemsDto = (/* Represents a price input to the pricing library. */ PriceItemDto
|
|
2226
|
-
export interface PriceTier {
|
|
2227
|
-
up_to?: number | null;
|
|
2228
|
-
flat_fee_amount?: number;
|
|
2229
|
-
flat_fee_amount_decimal?: string;
|
|
2230
|
-
unit_amount?: number;
|
|
2231
|
-
unit_amount_decimal?: string;
|
|
2232
|
-
display_mode?: PriceTierDisplayMode;
|
|
2233
|
-
}
|
|
2234
|
-
export type PriceTierDisplayMode = "hidden" | "on_request";
|
|
2033
|
+
export type PriceItemsDto = (/* Represents a price input to the pricing library. */ PriceItemDto)[];
|
|
2235
2034
|
/**
|
|
2236
2035
|
* The result from the calculation of a set of price items.
|
|
2237
2036
|
*/
|
|
@@ -2243,14 +2042,7 @@ declare namespace Components {
|
|
|
2243
2042
|
* "$ref": "#/components/examples/price-item"
|
|
2244
2043
|
* }
|
|
2245
2044
|
*/
|
|
2246
|
-
PriceItem
|
|
2247
|
-
* Represents a composite price input to the pricing library.
|
|
2248
|
-
* example:
|
|
2249
|
-
* {
|
|
2250
|
-
* "$ref": "#/components/examples/price-item"
|
|
2251
|
-
* }
|
|
2252
|
-
*/
|
|
2253
|
-
CompositePriceItem)[];
|
|
2045
|
+
PriceItem)[];
|
|
2254
2046
|
/**
|
|
2255
2047
|
* Total of all items before (discounts or) taxes are applied.
|
|
2256
2048
|
*/
|
|
@@ -2406,6 +2198,7 @@ declare namespace Components {
|
|
|
2406
2198
|
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
2407
2199
|
* "type": "VAT",
|
|
2408
2200
|
* "description": "Tax description",
|
|
2201
|
+
* "behavior": "Exclusive",
|
|
2409
2202
|
* "active": "true",
|
|
2410
2203
|
* "region": "DE",
|
|
2411
2204
|
* "region_label": "Germany",
|
|
@@ -2437,6 +2230,7 @@ declare namespace Components {
|
|
|
2437
2230
|
type: "VAT" | "GST" | "Custom";
|
|
2438
2231
|
description?: string;
|
|
2439
2232
|
rate: number;
|
|
2233
|
+
behavior: "Exclusive" | "Inclusive" | "exclusive" | "inclusive";
|
|
2440
2234
|
active?: boolean;
|
|
2441
2235
|
region?: string;
|
|
2442
2236
|
region_label?: string;
|
|
@@ -2471,6 +2265,7 @@ declare namespace Components {
|
|
|
2471
2265
|
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
2472
2266
|
* "type": "VAT",
|
|
2473
2267
|
* "description": "Tax description",
|
|
2268
|
+
* "behavior": "Exclusive",
|
|
2474
2269
|
* "active": "true",
|
|
2475
2270
|
* "region": "DE",
|
|
2476
2271
|
* "region_label": "Germany",
|
|
@@ -2521,6 +2316,7 @@ declare namespace Components {
|
|
|
2521
2316
|
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
2522
2317
|
* "type": "VAT",
|
|
2523
2318
|
* "description": "Tax description",
|
|
2319
|
+
* "behavior": "Exclusive",
|
|
2524
2320
|
* "active": "true",
|
|
2525
2321
|
* "region": "DE",
|
|
2526
2322
|
* "region_label": "Germany",
|
|
@@ -2567,45 +2363,6 @@ declare namespace Components {
|
|
|
2567
2363
|
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
|
|
2568
2364
|
};
|
|
2569
2365
|
}
|
|
2570
|
-
/**
|
|
2571
|
-
* The availability rule error
|
|
2572
|
-
*/
|
|
2573
|
-
export interface ValidateAvailabilityFileError {
|
|
2574
|
-
/**
|
|
2575
|
-
* The line number where the error was found
|
|
2576
|
-
*/
|
|
2577
|
-
line?: number;
|
|
2578
|
-
/**
|
|
2579
|
-
* The error message
|
|
2580
|
-
*/
|
|
2581
|
-
msg: string;
|
|
2582
|
-
}
|
|
2583
|
-
/**
|
|
2584
|
-
* The availability map file result payload
|
|
2585
|
-
* example:
|
|
2586
|
-
* {
|
|
2587
|
-
* "rules_parsed_count": 8,
|
|
2588
|
-
* "errors": [
|
|
2589
|
-
* "File must be UTF-8 encoded",
|
|
2590
|
-
* "Error on line 3 - street_number must be of type number",
|
|
2591
|
-
* "Error on line 6 - start_date cant be greater than end_date"
|
|
2592
|
-
* ]
|
|
2593
|
-
* }
|
|
2594
|
-
*/
|
|
2595
|
-
export interface ValidateAvailabilityFileResult {
|
|
2596
|
-
/**
|
|
2597
|
-
* The status of the validation
|
|
2598
|
-
*/
|
|
2599
|
-
status: "success" | "error";
|
|
2600
|
-
/**
|
|
2601
|
-
* The number of rules successfully parsed
|
|
2602
|
-
*/
|
|
2603
|
-
rules_parsed_count: number;
|
|
2604
|
-
/**
|
|
2605
|
-
* The errors found on the file
|
|
2606
|
-
*/
|
|
2607
|
-
errors: /* The availability rule error */ ValidateAvailabilityFileError[];
|
|
2608
|
-
}
|
|
2609
2366
|
}
|
|
2610
2367
|
}
|
|
2611
2368
|
declare namespace Paths {
|
|
@@ -2730,34 +2487,6 @@ declare namespace Paths {
|
|
|
2730
2487
|
export type $400 = Components.Schemas.Error;
|
|
2731
2488
|
}
|
|
2732
2489
|
}
|
|
2733
|
-
namespace $ValidateAvailabilityFile {
|
|
2734
|
-
export interface HeaderParameters {
|
|
2735
|
-
"X-Epilot-Org-ID": Parameters.XEpilotOrgID;
|
|
2736
|
-
}
|
|
2737
|
-
namespace Parameters {
|
|
2738
|
-
export type Id = string;
|
|
2739
|
-
export type XEpilotOrgID = string;
|
|
2740
|
-
}
|
|
2741
|
-
export interface PathParameters {
|
|
2742
|
-
id: Parameters.Id;
|
|
2743
|
-
}
|
|
2744
|
-
namespace Responses {
|
|
2745
|
-
export type $200 = /**
|
|
2746
|
-
* The availability map file result payload
|
|
2747
|
-
* example:
|
|
2748
|
-
* {
|
|
2749
|
-
* "rules_parsed_count": 8,
|
|
2750
|
-
* "errors": [
|
|
2751
|
-
* "File must be UTF-8 encoded",
|
|
2752
|
-
* "Error on line 3 - street_number must be of type number",
|
|
2753
|
-
* "Error on line 6 - start_date cant be greater than end_date"
|
|
2754
|
-
* ]
|
|
2755
|
-
* }
|
|
2756
|
-
*/
|
|
2757
|
-
Components.Schemas.ValidateAvailabilityFileResult;
|
|
2758
|
-
export type $400 = Components.Schemas.Error;
|
|
2759
|
-
}
|
|
2760
|
-
}
|
|
2761
2490
|
namespace CreateOrder {
|
|
2762
2491
|
export type RequestBody = /* Order Entity Payload */ Components.Schemas.OrderPayload;
|
|
2763
2492
|
namespace Responses {
|
|
@@ -2856,16 +2585,6 @@ export interface OperationMethods {
|
|
|
2856
2585
|
data?: Paths.$AvailabilityCheck.RequestBody,
|
|
2857
2586
|
config?: AxiosRequestConfig
|
|
2858
2587
|
): OperationResponse<Paths.$AvailabilityCheck.Responses.$200>
|
|
2859
|
-
/**
|
|
2860
|
-
* $validateAvailabilityFile - validateAvailabilityFile
|
|
2861
|
-
*
|
|
2862
|
-
* Validates an availability file, it returns an array of errors if the file is invalid
|
|
2863
|
-
*/
|
|
2864
|
-
'$validateAvailabilityFile'(
|
|
2865
|
-
parameters?: Parameters<Paths.$ValidateAvailabilityFile.PathParameters & Paths.$ValidateAvailabilityFile.HeaderParameters> | null,
|
|
2866
|
-
data?: any,
|
|
2867
|
-
config?: AxiosRequestConfig
|
|
2868
|
-
): OperationResponse<Paths.$ValidateAvailabilityFile.Responses.$200>
|
|
2869
2588
|
/**
|
|
2870
2589
|
* $createOpportunity - createOpportunity
|
|
2871
2590
|
*
|
|
@@ -2954,18 +2673,6 @@ export interface PathsDictionary {
|
|
|
2954
2673
|
config?: AxiosRequestConfig
|
|
2955
2674
|
): OperationResponse<Paths.$AvailabilityCheck.Responses.$200>
|
|
2956
2675
|
}
|
|
2957
|
-
['/v1/validate-availability/{id}']: {
|
|
2958
|
-
/**
|
|
2959
|
-
* $validateAvailabilityFile - validateAvailabilityFile
|
|
2960
|
-
*
|
|
2961
|
-
* Validates an availability file, it returns an array of errors if the file is invalid
|
|
2962
|
-
*/
|
|
2963
|
-
'get'(
|
|
2964
|
-
parameters?: Parameters<Paths.$ValidateAvailabilityFile.PathParameters & Paths.$ValidateAvailabilityFile.HeaderParameters> | null,
|
|
2965
|
-
data?: any,
|
|
2966
|
-
config?: AxiosRequestConfig
|
|
2967
|
-
): OperationResponse<Paths.$ValidateAvailabilityFile.Responses.$200>
|
|
2968
|
-
}
|
|
2969
2676
|
['/v1/public/opportunity']: {
|
|
2970
2677
|
/**
|
|
2971
2678
|
* $createOpportunity - createOpportunity
|