-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathbalanceAccount.ts
127 lines (121 loc) · 4.23 KB
/
balanceAccount.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
/*
* The version of the OpenAPI document: v2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit this class manually.
*/
import { Balance } from './balance';
import { PlatformPaymentConfiguration } from './platformPaymentConfiguration';
export class BalanceAccount {
/**
* The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account.
*/
'accountHolderId': string;
/**
* List of balances with the amount and currency.
*/
'balances'?: Array<Balance>;
/**
* The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**. > After a balance account is created, you cannot change its default currency.
*/
'defaultCurrencyCode'?: string;
/**
* A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder.
*/
'description'?: string;
/**
* The unique identifier of the balance account.
*/
'id': string;
/**
* A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.
*/
'metadata'?: { [key: string]: string; };
/**
* The unique identifier of the account of the migrated account holder in the classic integration.
*/
'migratedAccountCode'?: string;
'platformPaymentConfiguration'?: PlatformPaymentConfiguration | null;
/**
* Your reference for the balance account, maximum 150 characters.
*/
'reference'?: string;
/**
* The status of the balance account, set to **active** by default.
*/
'status'?: BalanceAccount.StatusEnum;
/**
* The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
*/
'timeZone'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "accountHolderId",
"baseName": "accountHolderId",
"type": "string"
},
{
"name": "balances",
"baseName": "balances",
"type": "Array<Balance>"
},
{
"name": "defaultCurrencyCode",
"baseName": "defaultCurrencyCode",
"type": "string"
},
{
"name": "description",
"baseName": "description",
"type": "string"
},
{
"name": "id",
"baseName": "id",
"type": "string"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }"
},
{
"name": "migratedAccountCode",
"baseName": "migratedAccountCode",
"type": "string"
},
{
"name": "platformPaymentConfiguration",
"baseName": "platformPaymentConfiguration",
"type": "PlatformPaymentConfiguration | null"
},
{
"name": "reference",
"baseName": "reference",
"type": "string"
},
{
"name": "status",
"baseName": "status",
"type": "BalanceAccount.StatusEnum"
},
{
"name": "timeZone",
"baseName": "timeZone",
"type": "string"
} ];
static getAttributeTypeMap() {
return BalanceAccount.attributeTypeMap;
}
}
export namespace BalanceAccount {
export enum StatusEnum {
Active = 'active',
Closed = 'closed',
Inactive = 'inactive',
Suspended = 'suspended'
}
}