@epilot/pricing-client 3.22.5 → 3.23.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 CHANGED
@@ -306,6 +306,10 @@ declare namespace Components {
306
306
  * When set to true on a `_price` displayed as OnRequest (`show_as_on_request: 'on_request'`) this flag means the price has been approved and can now be displayed to the customer. This flag is only valid for prices shown as 'on_request'.
307
307
  */
308
308
  on_request_approved?: boolean;
309
+ /**
310
+ * Specifies whether the price is considered `inclusive` of taxes or not.
311
+ */
312
+ is_tax_inclusive?: boolean;
309
313
  }
310
314
  /**
311
315
  * Represents a valid base price item from a client.
@@ -469,6 +473,10 @@ declare namespace Components {
469
473
  */
470
474
  _updated_at?: string;
471
475
  };
476
+ /**
477
+ * Specifies whether the price is considered `inclusive` of taxes or not.
478
+ */
479
+ is_tax_inclusive?: boolean;
472
480
  }
473
481
  /**
474
482
  * The basic auth credentials
@@ -892,6 +900,10 @@ declare namespace Components {
892
900
  * When set to true on a `_price` displayed as OnRequest (`show_as_on_request: 'on_request'`) this flag means the price has been approved and can now be displayed to the customer. This flag is only valid for prices shown as 'on_request'.
893
901
  */
894
902
  on_request_approved?: boolean;
903
+ /**
904
+ * Specifies whether the price is considered `inclusive` of taxes or not.
905
+ */
906
+ is_tax_inclusive?: boolean;
895
907
  /**
896
908
  * Contains price item configurations, per price component, when the main price item is a [composite price](/api/pricing#tag/dynamic_price_schema).
897
909
  */
@@ -1058,6 +1070,10 @@ declare namespace Components {
1058
1070
  */
1059
1071
  _updated_at?: string;
1060
1072
  };
1073
+ /**
1074
+ * Specifies whether the price is considered `inclusive` of taxes or not.
1075
+ */
1076
+ is_tax_inclusive?: boolean;
1061
1077
  /**
1062
1078
  * Contains price item configurations, per price component, when the main price item is a [composite price](/api/pricing#tag/dynamic_price_schema).
1063
1079
  */
