energy-flow-control--types-and-enums 1.0.78 → 1.0.79

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "energy-flow-control--types-and-enums",
3
- "version": "1.0.78",
3
+ "version": "1.0.79",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -57,8 +57,13 @@ export enum EnumWallBoxState {
57
57
  ENDED = 100
58
58
  }
59
59
 
60
- export enum EnumBillingStatus {
61
- CLEARED = 'cleared',
62
- ESTIMATION = 'estimation',
63
- CANCELLED = 'cancelled',
60
+ export enum EnumBillingState {
61
+ CLEARED = 'CLEARED',
62
+ ESTIMATED = 'ESTIMATED',
63
+ CANCELLED = 'CANCELLED',
64
+ }
65
+
66
+ export enum EnumBookingReason {
67
+ PAYMENT_RECEIPT = 'PAYMENT_RECEIPT',
68
+ INVOICE = 'INVOICE',
64
69
  }
package/src/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EnumBillingStatus = exports.EnumWallBoxState = exports.EnumTariffConsumptionType = exports.EnumThermometerModel = exports.EnumRemotelyControlledSwitchModel = exports.EnumEnergyMeterModel = exports.EnumEquipmentType = exports.EnumProsumerModel = exports.EnumProsumerType = exports.EnumEquipmentState = void 0;
3
+ exports.EnumBookingReason = exports.EnumBillingState = exports.EnumWallBoxState = exports.EnumTariffConsumptionType = exports.EnumThermometerModel = exports.EnumRemotelyControlledSwitchModel = exports.EnumEnergyMeterModel = exports.EnumEquipmentType = exports.EnumProsumerModel = exports.EnumProsumerType = exports.EnumEquipmentState = void 0;
4
4
  var EnumEquipmentState;
5
5
  (function (EnumEquipmentState) {
6
6
  EnumEquipmentState["ON"] = "ON";
@@ -58,9 +58,14 @@ var EnumWallBoxState;
58
58
  EnumWallBoxState[EnumWallBoxState["ERROR"] = 4] = "ERROR";
59
59
  EnumWallBoxState[EnumWallBoxState["ENDED"] = 100] = "ENDED";
60
60
  })(EnumWallBoxState || (exports.EnumWallBoxState = EnumWallBoxState = {}));
61
- var EnumBillingStatus;
62
- (function (EnumBillingStatus) {
63
- EnumBillingStatus["CLEARED"] = "cleared";
64
- EnumBillingStatus["ESTIMATION"] = "estimation";
65
- EnumBillingStatus["CANCELLED"] = "cancelled";
66
- })(EnumBillingStatus || (exports.EnumBillingStatus = EnumBillingStatus = {}));
61
+ var EnumBillingState;
62
+ (function (EnumBillingState) {
63
+ EnumBillingState["CLEARED"] = "CLEARED";
64
+ EnumBillingState["ESTIMATED"] = "ESTIMATED";
65
+ EnumBillingState["CANCELLED"] = "CANCELLED";
66
+ })(EnumBillingState || (exports.EnumBillingState = EnumBillingState = {}));
67
+ var EnumBookingReason;
68
+ (function (EnumBookingReason) {
69
+ EnumBookingReason["PAYMENT_RECEIPT"] = "PAYMENT_RECEIPT";
70
+ EnumBookingReason["INVOICE"] = "INVOICE";
71
+ })(EnumBookingReason || (exports.EnumBookingReason = EnumBookingReason = {}));
@@ -1,4 +1,6 @@
1
1
  import {
2
+ EnumBillingState,
3
+ EnumBookingReason,
2
4
  EnumEnergyMeterModel,
3
5
  EnumEquipmentState,
4
6
  EnumEquipmentType,
@@ -237,7 +239,7 @@ export interface ICustomer {
237
239
  accommodationUnits: IBuildingAccommodation[]
238
240
  }
239
241
 
240
- export interface IBillingData {
242
+ export interface IAccommodationUnitBillDetail {
241
243
  id: number
242
244
  billingPeriodId: number
243
245
  customerId: number
@@ -249,14 +251,38 @@ export interface IBillingData {
249
251
  pvCost: number
250
252
  }
251
253
 
252
- export interface ICustomerInvoice {
254
+ export interface IBill {
253
255
  customerId: number
254
- billingPeriodId: number
255
- energyMeters: IBillingData[]
256
+ period: {
257
+ from: Date
258
+ till: Date
259
+ }
260
+ billDate: Date
261
+ consumptionInKwh: {
262
+ grid: number
263
+ pv: number
264
+ }
265
+ costs: {
266
+ grid: number
267
+ pv: number
268
+ }
269
+ state: EnumBillingState
270
+ }
256
271
 
257
- gridShareInPercent: number
258
- gridConsumptionInKwh: number
259
- gridCost: number
260
- pvConsumptionInKwh: number
261
- pvCost: number
272
+ export interface IVehicleChargingBill extends IBill {
273
+ userId: number
274
+ wallBoxId: number
275
+ }
276
+
277
+ export interface IAccommodationUnitBill extends IBill {
278
+ energyMeters: IAccommodationUnitBillDetail[]
279
+ }
280
+
281
+ export interface IPayment {
282
+ customerId: number
283
+ paymentDate: Date
284
+ bookingDate: Date
285
+ amount: number
286
+ bookingReason: EnumBookingReason
287
+ subject: string | null
262
288
  }