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,4 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as DocumentsAPI from "./documents.js";
|
|
2
3
|
import * as Shared from "./shared.js";
|
|
3
4
|
import { APIPromise } from "../core/api-promise.js";
|
|
4
5
|
import { RequestOptions } from "../internal/request-options.js";
|
|
@@ -8,305 +9,388 @@ export declare class LegalEntityAssociations extends APIResource {
|
|
|
8
9
|
*/
|
|
9
10
|
create(body: LegalEntityAssociationCreateParams, options?: RequestOptions): APIPromise<LegalEntityAssociation>;
|
|
10
11
|
}
|
|
11
|
-
export interface
|
|
12
|
+
export interface ChildLegalEntity {
|
|
12
13
|
id: string;
|
|
13
14
|
/**
|
|
14
|
-
*
|
|
15
|
+
* A list of addresses for the entity.
|
|
16
|
+
*/
|
|
17
|
+
addresses: Array<ChildLegalEntity.Address>;
|
|
18
|
+
bank_settings: ChildLegalEntity.BankSettings | null;
|
|
19
|
+
/**
|
|
20
|
+
* A description of the business.
|
|
21
|
+
*/
|
|
22
|
+
business_description: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* The business's legal business name.
|
|
15
25
|
*/
|
|
16
|
-
|
|
26
|
+
business_name: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* The country of citizenship for an individual.
|
|
29
|
+
*/
|
|
30
|
+
citizenship_country: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated
|
|
33
|
+
*/
|
|
34
|
+
compliance_details: unknown | null;
|
|
35
|
+
/**
|
|
36
|
+
* The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
|
|
37
|
+
* alpha-3 formats.
|
|
38
|
+
*/
|
|
39
|
+
country_of_incorporation: string | null;
|
|
17
40
|
created_at: string;
|
|
41
|
+
/**
|
|
42
|
+
* A business's formation date (YYYY-MM-DD).
|
|
43
|
+
*/
|
|
44
|
+
date_formed: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* An individual's date of birth (YYYY-MM-DD).
|
|
47
|
+
*/
|
|
48
|
+
date_of_birth: string | null;
|
|
18
49
|
discarded_at: string | null;
|
|
50
|
+
documents: Array<DocumentsAPI.Document>;
|
|
51
|
+
doing_business_as_names: Array<string>;
|
|
52
|
+
/**
|
|
53
|
+
* The entity's primary email.
|
|
54
|
+
*/
|
|
55
|
+
email: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* Monthly expected transaction volume in USD.
|
|
58
|
+
*/
|
|
59
|
+
expected_activity_volume: number | null;
|
|
60
|
+
/**
|
|
61
|
+
* An optional user-defined 180 character unique identifier.
|
|
62
|
+
*/
|
|
63
|
+
external_id: string | null;
|
|
64
|
+
/**
|
|
65
|
+
* An individual's first name.
|
|
66
|
+
*/
|
|
67
|
+
first_name: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* A list of identifications for the legal entity.
|
|
70
|
+
*/
|
|
71
|
+
identifications: Array<ChildLegalEntity.Identification>;
|
|
72
|
+
/**
|
|
73
|
+
* A list of industry classifications for the legal entity.
|
|
74
|
+
*/
|
|
75
|
+
industry_classifications: Array<Shared.LegalEntityIndustryClassification>;
|
|
76
|
+
/**
|
|
77
|
+
* A description of the intended use of the legal entity.
|
|
78
|
+
*/
|
|
79
|
+
intended_use: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* An individual's last name.
|
|
82
|
+
*/
|
|
83
|
+
last_name: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* The legal entity associations and its child legal entities.
|
|
86
|
+
*/
|
|
87
|
+
legal_entity_associations: Array<LegalEntityAssociation> | null;
|
|
88
|
+
/**
|
|
89
|
+
* The type of legal entity.
|
|
90
|
+
*/
|
|
91
|
+
legal_entity_type: 'business' | 'individual' | 'joint';
|
|
92
|
+
/**
|
|
93
|
+
* The business's legal structure.
|
|
94
|
+
*/
|
|
95
|
+
legal_structure: 'corporation' | 'llc' | 'non_profit' | 'partnership' | 'sole_proprietorship' | 'trust' | null;
|
|
96
|
+
/**
|
|
97
|
+
* ISO 10383 market identifier code.
|
|
98
|
+
*/
|
|
99
|
+
listed_exchange: string | null;
|
|
19
100
|
/**
|
|
20
101
|
* This field will be true if this object exists in the live environment or false
|
|
21
102
|
* if it exists in the test environment.
|
|
22
103
|
*/
|
|
23
104
|
live_mode: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Additional data represented as key-value pairs. Both the key and value must be
|
|
107
|
+
* strings.
|
|
108
|
+
*/
|
|
109
|
+
metadata: {
|
|
110
|
+
[key: string]: string;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* An individual's middle name.
|
|
114
|
+
*/
|
|
115
|
+
middle_name: string | null;
|
|
24
116
|
object: string;
|
|
25
117
|
/**
|
|
26
|
-
*
|
|
118
|
+
* A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3
|
|
119
|
+
* codes).
|
|
27
120
|
*/
|
|
28
|
-
|
|
121
|
+
operating_jurisdictions: Array<string>;
|
|
122
|
+
phone_numbers: Array<ChildLegalEntity.PhoneNumber>;
|
|
29
123
|
/**
|
|
30
|
-
*
|
|
31
|
-
* entity.
|
|
124
|
+
* Whether the individual is a politically exposed person.
|
|
32
125
|
*/
|
|
33
|
-
|
|
34
|
-
relationship_types: Array<'authorized_signer' | 'beneficial_owner' | 'control_person'>;
|
|
126
|
+
politically_exposed_person: boolean | null;
|
|
35
127
|
/**
|
|
36
|
-
*
|
|
128
|
+
* An individual's preferred name.
|
|
37
129
|
*/
|
|
38
|
-
|
|
130
|
+
preferred_name: string | null;
|
|
131
|
+
/**
|
|
132
|
+
* An individual's prefix.
|
|
133
|
+
*/
|
|
134
|
+
prefix: string | null;
|
|
135
|
+
/**
|
|
136
|
+
* A list of primary social media URLs for the business.
|
|
137
|
+
*/
|
|
138
|
+
primary_social_media_sites: Array<string>;
|
|
139
|
+
/**
|
|
140
|
+
* Array of regulatory bodies overseeing this institution.
|
|
141
|
+
*/
|
|
142
|
+
regulators: Array<ChildLegalEntity.Regulator> | null;
|
|
143
|
+
/**
|
|
144
|
+
* The risk rating of the legal entity. One of low, medium, high.
|
|
145
|
+
*/
|
|
146
|
+
risk_rating: 'low' | 'medium' | 'high' | null;
|
|
147
|
+
/**
|
|
148
|
+
* The activation status of the legal entity. One of pending, active, suspended, or
|
|
149
|
+
* closed.
|
|
150
|
+
*/
|
|
151
|
+
status: 'active' | 'closed' | 'pending' | 'suspended' | null;
|
|
152
|
+
/**
|
|
153
|
+
* An individual's suffix.
|
|
154
|
+
*/
|
|
155
|
+
suffix: string | null;
|
|
156
|
+
/**
|
|
157
|
+
* Information describing a third-party verification run by an external vendor.
|
|
158
|
+
*/
|
|
159
|
+
third_party_verification: ChildLegalEntity.ThirdPartyVerification | null;
|
|
160
|
+
/**
|
|
161
|
+
* Stock ticker symbol for publicly traded companies.
|
|
162
|
+
*/
|
|
163
|
+
ticker_symbol: string | null;
|
|
39
164
|
updated_at: string;
|
|
40
|
-
|
|
41
|
-
export declare namespace LegalEntityAssociation {
|
|
165
|
+
wealth_and_employment_details: ChildLegalEntity.WealthAndEmploymentDetails | null;
|
|
42
166
|
/**
|
|
43
|
-
* The
|
|
167
|
+
* The entity's primary website URL.
|
|
44
168
|
*/
|
|
45
|
-
|
|
169
|
+
website: string | null;
|
|
170
|
+
}
|
|
171
|
+
export declare namespace ChildLegalEntity {
|
|
172
|
+
interface Address {
|
|
46
173
|
id: string;
|
|
47
174
|
/**
|
|
48
|
-
*
|
|
175
|
+
* The types of this address.
|
|
176
|
+
*/
|
|
177
|
+
address_types: Array<'business' | 'mailing' | 'other' | 'po_box' | 'residential'>;
|
|
178
|
+
/**
|
|
179
|
+
* Country code conforms to [ISO 3166-1 alpha-2]
|
|
49
180
|
*/
|
|
50
|
-
|
|
51
|
-
|
|
181
|
+
country: string | null;
|
|
182
|
+
created_at: string;
|
|
183
|
+
discarded_at: string | null;
|
|
184
|
+
line1: string | null;
|
|
185
|
+
line2: string | null;
|
|
52
186
|
/**
|
|
53
|
-
*
|
|
187
|
+
* This field will be true if this object exists in the live environment or false
|
|
188
|
+
* if it exists in the test environment.
|
|
54
189
|
*/
|
|
55
|
-
|
|
190
|
+
live_mode: boolean;
|
|
56
191
|
/**
|
|
57
|
-
*
|
|
192
|
+
* Locality or City.
|
|
58
193
|
*/
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
created_at: string;
|
|
194
|
+
locality: string | null;
|
|
195
|
+
object: string;
|
|
62
196
|
/**
|
|
63
|
-
*
|
|
197
|
+
* The postal code of the address.
|
|
64
198
|
*/
|
|
65
|
-
|
|
199
|
+
postal_code: string | null;
|
|
66
200
|
/**
|
|
67
|
-
*
|
|
201
|
+
* Region or State.
|
|
68
202
|
*/
|
|
69
|
-
|
|
203
|
+
region: string | null;
|
|
204
|
+
updated_at: string;
|
|
205
|
+
}
|
|
206
|
+
interface BankSettings {
|
|
207
|
+
id: string;
|
|
208
|
+
/**
|
|
209
|
+
* The percentage of backup withholding to apply to the legal entity.
|
|
210
|
+
*/
|
|
211
|
+
backup_withholding_percentage: number | null;
|
|
212
|
+
created_at: string;
|
|
70
213
|
discarded_at: string | null;
|
|
71
|
-
doing_business_as_names: Array<string>;
|
|
72
214
|
/**
|
|
73
|
-
*
|
|
215
|
+
* Whether backup withholding is enabled. See more here -
|
|
216
|
+
* https://www.irs.gov/businesses/small-businesses-self-employed/backup-withholding.
|
|
74
217
|
*/
|
|
75
|
-
|
|
218
|
+
enable_backup_withholding: boolean | null;
|
|
76
219
|
/**
|
|
77
|
-
*
|
|
220
|
+
* This field will be true if this object exists in the live environment or false
|
|
221
|
+
* if it exists in the test environment.
|
|
78
222
|
*/
|
|
79
|
-
|
|
223
|
+
live_mode: boolean;
|
|
224
|
+
object: string;
|
|
80
225
|
/**
|
|
81
|
-
*
|
|
226
|
+
* Cross River Bank specific setting to opt out of privacy policy.
|
|
82
227
|
*/
|
|
83
|
-
|
|
228
|
+
privacy_opt_out: boolean | null;
|
|
84
229
|
/**
|
|
85
|
-
*
|
|
230
|
+
* It covers, among other types of insider loans, extensions of credit by a member
|
|
231
|
+
* bank to an executive officer, director, or principal shareholder of the member
|
|
232
|
+
* bank; a bank holding company of which the member bank is a subsidiary; and any
|
|
233
|
+
* other subsidiary of that bank holding company.
|
|
86
234
|
*/
|
|
87
|
-
|
|
235
|
+
regulation_o: boolean | null;
|
|
236
|
+
updated_at: string;
|
|
237
|
+
}
|
|
238
|
+
interface Identification {
|
|
239
|
+
id: string;
|
|
240
|
+
created_at: string;
|
|
241
|
+
discarded_at: string | null;
|
|
242
|
+
documents: Array<DocumentsAPI.Document>;
|
|
243
|
+
/**
|
|
244
|
+
* The date when the Identification is no longer considered valid by the issuing
|
|
245
|
+
* authority.
|
|
246
|
+
*/
|
|
247
|
+
expiration_date: string | null;
|
|
88
248
|
/**
|
|
89
|
-
*
|
|
249
|
+
* The type of ID number.
|
|
90
250
|
*/
|
|
91
|
-
|
|
251
|
+
id_type: 'ar_cuil' | 'ar_cuit' | 'br_cnpj' | 'br_cpf' | 'cl_run' | 'cl_rut' | 'co_cedulas' | 'co_nit' | 'drivers_license' | 'hn_id' | 'hn_rtn' | 'in_lei' | 'kr_brn' | 'kr_crn' | 'kr_rrn' | 'passport' | 'sa_tin' | 'sa_vat' | 'us_ein' | 'us_itin' | 'us_ssn' | 'vn_tin';
|
|
92
252
|
/**
|
|
93
|
-
* The
|
|
253
|
+
* The ISO 3166-1 alpha-2 country code of the country that issued the
|
|
254
|
+
* identification
|
|
94
255
|
*/
|
|
95
|
-
|
|
256
|
+
issuing_country: string | null;
|
|
96
257
|
/**
|
|
97
|
-
* The
|
|
258
|
+
* The region in which the identifcation was issued.
|
|
98
259
|
*/
|
|
99
|
-
|
|
260
|
+
issuing_region: string | null;
|
|
100
261
|
/**
|
|
101
262
|
* This field will be true if this object exists in the live environment or false
|
|
102
263
|
* if it exists in the test environment.
|
|
103
264
|
*/
|
|
104
265
|
live_mode: boolean;
|
|
266
|
+
object: string;
|
|
267
|
+
updated_at: string;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* A list of phone numbers in E.164 format.
|
|
271
|
+
*/
|
|
272
|
+
interface PhoneNumber {
|
|
273
|
+
phone_number?: string;
|
|
274
|
+
}
|
|
275
|
+
interface Regulator {
|
|
105
276
|
/**
|
|
106
|
-
*
|
|
107
|
-
*
|
|
277
|
+
* The country code where the regulator operates in the ISO 3166-1 alpha-2 format
|
|
278
|
+
* (e.g., "US", "CA", "GB").
|
|
108
279
|
*/
|
|
109
|
-
|
|
110
|
-
[key: string]: string;
|
|
111
|
-
};
|
|
280
|
+
jurisdiction: string;
|
|
112
281
|
/**
|
|
113
|
-
*
|
|
282
|
+
* Full name of the regulatory body.
|
|
114
283
|
*/
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
284
|
+
name: string;
|
|
285
|
+
/**
|
|
286
|
+
* Registration or identification number with the regulator.
|
|
287
|
+
*/
|
|
288
|
+
registration_number: string;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Information describing a third-party verification run by an external vendor.
|
|
292
|
+
*/
|
|
293
|
+
interface ThirdPartyVerification {
|
|
294
|
+
/**
|
|
295
|
+
* The vendor that performed the verification, e.g. `persona`.
|
|
296
|
+
*/
|
|
297
|
+
vendor: 'persona';
|
|
298
|
+
/**
|
|
299
|
+
* The identification of the third party verification in `vendor`'s system.
|
|
300
|
+
*/
|
|
301
|
+
vendor_verification_id: string;
|
|
302
|
+
}
|
|
303
|
+
interface WealthAndEmploymentDetails {
|
|
304
|
+
id: string;
|
|
305
|
+
/**
|
|
306
|
+
* The annual income of the individual in USD.
|
|
307
|
+
*/
|
|
308
|
+
annual_income: number | null;
|
|
309
|
+
created_at: string;
|
|
310
|
+
discarded_at: string | null;
|
|
311
|
+
/**
|
|
312
|
+
* The country in which the employer is located.
|
|
313
|
+
*/
|
|
314
|
+
employer_country: string | null;
|
|
315
|
+
/**
|
|
316
|
+
* The name of the employer.
|
|
317
|
+
*/
|
|
318
|
+
employer_name: string | null;
|
|
319
|
+
/**
|
|
320
|
+
* The state in which the employer is located.
|
|
321
|
+
*/
|
|
322
|
+
employer_state: string | null;
|
|
323
|
+
/**
|
|
324
|
+
* The employment status of the individual.
|
|
325
|
+
*/
|
|
326
|
+
employment_status: 'employed' | 'retired' | 'self_employed' | 'student' | 'unemployed' | null;
|
|
118
327
|
/**
|
|
119
|
-
*
|
|
328
|
+
* The country in which the individual's income is earned.
|
|
120
329
|
*/
|
|
121
|
-
|
|
330
|
+
income_country: string | null;
|
|
122
331
|
/**
|
|
123
|
-
*
|
|
332
|
+
* The source of the individual's income.
|
|
124
333
|
*/
|
|
125
|
-
|
|
334
|
+
income_source: 'family_support' | 'government_benefits' | 'inheritance' | 'investments' | 'rental_income' | 'retirement' | 'salary' | 'self_employed' | null;
|
|
126
335
|
/**
|
|
127
|
-
*
|
|
336
|
+
* The state in which the individual's income is earned.
|
|
128
337
|
*/
|
|
129
|
-
|
|
338
|
+
income_state: string | null;
|
|
339
|
+
/**
|
|
340
|
+
* The industry of the individual.
|
|
341
|
+
*/
|
|
342
|
+
industry: 'accounting' | 'agriculture' | 'automotive' | 'chemical_manufacturing' | 'construction' | 'educational_medical' | 'food_service' | 'finance' | 'gasoline' | 'health_stores' | 'laundry' | 'maintenance' | 'manufacturing' | 'merchant_wholesale' | 'mining' | 'performing_arts' | 'professional_non_legal' | 'public_administration' | 'publishing' | 'real_estate' | 'recreation_gambling' | 'religious_charity' | 'rental_services' | 'retail_clothing' | 'retail_electronics' | 'retail_food' | 'retail_furnishing' | 'retail_home' | 'retail_non_store' | 'retail_sporting' | 'transportation' | 'travel' | 'utilities' | null;
|
|
343
|
+
/**
|
|
344
|
+
* This field will be true if this object exists in the live environment or false
|
|
345
|
+
* if it exists in the test environment.
|
|
346
|
+
*/
|
|
347
|
+
live_mode: boolean;
|
|
348
|
+
object: string;
|
|
130
349
|
/**
|
|
131
|
-
* The
|
|
350
|
+
* The occupation of the individual.
|
|
132
351
|
*/
|
|
133
|
-
|
|
352
|
+
occupation: 'consulting' | 'executive' | 'finance_accounting' | 'food_services' | 'government' | 'healthcare' | 'legal_services' | 'manufacturing' | 'other' | 'sales' | 'science_engineering' | 'technology' | null;
|
|
134
353
|
/**
|
|
135
|
-
*
|
|
354
|
+
* The source of the individual's funds.
|
|
136
355
|
*/
|
|
137
|
-
|
|
356
|
+
source_of_funds: 'alimony' | 'annuity' | 'business_owner' | 'business_revenue' | 'debt_financing' | 'general_employee' | 'government_benefits' | 'homemaker' | 'inheritance_gift' | 'intercompany_loan' | 'investment' | 'investor_funding' | 'legal_settlement' | 'lottery' | 'real_estate' | 'retained_earnings_or_savings' | 'retired' | 'retirement' | 'salary' | 'sale_of_business_assets' | 'sale_of_real_estate' | 'self_employed' | 'senior_executive' | 'trust_income' | null;
|
|
138
357
|
updated_at: string;
|
|
139
|
-
wealth_and_employment_details: ChildLegalEntity.WealthAndEmploymentDetails | null;
|
|
140
358
|
/**
|
|
141
|
-
* The
|
|
359
|
+
* The source of the individual's wealth.
|
|
142
360
|
*/
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
namespace ChildLegalEntity {
|
|
146
|
-
interface Address {
|
|
147
|
-
id: string;
|
|
148
|
-
/**
|
|
149
|
-
* The types of this address.
|
|
150
|
-
*/
|
|
151
|
-
address_types: Array<'business' | 'mailing' | 'other' | 'po_box' | 'residential'>;
|
|
152
|
-
/**
|
|
153
|
-
* Country code conforms to [ISO 3166-1 alpha-2]
|
|
154
|
-
*/
|
|
155
|
-
country: string | null;
|
|
156
|
-
created_at: string;
|
|
157
|
-
discarded_at: string | null;
|
|
158
|
-
line1: string | null;
|
|
159
|
-
line2: string | null;
|
|
160
|
-
/**
|
|
161
|
-
* This field will be true if this object exists in the live environment or false
|
|
162
|
-
* if it exists in the test environment.
|
|
163
|
-
*/
|
|
164
|
-
live_mode: boolean;
|
|
165
|
-
/**
|
|
166
|
-
* Locality or City.
|
|
167
|
-
*/
|
|
168
|
-
locality: string | null;
|
|
169
|
-
object: string;
|
|
170
|
-
/**
|
|
171
|
-
* The postal code of the address.
|
|
172
|
-
*/
|
|
173
|
-
postal_code: string | null;
|
|
174
|
-
/**
|
|
175
|
-
* Region or State.
|
|
176
|
-
*/
|
|
177
|
-
region: string | null;
|
|
178
|
-
updated_at: string;
|
|
179
|
-
}
|
|
180
|
-
interface BankSettings {
|
|
181
|
-
id: string;
|
|
182
|
-
/**
|
|
183
|
-
* The percentage of backup withholding to apply to the legal entity.
|
|
184
|
-
*/
|
|
185
|
-
backup_withholding_percentage: number | null;
|
|
186
|
-
created_at: string;
|
|
187
|
-
discarded_at: string | null;
|
|
188
|
-
/**
|
|
189
|
-
* Whether backup withholding is enabled. See more here -
|
|
190
|
-
* https://www.irs.gov/businesses/small-businesses-self-employed/backup-withholding.
|
|
191
|
-
*/
|
|
192
|
-
enable_backup_withholding: boolean | null;
|
|
193
|
-
/**
|
|
194
|
-
* This field will be true if this object exists in the live environment or false
|
|
195
|
-
* if it exists in the test environment.
|
|
196
|
-
*/
|
|
197
|
-
live_mode: boolean;
|
|
198
|
-
object: string;
|
|
199
|
-
/**
|
|
200
|
-
* Cross River Bank specific setting to opt out of privacy policy.
|
|
201
|
-
*/
|
|
202
|
-
privacy_opt_out: boolean | null;
|
|
203
|
-
/**
|
|
204
|
-
* It covers, among other types of insider loans, extensions of credit by a member
|
|
205
|
-
* bank to an executive officer, director, or principal shareholder of the member
|
|
206
|
-
* bank; a bank holding company of which the member bank is a subsidiary; and any
|
|
207
|
-
* other subsidiary of that bank holding company.
|
|
208
|
-
*/
|
|
209
|
-
regulation_o: boolean | null;
|
|
210
|
-
updated_at: string;
|
|
211
|
-
}
|
|
212
|
-
interface Identification {
|
|
213
|
-
id: string;
|
|
214
|
-
created_at: string;
|
|
215
|
-
discarded_at: string | null;
|
|
216
|
-
/**
|
|
217
|
-
* The date when the Identification is no longer considered valid by the issuing
|
|
218
|
-
* authority.
|
|
219
|
-
*/
|
|
220
|
-
expiration_date: string | null;
|
|
221
|
-
/**
|
|
222
|
-
* The type of ID number.
|
|
223
|
-
*/
|
|
224
|
-
id_type: 'ar_cuil' | 'ar_cuit' | 'br_cnpj' | 'br_cpf' | 'cl_run' | 'cl_rut' | 'co_cedulas' | 'co_nit' | 'drivers_license' | 'hn_id' | 'hn_rtn' | 'in_lei' | 'kr_brn' | 'kr_crn' | 'kr_rrn' | 'passport' | 'sa_tin' | 'sa_vat' | 'us_ein' | 'us_itin' | 'us_ssn' | 'vn_tin';
|
|
225
|
-
/**
|
|
226
|
-
* The ISO 3166-1 alpha-2 country code of the country that issued the
|
|
227
|
-
* identification
|
|
228
|
-
*/
|
|
229
|
-
issuing_country: string | null;
|
|
230
|
-
/**
|
|
231
|
-
* The region in which the identifcation was issued.
|
|
232
|
-
*/
|
|
233
|
-
issuing_region: string | null;
|
|
234
|
-
/**
|
|
235
|
-
* This field will be true if this object exists in the live environment or false
|
|
236
|
-
* if it exists in the test environment.
|
|
237
|
-
*/
|
|
238
|
-
live_mode: boolean;
|
|
239
|
-
object: string;
|
|
240
|
-
updated_at: string;
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* A list of phone numbers in E.164 format.
|
|
244
|
-
*/
|
|
245
|
-
interface PhoneNumber {
|
|
246
|
-
phone_number?: string;
|
|
247
|
-
}
|
|
248
|
-
interface WealthAndEmploymentDetails {
|
|
249
|
-
id: string;
|
|
250
|
-
/**
|
|
251
|
-
* The annual income of the individual.
|
|
252
|
-
*/
|
|
253
|
-
annual_income: number | null;
|
|
254
|
-
created_at: string;
|
|
255
|
-
discarded_at: string | null;
|
|
256
|
-
/**
|
|
257
|
-
* The country in which the employer is located.
|
|
258
|
-
*/
|
|
259
|
-
employer_country: string | null;
|
|
260
|
-
/**
|
|
261
|
-
* The name of the employer.
|
|
262
|
-
*/
|
|
263
|
-
employer_name: string | null;
|
|
264
|
-
/**
|
|
265
|
-
* The state in which the employer is located.
|
|
266
|
-
*/
|
|
267
|
-
employer_state: string | null;
|
|
268
|
-
/**
|
|
269
|
-
* The employment status of the individual.
|
|
270
|
-
*/
|
|
271
|
-
employment_status: 'employed' | 'retired' | 'self_employed' | 'student' | 'unemployed' | null;
|
|
272
|
-
/**
|
|
273
|
-
* The country in which the individual's income is earned.
|
|
274
|
-
*/
|
|
275
|
-
income_country: string | null;
|
|
276
|
-
/**
|
|
277
|
-
* The source of the individual's income.
|
|
278
|
-
*/
|
|
279
|
-
income_source: 'family_support' | 'government_benefits' | 'inheritance' | 'investments' | 'rental_income' | 'retirement' | 'salary' | 'self_employed' | null;
|
|
280
|
-
/**
|
|
281
|
-
* The state in which the individual's income is earned.
|
|
282
|
-
*/
|
|
283
|
-
income_state: string | null;
|
|
284
|
-
/**
|
|
285
|
-
* The industry of the individual.
|
|
286
|
-
*/
|
|
287
|
-
industry: 'accounting' | 'agriculture' | 'automotive' | 'chemical_manufacturing' | 'construction' | 'educational_medical' | 'food_service' | 'finance' | 'gasoline' | 'health_stores' | 'laundry' | 'maintenance' | 'manufacturing' | 'merchant_wholesale' | 'mining' | 'performing_arts' | 'professional_non_legal' | 'public_administration' | 'publishing' | 'real_estate' | 'recreation_gambling' | 'religious_charity' | 'rental_services' | 'retail_clothing' | 'retail_electronics' | 'retail_food' | 'retail_furnishing' | 'retail_home' | 'retail_non_store' | 'retail_sporting' | 'transportation' | 'travel' | 'utilities' | null;
|
|
288
|
-
/**
|
|
289
|
-
* This field will be true if this object exists in the live environment or false
|
|
290
|
-
* if it exists in the test environment.
|
|
291
|
-
*/
|
|
292
|
-
live_mode: boolean;
|
|
293
|
-
object: string;
|
|
294
|
-
/**
|
|
295
|
-
* The occupation of the individual.
|
|
296
|
-
*/
|
|
297
|
-
occupation: 'consulting' | 'executive' | 'finance_accounting' | 'food_services' | 'government' | 'healthcare' | 'legal_services' | 'manufacturing' | 'other' | 'sales' | 'science_engineering' | 'technology' | null;
|
|
298
|
-
/**
|
|
299
|
-
* The source of the individual's funds.
|
|
300
|
-
*/
|
|
301
|
-
source_of_funds: 'alimony' | 'annuity' | 'business_owner' | 'general_employee' | 'government_benefits' | 'homemaker' | 'inheritance_gift' | 'investment' | 'legal_settlement' | 'lottery' | 'real_estate' | 'retired' | 'retirement' | 'salary' | 'self_employed' | 'senior_executive' | 'trust_income' | null;
|
|
302
|
-
updated_at: string;
|
|
303
|
-
/**
|
|
304
|
-
* The source of the individual's wealth.
|
|
305
|
-
*/
|
|
306
|
-
wealth_source: 'business_sale' | 'family_support' | 'government_benefits' | 'inheritance' | 'investments' | 'other' | 'rental_income' | 'retirement' | 'salary' | 'self_employed' | null;
|
|
307
|
-
}
|
|
361
|
+
wealth_source: 'business_sale' | 'family_support' | 'government_benefits' | 'inheritance' | 'investments' | 'other' | 'rental_income' | 'retirement' | 'salary' | 'self_employed' | null;
|
|
308
362
|
}
|
|
309
363
|
}
|
|
364
|
+
export interface LegalEntityAssociation {
|
|
365
|
+
id: string;
|
|
366
|
+
/**
|
|
367
|
+
* The child legal entity.
|
|
368
|
+
*/
|
|
369
|
+
child_legal_entity: ChildLegalEntity;
|
|
370
|
+
created_at: string;
|
|
371
|
+
discarded_at: string | null;
|
|
372
|
+
/**
|
|
373
|
+
* This field will be true if this object exists in the live environment or false
|
|
374
|
+
* if it exists in the test environment.
|
|
375
|
+
*/
|
|
376
|
+
live_mode: boolean;
|
|
377
|
+
object: string;
|
|
378
|
+
/**
|
|
379
|
+
* The child entity's ownership percentage iff they are a beneficial owner.
|
|
380
|
+
*/
|
|
381
|
+
ownership_percentage: number | null;
|
|
382
|
+
/**
|
|
383
|
+
* The ID of the parent legal entity. This must be a business or joint legal
|
|
384
|
+
* entity.
|
|
385
|
+
*/
|
|
386
|
+
parent_legal_entity_id: string;
|
|
387
|
+
relationship_types: Array<'authorized_signer' | 'beneficial_owner' | 'control_person'>;
|
|
388
|
+
/**
|
|
389
|
+
* The job title of the child entity at the parent entity.
|
|
390
|
+
*/
|
|
391
|
+
title: string | null;
|
|
392
|
+
updated_at: string;
|
|
393
|
+
}
|
|
310
394
|
export interface LegalEntityAssociationCreateParams {
|
|
311
395
|
/**
|
|
312
396
|
* The ID of the parent legal entity. This must be a business or joint legal
|
|
@@ -332,6 +416,6 @@ export interface LegalEntityAssociationCreateParams {
|
|
|
332
416
|
title?: string | null;
|
|
333
417
|
}
|
|
334
418
|
export declare namespace LegalEntityAssociations {
|
|
335
|
-
export { type LegalEntityAssociation as LegalEntityAssociation, type LegalEntityAssociationCreateParams as LegalEntityAssociationCreateParams, };
|
|
419
|
+
export { type ChildLegalEntity as ChildLegalEntity, type LegalEntityAssociation as LegalEntityAssociation, type LegalEntityAssociationCreateParams as LegalEntityAssociationCreateParams, };
|
|
336
420
|
}
|
|
337
421
|
//# sourceMappingURL=legal-entity-associations.d.ts.map
|