X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2F1.6%2FTransaction.ts;h=13d6df642d365fb2468a6cd97750b9f550f0e4dd;hb=f0f65a6223ab14e6b7071ba6ec68c87c38de4c8c;hp=41bd344ec4da1b2cf27e2051636044df443bab08;hpb=163547b1c0d9b1062891962feedb127fc0c1cc94;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/1.6/Transaction.ts b/src/types/ocpp/1.6/Transaction.ts index 41bd344e..13d6df64 100644 --- a/src/types/ocpp/1.6/Transaction.ts +++ b/src/types/ocpp/1.6/Transaction.ts @@ -1,3 +1,4 @@ +import { JsonType } from '../../JsonType'; import { OCPP16MeterValue } from './MeterValues'; export enum OCPP16StopTransactionReason { @@ -12,7 +13,7 @@ export enum OCPP16StopTransactionReason { REMOTE = 'Remote', SOFT_RESET = 'SoftReset', UNLOCK_COMMAND = 'UnlockCommand', - DE_AUTHORIZED = 'DeAuthorized' + DE_AUTHORIZED = 'DeAuthorized', } export enum OCPP16AuthorizationStatus { @@ -20,24 +21,24 @@ export enum OCPP16AuthorizationStatus { BLOCKED = 'Blocked', EXPIRED = 'Expired', INVALID = 'Invalid', - CONCURRENT_TX = 'ConcurrentTx' + CONCURRENT_TX = 'ConcurrentTx', } -export interface IdTagInfo { +export interface IdTagInfo extends JsonType { status: OCPP16AuthorizationStatus; parentIdTag?: string; expiryDate?: Date; } -export interface AuthorizeRequest { +export interface OCPP16AuthorizeRequest extends JsonType { idTag: string; } -export interface OCPP16AuthorizeResponse { +export interface OCPP16AuthorizeResponse extends JsonType { idTagInfo: IdTagInfo; } -export interface StartTransactionRequest { +export interface OCPP16StartTransactionRequest extends JsonType { connectorId: number; idTag: string; meterStart: number; @@ -45,12 +46,12 @@ export interface StartTransactionRequest { timestamp: string; } -export interface OCPP16StartTransactionResponse { +export interface OCPP16StartTransactionResponse extends JsonType { idTagInfo: IdTagInfo; transactionId: number; } -export interface StopTransactionRequest { +export interface OCPP16StopTransactionRequest extends JsonType { idTag?: string; meterStop: number; timestamp: string; @@ -59,6 +60,6 @@ export interface StopTransactionRequest { transactionData?: OCPP16MeterValue[]; } -export interface OCPP16StopTransactionResponse { +export interface OCPP16StopTransactionResponse extends JsonType { idTagInfo?: IdTagInfo; }