@augustusbank/typescript-sdk 0.26.0 → 0.28.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.
Files changed (80) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/account-programs.d.mts +2 -1
  10. package/resources/account-programs.d.mts.map +1 -1
  11. package/resources/account-programs.d.ts +2 -1
  12. package/resources/account-programs.d.ts.map +1 -1
  13. package/resources/accounts.d.mts +188 -115
  14. package/resources/accounts.d.mts.map +1 -1
  15. package/resources/accounts.d.ts +188 -115
  16. package/resources/accounts.d.ts.map +1 -1
  17. package/resources/counterparties.d.mts +226 -261
  18. package/resources/counterparties.d.mts.map +1 -1
  19. package/resources/counterparties.d.ts +226 -261
  20. package/resources/counterparties.d.ts.map +1 -1
  21. package/resources/counterparties.js +3 -16
  22. package/resources/counterparties.js.map +1 -1
  23. package/resources/counterparties.mjs +3 -16
  24. package/resources/counterparties.mjs.map +1 -1
  25. package/resources/index.d.mts +1 -1
  26. package/resources/index.d.mts.map +1 -1
  27. package/resources/index.d.ts +1 -1
  28. package/resources/index.d.ts.map +1 -1
  29. package/resources/index.js.map +1 -1
  30. package/resources/index.mjs.map +1 -1
  31. package/resources/payouts.d.mts +1 -1
  32. package/resources/payouts.d.ts +1 -1
  33. package/resources/payouts.js +1 -1
  34. package/resources/payouts.mjs +1 -1
  35. package/resources/simulations/account-programs.d.mts +38 -23
  36. package/resources/simulations/account-programs.d.mts.map +1 -1
  37. package/resources/simulations/account-programs.d.ts +38 -23
  38. package/resources/simulations/account-programs.d.ts.map +1 -1
  39. package/resources/simulations/account-programs.js +3 -2
  40. package/resources/simulations/account-programs.js.map +1 -1
  41. package/resources/simulations/account-programs.mjs +3 -2
  42. package/resources/simulations/account-programs.mjs.map +1 -1
  43. package/resources/simulations/accounts.d.mts +38 -23
  44. package/resources/simulations/accounts.d.mts.map +1 -1
  45. package/resources/simulations/accounts.d.ts +38 -23
  46. package/resources/simulations/accounts.d.ts.map +1 -1
  47. package/resources/simulations/accounts.js +4 -3
  48. package/resources/simulations/accounts.js.map +1 -1
  49. package/resources/simulations/accounts.mjs +4 -3
  50. package/resources/simulations/accounts.mjs.map +1 -1
  51. package/resources/simulations/deposits.d.mts +42 -21
  52. package/resources/simulations/deposits.d.mts.map +1 -1
  53. package/resources/simulations/deposits.d.ts +42 -21
  54. package/resources/simulations/deposits.d.ts.map +1 -1
  55. package/resources/simulations/deposits.js +1 -1
  56. package/resources/simulations/deposits.mjs +1 -1
  57. package/resources/transactions.d.mts +62 -38
  58. package/resources/transactions.d.mts.map +1 -1
  59. package/resources/transactions.d.ts +62 -38
  60. package/resources/transactions.d.ts.map +1 -1
  61. package/resources/webhooks.d.mts +258 -114
  62. package/resources/webhooks.d.mts.map +1 -1
  63. package/resources/webhooks.d.ts +258 -114
  64. package/resources/webhooks.d.ts.map +1 -1
  65. package/src/client.ts +0 -2
  66. package/src/resources/account-programs.ts +2 -1
  67. package/src/resources/accounts.ts +218 -127
  68. package/src/resources/counterparties.ts +277 -580
  69. package/src/resources/index.ts +0 -1
  70. package/src/resources/payouts.ts +1 -1
  71. package/src/resources/simulations/account-programs.ts +42 -25
  72. package/src/resources/simulations/accounts.ts +42 -25
  73. package/src/resources/simulations/deposits.ts +47 -23
  74. package/src/resources/transactions.ts +72 -42
  75. package/src/resources/webhooks.ts +306 -126
  76. package/src/version.ts +1 -1
  77. package/version.d.mts +1 -1
  78. package/version.d.ts +1 -1
  79. package/version.js +1 -1
  80. package/version.mjs +1 -1
