-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathsweepConfigurationV2.ts
201 lines (195 loc) · 8.4 KB
/
sweepConfigurationV2.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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
/*
* 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 { Amount } from './amount';
import { SweepCounterparty } from './sweepCounterparty';
import { SweepSchedule } from './sweepSchedule';
export class SweepConfigurationV2 {
/**
* The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`.
*/
'category'?: SweepConfigurationV2.CategoryEnum;
'counterparty': SweepCounterparty;
/**
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances).
*/
'currency': string;
/**
* The message that will be used in the sweep transfer\'s description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters.
*/
'description'?: string;
/**
* The unique identifier of the sweep.
*/
'id': string;
/**
* The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that\'s not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
*/
'priorities'?: Array<SweepConfigurationV2.PrioritiesEnum>;
/**
* The reason for disabling the sweep.
*/
'reason'?: SweepConfigurationV2.ReasonEnum;
/**
* The human readable reason for disabling the sweep.
*/
'reasonDetail'?: string;
/**
* Your reference for the sweep configuration.
*/
'reference'?: string;
/**
* The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.
*/
'referenceForBeneficiary'?: string;
'schedule': SweepSchedule;
/**
* The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered.
*/
'status'?: SweepConfigurationV2.StatusEnum;
'sweepAmount'?: Amount | null;
'targetAmount'?: Amount | null;
'triggerAmount'?: Amount | null;
/**
* The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account.
*/
'type'?: SweepConfigurationV2.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "category",
"baseName": "category",
"type": "SweepConfigurationV2.CategoryEnum"
},
{
"name": "counterparty",
"baseName": "counterparty",
"type": "SweepCounterparty"
},
{
"name": "currency",
"baseName": "currency",
"type": "string"
},
{
"name": "description",
"baseName": "description",
"type": "string"
},
{
"name": "id",
"baseName": "id",
"type": "string"
},
{
"name": "priorities",
"baseName": "priorities",
"type": "Array<SweepConfigurationV2.PrioritiesEnum>"
},
{
"name": "reason",
"baseName": "reason",
"type": "SweepConfigurationV2.ReasonEnum"
},
{
"name": "reasonDetail",
"baseName": "reasonDetail",
"type": "string"
},
{
"name": "reference",
"baseName": "reference",
"type": "string"
},
{
"name": "referenceForBeneficiary",
"baseName": "referenceForBeneficiary",
"type": "string"
},
{
"name": "schedule",
"baseName": "schedule",
"type": "SweepSchedule"
},
{
"name": "status",
"baseName": "status",
"type": "SweepConfigurationV2.StatusEnum"
},
{
"name": "sweepAmount",
"baseName": "sweepAmount",
"type": "Amount | null"
},
{
"name": "targetAmount",
"baseName": "targetAmount",
"type": "Amount | null"
},
{
"name": "triggerAmount",
"baseName": "triggerAmount",
"type": "Amount | null"
},
{
"name": "type",
"baseName": "type",
"type": "SweepConfigurationV2.TypeEnum"
} ];
static getAttributeTypeMap() {
return SweepConfigurationV2.attributeTypeMap;
}
}
export namespace SweepConfigurationV2 {
export enum CategoryEnum {
Bank = 'bank',
Internal = 'internal',
PlatformPayment = 'platformPayment'
}
export enum PrioritiesEnum {
CrossBorder = 'crossBorder',
Fast = 'fast',
Instant = 'instant',
Internal = 'internal',
Regular = 'regular',
Wire = 'wire'
}
export enum ReasonEnum {
AccountHierarchyNotActive = 'accountHierarchyNotActive',
AmountLimitExceeded = 'amountLimitExceeded',
Approved = 'approved',
BalanceAccountTemporarilyBlockedByTransactionRule = 'balanceAccountTemporarilyBlockedByTransactionRule',
CounterpartyAccountBlocked = 'counterpartyAccountBlocked',
CounterpartyAccountClosed = 'counterpartyAccountClosed',
CounterpartyAccountNotFound = 'counterpartyAccountNotFound',
CounterpartyAddressRequired = 'counterpartyAddressRequired',
CounterpartyBankTimedOut = 'counterpartyBankTimedOut',
CounterpartyBankUnavailable = 'counterpartyBankUnavailable',
Declined = 'declined',
DeclinedByTransactionRule = 'declinedByTransactionRule',
DirectDebitNotSupported = 'directDebitNotSupported',
Error = 'error',
NotEnoughBalance = 'notEnoughBalance',
PendingApproval = 'pendingApproval',
PendingExecution = 'pendingExecution',
RefusedByCounterpartyBank = 'refusedByCounterpartyBank',
RefusedByCustomer = 'refusedByCustomer',
RouteNotFound = 'routeNotFound',
ScaFailed = 'scaFailed',
TransferInstrumentDoesNotExist = 'transferInstrumentDoesNotExist',
Unknown = 'unknown'
}
export enum StatusEnum {
Active = 'active',
Inactive = 'inactive'
}
export enum TypeEnum {
Pull = 'pull',
Push = 'push'
}
}