-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathsweepConfigurationV2.ts
More file actions
216 lines (207 loc) · 8.95 KB
/
sweepConfigurationV2.ts
File metadata and controls
216 lines (207 loc) · 8.95 KB
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
/*
* 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, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. 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 within the United States and in [SEPA locations](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 readonly discriminator: string | undefined = undefined;
static readonly mapping: {[index: string]: string} | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "category",
"baseName": "category",
"type": "SweepConfigurationV2.CategoryEnum",
"format": ""
},
{
"name": "counterparty",
"baseName": "counterparty",
"type": "SweepCounterparty",
"format": ""
},
{
"name": "currency",
"baseName": "currency",
"type": "string",
"format": ""
},
{
"name": "description",
"baseName": "description",
"type": "string",
"format": ""
},
{
"name": "id",
"baseName": "id",
"type": "string",
"format": ""
},
{
"name": "priorities",
"baseName": "priorities",
"type": "SweepConfigurationV2.PrioritiesEnum",
"format": ""
},
{
"name": "reason",
"baseName": "reason",
"type": "SweepConfigurationV2.ReasonEnum",
"format": ""
},
{
"name": "reasonDetail",
"baseName": "reasonDetail",
"type": "string",
"format": ""
},
{
"name": "reference",
"baseName": "reference",
"type": "string",
"format": ""
},
{
"name": "referenceForBeneficiary",
"baseName": "referenceForBeneficiary",
"type": "string",
"format": ""
},
{
"name": "schedule",
"baseName": "schedule",
"type": "SweepSchedule",
"format": ""
},
{
"name": "status",
"baseName": "status",
"type": "SweepConfigurationV2.StatusEnum",
"format": ""
},
{
"name": "sweepAmount",
"baseName": "sweepAmount",
"type": "Amount | null",
"format": ""
},
{
"name": "targetAmount",
"baseName": "targetAmount",
"type": "Amount | null",
"format": ""
},
{
"name": "triggerAmount",
"baseName": "triggerAmount",
"type": "Amount | null",
"format": ""
},
{
"name": "type",
"baseName": "type",
"type": "SweepConfigurationV2.TypeEnum",
"format": ""
} ];
static getAttributeTypeMap() {
return SweepConfigurationV2.attributeTypeMap;
}
public constructor() {
}
}
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',
CounterpartyAccountBlocked = 'counterpartyAccountBlocked',
CounterpartyAccountClosed = 'counterpartyAccountClosed',
CounterpartyAccountNotFound = 'counterpartyAccountNotFound',
CounterpartyAddressRequired = 'counterpartyAddressRequired',
CounterpartyBankTimedOut = 'counterpartyBankTimedOut',
CounterpartyBankUnavailable = 'counterpartyBankUnavailable',
DirectDebitNotSupported = 'directDebitNotSupported',
Error = 'error',
NotEnoughBalance = 'notEnoughBalance',
RefusedByCounterpartyBank = 'refusedByCounterpartyBank',
RouteNotFound = 'routeNotFound',
TransferInstrumentDoesNotExist = 'transferInstrumentDoesNotExist',
Unknown = 'unknown'
}
export enum StatusEnum {
Active = 'active',
Inactive = 'inactive'
}
export enum TypeEnum {
Pull = 'pull',
Push = 'push'
}
}