@epilot/pricing-client 3.51.2-alpha.0 → 3.51.2

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.
Files changed (2) hide show
  1. package/dist/openapi.json +302 -0
  2. package/package.json +1 -1
package/dist/openapi.json CHANGED
@@ -1876,6 +1876,33 @@
1876
1876
  "application/json": {
1877
1877
  "schema": {
1878
1878
  "$ref": "#/components/schemas/SearchExternalCatalogParams"
1879
+ },
1880
+ "examples": {
1881
+ "Search recommendations": {
1882
+ "value": {
1883
+ "context": {
1884
+ "journey_id": "8d0a2235-97ce-42d0-88a3-e374634ca44e",
1885
+ "journey_name": "Energy Provider Selection",
1886
+ "current_step_name": "product-selection",
1887
+ "current_block_name": "recommendations-block",
1888
+ "steps_data": [
1889
+ {
1890
+ "step_name": "address",
1891
+ "step_index": 1,
1892
+ "blocks": {
1893
+ "Adresse": {
1894
+ "countryCode": "DE",
1895
+ "city": "Koblenz",
1896
+ "zipCode": "56068",
1897
+ "streetName": "Am Alten Hospital",
1898
+ "houseNumber": "123"
1899
+ }
1900
+ }
1901
+ }
1902
+ ]
1903
+ }
1904
+ }
1905
+ }
1879
1906
  }
1880
1907
  }
1881
1908
  }