@@ -145,9 +145,9 @@ export interface AccountCreateResponse {
145
145
  * this account can send or receive funds.
146
146
  */
147
147
  financial_addresses: Array<
148
+ | AccountCreateResponse.AbaFinancialAddress
148
149
  | AccountCreateResponse.IbanFinancialAddress
149
150
  | AccountCreateResponse.SortCodeFinancialAddress
150
- | AccountCreateResponse.AbaFinancialAddress
151
151
  | AccountCreateResponse.BicFinancialAddress
152
152
  | AccountCreateResponse.CryptoWalletFinancialAddress
153
153
  >;
@@ -181,70 +181,80 @@ export interface AccountCreateResponse {
181
181
  }
182
182
 
183
183
  export namespace AccountCreateResponse {
184
- export interface IbanFinancialAddress {
184
+ export interface AbaFinancialAddress {
185
185
  /**
186
186
  * Name of the account holder.
187
187
  */
188
188
  account_holder_name: string;
189
189
 
190
190
  /**
191
- * Bank Identifier Code, or null if not provided.
191
+ * Bank account number.
192
192
  */
193
- bic: string | null;
193
+ account_number: string;
194
194
 
195
195
  /**
196
- * International Bank Account Number.
196
+ * Whether the account is a checking or a savings account, or null if not provided.
197
197
  */
198
- iban: string;
198
+ account_type: 'checking' | 'savings' | null;
199
199
 
200
200
  /**
201
- * Discriminator for IBAN financial address.
201
+ * ABA routing number (9 digits).
202
202
  */
203
- type: 'iban';
203
+ routing_number: string;
204
+
205
+ /**
206
+ * Discriminator for ABA wire financial address.
207
+ */
208
+ type: 'aba';
204
209
  }
205
210
 
206
- export interface SortCodeFinancialAddress {
211
+ export interface IbanFinancialAddress {
207
212
  /**
208
213
  * Name of the account holder.
209
214
  */
210
215
  account_holder_name: string;
211
216
 
212
217
  /**
213
- * UK account number (8 digits).
218
+ * Whether the account is a checking or a savings account, or null if not provided.
214
219
  */
215
- account_number: string;
220
+ account_type: 'checking' | 'savings' | null;
216
221
 
217
222
  /**
218
- * UK sort code (6 digits).
223
+ * Bank Identifier Code, or null if not provided.
219
224
  */
220
- sort_code: string;
225
+ bic: string | null;
221
226
 
222
227
  /**
223
- * Discriminator for UK sort code financial address.
228
+ * International Bank Account Number.
224
229
  */
225
- type: 'sort_code';
230
+ iban: string;
231
+
232
+ /**
233
+ * Discriminator for IBAN financial address.
234
+ */
235
+ type: 'iban';
226
236
  }
227
237
 
228
- export interface AbaFinancialAddress {
238
+ export interface SortCodeFinancialAddress {
229
239
  /**
230
240
  * Name of the account holder.
231
241
  */
232
242
  account_holder_name: string;
233
243
 
234
244
  /**
235
- * Bank account number.
245
+ * UK account number (8 digits).
236
246
  */
237
247
  account_number: string;
238
248
 
239
249
  /**
240
- * ABA routing number (9 digits).
250
+ * UK sort code (6 digits).
241
251
  */
242
- routing_number: string;
252
+ sort_code: string;
243
253
 
244
254
  /**
245
- * Discriminator for ABA wire financial address.
255
+ * Discriminator for UK sort code financial address.
246
256
  */
247
- type: 'aba';
257
+ type: 'sort_code';
248
258
  }
249
259
 
250
260
  export interface BicFinancialAddress {
@@ -258,6 +268,11 @@ export namespace AccountCreateResponse {
258
268
  */
259
269
  account_number: string;
260
270
 
271
+ /**
272
+ * Whether the account is a checking or a savings account, or null if not provided.
273
+ */
274
+ account_type: 'checking' | 'savings' | null;
275
+
261
276
  /**
262
277
  * ISO 9362 Bank Identifier Code (8 or 11 characters).
263
278
  */
@@ -327,9 +342,9 @@ export interface AccountRetrieveResponse {
327
342
  * this account can send or receive funds.
328
343
  */
329
344
  financial_addresses: Array<
345
+ | AccountRetrieveResponse.AbaFinancialAddress
330
346
  | AccountRetrieveResponse.IbanFinancialAddress
331
347
  | AccountRetrieveResponse.SortCodeFinancialAddress
332
- | AccountRetrieveResponse.AbaFinancialAddress
333
348
  | AccountRetrieveResponse.BicFinancialAddress
334
349
  | AccountRetrieveResponse.CryptoWalletFinancialAddress
335
350
  >;
@@ -363,70 +378,80 @@ export interface AccountRetrieveResponse {
363
378
  }
364
379
 
365
380
  export namespace AccountRetrieveResponse {
366
- export interface IbanFinancialAddress {
381
+ export interface AbaFinancialAddress {
367
382
  /**
368
383
  * Name of the account holder.
369
384
  */
370
385
  account_holder_name: string;
371
386
 
372
387
  /**
373
- * Bank Identifier Code, or null if not provided.
388
+ * Bank account number.
374
389
  */
375
- bic: string | null;
390
+ account_number: string;
376
391
 
377
392
  /**
378
- * International Bank Account Number.
393
+ * Whether the account is a checking or a savings account, or null if not provided.
379
394
  */
380
- iban: string;
395
+ account_type: 'checking' | 'savings' | null;
381
396
 
382
397
  /**
383
- * Discriminator for IBAN financial address.
398
+ * ABA routing number (9 digits).
384
399
  */
385
- type: 'iban';
400
+ routing_number: string;
401
+
402
+ /**
403
+ * Discriminator for ABA wire financial address.
404
+ */
405
+ type: 'aba';
386
406
  }
387
407
 
388
- export interface SortCodeFinancialAddress {
408
+ export interface IbanFinancialAddress {
389
409
  /**
390
410
  * Name of the account holder.
391
411
  */
392
412
  account_holder_name: string;
393
413
 
394
414
  /**
395
- * UK account number (8 digits).
415
+ * Whether the account is a checking or a savings account, or null if not provided.
396
416
  */
397
- account_number: string;
417
+ account_type: 'checking' | 'savings' | null;
398
418
 
399
419
  /**
400
- * UK sort code (6 digits).
420
+ * Bank Identifier Code, or null if not provided.
401
421
  */
402
- sort_code: string;
422
+ bic: string | null;
403
423
 
404
424
  /**
405
- * Discriminator for UK sort code financial address.
425
+ * International Bank Account Number.
406
426
  */
407
- type: 'sort_code';
427
+ iban: string;
428
+
429
+ /**
430
+ * Discriminator for IBAN financial address.
431
+ */
432
+ type: 'iban';
408
433
  }
409
434
 
410
- export interface AbaFinancialAddress {
435
+ export interface SortCodeFinancialAddress {
411
436
  /**
412
437
  * Name of the account holder.
413
438
  */
414
439
  account_holder_name: string;
415
440
 
416
441
  /**
417
- * Bank account number.
442
+ * UK account number (8 digits).
418
443
  */
419
444
  account_number: string;
420
445
 
421
446
  /**
422
- * ABA routing number (9 digits).
447
+ * UK sort code (6 digits).
423
448
  */
424
- routing_number: string;
449
+ sort_code: string;
425
450
 
426
451
  /**
427
- * Discriminator for ABA wire financial address.
452
+ * Discriminator for UK sort code financial address.
428
453
  */
429
- type: 'aba';
454
+ type: 'sort_code';
430
455
  }
431
456
 
432
457
  export interface BicFinancialAddress {
@@ -440,6 +465,11 @@ export namespace AccountRetrieveResponse {
440
465
  */
441
466
  account_number: string;
442
467
 
468
+ /**
469
+ * Whether the account is a checking or a savings account, or null if not provided.
470
+ */
471
+ account_type: 'checking' | 'savings' | null;
472
+
443
473
  /**
444
474
  * ISO 9362 Bank Identifier Code (8 or 11 characters).
445
475
  */
@@ -509,9 +539,9 @@ export interface AccountListResponse {
509
539
  * this account can send or receive funds.
510
540
  */
511
541
  financial_addresses: Array<
542
+ | AccountListResponse.AbaFinancialAddress
512
543
  | AccountListResponse.IbanFinancialAddress
513
544
  | AccountListResponse.SortCodeFinancialAddress
514
- | AccountListResponse.AbaFinancialAddress
515
545
  | AccountListResponse.BicFinancialAddress
516
546
  | AccountListResponse.CryptoWalletFinancialAddress
517
547
  >;
@@ -545,70 +575,80 @@ export interface AccountListResponse {
545
575
  }
546
576
 
547
577
  export namespace AccountListResponse {
548
- export interface IbanFinancialAddress {
578
+ export interface AbaFinancialAddress {
549
579
  /**
550
580
  * Name of the account holder.
551
581
  */
552
582
  account_holder_name: string;
553
583
 
554
584
  /**
555
- * Bank Identifier Code, or null if not provided.
585
+ * Bank account number.
556
586
  */
557
- bic: string | null;
587
+ account_number: string;
558
588
 
559
589
  /**
560
- * International Bank Account Number.
590
+ * Whether the account is a checking or a savings account, or null if not provided.
561
591
  */
562
- iban: string;
592
+ account_type: 'checking' | 'savings' | null;
563
593
 
564
594
  /**
565
- * Discriminator for IBAN financial address.
595
+ * ABA routing number (9 digits).
566
596
  */
567
- type: 'iban';
597
+ routing_number: string;
598
+
599
+ /**
600
+ * Discriminator for ABA wire financial address.
601
+ */
602
+ type: 'aba';
568
603
  }
569
604
 
570
- export interface SortCodeFinancialAddress {
605
+ export interface IbanFinancialAddress {
571
606
  /**
572
607
  * Name of the account holder.
573
608
  */
574
609
  account_holder_name: string;
575
610
 
576
611
  /**
577
- * UK account number (8 digits).
612
+ * Whether the account is a checking or a savings account, or null if not provided.
578
613
  */
579
- account_number: string;
614
+ account_type: 'checking' | 'savings' | null;
580
615
 
581
616
  /**
582
- * UK sort code (6 digits).
617
+ * Bank Identifier Code, or null if not provided.
583
618
  */
584
- sort_code: string;
619
+ bic: string | null;
585
620
 
586
621
  /**
587
- * Discriminator for UK sort code financial address.
622
+ * International Bank Account Number.
588
623
  */
589
- type: 'sort_code';
624
+ iban: string;
625
+
626
+ /**
627
+ * Discriminator for IBAN financial address.
628
+ */
629
+ type: 'iban';
590
630
  }
591
631
 
592
- export interface AbaFinancialAddress {
632
+ export interface SortCodeFinancialAddress {
593
633
  /**
594
634
  * Name of the account holder.
595
635
  */
596
636
  account_holder_name: string;
597
637
 
598
638
  /**
599
- * Bank account number.
639
+ * UK account number (8 digits).
600
640
  */
601
641
  account_number: string;
602
642
 
603
643
  /**
604
- * ABA routing number (9 digits).
644
+ * UK sort code (6 digits).
605
645
  */
606
- routing_number: string;
646
+ sort_code: string;
607
647
 
608
648
  /**
609
- * Discriminator for ABA wire financial address.
649
+ * Discriminator for UK sort code financial address.
610
650
  */
611
- type: 'aba';
651
+ type: 'sort_code';
612
652
  }
613
653
 
614
654
  export interface BicFinancialAddress {
@@ -622,6 +662,11 @@ export namespace AccountListResponse {
622
662
  */
623
663
  account_number: string;
624
664
 
665
+ /**
666
+ * Whether the account is a checking or a savings account, or null if not provided.
667
+ */
668
+ account_type: 'checking' | 'savings' | null;
669
+
625
670
  /**
626
671
  * ISO 9362 Bank Identifier Code (8 or 11 characters).
627
672
  */
@@ -691,9 +736,9 @@ export interface AccountCloseResponse {
691
736
  * this account can send or receive funds.
692
737
  */
693
738
  financial_addresses: Array<
739
+ | AccountCloseResponse.AbaFinancialAddress
694
740
  | AccountCloseResponse.IbanFinancialAddress
695
741
  | AccountCloseResponse.SortCodeFinancialAddress
696
- | AccountCloseResponse.AbaFinancialAddress
697
742
  | AccountCloseResponse.BicFinancialAddress
698
743
  | AccountCloseResponse.CryptoWalletFinancialAddress
699
744
  >;
@@ -727,70 +772,80 @@ export interface AccountCloseResponse {
727
772
  }
728
773
 
729
774
  export namespace AccountCloseResponse {
730
- export interface IbanFinancialAddress {
775
+ export interface AbaFinancialAddress {
731
776
  /**
732
777
  * Name of the account holder.
733
778
  */
734
779
  account_holder_name: string;
735
780
 
736
781
  /**
737
- * Bank Identifier Code, or null if not provided.
782
+ * Bank account number.
738
783
  */
739
- bic: string | null;
784
+ account_number: string;
740
785
 
741
786
  /**
742
- * International Bank Account Number.
787
+ * Whether the account is a checking or a savings account, or null if not provided.
743
788
  */
744
- iban: string;
789
+ account_type: 'checking' | 'savings' | null;
745
790
 
746
791
  /**
747
- * Discriminator for IBAN financial address.
792
+ * ABA routing number (9 digits).
748
793
  */
749
- type: 'iban';
794
+ routing_number: string;
795
+
796
+ /**
797
+ * Discriminator for ABA wire financial address.
798
+ */
799
+ type: 'aba';
750
800
  }
751
801
 
752
- export interface SortCodeFinancialAddress {
802
+ export interface IbanFinancialAddress {
753
803
  /**
754
804
  * Name of the account holder.
755
805
  */
756
806
  account_holder_name: string;
757
807
 
758
808
  /**
759
- * UK account number (8 digits).
809
+ * Whether the account is a checking or a savings account, or null if not provided.
760
810
  */
761
- account_number: string;
811
+ account_type: 'checking' | 'savings' | null;
762
812
 
763
813
  /**
764
- * UK sort code (6 digits).
814
+ * Bank Identifier Code, or null if not provided.
765
815
  */
766
- sort_code: string;
816
+ bic: string | null;
767
817
 
768
818
  /**
769
- * Discriminator for UK sort code financial address.
819
+ * International Bank Account Number.
770
820
  */
771
- type: 'sort_code';
821
+ iban: string;
822
+
823
+ /**
824
+ * Discriminator for IBAN financial address.
825
+ */
826
+ type: 'iban';
772
827
  }
773
828
 
774
- export interface AbaFinancialAddress {
829
+ export interface SortCodeFinancialAddress {
775
830
  /**
776
831
  * Name of the account holder.
777
832
  */
778
833
  account_holder_name: string;
779
834
 
780
835
  /**
781
- * Bank account number.
836
+ * UK account number (8 digits).
782
837
  */
783
838
  account_number: string;
784
839
 
785
840
  /**
786
- * ABA routing number (9 digits).
841
+ * UK sort code (6 digits).
787
842
  */
788
- routing_number: string;
843
+ sort_code: string;
789
844
 
790
845
  /**
791
- * Discriminator for ABA wire financial address.
846
+ * Discriminator for UK sort code financial address.
792
847
  */
793
- type: 'aba';
848
+ type: 'sort_code';
794
849
  }
795
850
 
796
851
  export interface BicFinancialAddress {
@@ -804,6 +859,11 @@ export namespace AccountCloseResponse {
804
859
  */
805
860
  account_number: string;
806
861
 
862
+ /**
863
+ * Whether the account is a checking or a savings account, or null if not provided.
864
+ */
865
+ account_type: 'checking' | 'savings' | null;
866
+
807
867
  /**
808
868
  * ISO 9362 Bank Identifier Code (8 or 11 characters).
809
869
  */
@@ -873,9 +933,9 @@ export interface AccountFreezeResponse {
873
933
  * this account can send or receive funds.
874
934
  */
875
935
  financial_addresses: Array<
936
+ | AccountFreezeResponse.AbaFinancialAddress
876
937
  | AccountFreezeResponse.IbanFinancialAddress
877
938
  | AccountFreezeResponse.SortCodeFinancialAddress
878
- | AccountFreezeResponse.AbaFinancialAddress
879
939
  | AccountFreezeResponse.BicFinancialAddress
880
940
  | AccountFreezeResponse.CryptoWalletFinancialAddress
881
941
  >;
@@ -909,70 +969,80 @@ export interface AccountFreezeResponse {
909
969
  }
910
970
 
911
971
  export namespace AccountFreezeResponse {
912
- export interface IbanFinancialAddress {
972
+ export interface AbaFinancialAddress {
913
973
  /**
914
974
  * Name of the account holder.
915
975
  */
916
976
  account_holder_name: string;
917
977
 
918
978
  /**
919
- * Bank Identifier Code, or null if not provided.
979
+ * Bank account number.
920
980
  */
921
- bic: string | null;
981
+ account_number: string;
922
982
 
923
983
  /**
924
- * International Bank Account Number.
984
+ * Whether the account is a checking or a savings account, or null if not provided.
925
985
  */
926
- iban: string;
986
+ account_type: 'checking' | 'savings' | null;
927
987
 
928
988
  /**
929
- * Discriminator for IBAN financial address.
989
+ * ABA routing number (9 digits).
930
990
  */
931
- type: 'iban';
991
+ routing_number: string;
992
+
993
+ /**
994
+ * Discriminator for ABA wire financial address.
995
+ */
996
+ type: 'aba';
932
997
  }
933
998
 
934
- export interface SortCodeFinancialAddress {
999
+ export interface IbanFinancialAddress {
935
1000
  /**
936
1001
  * Name of the account holder.
937
1002
  */
938
1003
  account_holder_name: string;
939
1004
 
940
1005
  /**
941
- * UK account number (8 digits).
1006
+ * Whether the account is a checking or a savings account, or null if not provided.
942
1007
  */
943
- account_number: string;
1008
+ account_type: 'checking' | 'savings' | null;
944
1009
 
945
1010
  /**
946
- * UK sort code (6 digits).
1011
+ * Bank Identifier Code, or null if not provided.
947
1012
  */
948
- sort_code: string;
1013
+ bic: string | null;
949
1014
 
950
1015
  /**
951
- * Discriminator for UK sort code financial address.
1016
+ * International Bank Account Number.
952
1017
  */
953
- type: 'sort_code';
1018
+ iban: string;
1019
+
1020
+ /**
1021
+ * Discriminator for IBAN financial address.
1022
+ */
1023
+ type: 'iban';
954
1024
  }
955
1025
 
956
- export interface AbaFinancialAddress {
1026
+ export interface SortCodeFinancialAddress {
957
1027
  /**
958
1028
  * Name of the account holder.
959
1029
  */
960
1030
  account_holder_name: string;
961
1031
 
962
1032
  /**
963
- * Bank account number.
1033
+ * UK account number (8 digits).
964
1034
  */
965
1035
  account_number: string;
966
1036
 
967
1037
  /**
968
- * ABA routing number (9 digits).
1038
+ * UK sort code (6 digits).
969
1039
  */
970
- routing_number: string;
1040
+ sort_code: string;
971
1041
 
972
1042
  /**
973
- * Discriminator for ABA wire financial address.
1043
+ * Discriminator for UK sort code financial address.
974
1044
  */
975
- type: 'aba';
1045
+ type: 'sort_code';
976
1046
  }
977
1047
 
978
1048
  export interface BicFinancialAddress {
@@ -986,6 +1056,11 @@ export namespace AccountFreezeResponse {
986
1056
  */
987
1057
  account_number: string;
988
1058
 
1059
+ /**
1060
+ * Whether the account is a checking or a savings account, or null if not provided.
1061
+ */
1062
+ account_type: 'checking' | 'savings' | null;
1063
+
989
1064
  /**
990
1065
  * ISO 9362 Bank Identifier Code (8 or 11 characters).
991
1066
  */
@@ -1093,9 +1168,9 @@ export interface AccountUnfreezeResponse {
1093
1168
  * this account can send or receive funds.
1094
1169
  */
1095
1170
  financial_addresses: Array<
1171
+ | AccountUnfreezeResponse.AbaFinancialAddress
1096
1172
  | AccountUnfreezeResponse.IbanFinancialAddress
1097
1173
  | AccountUnfreezeResponse.SortCodeFinancialAddress
1098
- | AccountUnfreezeResponse.AbaFinancialAddress
1099
1174
  | AccountUnfreezeResponse.BicFinancialAddress
1100
1175
  | AccountUnfreezeResponse.CryptoWalletFinancialAddress
1101
1176
  >;
@@ -1129,70 +1204,80 @@ export interface AccountUnfreezeResponse {
1129
1204
  }
1130
1205
 
1131
1206
  export namespace AccountUnfreezeResponse {
1132
- export interface IbanFinancialAddress {
1207
+ export interface AbaFinancialAddress {
1133
1208
  /**
1134
1209
  * Name of the account holder.
1135
1210
  */
1136
1211
  account_holder_name: string;
1137
1212
 
1138
1213
  /**
1139
- * Bank Identifier Code, or null if not provided.
1214
+ * Bank account number.
1140
1215
  */
1141
- bic: string | null;
1216
+ account_number: string;
1142
1217
 
1143
1218
  /**
1144
- * International Bank Account Number.
1219
+ * Whether the account is a checking or a savings account, or null if not provided.
1145
1220
  */
1146
- iban: string;
1221
+ account_type: 'checking' | 'savings' | null;
1147
1222
 
1148
1223
  /**
1149
- * Discriminator for IBAN financial address.
1224
+ * ABA routing number (9 digits).
1150
1225
  */
1151
- type: 'iban';
1226
+ routing_number: string;
1227
+
1228
+ /**
1229
+ * Discriminator for ABA wire financial address.
1230
+ */
1231
+ type: 'aba';
1152
1232
  }
1153
1233
 
1154
- export interface SortCodeFinancialAddress {
1234
+ export interface IbanFinancialAddress {
1155
1235
  /**
1156
1236
  * Name of the account holder.
1157
1237
  */
1158
1238
  account_holder_name: string;
1159
1239
 
1160
1240
  /**
1161
- * UK account number (8 digits).
1241
+ * Whether the account is a checking or a savings account, or null if not provided.
1162
1242
  */
1163
- account_number: string;
1243
+ account_type: 'checking' | 'savings' | null;
1164
1244
 
1165
1245
  /**
1166
- * UK sort code (6 digits).
1246
+ * Bank Identifier Code, or null if not provided.
1167
1247
  */
1168
- sort_code: string;
1248
+ bic: string | null;
1169
1249
 
1170
1250
  /**
1171
- * Discriminator for UK sort code financial address.
1251
+ * International Bank Account Number.
1172
1252
  */
1173
- type: 'sort_code';
1253
+ iban: string;
1254
+
1255
+ /**
1256
+ * Discriminator for IBAN financial address.
1257
+ */
1258
+ type: 'iban';
1174
1259
  }
1175
1260
 
1176
- export interface AbaFinancialAddress {
1261
+ export interface SortCodeFinancialAddress {
1177
1262
  /**
1178
1263
  * Name of the account holder.
1179
1264
  */
1180
1265
  account_holder_name: string;
1181
1266
 
1182
1267
  /**
1183
- * Bank account number.
1268
+ * UK account number (8 digits).
1184
1269
  */
1185
1270
  account_number: string;
1186
1271
 
1187
1272
  /**
1188
- * ABA routing number (9 digits).
1273
+ * UK sort code (6 digits).
1189
1274
  */
1190
- routing_number: string;
1275
+ sort_code: string;
1191
1276
 
1192
1277
  /**
1193
- * Discriminator for ABA wire financial address.
1278
+ * Discriminator for UK sort code financial address.
1194
1279
  */
1195
- type: 'aba';
1280
+ type: 'sort_code';
1196
1281
  }
1197
1282
 
1198
1283
  export interface BicFinancialAddress {
@@ -1206,6 +1291,11 @@ export namespace AccountUnfreezeResponse {
1206
1291
  */
1207
1292
  account_number: string;
1208
1293
 
1294
+ /**
1295
+ * Whether the account is a checking or a savings account, or null if not provided.
1296
+ */
1297
+ account_type: 'checking' | 'savings' | null;
1298
+
1209
1299
  /**
1210
1300
  * ISO 9362 Bank Identifier Code (8 or 11 characters).
1211
1301
  */
@@ -1299,7 +1389,8 @@ export interface AccountCloseParams {
1299
1389
 
1300
1390
  export interface AccountRetrieveBalanceParams {
1301
1391
  /**
1302
- * ISO 8601 UTC timestamp to retrieve balance at.
1392
+ * ISO 8601 UTC timestamp to retrieve balance at. Must be at least 5 minutes in the
1393
+ * past.
1303
1394
  */
1304
1395
  as_of?: string;
1305
1396
  }