@epilot/pricing-client 3.35.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 +661 -1
- package/dist/openapi.json +735 -5
- package/package.json +1 -1
package/dist/openapi.d.ts
CHANGED
|
@@ -831,6 +831,12 @@ declare namespace Components {
|
|
|
831
831
|
* 123456
|
|
832
832
|
*/
|
|
833
833
|
password: string;
|
|
834
|
+
/**
|
|
835
|
+
* The Base API URL
|
|
836
|
+
* example:
|
|
837
|
+
* https://api.example.com
|
|
838
|
+
*/
|
|
839
|
+
base_url?: string;
|
|
834
840
|
}
|
|
835
841
|
export type BillingPeriod = "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly";
|
|
836
842
|
/**
|
|
@@ -2009,6 +2015,313 @@ declare namespace Components {
|
|
|
2009
2015
|
*/
|
|
2010
2016
|
cause?: string;
|
|
2011
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
|
+
}
|
|
2012
2325
|
/**
|
|
2013
2326
|
* example:
|
|
2014
2327
|
* {
|
|
@@ -2099,6 +2412,248 @@ declare namespace Components {
|
|
|
2099
2412
|
[name: string]: any;
|
|
2100
2413
|
};
|
|
2101
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
|
+
}
|
|
2102
2657
|
export interface File {
|
|
2103
2658
|
[name: string]: any;
|
|
2104
2659
|
_id: string;
|
|
@@ -2123,7 +2678,62 @@ declare namespace Components {
|
|
|
2123
2678
|
*/
|
|
2124
2679
|
export type GasConcessionType = "standard" | "special";
|
|
2125
2680
|
export type IntegrationCredentialsResult = /* The basic auth credentials */ BasicAuthCredentials;
|
|
2126
|
-
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
|
+
}
|
|
2127
2737
|
/**
|
|
2128
2738
|
* Describes how to compute the markup per period. Either `per_unit`, `tiered_volume` or `tiered_flatfee`.
|
|
2129
2739
|
* - `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity
|
|
@@ -3985,6 +4595,12 @@ declare namespace Components {
|
|
|
3985
4595
|
}
|
|
3986
4596
|
export type SalesTax = "nontaxable" | "reduced" | "standard";
|
|
3987
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
|
+
}
|
|
3988
4604
|
/**
|
|
3989
4605
|
* A search providers payload
|
|
3990
4606
|
*/
|
|
@@ -4469,6 +5085,20 @@ declare namespace Paths {
|
|
|
4469
5085
|
export type $400 = Components.Schemas.Error;
|
|
4470
5086
|
}
|
|
4471
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
|
+
}
|
|
4472
5102
|
namespace $SearchProviders {
|
|
4473
5103
|
export interface HeaderParameters {
|
|
4474
5104
|
"X-Epilot-Org-ID": Parameters.XEpilotOrgID;
|
|
@@ -4661,6 +5291,16 @@ export interface OperationMethods {
|
|
|
4661
5291
|
data?: any,
|
|
4662
5292
|
config?: AxiosRequestConfig
|
|
4663
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>
|
|
4664
5304
|
/**
|
|
4665
5305
|
* $searchProviders - searchProviders
|
|
4666
5306
|
*
|
|
@@ -4831,6 +5471,18 @@ export interface PathsDictionary {
|
|
|
4831
5471
|
config?: AxiosRequestConfig
|
|
4832
5472
|
): OperationResponse<Paths.$ValidateAvailabilityFile.Responses.$200>
|
|
4833
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
|
+
}
|
|
4834
5486
|
['/v1/public/integration/{integrationId}/providers:search']: {
|
|
4835
5487
|
/**
|
|
4836
5488
|
* $searchProviders - searchProviders
|
|
@@ -4945,13 +5597,19 @@ export type EntityId = Components.Schemas.EntityId;
|
|
|
4945
5597
|
export type EntityItem = Components.Schemas.EntityItem;
|
|
4946
5598
|
export type EntityRelation = Components.Schemas.EntityRelation;
|
|
4947
5599
|
export type Error = Components.Schemas.Error;
|
|
5600
|
+
export type ExternalBasePrice = Components.Schemas.ExternalBasePrice;
|
|
5601
|
+
export type ExternalCompositePrice = Components.Schemas.ExternalCompositePrice;
|
|
4948
5602
|
export type ExternalFeeMapping = Components.Schemas.ExternalFeeMapping;
|
|
4949
5603
|
export type ExternalFeeMappings = Components.Schemas.ExternalFeeMappings;
|
|
4950
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;
|
|
4951
5608
|
export type File = Components.Schemas.File;
|
|
4952
5609
|
export type GasConcessionType = Components.Schemas.GasConcessionType;
|
|
4953
5610
|
export type IntegrationCredentialsResult = Components.Schemas.IntegrationCredentialsResult;
|
|
4954
5611
|
export type IntegrationId = Components.Schemas.IntegrationId;
|
|
5612
|
+
export type JourneyContext = Components.Schemas.JourneyContext;
|
|
4955
5613
|
export type MarkupPricingModel = Components.Schemas.MarkupPricingModel;
|
|
4956
5614
|
export type MetaData = Components.Schemas.MetaData;
|
|
4957
5615
|
export type Opportunity = Components.Schemas.Opportunity;
|
|
@@ -4986,6 +5644,8 @@ export type RecurrenceAmountDto = Components.Schemas.RecurrenceAmountDto;
|
|
|
4986
5644
|
export type RecurrenceAmountWithTax = Components.Schemas.RecurrenceAmountWithTax;
|
|
4987
5645
|
export type SalesTax = Components.Schemas.SalesTax;
|
|
4988
5646
|
export type SaveIntegrationCredentialsParams = Components.Schemas.SaveIntegrationCredentialsParams;
|
|
5647
|
+
export type SearchExternalCatalogParams = Components.Schemas.SearchExternalCatalogParams;
|
|
5648
|
+
export type SearchExternalCatalogResult = Components.Schemas.SearchExternalCatalogResult;
|
|
4989
5649
|
export type SearchProvidersParams = Components.Schemas.SearchProvidersParams;
|
|
4990
5650
|
export type SearchProvidersResult = Components.Schemas.SearchProvidersResult;
|
|
4991
5651
|
export type SearchStreetsParams = Components.Schemas.SearchStreetsParams;
|