@@ -1887,6 +1914,281 @@
1887
1914
  "application/json": {
1888
1915
  "schema": {
1889
1916
  "$ref": "#/components/schemas/SearchExternalCatalogRecommendationsResult"
1917
+ },
1918
+ "examples": {
1919
+ "External catalog recommendations": {
1920
+ "value": {
1921
+ "source": {
1922
+ "pricing_details": {
1923
+ "items": [
1924
+ {
1925
+ "_id": "price-12312414",
1926
+ "price_id": "price-12312414",
1927
+ "product_id": "product-12312414",
1928
+ "is_composite_price": true,
1929
+ "description": "Home Energy Package Composite",
1930
+ "item_components": [
1931
+ {
1932
+ "_id": "price-12312414-component-0",
1933
+ "price_id": "price-12312414-component-0",
1934
+ "product_id": "product-12312414",
1935
+ "description": "Working Price",
1936
+ "is_tax_inclusive": true,
1937
+ "amount_total_decimal": "50",
1938
+ "amount_total": 5000,
1939
+ "amount_subtotal_decimal": "50",
1940
+ "amount_subtotal": 5000,
1941
+ "unit_amount": 5,
1942
+ "unit_amount_gross": 5,
1943
+ "unit_amount_gross_decimal": "0.05",
1944
+ "unit_amount_net": 5,
1945
+ "unit_amount_net_decimal": "0.05",
1946
+ "billing_period": "monthly",
1947
+ "type": "recurring",
1948
+ "taxes": [],
1949
+ "pricing_model": "per_unit",
1950
+ "quantity": 1,
1951
+ "_price": {
1952
+ "_id": "price-12312414-component-0",
1953
+ "unit_amount_currency": "EUR",
1954
+ "description": "Working Price",
1955
+ "is_tax_inclusive": true,
1956
+ "unit_amount": 5,
1957
+ "unit_amount_decimal": "0.05",
1958
+ "unit": "kWh",
1959
+ "billing_period": "monthly",
1960
+ "type": "recurring",
1961
+ "billing_duration_amount": 24,
1962
+ "billing_duration_unit": "months",
1963
+ "notice_time_amount": 3,
1964
+ "notice_time_unit": "months",
1965
+ "termination_time_amount": 3,
1966
+ "termination_time_unit": "months",
1967
+ "renewal_duration_amount": 12,
1968
+ "renewal_duration_unit": "months",
1969
+ "active": true,
1970
+ "is_composite_price": false,
1971
+ "variable_price": true,
1972
+ "pricing_model": "per_unit",
1973
+ "price_display_in_journeys": "show_price"
1974
+ },
1975
+ "_product": {
1976
+ "_id": "product-12312414",
1977
+ "name": "Home Energy Package",
1978
+ "description": "Composite home energy solution with solar panels and battery"
1979
+ }
1980
+ }
1981
+ ]
1982
+ }
1983
+ ],
1984
+ "currency": "EUR",
1985
+ "amount_subtotal": 5000,
1986
+ "amount_total": 5000,
1987
+ "amount_tax": 0,
1988
+ "total_details": {
1989
+ "amount_tax": 0,
1990
+ "breakdown": {
1991
+ "taxes": [],
1992
+ "recurrences": [
1993
+ {
1994
+ "type": "recurring",
1995
+ "billing_period": "monthly",
1996
+ "amount_total": 5000,
1997
+ "amount_total_decimal": "50.00",
1998
+ "amount_subtotal": 5000,
1999
+ "amount_subtotal_decimal": "50.00",
2000
+ "amount_tax": 0
2001
+ }
2002
+ ]
2003
+ }
2004
+ }
2005
+ },
2006
+ "_meta": {
2007
+ "signature": "abc123",
2008
+ "timestamp": 1712049221642
2009
+ }
2010
+ },
2011
+ "offers": [
2012
+ {
2013
+ "pricing_details": {
2014
+ "items": [
2015
+ {
2016
+ "_id": "price-999857a4",
2017
+ "price_id": "price-999857a4",
2018
+ "product_id": "product-999857a4",
2019
+ "is_composite_price": false,
2020
+ "description": "Single Price",
2021
+ "is_tax_inclusive": true,
2022
+ "amount_total_decimal": "25",
2023
+ "amount_total": 2500,
2024
+ "amount_subtotal_decimal": "25",
2025
+ "amount_subtotal": 2500,
2026
+ "unit_amount": 25,
2027
+ "unit_amount_gross": 25,
2028
+ "unit_amount_gross_decimal": "25",
2029
+ "unit_amount_net": 25,
2030
+ "unit_amount_net_decimal": "25",
2031
+ "billing_period": null,
2032
+ "type": "one_time",
2033
+ "taxes": [],
2034
+ "pricing_model": "per_unit",
2035
+ "quantity": 1,
2036
+ "_price": {
2037
+ "_id": "price-999857a4",
2038
+ "unit_amount_currency": "EUR",
2039
+ "description": "Single Price",
2040
+ "is_tax_inclusive": true,
2041
+ "unit_amount": 25,
2042
+ "unit_amount_decimal": "25",
2043
+ "billing_duration_amount": 24,
2044
+ "billing_duration_unit": "months",
2045
+ "notice_time_amount": 3,
2046
+ "notice_time_unit": "months",
2047
+ "termination_time_amount": 3,
2048
+ "termination_time_unit": "months",
2049
+ "renewal_duration_amount": 12,
2050
+ "renewal_duration_unit": "months",
2051
+ "active": true,
2052
+ "is_composite_price": false,
2053
+ "pricing_model": "per_unit",
2054
+ "price_display_in_journeys": "show_price"
2055
+ },
2056
+ "_product": {
2057
+ "_id": "product-999857a4",
2058
+ "name": "Solar Panel X2",
2059
+ "description": "High-efficiency solar panel for residential use"
2060
+ }
2061
+ }
2062
+ ]
2063
+ },
2064
+ "currency": "EUR",
2065
+ "amount_subtotal": 2500,
2066
+ "amount_total": 2500,
2067
+ "amount_tax": 0,
2068
+ "total_details": {
2069
+ "amount_tax": 0,
2070
+ "breakdown": {
2071
+ "taxes": [],
2072
+ "recurrences": [
2073
+ {
2074
+ "type": "one_time",
2075
+ "amount_total": 2500,
2076
+ "amount_total_decimal": "25.00",
2077
+ "amount_subtotal": 2500,
2078
+ "amount_subtotal_decimal": "25.00",
2079
+ "amount_tax": 0
2080
+ }
2081
+ ]
2082
+ }
2083
+ },
2084
+ "_meta": {
2085
+ "signature": "def456",
2086
+ "timestamp": 1712049221643
2087
+ }
2088
+ },
2089
+ {
2090
+ "pricing_details": {
2091
+ "items": [
2092
+ {
2093
+ "_id": "price-93f857a4",
2094
+ "price_id": "price-93f857a4",
2095
+ "product_id": "product-93f857a4",
2096
+ "is_composite_price": false,
2097
+ "description": "Single Price",
2098
+ "is_tax_inclusive": false,
2099
+ "amount_total_decimal": "29.75",
2100
+ "amount_total": 2975,
2101
+ "amount_subtotal_decimal": "25",
2102
+ "amount_subtotal": 2500,
2103
+ "unit_amount": 25,
2104
+ "unit_amount_gross": 29.75,
2105
+ "unit_amount_gross_decimal": "29.75",
2106
+ "unit_amount_net": 25,
2107
+ "unit_amount_net_decimal": "25",
2108
+ "billing_period": null,
2109
+ "type": "one_time",
2110
+ "taxes": [
2111
+ {
2112
+ "tax": {
2113
+ "_id": "tax-vat-19",
2114
+ "name": "VAT",
2115
+ "type": "VAT",
2116
+ "rate": 19,
2117
+ "region": "DE"
2118
+ },
2119
+ "amount": 475
2120
+ }
2121
+ ],
2122
+ "pricing_model": "per_unit",
2123
+ "quantity": 1,
2124
+ "_price": {
2125
+ "_id": "price-93f857a4",
2126
+ "unit_amount_currency": "EUR",
2127
+ "description": "Single Price",
2128
+ "is_tax_inclusive": false,
2129
+ "unit_amount": 25,
2130
+ "unit_amount_decimal": "25",
2131
+ "active": true,
2132
+ "is_composite_price": false,
2133
+ "pricing_model": "per_unit",
2134
+ "price_display_in_journeys": "show_price",
2135
+ "tax": [
2136
+ {
2137
+ "_id": "tax-vat-19",
2138
+ "name": "VAT",
2139
+ "type": "VAT",
2140
+ "rate": 19,
2141
+ "region": "DE"
2142
+ }
2143
+ ]
2144
+ },
2145
+ "_product": {
2146
+ "_id": "product-93f857a4",
2147
+ "name": "Solar Panel X3",
2148
+ "description": "New generation of high-efficiency solar panel for residential use"
2149
+ }
2150
+ }
2151
+ ]
2152
+ },
2153
+ "currency": "EUR",
2154
+ "amount_subtotal": 2500,
2155
+ "amount_total": 2975,
2156
+ "amount_tax": 475,
2157
+ "total_details": {
2158
+ "amount_tax": 475,
2159
+ "breakdown": {
2160
+ "taxes": [
2161
+ {
2162
+ "tax": {
2163
+ "_id": "tax-vat-19",
2164
+ "name": "VAT",
2165
+ "type": "VAT",
2166
+ "rate": 19,
2167
+ "region": "DE"
2168
+ },
2169
+ "amount": 475
2170
+ }
2171
+ ],
2172
+ "recurrences": [
2173
+ {
2174
+ "type": "one_time",
2175
+ "amount_total": 2975,
2176
+ "amount_total_decimal": "29.75",
2177
+ "amount_subtotal": 2500,
2178
+ "amount_subtotal_decimal": "25.00",
2179
+ "amount_tax": 475
2180
+ }
2181
+ ]
2182
+ }
2183
+ },
2184
+ "_meta": {
2185
+ "signature": "ghi789",
2186
+ "timestamp": 1712049221644
2187
+ }
2188
+ }
2189
+ ]
2190
+ }
2191
+ }
1890
2192
  }
1891
2193
  }
1892
2194
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.51.2-alpha.0",
3
+ "version": "3.51.2",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",