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 69aff0e0115b3849bbf9e8b1a8ced5fe6536a8f3..13d6df642d365fb2468a6cd97750b9f550f0e4dd 100644
(file)
--- 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 = '',
export enum OCPP16StopTransactionReason {
NONE = '',
@@
-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,20
+46,20
@@
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;
transactionId: number;
reason?: OCPP16StopTransactionReason;
idTag?: string;
meterStop: number;
timestamp: string;
transactionId: number;
reason?: OCPP16StopTransactionReason;
- transactionData?: MeterValue[];
+ transactionData?:
OCPP16
MeterValue[];
}
}
-export interface OCPP16StopTransactionResponse {
+export interface OCPP16StopTransactionResponse
extends JsonType
{
idTagInfo?: IdTagInfo;
}
idTagInfo?: IdTagInfo;
}