X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2F1.6%2FTransaction.ts;h=4af42747ede0040b50fffa78410a943d4909b4b2;hb=041936041d9803859ac2faad9316c20e49b658c9;hp=ca68117d5020c04e3a556e7b58ed4940bdc23e52;hpb=6c1761d470507ea23d186be61b94ca7375c5144a;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 ca68117d..4af42747 100644 --- a/src/types/ocpp/1.6/Transaction.ts +++ b/src/types/ocpp/1.6/Transaction.ts @@ -1,5 +1,5 @@ -import type { JsonObject } from '../../JsonType'; import type { OCPP16MeterValue } from './MeterValues'; +import type { JsonObject } from '../../JsonType'; export enum OCPP16StopTransactionReason { NONE = '', @@ -24,7 +24,7 @@ export enum OCPP16AuthorizationStatus { CONCURRENT_TX = 'ConcurrentTx', } -export interface IdTagInfo extends JsonObject { +interface IdTagInfo extends JsonObject { status: OCPP16AuthorizationStatus; parentIdTag?: string; expiryDate?: Date; @@ -42,8 +42,8 @@ export interface OCPP16StartTransactionRequest extends JsonObject { connectorId: number; idTag: string; meterStart: number; + timestamp: Date; reservationId?: number; - timestamp: string; } export interface OCPP16StartTransactionResponse extends JsonObject { @@ -54,7 +54,7 @@ export interface OCPP16StartTransactionResponse extends JsonObject { export interface OCPP16StopTransactionRequest extends JsonObject { idTag?: string; meterStop: number; - timestamp: string; + timestamp: Date; transactionId: number; reason?: OCPP16StopTransactionReason; transactionData?: OCPP16MeterValue[];