Skip to content

Commit 01713be

Browse files
committed
Generate ConfigurationWebhooks
1 parent f324273 commit 01713be

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+2312
-950
lines changed

src/typings/configurationWebhooks/accountHolder.ts

Lines changed: 50 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,136 +7,155 @@
77
* Do not edit this class manually.
88
*/
99

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+
1314

1415
export class AccountHolder {
1516
/**
1617
* 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.
1718
*/
18-
'balancePlatform'?: string;
19+
"balancePlatform"?: string;
1920
/**
2021
* 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.
2122
*/
22-
'capabilities'?: { [key: string]: AccountHolderCapability; };
23+
"capabilities"?: { [key: string]: AccountHolderCapability; };
2324
/**
2425
* @deprecated
2526
*/
26-
'contactDetails'?: ContactDetails | null;
27+
"contactDetails"?: ContactDetails;
2728
/**
2829
* Your description for the account holder.
2930
*/
30-
'description'?: string;
31+
"description"?: string;
3132
/**
3233
* The unique identifier of the account holder.
3334
*/
34-
'id': string;
35+
"id": string;
3536
/**
3637
* 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.
3738
*/
38-
'legalEntityId': string;
39+
"legalEntityId": string;
3940
/**
4041
* 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.
4142
*/
42-
'metadata'?: { [key: string]: string; };
43+
"metadata"?: { [key: string]: string; };
4344
/**
4445
* The unique identifier of the migrated account holder in the classic integration.
4546
*/
46-
'migratedAccountHolderCode'?: string;
47+
"migratedAccountHolderCode"?: string;
4748
/**
4849
* 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.
4950
*/
50-
'primaryBalanceAccount'?: string;
51+
"primaryBalanceAccount"?: string;
5152
/**
5253
* Your reference for the account holder.
5354
*/
54-
'reference'?: string;
55+
"reference"?: string;
5556
/**
5657
* 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.
5758
*/
58-
'status'?: AccountHolder.StatusEnum;
59+
"status"?: AccountHolder.StatusEnum;
5960
/**
6061
* 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).
6162
*/
62-
'timeZone'?: string;
63+
"timeZone"?: string;
6364
/**
6465
* List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved.
6566
*/
66-
'verificationDeadlines'?: Array<VerificationDeadline>;
67+
"verificationDeadlines"?: Array<VerificationDeadline>;
68+
69+
static readonly discriminator: string | undefined = undefined;
6770

68-
static discriminator: string | undefined = undefined;
71+
static readonly mapping: {[index: string]: string} | undefined = undefined;
6972

70-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
73+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
7174
{
7275
"name": "balancePlatform",
7376
"baseName": "balancePlatform",
74-
"type": "string"
77+
"type": "string",
78+
"format": ""
7579
},
7680
{
7781
"name": "capabilities",
7882
"baseName": "capabilities",
79-
"type": "{ [key: string]: AccountHolderCapability; }"
83+
"type": "{ [key: string]: AccountHolderCapability; }",
84+
"format": ""
8085
},
8186
{
8287
"name": "contactDetails",
8388
"baseName": "contactDetails",
84-
"type": "ContactDetails | null"
89+
"type": "ContactDetails",
90+
"format": ""
8591
},
8692
{
8793
"name": "description",
8894
"baseName": "description",
89-
"type": "string"
95+
"type": "string",
96+
"format": ""
9097
},
9198
{
9299
"name": "id",
93100
"baseName": "id",
94-
"type": "string"
101+
"type": "string",
102+
"format": ""
95103
},
96104
{
97105
"name": "legalEntityId",
98106
"baseName": "legalEntityId",
99-
"type": "string"
107+
"type": "string",
108+
"format": ""
100109
},
101110
{
102111
"name": "metadata",
103112
"baseName": "metadata",
104-
"type": "{ [key: string]: string; }"
113+
"type": "{ [key: string]: string; }",
114+
"format": ""
105115
},
106116
{
107117
"name": "migratedAccountHolderCode",
108118
"baseName": "migratedAccountHolderCode",
109-
"type": "string"
119+
"type": "string",
120+
"format": ""
110121
},
111122
{
112123
"name": "primaryBalanceAccount",
113124
"baseName": "primaryBalanceAccount",
114-
"type": "string"
125+
"type": "string",
126+
"format": ""
115127
},
116128
{
117129
"name": "reference",
118130
"baseName": "reference",
119-
"type": "string"
131+
"type": "string",
132+
"format": ""
120133
},
121134
{
122135
"name": "status",
123136
"baseName": "status",
124-
"type": "AccountHolder.StatusEnum"
137+
"type": "AccountHolder.StatusEnum",
138+
"format": ""
125139
},
126140
{
127141
"name": "timeZone",
128142
"baseName": "timeZone",
129-
"type": "string"
143+
"type": "string",
144+
"format": ""
130145
},
131146
{
132147
"name": "verificationDeadlines",
133148
"baseName": "verificationDeadlines",
134-
"type": "Array<VerificationDeadline>"
149+
"type": "Array<VerificationDeadline>",
150+
"format": ""
135151
} ];
136152

