@epilot/pricing-client 3.17.8 → 3.18.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 +22 -0
- package/dist/openapi.d.ts +142 -169
- package/dist/openapi.json +262 -676
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={914:function(e,r,t){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var a=i(t(240));r.default=a.default},240:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"servers":[{"url":"https://pricing-api.sls.epilot.io"}],"paths":{"/v1/order":{"post":{"operationId":"createOrder","requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/order/{id}":{"put":{"operationId":"putOrder","parameters":[{"in":"path","name":"id","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/public/cart:checkout":{"post":{"operationId":"$checkoutCart","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/public/catalog":{"post":{"operationId":"$searchCatalog","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/public/availability:check":{"post":{"operationId":"$availabilityCheck","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/validate-availability/{id}":{"get":{"operationId":"$validateAvailabilityFile","parameters":[{"in":"path","name":"id","required":true},{"in":"header","name":"X-Epilot-Org-ID","required":true}]}},"/v1/public/integration/{integrationId}/providers:search":{"post":{"operationId":"$searchProviders","parameters":[{"in":"header","name":"X-Epilot-Org-ID","required":true},{"in":"path","name":"integrationId","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/public/integration/{integrationId}/streets:search":{"post":{"operationId":"$searchStreets","parameters":[{"in":"header","name":"X-Epilot-Org-ID","required":true},{"in":"path","name":"integrationId","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/integration/{integrationId}/credentials":{"get":{"operationId":"$getCredentials","parameters":[{"in":"path","name":"integrationId","required":true}]}},"/v1/integration/{integrationId}/credentials:save":{"put":{"operationId":"$saveCredentials","parameters":[{"in":"path","name":"integrationId","required":true}],"requestBody":{"content":{"application/json":{}}}}},"/v1/integration/{integrationId}/credentials:delete":{"delete":{"operationId":"$deleteCredentials","parameters":[{"in":"path","name":"integrationId","required":true}]}},"/v1/public/opportunity":{"post":{"deprecated":true,"operationId":"$createOpportunity","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}}},"components":{}}')}},r={},t=function t(i){var a=r[i];if(void 0!==a)return a.exports;var n=r[i]={exports:{}};return e[i].call(n.exports,n,n.exports,t),n.exports}(914),i=exports;for(var a in t)i[a]=t[a];t.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{"use strict";var e={914:function(e,r,t){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var a=i(t(240));r.default=a.default},240:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"servers":[{"url":"https://pricing-api.sls.epilot.io"}],"paths":{"/v1/order":{"post":{"operationId":"createOrder","requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/order/{id}":{"put":{"operationId":"putOrder","parameters":[{"in":"path","name":"id","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/public/cart:checkout":{"post":{"operationId":"$checkoutCart","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/public/catalog":{"post":{"operationId":"$searchCatalog","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/public/availability:check":{"post":{"operationId":"$availabilityCheck","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/validate-availability/{id}":{"get":{"operationId":"$validateAvailabilityFile","parameters":[{"in":"path","name":"id","required":true},{"in":"header","name":"X-Epilot-Org-ID","required":true}]}},"/v1/public/integration/{integrationId}/providers:search":{"post":{"operationId":"$searchProviders","parameters":[{"in":"header","name":"X-Epilot-Org-ID","required":true},{"in":"path","name":"integrationId","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/public/integration/{integrationId}/streets:search":{"post":{"operationId":"$searchStreets","parameters":[{"in":"header","name":"X-Epilot-Org-ID","required":true},{"in":"path","name":"integrationId","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/public/integration/{integrationId}/compute-price":{"post":{"operationId":"$computePrice","parameters":[{"in":"header","name":"X-Epilot-Org-ID","required":true},{"in":"path","name":"integrationId","required":true}],"requestBody":{"content":{"application/json":{}}}}},"/v1/integration/{integrationId}/credentials":{"get":{"operationId":"$getCredentials","parameters":[{"in":"path","name":"integrationId","required":true}]}},"/v1/integration/{integrationId}/credentials:save":{"put":{"operationId":"$saveCredentials","parameters":[{"in":"path","name":"integrationId","required":true}],"requestBody":{"content":{"application/json":{}}}}},"/v1/integration/{integrationId}/credentials:delete":{"delete":{"operationId":"$deleteCredentials","parameters":[{"in":"path","name":"integrationId","required":true}]}},"/v1/public/opportunity":{"post":{"deprecated":true,"operationId":"$createOpportunity","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}}},"components":{}}')}},r={},t=function t(i){var a=r[i];if(void 0!==a)return a.exports;var n=r[i]={exports:{}};return e[i].call(n.exports,n,n.exports,t),n.exports}(914),i=exports;for(var a in t)i[a]=t[a];t.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
|
|
@@ -156,6 +156,28 @@
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
|
+
"/v1/public/integration/{integrationId}/compute-price": {
|
|
160
|
+
"post": {
|
|
161
|
+
"operationId": "$computePrice",
|
|
162
|
+
"parameters": [
|
|
163
|
+
{
|
|
164
|
+
"in": "header",
|
|
165
|
+
"name": "X-Epilot-Org-ID",
|
|
166
|
+
"required": true
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"in": "path",
|
|
170
|
+
"name": "integrationId",
|
|
171
|
+
"required": true
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"requestBody": {
|
|
175
|
+
"content": {
|
|
176
|
+
"application/json": {}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
159
181
|
"/v1/integration/{integrationId}/credentials": {
|
|
160
182
|
"get": {
|
|
161
183
|
"operationId": "$getCredentials",
|
package/dist/openapi.d.ts
CHANGED
|
@@ -91,20 +91,6 @@ declare namespace Components {
|
|
|
91
91
|
products: string[];
|
|
92
92
|
filters: /* Availability filters dimensions */ AvailabilityFilters;
|
|
93
93
|
}
|
|
94
|
-
export interface AvailabilityDate {
|
|
95
|
-
/**
|
|
96
|
-
* The availability interval start date
|
|
97
|
-
* example:
|
|
98
|
-
* 2017-07-21
|
|
99
|
-
*/
|
|
100
|
-
available_start_date?: string; // date
|
|
101
|
-
/**
|
|
102
|
-
* The availability interval end date
|
|
103
|
-
* example:
|
|
104
|
-
* 2017-07-21
|
|
105
|
-
*/
|
|
106
|
-
available_end_date?: string; // date
|
|
107
|
-
}
|
|
108
94
|
/**
|
|
109
95
|
* Availability filters dimensions
|
|
110
96
|
*/
|
|
@@ -469,51 +455,6 @@ declare namespace Components {
|
|
|
469
455
|
password: string;
|
|
470
456
|
}
|
|
471
457
|
export type BillingPeriod = "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly";
|
|
472
|
-
/**
|
|
473
|
-
* Supports shopping for products and services until ready for checkout.
|
|
474
|
-
*/
|
|
475
|
-
export interface Cart {
|
|
476
|
-
/**
|
|
477
|
-
* Total of all items before (discounts or) taxes are applied.
|
|
478
|
-
*/
|
|
479
|
-
amount_subtotal?: number;
|
|
480
|
-
/**
|
|
481
|
-
* Total of all items before (discounts or) taxes are applied, as a string with all the decimal places.
|
|
482
|
-
*/
|
|
483
|
-
amount_subtotal_decimal?: string;
|
|
484
|
-
/**
|
|
485
|
-
* Total of all items after (discounts and) taxes are applied.
|
|
486
|
-
*/
|
|
487
|
-
amount_total?: number;
|
|
488
|
-
/**
|
|
489
|
-
* Total of all items after (discounts and) taxes are applied, as a string with all the decimal places.
|
|
490
|
-
*/
|
|
491
|
-
amount_total_decimal?: string;
|
|
492
|
-
/**
|
|
493
|
-
* The cart identifier
|
|
494
|
-
*/
|
|
495
|
-
id?: string;
|
|
496
|
-
/**
|
|
497
|
-
* The user's Organization Id the cart belongs to
|
|
498
|
-
*/
|
|
499
|
-
org_id?: string;
|
|
500
|
-
/**
|
|
501
|
-
* The status of the Cart:
|
|
502
|
-
* - open - the cart checkout is still in progress. Payment processing has not started
|
|
503
|
-
* - complete - the cart checkout is complete. Payment processing may still be in progress
|
|
504
|
-
* - expired - the cart checkout has expired. No further processing will occur
|
|
505
|
-
*
|
|
506
|
-
*/
|
|
507
|
-
status?: "open" | "complete" | "expired";
|
|
508
|
-
customer?: Customer;
|
|
509
|
-
billing_address?: Address;
|
|
510
|
-
delivery_address?: Address;
|
|
511
|
-
metadata?: /* A set of key-value pairs used to store meta data information about an entity. */ MetaData;
|
|
512
|
-
line_items?: /* Tracks a set of product prices, quantities, (discounts) and taxes. */ PriceItems;
|
|
513
|
-
total_details?: /* The total details with tax (and discount) aggregated totals. */ TotalDetails;
|
|
514
|
-
created_at?: string; // date-time
|
|
515
|
-
updated_at?: string; // date-time
|
|
516
|
-
}
|
|
517
458
|
/**
|
|
518
459
|
* A valid cart payload from a client.
|
|
519
460
|
*/
|
|
@@ -1039,6 +980,105 @@ declare namespace Components {
|
|
|
1039
980
|
*/
|
|
1040
981
|
CompositePrice;
|
|
1041
982
|
}
|
|
983
|
+
/**
|
|
984
|
+
* The compute price payload
|
|
985
|
+
*/
|
|
986
|
+
export interface ComputePriceParams {
|
|
987
|
+
/**
|
|
988
|
+
* The postal code to search for providers
|
|
989
|
+
*/
|
|
990
|
+
postal_code: string;
|
|
991
|
+
/**
|
|
992
|
+
* The monthly consumption to compute the price in kWh
|
|
993
|
+
*/
|
|
994
|
+
consumption: number;
|
|
995
|
+
/**
|
|
996
|
+
* The association id
|
|
997
|
+
*/
|
|
998
|
+
association_id?: string;
|
|
999
|
+
/**
|
|
1000
|
+
* The product type
|
|
1001
|
+
*/
|
|
1002
|
+
type: "power" | "gas";
|
|
1003
|
+
/**
|
|
1004
|
+
* The billing period (defaults to monthly)
|
|
1005
|
+
*/
|
|
1006
|
+
billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly" | "one_time";
|
|
1007
|
+
}
|
|
1008
|
+
export interface ComputePriceResult {
|
|
1009
|
+
/**
|
|
1010
|
+
* The computed total price
|
|
1011
|
+
*/
|
|
1012
|
+
amount_total: number;
|
|
1013
|
+
/**
|
|
1014
|
+
* The computed total price as decimal
|
|
1015
|
+
*/
|
|
1016
|
+
amount_total_decimal: string;
|
|
1017
|
+
/**
|
|
1018
|
+
* The computed static price
|
|
1019
|
+
*/
|
|
1020
|
+
amount_static?: number;
|
|
1021
|
+
/**
|
|
1022
|
+
* The computed static price as decimal
|
|
1023
|
+
*/
|
|
1024
|
+
amount_static_decimal?: any;
|
|
1025
|
+
/**
|
|
1026
|
+
* The computed variable price
|
|
1027
|
+
*/
|
|
1028
|
+
amount_variable?: number;
|
|
1029
|
+
/**
|
|
1030
|
+
* The computed variable price as decimal
|
|
1031
|
+
*/
|
|
1032
|
+
amount_variable_decimal?: string;
|
|
1033
|
+
/**
|
|
1034
|
+
* The currency of the computed price (three-letter ISO currency code)
|
|
1035
|
+
*/
|
|
1036
|
+
currency: /* The currency of the computed price (three-letter ISO currency code) */ /**
|
|
1037
|
+
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
1038
|
+
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
1039
|
+
*
|
|
1040
|
+
* example:
|
|
1041
|
+
* EUR
|
|
1042
|
+
*/
|
|
1043
|
+
Currency;
|
|
1044
|
+
/**
|
|
1045
|
+
* The billing period
|
|
1046
|
+
*/
|
|
1047
|
+
billing_period: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly" | "one_time";
|
|
1048
|
+
breakdown: /* Price breakdown */ ComputedPriceBreakdown;
|
|
1049
|
+
}
|
|
1050
|
+
/**
|
|
1051
|
+
* The computed price
|
|
1052
|
+
*/
|
|
1053
|
+
export interface ComputedBasePrice {
|
|
1054
|
+
/**
|
|
1055
|
+
* The computed price
|
|
1056
|
+
*/
|
|
1057
|
+
amount: number;
|
|
1058
|
+
/**
|
|
1059
|
+
* The computed price as decimal
|
|
1060
|
+
*/
|
|
1061
|
+
amount_decimal: string;
|
|
1062
|
+
}
|
|
1063
|
+
/**
|
|
1064
|
+
* Price breakdown
|
|
1065
|
+
*/
|
|
1066
|
+
export interface ComputedPriceBreakdown {
|
|
1067
|
+
/**
|
|
1068
|
+
* The static price breakdown
|
|
1069
|
+
*/
|
|
1070
|
+
static?: /* The computed price components */ ComputedPriceComponents;
|
|
1071
|
+
/**
|
|
1072
|
+
* The variable price breakdown
|
|
1073
|
+
*/
|
|
1074
|
+
variable?: /* The computed price components */ ComputedPriceComponents;
|
|
1075
|
+
}
|
|
1076
|
+
/**
|
|
1077
|
+
* The computed price components
|
|
1078
|
+
*/
|
|
1079
|
+
export interface ComputedPriceComponents {
|
|
1080
|
+
[name: string]: /* The computed price */ ComputedBasePrice;
|
|
1081
|
+
}
|
|
1042
1082
|
/**
|
|
1043
1083
|
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
1044
1084
|
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
@@ -1059,35 +1099,6 @@ declare namespace Components {
|
|
|
1059
1099
|
phone?: string;
|
|
1060
1100
|
}
|
|
1061
1101
|
export type EntityId = string; // uuid
|
|
1062
|
-
/**
|
|
1063
|
-
* example:
|
|
1064
|
-
* {
|
|
1065
|
-
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
1066
|
-
* "_org": "123",
|
|
1067
|
-
* "_schema": "contact",
|
|
1068
|
-
* "_tags": [
|
|
1069
|
-
* "example",
|
|
1070
|
-
* "mock"
|
|
1071
|
-
* ],
|
|
1072
|
-
* "_created_at": "2021-02-09T12:41:43.662Z",
|
|
1073
|
-
* "_updated_at": "2021-02-09T12:41:43.662Z"
|
|
1074
|
-
* }
|
|
1075
|
-
*/
|
|
1076
|
-
export interface EntityItem {
|
|
1077
|
-
_id: EntityId /* uuid */;
|
|
1078
|
-
/**
|
|
1079
|
-
* Title of entity
|
|
1080
|
-
*/
|
|
1081
|
-
_title: string;
|
|
1082
|
-
/**
|
|
1083
|
-
* Organization Id the entity belongs to
|
|
1084
|
-
*/
|
|
1085
|
-
_org: string;
|
|
1086
|
-
_schema: string;
|
|
1087
|
-
_tags?: string[];
|
|
1088
|
-
_created_at: string; // date-time
|
|
1089
|
-
_updated_at: string; // date-time
|
|
1090
|
-
}
|
|
1091
1102
|
export interface EntityRelation {
|
|
1092
1103
|
[name: string]: any;
|
|
1093
1104
|
entity_id?: string;
|
|
@@ -2338,51 +2349,6 @@ declare namespace Components {
|
|
|
2338
2349
|
display_mode?: PriceTierDisplayMode;
|
|
2339
2350
|
}
|
|
2340
2351
|
export type PriceTierDisplayMode = "hidden" | "on_request";
|
|
2341
|
-
/**
|
|
2342
|
-
* The result from the calculation of a set of price items.
|
|
2343
|
-
*/
|
|
2344
|
-
export interface PricingDetails {
|
|
2345
|
-
items?: (/**
|
|
2346
|
-
* Represents a price item
|
|
2347
|
-
* example:
|
|
2348
|
-
* {
|
|
2349
|
-
* "$ref": "#/components/examples/price-item"
|
|
2350
|
-
* }
|
|
2351
|
-
*/
|
|
2352
|
-
PriceItem | /**
|
|
2353
|
-
* Represents a composite price input to the pricing library.
|
|
2354
|
-
* example:
|
|
2355
|
-
* {
|
|
2356
|
-
* "$ref": "#/components/examples/price-item"
|
|
2357
|
-
* }
|
|
2358
|
-
*/
|
|
2359
|
-
CompositePriceItem)[];
|
|
2360
|
-
/**
|
|
2361
|
-
* Total of all items before (discounts or) taxes are applied.
|
|
2362
|
-
*/
|
|
2363
|
-
amount_subtotal?: number;
|
|
2364
|
-
/**
|
|
2365
|
-
* Total of all items after (discounts and) taxes are applied.
|
|
2366
|
-
*/
|
|
2367
|
-
amount_total?: number;
|
|
2368
|
-
/**
|
|
2369
|
-
* The unit gross amount value.
|
|
2370
|
-
*/
|
|
2371
|
-
unit_amount_gross?: number;
|
|
2372
|
-
/**
|
|
2373
|
-
* This is the sum of all the price item tax amounts.
|
|
2374
|
-
*/
|
|
2375
|
-
amount_tax?: number;
|
|
2376
|
-
total_details?: /* The total details with tax (and discount) aggregated totals. */ TotalDetails;
|
|
2377
|
-
currency?: /**
|
|
2378
|
-
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
2379
|
-
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
2380
|
-
*
|
|
2381
|
-
* example:
|
|
2382
|
-
* EUR
|
|
2383
|
-
*/
|
|
2384
|
-
Currency;
|
|
2385
|
-
}
|
|
2386
2352
|
/**
|
|
2387
2353
|
* The product entity
|
|
2388
2354
|
* example:
|
|
@@ -2569,35 +2535,6 @@ declare namespace Components {
|
|
|
2569
2535
|
*/
|
|
2570
2536
|
amount_tax?: number;
|
|
2571
2537
|
}
|
|
2572
|
-
/**
|
|
2573
|
-
* An amount associated with a specific recurrence and tax.
|
|
2574
|
-
*/
|
|
2575
|
-
export interface RecurrenceAmountWithTax {
|
|
2576
|
-
/**
|
|
2577
|
-
* The price type.
|
|
2578
|
-
*/
|
|
2579
|
-
type?: string;
|
|
2580
|
-
/**
|
|
2581
|
-
* The price billing period.
|
|
2582
|
-
*/
|
|
2583
|
-
billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly";
|
|
2584
|
-
/**
|
|
2585
|
-
* Total of all items after (discounts and) taxes are applied.
|
|
2586
|
-
*/
|
|
2587
|
-
amount_total: number;
|
|
2588
|
-
/**
|
|
2589
|
-
* Total of all items before (discounts or) taxes are applied.
|
|
2590
|
-
*/
|
|
2591
|
-
amount_subtotal: number;
|
|
2592
|
-
/**
|
|
2593
|
-
* Total of all items taxes, with same recurrence.
|
|
2594
|
-
*/
|
|
2595
|
-
amount_tax?: number;
|
|
2596
|
-
/**
|
|
2597
|
-
* Tax
|
|
2598
|
-
*/
|
|
2599
|
-
tax?: /* A tax amount associated with a specific tax rate. */ TaxAmountBreakdown;
|
|
2600
|
-
}
|
|
2601
2538
|
export type SalesTax = "nontaxable" | "reduced" | "standard";
|
|
2602
2539
|
export type SaveIntegrationCredentialsParams = /* The basic auth credentials */ BasicAuthCredentials;
|
|
2603
2540
|
/**
|
|
@@ -2653,7 +2590,7 @@ declare namespace Components {
|
|
|
2653
2590
|
/**
|
|
2654
2591
|
* The street name
|
|
2655
2592
|
*/
|
|
2656
|
-
|
|
2593
|
+
street: string;
|
|
2657
2594
|
}
|
|
2658
2595
|
/**
|
|
2659
2596
|
* the tax configuration
|
|
@@ -2821,10 +2758,6 @@ declare namespace Components {
|
|
|
2821
2758
|
* The aggregated price items tax amount per rate.
|
|
2822
2759
|
*/
|
|
2823
2760
|
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
|
|
2824
|
-
/**
|
|
2825
|
-
* The aggregated price items recurrences by tax rate.
|
|
2826
|
-
*/
|
|
2827
|
-
recurrencesByTax?: (/* An amount associated with a specific recurrence and tax. */ RecurrenceAmountWithTax)[];
|
|
2828
2761
|
};
|
|
2829
2762
|
}
|
|
2830
2763
|
/**
|
|
@@ -2916,6 +2849,24 @@ declare namespace Paths {
|
|
|
2916
2849
|
export type $400 = Components.Schemas.Error;
|
|
2917
2850
|
}
|
|
2918
2851
|
}
|
|
2852
|
+
namespace $ComputePrice {
|
|
2853
|
+
export interface HeaderParameters {
|
|
2854
|
+
"X-Epilot-Org-ID": Parameters.XEpilotOrgID;
|
|
2855
|
+
}
|
|
2856
|
+
namespace Parameters {
|
|
2857
|
+
export type IntegrationId = Components.Schemas.IntegrationId;
|
|
2858
|
+
export type XEpilotOrgID = string;
|
|
2859
|
+
}
|
|
2860
|
+
export interface PathParameters {
|
|
2861
|
+
integrationId: Parameters.IntegrationId;
|
|
2862
|
+
}
|
|
2863
|
+
export type RequestBody = /* The compute price payload */ Components.Schemas.ComputePriceParams;
|
|
2864
|
+
namespace Responses {
|
|
2865
|
+
export type $200 = Components.Schemas.ComputePriceResult;
|
|
2866
|
+
export type $400 = Components.Schemas.Error;
|
|
2867
|
+
export type $403 = Components.Schemas.Error;
|
|
2868
|
+
}
|
|
2869
|
+
}
|
|
2919
2870
|
namespace $CreateOpportunity {
|
|
2920
2871
|
export interface HeaderParameters {
|
|
2921
2872
|
"X-Ivy-Org-ID": Parameters.XIvyOrgID;
|
|
@@ -3219,13 +3170,23 @@ export interface OperationMethods {
|
|
|
3219
3170
|
/**
|
|
3220
3171
|
* $searchStreets - searchStreets
|
|
3221
3172
|
*
|
|
3222
|
-
* Returns the list of streets available for a given
|
|
3173
|
+
* Returns the list of streets available for a given postal code and city
|
|
3223
3174
|
*/
|
|
3224
3175
|
'$searchStreets'(
|
|
3225
3176
|
parameters?: Parameters<Paths.$SearchStreets.PathParameters & Paths.$SearchStreets.HeaderParameters> | null,
|
|
3226
3177
|
data?: Paths.$SearchStreets.RequestBody,
|
|
3227
3178
|
config?: AxiosRequestConfig
|
|
3228
3179
|
): OperationResponse<Paths.$SearchStreets.Responses.$200>
|
|
3180
|
+
/**
|
|
3181
|
+
* $computePrice - computePrice
|
|
3182
|
+
*
|
|
3183
|
+
* Returns the price for a given product type based on location and consumption
|
|
3184
|
+
*/
|
|
3185
|
+
'$computePrice'(
|
|
3186
|
+
parameters?: Parameters<Paths.$ComputePrice.PathParameters & Paths.$ComputePrice.HeaderParameters> | null,
|
|
3187
|
+
data?: Paths.$ComputePrice.RequestBody,
|
|
3188
|
+
config?: AxiosRequestConfig
|
|
3189
|
+
): OperationResponse<Paths.$ComputePrice.Responses.$200>
|
|
3229
3190
|
/**
|
|
3230
3191
|
* $getCredentials - getCredentials
|
|
3231
3192
|
*
|
|
@@ -3372,7 +3333,7 @@ export interface PathsDictionary {
|
|
|
3372
3333
|
/**
|
|
3373
3334
|
* $searchStreets - searchStreets
|
|
3374
3335
|
*
|
|
3375
|
-
* Returns the list of streets available for a given
|
|
3336
|
+
* Returns the list of streets available for a given postal code and city
|
|
3376
3337
|
*/
|
|
3377
3338
|
'post'(
|
|
3378
3339
|
parameters?: Parameters<Paths.$SearchStreets.PathParameters & Paths.$SearchStreets.HeaderParameters> | null,
|
|
@@ -3380,6 +3341,18 @@ export interface PathsDictionary {
|
|
|
3380
3341
|
config?: AxiosRequestConfig
|
|
3381
3342
|
): OperationResponse<Paths.$SearchStreets.Responses.$200>
|
|
3382
3343
|
}
|
|
3344
|
+
['/v1/public/integration/{integrationId}/compute-price']: {
|
|
3345
|
+
/**
|
|
3346
|
+
* $computePrice - computePrice
|
|
3347
|
+
*
|
|
3348
|
+
* Returns the price for a given product type based on location and consumption
|
|
3349
|
+
*/
|
|
3350
|
+
'post'(
|
|
3351
|
+
parameters?: Parameters<Paths.$ComputePrice.PathParameters & Paths.$ComputePrice.HeaderParameters> | null,
|
|
3352
|
+
data?: Paths.$ComputePrice.RequestBody,
|
|
3353
|
+
config?: AxiosRequestConfig
|
|
3354
|
+
): OperationResponse<Paths.$ComputePrice.Responses.$200>
|
|
3355
|
+
}
|
|
3383
3356
|
['/v1/integration/{integrationId}/credentials']: {
|
|
3384
3357
|
/**
|
|
3385
3358
|
* $getCredentials - getCredentials
|