@augustusbank/typescript-sdk 0.22.0 → 0.22.1

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 (135) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/client.d.mts +6 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -6
  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 +21 -16
  10. package/resources/account-programs.d.mts.map +1 -1
  11. package/resources/account-programs.d.ts +21 -16
  12. package/resources/account-programs.d.ts.map +1 -1
  13. package/resources/account-programs.js +2 -2
  14. package/resources/account-programs.js.map +1 -1
  15. package/resources/account-programs.mjs +2 -2
  16. package/resources/account-programs.mjs.map +1 -1
  17. package/resources/accounts.d.mts +21 -6
  18. package/resources/accounts.d.mts.map +1 -1
  19. package/resources/accounts.d.ts +21 -6
  20. package/resources/accounts.d.ts.map +1 -1
  21. package/resources/accounts.js +2 -2
  22. package/resources/accounts.js.map +1 -1
  23. package/resources/accounts.mjs +2 -2
  24. package/resources/accounts.mjs.map +1 -1
  25. package/resources/counterparties.d.mts +16 -16
  26. package/resources/counterparties.d.mts.map +1 -1
  27. package/resources/counterparties.d.ts +16 -16
  28. package/resources/counterparties.d.ts.map +1 -1
  29. package/resources/deposits.d.mts +10 -0
  30. package/resources/deposits.d.mts.map +1 -1
  31. package/resources/deposits.d.ts +10 -0
  32. package/resources/deposits.d.ts.map +1 -1
  33. package/resources/events.d.mts +3 -3
  34. package/resources/events.d.mts.map +1 -1
  35. package/resources/events.d.ts +3 -3
  36. package/resources/events.d.ts.map +1 -1
  37. package/resources/index.d.mts +3 -3
  38. package/resources/index.d.mts.map +1 -1
  39. package/resources/index.d.ts +3 -3
  40. package/resources/index.d.ts.map +1 -1
  41. package/resources/index.js.map +1 -1
  42. package/resources/index.mjs.map +1 -1
  43. package/resources/payouts.d.mts +22 -406
  44. package/resources/payouts.d.mts.map +1 -1
  45. package/resources/payouts.d.ts +22 -406
  46. package/resources/payouts.d.ts.map +1 -1
  47. package/resources/payouts.js +2 -4
  48. package/resources/payouts.js.map +1 -1
  49. package/resources/payouts.mjs +2 -4
  50. package/resources/payouts.mjs.map +1 -1
  51. package/resources/simulations/account-programs.d.mts +9 -75
  52. package/resources/simulations/account-programs.d.mts.map +1 -1
  53. package/resources/simulations/account-programs.d.ts +9 -75
  54. package/resources/simulations/account-programs.d.ts.map +1 -1
  55. package/resources/simulations/account-programs.js +0 -2
  56. package/resources/simulations/account-programs.js.map +1 -1
  57. package/resources/simulations/account-programs.mjs +0 -2
  58. package/resources/simulations/account-programs.mjs.map +1 -1
  59. package/resources/simulations/accounts.d.mts +9 -70
  60. package/resources/simulations/accounts.d.mts.map +1 -1
  61. package/resources/simulations/accounts.d.ts +9 -70
  62. package/resources/simulations/accounts.d.ts.map +1 -1
  63. package/resources/simulations/accounts.js +0 -1
  64. package/resources/simulations/accounts.js.map +1 -1
  65. package/resources/simulations/accounts.mjs +0 -1
  66. package/resources/simulations/accounts.mjs.map +1 -1
  67. package/resources/simulations/conversions.d.mts +54 -0
  68. package/resources/simulations/conversions.d.mts.map +1 -0
  69. package/resources/simulations/conversions.d.ts +54 -0
  70. package/resources/simulations/conversions.d.ts.map +1 -0
  71. package/resources/simulations/conversions.js +39 -0
  72. package/resources/simulations/conversions.js.map +1 -0
  73. package/resources/simulations/conversions.mjs +35 -0
  74. package/resources/simulations/conversions.mjs.map +1 -0
  75. package/resources/simulations/deposits.d.mts +14 -30
  76. package/resources/simulations/deposits.d.mts.map +1 -1
  77. package/resources/simulations/deposits.d.ts +14 -30
  78. package/resources/simulations/deposits.d.ts.map +1 -1
  79. package/resources/simulations/index.d.mts +1 -0
  80. package/resources/simulations/index.d.mts.map +1 -1
  81. package/resources/simulations/index.d.ts +1 -0
  82. package/resources/simulations/index.d.ts.map +1 -1
  83. package/resources/simulations/index.js +3 -1
  84. package/resources/simulations/index.js.map +1 -1
  85. package/resources/simulations/index.mjs +1 -0
  86. package/resources/simulations/index.mjs.map +1 -1
  87. package/resources/simulations/payouts.d.mts +4 -18
  88. package/resources/simulations/payouts.d.mts.map +1 -1
  89. package/resources/simulations/payouts.d.ts +4 -18
  90. package/resources/simulations/payouts.d.ts.map +1 -1
  91. package/resources/simulations/simulations.d.mts +4 -0
  92. package/resources/simulations/simulations.d.mts.map +1 -1
  93. package/resources/simulations/simulations.d.ts +4 -0
  94. package/resources/simulations/simulations.d.ts.map +1 -1
  95. package/resources/simulations/simulations.js +4 -0
  96. package/resources/simulations/simulations.js.map +1 -1
  97. package/resources/simulations/simulations.mjs +4 -0
  98. package/resources/simulations/simulations.mjs.map +1 -1
  99. package/resources/transactions.d.mts +60 -0
  100. package/resources/transactions.d.mts.map +1 -1
  101. package/resources/transactions.d.ts +60 -0
  102. package/resources/transactions.d.ts.map +1 -1
  103. package/resources/webhook-subscriptions.d.mts +9 -9
  104. package/resources/webhook-subscriptions.d.mts.map +1 -1
  105. package/resources/webhook-subscriptions.d.ts +9 -9
  106. package/resources/webhook-subscriptions.d.ts.map +1 -1
  107. package/resources/webhook-subscriptions.js +1 -1
  108. package/resources/webhook-subscriptions.mjs +1 -1
  109. package/resources/webhooks.d.mts +245 -30
  110. package/resources/webhooks.d.mts.map +1 -1
  111. package/resources/webhooks.d.ts +245 -30
  112. package/resources/webhooks.d.ts.map +1 -1
  113. package/src/client.ts +16 -8
  114. package/src/resources/account-programs.ts +29 -18
  115. package/src/resources/accounts.ts +29 -6
  116. package/src/resources/counterparties.ts +16 -16
  117. package/src/resources/deposits.ts +12 -0
  118. package/src/resources/events.ts +18 -12
  119. package/src/resources/index.ts +8 -4
  120. package/src/resources/payouts.ts +36 -1993
  121. package/src/resources/simulations/account-programs.ts +10 -91
  122. package/src/resources/simulations/accounts.ts +10 -85
  123. package/src/resources/simulations/conversions.ts +70 -0
  124. package/src/resources/simulations/deposits.ts +27 -35
  125. package/src/resources/simulations/index.ts +1 -0
  126. package/src/resources/simulations/payouts.ts +4 -22
  127. package/src/resources/simulations/simulations.ts +10 -0
  128. package/src/resources/transactions.ts +70 -0
  129. package/src/resources/webhook-subscriptions.ts +49 -33
  130. package/src/resources/webhooks.ts +360 -36
  131. package/src/version.ts +1 -1
  132. package/version.d.mts +1 -1
  133. package/version.d.ts +1 -1
  134. package/version.js +1 -1
  135. package/version.mjs +1 -1
