repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ensure heartbeat interval configuration are initialized by default
[e-mobility-charging-stations-simulator.git]
/
src
/
types
/
ocpp
/
1.6
/
Transaction.ts
diff --git
a/src/types/ocpp/1.6/Transaction.ts
b/src/types/ocpp/1.6/Transaction.ts
index 030a2f25ea13910deb33a1bfc82afe1b59373b35..13d6df642d365fb2468a6cd97750b9f550f0e4dd 100644
(file)
--- 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 {
import { OCPP16MeterValue } from './MeterValues';
export enum OCPP16StopTransactionReason {
@@
-12,7
+13,7
@@
export enum OCPP16StopTransactionReason {
REMOTE = 'Remote',
SOFT_RESET = 'SoftReset',
UNLOCK_COMMAND = 'UnlockCommand',
REMOTE = 'Remote',
SOFT_RESET = 'SoftReset',
UNLOCK_COMMAND = 'UnlockCommand',
- DE_AUTHORIZED = 'DeAuthorized'
+ DE_AUTHORIZED = 'DeAuthorized'
,
}
export enum OCPP16AuthorizationStatus {
}
export enum OCPP16AuthorizationStatus {
@@
-20,24
+21,24
@@
export enum OCPP16AuthorizationStatus {
BLOCKED = 'Blocked',
EXPIRED = 'Expired',
INVALID = 'Invalid',
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;
}
status: OCPP16AuthorizationStatus;
parentIdTag?: string;
expiryDate?: Date;
}
-export interface
AuthorizeRequest
{
+export interface
OCPP16AuthorizeRequest extends JsonType
{
idTag: string;
idTag: string;
-
}
}
-export interface OCPP16AuthorizeResponse {
+
+export interface OCPP16AuthorizeResponse extends JsonType {
idTagInfo: IdTagInfo;
}
idTagInfo: IdTagInfo;
}
-export interface
StartTransactionRequest
{
+export interface
OCPP16StartTransactionRequest extends JsonType
{
connectorId: number;
idTag: string;
meterStart: number;
connectorId: number;
idTag: string;
meterStart: number;
@@
-45,12
+46,12
@@
export interface StartTransactionRequest {
timestamp: string;
}
timestamp: string;
}
-export interface OCPP16StartTransactionResponse {
+export interface OCPP16StartTransactionResponse
extends JsonType
{
idTagInfo: IdTagInfo;
transactionId: number;
}
idTagInfo: IdTagInfo;
transactionId: number;
}
-export interface
StopTransactionRequest
{
+export interface
OCPP16StopTransactionRequest extends JsonType
{
idTag?: string;
meterStop: number;
timestamp: string;
idTag?: string;
meterStop: number;
timestamp: string;
@@
-59,6
+60,6
@@
export interface StopTransactionRequest {
transactionData?: OCPP16MeterValue[];
}
transactionData?: OCPP16MeterValue[];
}
-export interface OCPP16StopTransactionResponse {
+export interface OCPP16StopTransactionResponse
extends JsonType
{
idTagInfo?: IdTagInfo;
}
idTagInfo?: IdTagInfo;
}