fix: ensure running transactions are stopped at CS stop
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 1.6 / ChargingProfile.ts
index 529bfd1da5eaf7cac6d566de0080316189bdfc1e..8a50e895f18b93e9c6cf9df7bbfc1275caee6cd5 100644 (file)
@@ -4,17 +4,17 @@ export interface OCPP16ChargingProfile extends JsonObject {
   chargingProfileId: number;
   transactionId?: number;
   stackLevel: number;
-  chargingProfilePurpose: ChargingProfilePurposeType;
-  chargingProfileKind: ChargingProfileKindType;
-  recurrencyKind?: RecurrencyKindType;
+  chargingProfilePurpose: OCPP16ChargingProfilePurposeType;
+  chargingProfileKind: OCPP16ChargingProfileKindType;
+  recurrencyKind?: OCPP16RecurrencyKindType;
   validFrom?: Date;
   validTo?: Date;
-  chargingSchedule: ChargingSchedule;
+  chargingSchedule: OCPP16ChargingSchedule;
 }
 
-export interface ChargingSchedule extends JsonObject {
-  duration?: number;
+export interface OCPP16ChargingSchedule extends JsonObject {
   startSchedule?: Date;
+  duration?: number;
   chargingRateUnit: OCPP16ChargingRateUnitType;
   chargingSchedulePeriod: OCPP16ChargingSchedulePeriod[];
   minChargeRate?: number;
@@ -31,20 +31,19 @@ export enum OCPP16ChargingRateUnitType {
   AMPERE = 'A',
 }
 
-export enum ChargingProfileKindType {
+export enum OCPP16ChargingProfileKindType {
   ABSOLUTE = 'Absolute',
   RECURRING = 'Recurring',
   RELATIVE = 'Relative',
 }
 
-export enum ChargingProfilePurposeType {
+export enum OCPP16ChargingProfilePurposeType {
   CHARGE_POINT_MAX_PROFILE = 'ChargePointMaxProfile',
   TX_DEFAULT_PROFILE = 'TxDefaultProfile',
   TX_PROFILE = 'TxProfile',
 }
 
-export enum RecurrencyKindType {
+export enum OCPP16RecurrencyKindType {
   DAILY = 'Daily',
   WEEKLY = 'Weekly',
-  MONTHLY = 'Monthly',
 }