@@ -15,10 +15,8 @@ export class Payouts extends APIResource {
15
15
  * const payout = await client.payouts.create({
16
16
  * account_id: '550e8400-e29b-41d4-a716-44665544000b',
17
17
  * amount: '100.50',
18
- * destination: {
19
- * counterparty_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
20
- * type: 'counterparty',
21
- * },
18
+ * counterparty_id: '550e8400-e29b-41d4-a716-446655440000',
19
+ * currency: 'EUR',
22
20
  * });
23
21
  * ```
24
22
  */
@@ -135,9 +133,10 @@ export interface PayoutCreateResponse {
135
133
  status: 'initiated' | 'submitted' | 'sent' | 'failed' | 'returned';
136
134
 
137
135
  /**
138
- * Identifier used to track the payout through the payment network where supported.
136
+ * Reference used to track the payment across the payment network, such as the UETR
137
+ * for SWIFT payments.
139
138
  */
140
- tracking_id: string | null;
139
+ tracking_reference: string | null;
141
140
 
142
141
  /**
143
142
  * Transaction hash for crypto payouts, or null when not known. Only blockchain
@@ -268,9 +267,10 @@ export interface PayoutRetrieveResponse {
268
267
  status: 'initiated' | 'submitted' | 'sent' | 'failed' | 'returned';
269
268
 
270
269
  /**
271
- * Identifier used to track the payout through the payment network where supported.
270
+ * Reference used to track the payment across the payment network, such as the UETR
271
+ * for SWIFT payments.
272
272
  */
273
- tracking_id: string | null;
273
+ tracking_reference: string | null;
274
274
 
275
275
  /**
276
276
  * Transaction hash for crypto payouts, or null when not known. Only blockchain
@@ -401,9 +401,10 @@ export interface PayoutListResponse {
401
401
  status: 'initiated' | 'submitted' | 'sent' | 'failed' | 'returned';
402
402
 
403
403
  /**
404
- * Identifier used to track the payout through the payment network where supported.
404
+ * Reference used to track the payment across the payment network, such as the UETR
405
+ * for SWIFT payments.
405
406
  */
406
- tracking_id: string | null;
407
+ tracking_reference: string | null;
407
408
 
408
409
  /**
409
410
  * Transaction hash for crypto payouts, or null when not known. Only blockchain
@@ -472,24 +473,38 @@ export interface PayoutCreateParams {
472
473
  amount: string;
473
474
 
474
475
  /**
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.
476
+ * ID of the saved counterparty that receives the money.
478
477
  */
479
- destination:
480
- | PayoutCreateParams.SavedCounterpartyDestination
481
- | PayoutCreateParams.IbanEurDestination
482
- | PayoutCreateParams.IbanUsdDestination
483
- | PayoutCreateParams.SortCodeDestination
484
- | PayoutCreateParams.AbaDestination
485
- | PayoutCreateParams.BicDestination
486
- | PayoutCreateParams.CryptoWalletDestination;
478
+ counterparty_id: string;
479
+
480
+ /**
481
+ * Currency code (ISO 4217 or crypto).
482
+ */
483
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
487
484
 
488
485
  /**
489
486
  * Key-value pairs stored with the payout.
490
487
  */
491
488
  metadata?: { [key: string]: string } | null;
492
489
 
490
+ /**
491
+ * Settlement rail the counterparty is reachable on. Selected automatically when
492
+ * omitted. Validated against the counterparty financial address at runtime.
493
+ */
494
+ rail?:
495
+ | 'sepa'
496
+ | 'sepa_instant'
497
+ | 'faster_payments'
498
+ | 'swift'
499
+ | 'ach'
500
+ | 'fedwire'
501
+ | 'ethereum'
502
+ | 'ethereum_sepolia'
503
+ | 'solana'
504
+ | 'solana_devnet'
505
+ | 'polygon'
506
+ | 'polygon_amoy';
507
+
493
508
  /**
494
509
  * Unstructured remittance information attached to the transfer. This appears on
495
510
  * the counterparty's bank statement. Not supported by blockchain rails.
@@ -497,1978 +512,6 @@ export interface PayoutCreateParams {
497
512
  unstructured_remittance_information?: string | null;
498
513
  }
499
514
 
500
- export namespace PayoutCreateParams {
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 {
520
- /**
521
- * Name of the account holder.
522
- */
523
- account_holder_name: string;
524
-
525
- /**
526
- * Currency of the payout. Settles in EUR.
527
- */
528
- currency: 'EUR';
529
-
530
- /**
531
- * International Bank Account Number.
532
- */
533
- iban: string;
534
-
535
- /**
536
- * Discriminator for IBAN financial address.
537
- */
538
- type: 'iban';
539
-
540
- /**
541
- * Bank Identifier Code. Optional; omit or send null if not provided.
542
- */
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';
556
- }
557
-
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 {
1173
- /**
1174
- * Name of the account holder.
1175
- */
1176
- account_holder_name: string;
1177
-
1178
- /**
1179
- * UK account number (8 digits).
1180
- */
1181
- account_number: string;
1182
-
1183
- /**
1184
- * Currency of the payout. Sort code destinations settle in GBP.
1185
- */
1186
- currency: 'GBP';
1187
-
1188
- /**
1189
- * UK sort code (6 digits).
1190
- */
1191
- sort_code: string;
1192
-
1193
- /**
1194
- * Discriminator for UK sort code financial address.
1195
- */
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
- }
1496
- }
1497
-
1498
- export interface AbaDestination {
1499
- /**
1500
- * Name of the account holder.
1501
- */
1502
- account_holder_name: string;
1503
-
1504
- /**
1505
- * Bank account number.
1506
- */
1507
- account_number: string;
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
-
1519
- /**
1520
- * ABA routing number (9 digits).
1521
- */
1522
- routing_number: string;
1523
-
1524
- /**
1525
- * Discriminator for ABA wire financial address.
1526
- */
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
- }
1822
- }
1823
-
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 {
2155
- /**
2156
- * Wallet address on the specified blockchain.
2157
- */
2158
- address: string;
2159
-
2160
- /**
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.
2168
- */
2169
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
2170
-
2171
- /**
2172
- * Discriminator for a crypto wallet destination.
2173
- */
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
- }
2469
- }
2470
- }
2471
-
2472
515
  export interface PayoutListParams extends CursorPageParams {
2473
516
  created_at?: PayoutListParams.CreatedAt;
2474
517