-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathaccountHolder.ts
148 lines (142 loc) · 5.66 KB
/
accountHolder.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
/*
* 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 { AccountHolderCapability } from './accountHolderCapability';
import { ContactDetails } from './contactDetails';
import { VerificationDeadline } from './verificationDeadline';
export class AccountHolder {
/**
* The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms.
*/
'balancePlatform'?: string;
/**
* Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability.
*/
'capabilities'?: { [key: string]: AccountHolderCapability; };
/**
* @deprecated
*/
'contactDetails'?: ContactDetails | null;
/**
* Your description for the account holder.
*/
'description'?: string;
/**
* The unique identifier of the account holder.
*/
'id': string;
/**
* The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder.
*/
'legalEntityId': 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 migrated account holder in the classic integration.
*/
'migratedAccountHolderCode'?: string;
/**
* The ID of the account holder\'s primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request.
*/
'primaryBalanceAccount'?: string;
/**
* Your reference for the account holder.
*/
'reference'?: string;
/**
* The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed.
*/
'status'?: AccountHolder.StatusEnum;
/**
* The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform 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;
/**
* List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved.
*/
'verificationDeadlines'?: Array<VerificationDeadline>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "balancePlatform",
"baseName": "balancePlatform",
"type": "string"
},
{
"name": "capabilities",
"baseName": "capabilities",
"type": "{ [key: string]: AccountHolderCapability; }"
},
{
"name": "contactDetails",
"baseName": "contactDetails",
"type": "ContactDetails | null"
},
{
"name": "description",
"baseName": "description",
"type": "string"
},
{
"name": "id",
"baseName": "id",
"type": "string"
},
{
"name": "legalEntityId",
"baseName": "legalEntityId",
"type": "string"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }"
},
{
"name": "migratedAccountHolderCode",
"baseName": "migratedAccountHolderCode",
"type": "string"
},
{
"name": "primaryBalanceAccount",
"baseName": "primaryBalanceAccount",
"type": "string"
},
{
"name": "reference",
"baseName": "reference",
"type": "string"
},
{
"name": "status",
"baseName": "status",
"type": "AccountHolder.StatusEnum"
},
{
"name": "timeZone",
"baseName": "timeZone",
"type": "string"
},
{
"name": "verificationDeadlines",
"baseName": "verificationDeadlines",
"type": "Array<VerificationDeadline>"
} ];
static getAttributeTypeMap() {
return AccountHolder.attributeTypeMap;
}
}
export namespace AccountHolder {
export enum StatusEnum {
Active = 'active',
Closed = 'closed',
Suspended = 'suspended'
}
}