X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=src%2Ftypes%2Focpp%2F1.6%2FTransaction.ts;h=bf2377778bb21e0c6096cb1f33267672f5fe8444;hb=c3ee95af4edd541595e3873c8aa4c93d38e59474;hp=69aff0e0115b3849bbf9e8b1a8ced5fe6536a8f3;hpb=c0560973d259dbce64a24d10bab46246596fa1d5;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 69aff0e0..bf237777 100644 --- a/src/types/ocpp/1.6/Transaction.ts +++ b/src/types/ocpp/1.6/Transaction.ts @@ -1,4 +1,5 @@ -import { MeterValue } from './MeterValues'; +import { JsonType } from '../../JsonType'; +import { OCPP16MeterValue } from './MeterValues'; export enum OCPP16StopTransactionReason { NONE = '', @@ -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,20 +46,20 @@ 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; transactionId: number; reason?: OCPP16StopTransactionReason; - transactionData?: MeterValue[]; + transactionData?: OCPP16MeterValue[]; } -export interface OCPP16StopTransactionResponse { +export interface OCPP16StopTransactionResponse extends JsonType { idTagInfo?: IdTagInfo; }