@@ -1039,6 +1039,76 @@ declare namespace Components {
1039
1039
*/
1040
1040
CompositePrice ;
1041
1041
}
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
+ }
1042
1112
/**
1043
1113
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
1044
1114
* 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 {
2916
2986
export type $400 = Components . Schemas . Error ;
2917
2987
}
2918
2988
}
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
+ }
2919
3007
namespace $CreateOpportunity {
2920
3008
export interface HeaderParameters {
2921
3009
"X-Ivy-Org-ID" : Parameters . XIvyOrgID ;
@@ -3219,13 +3307,23 @@ export interface OperationMethods {
3219
3307
/**
3220
3308
* $searchStreets - searchStreets
3221
3309
*
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
3223
3311
*/
3224
3312
'$searchStreets' (
3225
3313
parameters ?: Parameters < Paths . $SearchStreets . PathParameters & Paths . $SearchStreets . HeaderParameters > | null ,
3226
3314
data ?: Paths . $SearchStreets . RequestBody ,
3227
3315
config ?: AxiosRequestConfig
3228
3316
) : 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 >
3229
3327
/**
3230
3328
* $getCredentials - getCredentials
3231
3329
*
@@ -3372,14 +3470,26 @@ export interface PathsDictionary {
3372
3470
/**
3373
3471
* $searchStreets - searchStreets
3374
3472
*
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
3376
3474
*/
3377
3475
'post' (
3378
3476
parameters ?: Parameters < Paths . $SearchStreets . PathParameters & Paths . $SearchStreets . HeaderParameters > | null ,
3379
3477
data ?: Paths . $SearchStreets . RequestBody ,
3380
3478
config ?: AxiosRequestConfig
3381
3479
) : OperationResponse < Paths . $SearchStreets . Responses . $200 >
3382
3480
}
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
+ }
3383
3493
[ '/v1/integration/{integrationId}/credentials' ] : {
3384
3494
/**
3385
3495
* $getCredentials - getCredentials
0 commit comments