137153
static getAttributeTypeMap() {
138154
return AccountHolder.attributeTypeMap;
139155
}
156+
157+
public constructor() {
158+
}
140159
}
141160

142161
export namespace AccountHolder {

src/typings/configurationWebhooks/accountHolderCapability.ts

Lines changed: 41 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,103 +7,119 @@
77
* Do not edit this class manually.
88
*/
99

10-
import { AccountSupportingEntityCapability } from './accountSupportingEntityCapability';
11-
import { CapabilityProblem } from './capabilityProblem';
12-
import { CapabilitySettings } from './capabilitySettings';
10+
import { AccountSupportingEntityCapability } from "./accountSupportingEntityCapability";
11+
import { CapabilityProblem } from "./capabilityProblem";
12+
import { CapabilitySettings } from "./capabilitySettings";
13+
1314

1415
export class AccountHolderCapability {
1516
/**
1617
* Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability.
1718
*/
18-
'allowed'?: boolean;
19+
"allowed"?: boolean;
1920
/**
2021
* The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**.
2122
*/
22-
'allowedLevel'?: AccountHolderCapability.AllowedLevelEnum;
23-
'allowedSettings'?: CapabilitySettings | null;
23+
"allowedLevel"?: AccountHolderCapability.AllowedLevelEnum;
24+
"allowedSettings"?: CapabilitySettings;
2425
/**
2526
* Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder.
2627
*/
27-
'enabled'?: boolean;
28+
"enabled"?: boolean;
2829
/**
2930
* Contains verification errors and the actions that you can take to resolve them.
3031
*/
31-
'problems'?: Array<CapabilityProblem>;
32+
"problems"?: Array<CapabilityProblem>;
3233
/**
3334
* Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field.
3435
*/
35-
'requested'?: boolean;
36+
"requested"?: boolean;
3637
/**
3738
* The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**.
3839
*/
39-
'requestedLevel'?: AccountHolderCapability.RequestedLevelEnum;
40-
'requestedSettings'?: CapabilitySettings | null;
40+
"requestedLevel"?: AccountHolderCapability.RequestedLevelEnum;
41+
"requestedSettings"?: CapabilitySettings;
4142
/**
4243
* Contains the status of the transfer instruments associated with this capability.
4344
*/
44-
'transferInstruments'?: Array<AccountSupportingEntityCapability>;
45+
"transferInstruments"?: Array<AccountSupportingEntityCapability>;
4546
/**
4647
* The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability.
4748
*/
48-
'verificationStatus'?: AccountHolderCapability.VerificationStatusEnum;
49+
"verificationStatus"?: AccountHolderCapability.VerificationStatusEnum;
50+
51+
static readonly discriminator: string | undefined = undefined;
4952

50-
static discriminator: string | undefined = undefined;
53+
static readonly mapping: {[index: string]: string} | undefined = undefined;
5154

52-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
55+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
5356
{
5457
"name": "allowed",
5558
"baseName": "allowed",
56-
"type": "boolean"
59+
"type": "boolean",
60+
"format": ""
5761
},
5862
{
5963
"name": "allowedLevel",
6064
"baseName": "allowedLevel",
61-
"type": "AccountHolderCapability.AllowedLevelEnum"
65+
"type": "AccountHolderCapability.AllowedLevelEnum",
66+
"format": ""
6267
},
6368
{
6469
"name": "allowedSettings",
6570
"baseName": "allowedSettings",
66-
"type": "CapabilitySettings | null"
71+
"type": "CapabilitySettings",
72+
"format": ""
6773
},
6874
{
6975
"name": "enabled",
7076
"baseName": "enabled",
71-
"type": "boolean"
77+
"type": "boolean",
78+
"format": ""
7279
},
7380
{
7481
"name": "problems",
7582
"baseName": "problems",
76-
"type": "Array<CapabilityProblem>"
83+
"type": "Array<CapabilityProblem>",
84+
"format": ""
7785
},
7886
{
7987
"name": "requested",
8088
"baseName": "requested",
81-
"type": "boolean"
89+
"type": "boolean",
90+
"format": ""
8291
},
8392
{
8493
"name": "requestedLevel",
8594
"baseName": "requestedLevel",
86-
"type": "AccountHolderCapability.RequestedLevelEnum"
95+
"type": "AccountHolderCapability.RequestedLevelEnum",
96+
"format": ""
8797
},
8898
{
8999
"name": "requestedSettings",
90100
"baseName": "requestedSettings",
91-
"type": "CapabilitySettings | null"
101+
"type": "CapabilitySettings",
102+
"format": ""
92103
},
93104
{
94105
"name": "transferInstruments",
95106
"baseName": "transferInstruments",
96-
"type": "Array<AccountSupportingEntityCapability>"
107+
"type": "Array<AccountSupportingEntityCapability>",
108+
"format": ""
97109
},
98110
{
99111
"name": "verificationStatus",
100112
"baseName": "verificationStatus",
101-
"type": "AccountHolderCapability.VerificationStatusEnum"
113+
"type": "AccountHolderCapability.VerificationStatusEnum",
114+
"format": ""
102115
} ];
103116

104117
static getAttributeTypeMap() {
105118
return AccountHolderCapability.attributeTypeMap;
106119
}
120+
121+
public constructor() {
122+
}
107123
}
108124

