-
Notifications
You must be signed in to change notification settings - Fork 57
/
transaction.ts
108 lines (102 loc) · 2.87 KB
/
transaction.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/*
* The version of the OpenAPI document: v4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit this class manually.
*/
import { Amount } from './amount';
import { ResourceReference } from './resourceReference';
import { TransferData } from './transferData';
export class Transaction {
'accountHolder': ResourceReference;
'amount': Amount;
'balanceAccount': ResourceReference;
/**
* The unique identifier of the balance platform.
*/
'balancePlatform': string;
/**
* The date the transaction was booked into the balance account.
*/
'bookingDate': Date;
/**
* The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.
*/
'creationDate'?: Date;
/**
* The unique identifier of the transaction.
*/
'id': string;
/**
* The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account.
*/
'status': Transaction.StatusEnum;
'transfer'?: TransferData;
/**
* The date the transfer amount becomes available in the balance account.
*/
'valueDate': Date;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "accountHolder",
"baseName": "accountHolder",
"type": "ResourceReference"
},
{
"name": "amount",
"baseName": "amount",
"type": "Amount"
},
{
"name": "balanceAccount",
"baseName": "balanceAccount",
"type": "ResourceReference"
},
{
"name": "balancePlatform",
"baseName": "balancePlatform",
"type": "string"
},
{
"name": "bookingDate",
"baseName": "bookingDate",
"type": "Date"
},
{
"name": "creationDate",
"baseName": "creationDate",
"type": "Date"
},
{
"name": "id",
"baseName": "id",
"type": "string"
},
{
"name": "status",
"baseName": "status",
"type": "Transaction.StatusEnum"
},
{
"name": "transfer",
"baseName": "transfer",
"type": "TransferData"
},
{
"name": "valueDate",
"baseName": "valueDate",
"type": "Date"
} ];
static getAttributeTypeMap() {
return Transaction.attributeTypeMap;
}
}
export namespace Transaction {
export enum StatusEnum {
Booked = 'booked',
Pending = 'pending'
}
}