-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathaccountHolderCapability.ts
128 lines (122 loc) · 4.72 KB
/
accountHolderCapability.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
/*
* 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 { AccountSupportingEntityCapability } from './accountSupportingEntityCapability';
import { CapabilityProblem } from './capabilityProblem';
import { CapabilitySettings } from './capabilitySettings';
export class AccountHolderCapability {
/**
* 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.
*/
'allowed'?: boolean;
/**
* The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**.
*/
'allowedLevel'?: AccountHolderCapability.AllowedLevelEnum;
'allowedSettings'?: CapabilitySettings | null;
/**
* Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder.
*/
'enabled'?: boolean;
/**
* Contains verification errors and the actions that you can take to resolve them.
*/
'problems'?: Array<CapabilityProblem>;
/**
* Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field.
*/
'requested'?: boolean;
/**
* 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**.
*/
'requestedLevel'?: AccountHolderCapability.RequestedLevelEnum;
'requestedSettings'?: CapabilitySettings | null;
/**
* Contains the status of the transfer instruments associated with this capability.
*/
'transferInstruments'?: Array<AccountSupportingEntityCapability>;
/**
* 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.
*/
'verificationStatus'?: AccountHolderCapability.VerificationStatusEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "allowed",
"baseName": "allowed",
"type": "boolean"
},
{
"name": "allowedLevel",
"baseName": "allowedLevel",
"type": "AccountHolderCapability.AllowedLevelEnum"
},
{
"name": "allowedSettings",
"baseName": "allowedSettings",
"type": "CapabilitySettings | null"
},
{
"name": "enabled",
"baseName": "enabled",
"type": "boolean"
},
{
"name": "problems",
"baseName": "problems",
"type": "Array<CapabilityProblem>"
},
{
"name": "requested",
"baseName": "requested",
"type": "boolean"
},
{
"name": "requestedLevel",
"baseName": "requestedLevel",
"type": "AccountHolderCapability.RequestedLevelEnum"
},
{
"name": "requestedSettings",
"baseName": "requestedSettings",
"type": "CapabilitySettings | null"
},
{
"name": "transferInstruments",
"baseName": "transferInstruments",
"type": "Array<AccountSupportingEntityCapability>"
},
{
"name": "verificationStatus",
"baseName": "verificationStatus",
"type": "AccountHolderCapability.VerificationStatusEnum"
} ];
static getAttributeTypeMap() {
return AccountHolderCapability.attributeTypeMap;
}
}
export namespace AccountHolderCapability {
export enum AllowedLevelEnum {
High = 'high',
Low = 'low',
Medium = 'medium',
NotApplicable = 'notApplicable'
}
export enum RequestedLevelEnum {
High = 'high',
Low = 'low',
Medium = 'medium',
NotApplicable = 'notApplicable'
}
export enum VerificationStatusEnum {
Invalid = 'invalid',
Pending = 'pending',
Rejected = 'rejected',
Valid = 'valid'
}
}