X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2F1.6%2FTransaction.ts;h=bf2377778bb21e0c6096cb1f33267672f5fe8444;hb=c3ee95af4edd541595e3873c8aa4c93d38e59474;hp=41bd344ec4da1b2cf27e2051636044df443bab08;hpb=323e7c9ca1769c7caa98efe25983930e26d4a6a8;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..bf237777 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 { @@ -23,21 +24,21 @@ export enum OCPP16AuthorizationStatus { CONCURRENT_TX = 'ConcurrentTx' } -export interface IdTagInfo { +export interface IdTagInfo extends JsonType { status: OCPP16AuthorizationStatus; parentIdTag?: string; expiryDate?: Date; } -export interface AuthorizeRequest { +export interface AuthorizeRequest extends JsonType { idTag: string; } -export interface OCPP16AuthorizeResponse { +export interface OCPP16AuthorizeResponse extends JsonType { idTagInfo: IdTagInfo; } -export interface StartTransactionRequest { +export interface StartTransactionRequest 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 StopTransactionRequest 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; }