Typing.
[e-mobility-charging-stations-simulator.git] / src / types / Transaction.ts
CommitLineData
9ac86a7e
JB
1export enum StopTransactionReason {
2 NONE = '',
3 EMERGENCY_STOP = 'EmergencyStop',
4 EV_DISCONNECTED = 'EVDisconnected',
5 HARD_RESET = 'HardReset',
6 LOCAL = 'Local',
7 OTHER = 'Other',
8 POWER_LOSS = 'PowerLoss',
9 REBOOT = 'Reboot',
10 REMOTE = 'Remote',
11 SOFT_RESET = 'SoftReset',
12 UNLOCK_COMMAND = 'UnlockCommand',
13 DE_AUTHORIZED = 'DeAuthorized'
14}
15
16export enum AuthorizationStatus {
17 ACCEPTED = 'Accepted',
18 BLOCKED = 'Blocked',
19 EXPIRED = 'Expired',
20 INVALID = 'Invalid',
21 CONCURENT_TX = 'ConcurrentTx'
22}
23
24export interface IdTagInfo {
25 status: AuthorizationStatus;
26 parentIdTag?: string;
27 expiryDate?: Date;
28}
29
30export interface StartTransactionResponse {
31 idTagInfo: IdTagInfo;
32 transactionId: number;
33}
34
35export interface StopTransactionResponse {
36 idTagInfo?: IdTagInfo;
37}