@epilot/pricing-client 3.34.0 → 3.35.1-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 +721 -1
- package/dist/openapi.json +760 -5
- package/package.json +1 -1
package/dist/openapi.d.ts
CHANGED
|
@@ -380,6 +380,10 @@ declare namespace Components {
|
|
|
380
380
|
* The unit amount value
|
|
381
381
|
*/
|
|
382
382
|
unit_amount?: number;
|
|
383
|
+
/**
|
|
384
|
+
* The unit amount before any discount is applied
|
|
385
|
+
*/
|
|
386
|
+
before_discount_unit_amount?: number;
|
|
383
387
|
/**
|
|
384
388
|
* The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.
|
|
385
389
|
*/
|
|
@@ -416,10 +420,26 @@ declare namespace Components {
|
|
|
416
420
|
* The net discount amount applied for each unit represented as a decimal string
|
|
417
421
|
*/
|
|
418
422
|
unit_discount_amount_net_decimal?: string;
|
|
423
|
+
/**
|
|
424
|
+
* The discount amount applied to the tax
|
|
425
|
+
*/
|
|
426
|
+
tax_discount_amount?: number;
|
|
427
|
+
/**
|
|
428
|
+
* The discount amount applied to the tax represented as a decimal string
|
|
429
|
+
*/
|
|
430
|
+
tax_discount_amount_decimal?: string;
|
|
419
431
|
/**
|
|
420
432
|
* Total tax amount for this line item.
|
|
421
433
|
*/
|
|
422
434
|
amount_tax?: number;
|
|
435
|
+
/**
|
|
436
|
+
* The tax amount before any discount is applied
|
|
437
|
+
*/
|
|
438
|
+
before_discount_tax_amount?: number;
|
|
439
|
+
/**
|
|
440
|
+
* The tax amount before any discount is applied represented as a decimal string
|
|
441
|
+
*/
|
|
442
|
+
before_discount_tax_amount_decimal?: string;
|
|
423
443
|
currency?: /**
|
|
424
444
|
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
425
445
|
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
@@ -811,6 +831,12 @@ declare namespace Components {
|
|
|
811
831
|
* 123456
|
|
812
832
|
*/
|
|
813
833
|
password: string;
|
|
834
|
+
/**
|
|
835
|
+
* The Base API URL
|
|
836
|
+
* example:
|
|
837
|
+
* https://api.example.com
|
|
838
|
+
*/
|
|
839
|
+
base_url?: string;
|
|
814
840
|
}
|
|
815
841
|
export type BillingPeriod = "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly";
|
|
816
842
|
/**
|
|
@@ -1309,6 +1335,10 @@ declare namespace Components {
|
|
|
1309
1335
|
* The unit amount value
|
|
1310
1336
|
*/
|
|
1311
1337
|
unit_amount?: number;
|
|
1338
|
+
/**
|
|
1339
|
+
* The unit amount before any discount is applied
|
|
1340
|
+
*/
|
|
1341
|
+
before_discount_unit_amount?: number;
|
|
1312
1342
|
/**
|
|
1313
1343
|
* The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.
|
|
1314
1344
|
*/
|
|
@@ -1345,10 +1375,26 @@ declare namespace Components {
|
|
|
1345
1375
|
* The net discount amount applied for each unit represented as a decimal string
|
|
1346
1376
|
*/
|
|
1347
1377
|
unit_discount_amount_net_decimal?: string;
|
|
1378
|
+
/**
|
|
1379
|
+
* The discount amount applied to the tax
|
|
1380
|
+
*/
|
|
1381
|
+
tax_discount_amount?: number;
|
|
1382
|
+
/**
|
|
1383
|
+
* The discount amount applied to the tax represented as a decimal string
|
|
1384
|
+
*/
|
|
1385
|
+
tax_discount_amount_decimal?: string;
|
|
1348
1386
|
/**
|
|
1349
1387
|
* Total tax amount for this line item.
|
|
1350
1388
|
*/
|
|
1351
1389
|
amount_tax?: number;
|
|
1390
|
+
/**
|
|
1391
|
+
* The tax amount before any discount is applied
|
|
1392
|
+
*/
|
|
1393
|
+
before_discount_tax_amount?: number;
|
|
1394
|
+
/**
|
|
1395
|
+
* The tax amount before any discount is applied represented as a decimal string
|
|
1396
|
+
*/
|
|
1397
|
+
before_discount_tax_amount_decimal?: string;
|
|
1352
1398
|
currency?: /**
|
|
1353
1399
|
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
1354
1400
|
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
@@ -1969,6 +2015,313 @@ declare namespace Components {
|
|
|
1969
2015
|
*/
|
|
1970
2016
|
cause?: string;
|
|
1971
2017
|
}
|
|
2018
|
+
export interface ExternalBasePrice {
|
|
2019
|
+
/**
|
|
2020
|
+
* A flag to indicate if the price is variable.
|
|
2021
|
+
*
|
|
2022
|
+
*/
|
|
2023
|
+
variable_price?: boolean;
|
|
2024
|
+
/**
|
|
2025
|
+
* The unit of measurement used for display purposes and possibly for calculations when the price is variable.
|
|
2026
|
+
* example:
|
|
2027
|
+
* kWh
|
|
2028
|
+
*/
|
|
2029
|
+
unit?: string;
|
|
2030
|
+
/**
|
|
2031
|
+
* The currency of the price. ISO 4217 currency code. E.g. EUR.
|
|
2032
|
+
* example:
|
|
2033
|
+
* EUR
|
|
2034
|
+
*/
|
|
2035
|
+
currency?: string;
|
|
2036
|
+
/**
|
|
2037
|
+
* The price type.
|
|
2038
|
+
*/
|
|
2039
|
+
type: "one_time" | "recurring";
|
|
2040
|
+
/**
|
|
2041
|
+
* The billing period of the price.
|
|
2042
|
+
*/
|
|
2043
|
+
billing_period?: BillingPeriod;
|
|
2044
|
+
/**
|
|
2045
|
+
* The unit gross amount value, as a string with all the decimal places.
|
|
2046
|
+
* example:
|
|
2047
|
+
* 1.19
|
|
2048
|
+
*/
|
|
2049
|
+
unit_amount_gross_decimal: string;
|
|
2050
|
+
/**
|
|
2051
|
+
* The unit net amount value, as a string with all the decimal places.
|
|
2052
|
+
* example:
|
|
2053
|
+
* 1.00
|
|
2054
|
+
*/
|
|
2055
|
+
unit_amount_net_decimal: string;
|
|
2056
|
+
/**
|
|
2057
|
+
* Total of all items before discounts or taxes, as a string with all the decimal places.
|
|
2058
|
+
* example:
|
|
2059
|
+
* 1.00
|
|
2060
|
+
*/
|
|
2061
|
+
amount_subtotal_decimal: string;
|
|
2062
|
+
/**
|
|
2063
|
+
* Total of all items after discounts and taxes, as a string with all the decimal places.
|
|
2064
|
+
* example:
|
|
2065
|
+
* 1.19
|
|
2066
|
+
*/
|
|
2067
|
+
amount_total_decimal: string;
|
|
2068
|
+
tax?: {
|
|
2069
|
+
/**
|
|
2070
|
+
* The tax name.
|
|
2071
|
+
* example:
|
|
2072
|
+
* VAT
|
|
2073
|
+
*/
|
|
2074
|
+
name?: string;
|
|
2075
|
+
/**
|
|
2076
|
+
* The tax description.
|
|
2077
|
+
* example:
|
|
2078
|
+
* Value Added Tax
|
|
2079
|
+
*/
|
|
2080
|
+
description?: string;
|
|
2081
|
+
/**
|
|
2082
|
+
* The type of the tax.
|
|
2083
|
+
* example:
|
|
2084
|
+
* VAT
|
|
2085
|
+
*/
|
|
2086
|
+
type?: "VAT" | "GST" | "Custom";
|
|
2087
|
+
/**
|
|
2088
|
+
* The tax rate applied.
|
|
2089
|
+
* example:
|
|
2090
|
+
* 19
|
|
2091
|
+
*/
|
|
2092
|
+
rate: number;
|
|
2093
|
+
/**
|
|
2094
|
+
* The region code of the tax.
|
|
2095
|
+
* example:
|
|
2096
|
+
* DE
|
|
2097
|
+
*/
|
|
2098
|
+
region?: string;
|
|
2099
|
+
/**
|
|
2100
|
+
* The region label of the tax.
|
|
2101
|
+
* example:
|
|
2102
|
+
* Germany
|
|
2103
|
+
*/
|
|
2104
|
+
region_label?: string;
|
|
2105
|
+
};
|
|
2106
|
+
/**
|
|
2107
|
+
* The way the price should be displayed in the journeys.
|
|
2108
|
+
*/
|
|
2109
|
+
price_display_in_journeys?: "show_price" | "show_as_starting_price" | "show_as_on_request";
|
|
2110
|
+
/**
|
|
2111
|
+
* A flag to indicate if the price is tax inclusive.
|
|
2112
|
+
*/
|
|
2113
|
+
is_tax_inclusive?: boolean;
|
|
2114
|
+
/**
|
|
2115
|
+
* Fees structure with static and variable amounts
|
|
2116
|
+
*/
|
|
2117
|
+
fees?: {
|
|
2118
|
+
/**
|
|
2119
|
+
* The billing period of the fee values (e.g. monthly).
|
|
2120
|
+
*/
|
|
2121
|
+
billing_period: BillingPeriod;
|
|
2122
|
+
/**
|
|
2123
|
+
* example:
|
|
2124
|
+
* 1.00
|
|
2125
|
+
*/
|
|
2126
|
+
amount_total_decimal: string;
|
|
2127
|
+
/**
|
|
2128
|
+
* example:
|
|
2129
|
+
* 1.00
|
|
2130
|
+
*/
|
|
2131
|
+
amount_static_decimal: string;
|
|
2132
|
+
/**
|
|
2133
|
+
* example:
|
|
2134
|
+
* 1.00
|
|
2135
|
+
*/
|
|
2136
|
+
amount_variable_decimal: string;
|
|
2137
|
+
/**
|
|
2138
|
+
* Breakdown of the fee values
|
|
2139
|
+
*/
|
|
2140
|
+
breakdown: {
|
|
2141
|
+
/**
|
|
2142
|
+
* Static breakdown of fees
|
|
2143
|
+
*/
|
|
2144
|
+
static?: {
|
|
2145
|
+
[name: string]: {
|
|
2146
|
+
/**
|
|
2147
|
+
* The amount of the fee, as a string with all the decimal places.
|
|
2148
|
+
* example:
|
|
2149
|
+
* 1.00
|
|
2150
|
+
*/
|
|
2151
|
+
amount_decimal?: string;
|
|
2152
|
+
};
|
|
2153
|
+
};
|
|
2154
|
+
/**
|
|
2155
|
+
* Variable breakdown of fees
|
|
2156
|
+
*/
|
|
2157
|
+
variable?: {
|
|
2158
|
+
[name: string]: {
|
|
2159
|
+
/**
|
|
2160
|
+
* example:
|
|
2161
|
+
* 1.00
|
|
2162
|
+
*/
|
|
2163
|
+
amount_decimal: string;
|
|
2164
|
+
/**
|
|
2165
|
+
* The unit of the fee (e.g. kWh) if applicable.
|
|
2166
|
+
*/
|
|
2167
|
+
unit?: string;
|
|
2168
|
+
};
|
|
2169
|
+
};
|
|
2170
|
+
};
|
|
2171
|
+
};
|
|
2172
|
+
}
|
|
2173
|
+
export interface ExternalCompositePrice {
|
|
2174
|
+
/**
|
|
2175
|
+
* A flag to indicate if the price is variable.
|
|
2176
|
+
*
|
|
2177
|
+
*/
|
|
2178
|
+
variable_price?: boolean;
|
|
2179
|
+
/**
|
|
2180
|
+
* The unit of measurement used for display purposes and possibly for calculations when the price is variable.
|
|
2181
|
+
* example:
|
|
2182
|
+
* kWh
|
|
2183
|
+
*/
|
|
2184
|
+
unit?: string;
|
|
2185
|
+
/**
|
|
2186
|
+
* The currency of the price. ISO 4217 currency code. E.g. EUR.
|
|
2187
|
+
* example:
|
|
2188
|
+
* EUR
|
|
2189
|
+
*/
|
|
2190
|
+
currency?: string;
|
|
2191
|
+
/**
|
|
2192
|
+
* The price type.
|
|
2193
|
+
*/
|
|
2194
|
+
type: "one_time" | "recurring";
|
|
2195
|
+
billing_period?: BillingPeriod;
|
|
2196
|
+
/**
|
|
2197
|
+
* The unit gross amount value, as a string with all the decimal places.
|
|
2198
|
+
* example:
|
|
2199
|
+
* 1.19
|
|
2200
|
+
*/
|
|
2201
|
+
unit_amount_gross_decimal: string;
|
|
2202
|
+
/**
|
|
2203
|
+
* The unit net amount value, as a string with all the decimal places.
|
|
2204
|
+
* example:
|
|
2205
|
+
* 1.00
|
|
2206
|
+
*/
|
|
2207
|
+
unit_amount_net_decimal: string;
|
|
2208
|
+
/**
|
|
2209
|
+
* Total of all items before discounts or taxes, as a string with all the decimal places.
|
|
2210
|
+
* example:
|
|
2211
|
+
* 1.00
|
|
2212
|
+
*/
|
|
2213
|
+
amount_subtotal_decimal: string;
|
|
2214
|
+
/**
|
|
2215
|
+
* Total of all items after discounts and taxes, as a string with all the decimal places.
|
|
2216
|
+
* example:
|
|
2217
|
+
* 1.19
|
|
2218
|
+
*/
|
|
2219
|
+
amount_total_decimal: string;
|
|
2220
|
+
tax?: {
|
|
2221
|
+
/**
|
|
2222
|
+
* The tax name.
|
|
2223
|
+
* example:
|
|
2224
|
+
* VAT
|
|
2225
|
+
*/
|
|
2226
|
+
name?: string;
|
|
2227
|
+
/**
|
|
2228
|
+
* The tax description.
|
|
2229
|
+
* example:
|
|
2230
|
+
* Value Added Tax
|
|
2231
|
+
*/
|
|
2232
|
+
description?: string;
|
|
2233
|
+
/**
|
|
2234
|
+
* The type of the tax.
|
|
2235
|
+
* example:
|
|
2236
|
+
* VAT
|
|
2237
|
+
*/
|
|
2238
|
+
type?: "VAT" | "GST" | "Custom";
|
|
2239
|
+
/**
|
|
2240
|
+
* The tax rate applied.
|
|
2241
|
+
* example:
|
|
2242
|
+
* 19
|
|
2243
|
+
*/
|
|
2244
|
+
rate: number;
|
|
2245
|
+
/**
|
|
2246
|
+
* The region code of the tax.
|
|
2247
|
+
* example:
|
|
2248
|
+
* DE
|
|
2249
|
+
*/
|
|
2250
|
+
region?: string;
|
|
2251
|
+
/**
|
|
2252
|
+
* The region label of the tax.
|
|
2253
|
+
* example:
|
|
2254
|
+
* Germany
|
|
2255
|
+
*/
|
|
2256
|
+
region_label?: string;
|
|
2257
|
+
};
|
|
2258
|
+
/**
|
|
2259
|
+
* The way the price should be displayed in the journeys.
|
|
2260
|
+
*/
|
|
2261
|
+
price_display_in_journeys?: "show_price" | "show_as_starting_price" | "show_as_on_request";
|
|
2262
|
+
/**
|
|
2263
|
+
* A flag to indicate if the price is tax inclusive.
|
|
2264
|
+
*/
|
|
2265
|
+
is_tax_inclusive?: boolean;
|
|
2266
|
+
/**
|
|
2267
|
+
* Fees structure with static and variable amounts
|
|
2268
|
+
*/
|
|
2269
|
+
fees?: {
|
|
2270
|
+
billing_period: BillingPeriod;
|
|
2271
|
+
/**
|
|
2272
|
+
* example:
|
|
2273
|
+
* 1.00
|
|
2274
|
+
*/
|
|
2275
|
+
amount_total_decimal: string;
|
|
2276
|
+
/**
|
|
2277
|
+
* example:
|
|
2278
|
+
* 1.00
|
|
2279
|
+
*/
|
|
2280
|
+
amount_static_decimal: string;
|
|
2281
|
+
/**
|
|
2282
|
+
* example:
|
|
2283
|
+
* 1.00
|
|
2284
|
+
*/
|
|
2285
|
+
amount_variable_decimal: string;
|
|
2286
|
+
/**
|
|
2287
|
+
* Breakdown of the fee values
|
|
2288
|
+
*/
|
|
2289
|
+
breakdown: {
|
|
2290
|
+
/**
|
|
2291
|
+
* Static breakdown of fees
|
|
2292
|
+
*/
|
|
2293
|
+
static?: {
|
|
2294
|
+
[name: string]: {
|
|
2295
|
+
/**
|
|
2296
|
+
* The amount of the fee, as a string with all the decimal places.
|
|
2297
|
+
* example:
|
|
2298
|
+
* 1.00
|
|
2299
|
+
*/
|
|
2300
|
+
amount_decimal?: string;
|
|
2301
|
+
};
|
|
2302
|
+
};
|
|
2303
|
+
/**
|
|
2304
|
+
* Variable breakdown of fees
|
|
2305
|
+
*/
|
|
2306
|
+
variable?: {
|
|
2307
|
+
[name: string]: {
|
|
2308
|
+
/**
|
|
2309
|
+
* example:
|
|
2310
|
+
* 1.00
|
|
2311
|
+
*/
|
|
2312
|
+
amount_decimal: string;
|
|
2313
|
+
/**
|
|
2314
|
+
* The unit of the fee (e.g. kWh) if applicable.
|
|
2315
|
+
*/
|
|
2316
|
+
unit?: string;
|
|
2317
|
+
};
|
|
2318
|
+
};
|
|
2319
|
+
};
|
|
2320
|
+
};
|
|
2321
|
+
is_composite_price: true;
|
|
2322
|
+
price_components: ExternalSimplePrice[];
|
|
2323
|
+
total_details: /* Details of the total price including shipping and tax amounts. */ ExternalPriceTotalDetails;
|
|
2324
|
+
}
|
|
1972
2325
|
/**
|
|
1973
2326
|
* example:
|
|
1974
2327
|
* {
|
|
@@ -2059,6 +2412,248 @@ declare namespace Components {
|
|
|
2059
2412
|
[name: string]: any;
|
|
2060
2413
|
};
|
|
2061
2414
|
}
|
|
2415
|
+
/**
|
|
2416
|
+
* Details of the total price including shipping and tax amounts.
|
|
2417
|
+
*/
|
|
2418
|
+
export interface ExternalPriceTotalDetails {
|
|
2419
|
+
/**
|
|
2420
|
+
* A breakdown of the recurrences of amounts.
|
|
2421
|
+
*/
|
|
2422
|
+
breakdown: {
|
|
2423
|
+
recurrences?: {
|
|
2424
|
+
/**
|
|
2425
|
+
* Total of all items before discounts or taxes, as a string with all the decimal places.
|
|
2426
|
+
* example:
|
|
2427
|
+
* 1.00
|
|
2428
|
+
*/
|
|
2429
|
+
amount_subtotal_decimal: string;
|
|
2430
|
+
/**
|
|
2431
|
+
* Total of all items after discounts and taxes, as a string with all the decimal places.
|
|
2432
|
+
* example:
|
|
2433
|
+
* 1.19
|
|
2434
|
+
*/
|
|
2435
|
+
amount_total_decimal: string;
|
|
2436
|
+
/**
|
|
2437
|
+
* The price type.
|
|
2438
|
+
* example:
|
|
2439
|
+
* one_time
|
|
2440
|
+
*/
|
|
2441
|
+
type: "one_time" | "recurring";
|
|
2442
|
+
/**
|
|
2443
|
+
* The billing period of the price.
|
|
2444
|
+
*/
|
|
2445
|
+
billing_period?: BillingPeriod;
|
|
2446
|
+
}[];
|
|
2447
|
+
};
|
|
2448
|
+
}
|
|
2449
|
+
/**
|
|
2450
|
+
* An external product & price information (already computed) from an external catalog.
|
|
2451
|
+
*/
|
|
2452
|
+
export interface ExternalProduct {
|
|
2453
|
+
/**
|
|
2454
|
+
* The ID of the product in the external catalog.
|
|
2455
|
+
*/
|
|
2456
|
+
id: string;
|
|
2457
|
+
/**
|
|
2458
|
+
* The name of the product.
|
|
2459
|
+
*/
|
|
2460
|
+
name: string;
|
|
2461
|
+
/**
|
|
2462
|
+
* A description of the product.
|
|
2463
|
+
*/
|
|
2464
|
+
description?: string;
|
|
2465
|
+
/**
|
|
2466
|
+
* A list of features of the product.
|
|
2467
|
+
*/
|
|
2468
|
+
features?: string[];
|
|
2469
|
+
/**
|
|
2470
|
+
* A list of image URLs of the product. RECOMMENDED: Store files in Epilot for advantages such as resizing, versioning, easy access, and maintenance.
|
|
2471
|
+
*
|
|
2472
|
+
*/
|
|
2473
|
+
product_image_urls?: string[];
|
|
2474
|
+
/**
|
|
2475
|
+
* A list of file/attachment URLs of the product RECOMMENDED: Store files in Epilot for advantages such as resizing, versioning, easy access, and maintenance.
|
|
2476
|
+
*
|
|
2477
|
+
*/
|
|
2478
|
+
product_downloads_urls?: string[];
|
|
2479
|
+
/**
|
|
2480
|
+
* Legal footnotes for the product.
|
|
2481
|
+
*/
|
|
2482
|
+
legal_footnotes?: string;
|
|
2483
|
+
/**
|
|
2484
|
+
* Additional notes for the product.
|
|
2485
|
+
*/
|
|
2486
|
+
additional_notes?: string[];
|
|
2487
|
+
/**
|
|
2488
|
+
* Recommendation settings for the product.
|
|
2489
|
+
* example:
|
|
2490
|
+
* {
|
|
2491
|
+
* "is_recommended": true,
|
|
2492
|
+
* "recommended_label": "Best Value"
|
|
2493
|
+
* }
|
|
2494
|
+
*/
|
|
2495
|
+
recommendation_settings?: {
|
|
2496
|
+
/**
|
|
2497
|
+
* Flag to enable or disable the recommendation for this product.
|
|
2498
|
+
*/
|
|
2499
|
+
is_recommended?: boolean;
|
|
2500
|
+
/**
|
|
2501
|
+
* Label to display when the product is recommended.
|
|
2502
|
+
*/
|
|
2503
|
+
recommended_label?: string;
|
|
2504
|
+
};
|
|
2505
|
+
price: ExternalSimplePrice | ExternalCompositePrice;
|
|
2506
|
+
}
|
|
2507
|
+
export interface ExternalSimplePrice {
|
|
2508
|
+
/**
|
|
2509
|
+
* A flag to indicate if the price is variable.
|
|
2510
|
+
*
|
|
2511
|
+
*/
|
|
2512
|
+
variable_price?: boolean;
|
|
2513
|
+
/**
|
|
2514
|
+
* The unit of measurement used for display purposes and possibly for calculations when the price is variable.
|
|
2515
|
+
* example:
|
|
2516
|
+
* kWh
|
|
2517
|
+
*/
|
|
2518
|
+
unit?: string;
|
|
2519
|
+
/**
|
|
2520
|
+
* The currency of the price. ISO 4217 currency code. E.g. EUR.
|
|
2521
|
+
* example:
|
|
2522
|
+
* EUR
|
|
2523
|
+
*/
|
|
2524
|
+
currency?: string;
|
|
2525
|
+
/**
|
|
2526
|
+
* The price type.
|
|
2527
|
+
*/
|
|
2528
|
+
type: "one_time" | "recurring";
|
|
2529
|
+
billing_period?: BillingPeriod;
|
|
2530
|
+
/**
|
|
2531
|
+
* The unit gross amount value, as a string with all the decimal places.
|
|
2532
|
+
* example:
|
|
2533
|
+
* 1.19
|
|
2534
|
+
*/
|
|
2535
|
+
unit_amount_gross_decimal: string;
|
|
2536
|
+
/**
|
|
2537
|
+
* The unit net amount value, as a string with all the decimal places.
|
|
2538
|
+
* example:
|
|
2539
|
+
* 1.00
|
|
2540
|
+
*/
|
|
2541
|
+
unit_amount_net_decimal: string;
|
|
2542
|
+
/**
|
|
2543
|
+
* Total of all items before discounts or taxes, as a string with all the decimal places.
|
|
2544
|
+
* example:
|
|
2545
|
+
* 1.00
|
|
2546
|
+
*/
|
|
2547
|
+
amount_subtotal_decimal: string;
|
|
2548
|
+
/**
|
|
2549
|
+
* Total of all items after discounts and taxes, as a string with all the decimal places.
|
|
2550
|
+
* example:
|
|
2551
|
+
* 1.19
|
|
2552
|
+
*/
|
|
2553
|
+
amount_total_decimal: string;
|
|
2554
|
+
tax?: {
|
|
2555
|
+
/**
|
|
2556
|
+
* The tax name.
|
|
2557
|
+
* example:
|
|
2558
|
+
* VAT
|
|
2559
|
+
*/
|
|
2560
|
+
name?: string;
|
|
2561
|
+
/**
|
|
2562
|
+
* The tax description.
|
|
2563
|
+
* example:
|
|
2564
|
+
* Value Added Tax
|
|
2565
|
+
*/
|
|
2566
|
+
description?: string;
|
|
2567
|
+
/**
|
|
2568
|
+
* The type of the tax.
|
|
2569
|
+
* example:
|
|
2570
|
+
* VAT
|
|
2571
|
+
*/
|
|
2572
|
+
type?: "VAT" | "GST" | "Custom";
|
|
2573
|
+
/**
|
|
2574
|
+
* The tax rate applied.
|
|
2575
|
+
* example:
|
|
2576
|
+
* 19
|
|
2577
|
+
*/
|
|
2578
|
+
rate: number;
|
|
2579
|
+
/**
|
|
2580
|
+
* The region code of the tax.
|
|
2581
|
+
* example:
|
|
2582
|
+
* DE
|
|
2583
|
+
*/
|
|
2584
|
+
region?: string;
|
|
2585
|
+
/**
|
|
2586
|
+
* The region label of the tax.
|
|
2587
|
+
* example:
|
|
2588
|
+
* Germany
|
|
2589
|
+
*/
|
|
2590
|
+
region_label?: string;
|
|
2591
|
+
};
|
|
2592
|
+
/**
|
|
2593
|
+
* The way the price should be displayed in the journeys.
|
|
2594
|
+
*/
|
|
2595
|
+
price_display_in_journeys?: "show_price" | "show_as_starting_price" | "show_as_on_request";
|
|
2596
|
+
/**
|
|
2597
|
+
* A flag to indicate if the price is tax inclusive.
|
|
2598
|
+
*/
|
|
2599
|
+
is_tax_inclusive?: boolean;
|
|
2600
|
+
/**
|
|
2601
|
+
* Fees structure with static and variable amounts
|
|
2602
|
+
*/
|
|
2603
|
+
fees?: {
|
|
2604
|
+
billing_period: BillingPeriod;
|
|
2605
|
+
/**
|
|
2606
|
+
* example:
|
|
2607
|
+
* 1.00
|
|
2608
|
+
*/
|
|
2609
|
+
amount_total_decimal: string;
|
|
2610
|
+
/**
|
|
2611
|
+
* example:
|
|
2612
|
+
* 1.00
|
|
2613
|
+
*/
|
|
2614
|
+
amount_static_decimal: string;
|
|
2615
|
+
/**
|
|
2616
|
+
* example:
|
|
2617
|
+
* 1.00
|
|
2618
|
+
*/
|
|
2619
|
+
amount_variable_decimal: string;
|
|
2620
|
+
/**
|
|
2621
|
+
* Breakdown of the fee values
|
|
2622
|
+
*/
|
|
2623
|
+
breakdown: {
|
|
2624
|
+
/**
|
|
2625
|
+
* Static breakdown of fees
|
|
2626
|
+
*/
|
|
2627
|
+
static?: {
|
|
2628
|
+
[name: string]: {
|
|
2629
|
+
/**
|
|
2630
|
+
* The amount of the fee, as a string with all the decimal places.
|
|
2631
|
+
* example:
|
|
2632
|
+
* 1.00
|
|
2633
|
+
*/
|
|
2634
|
+
amount_decimal?: string;
|
|
2635
|
+
};
|
|
2636
|
+
};
|
|
2637
|
+
/**
|
|
2638
|
+
* Variable breakdown of fees
|
|
2639
|
+
*/
|
|
2640
|
+
variable?: {
|
|
2641
|
+
[name: string]: {
|
|
2642
|
+
/**
|
|
2643
|
+
* example:
|
|
2644
|
+
* 1.00
|
|
2645
|
+
*/
|
|
2646
|
+
amount_decimal: string;
|
|
2647
|
+
/**
|
|
2648
|
+
* The unit of the fee (e.g. kWh) if applicable.
|
|
2649
|
+
*/
|
|
2650
|
+
unit?: string;
|
|
2651
|
+
};
|
|
2652
|
+
};
|
|
2653
|
+
};
|
|
2654
|
+
};
|
|
2655
|
+
is_composite_price: false;
|
|
2656
|
+
}
|
|
2062
2657
|
export interface File {
|
|
2063
2658
|
[name: string]: any;
|
|
2064
2659
|
_id: string;
|
|
@@ -2083,7 +2678,62 @@ declare namespace Components {
|
|
|
2083
2678
|
*/
|
|
2084
2679
|
export type GasConcessionType = "standard" | "special";
|
|
2085
2680
|
export type IntegrationCredentialsResult = /* The basic auth credentials */ BasicAuthCredentials;
|
|
2086
|
-
export type IntegrationId = "
|
|
2681
|
+
export type IntegrationId = "getag" | "ikom";
|
|
2682
|
+
export interface JourneyContext {
|
|
2683
|
+
/**
|
|
2684
|
+
* The ID of the journey.
|
|
2685
|
+
* example:
|
|
2686
|
+
* 8d0a2235-97ce-42d0-88a3-e374634ca44e
|
|
2687
|
+
*/
|
|
2688
|
+
journey_id: string;
|
|
2689
|
+
/**
|
|
2690
|
+
* The name of the journey.
|
|
2691
|
+
* example:
|
|
2692
|
+
* journey name
|
|
2693
|
+
*/
|
|
2694
|
+
journey_name: string;
|
|
2695
|
+
/**
|
|
2696
|
+
* The name of the step where the products selection is happening.
|
|
2697
|
+
* example:
|
|
2698
|
+
* step name
|
|
2699
|
+
*/
|
|
2700
|
+
current_step_name: string;
|
|
2701
|
+
/**
|
|
2702
|
+
* The name of the block where the products selection is happening.
|
|
2703
|
+
* example:
|
|
2704
|
+
* block name
|
|
2705
|
+
*/
|
|
2706
|
+
current_block_name: string;
|
|
2707
|
+
/**
|
|
2708
|
+
* The steps of the journey.
|
|
2709
|
+
*/
|
|
2710
|
+
steps_data?: {
|
|
2711
|
+
/**
|
|
2712
|
+
* The name of the step.
|
|
2713
|
+
*/
|
|
2714
|
+
step_name: string;
|
|
2715
|
+
/**
|
|
2716
|
+
* The index of the step.
|
|
2717
|
+
*/
|
|
2718
|
+
step_index: number;
|
|
2719
|
+
/**
|
|
2720
|
+
* The data of the blocks.
|
|
2721
|
+
* example:
|
|
2722
|
+
* {
|
|
2723
|
+
* "Adresse": {
|
|
2724
|
+
* "countryCode": "DE",
|
|
2725
|
+
* "city": "Koblenz",
|
|
2726
|
+
* "zipCode": "56068",
|
|
2727
|
+
* "streetName": "Am Alten Hospital",
|
|
2728
|
+
* "houseNumber": "123"
|
|
2729
|
+
* }
|
|
2730
|
+
* }
|
|
2731
|
+
*/
|
|
2732
|
+
blocks: {
|
|
2733
|
+
[name: string]: any;
|
|
2734
|
+
};
|
|
2735
|
+
}[];
|
|
2736
|
+
}
|
|
2087
2737
|
/**
|
|
2088
2738
|
* Describes how to compute the markup per period. Either `per_unit`, `tiered_volume` or `tiered_flatfee`.
|
|
2089
2739
|
* - `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity
|
|
@@ -2995,6 +3645,10 @@ declare namespace Components {
|
|
|
2995
3645
|
* The unit amount value
|
|
2996
3646
|
*/
|
|
2997
3647
|
unit_amount?: number;
|
|
3648
|
+
/**
|
|
3649
|
+
* The unit amount before any discount is applied
|
|
3650
|
+
*/
|
|
3651
|
+
before_discount_unit_amount?: number;
|
|
2998
3652
|
/**
|
|
2999
3653
|
* The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.
|
|
3000
3654
|
*/
|
|
@@ -3031,10 +3685,26 @@ declare namespace Components {
|
|
|
3031
3685
|
* The net discount amount applied for each unit represented as a decimal string
|
|
3032
3686
|
*/
|
|
3033
3687
|
unit_discount_amount_net_decimal?: string;
|
|
3688
|
+
/**
|
|
3689
|
+
* The discount amount applied to the tax
|
|
3690
|
+
*/
|
|
3691
|
+
tax_discount_amount?: number;
|
|
3692
|
+
/**
|
|
3693
|
+
* The discount amount applied to the tax represented as a decimal string
|
|
3694
|
+
*/
|
|
3695
|
+
tax_discount_amount_decimal?: string;
|
|
3034
3696
|
/**
|
|
3035
3697
|
* Total tax amount for this line item.
|
|
3036
3698
|
*/
|
|
3037
3699
|
amount_tax?: number;
|
|
3700
|
+
/**
|
|
3701
|
+
* The tax amount before any discount is applied
|
|
3702
|
+
*/
|
|
3703
|
+
before_discount_tax_amount?: number;
|
|
3704
|
+
/**
|
|
3705
|
+
* The tax amount before any discount is applied represented as a decimal string
|
|
3706
|
+
*/
|
|
3707
|
+
before_discount_tax_amount_decimal?: string;
|
|
3038
3708
|
currency?: /**
|
|
3039
3709
|
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
3040
3710
|
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
@@ -3925,6 +4595,12 @@ declare namespace Components {
|
|
|
3925
4595
|
}
|
|
3926
4596
|
export type SalesTax = "nontaxable" | "reduced" | "standard";
|
|
3927
4597
|
export type SaveIntegrationCredentialsParams = /* The basic auth credentials */ BasicAuthCredentials;
|
|
4598
|
+
export interface SearchExternalCatalogParams {
|
|
4599
|
+
context: JourneyContext;
|
|
4600
|
+
}
|
|
4601
|
+
export interface SearchExternalCatalogResult {
|
|
4602
|
+
results: /* An external product & price information (already computed) from an external catalog. */ ExternalProduct[];
|
|
4603
|
+
}
|
|
3928
4604
|
/**
|
|
3929
4605
|
* A search providers payload
|
|
3930
4606
|
*/
|
|
@@ -4409,6 +5085,20 @@ declare namespace Paths {
|
|
|
4409
5085
|
export type $400 = Components.Schemas.Error;
|
|
4410
5086
|
}
|
|
4411
5087
|
}
|
|
5088
|
+
namespace $SearchExternalCatalog {
|
|
5089
|
+
namespace Parameters {
|
|
5090
|
+
export type IntegrationId = Components.Schemas.IntegrationId;
|
|
5091
|
+
}
|
|
5092
|
+
export interface PathParameters {
|
|
5093
|
+
integrationId: Parameters.IntegrationId;
|
|
5094
|
+
}
|
|
5095
|
+
export type RequestBody = Components.Schemas.SearchExternalCatalogParams;
|
|
5096
|
+
namespace Responses {
|
|
5097
|
+
export type $200 = Components.Schemas.SearchExternalCatalogResult;
|
|
5098
|
+
export type $400 = Components.Schemas.Error;
|
|
5099
|
+
export type $403 = Components.Schemas.Error;
|
|
5100
|
+
}
|
|
5101
|
+
}
|
|
4412
5102
|
namespace $SearchProviders {
|
|
4413
5103
|
export interface HeaderParameters {
|
|
4414
5104
|
"X-Epilot-Org-ID": Parameters.XEpilotOrgID;
|
|
@@ -4601,6 +5291,16 @@ export interface OperationMethods {
|
|
|
4601
5291
|
data?: any,
|
|
4602
5292
|
config?: AxiosRequestConfig
|
|
4603
5293
|
): OperationResponse<Paths.$ValidateAvailabilityFile.Responses.$200>
|
|
5294
|
+
/**
|
|
5295
|
+
* $searchExternalCatalog - searchExternalCatalog
|
|
5296
|
+
*
|
|
5297
|
+
* Returns the list of available products (including computed prices) based on a given context.
|
|
5298
|
+
*/
|
|
5299
|
+
'$searchExternalCatalog'(
|
|
5300
|
+
parameters?: Parameters<Paths.$SearchExternalCatalog.PathParameters> | null,
|
|
5301
|
+
data?: Paths.$SearchExternalCatalog.RequestBody,
|
|
5302
|
+
config?: AxiosRequestConfig
|
|
5303
|
+
): OperationResponse<Paths.$SearchExternalCatalog.Responses.$200>
|
|
4604
5304
|
/**
|
|
4605
5305
|
* $searchProviders - searchProviders
|
|
4606
5306
|
*
|
|
@@ -4771,6 +5471,18 @@ export interface PathsDictionary {
|
|
|
4771
5471
|
config?: AxiosRequestConfig
|
|
4772
5472
|
): OperationResponse<Paths.$ValidateAvailabilityFile.Responses.$200>
|
|
4773
5473
|
}
|
|
5474
|
+
['/v1/public/integration/{integrationId}/external-catalog']: {
|
|
5475
|
+
/**
|
|
5476
|
+
* $searchExternalCatalog - searchExternalCatalog
|
|
5477
|
+
*
|
|
5478
|
+
* Returns the list of available products (including computed prices) based on a given context.
|
|
5479
|
+
*/
|
|
5480
|
+
'post'(
|
|
5481
|
+
parameters?: Parameters<Paths.$SearchExternalCatalog.PathParameters> | null,
|
|
5482
|
+
data?: Paths.$SearchExternalCatalog.RequestBody,
|
|
5483
|
+
config?: AxiosRequestConfig
|
|
5484
|
+
): OperationResponse<Paths.$SearchExternalCatalog.Responses.$200>
|
|
5485
|
+
}
|
|
4774
5486
|
['/v1/public/integration/{integrationId}/providers:search']: {
|
|
4775
5487
|
/**
|
|
4776
5488
|
* $searchProviders - searchProviders
|
|
@@ -4885,13 +5597,19 @@ export type EntityId = Components.Schemas.EntityId;
|
|
|
4885
5597
|
export type EntityItem = Components.Schemas.EntityItem;
|
|
4886
5598
|
export type EntityRelation = Components.Schemas.EntityRelation;
|
|
4887
5599
|
export type Error = Components.Schemas.Error;
|
|
5600
|
+
export type ExternalBasePrice = Components.Schemas.ExternalBasePrice;
|
|
5601
|
+
export type ExternalCompositePrice = Components.Schemas.ExternalCompositePrice;
|
|
4888
5602
|
export type ExternalFeeMapping = Components.Schemas.ExternalFeeMapping;
|
|
4889
5603
|
export type ExternalFeeMappings = Components.Schemas.ExternalFeeMappings;
|
|
4890
5604
|
export type ExternalFeeMetadata = Components.Schemas.ExternalFeeMetadata;
|
|
5605
|
+
export type ExternalPriceTotalDetails = Components.Schemas.ExternalPriceTotalDetails;
|
|
5606
|
+
export type ExternalProduct = Components.Schemas.ExternalProduct;
|
|
5607
|
+
export type ExternalSimplePrice = Components.Schemas.ExternalSimplePrice;
|
|
4891
5608
|
export type File = Components.Schemas.File;
|
|
4892
5609
|
export type GasConcessionType = Components.Schemas.GasConcessionType;
|
|
4893
5610
|
export type IntegrationCredentialsResult = Components.Schemas.IntegrationCredentialsResult;
|
|
4894
5611
|
export type IntegrationId = Components.Schemas.IntegrationId;
|
|
5612
|
+
export type JourneyContext = Components.Schemas.JourneyContext;
|
|
4895
5613
|
export type MarkupPricingModel = Components.Schemas.MarkupPricingModel;
|
|
4896
5614
|
export type MetaData = Components.Schemas.MetaData;
|
|
4897
5615
|
export type Opportunity = Components.Schemas.Opportunity;
|
|
@@ -4926,6 +5644,8 @@ export type RecurrenceAmountDto = Components.Schemas.RecurrenceAmountDto;
|
|
|
4926
5644
|
export type RecurrenceAmountWithTax = Components.Schemas.RecurrenceAmountWithTax;
|
|
4927
5645
|
export type SalesTax = Components.Schemas.SalesTax;
|
|
4928
5646
|
export type SaveIntegrationCredentialsParams = Components.Schemas.SaveIntegrationCredentialsParams;
|
|
5647
|
+
export type SearchExternalCatalogParams = Components.Schemas.SearchExternalCatalogParams;
|
|
5648
|
+
export type SearchExternalCatalogResult = Components.Schemas.SearchExternalCatalogResult;
|
|
4929
5649
|
export type SearchProvidersParams = Components.Schemas.SearchProvidersParams;
|
|
4930
5650
|
export type SearchProvidersResult = Components.Schemas.SearchProvidersResult;
|
|
4931
5651
|
export type SearchStreetsParams = Components.Schemas.SearchStreetsParams;
|