@augustusbank/typescript-sdk 0.20.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/client.d.mts +6 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account-holders.d.mts +1555 -1184
- package/resources/account-holders.d.mts.map +1 -1
- package/resources/account-holders.d.ts +1555 -1184
- package/resources/account-holders.d.ts.map +1 -1
- package/resources/account-holders.js +59 -0
- package/resources/account-holders.js.map +1 -1
- package/resources/account-holders.mjs +59 -0
- package/resources/account-holders.mjs.map +1 -1
- package/resources/account-programs.d.mts +2 -2
- package/resources/account-programs.d.ts +2 -2
- package/resources/accounts.d.mts +206 -43
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +206 -43
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js +53 -0
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs +53 -0
- package/resources/accounts.mjs.map +1 -1
- package/resources/api-keys.d.mts +1 -1
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +1 -1
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-versions.d.mts +3 -0
- package/resources/api-versions.d.mts.map +1 -1
- package/resources/api-versions.d.ts +3 -0
- package/resources/api-versions.d.ts.map +1 -1
- package/resources/conversions.d.mts +36 -81
- package/resources/conversions.d.mts.map +1 -1
- package/resources/conversions.d.ts +36 -81
- package/resources/conversions.d.ts.map +1 -1
- package/resources/conversions.js +25 -1
- package/resources/conversions.js.map +1 -1
- package/resources/conversions.mjs +25 -1
- package/resources/conversions.mjs.map +1 -1
- package/resources/counterparties.d.mts +1042 -0
- package/resources/counterparties.d.mts.map +1 -0
- package/resources/counterparties.d.ts +1042 -0
- package/resources/counterparties.d.ts.map +1 -0
- package/resources/counterparties.js +45 -0
- package/resources/counterparties.js.map +1 -0
- package/resources/counterparties.mjs +41 -0
- package/resources/counterparties.mjs.map +1 -0
- package/resources/deposits.d.mts +38 -186
- package/resources/deposits.d.mts.map +1 -1
- package/resources/deposits.d.ts +38 -186
- package/resources/deposits.d.ts.map +1 -1
- package/resources/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/payouts.d.mts +458 -276
- package/resources/payouts.d.mts.map +1 -1
- package/resources/payouts.d.ts +458 -276
- package/resources/payouts.d.ts.map +1 -1
- package/resources/payouts.js +27 -0
- package/resources/payouts.js.map +1 -1
- package/resources/payouts.mjs +27 -0
- package/resources/payouts.mjs.map +1 -1
- package/resources/quotes/indicative.d.mts +7 -11
- package/resources/quotes/indicative.d.mts.map +1 -1
- package/resources/quotes/indicative.d.ts +7 -11
- package/resources/quotes/indicative.d.ts.map +1 -1
- package/resources/quotes/quotes.d.mts +4 -8
- package/resources/quotes/quotes.d.mts.map +1 -1
- package/resources/quotes/quotes.d.ts +4 -8
- package/resources/quotes/quotes.d.ts.map +1 -1
- package/resources/quotes/quotes.js.map +1 -1
- package/resources/quotes/quotes.mjs.map +1 -1
- package/resources/returns.d.mts +84 -39
- package/resources/returns.d.mts.map +1 -1
- package/resources/returns.d.ts +84 -39
- package/resources/returns.d.ts.map +1 -1
- package/resources/returns.js +22 -0
- package/resources/returns.js.map +1 -1
- package/resources/returns.mjs +22 -0
- package/resources/returns.mjs.map +1 -1
- package/resources/scopes.d.mts +4 -1
- package/resources/scopes.d.mts.map +1 -1
- package/resources/scopes.d.ts +4 -1
- package/resources/scopes.d.ts.map +1 -1
- package/resources/simulations/account-programs.d.mts +281 -0
- package/resources/simulations/account-programs.d.mts.map +1 -0
- package/resources/simulations/account-programs.d.ts +281 -0
- package/resources/simulations/account-programs.d.ts.map +1 -0
- package/resources/simulations/account-programs.js +98 -0
- package/resources/simulations/account-programs.js.map +1 -0
- package/resources/simulations/account-programs.mjs +94 -0
- package/resources/simulations/account-programs.mjs.map +1 -0
- package/resources/simulations/accounts.d.mts +270 -0
- package/resources/simulations/accounts.d.mts.map +1 -0
- package/resources/simulations/accounts.d.ts +270 -0
- package/resources/simulations/accounts.d.ts.map +1 -0
- package/resources/simulations/accounts.js +91 -0
- package/resources/simulations/accounts.js.map +1 -0
- package/resources/simulations/accounts.mjs +87 -0
- package/resources/simulations/accounts.mjs.map +1 -0
- package/resources/simulations/deposits.d.mts +218 -0
- package/resources/simulations/deposits.d.mts.map +1 -0
- package/resources/simulations/deposits.d.ts +218 -0
- package/resources/simulations/deposits.d.ts.map +1 -0
- package/resources/simulations/deposits.js +25 -0
- package/resources/simulations/deposits.js.map +1 -0
- package/resources/simulations/deposits.mjs +21 -0
- package/resources/simulations/deposits.mjs.map +1 -0
- package/resources/simulations/index.d.mts +6 -0
- package/resources/simulations/index.d.mts.map +1 -0
- package/resources/simulations/index.d.ts +6 -0
- package/resources/simulations/index.d.ts.map +1 -0
- package/resources/simulations/index.js +15 -0
- package/resources/simulations/index.js.map +1 -0
- package/resources/simulations/index.mjs +7 -0
- package/resources/simulations/index.mjs.map +1 -0
- package/resources/simulations/payouts.d.mts +76 -0
- package/resources/simulations/payouts.d.mts.map +1 -0
- package/resources/simulations/payouts.d.ts +76 -0
- package/resources/simulations/payouts.d.ts.map +1 -0
- package/resources/simulations/payouts.js +39 -0
- package/resources/simulations/payouts.js.map +1 -0
- package/resources/simulations/payouts.mjs +35 -0
- package/resources/simulations/payouts.mjs.map +1 -0
- package/resources/simulations/simulations.d.mts +22 -0
- package/resources/simulations/simulations.d.mts.map +1 -0
- package/resources/simulations/simulations.d.ts +22 -0
- package/resources/simulations/simulations.d.ts.map +1 -0
- package/resources/simulations/simulations.js +29 -0
- package/resources/simulations/simulations.js.map +1 -0
- package/resources/simulations/simulations.mjs +24 -0
- package/resources/simulations/simulations.mjs.map +1 -0
- package/resources/simulations.d.mts +2 -0
- package/resources/simulations.d.mts.map +1 -0
- package/resources/simulations.d.ts +2 -0
- package/resources/simulations.d.ts.map +1 -0
- package/resources/simulations.js +6 -0
- package/resources/simulations.js.map +1 -0
- package/resources/simulations.mjs +3 -0
- package/resources/simulations.mjs.map +1 -0
- package/resources/transactions.d.mts +300 -180
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +300 -180
- package/resources/transactions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.d.mts +54 -4
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts +54 -4
- package/resources/webhook-subscriptions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.js +49 -0
- package/resources/webhook-subscriptions.js.map +1 -1
- package/resources/webhook-subscriptions.mjs +49 -0
- package/resources/webhook-subscriptions.mjs.map +1 -1
- package/resources/webhooks.d.mts +736 -953
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +736 -953
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +32 -0
- package/src/resources/account-holders.ts +1701 -1282
- package/src/resources/account-programs.ts +2 -2
- package/src/resources/accounts.ts +236 -44
- package/src/resources/api-keys.ts +3 -0
- package/src/resources/api-versions.ts +3 -0
- package/src/resources/conversions.ts +36 -93
- package/src/resources/counterparties.ts +3127 -0
- package/src/resources/deposits.ts +54 -269
- package/src/resources/index.ts +13 -0
- package/src/resources/payouts.ts +2089 -367
- package/src/resources/quotes/indicative.ts +7 -12
- package/src/resources/quotes/quotes.ts +4 -9
- package/src/resources/returns.ts +144 -40
- package/src/resources/scopes.ts +7 -1
- package/src/resources/simulations/account-programs.ts +363 -0
- package/src/resources/simulations/accounts.ts +340 -0
- package/src/resources/simulations/deposits.ts +530 -0
- package/src/resources/simulations/index.ts +32 -0
- package/src/resources/simulations/payouts.ts +98 -0
- package/src/resources/simulations/simulations.ts +82 -0
- package/src/resources/simulations.ts +3 -0
- package/src/resources/transactions.ts +910 -232
- package/src/resources/webhook-subscriptions.ts +54 -4
- package/src/resources/webhooks.ts +948 -1126
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/payouts.ts
CHANGED
|
@@ -9,6 +9,18 @@ import { path } from '../internal/utils/path';
|
|
|
9
9
|
export class Payouts extends APIResource {
|
|
10
10
|
/**
|
|
11
11
|
* Creates a new payout.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const payout = await client.payouts.create({
|
|
16
|
+
* account_id: '550e8400-e29b-41d4-a716-44665544000b',
|
|
17
|
+
* amount: '100.50',
|
|
18
|
+
* destination: {
|
|
19
|
+
* counterparty_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
20
|
+
* type: 'counterparty',
|
|
21
|
+
* },
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
12
24
|
*/
|
|
13
25
|
create(body: PayoutCreateParams, options?: RequestOptions): APIPromise<PayoutCreateResponse> {
|
|
14
26
|
return this._client.post('/v1/payouts', { body, ...options });
|
|
@@ -16,6 +28,13 @@ export class Payouts extends APIResource {
|
|
|
16
28
|
|
|
17
29
|
/**
|
|
18
30
|
* Retrieves a payout by ID.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const payout = await client.payouts.retrieve(
|
|
35
|
+
* '550e8400-e29b-41d4-a716-446655440003',
|
|
36
|
+
* );
|
|
37
|
+
* ```
|
|
19
38
|
*/
|
|
20
39
|
retrieve(id: string, options?: RequestOptions): APIPromise<PayoutRetrieveResponse> {
|
|
21
40
|
return this._client.get(path`/v1/payouts/${id}`, options);
|
|
@@ -23,6 +42,14 @@ export class Payouts extends APIResource {
|
|
|
23
42
|
|
|
24
43
|
/**
|
|
25
44
|
* Lists payouts for the merchant with cursor-based pagination.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* // Automatically fetches more pages as needed.
|
|
49
|
+
* for await (const payoutListResponse of client.payouts.list()) {
|
|
50
|
+
* // ...
|
|
51
|
+
* }
|
|
52
|
+
* ```
|
|
26
53
|
*/
|
|
27
54
|
list(
|
|
28
55
|
query: PayoutListParams | null | undefined = {},
|
|
@@ -40,34 +67,35 @@ export interface PayoutCreateResponse {
|
|
|
40
67
|
*/
|
|
41
68
|
id: string;
|
|
42
69
|
|
|
70
|
+
/**
|
|
71
|
+
* ID of the account that was debited.
|
|
72
|
+
*/
|
|
73
|
+
account_id: string;
|
|
74
|
+
|
|
43
75
|
/**
|
|
44
76
|
* Amount as a string decimal (e.g. "100.50").
|
|
45
77
|
*/
|
|
46
78
|
amount: string;
|
|
47
79
|
|
|
48
80
|
/**
|
|
49
|
-
*
|
|
81
|
+
* ID of the counterparty that receives the money.
|
|
50
82
|
*/
|
|
51
|
-
|
|
83
|
+
counterparty_id: string;
|
|
52
84
|
|
|
53
85
|
/**
|
|
54
|
-
* Currency code (ISO 4217
|
|
86
|
+
* Currency code (ISO 4217 or crypto).
|
|
55
87
|
*/
|
|
56
88
|
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
57
89
|
|
|
58
90
|
/**
|
|
59
|
-
*
|
|
91
|
+
* Failure details when status is failed, otherwise null.
|
|
60
92
|
*/
|
|
61
|
-
|
|
62
|
-
| PayoutCreateResponse.UnionMember0
|
|
63
|
-
| PayoutCreateResponse.UnionMember1
|
|
64
|
-
| PayoutCreateResponse.UnionMember2
|
|
65
|
-
| PayoutCreateResponse.UnionMember3;
|
|
93
|
+
failure: PayoutCreateResponse.Failure | null;
|
|
66
94
|
|
|
67
95
|
/**
|
|
68
|
-
*
|
|
96
|
+
* ISO 8601 UTC timestamp when the payout was initiated.
|
|
69
97
|
*/
|
|
70
|
-
|
|
98
|
+
initiated_at: string;
|
|
71
99
|
|
|
72
100
|
/**
|
|
73
101
|
* Key-value pairs stored with the payout.
|
|
@@ -75,19 +103,47 @@ export interface PayoutCreateResponse {
|
|
|
75
103
|
metadata: { [key: string]: string };
|
|
76
104
|
|
|
77
105
|
/**
|
|
78
|
-
* Payment
|
|
106
|
+
* Payment scheme or blockchain used for the payout, or null when unknown.
|
|
79
107
|
*/
|
|
80
|
-
|
|
108
|
+
rail:
|
|
109
|
+
| 'sepa'
|
|
110
|
+
| 'sepa_instant'
|
|
111
|
+
| 'faster_payments'
|
|
112
|
+
| 'swift'
|
|
113
|
+
| 'internal'
|
|
114
|
+
| 'target'
|
|
115
|
+
| 'ach'
|
|
116
|
+
| 'fedwire'
|
|
117
|
+
| 'bitcoin'
|
|
118
|
+
| 'bitcoin_testnet4'
|
|
119
|
+
| 'ethereum'
|
|
120
|
+
| 'ethereum_sepolia'
|
|
121
|
+
| 'solana'
|
|
122
|
+
| 'solana_devnet'
|
|
123
|
+
| 'polygon'
|
|
124
|
+
| 'polygon_amoy'
|
|
125
|
+
| null;
|
|
81
126
|
|
|
82
127
|
/**
|
|
83
|
-
*
|
|
128
|
+
* ISO 8601 UTC timestamp when the payout was sent.
|
|
84
129
|
*/
|
|
85
|
-
|
|
130
|
+
sent_at: string | null;
|
|
86
131
|
|
|
87
132
|
/**
|
|
88
133
|
* Current status of the payout.
|
|
89
134
|
*/
|
|
90
|
-
status: '
|
|
135
|
+
status: 'initiated' | 'submitted' | 'sent' | 'failed' | 'returned';
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Identifier used to track the payout through the payment network where supported.
|
|
139
|
+
*/
|
|
140
|
+
tracking_id: string | null;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Transaction hash for crypto payouts, or null when not known. Only blockchain
|
|
144
|
+
* rails support this field.
|
|
145
|
+
*/
|
|
146
|
+
tx_hash: string | null;
|
|
91
147
|
|
|
92
148
|
/**
|
|
93
149
|
* Resource type discriminator.
|
|
@@ -95,103 +151,13 @@ export interface PayoutCreateResponse {
|
|
|
95
151
|
type: 'payout';
|
|
96
152
|
|
|
97
153
|
/**
|
|
98
|
-
*
|
|
154
|
+
* Unstructured remittance information attached to the transfer. Not all rails
|
|
155
|
+
* support this field.
|
|
99
156
|
*/
|
|
100
|
-
|
|
157
|
+
unstructured_remittance_information: string | null;
|
|
101
158
|
}
|
|
102
159
|
|
|
103
160
|
export namespace PayoutCreateResponse {
|
|
104
|
-
export interface UnionMember0 {
|
|
105
|
-
/**
|
|
106
|
-
* Name of the account holder.
|
|
107
|
-
*/
|
|
108
|
-
account_holder_name: string;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Bank Identifier Code, or null if not provided.
|
|
112
|
-
*/
|
|
113
|
-
bic: string | null;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* International Bank Account Number.
|
|
117
|
-
*/
|
|
118
|
-
iban: string;
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Discriminator for IBAN financial address.
|
|
122
|
-
*/
|
|
123
|
-
type: 'iban';
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export interface UnionMember1 {
|
|
127
|
-
/**
|
|
128
|
-
* Name of the account holder.
|
|
129
|
-
*/
|
|
130
|
-
account_holder_name: string;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* UK account number (8 digits).
|
|
134
|
-
*/
|
|
135
|
-
account_number: string;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* UK sort code (6 digits).
|
|
139
|
-
*/
|
|
140
|
-
sort_code: string;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Discriminator for UK sort code financial address.
|
|
144
|
-
*/
|
|
145
|
-
type: 'sort_code';
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export interface UnionMember2 {
|
|
149
|
-
/**
|
|
150
|
-
* Name of the account holder.
|
|
151
|
-
*/
|
|
152
|
-
account_holder_name: string;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Bank account number.
|
|
156
|
-
*/
|
|
157
|
-
account_number: string;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* ABA routing number (9 digits).
|
|
161
|
-
*/
|
|
162
|
-
routing_number: string;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Discriminator for ABA wire financial address.
|
|
166
|
-
*/
|
|
167
|
-
type: 'aba';
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export interface UnionMember3 {
|
|
171
|
-
/**
|
|
172
|
-
* Wallet address on the specified blockchain.
|
|
173
|
-
*/
|
|
174
|
-
address: string;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Blockchain network for the crypto wallet.
|
|
178
|
-
*/
|
|
179
|
-
blockchain:
|
|
180
|
-
| 'bitcoin'
|
|
181
|
-
| 'ethereum'
|
|
182
|
-
| 'solana'
|
|
183
|
-
| 'polygon'
|
|
184
|
-
| 'bitcoin_testnet4'
|
|
185
|
-
| 'ethereum_sepolia'
|
|
186
|
-
| 'solana_devnet'
|
|
187
|
-
| 'polygon_amoy';
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Discriminator for crypto wallet financial address.
|
|
191
|
-
*/
|
|
192
|
-
type: 'crypto_wallet';
|
|
193
|
-
}
|
|
194
|
-
|
|
195
161
|
/**
|
|
196
162
|
* Failure details when status is failed, otherwise null.
|
|
197
163
|
*/
|
|
@@ -204,6 +170,7 @@ export namespace PayoutCreateResponse {
|
|
|
204
170
|
| 'account_blocked'
|
|
205
171
|
| 'insufficient_funds'
|
|
206
172
|
| 'invalid_account_format'
|
|
173
|
+
| 'invalid_routing_number'
|
|
207
174
|
| 'invalid_instruction'
|
|
208
175
|
| 'invalid_amount'
|
|
209
176
|
| 'invalid_time'
|
|
@@ -233,34 +200,35 @@ export interface PayoutRetrieveResponse {
|
|
|
233
200
|
*/
|
|
234
201
|
id: string;
|
|
235
202
|
|
|
203
|
+
/**
|
|
204
|
+
* ID of the account that was debited.
|
|
205
|
+
*/
|
|
206
|
+
account_id: string;
|
|
207
|
+
|
|
236
208
|
/**
|
|
237
209
|
* Amount as a string decimal (e.g. "100.50").
|
|
238
210
|
*/
|
|
239
211
|
amount: string;
|
|
240
212
|
|
|
241
213
|
/**
|
|
242
|
-
*
|
|
214
|
+
* ID of the counterparty that receives the money.
|
|
243
215
|
*/
|
|
244
|
-
|
|
216
|
+
counterparty_id: string;
|
|
245
217
|
|
|
246
218
|
/**
|
|
247
|
-
* Currency code (ISO 4217
|
|
219
|
+
* Currency code (ISO 4217 or crypto).
|
|
248
220
|
*/
|
|
249
221
|
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
250
222
|
|
|
251
223
|
/**
|
|
252
|
-
*
|
|
224
|
+
* Failure details when status is failed, otherwise null.
|
|
253
225
|
*/
|
|
254
|
-
|
|
255
|
-
| PayoutRetrieveResponse.UnionMember0
|
|
256
|
-
| PayoutRetrieveResponse.UnionMember1
|
|
257
|
-
| PayoutRetrieveResponse.UnionMember2
|
|
258
|
-
| PayoutRetrieveResponse.UnionMember3;
|
|
226
|
+
failure: PayoutRetrieveResponse.Failure | null;
|
|
259
227
|
|
|
260
228
|
/**
|
|
261
|
-
*
|
|
229
|
+
* ISO 8601 UTC timestamp when the payout was initiated.
|
|
262
230
|
*/
|
|
263
|
-
|
|
231
|
+
initiated_at: string;
|
|
264
232
|
|
|
265
233
|
/**
|
|
266
234
|
* Key-value pairs stored with the payout.
|
|
@@ -268,19 +236,47 @@ export interface PayoutRetrieveResponse {
|
|
|
268
236
|
metadata: { [key: string]: string };
|
|
269
237
|
|
|
270
238
|
/**
|
|
271
|
-
* Payment
|
|
239
|
+
* Payment scheme or blockchain used for the payout, or null when unknown.
|
|
272
240
|
*/
|
|
273
|
-
|
|
241
|
+
rail:
|
|
242
|
+
| 'sepa'
|
|
243
|
+
| 'sepa_instant'
|
|
244
|
+
| 'faster_payments'
|
|
245
|
+
| 'swift'
|
|
246
|
+
| 'internal'
|
|
247
|
+
| 'target'
|
|
248
|
+
| 'ach'
|
|
249
|
+
| 'fedwire'
|
|
250
|
+
| 'bitcoin'
|
|
251
|
+
| 'bitcoin_testnet4'
|
|
252
|
+
| 'ethereum'
|
|
253
|
+
| 'ethereum_sepolia'
|
|
254
|
+
| 'solana'
|
|
255
|
+
| 'solana_devnet'
|
|
256
|
+
| 'polygon'
|
|
257
|
+
| 'polygon_amoy'
|
|
258
|
+
| null;
|
|
274
259
|
|
|
275
260
|
/**
|
|
276
|
-
*
|
|
261
|
+
* ISO 8601 UTC timestamp when the payout was sent.
|
|
277
262
|
*/
|
|
278
|
-
|
|
263
|
+
sent_at: string | null;
|
|
279
264
|
|
|
280
265
|
/**
|
|
281
266
|
* Current status of the payout.
|
|
282
267
|
*/
|
|
283
|
-
status: '
|
|
268
|
+
status: 'initiated' | 'submitted' | 'sent' | 'failed' | 'returned';
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Identifier used to track the payout through the payment network where supported.
|
|
272
|
+
*/
|
|
273
|
+
tracking_id: string | null;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Transaction hash for crypto payouts, or null when not known. Only blockchain
|
|
277
|
+
* rails support this field.
|
|
278
|
+
*/
|
|
279
|
+
tx_hash: string | null;
|
|
284
280
|
|
|
285
281
|
/**
|
|
286
282
|
* Resource type discriminator.
|
|
@@ -288,103 +284,13 @@ export interface PayoutRetrieveResponse {
|
|
|
288
284
|
type: 'payout';
|
|
289
285
|
|
|
290
286
|
/**
|
|
291
|
-
*
|
|
287
|
+
* Unstructured remittance information attached to the transfer. Not all rails
|
|
288
|
+
* support this field.
|
|
292
289
|
*/
|
|
293
|
-
|
|
290
|
+
unstructured_remittance_information: string | null;
|
|
294
291
|
}
|
|
295
292
|
|
|
296
293
|
export namespace PayoutRetrieveResponse {
|
|
297
|
-
export interface UnionMember0 {
|
|
298
|
-
/**
|
|
299
|
-
* Name of the account holder.
|
|
300
|
-
*/
|
|
301
|
-
account_holder_name: string;
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* Bank Identifier Code, or null if not provided.
|
|
305
|
-
*/
|
|
306
|
-
bic: string | null;
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* International Bank Account Number.
|
|
310
|
-
*/
|
|
311
|
-
iban: string;
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* Discriminator for IBAN financial address.
|
|
315
|
-
*/
|
|
316
|
-
type: 'iban';
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
export interface UnionMember1 {
|
|
320
|
-
/**
|
|
321
|
-
* Name of the account holder.
|
|
322
|
-
*/
|
|
323
|
-
account_holder_name: string;
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* UK account number (8 digits).
|
|
327
|
-
*/
|
|
328
|
-
account_number: string;
|
|
329
|
-
|
|
330
|
-
/**
|
|
331
|
-
* UK sort code (6 digits).
|
|
332
|
-
*/
|
|
333
|
-
sort_code: string;
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* Discriminator for UK sort code financial address.
|
|
337
|
-
*/
|
|
338
|
-
type: 'sort_code';
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
export interface UnionMember2 {
|
|
342
|
-
/**
|
|
343
|
-
* Name of the account holder.
|
|
344
|
-
*/
|
|
345
|
-
account_holder_name: string;
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
* Bank account number.
|
|
349
|
-
*/
|
|
350
|
-
account_number: string;
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* ABA routing number (9 digits).
|
|
354
|
-
*/
|
|
355
|
-
routing_number: string;
|
|
356
|
-
|
|
357
|
-
/**
|
|
358
|
-
* Discriminator for ABA wire financial address.
|
|
359
|
-
*/
|
|
360
|
-
type: 'aba';
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
export interface UnionMember3 {
|
|
364
|
-
/**
|
|
365
|
-
* Wallet address on the specified blockchain.
|
|
366
|
-
*/
|
|
367
|
-
address: string;
|
|
368
|
-
|
|
369
|
-
/**
|
|
370
|
-
* Blockchain network for the crypto wallet.
|
|
371
|
-
*/
|
|
372
|
-
blockchain:
|
|
373
|
-
| 'bitcoin'
|
|
374
|
-
| 'ethereum'
|
|
375
|
-
| 'solana'
|
|
376
|
-
| 'polygon'
|
|
377
|
-
| 'bitcoin_testnet4'
|
|
378
|
-
| 'ethereum_sepolia'
|
|
379
|
-
| 'solana_devnet'
|
|
380
|
-
| 'polygon_amoy';
|
|
381
|
-
|
|
382
|
-
/**
|
|
383
|
-
* Discriminator for crypto wallet financial address.
|
|
384
|
-
*/
|
|
385
|
-
type: 'crypto_wallet';
|
|
386
|
-
}
|
|
387
|
-
|
|
388
294
|
/**
|
|
389
295
|
* Failure details when status is failed, otherwise null.
|
|
390
296
|
*/
|
|
@@ -397,6 +303,7 @@ export namespace PayoutRetrieveResponse {
|
|
|
397
303
|
| 'account_blocked'
|
|
398
304
|
| 'insufficient_funds'
|
|
399
305
|
| 'invalid_account_format'
|
|
306
|
+
| 'invalid_routing_number'
|
|
400
307
|
| 'invalid_instruction'
|
|
401
308
|
| 'invalid_amount'
|
|
402
309
|
| 'invalid_time'
|
|
@@ -426,34 +333,35 @@ export interface PayoutListResponse {
|
|
|
426
333
|
*/
|
|
427
334
|
id: string;
|
|
428
335
|
|
|
336
|
+
/**
|
|
337
|
+
* ID of the account that was debited.
|
|
338
|
+
*/
|
|
339
|
+
account_id: string;
|
|
340
|
+
|
|
429
341
|
/**
|
|
430
342
|
* Amount as a string decimal (e.g. "100.50").
|
|
431
343
|
*/
|
|
432
344
|
amount: string;
|
|
433
345
|
|
|
434
346
|
/**
|
|
435
|
-
*
|
|
347
|
+
* ID of the counterparty that receives the money.
|
|
436
348
|
*/
|
|
437
|
-
|
|
349
|
+
counterparty_id: string;
|
|
438
350
|
|
|
439
351
|
/**
|
|
440
|
-
* Currency code (ISO 4217
|
|
352
|
+
* Currency code (ISO 4217 or crypto).
|
|
441
353
|
*/
|
|
442
354
|
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
443
355
|
|
|
444
356
|
/**
|
|
445
|
-
*
|
|
357
|
+
* Failure details when status is failed, otherwise null.
|
|
446
358
|
*/
|
|
447
|
-
|
|
448
|
-
| PayoutListResponse.UnionMember0
|
|
449
|
-
| PayoutListResponse.UnionMember1
|
|
450
|
-
| PayoutListResponse.UnionMember2
|
|
451
|
-
| PayoutListResponse.UnionMember3;
|
|
359
|
+
failure: PayoutListResponse.Failure | null;
|
|
452
360
|
|
|
453
361
|
/**
|
|
454
|
-
*
|
|
362
|
+
* ISO 8601 UTC timestamp when the payout was initiated.
|
|
455
363
|
*/
|
|
456
|
-
|
|
364
|
+
initiated_at: string;
|
|
457
365
|
|
|
458
366
|
/**
|
|
459
367
|
* Key-value pairs stored with the payout.
|
|
@@ -461,19 +369,47 @@ export interface PayoutListResponse {
|
|
|
461
369
|
metadata: { [key: string]: string };
|
|
462
370
|
|
|
463
371
|
/**
|
|
464
|
-
* Payment
|
|
372
|
+
* Payment scheme or blockchain used for the payout, or null when unknown.
|
|
465
373
|
*/
|
|
466
|
-
|
|
374
|
+
rail:
|
|
375
|
+
| 'sepa'
|
|
376
|
+
| 'sepa_instant'
|
|
377
|
+
| 'faster_payments'
|
|
378
|
+
| 'swift'
|
|
379
|
+
| 'internal'
|
|
380
|
+
| 'target'
|
|
381
|
+
| 'ach'
|
|
382
|
+
| 'fedwire'
|
|
383
|
+
| 'bitcoin'
|
|
384
|
+
| 'bitcoin_testnet4'
|
|
385
|
+
| 'ethereum'
|
|
386
|
+
| 'ethereum_sepolia'
|
|
387
|
+
| 'solana'
|
|
388
|
+
| 'solana_devnet'
|
|
389
|
+
| 'polygon'
|
|
390
|
+
| 'polygon_amoy'
|
|
391
|
+
| null;
|
|
467
392
|
|
|
468
393
|
/**
|
|
469
|
-
*
|
|
394
|
+
* ISO 8601 UTC timestamp when the payout was sent.
|
|
470
395
|
*/
|
|
471
|
-
|
|
396
|
+
sent_at: string | null;
|
|
472
397
|
|
|
473
398
|
/**
|
|
474
399
|
* Current status of the payout.
|
|
475
400
|
*/
|
|
476
|
-
status: '
|
|
401
|
+
status: 'initiated' | 'submitted' | 'sent' | 'failed' | 'returned';
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Identifier used to track the payout through the payment network where supported.
|
|
405
|
+
*/
|
|
406
|
+
tracking_id: string | null;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Transaction hash for crypto payouts, or null when not known. Only blockchain
|
|
410
|
+
* rails support this field.
|
|
411
|
+
*/
|
|
412
|
+
tx_hash: string | null;
|
|
477
413
|
|
|
478
414
|
/**
|
|
479
415
|
* Resource type discriminator.
|
|
@@ -481,103 +417,13 @@ export interface PayoutListResponse {
|
|
|
481
417
|
type: 'payout';
|
|
482
418
|
|
|
483
419
|
/**
|
|
484
|
-
*
|
|
420
|
+
* Unstructured remittance information attached to the transfer. Not all rails
|
|
421
|
+
* support this field.
|
|
485
422
|
*/
|
|
486
|
-
|
|
423
|
+
unstructured_remittance_information: string | null;
|
|
487
424
|
}
|
|
488
425
|
|
|
489
426
|
export namespace PayoutListResponse {
|
|
490
|
-
export interface UnionMember0 {
|
|
491
|
-
/**
|
|
492
|
-
* Name of the account holder.
|
|
493
|
-
*/
|
|
494
|
-
account_holder_name: string;
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* Bank Identifier Code, or null if not provided.
|
|
498
|
-
*/
|
|
499
|
-
bic: string | null;
|
|
500
|
-
|
|
501
|
-
/**
|
|
502
|
-
* International Bank Account Number.
|
|
503
|
-
*/
|
|
504
|
-
iban: string;
|
|
505
|
-
|
|
506
|
-
/**
|
|
507
|
-
* Discriminator for IBAN financial address.
|
|
508
|
-
*/
|
|
509
|
-
type: 'iban';
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
export interface UnionMember1 {
|
|
513
|
-
/**
|
|
514
|
-
* Name of the account holder.
|
|
515
|
-
*/
|
|
516
|
-
account_holder_name: string;
|
|
517
|
-
|
|
518
|
-
/**
|
|
519
|
-
* UK account number (8 digits).
|
|
520
|
-
*/
|
|
521
|
-
account_number: string;
|
|
522
|
-
|
|
523
|
-
/**
|
|
524
|
-
* UK sort code (6 digits).
|
|
525
|
-
*/
|
|
526
|
-
sort_code: string;
|
|
527
|
-
|
|
528
|
-
/**
|
|
529
|
-
* Discriminator for UK sort code financial address.
|
|
530
|
-
*/
|
|
531
|
-
type: 'sort_code';
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
export interface UnionMember2 {
|
|
535
|
-
/**
|
|
536
|
-
* Name of the account holder.
|
|
537
|
-
*/
|
|
538
|
-
account_holder_name: string;
|
|
539
|
-
|
|
540
|
-
/**
|
|
541
|
-
* Bank account number.
|
|
542
|
-
*/
|
|
543
|
-
account_number: string;
|
|
544
|
-
|
|
545
|
-
/**
|
|
546
|
-
* ABA routing number (9 digits).
|
|
547
|
-
*/
|
|
548
|
-
routing_number: string;
|
|
549
|
-
|
|
550
|
-
/**
|
|
551
|
-
* Discriminator for ABA wire financial address.
|
|
552
|
-
*/
|
|
553
|
-
type: 'aba';
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
export interface UnionMember3 {
|
|
557
|
-
/**
|
|
558
|
-
* Wallet address on the specified blockchain.
|
|
559
|
-
*/
|
|
560
|
-
address: string;
|
|
561
|
-
|
|
562
|
-
/**
|
|
563
|
-
* Blockchain network for the crypto wallet.
|
|
564
|
-
*/
|
|
565
|
-
blockchain:
|
|
566
|
-
| 'bitcoin'
|
|
567
|
-
| 'ethereum'
|
|
568
|
-
| 'solana'
|
|
569
|
-
| 'polygon'
|
|
570
|
-
| 'bitcoin_testnet4'
|
|
571
|
-
| 'ethereum_sepolia'
|
|
572
|
-
| 'solana_devnet'
|
|
573
|
-
| 'polygon_amoy';
|
|
574
|
-
|
|
575
|
-
/**
|
|
576
|
-
* Discriminator for crypto wallet financial address.
|
|
577
|
-
*/
|
|
578
|
-
type: 'crypto_wallet';
|
|
579
|
-
}
|
|
580
|
-
|
|
581
427
|
/**
|
|
582
428
|
* Failure details when status is failed, otherwise null.
|
|
583
429
|
*/
|
|
@@ -590,6 +436,7 @@ export namespace PayoutListResponse {
|
|
|
590
436
|
| 'account_blocked'
|
|
591
437
|
| 'insufficient_funds'
|
|
592
438
|
| 'invalid_account_format'
|
|
439
|
+
| 'invalid_routing_number'
|
|
593
440
|
| 'invalid_instruction'
|
|
594
441
|
| 'invalid_amount'
|
|
595
442
|
| 'invalid_time'
|
|
@@ -615,52 +462,71 @@ export namespace PayoutListResponse {
|
|
|
615
462
|
|
|
616
463
|
export interface PayoutCreateParams {
|
|
617
464
|
/**
|
|
618
|
-
*
|
|
465
|
+
* ID of the account to debit.
|
|
619
466
|
*/
|
|
620
|
-
|
|
467
|
+
account_id: string;
|
|
621
468
|
|
|
622
469
|
/**
|
|
623
|
-
*
|
|
470
|
+
* Amount as a string decimal (e.g. "100.50").
|
|
624
471
|
*/
|
|
625
|
-
|
|
472
|
+
amount: string;
|
|
626
473
|
|
|
627
474
|
/**
|
|
628
|
-
*
|
|
475
|
+
* Where and how to send the payout: a saved counterparty or an inline financial
|
|
476
|
+
* address. Currency and rail are bundled with the destination so only valid
|
|
477
|
+
* combinations are accepted.
|
|
629
478
|
*/
|
|
630
479
|
destination:
|
|
631
|
-
| PayoutCreateParams.
|
|
632
|
-
| PayoutCreateParams.
|
|
633
|
-
| PayoutCreateParams.
|
|
634
|
-
| PayoutCreateParams.
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
*/
|
|
639
|
-
reference: string;
|
|
640
|
-
|
|
641
|
-
/**
|
|
642
|
-
* ID of the account to debit.
|
|
643
|
-
*/
|
|
644
|
-
source_account_id: string;
|
|
480
|
+
| PayoutCreateParams.SavedCounterpartyDestination
|
|
481
|
+
| PayoutCreateParams.IbanEurDestination
|
|
482
|
+
| PayoutCreateParams.IbanUsdDestination
|
|
483
|
+
| PayoutCreateParams.SortCodeDestination
|
|
484
|
+
| PayoutCreateParams.AbaDestination
|
|
485
|
+
| PayoutCreateParams.BicDestination
|
|
486
|
+
| PayoutCreateParams.CryptoWalletDestination;
|
|
645
487
|
|
|
646
488
|
/**
|
|
647
489
|
* Key-value pairs stored with the payout.
|
|
648
490
|
*/
|
|
649
|
-
metadata?: { [key: string]: string };
|
|
491
|
+
metadata?: { [key: string]: string } | null;
|
|
650
492
|
|
|
651
493
|
/**
|
|
652
|
-
*
|
|
494
|
+
* Unstructured remittance information attached to the transfer. This appears on
|
|
495
|
+
* the counterparty's bank statement. Not supported by blockchain rails.
|
|
653
496
|
*/
|
|
654
|
-
|
|
497
|
+
unstructured_remittance_information?: string | null;
|
|
655
498
|
}
|
|
656
499
|
|
|
657
500
|
export namespace PayoutCreateParams {
|
|
658
|
-
export interface
|
|
501
|
+
export interface SavedCounterpartyDestination {
|
|
502
|
+
/**
|
|
503
|
+
* ID of the saved counterparty to pay.
|
|
504
|
+
*/
|
|
505
|
+
counterparty_id: string;
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* Discriminator for paying a saved counterparty.
|
|
509
|
+
*/
|
|
510
|
+
type: 'counterparty';
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Settlement rail the counterparty is reachable on. Selected automatically when
|
|
514
|
+
* omitted.
|
|
515
|
+
*/
|
|
516
|
+
rail?: 'sepa' | 'sepa_instant' | 'faster_payments' | 'ach' | 'fedwire' | 'swift';
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
export interface IbanEurDestination {
|
|
659
520
|
/**
|
|
660
521
|
* Name of the account holder.
|
|
661
522
|
*/
|
|
662
523
|
account_holder_name: string;
|
|
663
524
|
|
|
525
|
+
/**
|
|
526
|
+
* Currency of the payout. Settles in EUR.
|
|
527
|
+
*/
|
|
528
|
+
currency: 'EUR';
|
|
529
|
+
|
|
664
530
|
/**
|
|
665
531
|
* International Bank Account Number.
|
|
666
532
|
*/
|
|
@@ -672,12 +538,638 @@ export namespace PayoutCreateParams {
|
|
|
672
538
|
type: 'iban';
|
|
673
539
|
|
|
674
540
|
/**
|
|
675
|
-
* Bank Identifier Code.
|
|
541
|
+
* Bank Identifier Code. Optional; omit or send null if not provided.
|
|
676
542
|
*/
|
|
677
|
-
bic?: string;
|
|
543
|
+
bic?: string | null;
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Physical address of the counterparty. Only used when creating a new counterparty
|
|
547
|
+
* inline.
|
|
548
|
+
*/
|
|
549
|
+
physical_address?: IbanEurDestination.PhysicalAddress | null;
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* When omitted, Augustus sends via SEPA Instant where available and falls back to
|
|
553
|
+
* SEPA Credit Transfer.
|
|
554
|
+
*/
|
|
555
|
+
rail?: 'sepa' | 'sepa_instant';
|
|
678
556
|
}
|
|
679
557
|
|
|
680
|
-
export
|
|
558
|
+
export namespace IbanEurDestination {
|
|
559
|
+
/**
|
|
560
|
+
* Physical address of the counterparty. Only used when creating a new counterparty
|
|
561
|
+
* inline.
|
|
562
|
+
*/
|
|
563
|
+
export interface PhysicalAddress {
|
|
564
|
+
/**
|
|
565
|
+
* City or locality.
|
|
566
|
+
*/
|
|
567
|
+
city: string;
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* ISO 3166-1 alpha-2 country code.
|
|
571
|
+
*/
|
|
572
|
+
country_code:
|
|
573
|
+
| 'AF'
|
|
574
|
+
| 'AL'
|
|
575
|
+
| 'DZ'
|
|
576
|
+
| 'AS'
|
|
577
|
+
| 'AD'
|
|
578
|
+
| 'AO'
|
|
579
|
+
| 'AI'
|
|
580
|
+
| 'AQ'
|
|
581
|
+
| 'AG'
|
|
582
|
+
| 'AR'
|
|
583
|
+
| 'AM'
|
|
584
|
+
| 'AW'
|
|
585
|
+
| 'AU'
|
|
586
|
+
| 'AT'
|
|
587
|
+
| 'AZ'
|
|
588
|
+
| 'BS'
|
|
589
|
+
| 'BH'
|
|
590
|
+
| 'BD'
|
|
591
|
+
| 'BB'
|
|
592
|
+
| 'BY'
|
|
593
|
+
| 'BE'
|
|
594
|
+
| 'BZ'
|
|
595
|
+
| 'BJ'
|
|
596
|
+
| 'BM'
|
|
597
|
+
| 'BT'
|
|
598
|
+
| 'BO'
|
|
599
|
+
| 'BA'
|
|
600
|
+
| 'BW'
|
|
601
|
+
| 'BV'
|
|
602
|
+
| 'BR'
|
|
603
|
+
| 'IO'
|
|
604
|
+
| 'BN'
|
|
605
|
+
| 'BG'
|
|
606
|
+
| 'BF'
|
|
607
|
+
| 'BI'
|
|
608
|
+
| 'KH'
|
|
609
|
+
| 'CM'
|
|
610
|
+
| 'CA'
|
|
611
|
+
| 'CV'
|
|
612
|
+
| 'KY'
|
|
613
|
+
| 'CF'
|
|
614
|
+
| 'TD'
|
|
615
|
+
| 'CL'
|
|
616
|
+
| 'CN'
|
|
617
|
+
| 'CX'
|
|
618
|
+
| 'CC'
|
|
619
|
+
| 'CO'
|
|
620
|
+
| 'KM'
|
|
621
|
+
| 'CG'
|
|
622
|
+
| 'CD'
|
|
623
|
+
| 'CK'
|
|
624
|
+
| 'CR'
|
|
625
|
+
| 'CI'
|
|
626
|
+
| 'HR'
|
|
627
|
+
| 'CU'
|
|
628
|
+
| 'CY'
|
|
629
|
+
| 'CZ'
|
|
630
|
+
| 'DK'
|
|
631
|
+
| 'DJ'
|
|
632
|
+
| 'DM'
|
|
633
|
+
| 'DO'
|
|
634
|
+
| 'EC'
|
|
635
|
+
| 'EG'
|
|
636
|
+
| 'SV'
|
|
637
|
+
| 'GQ'
|
|
638
|
+
| 'ER'
|
|
639
|
+
| 'EE'
|
|
640
|
+
| 'ET'
|
|
641
|
+
| 'FK'
|
|
642
|
+
| 'FO'
|
|
643
|
+
| 'FJ'
|
|
644
|
+
| 'FI'
|
|
645
|
+
| 'FR'
|
|
646
|
+
| 'GF'
|
|
647
|
+
| 'PF'
|
|
648
|
+
| 'TF'
|
|
649
|
+
| 'GA'
|
|
650
|
+
| 'GM'
|
|
651
|
+
| 'GE'
|
|
652
|
+
| 'DE'
|
|
653
|
+
| 'GH'
|
|
654
|
+
| 'GI'
|
|
655
|
+
| 'GR'
|
|
656
|
+
| 'GL'
|
|
657
|
+
| 'GD'
|
|
658
|
+
| 'GP'
|
|
659
|
+
| 'GU'
|
|
660
|
+
| 'GT'
|
|
661
|
+
| 'GN'
|
|
662
|
+
| 'GW'
|
|
663
|
+
| 'GY'
|
|
664
|
+
| 'HT'
|
|
665
|
+
| 'HM'
|
|
666
|
+
| 'VA'
|
|
667
|
+
| 'HN'
|
|
668
|
+
| 'HK'
|
|
669
|
+
| 'HU'
|
|
670
|
+
| 'IS'
|
|
671
|
+
| 'IN'
|
|
672
|
+
| 'ID'
|
|
673
|
+
| 'IR'
|
|
674
|
+
| 'IQ'
|
|
675
|
+
| 'IE'
|
|
676
|
+
| 'IL'
|
|
677
|
+
| 'IT'
|
|
678
|
+
| 'JM'
|
|
679
|
+
| 'JP'
|
|
680
|
+
| 'JO'
|
|
681
|
+
| 'KZ'
|
|
682
|
+
| 'KE'
|
|
683
|
+
| 'KI'
|
|
684
|
+
| 'KP'
|
|
685
|
+
| 'KR'
|
|
686
|
+
| 'KW'
|
|
687
|
+
| 'KG'
|
|
688
|
+
| 'LA'
|
|
689
|
+
| 'LV'
|
|
690
|
+
| 'LB'
|
|
691
|
+
| 'LS'
|
|
692
|
+
| 'LR'
|
|
693
|
+
| 'LY'
|
|
694
|
+
| 'LI'
|
|
695
|
+
| 'LT'
|
|
696
|
+
| 'LU'
|
|
697
|
+
| 'MO'
|
|
698
|
+
| 'MG'
|
|
699
|
+
| 'MW'
|
|
700
|
+
| 'MY'
|
|
701
|
+
| 'MV'
|
|
702
|
+
| 'ML'
|
|
703
|
+
| 'MT'
|
|
704
|
+
| 'MH'
|
|
705
|
+
| 'MQ'
|
|
706
|
+
| 'MR'
|
|
707
|
+
| 'MU'
|
|
708
|
+
| 'YT'
|
|
709
|
+
| 'MX'
|
|
710
|
+
| 'FM'
|
|
711
|
+
| 'MD'
|
|
712
|
+
| 'MC'
|
|
713
|
+
| 'MN'
|
|
714
|
+
| 'MS'
|
|
715
|
+
| 'MA'
|
|
716
|
+
| 'MZ'
|
|
717
|
+
| 'MM'
|
|
718
|
+
| 'NA'
|
|
719
|
+
| 'NR'
|
|
720
|
+
| 'NP'
|
|
721
|
+
| 'NL'
|
|
722
|
+
| 'NC'
|
|
723
|
+
| 'NZ'
|
|
724
|
+
| 'NI'
|
|
725
|
+
| 'NE'
|
|
726
|
+
| 'NG'
|
|
727
|
+
| 'NU'
|
|
728
|
+
| 'NF'
|
|
729
|
+
| 'MP'
|
|
730
|
+
| 'MK'
|
|
731
|
+
| 'NO'
|
|
732
|
+
| 'OM'
|
|
733
|
+
| 'PK'
|
|
734
|
+
| 'PW'
|
|
735
|
+
| 'PS'
|
|
736
|
+
| 'PA'
|
|
737
|
+
| 'PG'
|
|
738
|
+
| 'PY'
|
|
739
|
+
| 'PE'
|
|
740
|
+
| 'PH'
|
|
741
|
+
| 'PN'
|
|
742
|
+
| 'PL'
|
|
743
|
+
| 'PT'
|
|
744
|
+
| 'PR'
|
|
745
|
+
| 'QA'
|
|
746
|
+
| 'RE'
|
|
747
|
+
| 'RO'
|
|
748
|
+
| 'RU'
|
|
749
|
+
| 'RW'
|
|
750
|
+
| 'SH'
|
|
751
|
+
| 'KN'
|
|
752
|
+
| 'LC'
|
|
753
|
+
| 'PM'
|
|
754
|
+
| 'VC'
|
|
755
|
+
| 'WS'
|
|
756
|
+
| 'SM'
|
|
757
|
+
| 'ST'
|
|
758
|
+
| 'SA'
|
|
759
|
+
| 'SN'
|
|
760
|
+
| 'SC'
|
|
761
|
+
| 'SL'
|
|
762
|
+
| 'SG'
|
|
763
|
+
| 'SK'
|
|
764
|
+
| 'SI'
|
|
765
|
+
| 'SB'
|
|
766
|
+
| 'SO'
|
|
767
|
+
| 'ZA'
|
|
768
|
+
| 'GS'
|
|
769
|
+
| 'ES'
|
|
770
|
+
| 'LK'
|
|
771
|
+
| 'SD'
|
|
772
|
+
| 'SR'
|
|
773
|
+
| 'SJ'
|
|
774
|
+
| 'SZ'
|
|
775
|
+
| 'SE'
|
|
776
|
+
| 'CH'
|
|
777
|
+
| 'SY'
|
|
778
|
+
| 'TW'
|
|
779
|
+
| 'TJ'
|
|
780
|
+
| 'TZ'
|
|
781
|
+
| 'TH'
|
|
782
|
+
| 'TL'
|
|
783
|
+
| 'TG'
|
|
784
|
+
| 'TK'
|
|
785
|
+
| 'TO'
|
|
786
|
+
| 'TT'
|
|
787
|
+
| 'TN'
|
|
788
|
+
| 'TR'
|
|
789
|
+
| 'TM'
|
|
790
|
+
| 'TC'
|
|
791
|
+
| 'TV'
|
|
792
|
+
| 'UG'
|
|
793
|
+
| 'UA'
|
|
794
|
+
| 'AE'
|
|
795
|
+
| 'GB'
|
|
796
|
+
| 'US'
|
|
797
|
+
| 'UM'
|
|
798
|
+
| 'UY'
|
|
799
|
+
| 'UZ'
|
|
800
|
+
| 'VU'
|
|
801
|
+
| 'VE'
|
|
802
|
+
| 'VN'
|
|
803
|
+
| 'VG'
|
|
804
|
+
| 'VI'
|
|
805
|
+
| 'WF'
|
|
806
|
+
| 'EH'
|
|
807
|
+
| 'YE'
|
|
808
|
+
| 'ZM'
|
|
809
|
+
| 'ZW'
|
|
810
|
+
| 'AX'
|
|
811
|
+
| 'BQ'
|
|
812
|
+
| 'CW'
|
|
813
|
+
| 'GG'
|
|
814
|
+
| 'IM'
|
|
815
|
+
| 'JE'
|
|
816
|
+
| 'ME'
|
|
817
|
+
| 'BL'
|
|
818
|
+
| 'MF'
|
|
819
|
+
| 'RS'
|
|
820
|
+
| 'SX'
|
|
821
|
+
| 'SS'
|
|
822
|
+
| 'XK';
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* Primary street address.
|
|
826
|
+
*/
|
|
827
|
+
line_1: string;
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* Postal or ZIP code.
|
|
831
|
+
*/
|
|
832
|
+
postal_code: string;
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* Secondary street address, or null if not recorded.
|
|
836
|
+
*/
|
|
837
|
+
line_2?: string | null;
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* State, province, or region, or null if not recorded.
|
|
841
|
+
*/
|
|
842
|
+
state?: string | null;
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
export interface IbanUsdDestination {
|
|
847
|
+
/**
|
|
848
|
+
* Name of the account holder.
|
|
849
|
+
*/
|
|
850
|
+
account_holder_name: string;
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* Currency of the payout. Settles in USD over SWIFT.
|
|
854
|
+
*/
|
|
855
|
+
currency: 'USD';
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
* International Bank Account Number.
|
|
859
|
+
*/
|
|
860
|
+
iban: string;
|
|
861
|
+
|
|
862
|
+
/**
|
|
863
|
+
* Discriminator for IBAN financial address.
|
|
864
|
+
*/
|
|
865
|
+
type: 'iban';
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* Bank Identifier Code. Optional; omit or send null if not provided.
|
|
869
|
+
*/
|
|
870
|
+
bic?: string | null;
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* Physical address of the counterparty. Only used when creating a new counterparty
|
|
874
|
+
* inline.
|
|
875
|
+
*/
|
|
876
|
+
physical_address?: IbanUsdDestination.PhysicalAddress | null;
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* Settles over SWIFT. Defaults to `swift` when omitted.
|
|
880
|
+
*/
|
|
881
|
+
rail?: 'swift';
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
export namespace IbanUsdDestination {
|
|
885
|
+
/**
|
|
886
|
+
* Physical address of the counterparty. Only used when creating a new counterparty
|
|
887
|
+
* inline.
|
|
888
|
+
*/
|
|
889
|
+
export interface PhysicalAddress {
|
|
890
|
+
/**
|
|
891
|
+
* City or locality.
|
|
892
|
+
*/
|
|
893
|
+
city: string;
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* ISO 3166-1 alpha-2 country code.
|
|
897
|
+
*/
|
|
898
|
+
country_code:
|
|
899
|
+
| 'AF'
|
|
900
|
+
| 'AL'
|
|
901
|
+
| 'DZ'
|
|
902
|
+
| 'AS'
|
|
903
|
+
| 'AD'
|
|
904
|
+
| 'AO'
|
|
905
|
+
| 'AI'
|
|
906
|
+
| 'AQ'
|
|
907
|
+
| 'AG'
|
|
908
|
+
| 'AR'
|
|
909
|
+
| 'AM'
|
|
910
|
+
| 'AW'
|
|
911
|
+
| 'AU'
|
|
912
|
+
| 'AT'
|
|
913
|
+
| 'AZ'
|
|
914
|
+
| 'BS'
|
|
915
|
+
| 'BH'
|
|
916
|
+
| 'BD'
|
|
917
|
+
| 'BB'
|
|
918
|
+
| 'BY'
|
|
919
|
+
| 'BE'
|
|
920
|
+
| 'BZ'
|
|
921
|
+
| 'BJ'
|
|
922
|
+
| 'BM'
|
|
923
|
+
| 'BT'
|
|
924
|
+
| 'BO'
|
|
925
|
+
| 'BA'
|
|
926
|
+
| 'BW'
|
|
927
|
+
| 'BV'
|
|
928
|
+
| 'BR'
|
|
929
|
+
| 'IO'
|
|
930
|
+
| 'BN'
|
|
931
|
+
| 'BG'
|
|
932
|
+
| 'BF'
|
|
933
|
+
| 'BI'
|
|
934
|
+
| 'KH'
|
|
935
|
+
| 'CM'
|
|
936
|
+
| 'CA'
|
|
937
|
+
| 'CV'
|
|
938
|
+
| 'KY'
|
|
939
|
+
| 'CF'
|
|
940
|
+
| 'TD'
|
|
941
|
+
| 'CL'
|
|
942
|
+
| 'CN'
|
|
943
|
+
| 'CX'
|
|
944
|
+
| 'CC'
|
|
945
|
+
| 'CO'
|
|
946
|
+
| 'KM'
|
|
947
|
+
| 'CG'
|
|
948
|
+
| 'CD'
|
|
949
|
+
| 'CK'
|
|
950
|
+
| 'CR'
|
|
951
|
+
| 'CI'
|
|
952
|
+
| 'HR'
|
|
953
|
+
| 'CU'
|
|
954
|
+
| 'CY'
|
|
955
|
+
| 'CZ'
|
|
956
|
+
| 'DK'
|
|
957
|
+
| 'DJ'
|
|
958
|
+
| 'DM'
|
|
959
|
+
| 'DO'
|
|
960
|
+
| 'EC'
|
|
961
|
+
| 'EG'
|
|
962
|
+
| 'SV'
|
|
963
|
+
| 'GQ'
|
|
964
|
+
| 'ER'
|
|
965
|
+
| 'EE'
|
|
966
|
+
| 'ET'
|
|
967
|
+
| 'FK'
|
|
968
|
+
| 'FO'
|
|
969
|
+
| 'FJ'
|
|
970
|
+
| 'FI'
|
|
971
|
+
| 'FR'
|
|
972
|
+
| 'GF'
|
|
973
|
+
| 'PF'
|
|
974
|
+
| 'TF'
|
|
975
|
+
| 'GA'
|
|
976
|
+
| 'GM'
|
|
977
|
+
| 'GE'
|
|
978
|
+
| 'DE'
|
|
979
|
+
| 'GH'
|
|
980
|
+
| 'GI'
|
|
981
|
+
| 'GR'
|
|
982
|
+
| 'GL'
|
|
983
|
+
| 'GD'
|
|
984
|
+
| 'GP'
|
|
985
|
+
| 'GU'
|
|
986
|
+
| 'GT'
|
|
987
|
+
| 'GN'
|
|
988
|
+
| 'GW'
|
|
989
|
+
| 'GY'
|
|
990
|
+
| 'HT'
|
|
991
|
+
| 'HM'
|
|
992
|
+
| 'VA'
|
|
993
|
+
| 'HN'
|
|
994
|
+
| 'HK'
|
|
995
|
+
| 'HU'
|
|
996
|
+
| 'IS'
|
|
997
|
+
| 'IN'
|
|
998
|
+
| 'ID'
|
|
999
|
+
| 'IR'
|
|
1000
|
+
| 'IQ'
|
|
1001
|
+
| 'IE'
|
|
1002
|
+
| 'IL'
|
|
1003
|
+
| 'IT'
|
|
1004
|
+
| 'JM'
|
|
1005
|
+
| 'JP'
|
|
1006
|
+
| 'JO'
|
|
1007
|
+
| 'KZ'
|
|
1008
|
+
| 'KE'
|
|
1009
|
+
| 'KI'
|
|
1010
|
+
| 'KP'
|
|
1011
|
+
| 'KR'
|
|
1012
|
+
| 'KW'
|
|
1013
|
+
| 'KG'
|
|
1014
|
+
| 'LA'
|
|
1015
|
+
| 'LV'
|
|
1016
|
+
| 'LB'
|
|
1017
|
+
| 'LS'
|
|
1018
|
+
| 'LR'
|
|
1019
|
+
| 'LY'
|
|
1020
|
+
| 'LI'
|
|
1021
|
+
| 'LT'
|
|
1022
|
+
| 'LU'
|
|
1023
|
+
| 'MO'
|
|
1024
|
+
| 'MG'
|
|
1025
|
+
| 'MW'
|
|
1026
|
+
| 'MY'
|
|
1027
|
+
| 'MV'
|
|
1028
|
+
| 'ML'
|
|
1029
|
+
| 'MT'
|
|
1030
|
+
| 'MH'
|
|
1031
|
+
| 'MQ'
|
|
1032
|
+
| 'MR'
|
|
1033
|
+
| 'MU'
|
|
1034
|
+
| 'YT'
|
|
1035
|
+
| 'MX'
|
|
1036
|
+
| 'FM'
|
|
1037
|
+
| 'MD'
|
|
1038
|
+
| 'MC'
|
|
1039
|
+
| 'MN'
|
|
1040
|
+
| 'MS'
|
|
1041
|
+
| 'MA'
|
|
1042
|
+
| 'MZ'
|
|
1043
|
+
| 'MM'
|
|
1044
|
+
| 'NA'
|
|
1045
|
+
| 'NR'
|
|
1046
|
+
| 'NP'
|
|
1047
|
+
| 'NL'
|
|
1048
|
+
| 'NC'
|
|
1049
|
+
| 'NZ'
|
|
1050
|
+
| 'NI'
|
|
1051
|
+
| 'NE'
|
|
1052
|
+
| 'NG'
|
|
1053
|
+
| 'NU'
|
|
1054
|
+
| 'NF'
|
|
1055
|
+
| 'MP'
|
|
1056
|
+
| 'MK'
|
|
1057
|
+
| 'NO'
|
|
1058
|
+
| 'OM'
|
|
1059
|
+
| 'PK'
|
|
1060
|
+
| 'PW'
|
|
1061
|
+
| 'PS'
|
|
1062
|
+
| 'PA'
|
|
1063
|
+
| 'PG'
|
|
1064
|
+
| 'PY'
|
|
1065
|
+
| 'PE'
|
|
1066
|
+
| 'PH'
|
|
1067
|
+
| 'PN'
|
|
1068
|
+
| 'PL'
|
|
1069
|
+
| 'PT'
|
|
1070
|
+
| 'PR'
|
|
1071
|
+
| 'QA'
|
|
1072
|
+
| 'RE'
|
|
1073
|
+
| 'RO'
|
|
1074
|
+
| 'RU'
|
|
1075
|
+
| 'RW'
|
|
1076
|
+
| 'SH'
|
|
1077
|
+
| 'KN'
|
|
1078
|
+
| 'LC'
|
|
1079
|
+
| 'PM'
|
|
1080
|
+
| 'VC'
|
|
1081
|
+
| 'WS'
|
|
1082
|
+
| 'SM'
|
|
1083
|
+
| 'ST'
|
|
1084
|
+
| 'SA'
|
|
1085
|
+
| 'SN'
|
|
1086
|
+
| 'SC'
|
|
1087
|
+
| 'SL'
|
|
1088
|
+
| 'SG'
|
|
1089
|
+
| 'SK'
|
|
1090
|
+
| 'SI'
|
|
1091
|
+
| 'SB'
|
|
1092
|
+
| 'SO'
|
|
1093
|
+
| 'ZA'
|
|
1094
|
+
| 'GS'
|
|
1095
|
+
| 'ES'
|
|
1096
|
+
| 'LK'
|
|
1097
|
+
| 'SD'
|
|
1098
|
+
| 'SR'
|
|
1099
|
+
| 'SJ'
|
|
1100
|
+
| 'SZ'
|
|
1101
|
+
| 'SE'
|
|
1102
|
+
| 'CH'
|
|
1103
|
+
| 'SY'
|
|
1104
|
+
| 'TW'
|
|
1105
|
+
| 'TJ'
|
|
1106
|
+
| 'TZ'
|
|
1107
|
+
| 'TH'
|
|
1108
|
+
| 'TL'
|
|
1109
|
+
| 'TG'
|
|
1110
|
+
| 'TK'
|
|
1111
|
+
| 'TO'
|
|
1112
|
+
| 'TT'
|
|
1113
|
+
| 'TN'
|
|
1114
|
+
| 'TR'
|
|
1115
|
+
| 'TM'
|
|
1116
|
+
| 'TC'
|
|
1117
|
+
| 'TV'
|
|
1118
|
+
| 'UG'
|
|
1119
|
+
| 'UA'
|
|
1120
|
+
| 'AE'
|
|
1121
|
+
| 'GB'
|
|
1122
|
+
| 'US'
|
|
1123
|
+
| 'UM'
|
|
1124
|
+
| 'UY'
|
|
1125
|
+
| 'UZ'
|
|
1126
|
+
| 'VU'
|
|
1127
|
+
| 'VE'
|
|
1128
|
+
| 'VN'
|
|
1129
|
+
| 'VG'
|
|
1130
|
+
| 'VI'
|
|
1131
|
+
| 'WF'
|
|
1132
|
+
| 'EH'
|
|
1133
|
+
| 'YE'
|
|
1134
|
+
| 'ZM'
|
|
1135
|
+
| 'ZW'
|
|
1136
|
+
| 'AX'
|
|
1137
|
+
| 'BQ'
|
|
1138
|
+
| 'CW'
|
|
1139
|
+
| 'GG'
|
|
1140
|
+
| 'IM'
|
|
1141
|
+
| 'JE'
|
|
1142
|
+
| 'ME'
|
|
1143
|
+
| 'BL'
|
|
1144
|
+
| 'MF'
|
|
1145
|
+
| 'RS'
|
|
1146
|
+
| 'SX'
|
|
1147
|
+
| 'SS'
|
|
1148
|
+
| 'XK';
|
|
1149
|
+
|
|
1150
|
+
/**
|
|
1151
|
+
* Primary street address.
|
|
1152
|
+
*/
|
|
1153
|
+
line_1: string;
|
|
1154
|
+
|
|
1155
|
+
/**
|
|
1156
|
+
* Postal or ZIP code.
|
|
1157
|
+
*/
|
|
1158
|
+
postal_code: string;
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* Secondary street address, or null if not recorded.
|
|
1162
|
+
*/
|
|
1163
|
+
line_2?: string | null;
|
|
1164
|
+
|
|
1165
|
+
/**
|
|
1166
|
+
* State, province, or region, or null if not recorded.
|
|
1167
|
+
*/
|
|
1168
|
+
state?: string | null;
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
export interface SortCodeDestination {
|
|
681
1173
|
/**
|
|
682
1174
|
* Name of the account holder.
|
|
683
1175
|
*/
|
|
@@ -688,6 +1180,11 @@ export namespace PayoutCreateParams {
|
|
|
688
1180
|
*/
|
|
689
1181
|
account_number: string;
|
|
690
1182
|
|
|
1183
|
+
/**
|
|
1184
|
+
* Currency of the payout. Sort code destinations settle in GBP.
|
|
1185
|
+
*/
|
|
1186
|
+
currency: 'GBP';
|
|
1187
|
+
|
|
691
1188
|
/**
|
|
692
1189
|
* UK sort code (6 digits).
|
|
693
1190
|
*/
|
|
@@ -697,9 +1194,308 @@ export namespace PayoutCreateParams {
|
|
|
697
1194
|
* Discriminator for UK sort code financial address.
|
|
698
1195
|
*/
|
|
699
1196
|
type: 'sort_code';
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* Physical address of the counterparty. Only used when creating a new counterparty
|
|
1200
|
+
* inline.
|
|
1201
|
+
*/
|
|
1202
|
+
physical_address?: SortCodeDestination.PhysicalAddress | null;
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* Selected automatically for this destination when omitted.
|
|
1206
|
+
*/
|
|
1207
|
+
rail?: 'faster_payments';
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
export namespace SortCodeDestination {
|
|
1211
|
+
/**
|
|
1212
|
+
* Physical address of the counterparty. Only used when creating a new counterparty
|
|
1213
|
+
* inline.
|
|
1214
|
+
*/
|
|
1215
|
+
export interface PhysicalAddress {
|
|
1216
|
+
/**
|
|
1217
|
+
* City or locality.
|
|
1218
|
+
*/
|
|
1219
|
+
city: string;
|
|
1220
|
+
|
|
1221
|
+
/**
|
|
1222
|
+
* ISO 3166-1 alpha-2 country code.
|
|
1223
|
+
*/
|
|
1224
|
+
country_code:
|
|
1225
|
+
| 'AF'
|
|
1226
|
+
| 'AL'
|
|
1227
|
+
| 'DZ'
|
|
1228
|
+
| 'AS'
|
|
1229
|
+
| 'AD'
|
|
1230
|
+
| 'AO'
|
|
1231
|
+
| 'AI'
|
|
1232
|
+
| 'AQ'
|
|
1233
|
+
| 'AG'
|
|
1234
|
+
| 'AR'
|
|
1235
|
+
| 'AM'
|
|
1236
|
+
| 'AW'
|
|
1237
|
+
| 'AU'
|
|
1238
|
+
| 'AT'
|
|
1239
|
+
| 'AZ'
|
|
1240
|
+
| 'BS'
|
|
1241
|
+
| 'BH'
|
|
1242
|
+
| 'BD'
|
|
1243
|
+
| 'BB'
|
|
1244
|
+
| 'BY'
|
|
1245
|
+
| 'BE'
|
|
1246
|
+
| 'BZ'
|
|
1247
|
+
| 'BJ'
|
|
1248
|
+
| 'BM'
|
|
1249
|
+
| 'BT'
|
|
1250
|
+
| 'BO'
|
|
1251
|
+
| 'BA'
|
|
1252
|
+
| 'BW'
|
|
1253
|
+
| 'BV'
|
|
1254
|
+
| 'BR'
|
|
1255
|
+
| 'IO'
|
|
1256
|
+
| 'BN'
|
|
1257
|
+
| 'BG'
|
|
1258
|
+
| 'BF'
|
|
1259
|
+
| 'BI'
|
|
1260
|
+
| 'KH'
|
|
1261
|
+
| 'CM'
|
|
1262
|
+
| 'CA'
|
|
1263
|
+
| 'CV'
|
|
1264
|
+
| 'KY'
|
|
1265
|
+
| 'CF'
|
|
1266
|
+
| 'TD'
|
|
1267
|
+
| 'CL'
|
|
1268
|
+
| 'CN'
|
|
1269
|
+
| 'CX'
|
|
1270
|
+
| 'CC'
|
|
1271
|
+
| 'CO'
|
|
1272
|
+
| 'KM'
|
|
1273
|
+
| 'CG'
|
|
1274
|
+
| 'CD'
|
|
1275
|
+
| 'CK'
|
|
1276
|
+
| 'CR'
|
|
1277
|
+
| 'CI'
|
|
1278
|
+
| 'HR'
|
|
1279
|
+
| 'CU'
|
|
1280
|
+
| 'CY'
|
|
1281
|
+
| 'CZ'
|
|
1282
|
+
| 'DK'
|
|
1283
|
+
| 'DJ'
|
|
1284
|
+
| 'DM'
|
|
1285
|
+
| 'DO'
|
|
1286
|
+
| 'EC'
|
|
1287
|
+
| 'EG'
|
|
1288
|
+
| 'SV'
|
|
1289
|
+
| 'GQ'
|
|
1290
|
+
| 'ER'
|
|
1291
|
+
| 'EE'
|
|
1292
|
+
| 'ET'
|
|
1293
|
+
| 'FK'
|
|
1294
|
+
| 'FO'
|
|
1295
|
+
| 'FJ'
|
|
1296
|
+
| 'FI'
|
|
1297
|
+
| 'FR'
|
|
1298
|
+
| 'GF'
|
|
1299
|
+
| 'PF'
|
|
1300
|
+
| 'TF'
|
|
1301
|
+
| 'GA'
|
|
1302
|
+
| 'GM'
|
|
1303
|
+
| 'GE'
|
|
1304
|
+
| 'DE'
|
|
1305
|
+
| 'GH'
|
|
1306
|
+
| 'GI'
|
|
1307
|
+
| 'GR'
|
|
1308
|
+
| 'GL'
|
|
1309
|
+
| 'GD'
|
|
1310
|
+
| 'GP'
|
|
1311
|
+
| 'GU'
|
|
1312
|
+
| 'GT'
|
|
1313
|
+
| 'GN'
|
|
1314
|
+
| 'GW'
|
|
1315
|
+
| 'GY'
|
|
1316
|
+
| 'HT'
|
|
1317
|
+
| 'HM'
|
|
1318
|
+
| 'VA'
|
|
1319
|
+
| 'HN'
|
|
1320
|
+
| 'HK'
|
|
1321
|
+
| 'HU'
|
|
1322
|
+
| 'IS'
|
|
1323
|
+
| 'IN'
|
|
1324
|
+
| 'ID'
|
|
1325
|
+
| 'IR'
|
|
1326
|
+
| 'IQ'
|
|
1327
|
+
| 'IE'
|
|
1328
|
+
| 'IL'
|
|
1329
|
+
| 'IT'
|
|
1330
|
+
| 'JM'
|
|
1331
|
+
| 'JP'
|
|
1332
|
+
| 'JO'
|
|
1333
|
+
| 'KZ'
|
|
1334
|
+
| 'KE'
|
|
1335
|
+
| 'KI'
|
|
1336
|
+
| 'KP'
|
|
1337
|
+
| 'KR'
|
|
1338
|
+
| 'KW'
|
|
1339
|
+
| 'KG'
|
|
1340
|
+
| 'LA'
|
|
1341
|
+
| 'LV'
|
|
1342
|
+
| 'LB'
|
|
1343
|
+
| 'LS'
|
|
1344
|
+
| 'LR'
|
|
1345
|
+
| 'LY'
|
|
1346
|
+
| 'LI'
|
|
1347
|
+
| 'LT'
|
|
1348
|
+
| 'LU'
|
|
1349
|
+
| 'MO'
|
|
1350
|
+
| 'MG'
|
|
1351
|
+
| 'MW'
|
|
1352
|
+
| 'MY'
|
|
1353
|
+
| 'MV'
|
|
1354
|
+
| 'ML'
|
|
1355
|
+
| 'MT'
|
|
1356
|
+
| 'MH'
|
|
1357
|
+
| 'MQ'
|
|
1358
|
+
| 'MR'
|
|
1359
|
+
| 'MU'
|
|
1360
|
+
| 'YT'
|
|
1361
|
+
| 'MX'
|
|
1362
|
+
| 'FM'
|
|
1363
|
+
| 'MD'
|
|
1364
|
+
| 'MC'
|
|
1365
|
+
| 'MN'
|
|
1366
|
+
| 'MS'
|
|
1367
|
+
| 'MA'
|
|
1368
|
+
| 'MZ'
|
|
1369
|
+
| 'MM'
|
|
1370
|
+
| 'NA'
|
|
1371
|
+
| 'NR'
|
|
1372
|
+
| 'NP'
|
|
1373
|
+
| 'NL'
|
|
1374
|
+
| 'NC'
|
|
1375
|
+
| 'NZ'
|
|
1376
|
+
| 'NI'
|
|
1377
|
+
| 'NE'
|
|
1378
|
+
| 'NG'
|
|
1379
|
+
| 'NU'
|
|
1380
|
+
| 'NF'
|
|
1381
|
+
| 'MP'
|
|
1382
|
+
| 'MK'
|
|
1383
|
+
| 'NO'
|
|
1384
|
+
| 'OM'
|
|
1385
|
+
| 'PK'
|
|
1386
|
+
| 'PW'
|
|
1387
|
+
| 'PS'
|
|
1388
|
+
| 'PA'
|
|
1389
|
+
| 'PG'
|
|
1390
|
+
| 'PY'
|
|
1391
|
+
| 'PE'
|
|
1392
|
+
| 'PH'
|
|
1393
|
+
| 'PN'
|
|
1394
|
+
| 'PL'
|
|
1395
|
+
| 'PT'
|
|
1396
|
+
| 'PR'
|
|
1397
|
+
| 'QA'
|
|
1398
|
+
| 'RE'
|
|
1399
|
+
| 'RO'
|
|
1400
|
+
| 'RU'
|
|
1401
|
+
| 'RW'
|
|
1402
|
+
| 'SH'
|
|
1403
|
+
| 'KN'
|
|
1404
|
+
| 'LC'
|
|
1405
|
+
| 'PM'
|
|
1406
|
+
| 'VC'
|
|
1407
|
+
| 'WS'
|
|
1408
|
+
| 'SM'
|
|
1409
|
+
| 'ST'
|
|
1410
|
+
| 'SA'
|
|
1411
|
+
| 'SN'
|
|
1412
|
+
| 'SC'
|
|
1413
|
+
| 'SL'
|
|
1414
|
+
| 'SG'
|
|
1415
|
+
| 'SK'
|
|
1416
|
+
| 'SI'
|
|
1417
|
+
| 'SB'
|
|
1418
|
+
| 'SO'
|
|
1419
|
+
| 'ZA'
|
|
1420
|
+
| 'GS'
|
|
1421
|
+
| 'ES'
|
|
1422
|
+
| 'LK'
|
|
1423
|
+
| 'SD'
|
|
1424
|
+
| 'SR'
|
|
1425
|
+
| 'SJ'
|
|
1426
|
+
| 'SZ'
|
|
1427
|
+
| 'SE'
|
|
1428
|
+
| 'CH'
|
|
1429
|
+
| 'SY'
|
|
1430
|
+
| 'TW'
|
|
1431
|
+
| 'TJ'
|
|
1432
|
+
| 'TZ'
|
|
1433
|
+
| 'TH'
|
|
1434
|
+
| 'TL'
|
|
1435
|
+
| 'TG'
|
|
1436
|
+
| 'TK'
|
|
1437
|
+
| 'TO'
|
|
1438
|
+
| 'TT'
|
|
1439
|
+
| 'TN'
|
|
1440
|
+
| 'TR'
|
|
1441
|
+
| 'TM'
|
|
1442
|
+
| 'TC'
|
|
1443
|
+
| 'TV'
|
|
1444
|
+
| 'UG'
|
|
1445
|
+
| 'UA'
|
|
1446
|
+
| 'AE'
|
|
1447
|
+
| 'GB'
|
|
1448
|
+
| 'US'
|
|
1449
|
+
| 'UM'
|
|
1450
|
+
| 'UY'
|
|
1451
|
+
| 'UZ'
|
|
1452
|
+
| 'VU'
|
|
1453
|
+
| 'VE'
|
|
1454
|
+
| 'VN'
|
|
1455
|
+
| 'VG'
|
|
1456
|
+
| 'VI'
|
|
1457
|
+
| 'WF'
|
|
1458
|
+
| 'EH'
|
|
1459
|
+
| 'YE'
|
|
1460
|
+
| 'ZM'
|
|
1461
|
+
| 'ZW'
|
|
1462
|
+
| 'AX'
|
|
1463
|
+
| 'BQ'
|
|
1464
|
+
| 'CW'
|
|
1465
|
+
| 'GG'
|
|
1466
|
+
| 'IM'
|
|
1467
|
+
| 'JE'
|
|
1468
|
+
| 'ME'
|
|
1469
|
+
| 'BL'
|
|
1470
|
+
| 'MF'
|
|
1471
|
+
| 'RS'
|
|
1472
|
+
| 'SX'
|
|
1473
|
+
| 'SS'
|
|
1474
|
+
| 'XK';
|
|
1475
|
+
|
|
1476
|
+
/**
|
|
1477
|
+
* Primary street address.
|
|
1478
|
+
*/
|
|
1479
|
+
line_1: string;
|
|
1480
|
+
|
|
1481
|
+
/**
|
|
1482
|
+
* Postal or ZIP code.
|
|
1483
|
+
*/
|
|
1484
|
+
postal_code: string;
|
|
1485
|
+
|
|
1486
|
+
/**
|
|
1487
|
+
* Secondary street address, or null if not recorded.
|
|
1488
|
+
*/
|
|
1489
|
+
line_2?: string | null;
|
|
1490
|
+
|
|
1491
|
+
/**
|
|
1492
|
+
* State, province, or region, or null if not recorded.
|
|
1493
|
+
*/
|
|
1494
|
+
state?: string | null;
|
|
1495
|
+
}
|
|
700
1496
|
}
|
|
701
1497
|
|
|
702
|
-
export interface
|
|
1498
|
+
export interface AbaDestination {
|
|
703
1499
|
/**
|
|
704
1500
|
* Name of the account holder.
|
|
705
1501
|
*/
|
|
@@ -710,6 +1506,16 @@ export namespace PayoutCreateParams {
|
|
|
710
1506
|
*/
|
|
711
1507
|
account_number: string;
|
|
712
1508
|
|
|
1509
|
+
/**
|
|
1510
|
+
* Currency of the payout. ABA destinations settle in USD.
|
|
1511
|
+
*/
|
|
1512
|
+
currency: 'USD';
|
|
1513
|
+
|
|
1514
|
+
/**
|
|
1515
|
+
* ABA accounts are reachable on more than one rail, so the rail must be specified.
|
|
1516
|
+
*/
|
|
1517
|
+
rail: 'ach' | 'fedwire';
|
|
1518
|
+
|
|
713
1519
|
/**
|
|
714
1520
|
* ABA routing number (9 digits).
|
|
715
1521
|
*/
|
|
@@ -719,31 +1525,947 @@ export namespace PayoutCreateParams {
|
|
|
719
1525
|
* Discriminator for ABA wire financial address.
|
|
720
1526
|
*/
|
|
721
1527
|
type: 'aba';
|
|
1528
|
+
|
|
1529
|
+
/**
|
|
1530
|
+
* Physical address of the counterparty. Only used when creating a new counterparty
|
|
1531
|
+
* inline.
|
|
1532
|
+
*/
|
|
1533
|
+
physical_address?: AbaDestination.PhysicalAddress | null;
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
export namespace AbaDestination {
|
|
1537
|
+
/**
|
|
1538
|
+
* Physical address of the counterparty. Only used when creating a new counterparty
|
|
1539
|
+
* inline.
|
|
1540
|
+
*/
|
|
1541
|
+
export interface PhysicalAddress {
|
|
1542
|
+
/**
|
|
1543
|
+
* City or locality.
|
|
1544
|
+
*/
|
|
1545
|
+
city: string;
|
|
1546
|
+
|
|
1547
|
+
/**
|
|
1548
|
+
* ISO 3166-1 alpha-2 country code.
|
|
1549
|
+
*/
|
|
1550
|
+
country_code:
|
|
1551
|
+
| 'AF'
|
|
1552
|
+
| 'AL'
|
|
1553
|
+
| 'DZ'
|
|
1554
|
+
| 'AS'
|
|
1555
|
+
| 'AD'
|
|
1556
|
+
| 'AO'
|
|
1557
|
+
| 'AI'
|
|
1558
|
+
| 'AQ'
|
|
1559
|
+
| 'AG'
|
|
1560
|
+
| 'AR'
|
|
1561
|
+
| 'AM'
|
|
1562
|
+
| 'AW'
|
|
1563
|
+
| 'AU'
|
|
1564
|
+
| 'AT'
|
|
1565
|
+
| 'AZ'
|
|
1566
|
+
| 'BS'
|
|
1567
|
+
| 'BH'
|
|
1568
|
+
| 'BD'
|
|
1569
|
+
| 'BB'
|
|
1570
|
+
| 'BY'
|
|
1571
|
+
| 'BE'
|
|
1572
|
+
| 'BZ'
|
|
1573
|
+
| 'BJ'
|
|
1574
|
+
| 'BM'
|
|
1575
|
+
| 'BT'
|
|
1576
|
+
| 'BO'
|
|
1577
|
+
| 'BA'
|
|
1578
|
+
| 'BW'
|
|
1579
|
+
| 'BV'
|
|
1580
|
+
| 'BR'
|
|
1581
|
+
| 'IO'
|
|
1582
|
+
| 'BN'
|
|
1583
|
+
| 'BG'
|
|
1584
|
+
| 'BF'
|
|
1585
|
+
| 'BI'
|
|
1586
|
+
| 'KH'
|
|
1587
|
+
| 'CM'
|
|
1588
|
+
| 'CA'
|
|
1589
|
+
| 'CV'
|
|
1590
|
+
| 'KY'
|
|
1591
|
+
| 'CF'
|
|
1592
|
+
| 'TD'
|
|
1593
|
+
| 'CL'
|
|
1594
|
+
| 'CN'
|
|
1595
|
+
| 'CX'
|
|
1596
|
+
| 'CC'
|
|
1597
|
+
| 'CO'
|
|
1598
|
+
| 'KM'
|
|
1599
|
+
| 'CG'
|
|
1600
|
+
| 'CD'
|
|
1601
|
+
| 'CK'
|
|
1602
|
+
| 'CR'
|
|
1603
|
+
| 'CI'
|
|
1604
|
+
| 'HR'
|
|
1605
|
+
| 'CU'
|
|
1606
|
+
| 'CY'
|
|
1607
|
+
| 'CZ'
|
|
1608
|
+
| 'DK'
|
|
1609
|
+
| 'DJ'
|
|
1610
|
+
| 'DM'
|
|
1611
|
+
| 'DO'
|
|
1612
|
+
| 'EC'
|
|
1613
|
+
| 'EG'
|
|
1614
|
+
| 'SV'
|
|
1615
|
+
| 'GQ'
|
|
1616
|
+
| 'ER'
|
|
1617
|
+
| 'EE'
|
|
1618
|
+
| 'ET'
|
|
1619
|
+
| 'FK'
|
|
1620
|
+
| 'FO'
|
|
1621
|
+
| 'FJ'
|
|
1622
|
+
| 'FI'
|
|
1623
|
+
| 'FR'
|
|
1624
|
+
| 'GF'
|
|
1625
|
+
| 'PF'
|
|
1626
|
+
| 'TF'
|
|
1627
|
+
| 'GA'
|
|
1628
|
+
| 'GM'
|
|
1629
|
+
| 'GE'
|
|
1630
|
+
| 'DE'
|
|
1631
|
+
| 'GH'
|
|
1632
|
+
| 'GI'
|
|
1633
|
+
| 'GR'
|
|
1634
|
+
| 'GL'
|
|
1635
|
+
| 'GD'
|
|
1636
|
+
| 'GP'
|
|
1637
|
+
| 'GU'
|
|
1638
|
+
| 'GT'
|
|
1639
|
+
| 'GN'
|
|
1640
|
+
| 'GW'
|
|
1641
|
+
| 'GY'
|
|
1642
|
+
| 'HT'
|
|
1643
|
+
| 'HM'
|
|
1644
|
+
| 'VA'
|
|
1645
|
+
| 'HN'
|
|
1646
|
+
| 'HK'
|
|
1647
|
+
| 'HU'
|
|
1648
|
+
| 'IS'
|
|
1649
|
+
| 'IN'
|
|
1650
|
+
| 'ID'
|
|
1651
|
+
| 'IR'
|
|
1652
|
+
| 'IQ'
|
|
1653
|
+
| 'IE'
|
|
1654
|
+
| 'IL'
|
|
1655
|
+
| 'IT'
|
|
1656
|
+
| 'JM'
|
|
1657
|
+
| 'JP'
|
|
1658
|
+
| 'JO'
|
|
1659
|
+
| 'KZ'
|
|
1660
|
+
| 'KE'
|
|
1661
|
+
| 'KI'
|
|
1662
|
+
| 'KP'
|
|
1663
|
+
| 'KR'
|
|
1664
|
+
| 'KW'
|
|
1665
|
+
| 'KG'
|
|
1666
|
+
| 'LA'
|
|
1667
|
+
| 'LV'
|
|
1668
|
+
| 'LB'
|
|
1669
|
+
| 'LS'
|
|
1670
|
+
| 'LR'
|
|
1671
|
+
| 'LY'
|
|
1672
|
+
| 'LI'
|
|
1673
|
+
| 'LT'
|
|
1674
|
+
| 'LU'
|
|
1675
|
+
| 'MO'
|
|
1676
|
+
| 'MG'
|
|
1677
|
+
| 'MW'
|
|
1678
|
+
| 'MY'
|
|
1679
|
+
| 'MV'
|
|
1680
|
+
| 'ML'
|
|
1681
|
+
| 'MT'
|
|
1682
|
+
| 'MH'
|
|
1683
|
+
| 'MQ'
|
|
1684
|
+
| 'MR'
|
|
1685
|
+
| 'MU'
|
|
1686
|
+
| 'YT'
|
|
1687
|
+
| 'MX'
|
|
1688
|
+
| 'FM'
|
|
1689
|
+
| 'MD'
|
|
1690
|
+
| 'MC'
|
|
1691
|
+
| 'MN'
|
|
1692
|
+
| 'MS'
|
|
1693
|
+
| 'MA'
|
|
1694
|
+
| 'MZ'
|
|
1695
|
+
| 'MM'
|
|
1696
|
+
| 'NA'
|
|
1697
|
+
| 'NR'
|
|
1698
|
+
| 'NP'
|
|
1699
|
+
| 'NL'
|
|
1700
|
+
| 'NC'
|
|
1701
|
+
| 'NZ'
|
|
1702
|
+
| 'NI'
|
|
1703
|
+
| 'NE'
|
|
1704
|
+
| 'NG'
|
|
1705
|
+
| 'NU'
|
|
1706
|
+
| 'NF'
|
|
1707
|
+
| 'MP'
|
|
1708
|
+
| 'MK'
|
|
1709
|
+
| 'NO'
|
|
1710
|
+
| 'OM'
|
|
1711
|
+
| 'PK'
|
|
1712
|
+
| 'PW'
|
|
1713
|
+
| 'PS'
|
|
1714
|
+
| 'PA'
|
|
1715
|
+
| 'PG'
|
|
1716
|
+
| 'PY'
|
|
1717
|
+
| 'PE'
|
|
1718
|
+
| 'PH'
|
|
1719
|
+
| 'PN'
|
|
1720
|
+
| 'PL'
|
|
1721
|
+
| 'PT'
|
|
1722
|
+
| 'PR'
|
|
1723
|
+
| 'QA'
|
|
1724
|
+
| 'RE'
|
|
1725
|
+
| 'RO'
|
|
1726
|
+
| 'RU'
|
|
1727
|
+
| 'RW'
|
|
1728
|
+
| 'SH'
|
|
1729
|
+
| 'KN'
|
|
1730
|
+
| 'LC'
|
|
1731
|
+
| 'PM'
|
|
1732
|
+
| 'VC'
|
|
1733
|
+
| 'WS'
|
|
1734
|
+
| 'SM'
|
|
1735
|
+
| 'ST'
|
|
1736
|
+
| 'SA'
|
|
1737
|
+
| 'SN'
|
|
1738
|
+
| 'SC'
|
|
1739
|
+
| 'SL'
|
|
1740
|
+
| 'SG'
|
|
1741
|
+
| 'SK'
|
|
1742
|
+
| 'SI'
|
|
1743
|
+
| 'SB'
|
|
1744
|
+
| 'SO'
|
|
1745
|
+
| 'ZA'
|
|
1746
|
+
| 'GS'
|
|
1747
|
+
| 'ES'
|
|
1748
|
+
| 'LK'
|
|
1749
|
+
| 'SD'
|
|
1750
|
+
| 'SR'
|
|
1751
|
+
| 'SJ'
|
|
1752
|
+
| 'SZ'
|
|
1753
|
+
| 'SE'
|
|
1754
|
+
| 'CH'
|
|
1755
|
+
| 'SY'
|
|
1756
|
+
| 'TW'
|
|
1757
|
+
| 'TJ'
|
|
1758
|
+
| 'TZ'
|
|
1759
|
+
| 'TH'
|
|
1760
|
+
| 'TL'
|
|
1761
|
+
| 'TG'
|
|
1762
|
+
| 'TK'
|
|
1763
|
+
| 'TO'
|
|
1764
|
+
| 'TT'
|
|
1765
|
+
| 'TN'
|
|
1766
|
+
| 'TR'
|
|
1767
|
+
| 'TM'
|
|
1768
|
+
| 'TC'
|
|
1769
|
+
| 'TV'
|
|
1770
|
+
| 'UG'
|
|
1771
|
+
| 'UA'
|
|
1772
|
+
| 'AE'
|
|
1773
|
+
| 'GB'
|
|
1774
|
+
| 'US'
|
|
1775
|
+
| 'UM'
|
|
1776
|
+
| 'UY'
|
|
1777
|
+
| 'UZ'
|
|
1778
|
+
| 'VU'
|
|
1779
|
+
| 'VE'
|
|
1780
|
+
| 'VN'
|
|
1781
|
+
| 'VG'
|
|
1782
|
+
| 'VI'
|
|
1783
|
+
| 'WF'
|
|
1784
|
+
| 'EH'
|
|
1785
|
+
| 'YE'
|
|
1786
|
+
| 'ZM'
|
|
1787
|
+
| 'ZW'
|
|
1788
|
+
| 'AX'
|
|
1789
|
+
| 'BQ'
|
|
1790
|
+
| 'CW'
|
|
1791
|
+
| 'GG'
|
|
1792
|
+
| 'IM'
|
|
1793
|
+
| 'JE'
|
|
1794
|
+
| 'ME'
|
|
1795
|
+
| 'BL'
|
|
1796
|
+
| 'MF'
|
|
1797
|
+
| 'RS'
|
|
1798
|
+
| 'SX'
|
|
1799
|
+
| 'SS'
|
|
1800
|
+
| 'XK';
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* Primary street address.
|
|
1804
|
+
*/
|
|
1805
|
+
line_1: string;
|
|
1806
|
+
|
|
1807
|
+
/**
|
|
1808
|
+
* Postal or ZIP code.
|
|
1809
|
+
*/
|
|
1810
|
+
postal_code: string;
|
|
1811
|
+
|
|
1812
|
+
/**
|
|
1813
|
+
* Secondary street address, or null if not recorded.
|
|
1814
|
+
*/
|
|
1815
|
+
line_2?: string | null;
|
|
1816
|
+
|
|
1817
|
+
/**
|
|
1818
|
+
* State, province, or region, or null if not recorded.
|
|
1819
|
+
*/
|
|
1820
|
+
state?: string | null;
|
|
1821
|
+
}
|
|
722
1822
|
}
|
|
723
1823
|
|
|
724
|
-
export interface
|
|
1824
|
+
export interface BicDestination {
|
|
1825
|
+
/**
|
|
1826
|
+
* Name of the account holder.
|
|
1827
|
+
*/
|
|
1828
|
+
account_holder_name: string;
|
|
1829
|
+
|
|
1830
|
+
/**
|
|
1831
|
+
* Local-format bank account number (1-34 alphanumeric characters).
|
|
1832
|
+
*/
|
|
1833
|
+
account_number: string;
|
|
1834
|
+
|
|
1835
|
+
/**
|
|
1836
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
1837
|
+
*/
|
|
1838
|
+
bic: string;
|
|
1839
|
+
|
|
1840
|
+
/**
|
|
1841
|
+
* Currency of the payout. Settles in USD over SWIFT.
|
|
1842
|
+
*/
|
|
1843
|
+
currency: 'USD';
|
|
1844
|
+
|
|
1845
|
+
/**
|
|
1846
|
+
* Physical address of the counterparty. Required for SWIFT destinations.
|
|
1847
|
+
*/
|
|
1848
|
+
physical_address: BicDestination.PhysicalAddress;
|
|
1849
|
+
|
|
1850
|
+
/**
|
|
1851
|
+
* Discriminator for BIC + local account financial address.
|
|
1852
|
+
*/
|
|
1853
|
+
type: 'bic';
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
1857
|
+
* the BSB in Australia). Optional; omit or send null where the country has none.
|
|
1858
|
+
*/
|
|
1859
|
+
local_bank_code?: string | null;
|
|
1860
|
+
|
|
1861
|
+
/**
|
|
1862
|
+
* Settles over SWIFT. Defaults to `swift` when omitted.
|
|
1863
|
+
*/
|
|
1864
|
+
rail?: 'swift';
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1867
|
+
export namespace BicDestination {
|
|
1868
|
+
/**
|
|
1869
|
+
* Physical address of the counterparty. Required for SWIFT destinations.
|
|
1870
|
+
*/
|
|
1871
|
+
export interface PhysicalAddress {
|
|
1872
|
+
/**
|
|
1873
|
+
* City or locality.
|
|
1874
|
+
*/
|
|
1875
|
+
city: string;
|
|
1876
|
+
|
|
1877
|
+
/**
|
|
1878
|
+
* ISO 3166-1 alpha-2 country code.
|
|
1879
|
+
*/
|
|
1880
|
+
country_code:
|
|
1881
|
+
| 'AF'
|
|
1882
|
+
| 'AL'
|
|
1883
|
+
| 'DZ'
|
|
1884
|
+
| 'AS'
|
|
1885
|
+
| 'AD'
|
|
1886
|
+
| 'AO'
|
|
1887
|
+
| 'AI'
|
|
1888
|
+
| 'AQ'
|
|
1889
|
+
| 'AG'
|
|
1890
|
+
| 'AR'
|
|
1891
|
+
| 'AM'
|
|
1892
|
+
| 'AW'
|
|
1893
|
+
| 'AU'
|
|
1894
|
+
| 'AT'
|
|
1895
|
+
| 'AZ'
|
|
1896
|
+
| 'BS'
|
|
1897
|
+
| 'BH'
|
|
1898
|
+
| 'BD'
|
|
1899
|
+
| 'BB'
|
|
1900
|
+
| 'BY'
|
|
1901
|
+
| 'BE'
|
|
1902
|
+
| 'BZ'
|
|
1903
|
+
| 'BJ'
|
|
1904
|
+
| 'BM'
|
|
1905
|
+
| 'BT'
|
|
1906
|
+
| 'BO'
|
|
1907
|
+
| 'BA'
|
|
1908
|
+
| 'BW'
|
|
1909
|
+
| 'BV'
|
|
1910
|
+
| 'BR'
|
|
1911
|
+
| 'IO'
|
|
1912
|
+
| 'BN'
|
|
1913
|
+
| 'BG'
|
|
1914
|
+
| 'BF'
|
|
1915
|
+
| 'BI'
|
|
1916
|
+
| 'KH'
|
|
1917
|
+
| 'CM'
|
|
1918
|
+
| 'CA'
|
|
1919
|
+
| 'CV'
|
|
1920
|
+
| 'KY'
|
|
1921
|
+
| 'CF'
|
|
1922
|
+
| 'TD'
|
|
1923
|
+
| 'CL'
|
|
1924
|
+
| 'CN'
|
|
1925
|
+
| 'CX'
|
|
1926
|
+
| 'CC'
|
|
1927
|
+
| 'CO'
|
|
1928
|
+
| 'KM'
|
|
1929
|
+
| 'CG'
|
|
1930
|
+
| 'CD'
|
|
1931
|
+
| 'CK'
|
|
1932
|
+
| 'CR'
|
|
1933
|
+
| 'CI'
|
|
1934
|
+
| 'HR'
|
|
1935
|
+
| 'CU'
|
|
1936
|
+
| 'CY'
|
|
1937
|
+
| 'CZ'
|
|
1938
|
+
| 'DK'
|
|
1939
|
+
| 'DJ'
|
|
1940
|
+
| 'DM'
|
|
1941
|
+
| 'DO'
|
|
1942
|
+
| 'EC'
|
|
1943
|
+
| 'EG'
|
|
1944
|
+
| 'SV'
|
|
1945
|
+
| 'GQ'
|
|
1946
|
+
| 'ER'
|
|
1947
|
+
| 'EE'
|
|
1948
|
+
| 'ET'
|
|
1949
|
+
| 'FK'
|
|
1950
|
+
| 'FO'
|
|
1951
|
+
| 'FJ'
|
|
1952
|
+
| 'FI'
|
|
1953
|
+
| 'FR'
|
|
1954
|
+
| 'GF'
|
|
1955
|
+
| 'PF'
|
|
1956
|
+
| 'TF'
|
|
1957
|
+
| 'GA'
|
|
1958
|
+
| 'GM'
|
|
1959
|
+
| 'GE'
|
|
1960
|
+
| 'DE'
|
|
1961
|
+
| 'GH'
|
|
1962
|
+
| 'GI'
|
|
1963
|
+
| 'GR'
|
|
1964
|
+
| 'GL'
|
|
1965
|
+
| 'GD'
|
|
1966
|
+
| 'GP'
|
|
1967
|
+
| 'GU'
|
|
1968
|
+
| 'GT'
|
|
1969
|
+
| 'GN'
|
|
1970
|
+
| 'GW'
|
|
1971
|
+
| 'GY'
|
|
1972
|
+
| 'HT'
|
|
1973
|
+
| 'HM'
|
|
1974
|
+
| 'VA'
|
|
1975
|
+
| 'HN'
|
|
1976
|
+
| 'HK'
|
|
1977
|
+
| 'HU'
|
|
1978
|
+
| 'IS'
|
|
1979
|
+
| 'IN'
|
|
1980
|
+
| 'ID'
|
|
1981
|
+
| 'IR'
|
|
1982
|
+
| 'IQ'
|
|
1983
|
+
| 'IE'
|
|
1984
|
+
| 'IL'
|
|
1985
|
+
| 'IT'
|
|
1986
|
+
| 'JM'
|
|
1987
|
+
| 'JP'
|
|
1988
|
+
| 'JO'
|
|
1989
|
+
| 'KZ'
|
|
1990
|
+
| 'KE'
|
|
1991
|
+
| 'KI'
|
|
1992
|
+
| 'KP'
|
|
1993
|
+
| 'KR'
|
|
1994
|
+
| 'KW'
|
|
1995
|
+
| 'KG'
|
|
1996
|
+
| 'LA'
|
|
1997
|
+
| 'LV'
|
|
1998
|
+
| 'LB'
|
|
1999
|
+
| 'LS'
|
|
2000
|
+
| 'LR'
|
|
2001
|
+
| 'LY'
|
|
2002
|
+
| 'LI'
|
|
2003
|
+
| 'LT'
|
|
2004
|
+
| 'LU'
|
|
2005
|
+
| 'MO'
|
|
2006
|
+
| 'MG'
|
|
2007
|
+
| 'MW'
|
|
2008
|
+
| 'MY'
|
|
2009
|
+
| 'MV'
|
|
2010
|
+
| 'ML'
|
|
2011
|
+
| 'MT'
|
|
2012
|
+
| 'MH'
|
|
2013
|
+
| 'MQ'
|
|
2014
|
+
| 'MR'
|
|
2015
|
+
| 'MU'
|
|
2016
|
+
| 'YT'
|
|
2017
|
+
| 'MX'
|
|
2018
|
+
| 'FM'
|
|
2019
|
+
| 'MD'
|
|
2020
|
+
| 'MC'
|
|
2021
|
+
| 'MN'
|
|
2022
|
+
| 'MS'
|
|
2023
|
+
| 'MA'
|
|
2024
|
+
| 'MZ'
|
|
2025
|
+
| 'MM'
|
|
2026
|
+
| 'NA'
|
|
2027
|
+
| 'NR'
|
|
2028
|
+
| 'NP'
|
|
2029
|
+
| 'NL'
|
|
2030
|
+
| 'NC'
|
|
2031
|
+
| 'NZ'
|
|
2032
|
+
| 'NI'
|
|
2033
|
+
| 'NE'
|
|
2034
|
+
| 'NG'
|
|
2035
|
+
| 'NU'
|
|
2036
|
+
| 'NF'
|
|
2037
|
+
| 'MP'
|
|
2038
|
+
| 'MK'
|
|
2039
|
+
| 'NO'
|
|
2040
|
+
| 'OM'
|
|
2041
|
+
| 'PK'
|
|
2042
|
+
| 'PW'
|
|
2043
|
+
| 'PS'
|
|
2044
|
+
| 'PA'
|
|
2045
|
+
| 'PG'
|
|
2046
|
+
| 'PY'
|
|
2047
|
+
| 'PE'
|
|
2048
|
+
| 'PH'
|
|
2049
|
+
| 'PN'
|
|
2050
|
+
| 'PL'
|
|
2051
|
+
| 'PT'
|
|
2052
|
+
| 'PR'
|
|
2053
|
+
| 'QA'
|
|
2054
|
+
| 'RE'
|
|
2055
|
+
| 'RO'
|
|
2056
|
+
| 'RU'
|
|
2057
|
+
| 'RW'
|
|
2058
|
+
| 'SH'
|
|
2059
|
+
| 'KN'
|
|
2060
|
+
| 'LC'
|
|
2061
|
+
| 'PM'
|
|
2062
|
+
| 'VC'
|
|
2063
|
+
| 'WS'
|
|
2064
|
+
| 'SM'
|
|
2065
|
+
| 'ST'
|
|
2066
|
+
| 'SA'
|
|
2067
|
+
| 'SN'
|
|
2068
|
+
| 'SC'
|
|
2069
|
+
| 'SL'
|
|
2070
|
+
| 'SG'
|
|
2071
|
+
| 'SK'
|
|
2072
|
+
| 'SI'
|
|
2073
|
+
| 'SB'
|
|
2074
|
+
| 'SO'
|
|
2075
|
+
| 'ZA'
|
|
2076
|
+
| 'GS'
|
|
2077
|
+
| 'ES'
|
|
2078
|
+
| 'LK'
|
|
2079
|
+
| 'SD'
|
|
2080
|
+
| 'SR'
|
|
2081
|
+
| 'SJ'
|
|
2082
|
+
| 'SZ'
|
|
2083
|
+
| 'SE'
|
|
2084
|
+
| 'CH'
|
|
2085
|
+
| 'SY'
|
|
2086
|
+
| 'TW'
|
|
2087
|
+
| 'TJ'
|
|
2088
|
+
| 'TZ'
|
|
2089
|
+
| 'TH'
|
|
2090
|
+
| 'TL'
|
|
2091
|
+
| 'TG'
|
|
2092
|
+
| 'TK'
|
|
2093
|
+
| 'TO'
|
|
2094
|
+
| 'TT'
|
|
2095
|
+
| 'TN'
|
|
2096
|
+
| 'TR'
|
|
2097
|
+
| 'TM'
|
|
2098
|
+
| 'TC'
|
|
2099
|
+
| 'TV'
|
|
2100
|
+
| 'UG'
|
|
2101
|
+
| 'UA'
|
|
2102
|
+
| 'AE'
|
|
2103
|
+
| 'GB'
|
|
2104
|
+
| 'US'
|
|
2105
|
+
| 'UM'
|
|
2106
|
+
| 'UY'
|
|
2107
|
+
| 'UZ'
|
|
2108
|
+
| 'VU'
|
|
2109
|
+
| 'VE'
|
|
2110
|
+
| 'VN'
|
|
2111
|
+
| 'VG'
|
|
2112
|
+
| 'VI'
|
|
2113
|
+
| 'WF'
|
|
2114
|
+
| 'EH'
|
|
2115
|
+
| 'YE'
|
|
2116
|
+
| 'ZM'
|
|
2117
|
+
| 'ZW'
|
|
2118
|
+
| 'AX'
|
|
2119
|
+
| 'BQ'
|
|
2120
|
+
| 'CW'
|
|
2121
|
+
| 'GG'
|
|
2122
|
+
| 'IM'
|
|
2123
|
+
| 'JE'
|
|
2124
|
+
| 'ME'
|
|
2125
|
+
| 'BL'
|
|
2126
|
+
| 'MF'
|
|
2127
|
+
| 'RS'
|
|
2128
|
+
| 'SX'
|
|
2129
|
+
| 'SS'
|
|
2130
|
+
| 'XK';
|
|
2131
|
+
|
|
2132
|
+
/**
|
|
2133
|
+
* Primary street address.
|
|
2134
|
+
*/
|
|
2135
|
+
line_1: string;
|
|
2136
|
+
|
|
2137
|
+
/**
|
|
2138
|
+
* Postal or ZIP code.
|
|
2139
|
+
*/
|
|
2140
|
+
postal_code: string;
|
|
2141
|
+
|
|
2142
|
+
/**
|
|
2143
|
+
* Secondary street address, or null if not recorded.
|
|
2144
|
+
*/
|
|
2145
|
+
line_2?: string | null;
|
|
2146
|
+
|
|
2147
|
+
/**
|
|
2148
|
+
* State, province, or region, or null if not recorded.
|
|
2149
|
+
*/
|
|
2150
|
+
state?: string | null;
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
export interface CryptoWalletDestination {
|
|
725
2155
|
/**
|
|
726
2156
|
* Wallet address on the specified blockchain.
|
|
727
2157
|
*/
|
|
728
2158
|
address: string;
|
|
729
2159
|
|
|
730
2160
|
/**
|
|
731
|
-
* Blockchain network
|
|
2161
|
+
* Blockchain network of the destination wallet.
|
|
2162
|
+
*/
|
|
2163
|
+
blockchain: 'ethereum' | 'solana' | 'polygon' | 'ethereum_sepolia' | 'solana_devnet' | 'polygon_amoy';
|
|
2164
|
+
|
|
2165
|
+
/**
|
|
2166
|
+
* Currency debited from the source account. The wallet always settles USDC
|
|
2167
|
+
* on-chain; a non-USDC currency triggers auto-conversion.
|
|
732
2168
|
*/
|
|
733
|
-
|
|
734
|
-
| 'bitcoin'
|
|
735
|
-
| 'ethereum'
|
|
736
|
-
| 'solana'
|
|
737
|
-
| 'polygon'
|
|
738
|
-
| 'bitcoin_testnet4'
|
|
739
|
-
| 'ethereum_sepolia'
|
|
740
|
-
| 'solana_devnet'
|
|
741
|
-
| 'polygon_amoy';
|
|
2169
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
742
2170
|
|
|
743
2171
|
/**
|
|
744
|
-
* Discriminator for crypto wallet
|
|
2172
|
+
* Discriminator for a crypto wallet destination.
|
|
745
2173
|
*/
|
|
746
2174
|
type: 'crypto_wallet';
|
|
2175
|
+
|
|
2176
|
+
/**
|
|
2177
|
+
* Physical address of the counterparty. Only used when creating a new counterparty
|
|
2178
|
+
* inline.
|
|
2179
|
+
*/
|
|
2180
|
+
physical_address?: CryptoWalletDestination.PhysicalAddress | null;
|
|
2181
|
+
}
|
|
2182
|
+
|
|
2183
|
+
export namespace CryptoWalletDestination {
|
|
2184
|
+
/**
|
|
2185
|
+
* Physical address of the counterparty. Only used when creating a new counterparty
|
|
2186
|
+
* inline.
|
|
2187
|
+
*/
|
|
2188
|
+
export interface PhysicalAddress {
|
|
2189
|
+
/**
|
|
2190
|
+
* City or locality.
|
|
2191
|
+
*/
|
|
2192
|
+
city: string;
|
|
2193
|
+
|
|
2194
|
+
/**
|
|
2195
|
+
* ISO 3166-1 alpha-2 country code.
|
|
2196
|
+
*/
|
|
2197
|
+
country_code:
|
|
2198
|
+
| 'AF'
|
|
2199
|
+
| 'AL'
|
|
2200
|
+
| 'DZ'
|
|
2201
|
+
| 'AS'
|
|
2202
|
+
| 'AD'
|
|
2203
|
+
| 'AO'
|
|
2204
|
+
| 'AI'
|
|
2205
|
+
| 'AQ'
|
|
2206
|
+
| 'AG'
|
|
2207
|
+
| 'AR'
|
|
2208
|
+
| 'AM'
|
|
2209
|
+
| 'AW'
|
|
2210
|
+
| 'AU'
|
|
2211
|
+
| 'AT'
|
|
2212
|
+
| 'AZ'
|
|
2213
|
+
| 'BS'
|
|
2214
|
+
| 'BH'
|
|
2215
|
+
| 'BD'
|
|
2216
|
+
| 'BB'
|
|
2217
|
+
| 'BY'
|
|
2218
|
+
| 'BE'
|
|
2219
|
+
| 'BZ'
|
|
2220
|
+
| 'BJ'
|
|
2221
|
+
| 'BM'
|
|
2222
|
+
| 'BT'
|
|
2223
|
+
| 'BO'
|
|
2224
|
+
| 'BA'
|
|
2225
|
+
| 'BW'
|
|
2226
|
+
| 'BV'
|
|
2227
|
+
| 'BR'
|
|
2228
|
+
| 'IO'
|
|
2229
|
+
| 'BN'
|
|
2230
|
+
| 'BG'
|
|
2231
|
+
| 'BF'
|
|
2232
|
+
| 'BI'
|
|
2233
|
+
| 'KH'
|
|
2234
|
+
| 'CM'
|
|
2235
|
+
| 'CA'
|
|
2236
|
+
| 'CV'
|
|
2237
|
+
| 'KY'
|
|
2238
|
+
| 'CF'
|
|
2239
|
+
| 'TD'
|
|
2240
|
+
| 'CL'
|
|
2241
|
+
| 'CN'
|
|
2242
|
+
| 'CX'
|
|
2243
|
+
| 'CC'
|
|
2244
|
+
| 'CO'
|
|
2245
|
+
| 'KM'
|
|
2246
|
+
| 'CG'
|
|
2247
|
+
| 'CD'
|
|
2248
|
+
| 'CK'
|
|
2249
|
+
| 'CR'
|
|
2250
|
+
| 'CI'
|
|
2251
|
+
| 'HR'
|
|
2252
|
+
| 'CU'
|
|
2253
|
+
| 'CY'
|
|
2254
|
+
| 'CZ'
|
|
2255
|
+
| 'DK'
|
|
2256
|
+
| 'DJ'
|
|
2257
|
+
| 'DM'
|
|
2258
|
+
| 'DO'
|
|
2259
|
+
| 'EC'
|
|
2260
|
+
| 'EG'
|
|
2261
|
+
| 'SV'
|
|
2262
|
+
| 'GQ'
|
|
2263
|
+
| 'ER'
|
|
2264
|
+
| 'EE'
|
|
2265
|
+
| 'ET'
|
|
2266
|
+
| 'FK'
|
|
2267
|
+
| 'FO'
|
|
2268
|
+
| 'FJ'
|
|
2269
|
+
| 'FI'
|
|
2270
|
+
| 'FR'
|
|
2271
|
+
| 'GF'
|
|
2272
|
+
| 'PF'
|
|
2273
|
+
| 'TF'
|
|
2274
|
+
| 'GA'
|
|
2275
|
+
| 'GM'
|
|
2276
|
+
| 'GE'
|
|
2277
|
+
| 'DE'
|
|
2278
|
+
| 'GH'
|
|
2279
|
+
| 'GI'
|
|
2280
|
+
| 'GR'
|
|
2281
|
+
| 'GL'
|
|
2282
|
+
| 'GD'
|
|
2283
|
+
| 'GP'
|
|
2284
|
+
| 'GU'
|
|
2285
|
+
| 'GT'
|
|
2286
|
+
| 'GN'
|
|
2287
|
+
| 'GW'
|
|
2288
|
+
| 'GY'
|
|
2289
|
+
| 'HT'
|
|
2290
|
+
| 'HM'
|
|
2291
|
+
| 'VA'
|
|
2292
|
+
| 'HN'
|
|
2293
|
+
| 'HK'
|
|
2294
|
+
| 'HU'
|
|
2295
|
+
| 'IS'
|
|
2296
|
+
| 'IN'
|
|
2297
|
+
| 'ID'
|
|
2298
|
+
| 'IR'
|
|
2299
|
+
| 'IQ'
|
|
2300
|
+
| 'IE'
|
|
2301
|
+
| 'IL'
|
|
2302
|
+
| 'IT'
|
|
2303
|
+
| 'JM'
|
|
2304
|
+
| 'JP'
|
|
2305
|
+
| 'JO'
|
|
2306
|
+
| 'KZ'
|
|
2307
|
+
| 'KE'
|
|
2308
|
+
| 'KI'
|
|
2309
|
+
| 'KP'
|
|
2310
|
+
| 'KR'
|
|
2311
|
+
| 'KW'
|
|
2312
|
+
| 'KG'
|
|
2313
|
+
| 'LA'
|
|
2314
|
+
| 'LV'
|
|
2315
|
+
| 'LB'
|
|
2316
|
+
| 'LS'
|
|
2317
|
+
| 'LR'
|
|
2318
|
+
| 'LY'
|
|
2319
|
+
| 'LI'
|
|
2320
|
+
| 'LT'
|
|
2321
|
+
| 'LU'
|
|
2322
|
+
| 'MO'
|
|
2323
|
+
| 'MG'
|
|
2324
|
+
| 'MW'
|
|
2325
|
+
| 'MY'
|
|
2326
|
+
| 'MV'
|
|
2327
|
+
| 'ML'
|
|
2328
|
+
| 'MT'
|
|
2329
|
+
| 'MH'
|
|
2330
|
+
| 'MQ'
|
|
2331
|
+
| 'MR'
|
|
2332
|
+
| 'MU'
|
|
2333
|
+
| 'YT'
|
|
2334
|
+
| 'MX'
|
|
2335
|
+
| 'FM'
|
|
2336
|
+
| 'MD'
|
|
2337
|
+
| 'MC'
|
|
2338
|
+
| 'MN'
|
|
2339
|
+
| 'MS'
|
|
2340
|
+
| 'MA'
|
|
2341
|
+
| 'MZ'
|
|
2342
|
+
| 'MM'
|
|
2343
|
+
| 'NA'
|
|
2344
|
+
| 'NR'
|
|
2345
|
+
| 'NP'
|
|
2346
|
+
| 'NL'
|
|
2347
|
+
| 'NC'
|
|
2348
|
+
| 'NZ'
|
|
2349
|
+
| 'NI'
|
|
2350
|
+
| 'NE'
|
|
2351
|
+
| 'NG'
|
|
2352
|
+
| 'NU'
|
|
2353
|
+
| 'NF'
|
|
2354
|
+
| 'MP'
|
|
2355
|
+
| 'MK'
|
|
2356
|
+
| 'NO'
|
|
2357
|
+
| 'OM'
|
|
2358
|
+
| 'PK'
|
|
2359
|
+
| 'PW'
|
|
2360
|
+
| 'PS'
|
|
2361
|
+
| 'PA'
|
|
2362
|
+
| 'PG'
|
|
2363
|
+
| 'PY'
|
|
2364
|
+
| 'PE'
|
|
2365
|
+
| 'PH'
|
|
2366
|
+
| 'PN'
|
|
2367
|
+
| 'PL'
|
|
2368
|
+
| 'PT'
|
|
2369
|
+
| 'PR'
|
|
2370
|
+
| 'QA'
|
|
2371
|
+
| 'RE'
|
|
2372
|
+
| 'RO'
|
|
2373
|
+
| 'RU'
|
|
2374
|
+
| 'RW'
|
|
2375
|
+
| 'SH'
|
|
2376
|
+
| 'KN'
|
|
2377
|
+
| 'LC'
|
|
2378
|
+
| 'PM'
|
|
2379
|
+
| 'VC'
|
|
2380
|
+
| 'WS'
|
|
2381
|
+
| 'SM'
|
|
2382
|
+
| 'ST'
|
|
2383
|
+
| 'SA'
|
|
2384
|
+
| 'SN'
|
|
2385
|
+
| 'SC'
|
|
2386
|
+
| 'SL'
|
|
2387
|
+
| 'SG'
|
|
2388
|
+
| 'SK'
|
|
2389
|
+
| 'SI'
|
|
2390
|
+
| 'SB'
|
|
2391
|
+
| 'SO'
|
|
2392
|
+
| 'ZA'
|
|
2393
|
+
| 'GS'
|
|
2394
|
+
| 'ES'
|
|
2395
|
+
| 'LK'
|
|
2396
|
+
| 'SD'
|
|
2397
|
+
| 'SR'
|
|
2398
|
+
| 'SJ'
|
|
2399
|
+
| 'SZ'
|
|
2400
|
+
| 'SE'
|
|
2401
|
+
| 'CH'
|
|
2402
|
+
| 'SY'
|
|
2403
|
+
| 'TW'
|
|
2404
|
+
| 'TJ'
|
|
2405
|
+
| 'TZ'
|
|
2406
|
+
| 'TH'
|
|
2407
|
+
| 'TL'
|
|
2408
|
+
| 'TG'
|
|
2409
|
+
| 'TK'
|
|
2410
|
+
| 'TO'
|
|
2411
|
+
| 'TT'
|
|
2412
|
+
| 'TN'
|
|
2413
|
+
| 'TR'
|
|
2414
|
+
| 'TM'
|
|
2415
|
+
| 'TC'
|
|
2416
|
+
| 'TV'
|
|
2417
|
+
| 'UG'
|
|
2418
|
+
| 'UA'
|
|
2419
|
+
| 'AE'
|
|
2420
|
+
| 'GB'
|
|
2421
|
+
| 'US'
|
|
2422
|
+
| 'UM'
|
|
2423
|
+
| 'UY'
|
|
2424
|
+
| 'UZ'
|
|
2425
|
+
| 'VU'
|
|
2426
|
+
| 'VE'
|
|
2427
|
+
| 'VN'
|
|
2428
|
+
| 'VG'
|
|
2429
|
+
| 'VI'
|
|
2430
|
+
| 'WF'
|
|
2431
|
+
| 'EH'
|
|
2432
|
+
| 'YE'
|
|
2433
|
+
| 'ZM'
|
|
2434
|
+
| 'ZW'
|
|
2435
|
+
| 'AX'
|
|
2436
|
+
| 'BQ'
|
|
2437
|
+
| 'CW'
|
|
2438
|
+
| 'GG'
|
|
2439
|
+
| 'IM'
|
|
2440
|
+
| 'JE'
|
|
2441
|
+
| 'ME'
|
|
2442
|
+
| 'BL'
|
|
2443
|
+
| 'MF'
|
|
2444
|
+
| 'RS'
|
|
2445
|
+
| 'SX'
|
|
2446
|
+
| 'SS'
|
|
2447
|
+
| 'XK';
|
|
2448
|
+
|
|
2449
|
+
/**
|
|
2450
|
+
* Primary street address.
|
|
2451
|
+
*/
|
|
2452
|
+
line_1: string;
|
|
2453
|
+
|
|
2454
|
+
/**
|
|
2455
|
+
* Postal or ZIP code.
|
|
2456
|
+
*/
|
|
2457
|
+
postal_code: string;
|
|
2458
|
+
|
|
2459
|
+
/**
|
|
2460
|
+
* Secondary street address, or null if not recorded.
|
|
2461
|
+
*/
|
|
2462
|
+
line_2?: string | null;
|
|
2463
|
+
|
|
2464
|
+
/**
|
|
2465
|
+
* State, province, or region, or null if not recorded.
|
|
2466
|
+
*/
|
|
2467
|
+
state?: string | null;
|
|
2468
|
+
}
|
|
747
2469
|
}
|
|
748
2470
|
}
|
|
749
2471
|
|
|
@@ -759,7 +2481,7 @@ export interface PayoutListParams extends CursorPageParams {
|
|
|
759
2481
|
/**
|
|
760
2482
|
* Filter by payout status.
|
|
761
2483
|
*/
|
|
762
|
-
status?: '
|
|
2484
|
+
status?: 'initiated' | 'submitted' | 'sent' | 'failed' | 'returned';
|
|
763
2485
|
}
|
|
764
2486
|
|
|
765
2487
|
export namespace PayoutListParams {
|