modern-treasury 3.3.0 → 4.4.2
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 +193 -0
- package/LICENSE +1 -1
- package/README.md +14 -5
- package/client.d.mts +16 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +16 -6
- package/client.d.ts.map +1 -1
- package/client.js +27 -3
- package/client.js.map +1 -1
- package/client.mjs +27 -3
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account-details.d.mts +4 -4
- package/resources/account-details.d.mts.map +1 -1
- package/resources/account-details.d.ts +4 -4
- package/resources/account-details.d.ts.map +1 -1
- package/resources/bulk-requests.d.mts +57 -4
- package/resources/bulk-requests.d.mts.map +1 -1
- package/resources/bulk-requests.d.ts +57 -4
- package/resources/bulk-requests.d.ts.map +1 -1
- package/resources/connection-legal-entities.d.mts +88 -21
- package/resources/connection-legal-entities.d.mts.map +1 -1
- package/resources/connection-legal-entities.d.ts +88 -21
- package/resources/connection-legal-entities.d.ts.map +1 -1
- package/resources/counterparties.d.mts +91 -20
- package/resources/counterparties.d.mts.map +1 -1
- package/resources/counterparties.d.ts +91 -20
- package/resources/counterparties.d.ts.map +1 -1
- package/resources/documents.d.mts +8 -8
- package/resources/documents.d.mts.map +1 -1
- package/resources/documents.d.ts +8 -8
- package/resources/documents.d.ts.map +1 -1
- package/resources/expected-payments.d.mts +60 -0
- package/resources/expected-payments.d.mts.map +1 -1
- package/resources/expected-payments.d.ts +60 -0
- package/resources/expected-payments.d.ts.map +1 -1
- package/resources/external-accounts.d.mts +1 -1
- package/resources/external-accounts.d.mts.map +1 -1
- package/resources/external-accounts.d.ts +1 -1
- package/resources/external-accounts.d.ts.map +1 -1
- package/resources/holds.d.mts +261 -0
- package/resources/holds.d.mts.map +1 -0
- package/resources/holds.d.ts +261 -0
- package/resources/holds.d.ts.map +1 -0
- package/resources/holds.js +35 -0
- package/resources/holds.js.map +1 -0
- package/resources/holds.mjs +31 -0
- package/resources/holds.mjs.map +1 -0
- package/resources/incoming-payment-details.d.mts +17 -4
- package/resources/incoming-payment-details.d.mts.map +1 -1
- package/resources/incoming-payment-details.d.ts +17 -4
- package/resources/incoming-payment-details.d.ts.map +1 -1
- package/resources/index.d.mts +4 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/internal-accounts/internal-accounts.d.mts +35 -0
- package/resources/internal-accounts/internal-accounts.d.mts.map +1 -1
- package/resources/internal-accounts/internal-accounts.d.ts +35 -0
- package/resources/internal-accounts/internal-accounts.d.ts.map +1 -1
- package/resources/internal-accounts/internal-accounts.js +12 -0
- package/resources/internal-accounts/internal-accounts.js.map +1 -1
- package/resources/internal-accounts/internal-accounts.mjs +12 -0
- package/resources/internal-accounts/internal-accounts.mjs.map +1 -1
- package/resources/invoices/invoices.d.mts +1 -21
- package/resources/invoices/invoices.d.mts.map +1 -1
- package/resources/invoices/invoices.d.ts +1 -21
- package/resources/invoices/invoices.d.ts.map +1 -1
- package/resources/invoices/invoices.js.map +1 -1
- package/resources/invoices/invoices.mjs.map +1 -1
- package/resources/journal-entries.d.mts +31 -0
- package/resources/journal-entries.d.mts.map +1 -0
- package/resources/journal-entries.d.ts +31 -0
- package/resources/journal-entries.d.ts.map +1 -0
- package/resources/journal-entries.js +30 -0
- package/resources/journal-entries.js.map +1 -0
- package/resources/journal-entries.mjs +26 -0
- package/resources/journal-entries.mjs.map +1 -0
- package/resources/journal-reports.d.mts +25 -0
- package/resources/journal-reports.d.mts.map +1 -0
- package/resources/journal-reports.d.ts +25 -0
- package/resources/journal-reports.d.ts.map +1 -0
- package/resources/journal-reports.js +39 -0
- package/resources/journal-reports.js.map +1 -0
- package/resources/journal-reports.mjs +35 -0
- package/resources/journal-reports.mjs.map +1 -0
- package/resources/ledger-account-categories.d.mts +9 -5
- package/resources/ledger-account-categories.d.mts.map +1 -1
- package/resources/ledger-account-categories.d.ts +9 -5
- package/resources/ledger-account-categories.d.ts.map +1 -1
- package/resources/ledger-accounts.d.mts +8 -0
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +8 -0
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/ledger-entries.d.mts +6 -1
- package/resources/ledger-entries.d.mts.map +1 -1
- package/resources/ledger-entries.d.ts +6 -1
- package/resources/ledger-entries.d.ts.map +1 -1
- package/resources/ledger-transactions/ledger-transactions.d.mts +5 -0
- package/resources/ledger-transactions/ledger-transactions.d.mts.map +1 -1
- package/resources/ledger-transactions/ledger-transactions.d.ts +5 -0
- package/resources/ledger-transactions/ledger-transactions.d.ts.map +1 -1
- package/resources/ledger-transactions/ledger-transactions.js.map +1 -1
- package/resources/ledger-transactions/ledger-transactions.mjs.map +1 -1
- package/resources/ledger-transactions/versions.d.mts +5 -0
- package/resources/ledger-transactions/versions.d.mts.map +1 -1
- package/resources/ledger-transactions/versions.d.ts +5 -0
- package/resources/ledger-transactions/versions.d.ts.map +1 -1
- package/resources/legal-entities.d.mts +264 -29
- package/resources/legal-entities.d.mts.map +1 -1
- package/resources/legal-entities.d.ts +264 -29
- package/resources/legal-entities.d.ts.map +1 -1
- package/resources/legal-entities.js.map +1 -1
- package/resources/legal-entities.mjs.map +1 -1
- package/resources/legal-entity-associations.d.mts +314 -230
- package/resources/legal-entity-associations.d.mts.map +1 -1
- package/resources/legal-entity-associations.d.ts +314 -230
- package/resources/legal-entity-associations.d.ts.map +1 -1
- package/resources/legal-entity-associations.js.map +1 -1
- package/resources/legal-entity-associations.mjs.map +1 -1
- package/resources/payment-orders/payment-orders.d.mts +31 -14
- package/resources/payment-orders/payment-orders.d.mts.map +1 -1
- package/resources/payment-orders/payment-orders.d.ts +31 -14
- package/resources/payment-orders/payment-orders.d.ts.map +1 -1
- package/resources/payment-orders/payment-orders.js.map +1 -1
- package/resources/payment-orders/payment-orders.mjs.map +1 -1
- package/resources/payment-orders/reversals.d.mts +4 -0
- package/resources/payment-orders/reversals.d.mts.map +1 -1
- package/resources/payment-orders/reversals.d.ts +4 -0
- package/resources/payment-orders/reversals.d.ts.map +1 -1
- package/resources/payment-references.d.mts +1 -1
- package/resources/payment-references.d.mts.map +1 -1
- package/resources/payment-references.d.ts +1 -1
- package/resources/payment-references.d.ts.map +1 -1
- package/resources/returns.d.mts +3 -3
- package/resources/returns.d.mts.map +1 -1
- package/resources/returns.d.ts +3 -3
- package/resources/returns.d.ts.map +1 -1
- package/resources/routing-details.d.mts +2 -2
- package/resources/routing-details.d.ts +2 -2
- package/resources/shared.d.mts +112 -30
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +112 -30
- package/resources/shared.d.ts.map +1 -1
- package/resources/transactions/transactions.d.mts +1 -1
- package/resources/transactions/transactions.d.mts.map +1 -1
- package/resources/transactions/transactions.d.ts +1 -1
- package/resources/transactions/transactions.d.ts.map +1 -1
- package/resources/transactions/transactions.js.map +1 -1
- package/resources/transactions/transactions.mjs.map +1 -1
- package/resources/virtual-accounts.d.mts +1 -1
- package/resources/virtual-accounts.d.mts.map +1 -1
- package/resources/virtual-accounts.d.ts +1 -1
- package/resources/virtual-accounts.d.ts.map +1 -1
- package/src/client.ts +65 -8
- package/src/internal/parse.ts +6 -0
- package/src/resources/account-details.ts +4 -2
- package/src/resources/bulk-requests.ts +68 -2
- package/src/resources/connection-legal-entities.ts +107 -21
- package/src/resources/counterparties.ts +111 -19
- package/src/resources/documents.ts +19 -15
- package/src/resources/expected-payments.ts +72 -0
- package/src/resources/external-accounts.ts +1 -0
- package/src/resources/holds.ts +336 -0
- package/src/resources/incoming-payment-details.ts +35 -3
- package/src/resources/index.ts +14 -0
- package/src/resources/internal-accounts/internal-accounts.ts +44 -0
- package/src/resources/invoices/invoices.ts +1 -25
- package/src/resources/journal-entries.ts +51 -0
- package/src/resources/journal-reports.ts +54 -0
- package/src/resources/ledger-account-categories.ts +11 -5
- package/src/resources/ledger-accounts.ts +10 -0
- package/src/resources/ledger-entries.ts +7 -1
- package/src/resources/ledger-transactions/ledger-transactions.ts +6 -0
- package/src/resources/ledger-transactions/versions.ts +6 -0
- package/src/resources/legal-entities.ts +332 -27
- package/src/resources/legal-entity-associations.ts +502 -390
- package/src/resources/payment-orders/payment-orders.ts +48 -19
- package/src/resources/payment-orders/reversals.ts +5 -0
- package/src/resources/payment-references.ts +8 -3
- package/src/resources/returns.ts +11 -5
- package/src/resources/routing-details.ts +2 -2
- package/src/resources/shared.ts +138 -36
- package/src/resources/transactions/transactions.ts +2 -1
- package/src/resources/virtual-accounts.ts +1 -0
- 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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as DocumentsAPI from './documents';
|
|
4
5
|
import * as LegalEntityAssociationsAPI from './legal-entity-associations';
|
|
5
6
|
import * as Shared from './shared';
|
|
6
7
|
import { APIPromise } from '../core/api-promise';
|
|
@@ -84,6 +85,11 @@ export interface LegalEntity {
|
|
|
84
85
|
|
|
85
86
|
bank_settings: LegalEntity.BankSettings | null;
|
|
86
87
|
|
|
88
|
+
/**
|
|
89
|
+
* A description of the business.
|
|
90
|
+
*/
|
|
91
|
+
business_description: string | null;
|
|
92
|
+
|
|
87
93
|
/**
|
|
88
94
|
* The business's legal business name.
|
|
89
95
|
*/
|
|
@@ -94,7 +100,16 @@ export interface LegalEntity {
|
|
|
94
100
|
*/
|
|
95
101
|
citizenship_country: string | null;
|
|
96
102
|
|
|
97
|
-
|
|
103
|
+
/**
|
|
104
|
+
* @deprecated
|
|
105
|
+
*/
|
|
106
|
+
compliance_details: unknown | null;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
|
|
110
|
+
* alpha-3 formats.
|
|
111
|
+
*/
|
|
112
|
+
country_of_incorporation: string | null;
|
|
98
113
|
|
|
99
114
|
created_at: string;
|
|
100
115
|
|
|
@@ -110,6 +125,8 @@ export interface LegalEntity {
|
|
|
110
125
|
|
|
111
126
|
discarded_at: string | null;
|
|
112
127
|
|
|
128
|
+
documents: Array<DocumentsAPI.Document>;
|
|
129
|
+
|
|
113
130
|
doing_business_as_names: Array<string>;
|
|
114
131
|
|
|
115
132
|
/**
|
|
@@ -117,6 +134,16 @@ export interface LegalEntity {
|
|
|
117
134
|
*/
|
|
118
135
|
email: string | null;
|
|
119
136
|
|
|
137
|
+
/**
|
|
138
|
+
* Monthly expected transaction volume in USD.
|
|
139
|
+
*/
|
|
140
|
+
expected_activity_volume: number | null;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* An optional user-defined 180 character unique identifier.
|
|
144
|
+
*/
|
|
145
|
+
external_id: string | null;
|
|
146
|
+
|
|
120
147
|
/**
|
|
121
148
|
* An individual's first name.
|
|
122
149
|
*/
|
|
@@ -133,14 +160,14 @@ export interface LegalEntity {
|
|
|
133
160
|
industry_classifications: Array<Shared.LegalEntityIndustryClassification>;
|
|
134
161
|
|
|
135
162
|
/**
|
|
136
|
-
*
|
|
163
|
+
* A description of the intended use of the legal entity.
|
|
137
164
|
*/
|
|
138
|
-
|
|
165
|
+
intended_use: string | null;
|
|
139
166
|
|
|
140
167
|
/**
|
|
141
|
-
*
|
|
168
|
+
* An individual's last name.
|
|
142
169
|
*/
|
|
143
|
-
|
|
170
|
+
last_name: string | null;
|
|
144
171
|
|
|
145
172
|
/**
|
|
146
173
|
* The type of legal entity.
|
|
@@ -159,6 +186,11 @@ export interface LegalEntity {
|
|
|
159
186
|
| 'trust'
|
|
160
187
|
| null;
|
|
161
188
|
|
|
189
|
+
/**
|
|
190
|
+
* ISO 10383 market identifier code.
|
|
191
|
+
*/
|
|
192
|
+
listed_exchange: string | null;
|
|
193
|
+
|
|
162
194
|
/**
|
|
163
195
|
* This field will be true if this object exists in the live environment or false
|
|
164
196
|
* if it exists in the test environment.
|
|
@@ -178,6 +210,12 @@ export interface LegalEntity {
|
|
|
178
210
|
|
|
179
211
|
object: string;
|
|
180
212
|
|
|
213
|
+
/**
|
|
214
|
+
* A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3
|
|
215
|
+
* codes).
|
|
216
|
+
*/
|
|
217
|
+
operating_jurisdictions: Array<string>;
|
|
218
|
+
|
|
181
219
|
phone_numbers: Array<LegalEntity.PhoneNumber>;
|
|
182
220
|
|
|
183
221
|
/**
|
|
@@ -195,16 +233,42 @@ export interface LegalEntity {
|
|
|
195
233
|
*/
|
|
196
234
|
prefix: string | null;
|
|
197
235
|
|
|
236
|
+
/**
|
|
237
|
+
* A list of primary social media URLs for the business.
|
|
238
|
+
*/
|
|
239
|
+
primary_social_media_sites: Array<string>;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Array of regulatory bodies overseeing this institution.
|
|
243
|
+
*/
|
|
244
|
+
regulators: Array<LegalEntity.Regulator> | null;
|
|
245
|
+
|
|
198
246
|
/**
|
|
199
247
|
* The risk rating of the legal entity. One of low, medium, high.
|
|
200
248
|
*/
|
|
201
249
|
risk_rating: 'low' | 'medium' | 'high' | null;
|
|
202
250
|
|
|
251
|
+
/**
|
|
252
|
+
* The activation status of the legal entity. One of pending, active, suspended, or
|
|
253
|
+
* closed.
|
|
254
|
+
*/
|
|
255
|
+
status: 'active' | 'closed' | 'pending' | 'suspended' | null;
|
|
256
|
+
|
|
203
257
|
/**
|
|
204
258
|
* An individual's suffix.
|
|
205
259
|
*/
|
|
206
260
|
suffix: string | null;
|
|
207
261
|
|
|
262
|
+
/**
|
|
263
|
+
* Information describing a third-party verification run by an external vendor.
|
|
264
|
+
*/
|
|
265
|
+
third_party_verification: LegalEntity.ThirdPartyVerification | null;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Stock ticker symbol for publicly traded companies.
|
|
269
|
+
*/
|
|
270
|
+
ticker_symbol: string | null;
|
|
271
|
+
|
|
208
272
|
updated_at: string;
|
|
209
273
|
|
|
210
274
|
wealth_and_employment_details: LegalEntity.WealthAndEmploymentDetails | null;
|
|
@@ -213,6 +277,11 @@ export interface LegalEntity {
|
|
|
213
277
|
* The entity's primary website URL.
|
|
214
278
|
*/
|
|
215
279
|
website: string | null;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* The legal entity associations and its child legal entities.
|
|
283
|
+
*/
|
|
284
|
+
legal_entity_associations?: Array<LegalEntityAssociationsAPI.LegalEntityAssociation> | null;
|
|
216
285
|
}
|
|
217
286
|
|
|
218
287
|
export namespace LegalEntity {
|
|
@@ -312,6 +381,8 @@ export namespace LegalEntity {
|
|
|
312
381
|
|
|
313
382
|
discarded_at: string | null;
|
|
314
383
|
|
|
384
|
+
documents: Array<DocumentsAPI.Document>;
|
|
385
|
+
|
|
315
386
|
/**
|
|
316
387
|
* The date when the Identification is no longer considered valid by the issuing
|
|
317
388
|
* authority.
|
|
@@ -374,11 +445,44 @@ export namespace LegalEntity {
|
|
|
374
445
|
phone_number?: string;
|
|
375
446
|
}
|
|
376
447
|
|
|
448
|
+
export interface Regulator {
|
|
449
|
+
/**
|
|
450
|
+
* The country code where the regulator operates in the ISO 3166-1 alpha-2 format
|
|
451
|
+
* (e.g., "US", "CA", "GB").
|
|
452
|
+
*/
|
|
453
|
+
jurisdiction: string;
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* Full name of the regulatory body.
|
|
457
|
+
*/
|
|
458
|
+
name: string;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Registration or identification number with the regulator.
|
|
462
|
+
*/
|
|
463
|
+
registration_number: string;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Information describing a third-party verification run by an external vendor.
|
|
468
|
+
*/
|
|
469
|
+
export interface ThirdPartyVerification {
|
|
470
|
+
/**
|
|
471
|
+
* The vendor that performed the verification, e.g. `persona`.
|
|
472
|
+
*/
|
|
473
|
+
vendor: 'persona';
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* The identification of the third party verification in `vendor`'s system.
|
|
477
|
+
*/
|
|
478
|
+
vendor_verification_id: string;
|
|
479
|
+
}
|
|
480
|
+
|
|
377
481
|
export interface WealthAndEmploymentDetails {
|
|
378
482
|
id: string;
|
|
379
483
|
|
|
380
484
|
/**
|
|
381
|
-
* The annual income of the individual.
|
|
485
|
+
* The annual income of the individual in USD.
|
|
382
486
|
*/
|
|
383
487
|
annual_income: number | null;
|
|
384
488
|
|
|
@@ -502,17 +606,24 @@ export namespace LegalEntity {
|
|
|
502
606
|
| 'alimony'
|
|
503
607
|
| 'annuity'
|
|
504
608
|
| 'business_owner'
|
|
609
|
+
| 'business_revenue'
|
|
610
|
+
| 'debt_financing'
|
|
505
611
|
| 'general_employee'
|
|
506
612
|
| 'government_benefits'
|
|
507
613
|
| 'homemaker'
|
|
508
614
|
| 'inheritance_gift'
|
|
615
|
+
| 'intercompany_loan'
|
|
509
616
|
| 'investment'
|
|
617
|
+
| 'investor_funding'
|
|
510
618
|
| 'legal_settlement'
|
|
511
619
|
| 'lottery'
|
|
512
620
|
| 'real_estate'
|
|
621
|
+
| 'retained_earnings_or_savings'
|
|
513
622
|
| 'retired'
|
|
514
623
|
| 'retirement'
|
|
515
624
|
| 'salary'
|
|
625
|
+
| 'sale_of_business_assets'
|
|
626
|
+
| 'sale_of_real_estate'
|
|
516
627
|
| 'self_employed'
|
|
517
628
|
| 'senior_executive'
|
|
518
629
|
| 'trust_income'
|
|
@@ -551,6 +662,11 @@ export interface LegalEntityCreateParams {
|
|
|
551
662
|
|
|
552
663
|
bank_settings?: LegalEntityCreateParams.BankSettings | null;
|
|
553
664
|
|
|
665
|
+
/**
|
|
666
|
+
* A description of the business.
|
|
667
|
+
*/
|
|
668
|
+
business_description?: string | null;
|
|
669
|
+
|
|
554
670
|
/**
|
|
555
671
|
* The business's legal business name.
|
|
556
672
|
*/
|
|
@@ -561,7 +677,20 @@ export interface LegalEntityCreateParams {
|
|
|
561
677
|
*/
|
|
562
678
|
citizenship_country?: string | null;
|
|
563
679
|
|
|
564
|
-
|
|
680
|
+
/**
|
|
681
|
+
* The connection ID for the connection the legal entity is associated with.
|
|
682
|
+
* Defaults to the id of the connection designated with an is_default value of true
|
|
683
|
+
* or the id of an existing operational connection if only one is available. Pass
|
|
684
|
+
* in a value of null to prevent the connection from being associated with the
|
|
685
|
+
* legal entity.
|
|
686
|
+
*/
|
|
687
|
+
connection_id?: string | null;
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
|
|
691
|
+
* alpha-3 formats.
|
|
692
|
+
*/
|
|
693
|
+
country_of_incorporation?: string | null;
|
|
565
694
|
|
|
566
695
|
/**
|
|
567
696
|
* A business's formation date (YYYY-MM-DD).
|
|
@@ -580,6 +709,16 @@ export interface LegalEntityCreateParams {
|
|
|
580
709
|
*/
|
|
581
710
|
email?: string | null;
|
|
582
711
|
|
|
712
|
+
/**
|
|
713
|
+
* Monthly expected transaction volume in USD.
|
|
714
|
+
*/
|
|
715
|
+
expected_activity_volume?: number | null;
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* An optional user-defined 180 character unique identifier.
|
|
719
|
+
*/
|
|
720
|
+
external_id?: string | null;
|
|
721
|
+
|
|
583
722
|
/**
|
|
584
723
|
* An individual's first name.
|
|
585
724
|
*/
|
|
@@ -595,6 +734,11 @@ export interface LegalEntityCreateParams {
|
|
|
595
734
|
*/
|
|
596
735
|
industry_classifications?: Array<Shared.LegalEntityIndustryClassification>;
|
|
597
736
|
|
|
737
|
+
/**
|
|
738
|
+
* A description of the intended use of the legal entity.
|
|
739
|
+
*/
|
|
740
|
+
intended_use?: string | null;
|
|
741
|
+
|
|
598
742
|
/**
|
|
599
743
|
* An individual's last name.
|
|
600
744
|
*/
|
|
@@ -603,7 +747,7 @@ export interface LegalEntityCreateParams {
|
|
|
603
747
|
/**
|
|
604
748
|
* The legal entity associations and its child legal entities.
|
|
605
749
|
*/
|
|
606
|
-
legal_entity_associations?: Array<
|
|
750
|
+
legal_entity_associations?: Array<Shared.LegalEntityAssociationInlineCreate> | null;
|
|
607
751
|
|
|
608
752
|
/**
|
|
609
753
|
* The business's legal structure.
|
|
@@ -617,6 +761,11 @@ export interface LegalEntityCreateParams {
|
|
|
617
761
|
| 'trust'
|
|
618
762
|
| null;
|
|
619
763
|
|
|
764
|
+
/**
|
|
765
|
+
* ISO 10383 market identifier code.
|
|
766
|
+
*/
|
|
767
|
+
listed_exchange?: string | null;
|
|
768
|
+
|
|
620
769
|
/**
|
|
621
770
|
* Additional data represented as key-value pairs. Both the key and value must be
|
|
622
771
|
* strings.
|
|
@@ -628,6 +777,12 @@ export interface LegalEntityCreateParams {
|
|
|
628
777
|
*/
|
|
629
778
|
middle_name?: string | null;
|
|
630
779
|
|
|
780
|
+
/**
|
|
781
|
+
* A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3
|
|
782
|
+
* codes).
|
|
783
|
+
*/
|
|
784
|
+
operating_jurisdictions?: Array<string>;
|
|
785
|
+
|
|
631
786
|
phone_numbers?: Array<LegalEntityCreateParams.PhoneNumber>;
|
|
632
787
|
|
|
633
788
|
/**
|
|
@@ -645,16 +800,42 @@ export interface LegalEntityCreateParams {
|
|
|
645
800
|
*/
|
|
646
801
|
prefix?: string | null;
|
|
647
802
|
|
|
803
|
+
/**
|
|
804
|
+
* A list of primary social media URLs for the business.
|
|
805
|
+
*/
|
|
806
|
+
primary_social_media_sites?: Array<string>;
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* Array of regulatory bodies overseeing this institution.
|
|
810
|
+
*/
|
|
811
|
+
regulators?: Array<LegalEntityCreateParams.Regulator> | null;
|
|
812
|
+
|
|
648
813
|
/**
|
|
649
814
|
* The risk rating of the legal entity. One of low, medium, high.
|
|
650
815
|
*/
|
|
651
816
|
risk_rating?: 'low' | 'medium' | 'high' | null;
|
|
652
817
|
|
|
818
|
+
/**
|
|
819
|
+
* The activation status of the legal entity. One of pending, active, suspended, or
|
|
820
|
+
* closed.
|
|
821
|
+
*/
|
|
822
|
+
status?: 'active' | 'closed' | 'pending' | 'suspended' | null;
|
|
823
|
+
|
|
653
824
|
/**
|
|
654
825
|
* An individual's suffix.
|
|
655
826
|
*/
|
|
656
827
|
suffix?: string | null;
|
|
657
828
|
|
|
829
|
+
/**
|
|
830
|
+
* Information describing a third-party verification run by an external vendor.
|
|
831
|
+
*/
|
|
832
|
+
third_party_verification?: LegalEntityCreateParams.ThirdPartyVerification | null;
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* Stock ticker symbol for publicly traded companies.
|
|
836
|
+
*/
|
|
837
|
+
ticker_symbol?: string | null;
|
|
838
|
+
|
|
658
839
|
wealth_and_employment_details?: LegalEntityCreateParams.WealthAndEmploymentDetails | null;
|
|
659
840
|
|
|
660
841
|
/**
|
|
@@ -706,42 +887,51 @@ export namespace LegalEntityCreateParams {
|
|
|
706
887
|
updated_at: string;
|
|
707
888
|
}
|
|
708
889
|
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
child_legal_entity?: Shared.ChildLegalEntityCreate;
|
|
890
|
+
/**
|
|
891
|
+
* A list of phone numbers in E.164 format.
|
|
892
|
+
*/
|
|
893
|
+
export interface PhoneNumber {
|
|
894
|
+
phone_number?: string;
|
|
895
|
+
}
|
|
716
896
|
|
|
897
|
+
export interface Regulator {
|
|
717
898
|
/**
|
|
718
|
-
* The
|
|
899
|
+
* The country code where the regulator operates in the ISO 3166-1 alpha-2 format
|
|
900
|
+
* (e.g., "US", "CA", "GB").
|
|
719
901
|
*/
|
|
720
|
-
|
|
902
|
+
jurisdiction: string;
|
|
721
903
|
|
|
722
904
|
/**
|
|
723
|
-
*
|
|
905
|
+
* Full name of the regulatory body.
|
|
724
906
|
*/
|
|
725
|
-
|
|
907
|
+
name: string;
|
|
726
908
|
|
|
727
909
|
/**
|
|
728
|
-
*
|
|
910
|
+
* Registration or identification number with the regulator.
|
|
729
911
|
*/
|
|
730
|
-
|
|
912
|
+
registration_number: string;
|
|
731
913
|
}
|
|
732
914
|
|
|
733
915
|
/**
|
|
734
|
-
*
|
|
916
|
+
* Information describing a third-party verification run by an external vendor.
|
|
735
917
|
*/
|
|
736
|
-
export interface
|
|
737
|
-
|
|
918
|
+
export interface ThirdPartyVerification {
|
|
919
|
+
/**
|
|
920
|
+
* The vendor that performed the verification, e.g. `persona`.
|
|
921
|
+
*/
|
|
922
|
+
vendor: 'persona';
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* The identification of the third party verification in `vendor`'s system.
|
|
926
|
+
*/
|
|
927
|
+
vendor_verification_id: string;
|
|
738
928
|
}
|
|
739
929
|
|
|
740
930
|
export interface WealthAndEmploymentDetails {
|
|
741
931
|
id: string;
|
|
742
932
|
|
|
743
933
|
/**
|
|
744
|
-
* The annual income of the individual.
|
|
934
|
+
* The annual income of the individual in USD.
|
|
745
935
|
*/
|
|
746
936
|
annual_income: number | null;
|
|
747
937
|
|
|
@@ -865,17 +1055,24 @@ export namespace LegalEntityCreateParams {
|
|
|
865
1055
|
| 'alimony'
|
|
866
1056
|
| 'annuity'
|
|
867
1057
|
| 'business_owner'
|
|
1058
|
+
| 'business_revenue'
|
|
1059
|
+
| 'debt_financing'
|
|
868
1060
|
| 'general_employee'
|
|
869
1061
|
| 'government_benefits'
|
|
870
1062
|
| 'homemaker'
|
|
871
1063
|
| 'inheritance_gift'
|
|
1064
|
+
| 'intercompany_loan'
|
|
872
1065
|
| 'investment'
|
|
1066
|
+
| 'investor_funding'
|
|
873
1067
|
| 'legal_settlement'
|
|
874
1068
|
| 'lottery'
|
|
875
1069
|
| 'real_estate'
|
|
1070
|
+
| 'retained_earnings_or_savings'
|
|
876
1071
|
| 'retired'
|
|
877
1072
|
| 'retirement'
|
|
878
1073
|
| 'salary'
|
|
1074
|
+
| 'sale_of_business_assets'
|
|
1075
|
+
| 'sale_of_real_estate'
|
|
879
1076
|
| 'self_employed'
|
|
880
1077
|
| 'senior_executive'
|
|
881
1078
|
| 'trust_income'
|
|
@@ -909,6 +1106,11 @@ export interface LegalEntityUpdateParams {
|
|
|
909
1106
|
|
|
910
1107
|
bank_settings?: LegalEntityUpdateParams.BankSettings | null;
|
|
911
1108
|
|
|
1109
|
+
/**
|
|
1110
|
+
* A description of the business.
|
|
1111
|
+
*/
|
|
1112
|
+
business_description?: string | null;
|
|
1113
|
+
|
|
912
1114
|
/**
|
|
913
1115
|
* The business's legal business name.
|
|
914
1116
|
*/
|
|
@@ -919,7 +1121,11 @@ export interface LegalEntityUpdateParams {
|
|
|
919
1121
|
*/
|
|
920
1122
|
citizenship_country?: string | null;
|
|
921
1123
|
|
|
922
|
-
|
|
1124
|
+
/**
|
|
1125
|
+
* The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
|
|
1126
|
+
* alpha-3 formats.
|
|
1127
|
+
*/
|
|
1128
|
+
country_of_incorporation?: string | null;
|
|
923
1129
|
|
|
924
1130
|
/**
|
|
925
1131
|
* A business's formation date (YYYY-MM-DD).
|
|
@@ -938,6 +1144,16 @@ export interface LegalEntityUpdateParams {
|
|
|
938
1144
|
*/
|
|
939
1145
|
email?: string | null;
|
|
940
1146
|
|
|
1147
|
+
/**
|
|
1148
|
+
* Monthly expected transaction volume in USD.
|
|
1149
|
+
*/
|
|
1150
|
+
expected_activity_volume?: number | null;
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* An optional user-defined 180 character unique identifier.
|
|
1154
|
+
*/
|
|
1155
|
+
external_id?: string | null;
|
|
1156
|
+
|
|
941
1157
|
/**
|
|
942
1158
|
* An individual's first name.
|
|
943
1159
|
*/
|
|
@@ -953,6 +1169,11 @@ export interface LegalEntityUpdateParams {
|
|
|
953
1169
|
*/
|
|
954
1170
|
industry_classifications?: Array<Shared.LegalEntityIndustryClassification>;
|
|
955
1171
|
|
|
1172
|
+
/**
|
|
1173
|
+
* A description of the intended use of the legal entity.
|
|
1174
|
+
*/
|
|
1175
|
+
intended_use?: string | null;
|
|
1176
|
+
|
|
956
1177
|
/**
|
|
957
1178
|
* An individual's last name.
|
|
958
1179
|
*/
|
|
@@ -970,6 +1191,11 @@ export interface LegalEntityUpdateParams {
|
|
|
970
1191
|
| 'trust'
|
|
971
1192
|
| null;
|
|
972
1193
|
|
|
1194
|
+
/**
|
|
1195
|
+
* ISO 10383 market identifier code.
|
|
1196
|
+
*/
|
|
1197
|
+
listed_exchange?: string | null;
|
|
1198
|
+
|
|
973
1199
|
/**
|
|
974
1200
|
* Additional data represented as key-value pairs. Both the key and value must be
|
|
975
1201
|
* strings.
|
|
@@ -981,6 +1207,12 @@ export interface LegalEntityUpdateParams {
|
|
|
981
1207
|
*/
|
|
982
1208
|
middle_name?: string | null;
|
|
983
1209
|
|
|
1210
|
+
/**
|
|
1211
|
+
* A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3
|
|
1212
|
+
* codes).
|
|
1213
|
+
*/
|
|
1214
|
+
operating_jurisdictions?: Array<string>;
|
|
1215
|
+
|
|
984
1216
|
phone_numbers?: Array<LegalEntityUpdateParams.PhoneNumber>;
|
|
985
1217
|
|
|
986
1218
|
/**
|
|
@@ -998,16 +1230,42 @@ export interface LegalEntityUpdateParams {
|
|
|
998
1230
|
*/
|
|
999
1231
|
prefix?: string | null;
|
|
1000
1232
|
|
|
1233
|
+
/**
|
|
1234
|
+
* A list of primary social media URLs for the business.
|
|
1235
|
+
*/
|
|
1236
|
+
primary_social_media_sites?: Array<string>;
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* Array of regulatory bodies overseeing this institution.
|
|
1240
|
+
*/
|
|
1241
|
+
regulators?: Array<LegalEntityUpdateParams.Regulator> | null;
|
|
1242
|
+
|
|
1001
1243
|
/**
|
|
1002
1244
|
* The risk rating of the legal entity. One of low, medium, high.
|
|
1003
1245
|
*/
|
|
1004
1246
|
risk_rating?: 'low' | 'medium' | 'high' | null;
|
|
1005
1247
|
|
|
1248
|
+
/**
|
|
1249
|
+
* The activation status of the legal entity. One of pending, active, suspended, or
|
|
1250
|
+
* closed.
|
|
1251
|
+
*/
|
|
1252
|
+
status?: 'active' | 'closed' | 'pending' | 'suspended' | null;
|
|
1253
|
+
|
|
1006
1254
|
/**
|
|
1007
1255
|
* An individual's suffix.
|
|
1008
1256
|
*/
|
|
1009
1257
|
suffix?: string | null;
|
|
1010
1258
|
|
|
1259
|
+
/**
|
|
1260
|
+
* Information describing a third-party verification run by an external vendor.
|
|
1261
|
+
*/
|
|
1262
|
+
third_party_verification?: LegalEntityUpdateParams.ThirdPartyVerification | null;
|
|
1263
|
+
|
|
1264
|
+
/**
|
|
1265
|
+
* Stock ticker symbol for publicly traded companies.
|
|
1266
|
+
*/
|
|
1267
|
+
ticker_symbol?: string | null;
|
|
1268
|
+
|
|
1011
1269
|
wealth_and_employment_details?: LegalEntityUpdateParams.WealthAndEmploymentDetails | null;
|
|
1012
1270
|
|
|
1013
1271
|
/**
|
|
@@ -1066,11 +1324,44 @@ export namespace LegalEntityUpdateParams {
|
|
|
1066
1324
|
phone_number?: string;
|
|
1067
1325
|
}
|
|
1068
1326
|
|
|
1327
|
+
export interface Regulator {
|
|
1328
|
+
/**
|
|
1329
|
+
* The country code where the regulator operates in the ISO 3166-1 alpha-2 format
|
|
1330
|
+
* (e.g., "US", "CA", "GB").
|
|
1331
|
+
*/
|
|
1332
|
+
jurisdiction: string;
|
|
1333
|
+
|
|
1334
|
+
/**
|
|
1335
|
+
* Full name of the regulatory body.
|
|
1336
|
+
*/
|
|
1337
|
+
name: string;
|
|
1338
|
+
|
|
1339
|
+
/**
|
|
1340
|
+
* Registration or identification number with the regulator.
|
|
1341
|
+
*/
|
|
1342
|
+
registration_number: string;
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
/**
|
|
1346
|
+
* Information describing a third-party verification run by an external vendor.
|
|
1347
|
+
*/
|
|
1348
|
+
export interface ThirdPartyVerification {
|
|
1349
|
+
/**
|
|
1350
|
+
* The vendor that performed the verification, e.g. `persona`.
|
|
1351
|
+
*/
|
|
1352
|
+
vendor: 'persona';
|
|
1353
|
+
|
|
1354
|
+
/**
|
|
1355
|
+
* The identification of the third party verification in `vendor`'s system.
|
|
1356
|
+
*/
|
|
1357
|
+
vendor_verification_id: string;
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1069
1360
|
export interface WealthAndEmploymentDetails {
|
|
1070
1361
|
id: string;
|
|
1071
1362
|
|
|
1072
1363
|
/**
|
|
1073
|
-
* The annual income of the individual.
|
|
1364
|
+
* The annual income of the individual in USD.
|
|
1074
1365
|
*/
|
|
1075
1366
|
annual_income: number | null;
|
|
1076
1367
|
|
|
@@ -1194,17 +1485,24 @@ export namespace LegalEntityUpdateParams {
|
|
|
1194
1485
|
| 'alimony'
|
|
1195
1486
|
| 'annuity'
|
|
1196
1487
|
| 'business_owner'
|
|
1488
|
+
| 'business_revenue'
|
|
1489
|
+
| 'debt_financing'
|
|
1197
1490
|
| 'general_employee'
|
|
1198
1491
|
| 'government_benefits'
|
|
1199
1492
|
| 'homemaker'
|
|
1200
1493
|
| 'inheritance_gift'
|
|
1494
|
+
| 'intercompany_loan'
|
|
1201
1495
|
| 'investment'
|
|
1496
|
+
| 'investor_funding'
|
|
1202
1497
|
| 'legal_settlement'
|
|
1203
1498
|
| 'lottery'
|
|
1204
1499
|
| 'real_estate'
|
|
1500
|
+
| 'retained_earnings_or_savings'
|
|
1205
1501
|
| 'retired'
|
|
1206
1502
|
| 'retirement'
|
|
1207
1503
|
| 'salary'
|
|
1504
|
+
| 'sale_of_business_assets'
|
|
1505
|
+
| 'sale_of_real_estate'
|
|
1208
1506
|
| 'self_employed'
|
|
1209
1507
|
| 'senior_executive'
|
|
1210
1508
|
| 'trust_income'
|
|
@@ -1231,6 +1529,11 @@ export namespace LegalEntityUpdateParams {
|
|
|
1231
1529
|
}
|
|
1232
1530
|
|
|
1233
1531
|
export interface LegalEntityListParams extends PageParams {
|
|
1532
|
+
/**
|
|
1533
|
+
* An optional user-defined 180 character unique identifier.
|
|
1534
|
+
*/
|
|
1535
|
+
external_id?: string;
|
|
1536
|
+
|
|
1234
1537
|
legal_entity_type?: 'business' | 'individual';
|
|
1235
1538
|
|
|
1236
1539
|
/**
|
|
@@ -1241,6 +1544,8 @@ export interface LegalEntityListParams extends PageParams {
|
|
|
1241
1544
|
metadata?: { [key: string]: string };
|
|
1242
1545
|
|
|
1243
1546
|
show_deleted?: string;
|
|
1547
|
+
|
|
1548
|
+
status?: 'pending' | 'active' | 'suspended' | 'closed';
|
|
1244
1549
|
}
|
|
1245
1550
|
|
|
1246
1551
|
export declare namespace LegalEntities {
|