-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathpaymentInstrument.ts
161 lines (155 loc) · 5.82 KB
/
paymentInstrument.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
149
150
151
152
153
154
155
156
157
158
159
160
161
/*
* 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 { BankAccountDetails } from './bankAccountDetails';
import { Card } from './card';
import { IbanAccountIdentification } from './ibanAccountIdentification';
export class PaymentInstrument {
/**
* Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**.
*
* @deprecated since Configuration webhooks v2
* Please use `bankAccount` object instead
*/
'additionalBankAccountIdentifications'?: Array<IbanAccountIdentification>;
/**
* The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument.
*/
'balanceAccountId': string;
'bankAccount'?: BankAccountDetails | null;
'card'?: Card | null;
/**
* Your description for the payment instrument, maximum 300 characters.
*/
'description'?: string;
/**
* The unique identifier of the payment instrument.
*/
'id': string;
/**
* The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**.
*/
'issuingCountryCode': string;
/**
* The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs.
*/
'paymentInstrumentGroupId'?: string;
/**
* Your reference for the payment instrument, maximum 150 characters.
*/
'reference'?: string;
/**
* The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone.
*/
'status'?: PaymentInstrument.StatusEnum;
/**
* The status comment provides additional information for the statusReason of the payment instrument.
*/
'statusComment'?: string;
/**
* The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change.
*/
'statusReason'?: PaymentInstrument.StatusReasonEnum;
/**
* The type of payment instrument. Possible values: **card**, **bankAccount**.
*/
'type': PaymentInstrument.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "additionalBankAccountIdentifications",
"baseName": "additionalBankAccountIdentifications",
"type": "Array<IbanAccountIdentification>"
},
{
"name": "balanceAccountId",
"baseName": "balanceAccountId",
"type": "string"
},
{
"name": "bankAccount",
"baseName": "bankAccount",
"type": "BankAccountDetails | null"
},
{
"name": "card",
"baseName": "card",
"type": "Card | null"
},
{
"name": "description",
"baseName": "description",
"type": "string"
},
{
"name": "id",
"baseName": "id",
"type": "string"
},
{
"name": "issuingCountryCode",
"baseName": "issuingCountryCode",
"type": "string"
},
{
"name": "paymentInstrumentGroupId",
"baseName": "paymentInstrumentGroupId",
"type": "string"
},
{
"name": "reference",
"baseName": "reference",
"type": "string"
},
{
"name": "status",
"baseName": "status",
"type": "PaymentInstrument.StatusEnum"
},
{
"name": "statusComment",
"baseName": "statusComment",
"type": "string"
},
{
"name": "statusReason",
"baseName": "statusReason",
"type": "PaymentInstrument.StatusReasonEnum"
},
{
"name": "type",
"baseName": "type",
"type": "PaymentInstrument.TypeEnum"
} ];
static getAttributeTypeMap() {
return PaymentInstrument.attributeTypeMap;
}
}
export namespace PaymentInstrument {
export enum StatusEnum {
Active = 'active',
Closed = 'closed',
Inactive = 'inactive',
Suspended = 'suspended'
}
export enum StatusReasonEnum {
AccountClosure = 'accountClosure',
Damaged = 'damaged',
EndOfLife = 'endOfLife',
Expired = 'expired',
Lost = 'lost',
Other = 'other',
Stolen = 'stolen',
SuspectedFraud = 'suspectedFraud',
TransactionRule = 'transactionRule'
}
export enum TypeEnum {
BankAccount = 'bankAccount',
Card = 'card'
}
}