Skip to content

Commit 4ceece8

Browse files
committed
chore (pricing-client): update + bump client
1 parent 37f7290 commit 4ceece8

File tree

5 files changed

+351
-6
lines changed

5 files changed

+351
-6
lines changed

clients/pricing-client/package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/pricing-client/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@epilot/pricing-client",
3-
"version": "3.17.8",
3+
"version": "3.17.9",
44
"description": "Client for epilot Pricing APIs",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

clients/pricing-client/src/openapi-runtime.json

+22
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,28 @@
156156
}
157157
}
158158
},
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+
},
159181
"/v1/integration/{integrationId}/credentials": {
160182
"get": {
161183
"operationId": "$getCredentials",

clients/pricing-client/src/openapi.d.ts

+112-2
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,76 @@ declare namespace Components {
10391039
*/
10401040
CompositePrice;
10411041
}
1042+
/**
1043+
* The compute price payload
1044+
*/
1045+
export interface ComputePriceParams {
1046+
/**
1047+
* The postal code to search for providers
1048+
*/
1049+
postal_code: string;
1050+
/**
1051+
* The monthly consumption to compute the price in kWh
1052+
*/
1053+
consumption: number;
1054+
/**
1055+
* The association id
1056+
*/
1057+
association_id?: string;
1058+
/**
1059+
* The product type
1060+
*/
1061+
type: "power" | "gas";
1062+
/**
1063+
* The billing period (defaults to monthly)
1064+
*/
1065+
billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly" | "one_time";
1066+
}
1067+
export interface ComputePriceResult {
1068+
/**
1069+
* The computed total price
1070+
*/
1071+
amount_total: number;
1072+
/**
1073+
* The computed total price as decimal
1074+
*/
1075+
amount_total_decimal: string;
1076+
/**
1077+
* The currency of the computed price (three-letter ISO currency code)
1078+
*/
1079+
currency: /* The currency of the computed price (three-letter ISO currency code) */ /**
1080+
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
1081+
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
1082+
*
1083+
* example:
1084+
* EUR
1085+
*/
1086+
Currency;
1087+
/**
1088+
* The billing period
1089+
*/
1090+
billing_period: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly" | "one_time";
1091+
breakdown: /* Price breakdown */ ComputedPriceBreakdown;
1092+
}
1093+
/**
1094+
* The computed price
1095+
*/
1096+
export interface ComputedBasePrice {
1097+
/**
1098+
* The computed price
1099+
*/
1100+
amount: number;
1101+
/**
1102+
* The computed price as decimal
1103+
*/
1104+
amount_decimal: string;
1105+
}
1106+
/**
1107+
* Price breakdown
1108+
*/
1109+
export interface ComputedPriceBreakdown {
1110+
[name: string]: /* The computed price */ ComputedBasePrice;
1111+
}
10421112
/**
10431113
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
10441114
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
@@ -2916,6 +2986,24 @@ declare namespace Paths {
29162986
export type $400 = Components.Schemas.Error;
29172987
}
29182988
}
2989+
namespace $ComputePrice {
2990+
export interface HeaderParameters {
2991+
"X-Epilot-Org-ID": Parameters.XEpilotOrgID;
2992+
}
2993+
namespace Parameters {
2994+
export type IntegrationId = Components.Schemas.IntegrationId;
2995+
export type XEpilotOrgID = string;
2996+
}
2997+
export interface PathParameters {
2998+
integrationId: Parameters.IntegrationId;
2999+
}
3000+
export type RequestBody = /* The compute price payload */ Components.Schemas.ComputePriceParams;
3001+
namespace Responses {
3002+
export type $200 = Components.Schemas.ComputePriceResult;
3003+
export type $400 = Components.Schemas.Error;
3004+
export type $403 = Components.Schemas.Error;
3005+
}
3006+
}
29193007
namespace $CreateOpportunity {
29203008
export interface HeaderParameters {
29213009
"X-Ivy-Org-ID": Parameters.XIvyOrgID;
@@ -3219,13 +3307,23 @@ export interface OperationMethods {
32193307
/**
32203308
* $searchStreets - searchStreets
32213309
*
3222-
* Returns the list of streets available for a given postal_code and city
3310+
* Returns the list of streets available for a given postal code and city
32233311
*/
32243312
'$searchStreets'(
32253313
parameters?: Parameters<Paths.$SearchStreets.PathParameters & Paths.$SearchStreets.HeaderParameters> | null,
32263314
data?: Paths.$SearchStreets.RequestBody,
32273315
config?: AxiosRequestConfig
32283316
): OperationResponse<Paths.$SearchStreets.Responses.$200>
3317+
/**
3318+
* $computePrice - computePrice
3319+
*
3320+
* Returns the price for a given product type based on location and consumption
3321+
*/
3322+
'$computePrice'(
3323+
parameters?: Parameters<Paths.$ComputePrice.PathParameters & Paths.$ComputePrice.HeaderParameters> | null,
3324+
data?: Paths.$ComputePrice.RequestBody,
3325+
config?: AxiosRequestConfig
3326+
): OperationResponse<Paths.$ComputePrice.Responses.$200>
32293327
/**
32303328
* $getCredentials - getCredentials
32313329
*
@@ -3372,14 +3470,26 @@ export interface PathsDictionary {
33723470
/**
33733471
* $searchStreets - searchStreets
33743472
*
3375-
* Returns the list of streets available for a given postal_code and city
3473+
* Returns the list of streets available for a given postal code and city
33763474
*/
33773475
'post'(
33783476
parameters?: Parameters<Paths.$SearchStreets.PathParameters & Paths.$SearchStreets.HeaderParameters> | null,
33793477
data?: Paths.$SearchStreets.RequestBody,
33803478
config?: AxiosRequestConfig
33813479
): OperationResponse<Paths.$SearchStreets.Responses.$200>
33823480
}
3481+
['/v1/public/integration/{integrationId}/compute-price']: {
3482+
/**
3483+
* $computePrice - computePrice
3484+
*
3485+
* Returns the price for a given product type based on location and consumption
3486+
*/
3487+
'post'(
3488+
parameters?: Parameters<Paths.$ComputePrice.PathParameters & Paths.$ComputePrice.HeaderParameters> | null,
3489+
data?: Paths.$ComputePrice.RequestBody,
3490+
config?: AxiosRequestConfig
3491+
): OperationResponse<Paths.$ComputePrice.Responses.$200>
3492+
}
33833493
['/v1/integration/{integrationId}/credentials']: {
33843494
/**
33853495
* $getCredentials - getCredentials

0 commit comments

Comments
 (0)