@@ -1080,9 +1096,21 @@ declare namespace Components {
1080
1096
  */
1081
1097
  postal_code: string;
1082
1098
  /**
1083
- * The monthly consumption to compute the price in kWh
1099
+ * The consumption type
1100
+ */
1101
+ consumption_type?: "household" | "heating_pump" | "night_storage_heating";
1102
+ /**
1103
+ * The monthly consumption to compute the price in kWh (to be deprecated in favor of consumption_HT)
1084
1104
  */
1085
1105
  consumption: number;
1106
+ /**
1107
+ * The monthly HT consumption to compute the price in kWh
1108
+ */
1109
+ consumption_HT?: number;
1110
+ /**
1111
+ * The monthly NT consumption to compute the price in kWh
1112
+ */
1113
+ consumption_NT?: number;
1086
1114
  /**
1087
1115
  * The association id
1088
1116
  */
@@ -1114,13 +1142,21 @@ declare namespace Components {
1114
1142
  */
1115
1143
  amount_static_decimal?: any;
1116
1144
  /**
1117
- * The computed variable price
1145
+ * The computed variable price, for the day period
1146
+ */
1147
+ amount_variable_ht?: number;
1148
+ /**
1149
+ * The computed variable price, for the day period, as decimal
1118
1150
  */
1119
- amount_variable?: number;
1151
+ amount_variable_decimal_ht?: string;
1120
1152
  /**
1121
- * The computed variable price as decimal
1153
+ * The computed variable price, for the night period
1122
1154
  */
1123
- amount_variable_decimal?: string;
1155
+ amount_variable_nt?: number;
1156
+ /**
1157
+ * The computed variable price, for the night period, as decimal
1158
+ */
1159
+ amount_variable_decimal_nt?: string;
1124
1160
  /**
1125
1161
  * The currency of the computed price (three-letter ISO currency code)
1126
1162
  */
@@ -1293,13 +1329,21 @@ declare namespace Components {
1293
1329
  */
1294
1330
  amount_static_decimal?: any;
1295
1331
  /**
1296
- * The computed variable price
1332
+ * The computed variable price, for the day period
1297
1333
  */
1298
- amount_variable?: number;
1334
+ amount_variable_ht?: number;
1299
1335
  /**
1300
- * The computed variable price as decimal
1336
+ * The computed variable price, for the day period, as decimal
1301
1337
  */
1302
- amount_variable_decimal?: string;
1338
+ amount_variable_decimal_ht?: string;
1339
+ /**
1340
+ * The computed variable price, for the night period
1341
+ */
1342
+ amount_variable_nt?: number;
1343
+ /**
1344
+ * The computed variable price, for the night period, as decimal
1345
+ */
1346
+ amount_variable_decimal_nt?: string;
1303
1347
  /**
1304
1348
  * The currency of the computed price (three-letter ISO currency code)
1305
1349
  */
@@ -2169,6 +2213,10 @@ declare namespace Components {
2169
2213
  * When set to true on a `_price` displayed as OnRequest (`show_as_on_request: 'on_request'`) this flag means the price has been approved and can now be displayed to the customer. This flag is only valid for prices shown as 'on_request'.
2170
2214
  */
2171
2215
  on_request_approved?: boolean;
2216
+ /**
2217
+ * Specifies whether the price is considered `inclusive` of taxes or not.
2218
+ */
2219
+ is_tax_inclusive?: boolean;
2172
2220
  /**
2173
2221
  * One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
2174
2222
  */
@@ -2343,6 +2391,10 @@ declare namespace Components {
2343
2391
  */
2344
2392
  _updated_at?: string;
2345
2393
  };
2394
+ /**
2395
+ * Specifies whether the price is considered `inclusive` of taxes or not.
2396
+ */
2397
+ is_tax_inclusive?: boolean;
2346
2398
  /**
2347
2399
  * One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
2348
2400
  */
package/dist/openapi.json CHANGED
@@ -2709,8 +2709,26 @@
2709
2709
  "description": "The postal code to search for providers",
2710
2710
  "type": "string"
2711
2711
  },
2712
+ "consumption_type": {
2713
+ "description": "The consumption type",
2714
+ "type": "string",
2715
+ "default": "household",
2716
+ "enum": [
2717
+ "household",
2718
+ "heating_pump",
2719
+ "night_storage_heating"
2720
+ ]
2721
+ },
2712
2722
  "consumption": {
2713
- "description": "The monthly consumption to compute the price in kWh",
2723
+ "description": "The monthly consumption to compute the price in kWh (to be deprecated in favor of consumption_HT)",
2724
+ "type": "number"
2725
+ },
2726
+ "consumption_HT": {
2727
+ "description": "The monthly HT consumption to compute the price in kWh",
2728
+ "type": "number"
2729
+ },
2730
+ "consumption_NT": {
2731
+ "description": "The monthly NT consumption to compute the price in kWh",
2714
2732
  "type": "number"
2715
2733
  },
2716
2734
  "association_id": {
@@ -2820,12 +2838,20 @@
2820
2838
  "amount_static_decimal": {
2821
2839
  "description": "The computed static price as decimal"
2822
2840
  },
2823
- "amount_variable": {
2824
- "description": "The computed variable price",
2841
+ "amount_variable_ht": {
2842
+ "description": "The computed variable price, for the day period",
2843
+ "type": "number"
2844
+ },
2845
+ "amount_variable_decimal_ht": {
2846
+ "description": "The computed variable price, for the day period, as decimal",
2847
+ "type": "string"
2848
+ },
2849
+ "amount_variable_nt": {
2850
+ "description": "The computed variable price, for the night period",
2825
2851
  "type": "number"
2826
2852
  },
2827
- "amount_variable_decimal": {
2828
- "description": "The computed variable price as decimal",
2853
+ "amount_variable_decimal_nt": {
2854
+ "description": "The computed variable price, for the night period, as decimal",
2829
2855
  "type": "string"
2830
2856
  },
2831
2857
  "currency": {
@@ -3169,6 +3195,10 @@
3169
3195
  "$ref": "#/components/schemas/Product"
3170
3196
  }
3171
3197
  ]
3198
+ },
3199
+ "is_tax_inclusive": {
3200
+ "type": "boolean",
3201
+ "description": "Specifies whether the price is considered `inclusive` of taxes or not."
3172
3202
  }
3173
3203
  }
3174
3204
  },
@@ -3643,6 +3673,10 @@
3643
3673
  "on_request_approved": {
3644
3674
  "type": "boolean",
3645
3675
  "description": "When set to true on a `_price` displayed as OnRequest (`show_as_on_request: 'on_request'`) this flag means the price has been approved and can now be displayed to the customer. This flag is only valid for prices shown as 'on_request'."
3676
+ },
3677
+ "is_tax_inclusive": {
3678
+ "type": "boolean",
3679
+ "description": "Specifies whether the price is considered `inclusive` of taxes or not."
3646
3680
  }
3647
3681
  }
3648
3682
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.22.5",
3
+ "version": "3.23.0",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",