@epilot/pricing-client 3.36.1 → 3.36.3

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
@@ -473,6 +473,14 @@ declare namespace Components {
473
473
  * The discount amount applied to the tax represented as a decimal string
474
474
  */
475
475
  tax_discount_amount_decimal?: string;
476
+ /**
477
+ * The net discount amount applied
478
+ */
479
+ discount_amount_net?: number;
480
+ /**
481
+ * The net discount amount applied represented as a decimal string
482
+ */
483
+ discount_amount_net_decimal?: string;
476
484
  /**
477
485
  * Total tax amount for this line item.
478
486
  */
@@ -1497,6 +1505,14 @@ declare namespace Components {
1497
1505
  * The discount amount applied to the tax represented as a decimal string
1498
1506
  */
1499
1507
  tax_discount_amount_decimal?: string;
1508
+ /**
1509
+ * The net discount amount applied
1510
+ */
1511
+ discount_amount_net?: number;
1512
+ /**
1513
+ * The net discount amount applied represented as a decimal string
1514
+ */
1515
+ discount_amount_net_decimal?: string;
1500
1516
  /**
1501
1517
  * Total tax amount for this line item.
1502
1518
  */
@@ -1769,6 +1785,12 @@ declare namespace Components {
1769
1785
  * The ids of the price components that should be selected for the price calculation.
1770
1786
  */
1771
1787
  selected_price_component_ids?: string[];
1788
+ /**
1789
+ * The map of coupon ids applicable to the price components
1790
+ */
1791
+ price_component_coupon_ids?: {
1792
+ [name: string]: string[];
1793
+ };
1772
1794
  _price?: /**
1773
1795
  * The price entity schema for dynamic pricing
1774
1796
  * example:
@@ -1792,15 +1814,15 @@ declare namespace Components {
1792
1814
  */
1793
1815
  consumption_type?: "household" | "heating_pump" | "night_storage_heating" | "night_storage_heating_common_meter";
1794
1816
  /**
1795
- * The monthly consumption to compute the price in kWh (to be deprecated in favor of consumption_HT)
1817
+ * (DEPRECATED - use consumption_HT) The yearly consumption to compute the price in kWh
1796
1818
  */
1797
1819
  consumption?: number;
1798
1820
  /**
1799
- * The monthly HT consumption to compute the price in kWh
1821
+ * The yearly HT consumption to compute the price in kWh
1800
1822
  */
1801
1823
  consumption_HT?: number;
1802
1824
  /**
1803
- * The monthly NT consumption to compute the price in kWh
1825
+ * The yearly NT consumption to compute the price in kWh
1804
1826
  */
1805
1827
  consumption_NT?: number;
1806
1828
  /**
@@ -1825,15 +1847,15 @@ declare namespace Components {
1825
1847
  */
1826
1848
  consumption_type?: "household" | "heating_pump" | "night_storage_heating" | "night_storage_heating_common_meter";
1827
1849
  /**
1828
- * The monthly consumption to compute the price in kWh (to be deprecated in favor of consumption_HT)
1850
+ * (DEPRECATED - use consumption_HT) The yearly consumption to compute the price in kWh
1829
1851
  */
1830
1852
  consumption?: number;
1831
1853
  /**
1832
- * The monthly HT consumption to compute the price in kWh
1854
+ * The yearly HT consumption to compute the price in kWh
1833
1855
  */
1834
1856
  consumption_HT?: number;
1835
1857
  /**
1836
- * The monthly NT consumption to compute the price in kWh
1858
+ * The yearly NT consumption to compute the price in kWh
1837
1859
  */
1838
1860
  consumption_NT?: number;
1839
1861
  /**
@@ -1863,15 +1885,15 @@ declare namespace Components {
1863
1885
  */
1864
1886
  consumption_type?: "household" | "heating_pump" | "night_storage_heating" | "night_storage_heating_common_meter";
1865
1887
  /**
1866
- * The monthly consumption to compute the price in kWh (to be deprecated in favor of consumption_HT)
1888
+ * (DEPRECATED - use consumption_HT) The yearly consumption to compute the price in kWh
1867
1889
  */
1868
1890
  consumption?: number;
1869
1891
  /**
1870
- * The monthly HT consumption to compute the price in kWh
1892
+ * The yearly HT consumption to compute the price in kWh
1871
1893
  */
1872
1894
  consumption_HT?: number;
1873
1895
  /**
1874
- * The monthly NT consumption to compute the price in kWh
1896
+ * The yearly NT consumption to compute the price in kWh
1875
1897
  */
1876
1898
  consumption_NT?: number;
1877
1899
  /**
@@ -1913,6 +1935,14 @@ declare namespace Components {
1913
1935
  * The computed variable price, for the day period, as decimal
1914
1936
  */
1915
1937
  amount_variable_decimal_ht?: string;
1938
+ /**
1939
+ * The computed unit price, for the day period
1940
+ */
1941
+ unit_amount_variable_ht?: number;
1942
+ /**
1943
+ * The computed unit price, for the day period, as decimal
1944
+ */
1945
+ unit_amount_variable_decimal_ht?: string;
1916
1946
  /**
1917
1947
  * The computed variable price, for the night period
1918
1948
  */
@@ -1921,6 +1951,14 @@ declare namespace Components {
1921
1951
  * The computed variable price, for the night period, as decimal
1922
1952
  */
1923
1953
  amount_variable_decimal_nt?: string;
1954
+ /**
1955
+ * The computed unit price, for the night period
1956
+ */
1957
+ unit_amount_variable_nt?: number;
1958
+ /**
1959
+ * The computed unit price, for the night period, as decimal
1960
+ */
1961
+ unit_amount_variable_decimal_nt?: string;
1924
1962
  /**
1925
1963
  * The currency of the computed price (three-letter ISO currency code)
1926
1964
  */
@@ -1951,6 +1989,14 @@ declare namespace Components {
1951
1989
  * The computed price as decimal
1952
1990
  */
1953
1991
  amount_decimal: string;
1992
+ /**
1993
+ * The computed unit price
1994
+ */
1995
+ unit_amount?: number;
1996
+ /**
1997
+ * The computed unit price as decimal
1998
+ */
1999
+ unit_amount_decimal?: string;
1954
2000
  }
1955
2001
  /**
1956
2002
  * Price breakdown
@@ -2208,6 +2254,14 @@ declare namespace Components {
2208
2254
  * The computed variable price, for the day period, as decimal
2209
2255
  */
2210
2256
  amount_variable_decimal_ht?: string;
2257
+ /**
2258
+ * The computed unit price, for the day period
2259
+ */
2260
+ unit_amount_variable_ht?: number;
2261
+ /**
2262
+ * The computed unit price, for the day period, as decimal
2263
+ */
2264
+ unit_amount_variable_decimal_ht?: string;
2211
2265
  /**
2212
2266
  * The computed variable price, for the night period
2213
2267
  */
@@ -2216,6 +2270,14 @@ declare namespace Components {
2216
2270
  * The computed variable price, for the night period, as decimal
2217
2271
  */
2218
2272
  amount_variable_decimal_nt?: string;
2273
+ /**
2274
+ * The computed unit price, for the night period
2275
+ */
2276
+ unit_amount_variable_nt?: number;
2277
+ /**
2278
+ * The computed unit price, for the night period, as decimal
2279
+ */
2280
+ unit_amount_variable_decimal_nt?: string;
2219
2281
  /**
2220
2282
  * The currency of the computed price (three-letter ISO currency code)
2221
2283
  */
@@ -3301,6 +3363,14 @@ declare namespace Components {
3301
3363
  * The discount amount applied to the tax represented as a decimal string
3302
3364
  */
3303
3365
  tax_discount_amount_decimal?: string;
3366
+ /**
3367
+ * The net discount amount applied
3368
+ */
3369
+ discount_amount_net?: number;
3370
+ /**
3371
+ * The net discount amount applied represented as a decimal string
3372
+ */
3373
+ discount_amount_net_decimal?: string;
3304
3374
  /**
3305
3375
  * Total tax amount for this line item.
3306
3376
  */
package/dist/openapi.json CHANGED
@@ -2962,15 +2962,15 @@
2962
2962
  ]
2963
2963
  },
2964
2964
  "consumption": {
2965
- "description": "The monthly consumption to compute the price in kWh (to be deprecated in favor of consumption_HT)",
2965
+ "description": "(DEPRECATED - use consumption_HT) The yearly consumption to compute the price in kWh",
2966
2966
  "type": "number"
2967
2967
  },
2968
2968
  "consumption_HT": {
2969
- "description": "The monthly HT consumption to compute the price in kWh",
2969
+ "description": "The yearly HT consumption to compute the price in kWh",
2970
2970
  "type": "number"
2971
2971
  },
2972
2972
  "consumption_NT": {
2973
- "description": "The monthly NT consumption to compute the price in kWh",
2973
+ "description": "The yearly NT consumption to compute the price in kWh",
2974
2974
  "type": "number"
2975
2975
  },
2976
2976
  "association_id": {
@@ -3071,6 +3071,14 @@
3071
3071
  "amount_decimal": {
3072
3072
  "description": "The computed price as decimal",
3073
3073
  "type": "string"
3074
+ },
3075
+ "unit_amount": {
3076
+ "description": "The computed unit price",
3077
+ "type": "number"
3078
+ },
3079
+ "unit_amount_decimal": {
3080
+ "description": "The computed unit price as decimal",
3081
+ "type": "string"
3074
3082
  }
3075
3083
  },
3076
3084
  "required": [
@@ -3153,6 +3161,14 @@
3153
3161
  "description": "The computed variable price, for the day period, as decimal",
3154
3162
  "type": "string"
3155
3163
  },
3164
+ "unit_amount_variable_ht": {
3165
+ "description": "The computed unit price, for the day period",
3166
+ "type": "number"
3167
+ },
3168
+ "unit_amount_variable_decimal_ht": {
3169
+ "description": "The computed unit price, for the day period, as decimal",
3170
+ "type": "string"
3171
+ },
3156
3172
  "amount_variable_nt": {
3157
3173
  "description": "The computed variable price, for the night period",
3158
3174
  "type": "number"
@@ -3161,6 +3177,14 @@
3161
3177
  "description": "The computed variable price, for the night period, as decimal",
3162
3178
  "type": "string"
3163
3179
  },
3180
+ "unit_amount_variable_nt": {
3181
+ "description": "The computed unit price, for the night period",
3182
+ "type": "number"
3183
+ },
3184
+ "unit_amount_variable_decimal_nt": {
3185
+ "description": "The computed unit price, for the night period, as decimal",
3186
+ "type": "string"
3187
+ },
3164
3188
  "currency": {
3165
3189
  "description": "The currency of the computed price (three-letter ISO currency code)",
3166
3190
  "oneOf": [
@@ -3641,6 +3665,18 @@
3641
3665
  "description": "The id of the price component"
3642
3666
  }
3643
3667
  },
3668
+ "price_component_coupon_ids": {
3669
+ "type": "object",
3670
+ "description": "The map of coupon ids applicable to the price components",
3671
+ "readOnly": true,
3672
+ "additionalProperties": {
3673
+ "type": "array",
3674
+ "items": {
3675
+ "type": "string",
3676
+ "description": "The id of the coupon"
3677
+ }
3678
+ }
3679
+ },
3644
3680
  "_price": {
3645
3681
  "$ref": "#/components/schemas/CompositePrice"
3646
3682
  }
@@ -4003,6 +4039,16 @@
4003
4039
  "description": "The discount amount applied to the tax represented as a decimal string",
4004
4040
  "readOnly": true
4005
4041
  },
4042
+ "discount_amount_net": {
4043
+ "type": "integer",
4044
+ "description": "The net discount amount applied",
4045
+ "readOnly": true
4046
+ },
4047
+ "discount_amount_net_decimal": {
4048
+ "type": "string",
4049
+ "description": "The net discount amount applied represented as a decimal string",
4050
+ "readOnly": true
4051
+ },
4006
4052
  "amount_tax": {
4007
4053
  "type": "integer",
4008
4054
  "description": "Total tax amount for this line item."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.36.1",
3
+ "version": "3.36.3",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",