109125
export namespace AccountHolderCapability {

src/typings/configurationWebhooks/accountHolderNotificationData.ts

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,39 @@
77
* Do not edit this class manually.
88
*/
99

10-
import { AccountHolder } from './accountHolder';
10+
import { AccountHolder } from "./accountHolder";
11+
1112

1213
export class AccountHolderNotificationData {
13-
'accountHolder'?: AccountHolder | null;
14+
"accountHolder"?: AccountHolder;
1415
/**
1516
* The unique identifier of the balance platform.
1617
*/
17-
'balancePlatform'?: string;
18+
"balancePlatform"?: string;
19+
20+
static readonly discriminator: string | undefined = undefined;
1821

19-
static discriminator: string | undefined = undefined;
22+
static readonly mapping: {[index: string]: string} | undefined = undefined;
2023

21-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
24+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
2225
{
2326
"name": "accountHolder",
2427
"baseName": "accountHolder",
25-
"type": "AccountHolder | null"
28+
"type": "AccountHolder",
29+
"format": ""
2630
},
2731
{
2832
"name": "balancePlatform",
2933
"baseName": "balancePlatform",
30-
"type": "string"
34+
"type": "string",
35+
"format": ""
3136
} ];
3237

3338
static getAttributeTypeMap() {
3439
return AccountHolderNotificationData.attributeTypeMap;
3540
}
41+
42+
public constructor() {
43+
}
3644
}
3745

0 commit comments

Comments
 (0)