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

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.80",
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,44 @@ export interface IBillingData {
249
251
  pvCost: number
250
252
  }
251
253
 
252
- export interface ICustomerInvoice {
254
+ export interface IInvoice {
255
+ id: number
253
256
  customerId: number
254
- billingPeriodId: number
255
- energyMeters: IBillingData[]
257
+ subject: string
258
+ period: {
259
+ from: Date
260
+ till: Date
261
+ }
262
+ billDate: Date
263
+ consumptionInKwh: {
264
+ grid: number
265
+ pv: number
266
+ }
267
+ price: {
268
+ amount: number
269
+ tax: {
270
+ rate: number
271
+ name: string
272
+ }
273
+ }
274
+ state: EnumBillingState
275
+ }
256
276
 
257
- gridShareInPercent: number
258
- gridConsumptionInKwh: number
259
- gridCost: number
260
- pvConsumptionInKwh: number
261
- pvCost: number
277
+ export interface IVehicleChargingInvoice extends IInvoice {
278
+ userId: number
279
+ wallBoxId: number
280
+ }
281
+
282
+ export interface IAccommodationUnitInvoice extends IInvoice {
283
+ energyMeters: IAccommodationUnitBillDetail[]
284
+ }
285
+
286
+ export interface IPayment {
287
+ id: number
288
+ customerId: number
289
+ paymentDate: Date
290
+ bookingDate: Date
291
+ amount: number
292
+ bookingReason: EnumBookingReason
293
+ subject: string | null
262
294
  }