@epilot/pricing-client 3.5.0 → 3.6.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/definition.js +1 -1
- package/dist/openapi-runtime.json +117 -0
- package/dist/openapi.d.ts +33 -318
- package/dist/openapi.json +4377 -4770
- package/package.json +2 -2
package/dist/openapi.d.ts
CHANGED
|
@@ -252,25 +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
255
|
}
|
|
275
256
|
/**
|
|
276
257
|
* Represents a valid base price item from a client.
|
|
@@ -281,25 +262,6 @@ declare namespace Components {
|
|
|
281
262
|
* The quantity of products being purchased.
|
|
282
263
|
*/
|
|
283
264
|
quantity?: number;
|
|
284
|
-
/**
|
|
285
|
-
* Price mapping information required to compute totals
|
|
286
|
-
*/
|
|
287
|
-
price_mappings?: /**
|
|
288
|
-
* example:
|
|
289
|
-
* [
|
|
290
|
-
* {
|
|
291
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
292
|
-
* "frequency_unit": "weekly",
|
|
293
|
-
* "value": 1000.245,
|
|
294
|
-
* "name": "avg consumption",
|
|
295
|
-
* "metadata": {
|
|
296
|
-
* "journey_title": "energy journey",
|
|
297
|
-
* "step_name": "avg consumption picker"
|
|
298
|
-
* }
|
|
299
|
-
* }
|
|
300
|
-
* ]
|
|
301
|
-
*/
|
|
302
|
-
PriceInputMappings;
|
|
303
265
|
/**
|
|
304
266
|
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
305
267
|
*/
|
|
@@ -773,22 +735,6 @@ declare namespace Components {
|
|
|
773
735
|
* The sum of amounts of the price items by recurrence.
|
|
774
736
|
*/
|
|
775
737
|
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
|
|
776
|
-
price_mappings?: /**
|
|
777
|
-
* example:
|
|
778
|
-
* [
|
|
779
|
-
* {
|
|
780
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
781
|
-
* "frequency_unit": "weekly",
|
|
782
|
-
* "value": 1000.245,
|
|
783
|
-
* "name": "avg consumption",
|
|
784
|
-
* "metadata": {
|
|
785
|
-
* "journey_title": "energy journey",
|
|
786
|
-
* "step_name": "avg consumption picker"
|
|
787
|
-
* }
|
|
788
|
-
* }
|
|
789
|
-
* ]
|
|
790
|
-
*/
|
|
791
|
-
PriceInputMappings;
|
|
792
738
|
/**
|
|
793
739
|
* Contains price item configurations, per price component, when the main price item is a [composite price](/api/pricing#tag/dynamic_price_schema).
|
|
794
740
|
*/
|
|
@@ -800,7 +746,6 @@ declare namespace Components {
|
|
|
800
746
|
* }
|
|
801
747
|
*/
|
|
802
748
|
PriceItem[];
|
|
803
|
-
total_details?: /* The total details with tax (and discount) aggregated totals. */ TotalDetails;
|
|
804
749
|
}
|
|
805
750
|
/**
|
|
806
751
|
* Represents a composite price input to the pricing library.
|
|
@@ -811,22 +756,6 @@ declare namespace Components {
|
|
|
811
756
|
* The quantity of products being purchased.
|
|
812
757
|
*/
|
|
813
758
|
quantity?: number;
|
|
814
|
-
price_mappings?: /**
|
|
815
|
-
* example:
|
|
816
|
-
* [
|
|
817
|
-
* {
|
|
818
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
819
|
-
* "frequency_unit": "weekly",
|
|
820
|
-
* "value": 1000.245,
|
|
821
|
-
* "name": "avg consumption",
|
|
822
|
-
* "metadata": {
|
|
823
|
-
* "journey_title": "energy journey",
|
|
824
|
-
* "step_name": "avg consumption picker"
|
|
825
|
-
* }
|
|
826
|
-
* }
|
|
827
|
-
* ]
|
|
828
|
-
*/
|
|
829
|
-
PriceInputMappings;
|
|
830
759
|
/**
|
|
831
760
|
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
832
761
|
*/
|
|
@@ -1390,7 +1319,7 @@ declare namespace Components {
|
|
|
1390
1319
|
*
|
|
1391
1320
|
*/
|
|
1392
1321
|
OrderStatus;
|
|
1393
|
-
line_items?: /*
|
|
1322
|
+
line_items?: /* Tracks a set of product prices, quantities, (discounts) and taxes. */ PriceItems;
|
|
1394
1323
|
/**
|
|
1395
1324
|
* type of source, e.g. journey or manual
|
|
1396
1325
|
* example:
|
|
@@ -1497,27 +1426,18 @@ declare namespace Components {
|
|
|
1497
1426
|
*/
|
|
1498
1427
|
is_composite_price?: boolean;
|
|
1499
1428
|
/**
|
|
1500
|
-
* 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`.
|
|
1501
1430
|
* - `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity
|
|
1502
|
-
* - `
|
|
1503
|
-
* - `tiered_volume` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.
|
|
1504
|
-
* - `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.
|
|
1505
1432
|
*
|
|
1506
|
-
|
|
1507
|
-
pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee";
|
|
1508
|
-
/**
|
|
1509
|
-
* 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.
|
|
1510
1434
|
*
|
|
1511
1435
|
*/
|
|
1512
|
-
|
|
1436
|
+
billing_scheme?: "per_unit";
|
|
1513
1437
|
/**
|
|
1514
1438
|
* A brief description of the price.
|
|
1515
1439
|
*/
|
|
1516
1440
|
description?: string;
|
|
1517
|
-
/**
|
|
1518
|
-
* A detailed description of the price. This is shown on the order document and order table.
|
|
1519
|
-
*/
|
|
1520
|
-
long_description?: string;
|
|
1521
1441
|
/**
|
|
1522
1442
|
* The default tax rate applicable to the product.
|
|
1523
1443
|
* This field is deprecated, use the new `tax` attribute.
|
|
@@ -1541,6 +1461,7 @@ declare namespace Components {
|
|
|
1541
1461
|
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
1542
1462
|
* "type": "VAT",
|
|
1543
1463
|
* "description": "Tax description",
|
|
1464
|
+
* "behavior": "Exclusive",
|
|
1544
1465
|
* "active": "true",
|
|
1545
1466
|
* "region": "DE",
|
|
1546
1467
|
* "region_label": "Germany",
|
|
@@ -1556,9 +1477,15 @@ declare namespace Components {
|
|
|
1556
1477
|
*/
|
|
1557
1478
|
Tax[];
|
|
1558
1479
|
/**
|
|
1559
|
-
* 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.
|
|
1560
1487
|
*/
|
|
1561
|
-
|
|
1488
|
+
tiers_mode?: "standard";
|
|
1562
1489
|
/**
|
|
1563
1490
|
* One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
|
|
1564
1491
|
*/
|
|
@@ -1671,57 +1598,6 @@ declare namespace Components {
|
|
|
1671
1598
|
*/
|
|
1672
1599
|
_tags?: string[];
|
|
1673
1600
|
}
|
|
1674
|
-
/**
|
|
1675
|
-
* example:
|
|
1676
|
-
* {
|
|
1677
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
1678
|
-
* "frequency_unit": "weekly",
|
|
1679
|
-
* "value": 1000.245,
|
|
1680
|
-
* "name": "avg consumption",
|
|
1681
|
-
* "metadata": {
|
|
1682
|
-
* "journey_title": "energy journey",
|
|
1683
|
-
* "step_name": "avg consumption picker"
|
|
1684
|
-
* }
|
|
1685
|
-
* }
|
|
1686
|
-
*/
|
|
1687
|
-
export interface PriceInputMapping {
|
|
1688
|
-
price_id?: string;
|
|
1689
|
-
frequency_unit?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly" | "one_time";
|
|
1690
|
-
name?: string;
|
|
1691
|
-
value?: number;
|
|
1692
|
-
metadata?: {
|
|
1693
|
-
[name: string]: string;
|
|
1694
|
-
};
|
|
1695
|
-
}
|
|
1696
|
-
/**
|
|
1697
|
-
* example:
|
|
1698
|
-
* [
|
|
1699
|
-
* {
|
|
1700
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
1701
|
-
* "frequency_unit": "weekly",
|
|
1702
|
-
* "value": 1000.245,
|
|
1703
|
-
* "name": "avg consumption",
|
|
1704
|
-
* "metadata": {
|
|
1705
|
-
* "journey_title": "energy journey",
|
|
1706
|
-
* "step_name": "avg consumption picker"
|
|
1707
|
-
* }
|
|
1708
|
-
* }
|
|
1709
|
-
* ]
|
|
1710
|
-
*/
|
|
1711
|
-
export type PriceInputMappings = /**
|
|
1712
|
-
* example:
|
|
1713
|
-
* {
|
|
1714
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
1715
|
-
* "frequency_unit": "weekly",
|
|
1716
|
-
* "value": 1000.245,
|
|
1717
|
-
* "name": "avg consumption",
|
|
1718
|
-
* "metadata": {
|
|
1719
|
-
* "journey_title": "energy journey",
|
|
1720
|
-
* "step_name": "avg consumption picker"
|
|
1721
|
-
* }
|
|
1722
|
-
* }
|
|
1723
|
-
*/
|
|
1724
|
-
PriceInputMapping[];
|
|
1725
1601
|
/**
|
|
1726
1602
|
* Represents a price item
|
|
1727
1603
|
* example:
|
|
@@ -1817,22 +1693,6 @@ declare namespace Components {
|
|
|
1817
1693
|
* The sum of amounts of the price items by recurrence.
|
|
1818
1694
|
*/
|
|
1819
1695
|
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
|
|
1820
|
-
price_mappings?: /**
|
|
1821
|
-
* example:
|
|
1822
|
-
* [
|
|
1823
|
-
* {
|
|
1824
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
1825
|
-
* "frequency_unit": "weekly",
|
|
1826
|
-
* "value": 1000.245,
|
|
1827
|
-
* "name": "avg consumption",
|
|
1828
|
-
* "metadata": {
|
|
1829
|
-
* "journey_title": "energy journey",
|
|
1830
|
-
* "step_name": "avg consumption picker"
|
|
1831
|
-
* }
|
|
1832
|
-
* }
|
|
1833
|
-
* ]
|
|
1834
|
-
*/
|
|
1835
|
-
PriceInputMappings;
|
|
1836
1696
|
/**
|
|
1837
1697
|
* One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
|
|
1838
1698
|
*/
|
|
@@ -1841,15 +1701,6 @@ declare namespace Components {
|
|
|
1841
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'.
|
|
1842
1702
|
*/
|
|
1843
1703
|
on_request_approved?: boolean;
|
|
1844
|
-
/**
|
|
1845
|
-
* Describes how to compute the price per period. Either `per_unit`, `tiered_graduated` or `tiered_volume`.
|
|
1846
|
-
* - `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity
|
|
1847
|
-
* - `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.
|
|
1848
|
-
* - `tiered_volume` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.
|
|
1849
|
-
* - `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.
|
|
1850
|
-
*
|
|
1851
|
-
*/
|
|
1852
|
-
pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee";
|
|
1853
1704
|
}
|
|
1854
1705
|
/**
|
|
1855
1706
|
* Represents a price input to the pricing library.
|
|
@@ -1860,22 +1711,6 @@ declare namespace Components {
|
|
|
1860
1711
|
* The quantity of products being purchased.
|
|
1861
1712
|
*/
|
|
1862
1713
|
quantity?: number;
|
|
1863
|
-
price_mappings?: /**
|
|
1864
|
-
* example:
|
|
1865
|
-
* [
|
|
1866
|
-
* {
|
|
1867
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
1868
|
-
* "frequency_unit": "weekly",
|
|
1869
|
-
* "value": 1000.245,
|
|
1870
|
-
* "name": "avg consumption",
|
|
1871
|
-
* "metadata": {
|
|
1872
|
-
* "journey_title": "energy journey",
|
|
1873
|
-
* "step_name": "avg consumption picker"
|
|
1874
|
-
* }
|
|
1875
|
-
* }
|
|
1876
|
-
* ]
|
|
1877
|
-
*/
|
|
1878
|
-
PriceInputMappings;
|
|
1879
1714
|
/**
|
|
1880
1715
|
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
1881
1716
|
*/
|
|
@@ -1995,27 +1830,10 @@ declare namespace Components {
|
|
|
1995
1830
|
* The unit amount value
|
|
1996
1831
|
*/
|
|
1997
1832
|
unit_amount?: number;
|
|
1998
|
-
unit_amount_currency?: /**
|
|
1999
|
-
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
2000
|
-
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
2001
|
-
*
|
|
2002
|
-
* example:
|
|
2003
|
-
* EUR
|
|
2004
|
-
*/
|
|
2005
|
-
Currency;
|
|
2006
1833
|
/**
|
|
2007
1834
|
* The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.
|
|
2008
1835
|
*/
|
|
2009
1836
|
unit_amount_decimal?: string;
|
|
2010
|
-
/**
|
|
2011
|
-
* Describes how to compute the price per period. Either `per_unit`, `tiered_graduated` or `tiered_volume`.
|
|
2012
|
-
* - `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity
|
|
2013
|
-
* - `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.
|
|
2014
|
-
* - `tiered_volume` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.
|
|
2015
|
-
* - `tiered_flatfee` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.
|
|
2016
|
-
*
|
|
2017
|
-
*/
|
|
2018
|
-
pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee";
|
|
2019
1837
|
/**
|
|
2020
1838
|
* The snapshot of the price linked to the price item.
|
|
2021
1839
|
* example:
|
|
@@ -2034,27 +1852,18 @@ declare namespace Components {
|
|
|
2034
1852
|
*/
|
|
2035
1853
|
is_composite_price?: boolean;
|
|
2036
1854
|
/**
|
|
2037
|
-
* 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`.
|
|
2038
1856
|
* - `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity
|
|
2039
|
-
* - `
|
|
2040
|
-
* - `tiered_volume` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.
|
|
2041
|
-
* - `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.
|
|
2042
1858
|
*
|
|
2043
|
-
|
|
2044
|
-
pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee";
|
|
2045
|
-
/**
|
|
2046
|
-
* 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.
|
|
2047
1860
|
*
|
|
2048
1861
|
*/
|
|
2049
|
-
|
|
1862
|
+
billing_scheme?: "per_unit";
|
|
2050
1863
|
/**
|
|
2051
1864
|
* A brief description of the price.
|
|
2052
1865
|
*/
|
|
2053
1866
|
description?: string;
|
|
2054
|
-
/**
|
|
2055
|
-
* A detailed description of the price. This is shown on the order document and order table.
|
|
2056
|
-
*/
|
|
2057
|
-
long_description?: string;
|
|
2058
1867
|
/**
|
|
2059
1868
|
* The default tax rate applicable to the product.
|
|
2060
1869
|
* This field is deprecated, use the new `tax` attribute.
|
|
@@ -2078,6 +1887,7 @@ declare namespace Components {
|
|
|
2078
1887
|
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
2079
1888
|
* "type": "VAT",
|
|
2080
1889
|
* "description": "Tax description",
|
|
1890
|
+
* "behavior": "Exclusive",
|
|
2081
1891
|
* "active": "true",
|
|
2082
1892
|
* "region": "DE",
|
|
2083
1893
|
* "region_label": "Germany",
|
|
@@ -2093,9 +1903,15 @@ declare namespace Components {
|
|
|
2093
1903
|
*/
|
|
2094
1904
|
Tax[];
|
|
2095
1905
|
/**
|
|
2096
|
-
* 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
|
+
*
|
|
2097
1909
|
*/
|
|
2098
|
-
|
|
1910
|
+
tax_behavior?: "inclusive" | "exclusive";
|
|
1911
|
+
/**
|
|
1912
|
+
* Defines the tiered pricing type of the price.
|
|
1913
|
+
*/
|
|
1914
|
+
tiers_mode?: "standard";
|
|
2099
1915
|
/**
|
|
2100
1916
|
* One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
|
|
2101
1917
|
*/
|
|
@@ -2214,16 +2030,7 @@ declare namespace Components {
|
|
|
2214
2030
|
/**
|
|
2215
2031
|
* A valid set of product prices, quantities, (discounts) and taxes from a client.
|
|
2216
2032
|
*/
|
|
2217
|
-
export type PriceItemsDto = (/* Represents a price input to the pricing library. */ PriceItemDto
|
|
2218
|
-
export interface PriceTier {
|
|
2219
|
-
up_to?: number | null;
|
|
2220
|
-
flat_fee_amount?: number;
|
|
2221
|
-
flat_fee_amount_decimal?: string;
|
|
2222
|
-
unit_amount?: number;
|
|
2223
|
-
unit_amount_decimal?: string;
|
|
2224
|
-
display_mode?: PriceTierDisplayMode;
|
|
2225
|
-
}
|
|
2226
|
-
export type PriceTierDisplayMode = "hidden" | "on_request";
|
|
2033
|
+
export type PriceItemsDto = (/* Represents a price input to the pricing library. */ PriceItemDto)[];
|
|
2227
2034
|
/**
|
|
2228
2035
|
* The result from the calculation of a set of price items.
|
|
2229
2036
|
*/
|
|
@@ -2235,14 +2042,7 @@ declare namespace Components {
|
|
|
2235
2042
|
* "$ref": "#/components/examples/price-item"
|
|
2236
2043
|
* }
|
|
2237
2044
|
*/
|
|
2238
|
-
PriceItem
|
|
2239
|
-
* Represents a composite price input to the pricing library.
|
|
2240
|
-
* example:
|
|
2241
|
-
* {
|
|
2242
|
-
* "$ref": "#/components/examples/price-item"
|
|
2243
|
-
* }
|
|
2244
|
-
*/
|
|
2245
|
-
CompositePriceItem)[];
|
|
2045
|
+
PriceItem)[];
|
|
2246
2046
|
/**
|
|
2247
2047
|
* Total of all items before (discounts or) taxes are applied.
|
|
2248
2048
|
*/
|
|
@@ -2398,6 +2198,7 @@ declare namespace Components {
|
|
|
2398
2198
|
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
2399
2199
|
* "type": "VAT",
|
|
2400
2200
|
* "description": "Tax description",
|
|
2201
|
+
* "behavior": "Exclusive",
|
|
2401
2202
|
* "active": "true",
|
|
2402
2203
|
* "region": "DE",
|
|
2403
2204
|
* "region_label": "Germany",
|
|
@@ -2429,6 +2230,7 @@ declare namespace Components {
|
|
|
2429
2230
|
type: "VAT" | "GST" | "Custom";
|
|
2430
2231
|
description?: string;
|
|
2431
2232
|
rate: number;
|
|
2233
|
+
behavior: "Exclusive" | "Inclusive" | "exclusive" | "inclusive";
|
|
2432
2234
|
active?: boolean;
|
|
2433
2235
|
region?: string;
|
|
2434
2236
|
region_label?: string;
|
|
@@ -2463,6 +2265,7 @@ declare namespace Components {
|
|
|
2463
2265
|
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
2464
2266
|
* "type": "VAT",
|
|
2465
2267
|
* "description": "Tax description",
|
|
2268
|
+
* "behavior": "Exclusive",
|
|
2466
2269
|
* "active": "true",
|
|
2467
2270
|
* "region": "DE",
|
|
2468
2271
|
* "region_label": "Germany",
|
|
@@ -2513,6 +2316,7 @@ declare namespace Components {
|
|
|
2513
2316
|
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
2514
2317
|
* "type": "VAT",
|
|
2515
2318
|
* "description": "Tax description",
|
|
2319
|
+
* "behavior": "Exclusive",
|
|
2516
2320
|
* "active": "true",
|
|
2517
2321
|
* "region": "DE",
|
|
2518
2322
|
* "region_label": "Germany",
|
|
@@ -2559,45 +2363,6 @@ declare namespace Components {
|
|
|
2559
2363
|
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
|
|
2560
2364
|
};
|
|
2561
2365
|
}
|
|
2562
|
-
/**
|
|
2563
|
-
* The availability rule error
|
|
2564
|
-
*/
|
|
2565
|
-
export interface ValidateAvailabilityFileError {
|
|
2566
|
-
/**
|
|
2567
|
-
* The line number where the error was found
|
|
2568
|
-
*/
|
|
2569
|
-
line: number;
|
|
2570
|
-
/**
|
|
2571
|
-
* The error message
|
|
2572
|
-
*/
|
|
2573
|
-
msg: string;
|
|
2574
|
-
}
|
|
2575
|
-
/**
|
|
2576
|
-
* The availability map file result payload
|
|
2577
|
-
* example:
|
|
2578
|
-
* {
|
|
2579
|
-
* "rules_parsed_count": 8,
|
|
2580
|
-
* "errors": [
|
|
2581
|
-
* "File must be UTF-8 encoded",
|
|
2582
|
-
* "Error on line 3 - street_number must be of type number",
|
|
2583
|
-
* "Error on line 6 - start_date cant be greater than end_date"
|
|
2584
|
-
* ]
|
|
2585
|
-
* }
|
|
2586
|
-
*/
|
|
2587
|
-
export interface ValidateAvailabilityFileResult {
|
|
2588
|
-
/**
|
|
2589
|
-
* The status of the validation
|
|
2590
|
-
*/
|
|
2591
|
-
status: "success" | "error";
|
|
2592
|
-
/**
|
|
2593
|
-
* The number of rules successfully parsed
|
|
2594
|
-
*/
|
|
2595
|
-
rules_parsed_count: number;
|
|
2596
|
-
/**
|
|
2597
|
-
* The errors found on the file
|
|
2598
|
-
*/
|
|
2599
|
-
errors: /* The availability rule error */ ValidateAvailabilityFileError[];
|
|
2600
|
-
}
|
|
2601
2366
|
}
|
|
2602
2367
|
}
|
|
2603
2368
|
declare namespace Paths {
|
|
@@ -2722,34 +2487,6 @@ declare namespace Paths {
|
|
|
2722
2487
|
export type $400 = Components.Schemas.Error;
|
|
2723
2488
|
}
|
|
2724
2489
|
}
|
|
2725
|
-
namespace $ValidateAvailabilityFile {
|
|
2726
|
-
export interface HeaderParameters {
|
|
2727
|
-
"X-Epilot-Org-ID": Parameters.XEpilotOrgID;
|
|
2728
|
-
}
|
|
2729
|
-
namespace Parameters {
|
|
2730
|
-
export type Id = string;
|
|
2731
|
-
export type XEpilotOrgID = string;
|
|
2732
|
-
}
|
|
2733
|
-
export interface PathParameters {
|
|
2734
|
-
id: Parameters.Id;
|
|
2735
|
-
}
|
|
2736
|
-
namespace Responses {
|
|
2737
|
-
export type $200 = /**
|
|
2738
|
-
* The availability map file result payload
|
|
2739
|
-
* example:
|
|
2740
|
-
* {
|
|
2741
|
-
* "rules_parsed_count": 8,
|
|
2742
|
-
* "errors": [
|
|
2743
|
-
* "File must be UTF-8 encoded",
|
|
2744
|
-
* "Error on line 3 - street_number must be of type number",
|
|
2745
|
-
* "Error on line 6 - start_date cant be greater than end_date"
|
|
2746
|
-
* ]
|
|
2747
|
-
* }
|
|
2748
|
-
*/
|
|
2749
|
-
Components.Schemas.ValidateAvailabilityFileResult;
|
|
2750
|
-
export type $400 = Components.Schemas.Error;
|
|
2751
|
-
}
|
|
2752
|
-
}
|
|
2753
2490
|
namespace CreateOrder {
|
|
2754
2491
|
export type RequestBody = /* Order Entity Payload */ Components.Schemas.OrderPayload;
|
|
2755
2492
|
namespace Responses {
|
|
@@ -2848,16 +2585,6 @@ export interface OperationMethods {
|
|
|
2848
2585
|
data?: Paths.$AvailabilityCheck.RequestBody,
|
|
2849
2586
|
config?: AxiosRequestConfig
|
|
2850
2587
|
): OperationResponse<Paths.$AvailabilityCheck.Responses.$200>
|
|
2851
|
-
/**
|
|
2852
|
-
* $validateAvailabilityFile - validateAvailabilityFile
|
|
2853
|
-
*
|
|
2854
|
-
* Validates an availability file, it returns an array of errors if the file is invalid
|
|
2855
|
-
*/
|
|
2856
|
-
'$validateAvailabilityFile'(
|
|
2857
|
-
parameters?: Parameters<Paths.$ValidateAvailabilityFile.PathParameters & Paths.$ValidateAvailabilityFile.HeaderParameters> | null,
|
|
2858
|
-
data?: any,
|
|
2859
|
-
config?: AxiosRequestConfig
|
|
2860
|
-
): OperationResponse<Paths.$ValidateAvailabilityFile.Responses.$200>
|
|
2861
2588
|
/**
|
|
2862
2589
|
* $createOpportunity - createOpportunity
|
|
2863
2590
|
*
|
|
@@ -2946,18 +2673,6 @@ export interface PathsDictionary {
|
|
|
2946
2673
|
config?: AxiosRequestConfig
|
|
2947
2674
|
): OperationResponse<Paths.$AvailabilityCheck.Responses.$200>
|
|
2948
2675
|
}
|
|
2949
|
-
['/v1/validate-availability/{id}']: {
|
|
2950
|
-
/**
|
|
2951
|
-
* $validateAvailabilityFile - validateAvailabilityFile
|
|
2952
|
-
*
|
|
2953
|
-
* Validates an availability file, it returns an array of errors if the file is invalid
|
|
2954
|
-
*/
|
|
2955
|
-
'get'(
|
|
2956
|
-
parameters?: Parameters<Paths.$ValidateAvailabilityFile.PathParameters & Paths.$ValidateAvailabilityFile.HeaderParameters> | null,
|
|
2957
|
-
data?: any,
|
|
2958
|
-
config?: AxiosRequestConfig
|
|
2959
|
-
): OperationResponse<Paths.$ValidateAvailabilityFile.Responses.$200>
|
|
2960
|
-
}
|
|
2961
2676
|
['/v1/public/opportunity']: {
|
|
2962
2677
|
/**
|
|
2963
2678
|
* $createOpportunity - createOpportunity
|