X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2F1.6%2FTransaction.ts;h=ca68117d5020c04e3a556e7b58ed4940bdc23e52;hb=cb886184464ed30ee14f538581e511710131b6ef;hp=1b921d4ec01cd7aef1d771f8d2917e6038e12496;hpb=e7aeea18e189dd087c8f951cf77a253e2818ae90;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 1b921d4e..ca68117d 100644 --- a/src/types/ocpp/1.6/Transaction.ts +++ b/src/types/ocpp/1.6/Transaction.ts @@ -1,5 +1,5 @@ -import { JsonType } from '../../JsonType'; -import { OCPP16MeterValue } from './MeterValues'; +import type { JsonObject } from '../../JsonType'; +import type { OCPP16MeterValue } from './MeterValues'; export enum OCPP16StopTransactionReason { NONE = '', @@ -24,21 +24,21 @@ export enum OCPP16AuthorizationStatus { CONCURRENT_TX = 'ConcurrentTx', } -export interface IdTagInfo extends JsonType { +export interface IdTagInfo extends JsonObject { status: OCPP16AuthorizationStatus; parentIdTag?: string; expiryDate?: Date; } -export interface AuthorizeRequest extends JsonType { +export interface OCPP16AuthorizeRequest extends JsonObject { idTag: string; } -export interface OCPP16AuthorizeResponse extends JsonType { +export interface OCPP16AuthorizeResponse extends JsonObject { idTagInfo: IdTagInfo; } -export interface StartTransactionRequest extends JsonType { +export interface OCPP16StartTransactionRequest extends JsonObject { connectorId: number; idTag: string; meterStart: number; @@ -46,12 +46,12 @@ export interface StartTransactionRequest extends JsonType { timestamp: string; } -export interface OCPP16StartTransactionResponse extends JsonType { +export interface OCPP16StartTransactionResponse extends JsonObject { idTagInfo: IdTagInfo; transactionId: number; } -export interface StopTransactionRequest extends JsonType { +export interface OCPP16StopTransactionRequest extends JsonObject { idTag?: string; meterStop: number; timestamp: string; @@ -60,6 +60,6 @@ export interface StopTransactionRequest extends JsonType { transactionData?: OCPP16MeterValue[]; } -export interface OCPP16StopTransactionResponse extends JsonType { +export interface OCPP16StopTransactionResponse extends JsonObject { idTagInfo?: IdTagInfo; }