X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2F1.6%2FReservation.ts;h=bbc3de7a93b8b03cb993c1720e322a749993f521;hb=6e3d9d04815abfe85d31735fc38bdf0253d85026;hp=7a78225d28cca73f4c9c8317640987124e21fb36;hpb=24578c318295d517762fa075959846f230affbe0;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/1.6/Reservation.ts b/src/types/ocpp/1.6/Reservation.ts index 7a78225d..bbc3de7a 100644 --- a/src/types/ocpp/1.6/Reservation.ts +++ b/src/types/ocpp/1.6/Reservation.ts @@ -1,7 +1,22 @@ export interface OCPP16Reservation { + id: number; connectorId: number; expiryDate: Date; idTag: string; parentIdTag?: string; - reservationId: number; +} + +export enum ReservationTerminationReason { + EXPIRED = 'Expired', + TRANSACTION_STARTED = 'TransactionStarted', + CONNECTOR_STATE_CHANGED = 'ConnectorStateChanged', + RESERVATION_CANCELED = 'ReservationCanceled', +} + +export enum ReservationFilterKey { + RESERVATION_ID = 'id', + ID_TAG = 'idTag', + PARENT_ID_TAG = 'parentIdTag', + CONNECTOR_ID = 'connectorId', + EVSE_ID = 'evseId', }