@augustusbank/typescript-sdk 0.27.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.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/resources/accounts.d.mts +186 -114
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +186 -114
- package/resources/accounts.d.ts.map +1 -1
- package/resources/counterparties.d.mts +243 -97
- package/resources/counterparties.d.mts.map +1 -1
- package/resources/counterparties.d.ts +243 -97
- package/resources/counterparties.d.ts.map +1 -1
- package/resources/counterparties.js +3 -2
- package/resources/counterparties.js.map +1 -1
- package/resources/counterparties.mjs +3 -2
- package/resources/counterparties.mjs.map +1 -1
- package/resources/payouts.d.mts +1 -1
- package/resources/payouts.d.ts +1 -1
- package/resources/payouts.js +1 -1
- package/resources/payouts.mjs +1 -1
- package/resources/simulations/account-programs.d.mts +37 -22
- package/resources/simulations/account-programs.d.mts.map +1 -1
- package/resources/simulations/account-programs.d.ts +37 -22
- package/resources/simulations/account-programs.d.ts.map +1 -1
- package/resources/simulations/account-programs.js +3 -2
- package/resources/simulations/account-programs.js.map +1 -1
- package/resources/simulations/account-programs.mjs +3 -2
- package/resources/simulations/account-programs.mjs.map +1 -1
- package/resources/simulations/accounts.d.mts +37 -22
- package/resources/simulations/accounts.d.mts.map +1 -1
- package/resources/simulations/accounts.d.ts +37 -22
- package/resources/simulations/accounts.d.ts.map +1 -1
- package/resources/simulations/accounts.js +4 -3
- package/resources/simulations/accounts.js.map +1 -1
- package/resources/simulations/accounts.mjs +4 -3
- package/resources/simulations/accounts.mjs.map +1 -1
- package/resources/simulations/deposits.d.mts +41 -20
- package/resources/simulations/deposits.d.mts.map +1 -1
- package/resources/simulations/deposits.d.ts +41 -20
- package/resources/simulations/deposits.d.ts.map +1 -1
- package/resources/simulations/deposits.js +1 -1
- package/resources/simulations/deposits.mjs +1 -1
- package/resources/transactions.d.mts +62 -38
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +62 -38
- package/resources/transactions.d.ts.map +1 -1
- package/resources/webhooks.d.mts +258 -114
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +258 -114
- package/resources/webhooks.d.ts.map +1 -1
- package/src/resources/accounts.ts +216 -126
- package/src/resources/counterparties.ts +286 -107
- package/src/resources/payouts.ts +1 -1
- package/src/resources/simulations/account-programs.ts +42 -25
- package/src/resources/simulations/accounts.ts +42 -25
- package/src/resources/simulations/deposits.ts +46 -22
- package/src/resources/transactions.ts +72 -42
- package/src/resources/webhooks.ts +306 -126
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -11,8 +11,9 @@ export declare class Counterparties extends APIResource {
|
|
|
11
11
|
* const counterparty = await client.counterparties.create({
|
|
12
12
|
* financial_address: {
|
|
13
13
|
* account_holder_name: 'Acme Sandbox Ltd.',
|
|
14
|
-
*
|
|
15
|
-
*
|
|
14
|
+
* account_number: '000123456789',
|
|
15
|
+
* routing_number: '110000000',
|
|
16
|
+
* type: 'aba',
|
|
16
17
|
* },
|
|
17
18
|
* });
|
|
18
19
|
* ```
|
|
@@ -67,6 +68,10 @@ export interface CounterpartyCreateResponse {
|
|
|
67
68
|
* Date of birth in YYYY-MM-DD format, or null if not recorded.
|
|
68
69
|
*/
|
|
69
70
|
date_of_birth: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* Email address of the counterparty, or null if not recorded.
|
|
73
|
+
*/
|
|
74
|
+
email: string | null;
|
|
70
75
|
/**
|
|
71
76
|
* Whether the counterparty is a business or an individual.
|
|
72
77
|
*/
|
|
@@ -74,12 +79,16 @@ export interface CounterpartyCreateResponse {
|
|
|
74
79
|
/**
|
|
75
80
|
* Financial address of the counterparty.
|
|
76
81
|
*/
|
|
77
|
-
financial_address: CounterpartyCreateResponse.
|
|
82
|
+
financial_address: CounterpartyCreateResponse.AbaFinancialAddress | CounterpartyCreateResponse.IbanFinancialAddress | CounterpartyCreateResponse.SortCodeFinancialAddress | CounterpartyCreateResponse.BicFinancialAddress | CounterpartyCreateResponse.CryptoWalletFinancialAddress;
|
|
78
83
|
/**
|
|
79
84
|
* Whether the counterparty is self-owned. `false` if the counterparty is not owned
|
|
80
85
|
* by you, `true` if it is.
|
|
81
86
|
*/
|
|
82
87
|
is_self_owned: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* National tax or identity number of the counterparty, or null if not recorded.
|
|
90
|
+
*/
|
|
91
|
+
legal_id: string | null;
|
|
83
92
|
/**
|
|
84
93
|
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
85
94
|
* information, such as correlating this resource with an object in your own
|
|
@@ -92,6 +101,10 @@ export interface CounterpartyCreateResponse {
|
|
|
92
101
|
* Name of the counterparty, or null if not recorded.
|
|
93
102
|
*/
|
|
94
103
|
name: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* Phone number of the counterparty, or null if not recorded.
|
|
106
|
+
*/
|
|
107
|
+
phone: string | null;
|
|
95
108
|
/**
|
|
96
109
|
* Physical address of the counterparty, or null if not recorded.
|
|
97
110
|
*/
|
|
@@ -102,11 +115,37 @@ export interface CounterpartyCreateResponse {
|
|
|
102
115
|
type: 'counterparty';
|
|
103
116
|
}
|
|
104
117
|
export declare namespace CounterpartyCreateResponse {
|
|
118
|
+
interface AbaFinancialAddress {
|
|
119
|
+
/**
|
|
120
|
+
* Name of the account holder.
|
|
121
|
+
*/
|
|
122
|
+
account_holder_name: string;
|
|
123
|
+
/**
|
|
124
|
+
* Bank account number.
|
|
125
|
+
*/
|
|
126
|
+
account_number: string;
|
|
127
|
+
/**
|
|
128
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
129
|
+
*/
|
|
130
|
+
account_type: 'checking' | 'savings' | null;
|
|
131
|
+
/**
|
|
132
|
+
* ABA routing number (9 digits).
|
|
133
|
+
*/
|
|
134
|
+
routing_number: string;
|
|
135
|
+
/**
|
|
136
|
+
* Discriminator for ABA wire financial address.
|
|
137
|
+
*/
|
|
138
|
+
type: 'aba';
|
|
139
|
+
}
|
|
105
140
|
interface IbanFinancialAddress {
|
|
106
141
|
/**
|
|
107
142
|
* Name of the account holder.
|
|
108
143
|
*/
|
|
109
144
|
account_holder_name: string;
|
|
145
|
+
/**
|
|
146
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
147
|
+
*/
|
|
148
|
+
account_type: 'checking' | 'savings' | null;
|
|
110
149
|
/**
|
|
111
150
|
* Bank Identifier Code, or null if not provided.
|
|
112
151
|
*/
|
|
@@ -138,24 +177,6 @@ export declare namespace CounterpartyCreateResponse {
|
|
|
138
177
|
*/
|
|
139
178
|
type: 'sort_code';
|
|
140
179
|
}
|
|
141
|
-
interface AbaFinancialAddress {
|
|
142
|
-
/**
|
|
143
|
-
* Name of the account holder.
|
|
144
|
-
*/
|
|
145
|
-
account_holder_name: string;
|
|
146
|
-
/**
|
|
147
|
-
* Bank account number.
|
|
148
|
-
*/
|
|
149
|
-
account_number: string;
|
|
150
|
-
/**
|
|
151
|
-
* ABA routing number (9 digits).
|
|
152
|
-
*/
|
|
153
|
-
routing_number: string;
|
|
154
|
-
/**
|
|
155
|
-
* Discriminator for ABA wire financial address.
|
|
156
|
-
*/
|
|
157
|
-
type: 'aba';
|
|
158
|
-
}
|
|
159
180
|
interface BicFinancialAddress {
|
|
160
181
|
/**
|
|
161
182
|
* Name of the account holder.
|
|
@@ -165,6 +186,10 @@ export declare namespace CounterpartyCreateResponse {
|
|
|
165
186
|
* Local-format bank account number.
|
|
166
187
|
*/
|
|
167
188
|
account_number: string;
|
|
189
|
+
/**
|
|
190
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
191
|
+
*/
|
|
192
|
+
account_type: 'checking' | 'savings' | null;
|
|
168
193
|
/**
|
|
169
194
|
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
170
195
|
*/
|
|
@@ -236,6 +261,10 @@ export interface CounterpartyRetrieveResponse {
|
|
|
236
261
|
* Date of birth in YYYY-MM-DD format, or null if not recorded.
|
|
237
262
|
*/
|
|
238
263
|
date_of_birth: string | null;
|
|
264
|
+
/**
|
|
265
|
+
* Email address of the counterparty, or null if not recorded.
|
|
266
|
+
*/
|
|
267
|
+
email: string | null;
|
|
239
268
|
/**
|
|
240
269
|
* Whether the counterparty is a business or an individual.
|
|
241
270
|
*/
|
|
@@ -243,12 +272,16 @@ export interface CounterpartyRetrieveResponse {
|
|
|
243
272
|
/**
|
|
244
273
|
* Financial address of the counterparty.
|
|
245
274
|
*/
|
|
246
|
-
financial_address: CounterpartyRetrieveResponse.
|
|
275
|
+
financial_address: CounterpartyRetrieveResponse.AbaFinancialAddress | CounterpartyRetrieveResponse.IbanFinancialAddress | CounterpartyRetrieveResponse.SortCodeFinancialAddress | CounterpartyRetrieveResponse.BicFinancialAddress | CounterpartyRetrieveResponse.CryptoWalletFinancialAddress;
|
|
247
276
|
/**
|
|
248
277
|
* Whether the counterparty is self-owned. `false` if the counterparty is not owned
|
|
249
278
|
* by you, `true` if it is.
|
|
250
279
|
*/
|
|
251
280
|
is_self_owned: boolean;
|
|
281
|
+
/**
|
|
282
|
+
* National tax or identity number of the counterparty, or null if not recorded.
|
|
283
|
+
*/
|
|
284
|
+
legal_id: string | null;
|
|
252
285
|
/**
|
|
253
286
|
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
254
287
|
* information, such as correlating this resource with an object in your own
|
|
@@ -261,6 +294,10 @@ export interface CounterpartyRetrieveResponse {
|
|
|
261
294
|
* Name of the counterparty, or null if not recorded.
|
|
262
295
|
*/
|
|
263
296
|
name: string | null;
|
|
297
|
+
/**
|
|
298
|
+
* Phone number of the counterparty, or null if not recorded.
|
|
299
|
+
*/
|
|
300
|
+
phone: string | null;
|
|
264
301
|
/**
|
|
265
302
|
* Physical address of the counterparty, or null if not recorded.
|
|
266
303
|
*/
|
|
@@ -271,11 +308,37 @@ export interface CounterpartyRetrieveResponse {
|
|
|
271
308
|
type: 'counterparty';
|
|
272
309
|
}
|
|
273
310
|
export declare namespace CounterpartyRetrieveResponse {
|
|
311
|
+
interface AbaFinancialAddress {
|
|
312
|
+
/**
|
|
313
|
+
* Name of the account holder.
|
|
314
|
+
*/
|
|
315
|
+
account_holder_name: string;
|
|
316
|
+
/**
|
|
317
|
+
* Bank account number.
|
|
318
|
+
*/
|
|
319
|
+
account_number: string;
|
|
320
|
+
/**
|
|
321
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
322
|
+
*/
|
|
323
|
+
account_type: 'checking' | 'savings' | null;
|
|
324
|
+
/**
|
|
325
|
+
* ABA routing number (9 digits).
|
|
326
|
+
*/
|
|
327
|
+
routing_number: string;
|
|
328
|
+
/**
|
|
329
|
+
* Discriminator for ABA wire financial address.
|
|
330
|
+
*/
|
|
331
|
+
type: 'aba';
|
|
332
|
+
}
|
|
274
333
|
interface IbanFinancialAddress {
|
|
275
334
|
/**
|
|
276
335
|
* Name of the account holder.
|
|
277
336
|
*/
|
|
278
337
|
account_holder_name: string;
|
|
338
|
+
/**
|
|
339
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
340
|
+
*/
|
|
341
|
+
account_type: 'checking' | 'savings' | null;
|
|
279
342
|
/**
|
|
280
343
|
* Bank Identifier Code, or null if not provided.
|
|
281
344
|
*/
|
|
@@ -307,24 +370,6 @@ export declare namespace CounterpartyRetrieveResponse {
|
|
|
307
370
|
*/
|
|
308
371
|
type: 'sort_code';
|
|
309
372
|
}
|
|
310
|
-
interface AbaFinancialAddress {
|
|
311
|
-
/**
|
|
312
|
-
* Name of the account holder.
|
|
313
|
-
*/
|
|
314
|
-
account_holder_name: string;
|
|
315
|
-
/**
|
|
316
|
-
* Bank account number.
|
|
317
|
-
*/
|
|
318
|
-
account_number: string;
|
|
319
|
-
/**
|
|
320
|
-
* ABA routing number (9 digits).
|
|
321
|
-
*/
|
|
322
|
-
routing_number: string;
|
|
323
|
-
/**
|
|
324
|
-
* Discriminator for ABA wire financial address.
|
|
325
|
-
*/
|
|
326
|
-
type: 'aba';
|
|
327
|
-
}
|
|
328
373
|
interface BicFinancialAddress {
|
|
329
374
|
/**
|
|
330
375
|
* Name of the account holder.
|
|
@@ -334,6 +379,10 @@ export declare namespace CounterpartyRetrieveResponse {
|
|
|
334
379
|
* Local-format bank account number.
|
|
335
380
|
*/
|
|
336
381
|
account_number: string;
|
|
382
|
+
/**
|
|
383
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
384
|
+
*/
|
|
385
|
+
account_type: 'checking' | 'savings' | null;
|
|
337
386
|
/**
|
|
338
387
|
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
339
388
|
*/
|
|
@@ -405,6 +454,10 @@ export interface CounterpartyUpdateResponse {
|
|
|
405
454
|
* Date of birth in YYYY-MM-DD format, or null if not recorded.
|
|
406
455
|
*/
|
|
407
456
|
date_of_birth: string | null;
|
|
457
|
+
/**
|
|
458
|
+
* Email address of the counterparty, or null if not recorded.
|
|
459
|
+
*/
|
|
460
|
+
email: string | null;
|
|
408
461
|
/**
|
|
409
462
|
* Whether the counterparty is a business or an individual.
|
|
410
463
|
*/
|
|
@@ -412,12 +465,16 @@ export interface CounterpartyUpdateResponse {
|
|
|
412
465
|
/**
|
|
413
466
|
* Financial address of the counterparty.
|
|
414
467
|
*/
|
|
415
|
-
financial_address: CounterpartyUpdateResponse.
|
|
468
|
+
financial_address: CounterpartyUpdateResponse.AbaFinancialAddress | CounterpartyUpdateResponse.IbanFinancialAddress | CounterpartyUpdateResponse.SortCodeFinancialAddress | CounterpartyUpdateResponse.BicFinancialAddress | CounterpartyUpdateResponse.CryptoWalletFinancialAddress;
|
|
416
469
|
/**
|
|
417
470
|
* Whether the counterparty is self-owned. `false` if the counterparty is not owned
|
|
418
471
|
* by you, `true` if it is.
|
|
419
472
|
*/
|
|
420
473
|
is_self_owned: boolean;
|
|
474
|
+
/**
|
|
475
|
+
* National tax or identity number of the counterparty, or null if not recorded.
|
|
476
|
+
*/
|
|
477
|
+
legal_id: string | null;
|
|
421
478
|
/**
|
|
422
479
|
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
423
480
|
* information, such as correlating this resource with an object in your own
|
|
@@ -430,6 +487,10 @@ export interface CounterpartyUpdateResponse {
|
|
|
430
487
|
* Name of the counterparty, or null if not recorded.
|
|
431
488
|
*/
|
|
432
489
|
name: string | null;
|
|
490
|
+
/**
|
|
491
|
+
* Phone number of the counterparty, or null if not recorded.
|
|
492
|
+
*/
|
|
493
|
+
phone: string | null;
|
|
433
494
|
/**
|
|
434
495
|
* Physical address of the counterparty, or null if not recorded.
|
|
435
496
|
*/
|
|
@@ -440,11 +501,37 @@ export interface CounterpartyUpdateResponse {
|
|
|
440
501
|
type: 'counterparty';
|
|
441
502
|
}
|
|
442
503
|
export declare namespace CounterpartyUpdateResponse {
|
|
504
|
+
interface AbaFinancialAddress {
|
|
505
|
+
/**
|
|
506
|
+
* Name of the account holder.
|
|
507
|
+
*/
|
|
508
|
+
account_holder_name: string;
|
|
509
|
+
/**
|
|
510
|
+
* Bank account number.
|
|
511
|
+
*/
|
|
512
|
+
account_number: string;
|
|
513
|
+
/**
|
|
514
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
515
|
+
*/
|
|
516
|
+
account_type: 'checking' | 'savings' | null;
|
|
517
|
+
/**
|
|
518
|
+
* ABA routing number (9 digits).
|
|
519
|
+
*/
|
|
520
|
+
routing_number: string;
|
|
521
|
+
/**
|
|
522
|
+
* Discriminator for ABA wire financial address.
|
|
523
|
+
*/
|
|
524
|
+
type: 'aba';
|
|
525
|
+
}
|
|
443
526
|
interface IbanFinancialAddress {
|
|
444
527
|
/**
|
|
445
528
|
* Name of the account holder.
|
|
446
529
|
*/
|
|
447
530
|
account_holder_name: string;
|
|
531
|
+
/**
|
|
532
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
533
|
+
*/
|
|
534
|
+
account_type: 'checking' | 'savings' | null;
|
|
448
535
|
/**
|
|
449
536
|
* Bank Identifier Code, or null if not provided.
|
|
450
537
|
*/
|
|
@@ -476,24 +563,6 @@ export declare namespace CounterpartyUpdateResponse {
|
|
|
476
563
|
*/
|
|
477
564
|
type: 'sort_code';
|
|
478
565
|
}
|
|
479
|
-
interface AbaFinancialAddress {
|
|
480
|
-
/**
|
|
481
|
-
* Name of the account holder.
|
|
482
|
-
*/
|
|
483
|
-
account_holder_name: string;
|
|
484
|
-
/**
|
|
485
|
-
* Bank account number.
|
|
486
|
-
*/
|
|
487
|
-
account_number: string;
|
|
488
|
-
/**
|
|
489
|
-
* ABA routing number (9 digits).
|
|
490
|
-
*/
|
|
491
|
-
routing_number: string;
|
|
492
|
-
/**
|
|
493
|
-
* Discriminator for ABA wire financial address.
|
|
494
|
-
*/
|
|
495
|
-
type: 'aba';
|
|
496
|
-
}
|
|
497
566
|
interface BicFinancialAddress {
|
|
498
567
|
/**
|
|
499
568
|
* Name of the account holder.
|
|
@@ -503,6 +572,10 @@ export declare namespace CounterpartyUpdateResponse {
|
|
|
503
572
|
* Local-format bank account number.
|
|
504
573
|
*/
|
|
505
574
|
account_number: string;
|
|
575
|
+
/**
|
|
576
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
577
|
+
*/
|
|
578
|
+
account_type: 'checking' | 'savings' | null;
|
|
506
579
|
/**
|
|
507
580
|
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
508
581
|
*/
|
|
@@ -574,6 +647,10 @@ export interface CounterpartyListResponse {
|
|
|
574
647
|
* Date of birth in YYYY-MM-DD format, or null if not recorded.
|
|
575
648
|
*/
|
|
576
649
|
date_of_birth: string | null;
|
|
650
|
+
/**
|
|
651
|
+
* Email address of the counterparty, or null if not recorded.
|
|
652
|
+
*/
|
|
653
|
+
email: string | null;
|
|
577
654
|
/**
|
|
578
655
|
* Whether the counterparty is a business or an individual.
|
|
579
656
|
*/
|
|
@@ -581,12 +658,16 @@ export interface CounterpartyListResponse {
|
|
|
581
658
|
/**
|
|
582
659
|
* Financial address of the counterparty.
|
|
583
660
|
*/
|
|
584
|
-
financial_address: CounterpartyListResponse.
|
|
661
|
+
financial_address: CounterpartyListResponse.AbaFinancialAddress | CounterpartyListResponse.IbanFinancialAddress | CounterpartyListResponse.SortCodeFinancialAddress | CounterpartyListResponse.BicFinancialAddress | CounterpartyListResponse.CryptoWalletFinancialAddress;
|
|
585
662
|
/**
|
|
586
663
|
* Whether the counterparty is self-owned. `false` if the counterparty is not owned
|
|
587
664
|
* by you, `true` if it is.
|
|
588
665
|
*/
|
|
589
666
|
is_self_owned: boolean;
|
|
667
|
+
/**
|
|
668
|
+
* National tax or identity number of the counterparty, or null if not recorded.
|
|
669
|
+
*/
|
|
670
|
+
legal_id: string | null;
|
|
590
671
|
/**
|
|
591
672
|
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
592
673
|
* information, such as correlating this resource with an object in your own
|
|
@@ -599,6 +680,10 @@ export interface CounterpartyListResponse {
|
|
|
599
680
|
* Name of the counterparty, or null if not recorded.
|
|
600
681
|
*/
|
|
601
682
|
name: string | null;
|
|
683
|
+
/**
|
|
684
|
+
* Phone number of the counterparty, or null if not recorded.
|
|
685
|
+
*/
|
|
686
|
+
phone: string | null;
|
|
602
687
|
/**
|
|
603
688
|
* Physical address of the counterparty, or null if not recorded.
|
|
604
689
|
*/
|
|
@@ -609,11 +694,37 @@ export interface CounterpartyListResponse {
|
|
|
609
694
|
type: 'counterparty';
|
|
610
695
|
}
|
|
611
696
|
export declare namespace CounterpartyListResponse {
|
|
697
|
+
interface AbaFinancialAddress {
|
|
698
|
+
/**
|
|
699
|
+
* Name of the account holder.
|
|
700
|
+
*/
|
|
701
|
+
account_holder_name: string;
|
|
702
|
+
/**
|
|
703
|
+
* Bank account number.
|
|
704
|
+
*/
|
|
705
|
+
account_number: string;
|
|
706
|
+
/**
|
|
707
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
708
|
+
*/
|
|
709
|
+
account_type: 'checking' | 'savings' | null;
|
|
710
|
+
/**
|
|
711
|
+
* ABA routing number (9 digits).
|
|
712
|
+
*/
|
|
713
|
+
routing_number: string;
|
|
714
|
+
/**
|
|
715
|
+
* Discriminator for ABA wire financial address.
|
|
716
|
+
*/
|
|
717
|
+
type: 'aba';
|
|
718
|
+
}
|
|
612
719
|
interface IbanFinancialAddress {
|
|
613
720
|
/**
|
|
614
721
|
* Name of the account holder.
|
|
615
722
|
*/
|
|
616
723
|
account_holder_name: string;
|
|
724
|
+
/**
|
|
725
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
726
|
+
*/
|
|
727
|
+
account_type: 'checking' | 'savings' | null;
|
|
617
728
|
/**
|
|
618
729
|
* Bank Identifier Code, or null if not provided.
|
|
619
730
|
*/
|
|
@@ -645,24 +756,6 @@ export declare namespace CounterpartyListResponse {
|
|
|
645
756
|
*/
|
|
646
757
|
type: 'sort_code';
|
|
647
758
|
}
|
|
648
|
-
interface AbaFinancialAddress {
|
|
649
|
-
/**
|
|
650
|
-
* Name of the account holder.
|
|
651
|
-
*/
|
|
652
|
-
account_holder_name: string;
|
|
653
|
-
/**
|
|
654
|
-
* Bank account number.
|
|
655
|
-
*/
|
|
656
|
-
account_number: string;
|
|
657
|
-
/**
|
|
658
|
-
* ABA routing number (9 digits).
|
|
659
|
-
*/
|
|
660
|
-
routing_number: string;
|
|
661
|
-
/**
|
|
662
|
-
* Discriminator for ABA wire financial address.
|
|
663
|
-
*/
|
|
664
|
-
type: 'aba';
|
|
665
|
-
}
|
|
666
759
|
interface BicFinancialAddress {
|
|
667
760
|
/**
|
|
668
761
|
* Name of the account holder.
|
|
@@ -672,6 +765,10 @@ export declare namespace CounterpartyListResponse {
|
|
|
672
765
|
* Local-format bank account number.
|
|
673
766
|
*/
|
|
674
767
|
account_number: string;
|
|
768
|
+
/**
|
|
769
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
770
|
+
*/
|
|
771
|
+
account_type: 'checking' | 'savings' | null;
|
|
675
772
|
/**
|
|
676
773
|
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
677
774
|
*/
|
|
@@ -734,11 +831,16 @@ export interface CounterpartyCreateParams {
|
|
|
734
831
|
/**
|
|
735
832
|
* Financial address of the counterparty.
|
|
736
833
|
*/
|
|
737
|
-
financial_address: CounterpartyCreateParams.
|
|
834
|
+
financial_address: CounterpartyCreateParams.AbaFinancialAddressRequest | CounterpartyCreateParams.IbanFinancialAddressRequest | CounterpartyCreateParams.SortCodeFinancialAddressRequest | CounterpartyCreateParams.BicFinancialAddressRequest | CounterpartyCreateParams.CryptoWalletFinancialAddress;
|
|
738
835
|
/**
|
|
739
836
|
* Date of birth in YYYY-MM-DD format.
|
|
740
837
|
*/
|
|
741
838
|
date_of_birth?: string;
|
|
839
|
+
/**
|
|
840
|
+
* Email address of the counterparty. Stored for operational contact only; it is
|
|
841
|
+
* not sent with payments.
|
|
842
|
+
*/
|
|
843
|
+
email?: string;
|
|
742
844
|
/**
|
|
743
845
|
* Whether the counterparty is a business or an individual. Defaults to business.
|
|
744
846
|
*/
|
|
@@ -748,6 +850,12 @@ export interface CounterpartyCreateParams {
|
|
|
748
850
|
* by you, `true` if it is.
|
|
749
851
|
*/
|
|
750
852
|
is_self_owned?: boolean;
|
|
853
|
+
/**
|
|
854
|
+
* National tax or identity number of the counterparty, as issued in its country:
|
|
855
|
+
* CPF or CNPJ in Brazil, Cédula or NIT in Colombia, CUIL or CUIT in Argentina, DNI
|
|
856
|
+
* or RUC in Peru, RUT in Chile. Free text, up to 127 characters.
|
|
857
|
+
*/
|
|
858
|
+
legal_id?: string;
|
|
751
859
|
/**
|
|
752
860
|
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
753
861
|
* information, such as correlating this resource with an object in your own
|
|
@@ -760,12 +868,42 @@ export interface CounterpartyCreateParams {
|
|
|
760
868
|
* Name of the counterparty.
|
|
761
869
|
*/
|
|
762
870
|
name?: string;
|
|
871
|
+
/**
|
|
872
|
+
* Phone number of the counterparty. Stored for operational contact only; it is not
|
|
873
|
+
* sent with payments.
|
|
874
|
+
*/
|
|
875
|
+
phone?: string;
|
|
763
876
|
/**
|
|
764
877
|
* Physical address of the counterparty.
|
|
765
878
|
*/
|
|
766
879
|
physical_address?: CounterpartyCreateParams.PhysicalAddress;
|
|
767
880
|
}
|
|
768
881
|
export declare namespace CounterpartyCreateParams {
|
|
882
|
+
interface AbaFinancialAddressRequest {
|
|
883
|
+
/**
|
|
884
|
+
* Name of the account holder.
|
|
885
|
+
*/
|
|
886
|
+
account_holder_name: string;
|
|
887
|
+
/**
|
|
888
|
+
* Bank account number.
|
|
889
|
+
*/
|
|
890
|
+
account_number: string;
|
|
891
|
+
/**
|
|
892
|
+
* ABA routing number (9 digits).
|
|
893
|
+
*/
|
|
894
|
+
routing_number: string;
|
|
895
|
+
/**
|
|
896
|
+
* Discriminator for ABA wire financial address.
|
|
897
|
+
*/
|
|
898
|
+
type: 'aba';
|
|
899
|
+
/**
|
|
900
|
+
* Whether the account is a checking or a savings account. Optional; omit or send
|
|
901
|
+
* null if not provided. Some destination countries require it (for example the
|
|
902
|
+
* Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
|
|
903
|
+
* code. A payment to an account without one is sent as checking.
|
|
904
|
+
*/
|
|
905
|
+
account_type?: 'checking' | 'savings' | null;
|
|
906
|
+
}
|
|
769
907
|
interface IbanFinancialAddressRequest {
|
|
770
908
|
/**
|
|
771
909
|
* Name of the account holder.
|
|
@@ -779,6 +917,13 @@ export declare namespace CounterpartyCreateParams {
|
|
|
779
917
|
* Discriminator for IBAN financial address.
|
|
780
918
|
*/
|
|
781
919
|
type: 'iban';
|
|
920
|
+
/**
|
|
921
|
+
* Whether the account is a checking or a savings account. Optional; omit or send
|
|
922
|
+
* null if not provided. Some destination countries require it (for example the
|
|
923
|
+
* Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
|
|
924
|
+
* code. A payment to an account without one is sent as checking.
|
|
925
|
+
*/
|
|
926
|
+
account_type?: 'checking' | 'savings' | null;
|
|
782
927
|
/**
|
|
783
928
|
* Bank Identifier Code. Optional; omit or send null if not provided.
|
|
784
929
|
*/
|
|
@@ -802,24 +947,6 @@ export declare namespace CounterpartyCreateParams {
|
|
|
802
947
|
*/
|
|
803
948
|
type: 'sort_code';
|
|
804
949
|
}
|
|
805
|
-
interface AbaFinancialAddressRequest {
|
|
806
|
-
/**
|
|
807
|
-
* Name of the account holder.
|
|
808
|
-
*/
|
|
809
|
-
account_holder_name: string;
|
|
810
|
-
/**
|
|
811
|
-
* Bank account number.
|
|
812
|
-
*/
|
|
813
|
-
account_number: string;
|
|
814
|
-
/**
|
|
815
|
-
* ABA routing number (9 digits).
|
|
816
|
-
*/
|
|
817
|
-
routing_number: string;
|
|
818
|
-
/**
|
|
819
|
-
* Discriminator for ABA wire financial address.
|
|
820
|
-
*/
|
|
821
|
-
type: 'aba';
|
|
822
|
-
}
|
|
823
950
|
interface BicFinancialAddressRequest {
|
|
824
951
|
/**
|
|
825
952
|
* Name of the account holder.
|
|
@@ -837,6 +964,13 @@ export declare namespace CounterpartyCreateParams {
|
|
|
837
964
|
* Discriminator for BIC + local account financial address.
|
|
838
965
|
*/
|
|
839
966
|
type: 'bic';
|
|
967
|
+
/**
|
|
968
|
+
* Whether the account is a checking or a savings account. Optional; omit or send
|
|
969
|
+
* null if not provided. Some destination countries require it (for example the
|
|
970
|
+
* Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
|
|
971
|
+
* code. A payment to an account without one is sent as checking.
|
|
972
|
+
*/
|
|
973
|
+
account_type?: 'checking' | 'savings' | null;
|
|
840
974
|
/**
|
|
841
975
|
* Domestic bank or branch code where the destination country uses one (for example
|
|
842
976
|
* the BSB in Australia). Optional; omit or send null where the country has none.
|
|
@@ -893,6 +1027,10 @@ export interface CounterpartyUpdateParams {
|
|
|
893
1027
|
* birth.
|
|
894
1028
|
*/
|
|
895
1029
|
date_of_birth?: string | null;
|
|
1030
|
+
/**
|
|
1031
|
+
* New email address, or null to clear the current email address.
|
|
1032
|
+
*/
|
|
1033
|
+
email?: string | null;
|
|
896
1034
|
/**
|
|
897
1035
|
* New entity type. Omit to keep the current entity type.
|
|
898
1036
|
*/
|
|
@@ -901,10 +1039,18 @@ export interface CounterpartyUpdateParams {
|
|
|
901
1039
|
* New ownership status. Omit to keep the current ownership status.
|
|
902
1040
|
*/
|
|
903
1041
|
is_self_owned?: boolean;
|
|
1042
|
+
/**
|
|
1043
|
+
* New legal identifier, or null to clear the current legal identifier.
|
|
1044
|
+
*/
|
|
1045
|
+
legal_id?: string | null;
|
|
904
1046
|
/**
|
|
905
1047
|
* New name, or null to clear the current name.
|
|
906
1048
|
*/
|
|
907
1049
|
name?: string | null;
|
|
1050
|
+
/**
|
|
1051
|
+
* New phone number, or null to clear the current phone number.
|
|
1052
|
+
*/
|
|
1053
|
+
phone?: string | null;
|
|
908
1054
|
/**
|
|
909
1055
|
* New physical address, or null to clear the current physical address.
|
|
910
1056
|
*/
|