@augustusbank/typescript-sdk 0.12.1 → 0.14.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 +22 -0
- package/README.md +1 -1
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js +9 -1
- package/client.js.map +1 -1
- package/client.mjs +10 -2
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +2 -2
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/account-programs.d.mts.map +1 -1
- package/resources/account-programs.d.ts.map +1 -1
- package/resources/account-programs.mjs.map +1 -1
- package/resources/accounts.d.mts +156 -66
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +156 -66
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.mjs.map +1 -1
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.mjs.map +1 -1
- package/resources/api-versions.d.mts.map +1 -1
- package/resources/api-versions.d.ts.map +1 -1
- package/resources/api-versions.mjs.map +1 -1
- package/resources/conversions.d.mts +8 -8
- package/resources/conversions.d.mts.map +1 -1
- package/resources/conversions.d.ts +8 -8
- package/resources/conversions.d.ts.map +1 -1
- package/resources/conversions.mjs.map +1 -1
- package/resources/deposits.d.mts +44 -8
- package/resources/deposits.d.mts.map +1 -1
- package/resources/deposits.d.ts +44 -8
- package/resources/deposits.d.ts.map +1 -1
- package/resources/deposits.mjs.map +1 -1
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts.map +1 -1
- package/resources/events.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/payouts.d.mts +28 -10
- package/resources/payouts.d.mts.map +1 -1
- package/resources/payouts.d.ts +28 -10
- package/resources/payouts.d.ts.map +1 -1
- package/resources/payouts.mjs.map +1 -1
- package/resources/quotes/index.d.mts.map +1 -1
- package/resources/quotes/index.d.ts.map +1 -1
- package/resources/quotes/index.mjs.map +1 -1
- package/resources/quotes/indicative.d.mts +5 -5
- package/resources/quotes/indicative.d.mts.map +1 -1
- package/resources/quotes/indicative.d.ts +5 -5
- package/resources/quotes/indicative.d.ts.map +1 -1
- package/resources/quotes/indicative.mjs.map +1 -1
- package/resources/quotes/quotes.d.mts +2 -2
- package/resources/quotes/quotes.d.mts.map +1 -1
- package/resources/quotes/quotes.d.ts +2 -2
- package/resources/quotes/quotes.d.ts.map +1 -1
- package/resources/quotes/quotes.mjs.map +1 -1
- package/resources/quotes.d.mts.map +1 -1
- package/resources/quotes.d.ts.map +1 -1
- package/resources/quotes.mjs.map +1 -1
- package/resources/returns.d.mts +161 -2
- package/resources/returns.d.mts.map +1 -1
- package/resources/returns.d.ts +161 -2
- package/resources/returns.d.ts.map +1 -1
- package/resources/returns.js +13 -0
- package/resources/returns.js.map +1 -1
- package/resources/returns.mjs +13 -0
- package/resources/returns.mjs.map +1 -1
- package/resources/scopes.d.mts.map +1 -1
- package/resources/scopes.d.ts.map +1 -1
- package/resources/scopes.mjs.map +1 -1
- package/resources/webhook-deliveries.d.mts.map +1 -1
- package/resources/webhook-deliveries.d.ts.map +1 -1
- package/resources/webhook-deliveries.mjs.map +1 -1
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.mjs.map +1 -1
- package/resources/webhooks.d.mts +40 -22
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +40 -22
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +27 -3
- package/src/resources/accounts.ts +500 -95
- package/src/resources/conversions.ts +8 -8
- package/src/resources/deposits.ts +76 -6
- package/src/resources/index.ts +9 -1
- package/src/resources/payouts.ts +65 -10
- package/src/resources/quotes/indicative.ts +5 -5
- package/src/resources/quotes/quotes.ts +2 -2
- package/src/resources/returns.ts +237 -2
- package/src/resources/webhooks.ts +87 -21
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -86,17 +86,17 @@ export interface AccountCreateResponse {
|
|
|
86
86
|
/**
|
|
87
87
|
* ISO 4217 currency code for the account.
|
|
88
88
|
*/
|
|
89
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
89
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
92
|
* Payment identifiers (e.g. IBAN, account number, wallet address) through which
|
|
93
93
|
* this account can send or receive funds.
|
|
94
94
|
*/
|
|
95
95
|
financial_addresses: Array<
|
|
96
|
-
| AccountCreateResponse.
|
|
97
|
-
| AccountCreateResponse.
|
|
98
|
-
| AccountCreateResponse.
|
|
99
|
-
| AccountCreateResponse.
|
|
96
|
+
| AccountCreateResponse.IbanFinancialAddress
|
|
97
|
+
| AccountCreateResponse.SortCodeFinancialAddress
|
|
98
|
+
| AccountCreateResponse.AbaFinancialAddress
|
|
99
|
+
| AccountCreateResponse.CryptoWalletFinancialAddress
|
|
100
100
|
>;
|
|
101
101
|
|
|
102
102
|
/**
|
|
@@ -121,7 +121,7 @@ export interface AccountCreateResponse {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
export namespace AccountCreateResponse {
|
|
124
|
-
export interface
|
|
124
|
+
export interface IbanFinancialAddress {
|
|
125
125
|
/**
|
|
126
126
|
* Name of the account holder.
|
|
127
127
|
*/
|
|
@@ -143,7 +143,7 @@ export namespace AccountCreateResponse {
|
|
|
143
143
|
type: 'iban';
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
export interface
|
|
146
|
+
export interface SortCodeFinancialAddress {
|
|
147
147
|
/**
|
|
148
148
|
* Name of the account holder.
|
|
149
149
|
*/
|
|
@@ -165,7 +165,7 @@ export namespace AccountCreateResponse {
|
|
|
165
165
|
type: 'sort_code';
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
export interface
|
|
168
|
+
export interface AbaFinancialAddress {
|
|
169
169
|
/**
|
|
170
170
|
* Name of the account holder.
|
|
171
171
|
*/
|
|
@@ -187,7 +187,7 @@ export namespace AccountCreateResponse {
|
|
|
187
187
|
type: 'aba';
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
export interface
|
|
190
|
+
export interface CryptoWalletFinancialAddress {
|
|
191
191
|
/**
|
|
192
192
|
* Wallet address on the specified blockchain.
|
|
193
193
|
*/
|
|
@@ -196,7 +196,15 @@ export namespace AccountCreateResponse {
|
|
|
196
196
|
/**
|
|
197
197
|
* Blockchain network for the crypto wallet.
|
|
198
198
|
*/
|
|
199
|
-
blockchain:
|
|
199
|
+
blockchain:
|
|
200
|
+
| 'bitcoin'
|
|
201
|
+
| 'ethereum'
|
|
202
|
+
| 'solana'
|
|
203
|
+
| 'polygon'
|
|
204
|
+
| 'bitcoin_testnet4'
|
|
205
|
+
| 'ethereum_sepolia'
|
|
206
|
+
| 'solana_devnet'
|
|
207
|
+
| 'polygon_amoy';
|
|
200
208
|
|
|
201
209
|
/**
|
|
202
210
|
* Discriminator for crypto wallet financial address.
|
|
@@ -229,17 +237,17 @@ export interface AccountRetrieveResponse {
|
|
|
229
237
|
/**
|
|
230
238
|
* ISO 4217 currency code for the account.
|
|
231
239
|
*/
|
|
232
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
240
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
233
241
|
|
|
234
242
|
/**
|
|
235
243
|
* Payment identifiers (e.g. IBAN, account number, wallet address) through which
|
|
236
244
|
* this account can send or receive funds.
|
|
237
245
|
*/
|
|
238
246
|
financial_addresses: Array<
|
|
239
|
-
| AccountRetrieveResponse.
|
|
240
|
-
| AccountRetrieveResponse.
|
|
241
|
-
| AccountRetrieveResponse.
|
|
242
|
-
| AccountRetrieveResponse.
|
|
247
|
+
| AccountRetrieveResponse.IbanFinancialAddress
|
|
248
|
+
| AccountRetrieveResponse.SortCodeFinancialAddress
|
|
249
|
+
| AccountRetrieveResponse.AbaFinancialAddress
|
|
250
|
+
| AccountRetrieveResponse.CryptoWalletFinancialAddress
|
|
243
251
|
>;
|
|
244
252
|
|
|
245
253
|
/**
|
|
@@ -264,7 +272,7 @@ export interface AccountRetrieveResponse {
|
|
|
264
272
|
}
|
|
265
273
|
|
|
266
274
|
export namespace AccountRetrieveResponse {
|
|
267
|
-
export interface
|
|
275
|
+
export interface IbanFinancialAddress {
|
|
268
276
|
/**
|
|
269
277
|
* Name of the account holder.
|
|
270
278
|
*/
|
|
@@ -286,7 +294,7 @@ export namespace AccountRetrieveResponse {
|
|
|
286
294
|
type: 'iban';
|
|
287
295
|
}
|
|
288
296
|
|
|
289
|
-
export interface
|
|
297
|
+
export interface SortCodeFinancialAddress {
|
|
290
298
|
/**
|
|
291
299
|
* Name of the account holder.
|
|
292
300
|
*/
|
|
@@ -308,7 +316,7 @@ export namespace AccountRetrieveResponse {
|
|
|
308
316
|
type: 'sort_code';
|
|
309
317
|
}
|
|
310
318
|
|
|
311
|
-
export interface
|
|
319
|
+
export interface AbaFinancialAddress {
|
|
312
320
|
/**
|
|
313
321
|
* Name of the account holder.
|
|
314
322
|
*/
|
|
@@ -330,7 +338,7 @@ export namespace AccountRetrieveResponse {
|
|
|
330
338
|
type: 'aba';
|
|
331
339
|
}
|
|
332
340
|
|
|
333
|
-
export interface
|
|
341
|
+
export interface CryptoWalletFinancialAddress {
|
|
334
342
|
/**
|
|
335
343
|
* Wallet address on the specified blockchain.
|
|
336
344
|
*/
|
|
@@ -339,7 +347,15 @@ export namespace AccountRetrieveResponse {
|
|
|
339
347
|
/**
|
|
340
348
|
* Blockchain network for the crypto wallet.
|
|
341
349
|
*/
|
|
342
|
-
blockchain:
|
|
350
|
+
blockchain:
|
|
351
|
+
| 'bitcoin'
|
|
352
|
+
| 'ethereum'
|
|
353
|
+
| 'solana'
|
|
354
|
+
| 'polygon'
|
|
355
|
+
| 'bitcoin_testnet4'
|
|
356
|
+
| 'ethereum_sepolia'
|
|
357
|
+
| 'solana_devnet'
|
|
358
|
+
| 'polygon_amoy';
|
|
343
359
|
|
|
344
360
|
/**
|
|
345
361
|
* Discriminator for crypto wallet financial address.
|
|
@@ -372,17 +388,17 @@ export interface AccountListResponse {
|
|
|
372
388
|
/**
|
|
373
389
|
* ISO 4217 currency code for the account.
|
|
374
390
|
*/
|
|
375
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
391
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
376
392
|
|
|
377
393
|
/**
|
|
378
394
|
* Payment identifiers (e.g. IBAN, account number, wallet address) through which
|
|
379
395
|
* this account can send or receive funds.
|
|
380
396
|
*/
|
|
381
397
|
financial_addresses: Array<
|
|
382
|
-
| AccountListResponse.
|
|
383
|
-
| AccountListResponse.
|
|
384
|
-
| AccountListResponse.
|
|
385
|
-
| AccountListResponse.
|
|
398
|
+
| AccountListResponse.IbanFinancialAddress
|
|
399
|
+
| AccountListResponse.SortCodeFinancialAddress
|
|
400
|
+
| AccountListResponse.AbaFinancialAddress
|
|
401
|
+
| AccountListResponse.CryptoWalletFinancialAddress
|
|
386
402
|
>;
|
|
387
403
|
|
|
388
404
|
/**
|
|
@@ -407,7 +423,7 @@ export interface AccountListResponse {
|
|
|
407
423
|
}
|
|
408
424
|
|
|
409
425
|
export namespace AccountListResponse {
|
|
410
|
-
export interface
|
|
426
|
+
export interface IbanFinancialAddress {
|
|
411
427
|
/**
|
|
412
428
|
* Name of the account holder.
|
|
413
429
|
*/
|
|
@@ -429,7 +445,7 @@ export namespace AccountListResponse {
|
|
|
429
445
|
type: 'iban';
|
|
430
446
|
}
|
|
431
447
|
|
|
432
|
-
export interface
|
|
448
|
+
export interface SortCodeFinancialAddress {
|
|
433
449
|
/**
|
|
434
450
|
* Name of the account holder.
|
|
435
451
|
*/
|
|
@@ -451,7 +467,7 @@ export namespace AccountListResponse {
|
|
|
451
467
|
type: 'sort_code';
|
|
452
468
|
}
|
|
453
469
|
|
|
454
|
-
export interface
|
|
470
|
+
export interface AbaFinancialAddress {
|
|
455
471
|
/**
|
|
456
472
|
* Name of the account holder.
|
|
457
473
|
*/
|
|
@@ -473,7 +489,7 @@ export namespace AccountListResponse {
|
|
|
473
489
|
type: 'aba';
|
|
474
490
|
}
|
|
475
491
|
|
|
476
|
-
export interface
|
|
492
|
+
export interface CryptoWalletFinancialAddress {
|
|
477
493
|
/**
|
|
478
494
|
* Wallet address on the specified blockchain.
|
|
479
495
|
*/
|
|
@@ -482,7 +498,15 @@ export namespace AccountListResponse {
|
|
|
482
498
|
/**
|
|
483
499
|
* Blockchain network for the crypto wallet.
|
|
484
500
|
*/
|
|
485
|
-
blockchain:
|
|
501
|
+
blockchain:
|
|
502
|
+
| 'bitcoin'
|
|
503
|
+
| 'ethereum'
|
|
504
|
+
| 'solana'
|
|
505
|
+
| 'polygon'
|
|
506
|
+
| 'bitcoin_testnet4'
|
|
507
|
+
| 'ethereum_sepolia'
|
|
508
|
+
| 'solana_devnet'
|
|
509
|
+
| 'polygon_amoy';
|
|
486
510
|
|
|
487
511
|
/**
|
|
488
512
|
* Discriminator for crypto wallet financial address.
|
|
@@ -515,17 +539,17 @@ export interface AccountCloseResponse {
|
|
|
515
539
|
/**
|
|
516
540
|
* ISO 4217 currency code for the account.
|
|
517
541
|
*/
|
|
518
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
542
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
519
543
|
|
|
520
544
|
/**
|
|
521
545
|
* Payment identifiers (e.g. IBAN, account number, wallet address) through which
|
|
522
546
|
* this account can send or receive funds.
|
|
523
547
|
*/
|
|
524
548
|
financial_addresses: Array<
|
|
525
|
-
| AccountCloseResponse.
|
|
526
|
-
| AccountCloseResponse.
|
|
527
|
-
| AccountCloseResponse.
|
|
528
|
-
| AccountCloseResponse.
|
|
549
|
+
| AccountCloseResponse.IbanFinancialAddress
|
|
550
|
+
| AccountCloseResponse.SortCodeFinancialAddress
|
|
551
|
+
| AccountCloseResponse.AbaFinancialAddress
|
|
552
|
+
| AccountCloseResponse.CryptoWalletFinancialAddress
|
|
529
553
|
>;
|
|
530
554
|
|
|
531
555
|
/**
|
|
@@ -550,7 +574,7 @@ export interface AccountCloseResponse {
|
|
|
550
574
|
}
|
|
551
575
|
|
|
552
576
|
export namespace AccountCloseResponse {
|
|
553
|
-
export interface
|
|
577
|
+
export interface IbanFinancialAddress {
|
|
554
578
|
/**
|
|
555
579
|
* Name of the account holder.
|
|
556
580
|
*/
|
|
@@ -572,7 +596,7 @@ export namespace AccountCloseResponse {
|
|
|
572
596
|
type: 'iban';
|
|
573
597
|
}
|
|
574
598
|
|
|
575
|
-
export interface
|
|
599
|
+
export interface SortCodeFinancialAddress {
|
|
576
600
|
/**
|
|
577
601
|
* Name of the account holder.
|
|
578
602
|
*/
|
|
@@ -594,7 +618,7 @@ export namespace AccountCloseResponse {
|
|
|
594
618
|
type: 'sort_code';
|
|
595
619
|
}
|
|
596
620
|
|
|
597
|
-
export interface
|
|
621
|
+
export interface AbaFinancialAddress {
|
|
598
622
|
/**
|
|
599
623
|
* Name of the account holder.
|
|
600
624
|
*/
|
|
@@ -616,7 +640,7 @@ export namespace AccountCloseResponse {
|
|
|
616
640
|
type: 'aba';
|
|
617
641
|
}
|
|
618
642
|
|
|
619
|
-
export interface
|
|
643
|
+
export interface CryptoWalletFinancialAddress {
|
|
620
644
|
/**
|
|
621
645
|
* Wallet address on the specified blockchain.
|
|
622
646
|
*/
|
|
@@ -625,7 +649,15 @@ export namespace AccountCloseResponse {
|
|
|
625
649
|
/**
|
|
626
650
|
* Blockchain network for the crypto wallet.
|
|
627
651
|
*/
|
|
628
|
-
blockchain:
|
|
652
|
+
blockchain:
|
|
653
|
+
| 'bitcoin'
|
|
654
|
+
| 'ethereum'
|
|
655
|
+
| 'solana'
|
|
656
|
+
| 'polygon'
|
|
657
|
+
| 'bitcoin_testnet4'
|
|
658
|
+
| 'ethereum_sepolia'
|
|
659
|
+
| 'solana_devnet'
|
|
660
|
+
| 'polygon_amoy';
|
|
629
661
|
|
|
630
662
|
/**
|
|
631
663
|
* Discriminator for crypto wallet financial address.
|
|
@@ -658,17 +690,17 @@ export interface AccountFreezeResponse {
|
|
|
658
690
|
/**
|
|
659
691
|
* ISO 4217 currency code for the account.
|
|
660
692
|
*/
|
|
661
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
693
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
662
694
|
|
|
663
695
|
/**
|
|
664
696
|
* Payment identifiers (e.g. IBAN, account number, wallet address) through which
|
|
665
697
|
* this account can send or receive funds.
|
|
666
698
|
*/
|
|
667
699
|
financial_addresses: Array<
|
|
668
|
-
| AccountFreezeResponse.
|
|
669
|
-
| AccountFreezeResponse.
|
|
670
|
-
| AccountFreezeResponse.
|
|
671
|
-
| AccountFreezeResponse.
|
|
700
|
+
| AccountFreezeResponse.IbanFinancialAddress
|
|
701
|
+
| AccountFreezeResponse.SortCodeFinancialAddress
|
|
702
|
+
| AccountFreezeResponse.AbaFinancialAddress
|
|
703
|
+
| AccountFreezeResponse.CryptoWalletFinancialAddress
|
|
672
704
|
>;
|
|
673
705
|
|
|
674
706
|
/**
|
|
@@ -693,7 +725,7 @@ export interface AccountFreezeResponse {
|
|
|
693
725
|
}
|
|
694
726
|
|
|
695
727
|
export namespace AccountFreezeResponse {
|
|
696
|
-
export interface
|
|
728
|
+
export interface IbanFinancialAddress {
|
|
697
729
|
/**
|
|
698
730
|
* Name of the account holder.
|
|
699
731
|
*/
|
|
@@ -715,7 +747,7 @@ export namespace AccountFreezeResponse {
|
|
|
715
747
|
type: 'iban';
|
|
716
748
|
}
|
|
717
749
|
|
|
718
|
-
export interface
|
|
750
|
+
export interface SortCodeFinancialAddress {
|
|
719
751
|
/**
|
|
720
752
|
* Name of the account holder.
|
|
721
753
|
*/
|
|
@@ -737,7 +769,7 @@ export namespace AccountFreezeResponse {
|
|
|
737
769
|
type: 'sort_code';
|
|
738
770
|
}
|
|
739
771
|
|
|
740
|
-
export interface
|
|
772
|
+
export interface AbaFinancialAddress {
|
|
741
773
|
/**
|
|
742
774
|
* Name of the account holder.
|
|
743
775
|
*/
|
|
@@ -759,7 +791,7 @@ export namespace AccountFreezeResponse {
|
|
|
759
791
|
type: 'aba';
|
|
760
792
|
}
|
|
761
793
|
|
|
762
|
-
export interface
|
|
794
|
+
export interface CryptoWalletFinancialAddress {
|
|
763
795
|
/**
|
|
764
796
|
* Wallet address on the specified blockchain.
|
|
765
797
|
*/
|
|
@@ -768,7 +800,15 @@ export namespace AccountFreezeResponse {
|
|
|
768
800
|
/**
|
|
769
801
|
* Blockchain network for the crypto wallet.
|
|
770
802
|
*/
|
|
771
|
-
blockchain:
|
|
803
|
+
blockchain:
|
|
804
|
+
| 'bitcoin'
|
|
805
|
+
| 'ethereum'
|
|
806
|
+
| 'solana'
|
|
807
|
+
| 'polygon'
|
|
808
|
+
| 'bitcoin_testnet4'
|
|
809
|
+
| 'ethereum_sepolia'
|
|
810
|
+
| 'solana_devnet'
|
|
811
|
+
| 'polygon_amoy';
|
|
772
812
|
|
|
773
813
|
/**
|
|
774
814
|
* Discriminator for crypto wallet financial address.
|
|
@@ -796,7 +836,7 @@ export interface AccountRetrieveBalanceResponse {
|
|
|
796
836
|
/**
|
|
797
837
|
* ISO 4217 currency code for the balance.
|
|
798
838
|
*/
|
|
799
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
839
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
800
840
|
|
|
801
841
|
/**
|
|
802
842
|
* Resource type discriminator.
|
|
@@ -828,17 +868,17 @@ export interface AccountUnfreezeResponse {
|
|
|
828
868
|
/**
|
|
829
869
|
* ISO 4217 currency code for the account.
|
|
830
870
|
*/
|
|
831
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
871
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
832
872
|
|
|
833
873
|
/**
|
|
834
874
|
* Payment identifiers (e.g. IBAN, account number, wallet address) through which
|
|
835
875
|
* this account can send or receive funds.
|
|
836
876
|
*/
|
|
837
877
|
financial_addresses: Array<
|
|
838
|
-
| AccountUnfreezeResponse.
|
|
839
|
-
| AccountUnfreezeResponse.
|
|
840
|
-
| AccountUnfreezeResponse.
|
|
841
|
-
| AccountUnfreezeResponse.
|
|
878
|
+
| AccountUnfreezeResponse.IbanFinancialAddress
|
|
879
|
+
| AccountUnfreezeResponse.SortCodeFinancialAddress
|
|
880
|
+
| AccountUnfreezeResponse.AbaFinancialAddress
|
|
881
|
+
| AccountUnfreezeResponse.CryptoWalletFinancialAddress
|
|
842
882
|
>;
|
|
843
883
|
|
|
844
884
|
/**
|
|
@@ -863,7 +903,7 @@ export interface AccountUnfreezeResponse {
|
|
|
863
903
|
}
|
|
864
904
|
|
|
865
905
|
export namespace AccountUnfreezeResponse {
|
|
866
|
-
export interface
|
|
906
|
+
export interface IbanFinancialAddress {
|
|
867
907
|
/**
|
|
868
908
|
* Name of the account holder.
|
|
869
909
|
*/
|
|
@@ -885,7 +925,7 @@ export namespace AccountUnfreezeResponse {
|
|
|
885
925
|
type: 'iban';
|
|
886
926
|
}
|
|
887
927
|
|
|
888
|
-
export interface
|
|
928
|
+
export interface SortCodeFinancialAddress {
|
|
889
929
|
/**
|
|
890
930
|
* Name of the account holder.
|
|
891
931
|
*/
|
|
@@ -907,7 +947,7 @@ export namespace AccountUnfreezeResponse {
|
|
|
907
947
|
type: 'sort_code';
|
|
908
948
|
}
|
|
909
949
|
|
|
910
|
-
export interface
|
|
950
|
+
export interface AbaFinancialAddress {
|
|
911
951
|
/**
|
|
912
952
|
* Name of the account holder.
|
|
913
953
|
*/
|
|
@@ -929,7 +969,7 @@ export namespace AccountUnfreezeResponse {
|
|
|
929
969
|
type: 'aba';
|
|
930
970
|
}
|
|
931
971
|
|
|
932
|
-
export interface
|
|
972
|
+
export interface CryptoWalletFinancialAddress {
|
|
933
973
|
/**
|
|
934
974
|
* Wallet address on the specified blockchain.
|
|
935
975
|
*/
|
|
@@ -938,7 +978,15 @@ export namespace AccountUnfreezeResponse {
|
|
|
938
978
|
/**
|
|
939
979
|
* Blockchain network for the crypto wallet.
|
|
940
980
|
*/
|
|
941
|
-
blockchain:
|
|
981
|
+
blockchain:
|
|
982
|
+
| 'bitcoin'
|
|
983
|
+
| 'ethereum'
|
|
984
|
+
| 'solana'
|
|
985
|
+
| 'polygon'
|
|
986
|
+
| 'bitcoin_testnet4'
|
|
987
|
+
| 'ethereum_sepolia'
|
|
988
|
+
| 'solana_devnet'
|
|
989
|
+
| 'polygon_amoy';
|
|
942
990
|
|
|
943
991
|
/**
|
|
944
992
|
* Discriminator for crypto wallet financial address.
|
|
@@ -961,14 +1009,361 @@ export interface AccountCreateParams {
|
|
|
961
1009
|
/**
|
|
962
1010
|
* Personal information of the account beneficiary.
|
|
963
1011
|
*/
|
|
964
|
-
beneficiary_data: AccountCreateParams.
|
|
1012
|
+
beneficiary_data: AccountCreateParams.UsBeneficiaryData | AccountCreateParams.NonUsBeneficiaryData;
|
|
965
1013
|
}
|
|
966
1014
|
|
|
967
1015
|
export namespace AccountCreateParams {
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
1016
|
+
export interface UsBeneficiaryData {
|
|
1017
|
+
/**
|
|
1018
|
+
* ISO 3166-1 alpha-2 country code of citizenship.
|
|
1019
|
+
*/
|
|
1020
|
+
country_of_citizenship: 'US';
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* Date of birth as an ISO 8601 calendar date (YYYY-MM-DD).
|
|
1024
|
+
*/
|
|
1025
|
+
date_of_birth: string;
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* Government-issued identification with type: "ssn" (Social Security Number,
|
|
1029
|
+
* format ###-##-####) or "itin" (Individual Taxpayer ID, format 9##-##-####).
|
|
1030
|
+
*/
|
|
1031
|
+
identification: UsBeneficiaryData.SsnIdentification | UsBeneficiaryData.ItinIdentification;
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* Full legal name of the account holder.
|
|
1035
|
+
*/
|
|
1036
|
+
legal_name: string;
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* Residential address of the account holder.
|
|
1040
|
+
*/
|
|
1041
|
+
residential_address: UsBeneficiaryData.UsResidentialAddress | UsBeneficiaryData.NonUsResidentialAddress;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
export namespace UsBeneficiaryData {
|
|
1045
|
+
export interface SsnIdentification {
|
|
1046
|
+
type: 'ssn';
|
|
1047
|
+
|
|
1048
|
+
value: string;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
export interface ItinIdentification {
|
|
1052
|
+
type: 'itin';
|
|
1053
|
+
|
|
1054
|
+
value: string;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
export interface UsResidentialAddress {
|
|
1058
|
+
/**
|
|
1059
|
+
* City name.
|
|
1060
|
+
*/
|
|
1061
|
+
city: string;
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* ISO 3166-1 alpha-2 country code.
|
|
1065
|
+
*/
|
|
1066
|
+
country: 'US';
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* Postal or ZIP code.
|
|
1070
|
+
*/
|
|
1071
|
+
postal_code: string;
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
* Two-letter state code.
|
|
1075
|
+
*/
|
|
1076
|
+
state: string;
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* Primary street address.
|
|
1080
|
+
*/
|
|
1081
|
+
street_line_1: string;
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* Secondary street address (apartment, suite, etc.).
|
|
1085
|
+
*/
|
|
1086
|
+
street_line_2?: string;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
export interface NonUsResidentialAddress {
|
|
1090
|
+
/**
|
|
1091
|
+
* City name.
|
|
1092
|
+
*/
|
|
1093
|
+
city: string;
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* ISO 3166-1 alpha-2 country code.
|
|
1097
|
+
*/
|
|
1098
|
+
country:
|
|
1099
|
+
| 'AF'
|
|
1100
|
+
| 'AL'
|
|
1101
|
+
| 'DZ'
|
|
1102
|
+
| 'AS'
|
|
1103
|
+
| 'AD'
|
|
1104
|
+
| 'AO'
|
|
1105
|
+
| 'AI'
|
|
1106
|
+
| 'AQ'
|
|
1107
|
+
| 'AG'
|
|
1108
|
+
| 'AR'
|
|
1109
|
+
| 'AM'
|
|
1110
|
+
| 'AW'
|
|
1111
|
+
| 'AU'
|
|
1112
|
+
| 'AT'
|
|
1113
|
+
| 'AZ'
|
|
1114
|
+
| 'BS'
|
|
1115
|
+
| 'BH'
|
|
1116
|
+
| 'BD'
|
|
1117
|
+
| 'BB'
|
|
1118
|
+
| 'BY'
|
|
1119
|
+
| 'BE'
|
|
1120
|
+
| 'BZ'
|
|
1121
|
+
| 'BJ'
|
|
1122
|
+
| 'BM'
|
|
1123
|
+
| 'BT'
|
|
1124
|
+
| 'BO'
|
|
1125
|
+
| 'BA'
|
|
1126
|
+
| 'BW'
|
|
1127
|
+
| 'BV'
|
|
1128
|
+
| 'BR'
|
|
1129
|
+
| 'IO'
|
|
1130
|
+
| 'BN'
|
|
1131
|
+
| 'BG'
|
|
1132
|
+
| 'BF'
|
|
1133
|
+
| 'BI'
|
|
1134
|
+
| 'KH'
|
|
1135
|
+
| 'CM'
|
|
1136
|
+
| 'CA'
|
|
1137
|
+
| 'CV'
|
|
1138
|
+
| 'KY'
|
|
1139
|
+
| 'CF'
|
|
1140
|
+
| 'TD'
|
|
1141
|
+
| 'CL'
|
|
1142
|
+
| 'CN'
|
|
1143
|
+
| 'CX'
|
|
1144
|
+
| 'CC'
|
|
1145
|
+
| 'CO'
|
|
1146
|
+
| 'KM'
|
|
1147
|
+
| 'CG'
|
|
1148
|
+
| 'CD'
|
|
1149
|
+
| 'CK'
|
|
1150
|
+
| 'CR'
|
|
1151
|
+
| 'CI'
|
|
1152
|
+
| 'HR'
|
|
1153
|
+
| 'CU'
|
|
1154
|
+
| 'CY'
|
|
1155
|
+
| 'CZ'
|
|
1156
|
+
| 'DK'
|
|
1157
|
+
| 'DJ'
|
|
1158
|
+
| 'DM'
|
|
1159
|
+
| 'DO'
|
|
1160
|
+
| 'EC'
|
|
1161
|
+
| 'EG'
|
|
1162
|
+
| 'SV'
|
|
1163
|
+
| 'GQ'
|
|
1164
|
+
| 'ER'
|
|
1165
|
+
| 'EE'
|
|
1166
|
+
| 'ET'
|
|
1167
|
+
| 'FK'
|
|
1168
|
+
| 'FO'
|
|
1169
|
+
| 'FJ'
|
|
1170
|
+
| 'FI'
|
|
1171
|
+
| 'FR'
|
|
1172
|
+
| 'GF'
|
|
1173
|
+
| 'PF'
|
|
1174
|
+
| 'TF'
|
|
1175
|
+
| 'GA'
|
|
1176
|
+
| 'GM'
|
|
1177
|
+
| 'GE'
|
|
1178
|
+
| 'DE'
|
|
1179
|
+
| 'GH'
|
|
1180
|
+
| 'GI'
|
|
1181
|
+
| 'GR'
|
|
1182
|
+
| 'GL'
|
|
1183
|
+
| 'GD'
|
|
1184
|
+
| 'GP'
|
|
1185
|
+
| 'GU'
|
|
1186
|
+
| 'GT'
|
|
1187
|
+
| 'GN'
|
|
1188
|
+
| 'GW'
|
|
1189
|
+
| 'GY'
|
|
1190
|
+
| 'HT'
|
|
1191
|
+
| 'HM'
|
|
1192
|
+
| 'VA'
|
|
1193
|
+
| 'HN'
|
|
1194
|
+
| 'HK'
|
|
1195
|
+
| 'HU'
|
|
1196
|
+
| 'IS'
|
|
1197
|
+
| 'IN'
|
|
1198
|
+
| 'ID'
|
|
1199
|
+
| 'IR'
|
|
1200
|
+
| 'IQ'
|
|
1201
|
+
| 'IE'
|
|
1202
|
+
| 'IL'
|
|
1203
|
+
| 'IT'
|
|
1204
|
+
| 'JM'
|
|
1205
|
+
| 'JP'
|
|
1206
|
+
| 'JO'
|
|
1207
|
+
| 'KZ'
|
|
1208
|
+
| 'KE'
|
|
1209
|
+
| 'KI'
|
|
1210
|
+
| 'KP'
|
|
1211
|
+
| 'KR'
|
|
1212
|
+
| 'KW'
|
|
1213
|
+
| 'KG'
|
|
1214
|
+
| 'LA'
|
|
1215
|
+
| 'LV'
|
|
1216
|
+
| 'LB'
|
|
1217
|
+
| 'LS'
|
|
1218
|
+
| 'LR'
|
|
1219
|
+
| 'LY'
|
|
1220
|
+
| 'LI'
|
|
1221
|
+
| 'LT'
|
|
1222
|
+
| 'LU'
|
|
1223
|
+
| 'MO'
|
|
1224
|
+
| 'MG'
|
|
1225
|
+
| 'MW'
|
|
1226
|
+
| 'MY'
|
|
1227
|
+
| 'MV'
|
|
1228
|
+
| 'ML'
|
|
1229
|
+
| 'MT'
|
|
1230
|
+
| 'MH'
|
|
1231
|
+
| 'MQ'
|
|
1232
|
+
| 'MR'
|
|
1233
|
+
| 'MU'
|
|
1234
|
+
| 'YT'
|
|
1235
|
+
| 'MX'
|
|
1236
|
+
| 'FM'
|
|
1237
|
+
| 'MD'
|
|
1238
|
+
| 'MC'
|
|
1239
|
+
| 'MN'
|
|
1240
|
+
| 'MS'
|
|
1241
|
+
| 'MA'
|
|
1242
|
+
| 'MZ'
|
|
1243
|
+
| 'MM'
|
|
1244
|
+
| 'NA'
|
|
1245
|
+
| 'NR'
|
|
1246
|
+
| 'NP'
|
|
1247
|
+
| 'NL'
|
|
1248
|
+
| 'NC'
|
|
1249
|
+
| 'NZ'
|
|
1250
|
+
| 'NI'
|
|
1251
|
+
| 'NE'
|
|
1252
|
+
| 'NG'
|
|
1253
|
+
| 'NU'
|
|
1254
|
+
| 'NF'
|
|
1255
|
+
| 'MP'
|
|
1256
|
+
| 'MK'
|
|
1257
|
+
| 'NO'
|
|
1258
|
+
| 'OM'
|
|
1259
|
+
| 'PK'
|
|
1260
|
+
| 'PW'
|
|
1261
|
+
| 'PS'
|
|
1262
|
+
| 'PA'
|
|
1263
|
+
| 'PG'
|
|
1264
|
+
| 'PY'
|
|
1265
|
+
| 'PE'
|
|
1266
|
+
| 'PH'
|
|
1267
|
+
| 'PN'
|
|
1268
|
+
| 'PL'
|
|
1269
|
+
| 'PT'
|
|
1270
|
+
| 'PR'
|
|
1271
|
+
| 'QA'
|
|
1272
|
+
| 'RE'
|
|
1273
|
+
| 'RO'
|
|
1274
|
+
| 'RU'
|
|
1275
|
+
| 'RW'
|
|
1276
|
+
| 'SH'
|
|
1277
|
+
| 'KN'
|
|
1278
|
+
| 'LC'
|
|
1279
|
+
| 'PM'
|
|
1280
|
+
| 'VC'
|
|
1281
|
+
| 'WS'
|
|
1282
|
+
| 'SM'
|
|
1283
|
+
| 'ST'
|
|
1284
|
+
| 'SA'
|
|
1285
|
+
| 'SN'
|
|
1286
|
+
| 'SC'
|
|
1287
|
+
| 'SL'
|
|
1288
|
+
| 'SG'
|
|
1289
|
+
| 'SK'
|
|
1290
|
+
| 'SI'
|
|
1291
|
+
| 'SB'
|
|
1292
|
+
| 'SO'
|
|
1293
|
+
| 'ZA'
|
|
1294
|
+
| 'GS'
|
|
1295
|
+
| 'ES'
|
|
1296
|
+
| 'LK'
|
|
1297
|
+
| 'SD'
|
|
1298
|
+
| 'SR'
|
|
1299
|
+
| 'SJ'
|
|
1300
|
+
| 'SZ'
|
|
1301
|
+
| 'SE'
|
|
1302
|
+
| 'CH'
|
|
1303
|
+
| 'SY'
|
|
1304
|
+
| 'TW'
|
|
1305
|
+
| 'TJ'
|
|
1306
|
+
| 'TZ'
|
|
1307
|
+
| 'TH'
|
|
1308
|
+
| 'TL'
|
|
1309
|
+
| 'TG'
|
|
1310
|
+
| 'TK'
|
|
1311
|
+
| 'TO'
|
|
1312
|
+
| 'TT'
|
|
1313
|
+
| 'TN'
|
|
1314
|
+
| 'TR'
|
|
1315
|
+
| 'TM'
|
|
1316
|
+
| 'TC'
|
|
1317
|
+
| 'TV'
|
|
1318
|
+
| 'UG'
|
|
1319
|
+
| 'UA'
|
|
1320
|
+
| 'AE'
|
|
1321
|
+
| 'GB'
|
|
1322
|
+
| 'UM'
|
|
1323
|
+
| 'UY'
|
|
1324
|
+
| 'UZ'
|
|
1325
|
+
| 'VU'
|
|
1326
|
+
| 'VE'
|
|
1327
|
+
| 'VN'
|
|
1328
|
+
| 'VG'
|
|
1329
|
+
| 'VI'
|
|
1330
|
+
| 'WF'
|
|
1331
|
+
| 'EH'
|
|
1332
|
+
| 'YE'
|
|
1333
|
+
| 'ZM'
|
|
1334
|
+
| 'ZW'
|
|
1335
|
+
| 'AX'
|
|
1336
|
+
| 'BQ'
|
|
1337
|
+
| 'CW'
|
|
1338
|
+
| 'GG'
|
|
1339
|
+
| 'IM'
|
|
1340
|
+
| 'JE'
|
|
1341
|
+
| 'ME'
|
|
1342
|
+
| 'BL'
|
|
1343
|
+
| 'MF'
|
|
1344
|
+
| 'RS'
|
|
1345
|
+
| 'SX'
|
|
1346
|
+
| 'SS'
|
|
1347
|
+
| 'XK';
|
|
1348
|
+
|
|
1349
|
+
/**
|
|
1350
|
+
* Postal or ZIP code.
|
|
1351
|
+
*/
|
|
1352
|
+
postal_code: string;
|
|
1353
|
+
|
|
1354
|
+
/**
|
|
1355
|
+
* Primary street address.
|
|
1356
|
+
*/
|
|
1357
|
+
street_line_1: string;
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
* Secondary street address (apartment, suite, etc.).
|
|
1361
|
+
*/
|
|
1362
|
+
street_line_2?: string;
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
export interface NonUsBeneficiaryData {
|
|
972
1367
|
/**
|
|
973
1368
|
* ISO 3166-1 alpha-2 country code of citizenship.
|
|
974
1369
|
*/
|
|
@@ -1196,7 +1591,6 @@ export namespace AccountCreateParams {
|
|
|
1196
1591
|
| 'UA'
|
|
1197
1592
|
| 'AE'
|
|
1198
1593
|
| 'GB'
|
|
1199
|
-
| 'US'
|
|
1200
1594
|
| 'UM'
|
|
1201
1595
|
| 'UY'
|
|
1202
1596
|
| 'UZ'
|
|
@@ -1225,19 +1619,14 @@ export namespace AccountCreateParams {
|
|
|
1225
1619
|
| 'XK';
|
|
1226
1620
|
|
|
1227
1621
|
/**
|
|
1228
|
-
* Date of birth
|
|
1622
|
+
* Date of birth as an ISO 8601 calendar date (YYYY-MM-DD).
|
|
1229
1623
|
*/
|
|
1230
1624
|
date_of_birth: string;
|
|
1231
1625
|
|
|
1232
1626
|
/**
|
|
1233
|
-
* Government-issued identification
|
|
1234
|
-
* ID), "ssn" (Social Security Number, format ###-##-####), or "itin" (Individual
|
|
1235
|
-
* Taxpayer ID, format 9##-##-####).
|
|
1627
|
+
* Government-issued identification with type: "id" (generic government-issued ID).
|
|
1236
1628
|
*/
|
|
1237
|
-
identification:
|
|
1238
|
-
| BeneficiaryData.UnionMember0
|
|
1239
|
-
| BeneficiaryData.UnionMember1
|
|
1240
|
-
| BeneficiaryData.UnionMember2;
|
|
1629
|
+
identification: NonUsBeneficiaryData.Identification;
|
|
1241
1630
|
|
|
1242
1631
|
/**
|
|
1243
1632
|
* Full legal name of the account holder.
|
|
@@ -1247,32 +1636,54 @@ export namespace AccountCreateParams {
|
|
|
1247
1636
|
/**
|
|
1248
1637
|
* Residential address of the account holder.
|
|
1249
1638
|
*/
|
|
1250
|
-
residential_address:
|
|
1639
|
+
residential_address:
|
|
1640
|
+
| NonUsBeneficiaryData.UsResidentialAddress
|
|
1641
|
+
| NonUsBeneficiaryData.NonUsResidentialAddress;
|
|
1251
1642
|
}
|
|
1252
1643
|
|
|
1253
|
-
export namespace
|
|
1254
|
-
|
|
1644
|
+
export namespace NonUsBeneficiaryData {
|
|
1645
|
+
/**
|
|
1646
|
+
* Government-issued identification with type: "id" (generic government-issued ID).
|
|
1647
|
+
*/
|
|
1648
|
+
export interface Identification {
|
|
1255
1649
|
type: 'id';
|
|
1256
1650
|
|
|
1257
1651
|
value: string;
|
|
1258
1652
|
}
|
|
1259
1653
|
|
|
1260
|
-
export interface
|
|
1261
|
-
|
|
1654
|
+
export interface UsResidentialAddress {
|
|
1655
|
+
/**
|
|
1656
|
+
* City name.
|
|
1657
|
+
*/
|
|
1658
|
+
city: string;
|
|
1262
1659
|
|
|
1263
|
-
|
|
1264
|
-
|
|
1660
|
+
/**
|
|
1661
|
+
* ISO 3166-1 alpha-2 country code.
|
|
1662
|
+
*/
|
|
1663
|
+
country: 'US';
|
|
1265
1664
|
|
|
1266
|
-
|
|
1267
|
-
|
|
1665
|
+
/**
|
|
1666
|
+
* Postal or ZIP code.
|
|
1667
|
+
*/
|
|
1668
|
+
postal_code: string;
|
|
1268
1669
|
|
|
1269
|
-
|
|
1670
|
+
/**
|
|
1671
|
+
* Two-letter state code.
|
|
1672
|
+
*/
|
|
1673
|
+
state: string;
|
|
1674
|
+
|
|
1675
|
+
/**
|
|
1676
|
+
* Primary street address.
|
|
1677
|
+
*/
|
|
1678
|
+
street_line_1: string;
|
|
1679
|
+
|
|
1680
|
+
/**
|
|
1681
|
+
* Secondary street address (apartment, suite, etc.).
|
|
1682
|
+
*/
|
|
1683
|
+
street_line_2?: string;
|
|
1270
1684
|
}
|
|
1271
1685
|
|
|
1272
|
-
|
|
1273
|
-
* Residential address of the account holder.
|
|
1274
|
-
*/
|
|
1275
|
-
export interface ResidentialAddress {
|
|
1686
|
+
export interface NonUsResidentialAddress {
|
|
1276
1687
|
/**
|
|
1277
1688
|
* City name.
|
|
1278
1689
|
*/
|
|
@@ -1505,7 +1916,6 @@ export namespace AccountCreateParams {
|
|
|
1505
1916
|
| 'UA'
|
|
1506
1917
|
| 'AE'
|
|
1507
1918
|
| 'GB'
|
|
1508
|
-
| 'US'
|
|
1509
1919
|
| 'UM'
|
|
1510
1920
|
| 'UY'
|
|
1511
1921
|
| 'UZ'
|
|
@@ -1543,11 +1953,6 @@ export namespace AccountCreateParams {
|
|
|
1543
1953
|
*/
|
|
1544
1954
|
street_line_1: string;
|
|
1545
1955
|
|
|
1546
|
-
/**
|
|
1547
|
-
* Two-letter state code.
|
|
1548
|
-
*/
|
|
1549
|
-
state?: string;
|
|
1550
|
-
|
|
1551
1956
|
/**
|
|
1552
1957
|
* Secondary street address (apartment, suite, etc.).
|
|
1553
1958
|
*/
|