|
7 | 7 | * Do not edit this class manually. |
8 | 8 | */ |
9 | 9 |
|
10 | | -import { AccountHolderCapability } from './accountHolderCapability'; |
11 | | -import { ContactDetails } from './contactDetails'; |
12 | | -import { VerificationDeadline } from './verificationDeadline'; |
| 10 | +import { AccountHolderCapability } from "./accountHolderCapability"; |
| 11 | +import { ContactDetails } from "./contactDetails"; |
| 12 | +import { VerificationDeadline } from "./verificationDeadline"; |
| 13 | + |
13 | 14 |
|
14 | 15 | export class AccountHolder { |
15 | 16 | /** |
16 | 17 | * 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. |
17 | 18 | */ |
18 | | - 'balancePlatform'?: string; |
| 19 | + "balancePlatform"?: string; |
19 | 20 | /** |
20 | 21 | * 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. |
21 | 22 | */ |
22 | | - 'capabilities'?: { [key: string]: AccountHolderCapability; }; |
| 23 | + "capabilities"?: { [key: string]: AccountHolderCapability; }; |
23 | 24 | /** |
24 | 25 | * @deprecated |
25 | 26 | */ |
26 | | - 'contactDetails'?: ContactDetails | null; |
| 27 | + "contactDetails"?: ContactDetails; |
27 | 28 | /** |
28 | 29 | * Your description for the account holder. |
29 | 30 | */ |
30 | | - 'description'?: string; |
| 31 | + "description"?: string; |
31 | 32 | /** |
32 | 33 | * The unique identifier of the account holder. |
33 | 34 | */ |
34 | | - 'id': string; |
| 35 | + "id": string; |
35 | 36 | /** |
36 | 37 | * 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. |
37 | 38 | */ |
38 | | - 'legalEntityId': string; |
| 39 | + "legalEntityId": string; |
39 | 40 | /** |
40 | 41 | * 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. |
41 | 42 | */ |
42 | | - 'metadata'?: { [key: string]: string; }; |
| 43 | + "metadata"?: { [key: string]: string; }; |
43 | 44 | /** |
44 | 45 | * The unique identifier of the migrated account holder in the classic integration. |
45 | 46 | */ |
46 | | - 'migratedAccountHolderCode'?: string; |
| 47 | + "migratedAccountHolderCode"?: string; |
47 | 48 | /** |
48 | 49 | * 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. |
49 | 50 | */ |
50 | | - 'primaryBalanceAccount'?: string; |
| 51 | + "primaryBalanceAccount"?: string; |
51 | 52 | /** |
52 | 53 | * Your reference for the account holder. |
53 | 54 | */ |
54 | | - 'reference'?: string; |
| 55 | + "reference"?: string; |
55 | 56 | /** |
56 | 57 | * 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. |
57 | 58 | */ |
58 | | - 'status'?: AccountHolder.StatusEnum; |
| 59 | + "status"?: AccountHolder.StatusEnum; |
59 | 60 | /** |
60 | 61 | * 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). |
61 | 62 | */ |
62 | | - 'timeZone'?: string; |
| 63 | + "timeZone"?: string; |
63 | 64 | /** |
64 | 65 | * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. |
65 | 66 | */ |
66 | | - 'verificationDeadlines'?: Array<VerificationDeadline>; |
| 67 | + "verificationDeadlines"?: Array<VerificationDeadline>; |
| 68 | + |
| 69 | + static readonly discriminator: string | undefined = undefined; |
67 | 70 |
|
68 | | - static discriminator: string | undefined = undefined; |
| 71 | + static readonly mapping: {[index: string]: string} | undefined = undefined; |
69 | 72 |
|
70 | | - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ |
| 73 | + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ |
71 | 74 | { |
72 | 75 | "name": "balancePlatform", |
73 | 76 | "baseName": "balancePlatform", |
74 | | - "type": "string" |
| 77 | + "type": "string", |
| 78 | + "format": "" |
75 | 79 | }, |
76 | 80 | { |
77 | 81 | "name": "capabilities", |
78 | 82 | "baseName": "capabilities", |
79 | | - "type": "{ [key: string]: AccountHolderCapability; }" |
| 83 | + "type": "{ [key: string]: AccountHolderCapability; }", |
| 84 | + "format": "" |
80 | 85 | }, |
81 | 86 | { |
82 | 87 | "name": "contactDetails", |
83 | 88 | "baseName": "contactDetails", |
84 | | - "type": "ContactDetails | null" |
| 89 | + "type": "ContactDetails", |
| 90 | + "format": "" |
85 | 91 | }, |
86 | 92 | { |
87 | 93 | "name": "description", |
88 | 94 | "baseName": "description", |
89 | | - "type": "string" |
| 95 | + "type": "string", |
| 96 | + "format": "" |
90 | 97 | }, |
91 | 98 | { |
92 | 99 | "name": "id", |
93 | 100 | "baseName": "id", |
94 | | - "type": "string" |
| 101 | + "type": "string", |
| 102 | + "format": "" |
95 | 103 | }, |
96 | 104 | { |
97 | 105 | "name": "legalEntityId", |
98 | 106 | "baseName": "legalEntityId", |
99 | | - "type": "string" |
| 107 | + "type": "string", |
| 108 | + "format": "" |
100 | 109 | }, |
101 | 110 | { |
102 | 111 | "name": "metadata", |
103 | 112 | "baseName": "metadata", |
104 | | - "type": "{ [key: string]: string; }" |
| 113 | + "type": "{ [key: string]: string; }", |
| 114 | + "format": "" |
105 | 115 | }, |
106 | 116 | { |
107 | 117 | "name": "migratedAccountHolderCode", |
108 | 118 | "baseName": "migratedAccountHolderCode", |
109 | | - "type": "string" |
| 119 | + "type": "string", |
| 120 | + "format": "" |
110 | 121 | }, |
111 | 122 | { |
112 | 123 | "name": "primaryBalanceAccount", |
113 | 124 | "baseName": "primaryBalanceAccount", |
114 | | - "type": "string" |
| 125 | + "type": "string", |
| 126 | + "format": "" |
115 | 127 | }, |
116 | 128 | { |
117 | 129 | "name": "reference", |
118 | 130 | "baseName": "reference", |
119 | | - "type": "string" |
| 131 | + "type": "string", |
| 132 | + "format": "" |
120 | 133 | }, |
121 | 134 | { |
122 | 135 | "name": "status", |
123 | 136 | "baseName": "status", |
124 | | - "type": "AccountHolder.StatusEnum" |
| 137 | + "type": "AccountHolder.StatusEnum", |
| 138 | + "format": "" |
125 | 139 | }, |
126 | 140 | { |
127 | 141 | "name": "timeZone", |
128 | 142 | "baseName": "timeZone", |
129 | | - "type": "string" |
| 143 | + "type": "string", |
| 144 | + "format": "" |
130 | 145 | }, |
131 | 146 | { |
132 | 147 | "name": "verificationDeadlines", |
133 | 148 | "baseName": "verificationDeadlines", |
134 | | - "type": "Array<VerificationDeadline>" |
| 149 | + "type": "Array<VerificationDeadline>", |
| 150 | + "format": "" |
135 | 151 | } ]; |
136 | 152 |
|
137 | 153 | static getAttributeTypeMap() { |
138 | 154 | return AccountHolder.attributeTypeMap; |
139 | 155 | } |
| 156 | + |
| 157 | + public constructor() { |
| 158 | + } |
140 | 159 | } |
141 | 160 |
|
142 | 161 | export namespace AccountHolder { |
|
0 commit comments