@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
@@ -2949,6 +2949,10 @@ export declare namespace CounterpartyCreatedWebhookEvent {
2949
2949
  * Date of birth in YYYY-MM-DD format, or null if not recorded.
2950
2950
  */
2951
2951
  date_of_birth: string | null;
2952
+ /**
2953
+ * Email address of the counterparty, or null if not recorded.
2954
+ */
2955
+ email: string | null;
2952
2956
  /**
2953
2957
  * Whether the counterparty is a business or an individual.
2954
2958
  */
@@ -2956,12 +2960,16 @@ export declare namespace CounterpartyCreatedWebhookEvent {
2956
2960
  /**
2957
2961
  * Financial address of the counterparty.
2958
2962
  */
2959
- financial_address: Payload.IbanFinancialAddress | Payload.SortCodeFinancialAddress | Payload.AbaFinancialAddress | Payload.BicFinancialAddress | Payload.CryptoWalletFinancialAddress;
2963
+ financial_address: Payload.AbaFinancialAddress | Payload.IbanFinancialAddress | Payload.SortCodeFinancialAddress | Payload.BicFinancialAddress | Payload.CryptoWalletFinancialAddress;
2960
2964
  /**
2961
2965
  * Whether the counterparty is self-owned. `false` if the counterparty is not owned
2962
2966
  * by you, `true` if it is.
2963
2967
  */
2964
2968
  is_self_owned: boolean;
2969
+ /**
2970
+ * National tax or identity number of the counterparty, or null if not recorded.
2971
+ */
2972
+ legal_id: string | null;
2965
2973
  /**
2966
2974
  * Set of up to 50 key-value string pairs you can attach to store structured
2967
2975
  * information, such as correlating this resource with an object in your own
@@ -2974,6 +2982,10 @@ export declare namespace CounterpartyCreatedWebhookEvent {
2974
2982
  * Name of the counterparty, or null if not recorded.
2975
2983
  */
2976
2984
  name: string | null;
2985
+ /**
2986
+ * Phone number of the counterparty, or null if not recorded.
2987
+ */
2988
+ phone: string | null;
2977
2989
  /**
2978
2990
  * Physical address of the counterparty, or null if not recorded.
2979
2991
  */
@@ -2984,11 +2996,37 @@ export declare namespace CounterpartyCreatedWebhookEvent {
2984
2996
  type: 'counterparty';
2985
2997
  }
2986
2998
  namespace Payload {
2999
+ interface AbaFinancialAddress {
3000
+ /**
3001
+ * Name of the account holder.
3002
+ */
3003
+ account_holder_name: string;
3004
+ /**
3005
+ * Bank account number.
3006
+ */
3007
+ account_number: string;
3008
+ /**
3009
+ * Whether the account is a checking or a savings account, or null if not provided.
3010
+ */
3011
+ account_type: 'checking' | 'savings' | null;
3012
+ /**
3013
+ * ABA routing number (9 digits).
3014
+ */
3015
+ routing_number: string;
3016
+ /**
3017
+ * Discriminator for ABA wire financial address.
3018
+ */
3019
+ type: 'aba';
3020
+ }
2987
3021
  interface IbanFinancialAddress {
2988
3022
  /**
2989
3023
  * Name of the account holder.
2990
3024
  */
2991
3025
  account_holder_name: string;
3026
+ /**
3027
+ * Whether the account is a checking or a savings account, or null if not provided.
3028
+ */
3029
+ account_type: 'checking' | 'savings' | null;
2992
3030
  /**
2993
3031
  * Bank Identifier Code, or null if not provided.
2994
3032
  */
@@ -3020,24 +3058,6 @@ export declare namespace CounterpartyCreatedWebhookEvent {
3020
3058
  */
3021
3059
  type: 'sort_code';
3022
3060
  }
3023
- interface AbaFinancialAddress {
3024
- /**
3025
- * Name of the account holder.
3026
- */
3027
- account_holder_name: string;
3028
- /**
3029
- * Bank account number.
3030
- */
3031
- account_number: string;
3032
- /**
3033
- * ABA routing number (9 digits).
3034
- */
3035
- routing_number: string;
3036
- /**
3037
- * Discriminator for ABA wire financial address.
3038
- */
3039
- type: 'aba';
3040
- }
3041
3061
  interface BicFinancialAddress {
3042
3062
  /**
3043
3063
  * Name of the account holder.
@@ -3047,6 +3067,10 @@ export declare namespace CounterpartyCreatedWebhookEvent {
3047
3067
  * Local-format bank account number.
3048
3068
  */
3049
3069
  account_number: string;
3070
+ /**
3071
+ * Whether the account is a checking or a savings account, or null if not provided.
3072
+ */
3073
+ account_type: 'checking' | 'savings' | null;
3050
3074
  /**
3051
3075
  * ISO 9362 Bank Identifier Code (8 or 11 characters).
3052
3076
  */
@@ -3145,6 +3169,10 @@ export declare namespace CounterpartyVerifiedWebhookEvent {
3145
3169
  * Date of birth in YYYY-MM-DD format, or null if not recorded.
3146
3170
  */
3147
3171
  date_of_birth: string | null;
3172
+ /**
3173
+ * Email address of the counterparty, or null if not recorded.
3174
+ */
3175
+ email: string | null;
3148
3176
  /**
3149
3177
  * Whether the counterparty is a business or an individual.
3150
3178
  */
@@ -3152,12 +3180,16 @@ export declare namespace CounterpartyVerifiedWebhookEvent {
3152
3180
  /**
3153
3181
  * Financial address of the counterparty.
3154
3182
  */
3155
- financial_address: Payload.IbanFinancialAddress | Payload.SortCodeFinancialAddress | Payload.AbaFinancialAddress | Payload.BicFinancialAddress | Payload.CryptoWalletFinancialAddress;
3183
+ financial_address: Payload.AbaFinancialAddress | Payload.IbanFinancialAddress | Payload.SortCodeFinancialAddress | Payload.BicFinancialAddress | Payload.CryptoWalletFinancialAddress;
3156
3184
  /**
3157
3185
  * Whether the counterparty is self-owned. `false` if the counterparty is not owned
3158
3186
  * by you, `true` if it is.
3159
3187
  */
3160
3188
  is_self_owned: boolean;
3189
+ /**
3190
+ * National tax or identity number of the counterparty, or null if not recorded.
3191
+ */
3192
+ legal_id: string | null;
3161
3193
  /**
3162
3194
  * Set of up to 50 key-value string pairs you can attach to store structured
3163
3195
  * information, such as correlating this resource with an object in your own
@@ -3170,6 +3202,10 @@ export declare namespace CounterpartyVerifiedWebhookEvent {
3170
3202
  * Name of the counterparty, or null if not recorded.
3171
3203
  */
3172
3204
  name: string | null;
3205
+ /**
3206
+ * Phone number of the counterparty, or null if not recorded.
3207
+ */
3208
+ phone: string | null;
3173
3209
  /**
3174
3210
  * Physical address of the counterparty, or null if not recorded.
3175
3211
  */
@@ -3180,11 +3216,37 @@ export declare namespace CounterpartyVerifiedWebhookEvent {
3180
3216
  type: 'counterparty';
3181
3217
  }
3182
3218
  namespace Payload {
3219
+ interface AbaFinancialAddress {
3220
+ /**
3221
+ * Name of the account holder.
3222
+ */
3223
+ account_holder_name: string;
3224
+ /**
3225
+ * Bank account number.
3226
+ */
3227
+ account_number: string;
3228
+ /**
3229
+ * Whether the account is a checking or a savings account, or null if not provided.
3230
+ */
3231
+ account_type: 'checking' | 'savings' | null;
3232
+ /**
3233
+ * ABA routing number (9 digits).
3234
+ */
3235
+ routing_number: string;
3236
+ /**
3237
+ * Discriminator for ABA wire financial address.
3238
+ */
3239
+ type: 'aba';
3240
+ }
3183
3241
  interface IbanFinancialAddress {
3184
3242
  /**
3185
3243
  * Name of the account holder.
3186
3244
  */
3187
3245
  account_holder_name: string;
3246
+ /**
3247
+ * Whether the account is a checking or a savings account, or null if not provided.
3248
+ */
3249
+ account_type: 'checking' | 'savings' | null;
3188
3250
  /**
3189
3251
  * Bank Identifier Code, or null if not provided.
3190
3252
  */
@@ -3216,24 +3278,6 @@ export declare namespace CounterpartyVerifiedWebhookEvent {
3216
3278
  */
3217
3279
  type: 'sort_code';
3218
3280
  }
3219
- interface AbaFinancialAddress {
3220
- /**
3221
- * Name of the account holder.
3222
- */
3223
- account_holder_name: string;
3224
- /**
3225
- * Bank account number.
3226
- */
3227
- account_number: string;
3228
- /**
3229
- * ABA routing number (9 digits).
3230
- */
3231
- routing_number: string;
3232
- /**
3233
- * Discriminator for ABA wire financial address.
3234
- */
3235
- type: 'aba';
3236
- }
3237
3281
  interface BicFinancialAddress {
3238
3282
  /**
3239
3283
  * Name of the account holder.
@@ -3243,6 +3287,10 @@ export declare namespace CounterpartyVerifiedWebhookEvent {
3243
3287
  * Local-format bank account number.
3244
3288
  */
3245
3289
  account_number: string;
3290
+ /**
3291
+ * Whether the account is a checking or a savings account, or null if not provided.
3292
+ */
3293
+ account_type: 'checking' | 'savings' | null;
3246
3294
  /**
3247
3295
  * ISO 9362 Bank Identifier Code (8 or 11 characters).
3248
3296
  */
@@ -3341,6 +3389,10 @@ export declare namespace CounterpartyRejectedWebhookEvent {
3341
3389
  * Date of birth in YYYY-MM-DD format, or null if not recorded.
3342
3390
  */
3343
3391
  date_of_birth: string | null;
3392
+ /**
3393
+ * Email address of the counterparty, or null if not recorded.
3394
+ */
3395
+ email: string | null;
3344
3396
  /**
3345
3397
  * Whether the counterparty is a business or an individual.
3346
3398
  */
@@ -3348,12 +3400,16 @@ export declare namespace CounterpartyRejectedWebhookEvent {
3348
3400
  /**
3349
3401
  * Financial address of the counterparty.
3350
3402
  */
3351
- financial_address: Payload.IbanFinancialAddress | Payload.SortCodeFinancialAddress | Payload.AbaFinancialAddress | Payload.BicFinancialAddress | Payload.CryptoWalletFinancialAddress;
3403
+ financial_address: Payload.AbaFinancialAddress | Payload.IbanFinancialAddress | Payload.SortCodeFinancialAddress | Payload.BicFinancialAddress | Payload.CryptoWalletFinancialAddress;
3352
3404
  /**
3353
3405
  * Whether the counterparty is self-owned. `false` if the counterparty is not owned
3354
3406
  * by you, `true` if it is.
3355
3407
  */
3356
3408
  is_self_owned: boolean;
3409
+ /**
3410
+ * National tax or identity number of the counterparty, or null if not recorded.
3411
+ */
3412
+ legal_id: string | null;
3357
3413
  /**
3358
3414
  * Set of up to 50 key-value string pairs you can attach to store structured
3359
3415
  * information, such as correlating this resource with an object in your own
@@ -3366,6 +3422,10 @@ export declare namespace CounterpartyRejectedWebhookEvent {
3366
3422
  * Name of the counterparty, or null if not recorded.
3367
3423
  */
3368
3424
  name: string | null;
3425
+ /**
3426
+ * Phone number of the counterparty, or null if not recorded.
3427
+ */
3428
+ phone: string | null;
3369
3429
  /**
3370
3430
  * Physical address of the counterparty, or null if not recorded.
3371
3431
  */
@@ -3376,11 +3436,37 @@ export declare namespace CounterpartyRejectedWebhookEvent {
3376
3436
  type: 'counterparty';
3377
3437
  }
3378
3438
  namespace Payload {
3439
+ interface AbaFinancialAddress {
3440
+ /**
3441
+ * Name of the account holder.
3442
+ */
3443
+ account_holder_name: string;
3444
+ /**
3445
+ * Bank account number.
3446
+ */
3447
+ account_number: string;
3448
+ /**
3449
+ * Whether the account is a checking or a savings account, or null if not provided.
3450
+ */
3451
+ account_type: 'checking' | 'savings' | null;
3452
+ /**
3453
+ * ABA routing number (9 digits).
3454
+ */
3455
+ routing_number: string;
3456
+ /**
3457
+ * Discriminator for ABA wire financial address.
3458
+ */
3459
+ type: 'aba';
3460
+ }
3379
3461
  interface IbanFinancialAddress {
3380
3462
  /**
3381
3463
  * Name of the account holder.
3382
3464
  */
3383
3465
  account_holder_name: string;
3466
+ /**
3467
+ * Whether the account is a checking or a savings account, or null if not provided.
3468
+ */
3469
+ account_type: 'checking' | 'savings' | null;
3384
3470
  /**
3385
3471
  * Bank Identifier Code, or null if not provided.
3386
3472
  */
@@ -3412,24 +3498,6 @@ export declare namespace CounterpartyRejectedWebhookEvent {
3412
3498
  */
3413
3499
  type: 'sort_code';
3414
3500
  }
3415
- interface AbaFinancialAddress {
3416
- /**
3417
- * Name of the account holder.
3418
- */
3419
- account_holder_name: string;
3420
- /**
3421
- * Bank account number.
3422
- */
3423
- account_number: string;
3424
- /**
3425
- * ABA routing number (9 digits).
3426
- */
3427
- routing_number: string;
3428
- /**
3429
- * Discriminator for ABA wire financial address.
3430
- */
3431
- type: 'aba';
3432
- }
3433
3501
  interface BicFinancialAddress {
3434
3502
  /**
3435
3503
  * Name of the account holder.
@@ -3439,6 +3507,10 @@ export declare namespace CounterpartyRejectedWebhookEvent {
3439
3507
  * Local-format bank account number.
3440
3508
  */
3441
3509
  account_number: string;
3510
+ /**
3511
+ * Whether the account is a checking or a savings account, or null if not provided.
3512
+ */
3513
+ account_type: 'checking' | 'savings' | null;
3442
3514
  /**
3443
3515
  * ISO 9362 Bank Identifier Code (8 or 11 characters).
3444
3516
  */
@@ -3537,6 +3609,10 @@ export declare namespace CounterpartyBlockedWebhookEvent {
3537
3609
  * Date of birth in YYYY-MM-DD format, or null if not recorded.
3538
3610
  */
3539
3611
  date_of_birth: string | null;
3612
+ /**
3613
+ * Email address of the counterparty, or null if not recorded.
3614
+ */
3615
+ email: string | null;
3540
3616
  /**
3541
3617
  * Whether the counterparty is a business or an individual.
3542
3618
  */
@@ -3544,12 +3620,16 @@ export declare namespace CounterpartyBlockedWebhookEvent {
3544
3620
  /**
3545
3621
  * Financial address of the counterparty.
3546
3622
  */
3547
- financial_address: Payload.IbanFinancialAddress | Payload.SortCodeFinancialAddress | Payload.AbaFinancialAddress | Payload.BicFinancialAddress | Payload.CryptoWalletFinancialAddress;
3623
+ financial_address: Payload.AbaFinancialAddress | Payload.IbanFinancialAddress | Payload.SortCodeFinancialAddress | Payload.BicFinancialAddress | Payload.CryptoWalletFinancialAddress;
3548
3624
  /**
3549
3625
  * Whether the counterparty is self-owned. `false` if the counterparty is not owned
3550
3626
  * by you, `true` if it is.
3551
3627
  */
3552
3628
  is_self_owned: boolean;
3629
+ /**
3630
+ * National tax or identity number of the counterparty, or null if not recorded.
3631
+ */
3632
+ legal_id: string | null;
3553
3633
  /**
3554
3634
  * Set of up to 50 key-value string pairs you can attach to store structured
3555
3635
  * information, such as correlating this resource with an object in your own
@@ -3562,6 +3642,10 @@ export declare namespace CounterpartyBlockedWebhookEvent {
3562
3642
  * Name of the counterparty, or null if not recorded.
3563
3643
  */
3564
3644
  name: string | null;
3645
+ /**
3646
+ * Phone number of the counterparty, or null if not recorded.
3647
+ */
3648
+ phone: string | null;
3565
3649
  /**
3566
3650
  * Physical address of the counterparty, or null if not recorded.
3567
3651
  */
@@ -3572,11 +3656,37 @@ export declare namespace CounterpartyBlockedWebhookEvent {
3572
3656
  type: 'counterparty';
3573
3657
  }
3574
3658
  namespace Payload {
3659
+ interface AbaFinancialAddress {
3660
+ /**
3661
+ * Name of the account holder.
3662
+ */
3663
+ account_holder_name: string;
3664
+ /**
3665
+ * Bank account number.
3666
+ */
3667
+ account_number: string;
3668
+ /**
3669
+ * Whether the account is a checking or a savings account, or null if not provided.
3670
+ */
3671
+ account_type: 'checking' | 'savings' | null;
3672
+ /**
3673
+ * ABA routing number (9 digits).
3674
+ */
3675
+ routing_number: string;
3676
+ /**
3677
+ * Discriminator for ABA wire financial address.
3678
+ */
3679
+ type: 'aba';
3680
+ }
3575
3681
  interface IbanFinancialAddress {
3576
3682
  /**
3577
3683
  * Name of the account holder.
3578
3684
  */
3579
3685
  account_holder_name: string;
3686
+ /**
3687
+ * Whether the account is a checking or a savings account, or null if not provided.
3688
+ */
3689
+ account_type: 'checking' | 'savings' | null;
3580
3690
  /**
3581
3691
  * Bank Identifier Code, or null if not provided.
3582
3692
  */
@@ -3608,24 +3718,6 @@ export declare namespace CounterpartyBlockedWebhookEvent {
3608
3718
  */
3609
3719
  type: 'sort_code';
3610
3720
  }
3611
- interface AbaFinancialAddress {
3612
- /**
3613
- * Name of the account holder.
3614
- */
3615
- account_holder_name: string;
3616
- /**
3617
- * Bank account number.
3618
- */
3619
- account_number: string;
3620
- /**
3621
- * ABA routing number (9 digits).
3622
- */
3623
- routing_number: string;
3624
- /**
3625
- * Discriminator for ABA wire financial address.
3626
- */
3627
- type: 'aba';
3628
- }
3629
3721
  interface BicFinancialAddress {
3630
3722
  /**
3631
3723
  * Name of the account holder.
@@ -3635,6 +3727,10 @@ export declare namespace CounterpartyBlockedWebhookEvent {
3635
3727
  * Local-format bank account number.
3636
3728
  */
3637
3729
  account_number: string;
3730
+ /**
3731
+ * Whether the account is a checking or a savings account, or null if not provided.
3732
+ */
3733
+ account_type: 'checking' | 'savings' | null;
3638
3734
  /**
3639
3735
  * ISO 9362 Bank Identifier Code (8 or 11 characters).
3640
3736
  */
@@ -3733,6 +3829,10 @@ export declare namespace CounterpartyUnblockedWebhookEvent {
3733
3829
  * Date of birth in YYYY-MM-DD format, or null if not recorded.
3734
3830
  */
3735
3831
  date_of_birth: string | null;
3832
+ /**
3833
+ * Email address of the counterparty, or null if not recorded.
3834
+ */
3835
+ email: string | null;
3736
3836
  /**
3737
3837
  * Whether the counterparty is a business or an individual.
3738
3838
  */
@@ -3740,12 +3840,16 @@ export declare namespace CounterpartyUnblockedWebhookEvent {
3740
3840
  /**
3741
3841
  * Financial address of the counterparty.
3742
3842
  */
3743
- financial_address: Payload.IbanFinancialAddress | Payload.SortCodeFinancialAddress | Payload.AbaFinancialAddress | Payload.BicFinancialAddress | Payload.CryptoWalletFinancialAddress;
3843
+ financial_address: Payload.AbaFinancialAddress | Payload.IbanFinancialAddress | Payload.SortCodeFinancialAddress | Payload.BicFinancialAddress | Payload.CryptoWalletFinancialAddress;
3744
3844
  /**
3745
3845
  * Whether the counterparty is self-owned. `false` if the counterparty is not owned
3746
3846
  * by you, `true` if it is.
3747
3847
  */
3748
3848
  is_self_owned: boolean;
3849
+ /**
3850
+ * National tax or identity number of the counterparty, or null if not recorded.
3851
+ */
3852
+ legal_id: string | null;
3749
3853
  /**
3750
3854
  * Set of up to 50 key-value string pairs you can attach to store structured
3751
3855
  * information, such as correlating this resource with an object in your own
@@ -3758,6 +3862,10 @@ export declare namespace CounterpartyUnblockedWebhookEvent {
3758
3862
  * Name of the counterparty, or null if not recorded.
3759
3863
  */
3760
3864
  name: string | null;
3865
+ /**
3866
+ * Phone number of the counterparty, or null if not recorded.
3867
+ */
3868
+ phone: string | null;
3761
3869
  /**
3762
3870
  * Physical address of the counterparty, or null if not recorded.
3763
3871
  */
@@ -3768,11 +3876,37 @@ export declare namespace CounterpartyUnblockedWebhookEvent {
3768
3876
  type: 'counterparty';
3769
3877
  }
3770
3878
  namespace Payload {
3879
+ interface AbaFinancialAddress {
3880
+ /**
3881
+ * Name of the account holder.
3882
+ */
3883
+ account_holder_name: string;
3884
+ /**
3885
+ * Bank account number.
3886
+ */
3887
+ account_number: string;
3888
+ /**
3889
+ * Whether the account is a checking or a savings account, or null if not provided.
3890
+ */
3891
+ account_type: 'checking' | 'savings' | null;
3892
+ /**
3893
+ * ABA routing number (9 digits).
3894
+ */
3895
+ routing_number: string;
3896
+ /**
3897
+ * Discriminator for ABA wire financial address.
3898
+ */
3899
+ type: 'aba';
3900
+ }
3771
3901
  interface IbanFinancialAddress {
3772
3902
  /**
3773
3903
  * Name of the account holder.
3774
3904
  */
3775
3905
  account_holder_name: string;
3906
+ /**
3907
+ * Whether the account is a checking or a savings account, or null if not provided.
3908
+ */
3909
+ account_type: 'checking' | 'savings' | null;
3776
3910
  /**
3777
3911
  * Bank Identifier Code, or null if not provided.
3778
3912
  */
@@ -3804,24 +3938,6 @@ export declare namespace CounterpartyUnblockedWebhookEvent {
3804
3938
  */
3805
3939
  type: 'sort_code';
3806
3940
  }
3807
- interface AbaFinancialAddress {
3808
- /**
3809
- * Name of the account holder.
3810
- */
3811
- account_holder_name: string;
3812
- /**
3813
- * Bank account number.
3814
- */
3815
- account_number: string;
3816
- /**
3817
- * ABA routing number (9 digits).
3818
- */
3819
- routing_number: string;
3820
- /**
3821
- * Discriminator for ABA wire financial address.
3822
- */
3823
- type: 'aba';
3824
- }
3825
3941
  interface BicFinancialAddress {
3826
3942
  /**
3827
3943
  * Name of the account holder.
@@ -3831,6 +3947,10 @@ export declare namespace CounterpartyUnblockedWebhookEvent {
3831
3947
  * Local-format bank account number.
3832
3948
  */
3833
3949
  account_number: string;
3950
+ /**
3951
+ * Whether the account is a checking or a savings account, or null if not provided.
3952
+ */
3953
+ account_type: 'checking' | 'savings' | null;
3834
3954
  /**
3835
3955
  * ISO 9362 Bank Identifier Code (8 or 11 characters).
3836
3956
  */
@@ -3929,6 +4049,10 @@ export declare namespace CounterpartyUpdatedWebhookEvent {
3929
4049
  * Date of birth in YYYY-MM-DD format, or null if not recorded.
3930
4050
  */
3931
4051
  date_of_birth: string | null;
4052
+ /**
4053
+ * Email address of the counterparty, or null if not recorded.
4054
+ */
4055
+ email: string | null;
3932
4056
  /**
3933
4057
  * Whether the counterparty is a business or an individual.
3934
4058
  */
@@ -3936,12 +4060,16 @@ export declare namespace CounterpartyUpdatedWebhookEvent {
3936
4060
  /**
3937
4061
  * Financial address of the counterparty.
3938
4062
  */
3939
- financial_address: Payload.IbanFinancialAddress | Payload.SortCodeFinancialAddress | Payload.AbaFinancialAddress | Payload.BicFinancialAddress | Payload.CryptoWalletFinancialAddress;
4063
+ financial_address: Payload.AbaFinancialAddress | Payload.IbanFinancialAddress | Payload.SortCodeFinancialAddress | Payload.BicFinancialAddress | Payload.CryptoWalletFinancialAddress;
3940
4064
  /**
3941
4065
  * Whether the counterparty is self-owned. `false` if the counterparty is not owned
3942
4066
  * by you, `true` if it is.
3943
4067
  */
3944
4068
  is_self_owned: boolean;
4069
+ /**
4070
+ * National tax or identity number of the counterparty, or null if not recorded.
4071
+ */
4072
+ legal_id: string | null;
3945
4073
  /**
3946
4074
  * Set of up to 50 key-value string pairs you can attach to store structured
3947
4075
  * information, such as correlating this resource with an object in your own
@@ -3954,6 +4082,10 @@ export declare namespace CounterpartyUpdatedWebhookEvent {
3954
4082
  * Name of the counterparty, or null if not recorded.
3955
4083
  */
3956
4084
  name: string | null;
4085
+ /**
4086
+ * Phone number of the counterparty, or null if not recorded.
4087
+ */
4088
+ phone: string | null;
3957
4089
  /**
3958
4090
  * Physical address of the counterparty, or null if not recorded.
3959
4091
  */
@@ -3964,11 +4096,37 @@ export declare namespace CounterpartyUpdatedWebhookEvent {
3964
4096
  type: 'counterparty';
3965
4097
  }
3966
4098
  namespace Payload {
4099
+ interface AbaFinancialAddress {
4100
+ /**
4101
+ * Name of the account holder.
4102
+ */
4103
+ account_holder_name: string;
4104
+ /**
4105
+ * Bank account number.
4106
+ */
4107
+ account_number: string;
4108
+ /**
4109
+ * Whether the account is a checking or a savings account, or null if not provided.
4110
+ */
4111
+ account_type: 'checking' | 'savings' | null;
4112
+ /**
4113
+ * ABA routing number (9 digits).
4114
+ */
4115
+ routing_number: string;
4116
+ /**
4117
+ * Discriminator for ABA wire financial address.
4118
+ */
4119
+ type: 'aba';
4120
+ }
3967
4121
  interface IbanFinancialAddress {
3968
4122
  /**
3969
4123
  * Name of the account holder.
3970
4124
  */
3971
4125
  account_holder_name: string;
4126
+ /**
4127
+ * Whether the account is a checking or a savings account, or null if not provided.
4128
+ */
4129
+ account_type: 'checking' | 'savings' | null;
3972
4130
  /**
3973
4131
  * Bank Identifier Code, or null if not provided.
3974
4132
  */
@@ -4000,24 +4158,6 @@ export declare namespace CounterpartyUpdatedWebhookEvent {
4000
4158
  */
4001
4159
  type: 'sort_code';
4002
4160
  }
4003
- interface AbaFinancialAddress {
4004
- /**
4005
- * Name of the account holder.
4006
- */
4007
- account_holder_name: string;
4008
- /**
4009
- * Bank account number.
4010
- */
4011
- account_number: string;
4012
- /**
4013
- * ABA routing number (9 digits).
4014
- */
4015
- routing_number: string;
4016
- /**
4017
- * Discriminator for ABA wire financial address.
4018
- */
4019
- type: 'aba';
4020
- }
4021
4161
  interface BicFinancialAddress {
4022
4162
  /**
4023
4163
  * Name of the account holder.
@@ -4027,6 +4167,10 @@ export declare namespace CounterpartyUpdatedWebhookEvent {
4027
4167
  * Local-format bank account number.
4028
4168
  */
4029
4169
  account_number: string;
4170
+ /**
4171
+ * Whether the account is a checking or a savings account, or null if not provided.
4172
+ */
4173
+ account_type: 'checking' | 'savings' | null;
4030
4174
  /**
4031
4175
  * ISO 9362 Bank Identifier Code (8 or 11 characters).
4032
4176
  */