@augustusbank/typescript-sdk 0.27.0 → 0.29.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 +14 -0
- package/package.json +1 -1
- package/resources/accounts.d.mts +197 -120
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +197 -120
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js +7 -2
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs +7 -2
- package/resources/accounts.mjs.map +1 -1
- package/resources/counterparties.d.mts +243 -97
- package/resources/counterparties.d.mts.map +1 -1
- package/resources/counterparties.d.ts +243 -97
- package/resources/counterparties.d.ts.map +1 -1
- package/resources/counterparties.js +3 -2
- package/resources/counterparties.js.map +1 -1
- package/resources/counterparties.mjs +3 -2
- package/resources/counterparties.mjs.map +1 -1
- package/resources/payouts.d.mts +1 -1
- package/resources/payouts.d.ts +1 -1
- package/resources/payouts.js +1 -1
- package/resources/payouts.mjs +1 -1
- package/resources/simulations/account-programs.d.mts +37 -22
- package/resources/simulations/account-programs.d.mts.map +1 -1
- package/resources/simulations/account-programs.d.ts +37 -22
- package/resources/simulations/account-programs.d.ts.map +1 -1
- package/resources/simulations/account-programs.js +3 -2
- package/resources/simulations/account-programs.js.map +1 -1
- package/resources/simulations/account-programs.mjs +3 -2
- package/resources/simulations/account-programs.mjs.map +1 -1
- package/resources/simulations/accounts.d.mts +37 -22
- package/resources/simulations/accounts.d.mts.map +1 -1
- package/resources/simulations/accounts.d.ts +37 -22
- package/resources/simulations/accounts.d.ts.map +1 -1
- package/resources/simulations/accounts.js +4 -3
- package/resources/simulations/accounts.js.map +1 -1
- package/resources/simulations/accounts.mjs +4 -3
- package/resources/simulations/accounts.mjs.map +1 -1
- package/resources/simulations/deposits.d.mts +41 -20
- package/resources/simulations/deposits.d.mts.map +1 -1
- package/resources/simulations/deposits.d.ts +41 -20
- package/resources/simulations/deposits.d.ts.map +1 -1
- package/resources/simulations/deposits.js +1 -1
- package/resources/simulations/deposits.mjs +1 -1
- package/resources/transactions.d.mts +62 -38
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +62 -38
- package/resources/transactions.d.ts.map +1 -1
- package/resources/webhooks.d.mts +258 -114
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +258 -114
- package/resources/webhooks.d.ts.map +1 -1
- package/src/resources/accounts.ts +228 -133
- package/src/resources/counterparties.ts +286 -107
- package/src/resources/payouts.ts +1 -1
- package/src/resources/simulations/account-programs.ts +42 -25
- package/src/resources/simulations/accounts.ts +42 -25
- package/src/resources/simulations/deposits.ts +46 -22
- package/src/resources/transactions.ts +72 -42
- package/src/resources/webhooks.ts +306 -126
- 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
|
@@ -43,13 +43,18 @@ export class Accounts extends APIResource {
|
|
|
43
43
|
* @example
|
|
44
44
|
* ```ts
|
|
45
45
|
* // Automatically fetches more pages as needed.
|
|
46
|
-
* for await (const accountListResponse of client.accounts.list(
|
|
46
|
+
* for await (const accountListResponse of client.accounts.list(
|
|
47
|
+
* {
|
|
48
|
+
* account_program_id:
|
|
49
|
+
* '550e8400-e29b-41d4-a716-446655440002',
|
|
50
|
+
* },
|
|
51
|
+
* )) {
|
|
47
52
|
* // ...
|
|
48
53
|
* }
|
|
49
54
|
* ```
|
|
50
55
|
*/
|
|
51
56
|
list(
|
|
52
|
-
query: AccountListParams
|
|
57
|
+
query: AccountListParams,
|
|
53
58
|
options?: RequestOptions,
|
|
54
59
|
): PagePromise<AccountListResponsesCursorPage, AccountListResponse> {
|
|
55
60
|
return this._client.getAPIList('/v1/accounts', CursorPage<AccountListResponse>, { query, ...options });
|
|
@@ -145,9 +150,9 @@ export interface AccountCreateResponse {
|
|
|
145
150
|
* this account can send or receive funds.
|
|
146
151
|
*/
|
|
147
152
|
financial_addresses: Array<
|
|
153
|
+
| AccountCreateResponse.AbaFinancialAddress
|
|
148
154
|
| AccountCreateResponse.IbanFinancialAddress
|
|
149
155
|
| AccountCreateResponse.SortCodeFinancialAddress
|
|
150
|
-
| AccountCreateResponse.AbaFinancialAddress
|
|
151
156
|
| AccountCreateResponse.BicFinancialAddress
|
|
152
157
|
| AccountCreateResponse.CryptoWalletFinancialAddress
|
|
153
158
|
>;
|
|
@@ -181,70 +186,80 @@ export interface AccountCreateResponse {
|
|
|
181
186
|
}
|
|
182
187
|
|
|
183
188
|
export namespace AccountCreateResponse {
|
|
184
|
-
export interface
|
|
189
|
+
export interface AbaFinancialAddress {
|
|
185
190
|
/**
|
|
186
191
|
* Name of the account holder.
|
|
187
192
|
*/
|
|
188
193
|
account_holder_name: string;
|
|
189
194
|
|
|
190
195
|
/**
|
|
191
|
-
* Bank
|
|
196
|
+
* Bank account number.
|
|
192
197
|
*/
|
|
193
|
-
|
|
198
|
+
account_number: string;
|
|
194
199
|
|
|
195
200
|
/**
|
|
196
|
-
*
|
|
201
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
197
202
|
*/
|
|
198
|
-
|
|
203
|
+
account_type: 'checking' | 'savings' | null;
|
|
199
204
|
|
|
200
205
|
/**
|
|
201
|
-
*
|
|
206
|
+
* ABA routing number (9 digits).
|
|
202
207
|
*/
|
|
203
|
-
|
|
208
|
+
routing_number: string;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Discriminator for ABA wire financial address.
|
|
212
|
+
*/
|
|
213
|
+
type: 'aba';
|
|
204
214
|
}
|
|
205
215
|
|
|
206
|
-
export interface
|
|
216
|
+
export interface IbanFinancialAddress {
|
|
207
217
|
/**
|
|
208
218
|
* Name of the account holder.
|
|
209
219
|
*/
|
|
210
220
|
account_holder_name: string;
|
|
211
221
|
|
|
212
222
|
/**
|
|
213
|
-
*
|
|
223
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
214
224
|
*/
|
|
215
|
-
|
|
225
|
+
account_type: 'checking' | 'savings' | null;
|
|
216
226
|
|
|
217
227
|
/**
|
|
218
|
-
*
|
|
228
|
+
* Bank Identifier Code, or null if not provided.
|
|
219
229
|
*/
|
|
220
|
-
|
|
230
|
+
bic: string | null;
|
|
221
231
|
|
|
222
232
|
/**
|
|
223
|
-
*
|
|
233
|
+
* International Bank Account Number.
|
|
224
234
|
*/
|
|
225
|
-
|
|
235
|
+
iban: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Discriminator for IBAN financial address.
|
|
239
|
+
*/
|
|
240
|
+
type: 'iban';
|
|
226
241
|
}
|
|
227
242
|
|
|
228
|
-
export interface
|
|
243
|
+
export interface SortCodeFinancialAddress {
|
|
229
244
|
/**
|
|
230
245
|
* Name of the account holder.
|
|
231
246
|
*/
|
|
232
247
|
account_holder_name: string;
|
|
233
248
|
|
|
234
249
|
/**
|
|
235
|
-
*
|
|
250
|
+
* UK account number (8 digits).
|
|
236
251
|
*/
|
|
237
252
|
account_number: string;
|
|
238
253
|
|
|
239
254
|
/**
|
|
240
|
-
*
|
|
255
|
+
* UK sort code (6 digits).
|
|
241
256
|
*/
|
|
242
|
-
|
|
257
|
+
sort_code: string;
|
|
243
258
|
|
|
244
259
|
/**
|
|
245
|
-
* Discriminator for
|
|
260
|
+
* Discriminator for UK sort code financial address.
|
|
246
261
|
*/
|
|
247
|
-
type: '
|
|
262
|
+
type: 'sort_code';
|
|
248
263
|
}
|
|
249
264
|
|
|
250
265
|
export interface BicFinancialAddress {
|
|
@@ -258,6 +273,11 @@ export namespace AccountCreateResponse {
|
|
|
258
273
|
*/
|
|
259
274
|
account_number: string;
|
|
260
275
|
|
|
276
|
+
/**
|
|
277
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
278
|
+
*/
|
|
279
|
+
account_type: 'checking' | 'savings' | null;
|
|
280
|
+
|
|
261
281
|
/**
|
|
262
282
|
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
263
283
|
*/
|
|
@@ -327,9 +347,9 @@ export interface AccountRetrieveResponse {
|
|
|
327
347
|
* this account can send or receive funds.
|
|
328
348
|
*/
|
|
329
349
|
financial_addresses: Array<
|
|
350
|
+
| AccountRetrieveResponse.AbaFinancialAddress
|
|
330
351
|
| AccountRetrieveResponse.IbanFinancialAddress
|
|
331
352
|
| AccountRetrieveResponse.SortCodeFinancialAddress
|
|
332
|
-
| AccountRetrieveResponse.AbaFinancialAddress
|
|
333
353
|
| AccountRetrieveResponse.BicFinancialAddress
|
|
334
354
|
| AccountRetrieveResponse.CryptoWalletFinancialAddress
|
|
335
355
|
>;
|
|
@@ -363,70 +383,80 @@ export interface AccountRetrieveResponse {
|
|
|
363
383
|
}
|
|
364
384
|
|
|
365
385
|
export namespace AccountRetrieveResponse {
|
|
366
|
-
export interface
|
|
386
|
+
export interface AbaFinancialAddress {
|
|
367
387
|
/**
|
|
368
388
|
* Name of the account holder.
|
|
369
389
|
*/
|
|
370
390
|
account_holder_name: string;
|
|
371
391
|
|
|
372
392
|
/**
|
|
373
|
-
* Bank
|
|
393
|
+
* Bank account number.
|
|
374
394
|
*/
|
|
375
|
-
|
|
395
|
+
account_number: string;
|
|
376
396
|
|
|
377
397
|
/**
|
|
378
|
-
*
|
|
398
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
379
399
|
*/
|
|
380
|
-
|
|
400
|
+
account_type: 'checking' | 'savings' | null;
|
|
381
401
|
|
|
382
402
|
/**
|
|
383
|
-
*
|
|
403
|
+
* ABA routing number (9 digits).
|
|
384
404
|
*/
|
|
385
|
-
|
|
405
|
+
routing_number: string;
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Discriminator for ABA wire financial address.
|
|
409
|
+
*/
|
|
410
|
+
type: 'aba';
|
|
386
411
|
}
|
|
387
412
|
|
|
388
|
-
export interface
|
|
413
|
+
export interface IbanFinancialAddress {
|
|
389
414
|
/**
|
|
390
415
|
* Name of the account holder.
|
|
391
416
|
*/
|
|
392
417
|
account_holder_name: string;
|
|
393
418
|
|
|
394
419
|
/**
|
|
395
|
-
*
|
|
420
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
396
421
|
*/
|
|
397
|
-
|
|
422
|
+
account_type: 'checking' | 'savings' | null;
|
|
398
423
|
|
|
399
424
|
/**
|
|
400
|
-
*
|
|
425
|
+
* Bank Identifier Code, or null if not provided.
|
|
401
426
|
*/
|
|
402
|
-
|
|
427
|
+
bic: string | null;
|
|
403
428
|
|
|
404
429
|
/**
|
|
405
|
-
*
|
|
430
|
+
* International Bank Account Number.
|
|
406
431
|
*/
|
|
407
|
-
|
|
432
|
+
iban: string;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Discriminator for IBAN financial address.
|
|
436
|
+
*/
|
|
437
|
+
type: 'iban';
|
|
408
438
|
}
|
|
409
439
|
|
|
410
|
-
export interface
|
|
440
|
+
export interface SortCodeFinancialAddress {
|
|
411
441
|
/**
|
|
412
442
|
* Name of the account holder.
|
|
413
443
|
*/
|
|
414
444
|
account_holder_name: string;
|
|
415
445
|
|
|
416
446
|
/**
|
|
417
|
-
*
|
|
447
|
+
* UK account number (8 digits).
|
|
418
448
|
*/
|
|
419
449
|
account_number: string;
|
|
420
450
|
|
|
421
451
|
/**
|
|
422
|
-
*
|
|
452
|
+
* UK sort code (6 digits).
|
|
423
453
|
*/
|
|
424
|
-
|
|
454
|
+
sort_code: string;
|
|
425
455
|
|
|
426
456
|
/**
|
|
427
|
-
* Discriminator for
|
|
457
|
+
* Discriminator for UK sort code financial address.
|
|
428
458
|
*/
|
|
429
|
-
type: '
|
|
459
|
+
type: 'sort_code';
|
|
430
460
|
}
|
|
431
461
|
|
|
432
462
|
export interface BicFinancialAddress {
|
|
@@ -440,6 +470,11 @@ export namespace AccountRetrieveResponse {
|
|
|
440
470
|
*/
|
|
441
471
|
account_number: string;
|
|
442
472
|
|
|
473
|
+
/**
|
|
474
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
475
|
+
*/
|
|
476
|
+
account_type: 'checking' | 'savings' | null;
|
|
477
|
+
|
|
443
478
|
/**
|
|
444
479
|
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
445
480
|
*/
|
|
@@ -509,9 +544,9 @@ export interface AccountListResponse {
|
|
|
509
544
|
* this account can send or receive funds.
|
|
510
545
|
*/
|
|
511
546
|
financial_addresses: Array<
|
|
547
|
+
| AccountListResponse.AbaFinancialAddress
|
|
512
548
|
| AccountListResponse.IbanFinancialAddress
|
|
513
549
|
| AccountListResponse.SortCodeFinancialAddress
|
|
514
|
-
| AccountListResponse.AbaFinancialAddress
|
|
515
550
|
| AccountListResponse.BicFinancialAddress
|
|
516
551
|
| AccountListResponse.CryptoWalletFinancialAddress
|
|
517
552
|
>;
|
|
@@ -545,70 +580,80 @@ export interface AccountListResponse {
|
|
|
545
580
|
}
|
|
546
581
|
|
|
547
582
|
export namespace AccountListResponse {
|
|
548
|
-
export interface
|
|
583
|
+
export interface AbaFinancialAddress {
|
|
549
584
|
/**
|
|
550
585
|
* Name of the account holder.
|
|
551
586
|
*/
|
|
552
587
|
account_holder_name: string;
|
|
553
588
|
|
|
554
589
|
/**
|
|
555
|
-
* Bank
|
|
590
|
+
* Bank account number.
|
|
556
591
|
*/
|
|
557
|
-
|
|
592
|
+
account_number: string;
|
|
558
593
|
|
|
559
594
|
/**
|
|
560
|
-
*
|
|
595
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
561
596
|
*/
|
|
562
|
-
|
|
597
|
+
account_type: 'checking' | 'savings' | null;
|
|
563
598
|
|
|
564
599
|
/**
|
|
565
|
-
*
|
|
600
|
+
* ABA routing number (9 digits).
|
|
566
601
|
*/
|
|
567
|
-
|
|
602
|
+
routing_number: string;
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* Discriminator for ABA wire financial address.
|
|
606
|
+
*/
|
|
607
|
+
type: 'aba';
|
|
568
608
|
}
|
|
569
609
|
|
|
570
|
-
export interface
|
|
610
|
+
export interface IbanFinancialAddress {
|
|
571
611
|
/**
|
|
572
612
|
* Name of the account holder.
|
|
573
613
|
*/
|
|
574
614
|
account_holder_name: string;
|
|
575
615
|
|
|
576
616
|
/**
|
|
577
|
-
*
|
|
617
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
578
618
|
*/
|
|
579
|
-
|
|
619
|
+
account_type: 'checking' | 'savings' | null;
|
|
580
620
|
|
|
581
621
|
/**
|
|
582
|
-
*
|
|
622
|
+
* Bank Identifier Code, or null if not provided.
|
|
583
623
|
*/
|
|
584
|
-
|
|
624
|
+
bic: string | null;
|
|
585
625
|
|
|
586
626
|
/**
|
|
587
|
-
*
|
|
627
|
+
* International Bank Account Number.
|
|
588
628
|
*/
|
|
589
|
-
|
|
629
|
+
iban: string;
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* Discriminator for IBAN financial address.
|
|
633
|
+
*/
|
|
634
|
+
type: 'iban';
|
|
590
635
|
}
|
|
591
636
|
|
|
592
|
-
export interface
|
|
637
|
+
export interface SortCodeFinancialAddress {
|
|
593
638
|
/**
|
|
594
639
|
* Name of the account holder.
|
|
595
640
|
*/
|
|
596
641
|
account_holder_name: string;
|
|
597
642
|
|
|
598
643
|
/**
|
|
599
|
-
*
|
|
644
|
+
* UK account number (8 digits).
|
|
600
645
|
*/
|
|
601
646
|
account_number: string;
|
|
602
647
|
|
|
603
648
|
/**
|
|
604
|
-
*
|
|
649
|
+
* UK sort code (6 digits).
|
|
605
650
|
*/
|
|
606
|
-
|
|
651
|
+
sort_code: string;
|
|
607
652
|
|
|
608
653
|
/**
|
|
609
|
-
* Discriminator for
|
|
654
|
+
* Discriminator for UK sort code financial address.
|
|
610
655
|
*/
|
|
611
|
-
type: '
|
|
656
|
+
type: 'sort_code';
|
|
612
657
|
}
|
|
613
658
|
|
|
614
659
|
export interface BicFinancialAddress {
|
|
@@ -622,6 +667,11 @@ export namespace AccountListResponse {
|
|
|
622
667
|
*/
|
|
623
668
|
account_number: string;
|
|
624
669
|
|
|
670
|
+
/**
|
|
671
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
672
|
+
*/
|
|
673
|
+
account_type: 'checking' | 'savings' | null;
|
|
674
|
+
|
|
625
675
|
/**
|
|
626
676
|
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
627
677
|
*/
|
|
@@ -691,9 +741,9 @@ export interface AccountCloseResponse {
|
|
|
691
741
|
* this account can send or receive funds.
|
|
692
742
|
*/
|
|
693
743
|
financial_addresses: Array<
|
|
744
|
+
| AccountCloseResponse.AbaFinancialAddress
|
|
694
745
|
| AccountCloseResponse.IbanFinancialAddress
|
|
695
746
|
| AccountCloseResponse.SortCodeFinancialAddress
|
|
696
|
-
| AccountCloseResponse.AbaFinancialAddress
|
|
697
747
|
| AccountCloseResponse.BicFinancialAddress
|
|
698
748
|
| AccountCloseResponse.CryptoWalletFinancialAddress
|
|
699
749
|
>;
|
|
@@ -727,70 +777,80 @@ export interface AccountCloseResponse {
|
|
|
727
777
|
}
|
|
728
778
|
|
|
729
779
|
export namespace AccountCloseResponse {
|
|
730
|
-
export interface
|
|
780
|
+
export interface AbaFinancialAddress {
|
|
731
781
|
/**
|
|
732
782
|
* Name of the account holder.
|
|
733
783
|
*/
|
|
734
784
|
account_holder_name: string;
|
|
735
785
|
|
|
736
786
|
/**
|
|
737
|
-
* Bank
|
|
787
|
+
* Bank account number.
|
|
738
788
|
*/
|
|
739
|
-
|
|
789
|
+
account_number: string;
|
|
740
790
|
|
|
741
791
|
/**
|
|
742
|
-
*
|
|
792
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
743
793
|
*/
|
|
744
|
-
|
|
794
|
+
account_type: 'checking' | 'savings' | null;
|
|
745
795
|
|
|
746
796
|
/**
|
|
747
|
-
*
|
|
797
|
+
* ABA routing number (9 digits).
|
|
748
798
|
*/
|
|
749
|
-
|
|
799
|
+
routing_number: string;
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* Discriminator for ABA wire financial address.
|
|
803
|
+
*/
|
|
804
|
+
type: 'aba';
|
|
750
805
|
}
|
|
751
806
|
|
|
752
|
-
export interface
|
|
807
|
+
export interface IbanFinancialAddress {
|
|
753
808
|
/**
|
|
754
809
|
* Name of the account holder.
|
|
755
810
|
*/
|
|
756
811
|
account_holder_name: string;
|
|
757
812
|
|
|
758
813
|
/**
|
|
759
|
-
*
|
|
814
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
760
815
|
*/
|
|
761
|
-
|
|
816
|
+
account_type: 'checking' | 'savings' | null;
|
|
762
817
|
|
|
763
818
|
/**
|
|
764
|
-
*
|
|
819
|
+
* Bank Identifier Code, or null if not provided.
|
|
765
820
|
*/
|
|
766
|
-
|
|
821
|
+
bic: string | null;
|
|
767
822
|
|
|
768
823
|
/**
|
|
769
|
-
*
|
|
824
|
+
* International Bank Account Number.
|
|
770
825
|
*/
|
|
771
|
-
|
|
826
|
+
iban: string;
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* Discriminator for IBAN financial address.
|
|
830
|
+
*/
|
|
831
|
+
type: 'iban';
|
|
772
832
|
}
|
|
773
833
|
|
|
774
|
-
export interface
|
|
834
|
+
export interface SortCodeFinancialAddress {
|
|
775
835
|
/**
|
|
776
836
|
* Name of the account holder.
|
|
777
837
|
*/
|
|
778
838
|
account_holder_name: string;
|
|
779
839
|
|
|
780
840
|
/**
|
|
781
|
-
*
|
|
841
|
+
* UK account number (8 digits).
|
|
782
842
|
*/
|
|
783
843
|
account_number: string;
|
|
784
844
|
|
|
785
845
|
/**
|
|
786
|
-
*
|
|
846
|
+
* UK sort code (6 digits).
|
|
787
847
|
*/
|
|
788
|
-
|
|
848
|
+
sort_code: string;
|
|
789
849
|
|
|
790
850
|
/**
|
|
791
|
-
* Discriminator for
|
|
851
|
+
* Discriminator for UK sort code financial address.
|
|
792
852
|
*/
|
|
793
|
-
type: '
|
|
853
|
+
type: 'sort_code';
|
|
794
854
|
}
|
|
795
855
|
|
|
796
856
|
export interface BicFinancialAddress {
|
|
@@ -804,6 +864,11 @@ export namespace AccountCloseResponse {
|
|
|
804
864
|
*/
|
|
805
865
|
account_number: string;
|
|
806
866
|
|
|
867
|
+
/**
|
|
868
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
869
|
+
*/
|
|
870
|
+
account_type: 'checking' | 'savings' | null;
|
|
871
|
+
|
|
807
872
|
/**
|
|
808
873
|
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
809
874
|
*/
|
|
@@ -873,9 +938,9 @@ export interface AccountFreezeResponse {
|
|
|
873
938
|
* this account can send or receive funds.
|
|
874
939
|
*/
|
|
875
940
|
financial_addresses: Array<
|
|
941
|
+
| AccountFreezeResponse.AbaFinancialAddress
|
|
876
942
|
| AccountFreezeResponse.IbanFinancialAddress
|
|
877
943
|
| AccountFreezeResponse.SortCodeFinancialAddress
|
|
878
|
-
| AccountFreezeResponse.AbaFinancialAddress
|
|
879
944
|
| AccountFreezeResponse.BicFinancialAddress
|
|
880
945
|
| AccountFreezeResponse.CryptoWalletFinancialAddress
|
|
881
946
|
>;
|
|
@@ -909,70 +974,80 @@ export interface AccountFreezeResponse {
|
|
|
909
974
|
}
|
|
910
975
|
|
|
911
976
|
export namespace AccountFreezeResponse {
|
|
912
|
-
export interface
|
|
977
|
+
export interface AbaFinancialAddress {
|
|
913
978
|
/**
|
|
914
979
|
* Name of the account holder.
|
|
915
980
|
*/
|
|
916
981
|
account_holder_name: string;
|
|
917
982
|
|
|
918
983
|
/**
|
|
919
|
-
* Bank
|
|
984
|
+
* Bank account number.
|
|
920
985
|
*/
|
|
921
|
-
|
|
986
|
+
account_number: string;
|
|
922
987
|
|
|
923
988
|
/**
|
|
924
|
-
*
|
|
989
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
925
990
|
*/
|
|
926
|
-
|
|
991
|
+
account_type: 'checking' | 'savings' | null;
|
|
927
992
|
|
|
928
993
|
/**
|
|
929
|
-
*
|
|
994
|
+
* ABA routing number (9 digits).
|
|
930
995
|
*/
|
|
931
|
-
|
|
996
|
+
routing_number: string;
|
|
997
|
+
|
|
998
|
+
/**
|
|
999
|
+
* Discriminator for ABA wire financial address.
|
|
1000
|
+
*/
|
|
1001
|
+
type: 'aba';
|
|
932
1002
|
}
|
|
933
1003
|
|
|
934
|
-
export interface
|
|
1004
|
+
export interface IbanFinancialAddress {
|
|
935
1005
|
/**
|
|
936
1006
|
* Name of the account holder.
|
|
937
1007
|
*/
|
|
938
1008
|
account_holder_name: string;
|
|
939
1009
|
|
|
940
1010
|
/**
|
|
941
|
-
*
|
|
1011
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
942
1012
|
*/
|
|
943
|
-
|
|
1013
|
+
account_type: 'checking' | 'savings' | null;
|
|
944
1014
|
|
|
945
1015
|
/**
|
|
946
|
-
*
|
|
1016
|
+
* Bank Identifier Code, or null if not provided.
|
|
947
1017
|
*/
|
|
948
|
-
|
|
1018
|
+
bic: string | null;
|
|
949
1019
|
|
|
950
1020
|
/**
|
|
951
|
-
*
|
|
1021
|
+
* International Bank Account Number.
|
|
952
1022
|
*/
|
|
953
|
-
|
|
1023
|
+
iban: string;
|
|
1024
|
+
|
|
1025
|
+
/**
|
|
1026
|
+
* Discriminator for IBAN financial address.
|
|
1027
|
+
*/
|
|
1028
|
+
type: 'iban';
|
|
954
1029
|
}
|
|
955
1030
|
|
|
956
|
-
export interface
|
|
1031
|
+
export interface SortCodeFinancialAddress {
|
|
957
1032
|
/**
|
|
958
1033
|
* Name of the account holder.
|
|
959
1034
|
*/
|
|
960
1035
|
account_holder_name: string;
|
|
961
1036
|
|
|
962
1037
|
/**
|
|
963
|
-
*
|
|
1038
|
+
* UK account number (8 digits).
|
|
964
1039
|
*/
|
|
965
1040
|
account_number: string;
|
|
966
1041
|
|
|
967
1042
|
/**
|
|
968
|
-
*
|
|
1043
|
+
* UK sort code (6 digits).
|
|
969
1044
|
*/
|
|
970
|
-
|
|
1045
|
+
sort_code: string;
|
|
971
1046
|
|
|
972
1047
|
/**
|
|
973
|
-
* Discriminator for
|
|
1048
|
+
* Discriminator for UK sort code financial address.
|
|
974
1049
|
*/
|
|
975
|
-
type: '
|
|
1050
|
+
type: 'sort_code';
|
|
976
1051
|
}
|
|
977
1052
|
|
|
978
1053
|
export interface BicFinancialAddress {
|
|
@@ -986,6 +1061,11 @@ export namespace AccountFreezeResponse {
|
|
|
986
1061
|
*/
|
|
987
1062
|
account_number: string;
|
|
988
1063
|
|
|
1064
|
+
/**
|
|
1065
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
1066
|
+
*/
|
|
1067
|
+
account_type: 'checking' | 'savings' | null;
|
|
1068
|
+
|
|
989
1069
|
/**
|
|
990
1070
|
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
991
1071
|
*/
|
|
@@ -1093,9 +1173,9 @@ export interface AccountUnfreezeResponse {
|
|
|
1093
1173
|
* this account can send or receive funds.
|
|
1094
1174
|
*/
|
|
1095
1175
|
financial_addresses: Array<
|
|
1176
|
+
| AccountUnfreezeResponse.AbaFinancialAddress
|
|
1096
1177
|
| AccountUnfreezeResponse.IbanFinancialAddress
|
|
1097
1178
|
| AccountUnfreezeResponse.SortCodeFinancialAddress
|
|
1098
|
-
| AccountUnfreezeResponse.AbaFinancialAddress
|
|
1099
1179
|
| AccountUnfreezeResponse.BicFinancialAddress
|
|
1100
1180
|
| AccountUnfreezeResponse.CryptoWalletFinancialAddress
|
|
1101
1181
|
>;
|
|
@@ -1129,70 +1209,80 @@ export interface AccountUnfreezeResponse {
|
|
|
1129
1209
|
}
|
|
1130
1210
|
|
|
1131
1211
|
export namespace AccountUnfreezeResponse {
|
|
1132
|
-
export interface
|
|
1212
|
+
export interface AbaFinancialAddress {
|
|
1133
1213
|
/**
|
|
1134
1214
|
* Name of the account holder.
|
|
1135
1215
|
*/
|
|
1136
1216
|
account_holder_name: string;
|
|
1137
1217
|
|
|
1138
1218
|
/**
|
|
1139
|
-
* Bank
|
|
1219
|
+
* Bank account number.
|
|
1140
1220
|
*/
|
|
1141
|
-
|
|
1221
|
+
account_number: string;
|
|
1142
1222
|
|
|
1143
1223
|
/**
|
|
1144
|
-
*
|
|
1224
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
1145
1225
|
*/
|
|
1146
|
-
|
|
1226
|
+
account_type: 'checking' | 'savings' | null;
|
|
1147
1227
|
|
|
1148
1228
|
/**
|
|
1149
|
-
*
|
|
1229
|
+
* ABA routing number (9 digits).
|
|
1150
1230
|
*/
|
|
1151
|
-
|
|
1231
|
+
routing_number: string;
|
|
1232
|
+
|
|
1233
|
+
/**
|
|
1234
|
+
* Discriminator for ABA wire financial address.
|
|
1235
|
+
*/
|
|
1236
|
+
type: 'aba';
|
|
1152
1237
|
}
|
|
1153
1238
|
|
|
1154
|
-
export interface
|
|
1239
|
+
export interface IbanFinancialAddress {
|
|
1155
1240
|
/**
|
|
1156
1241
|
* Name of the account holder.
|
|
1157
1242
|
*/
|
|
1158
1243
|
account_holder_name: string;
|
|
1159
1244
|
|
|
1160
1245
|
/**
|
|
1161
|
-
*
|
|
1246
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
1162
1247
|
*/
|
|
1163
|
-
|
|
1248
|
+
account_type: 'checking' | 'savings' | null;
|
|
1164
1249
|
|
|
1165
1250
|
/**
|
|
1166
|
-
*
|
|
1251
|
+
* Bank Identifier Code, or null if not provided.
|
|
1167
1252
|
*/
|
|
1168
|
-
|
|
1253
|
+
bic: string | null;
|
|
1169
1254
|
|
|
1170
1255
|
/**
|
|
1171
|
-
*
|
|
1256
|
+
* International Bank Account Number.
|
|
1172
1257
|
*/
|
|
1173
|
-
|
|
1258
|
+
iban: string;
|
|
1259
|
+
|
|
1260
|
+
/**
|
|
1261
|
+
* Discriminator for IBAN financial address.
|
|
1262
|
+
*/
|
|
1263
|
+
type: 'iban';
|
|
1174
1264
|
}
|
|
1175
1265
|
|
|
1176
|
-
export interface
|
|
1266
|
+
export interface SortCodeFinancialAddress {
|
|
1177
1267
|
/**
|
|
1178
1268
|
* Name of the account holder.
|
|
1179
1269
|
*/
|
|
1180
1270
|
account_holder_name: string;
|
|
1181
1271
|
|
|
1182
1272
|
/**
|
|
1183
|
-
*
|
|
1273
|
+
* UK account number (8 digits).
|
|
1184
1274
|
*/
|
|
1185
1275
|
account_number: string;
|
|
1186
1276
|
|
|
1187
1277
|
/**
|
|
1188
|
-
*
|
|
1278
|
+
* UK sort code (6 digits).
|
|
1189
1279
|
*/
|
|
1190
|
-
|
|
1280
|
+
sort_code: string;
|
|
1191
1281
|
|
|
1192
1282
|
/**
|
|
1193
|
-
* Discriminator for
|
|
1283
|
+
* Discriminator for UK sort code financial address.
|
|
1194
1284
|
*/
|
|
1195
|
-
type: '
|
|
1285
|
+
type: 'sort_code';
|
|
1196
1286
|
}
|
|
1197
1287
|
|
|
1198
1288
|
export interface BicFinancialAddress {
|
|
@@ -1206,6 +1296,11 @@ export namespace AccountUnfreezeResponse {
|
|
|
1206
1296
|
*/
|
|
1207
1297
|
account_number: string;
|
|
1208
1298
|
|
|
1299
|
+
/**
|
|
1300
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
1301
|
+
*/
|
|
1302
|
+
account_type: 'checking' | 'savings' | null;
|
|
1303
|
+
|
|
1209
1304
|
/**
|
|
1210
1305
|
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
1211
1306
|
*/
|
|
@@ -1269,6 +1364,11 @@ export interface AccountCreateParams {
|
|
|
1269
1364
|
}
|
|
1270
1365
|
|
|
1271
1366
|
export interface AccountListParams extends CursorPageParams {
|
|
1367
|
+
/**
|
|
1368
|
+
* ID of the account program to list accounts for.
|
|
1369
|
+
*/
|
|
1370
|
+
account_program_id: string;
|
|
1371
|
+
|
|
1272
1372
|
/**
|
|
1273
1373
|
* Filter by account holder name (case-insensitive phrase match).
|
|
1274
1374
|
*/
|
|
@@ -1279,11 +1379,6 @@ export interface AccountListParams extends CursorPageParams {
|
|
|
1279
1379
|
*/
|
|
1280
1380
|
account_number?: string;
|
|
1281
1381
|
|
|
1282
|
-
/**
|
|
1283
|
-
* ID of the account program to list accounts for.
|
|
1284
|
-
*/
|
|
1285
|
-
account_program_id?: string;
|
|
1286
|
-
|
|
1287
1382
|
/**
|
|
1288
1383
|
* Filter by account status.
|
|
1289
1384
|
*/
|