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.
Files changed (200) hide show
  1. package/CHANGELOG.md +193 -0
  2. package/LICENSE +1 -1
  3. package/README.md +14 -5
  4. package/client.d.mts +16 -6
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +16 -6
  7. package/client.d.ts.map +1 -1
  8. package/client.js +27 -3
  9. package/client.js.map +1 -1
  10. package/client.mjs +27 -3
  11. package/client.mjs.map +1 -1
  12. package/internal/parse.d.mts.map +1 -1
  13. package/internal/parse.d.ts.map +1 -1
  14. package/internal/parse.js +5 -0
  15. package/internal/parse.js.map +1 -1
  16. package/internal/parse.mjs +5 -0
  17. package/internal/parse.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/resources/account-details.d.mts +4 -4
  20. package/resources/account-details.d.mts.map +1 -1
  21. package/resources/account-details.d.ts +4 -4
  22. package/resources/account-details.d.ts.map +1 -1
  23. package/resources/bulk-requests.d.mts +57 -4
  24. package/resources/bulk-requests.d.mts.map +1 -1
  25. package/resources/bulk-requests.d.ts +57 -4
  26. package/resources/bulk-requests.d.ts.map +1 -1
  27. package/resources/connection-legal-entities.d.mts +88 -21
  28. package/resources/connection-legal-entities.d.mts.map +1 -1
  29. package/resources/connection-legal-entities.d.ts +88 -21
  30. package/resources/connection-legal-entities.d.ts.map +1 -1
  31. package/resources/counterparties.d.mts +91 -20
  32. package/resources/counterparties.d.mts.map +1 -1
  33. package/resources/counterparties.d.ts +91 -20
  34. package/resources/counterparties.d.ts.map +1 -1
  35. package/resources/documents.d.mts +8 -8
  36. package/resources/documents.d.mts.map +1 -1
  37. package/resources/documents.d.ts +8 -8
  38. package/resources/documents.d.ts.map +1 -1
  39. package/resources/expected-payments.d.mts +60 -0
  40. package/resources/expected-payments.d.mts.map +1 -1
  41. package/resources/expected-payments.d.ts +60 -0
  42. package/resources/expected-payments.d.ts.map +1 -1
  43. package/resources/external-accounts.d.mts +1 -1
  44. package/resources/external-accounts.d.mts.map +1 -1
  45. package/resources/external-accounts.d.ts +1 -1
  46. package/resources/external-accounts.d.ts.map +1 -1
  47. package/resources/holds.d.mts +261 -0
  48. package/resources/holds.d.mts.map +1 -0
  49. package/resources/holds.d.ts +261 -0
  50. package/resources/holds.d.ts.map +1 -0
  51. package/resources/holds.js +35 -0
  52. package/resources/holds.js.map +1 -0
  53. package/resources/holds.mjs +31 -0
  54. package/resources/holds.mjs.map +1 -0
  55. package/resources/incoming-payment-details.d.mts +17 -4
  56. package/resources/incoming-payment-details.d.mts.map +1 -1
  57. package/resources/incoming-payment-details.d.ts +17 -4
  58. package/resources/incoming-payment-details.d.ts.map +1 -1
  59. package/resources/index.d.mts +4 -1
  60. package/resources/index.d.mts.map +1 -1
  61. package/resources/index.d.ts +4 -1
  62. package/resources/index.d.ts.map +1 -1
  63. package/resources/index.js +7 -1
  64. package/resources/index.js.map +1 -1
  65. package/resources/index.mjs +3 -0
  66. package/resources/index.mjs.map +1 -1
  67. package/resources/internal-accounts/internal-accounts.d.mts +35 -0
  68. package/resources/internal-accounts/internal-accounts.d.mts.map +1 -1
  69. package/resources/internal-accounts/internal-accounts.d.ts +35 -0
  70. package/resources/internal-accounts/internal-accounts.d.ts.map +1 -1
  71. package/resources/internal-accounts/internal-accounts.js +12 -0
  72. package/resources/internal-accounts/internal-accounts.js.map +1 -1
  73. package/resources/internal-accounts/internal-accounts.mjs +12 -0
  74. package/resources/internal-accounts/internal-accounts.mjs.map +1 -1
  75. package/resources/invoices/invoices.d.mts +1 -21
  76. package/resources/invoices/invoices.d.mts.map +1 -1
  77. package/resources/invoices/invoices.d.ts +1 -21
  78. package/resources/invoices/invoices.d.ts.map +1 -1
  79. package/resources/invoices/invoices.js.map +1 -1
  80. package/resources/invoices/invoices.mjs.map +1 -1
  81. package/resources/journal-entries.d.mts +31 -0
  82. package/resources/journal-entries.d.mts.map +1 -0
  83. package/resources/journal-entries.d.ts +31 -0
  84. package/resources/journal-entries.d.ts.map +1 -0
  85. package/resources/journal-entries.js +30 -0
  86. package/resources/journal-entries.js.map +1 -0
  87. package/resources/journal-entries.mjs +26 -0
  88. package/resources/journal-entries.mjs.map +1 -0
  89. package/resources/journal-reports.d.mts +25 -0
  90. package/resources/journal-reports.d.mts.map +1 -0
  91. package/resources/journal-reports.d.ts +25 -0
  92. package/resources/journal-reports.d.ts.map +1 -0
  93. package/resources/journal-reports.js +39 -0
  94. package/resources/journal-reports.js.map +1 -0
  95. package/resources/journal-reports.mjs +35 -0
  96. package/resources/journal-reports.mjs.map +1 -0
  97. package/resources/ledger-account-categories.d.mts +9 -5
  98. package/resources/ledger-account-categories.d.mts.map +1 -1
  99. package/resources/ledger-account-categories.d.ts +9 -5
  100. package/resources/ledger-account-categories.d.ts.map +1 -1
  101. package/resources/ledger-accounts.d.mts +8 -0
  102. package/resources/ledger-accounts.d.mts.map +1 -1
  103. package/resources/ledger-accounts.d.ts +8 -0
  104. package/resources/ledger-accounts.d.ts.map +1 -1
  105. package/resources/ledger-entries.d.mts +6 -1
  106. package/resources/ledger-entries.d.mts.map +1 -1
  107. package/resources/ledger-entries.d.ts +6 -1
  108. package/resources/ledger-entries.d.ts.map +1 -1
  109. package/resources/ledger-transactions/ledger-transactions.d.mts +5 -0
  110. package/resources/ledger-transactions/ledger-transactions.d.mts.map +1 -1
  111. package/resources/ledger-transactions/ledger-transactions.d.ts +5 -0
  112. package/resources/ledger-transactions/ledger-transactions.d.ts.map +1 -1
  113. package/resources/ledger-transactions/ledger-transactions.js.map +1 -1
  114. package/resources/ledger-transactions/ledger-transactions.mjs.map +1 -1
  115. package/resources/ledger-transactions/versions.d.mts +5 -0
  116. package/resources/ledger-transactions/versions.d.mts.map +1 -1
  117. package/resources/ledger-transactions/versions.d.ts +5 -0
  118. package/resources/ledger-transactions/versions.d.ts.map +1 -1
  119. package/resources/legal-entities.d.mts +264 -29
  120. package/resources/legal-entities.d.mts.map +1 -1
  121. package/resources/legal-entities.d.ts +264 -29
  122. package/resources/legal-entities.d.ts.map +1 -1
  123. package/resources/legal-entities.js.map +1 -1
  124. package/resources/legal-entities.mjs.map +1 -1
  125. package/resources/legal-entity-associations.d.mts +314 -230
  126. package/resources/legal-entity-associations.d.mts.map +1 -1
  127. package/resources/legal-entity-associations.d.ts +314 -230
  128. package/resources/legal-entity-associations.d.ts.map +1 -1
  129. package/resources/legal-entity-associations.js.map +1 -1
  130. package/resources/legal-entity-associations.mjs.map +1 -1
  131. package/resources/payment-orders/payment-orders.d.mts +31 -14
  132. package/resources/payment-orders/payment-orders.d.mts.map +1 -1
  133. package/resources/payment-orders/payment-orders.d.ts +31 -14
  134. package/resources/payment-orders/payment-orders.d.ts.map +1 -1
  135. package/resources/payment-orders/payment-orders.js.map +1 -1
  136. package/resources/payment-orders/payment-orders.mjs.map +1 -1
  137. package/resources/payment-orders/reversals.d.mts +4 -0
  138. package/resources/payment-orders/reversals.d.mts.map +1 -1
  139. package/resources/payment-orders/reversals.d.ts +4 -0
  140. package/resources/payment-orders/reversals.d.ts.map +1 -1
  141. package/resources/payment-references.d.mts +1 -1
  142. package/resources/payment-references.d.mts.map +1 -1
  143. package/resources/payment-references.d.ts +1 -1
  144. package/resources/payment-references.d.ts.map +1 -1
  145. package/resources/returns.d.mts +3 -3
  146. package/resources/returns.d.mts.map +1 -1
  147. package/resources/returns.d.ts +3 -3
  148. package/resources/returns.d.ts.map +1 -1
  149. package/resources/routing-details.d.mts +2 -2
  150. package/resources/routing-details.d.ts +2 -2
  151. package/resources/shared.d.mts +112 -30
  152. package/resources/shared.d.mts.map +1 -1
  153. package/resources/shared.d.ts +112 -30
  154. package/resources/shared.d.ts.map +1 -1
  155. package/resources/transactions/transactions.d.mts +1 -1
  156. package/resources/transactions/transactions.d.mts.map +1 -1
  157. package/resources/transactions/transactions.d.ts +1 -1
  158. package/resources/transactions/transactions.d.ts.map +1 -1
  159. package/resources/transactions/transactions.js.map +1 -1
  160. package/resources/transactions/transactions.mjs.map +1 -1
  161. package/resources/virtual-accounts.d.mts +1 -1
  162. package/resources/virtual-accounts.d.mts.map +1 -1
  163. package/resources/virtual-accounts.d.ts +1 -1
  164. package/resources/virtual-accounts.d.ts.map +1 -1
  165. package/src/client.ts +65 -8
  166. package/src/internal/parse.ts +6 -0
  167. package/src/resources/account-details.ts +4 -2
  168. package/src/resources/bulk-requests.ts +68 -2
  169. package/src/resources/connection-legal-entities.ts +107 -21
  170. package/src/resources/counterparties.ts +111 -19
  171. package/src/resources/documents.ts +19 -15
  172. package/src/resources/expected-payments.ts +72 -0
  173. package/src/resources/external-accounts.ts +1 -0
  174. package/src/resources/holds.ts +336 -0
  175. package/src/resources/incoming-payment-details.ts +35 -3
  176. package/src/resources/index.ts +14 -0
  177. package/src/resources/internal-accounts/internal-accounts.ts +44 -0
  178. package/src/resources/invoices/invoices.ts +1 -25
  179. package/src/resources/journal-entries.ts +51 -0
  180. package/src/resources/journal-reports.ts +54 -0
  181. package/src/resources/ledger-account-categories.ts +11 -5
  182. package/src/resources/ledger-accounts.ts +10 -0
  183. package/src/resources/ledger-entries.ts +7 -1
  184. package/src/resources/ledger-transactions/ledger-transactions.ts +6 -0
  185. package/src/resources/ledger-transactions/versions.ts +6 -0
  186. package/src/resources/legal-entities.ts +332 -27
  187. package/src/resources/legal-entity-associations.ts +502 -390
  188. package/src/resources/payment-orders/payment-orders.ts +48 -19
  189. package/src/resources/payment-orders/reversals.ts +5 -0
  190. package/src/resources/payment-references.ts +8 -3
  191. package/src/resources/returns.ts +11 -5
  192. package/src/resources/routing-details.ts +2 -2
  193. package/src/resources/shared.ts +138 -36
  194. package/src/resources/transactions/transactions.ts +2 -1
  195. package/src/resources/virtual-accounts.ts +1 -0
  196. package/src/version.ts +1 -1
  197. package/version.d.mts +1 -1
  198. package/version.d.ts +1 -1
  199. package/version.js +1 -1
  200. 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 Shared from './shared';
5
6
  import { APIPromise } from '../core/api-promise';
6
7
  import { RequestOptions } from '../internal/request-options';
@@ -17,130 +18,357 @@ export class LegalEntityAssociations extends APIResource {
17
18
  }
18
19
  }
19
20
 
20
- export interface LegalEntityAssociation {
21
+ export interface ChildLegalEntity {
21
22
  id: string;
22
23
 
23
24
  /**
24
- * The child legal entity.
25
+ * A list of addresses for the entity.
26
+ */
27
+ addresses: Array<ChildLegalEntity.Address>;
28
+
29
+ bank_settings: ChildLegalEntity.BankSettings | null;
30
+
31
+ /**
32
+ * A description of the business.
33
+ */
34
+ business_description: string | null;
35
+
36
+ /**
37
+ * The business's legal business name.
38
+ */
39
+ business_name: string | null;
40
+
41
+ /**
42
+ * The country of citizenship for an individual.
25
43
  */
26
- child_legal_entity: LegalEntityAssociation.ChildLegalEntity;
44
+ citizenship_country: string | null;
45
+
46
+ /**
47
+ * @deprecated
48
+ */
49
+ compliance_details: unknown | null;
50
+
51
+ /**
52
+ * The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
53
+ * alpha-3 formats.
54
+ */
55
+ country_of_incorporation: string | null;
27
56
 
28
57
  created_at: string;
29
58
 
59
+ /**
60
+ * A business's formation date (YYYY-MM-DD).
61
+ */
62
+ date_formed: string | null;
63
+
64
+ /**
65
+ * An individual's date of birth (YYYY-MM-DD).
66
+ */
67
+ date_of_birth: string | null;
68
+
30
69
  discarded_at: string | null;
31
70
 
71
+ documents: Array<DocumentsAPI.Document>;
72
+
73
+ doing_business_as_names: Array<string>;
74
+
75
+ /**
76
+ * The entity's primary email.
77
+ */
78
+ email: string | null;
79
+
80
+ /**
81
+ * Monthly expected transaction volume in USD.
82
+ */
83
+ expected_activity_volume: number | null;
84
+
85
+ /**
86
+ * An optional user-defined 180 character unique identifier.
87
+ */
88
+ external_id: string | null;
89
+
90
+ /**
91
+ * An individual's first name.
92
+ */
93
+ first_name: string | null;
94
+
95
+ /**
96
+ * A list of identifications for the legal entity.
97
+ */
98
+ identifications: Array<ChildLegalEntity.Identification>;
99
+
100
+ /**
101
+ * A list of industry classifications for the legal entity.
102
+ */
103
+ industry_classifications: Array<Shared.LegalEntityIndustryClassification>;
104
+
105
+ /**
106
+ * A description of the intended use of the legal entity.
107
+ */
108
+ intended_use: string | null;
109
+
110
+ /**
111
+ * An individual's last name.
112
+ */
113
+ last_name: string | null;
114
+
115
+ /**
116
+ * The legal entity associations and its child legal entities.
117
+ */
118
+ legal_entity_associations: Array<LegalEntityAssociation> | null;
119
+
120
+ /**
121
+ * The type of legal entity.
122
+ */
123
+ legal_entity_type: 'business' | 'individual' | 'joint';
124
+
125
+ /**
126
+ * The business's legal structure.
127
+ */
128
+ legal_structure:
129
+ | 'corporation'
130
+ | 'llc'
131
+ | 'non_profit'
132
+ | 'partnership'
133
+ | 'sole_proprietorship'
134
+ | 'trust'
135
+ | null;
136
+
137
+ /**
138
+ * ISO 10383 market identifier code.
139
+ */
140
+ listed_exchange: string | null;
141
+
32
142
  /**
33
143
  * This field will be true if this object exists in the live environment or false
34
144
  * if it exists in the test environment.
35
145
  */
36
146
  live_mode: boolean;
37
147
 
148
+ /**
149
+ * Additional data represented as key-value pairs. Both the key and value must be
150
+ * strings.
151
+ */
152
+ metadata: { [key: string]: string };
153
+
154
+ /**
155
+ * An individual's middle name.
156
+ */
157
+ middle_name: string | null;
158
+
38
159
  object: string;
39
160
 
40
161
  /**
41
- * The child entity's ownership percentage iff they are a beneficial owner.
162
+ * A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3
163
+ * codes).
42
164
  */
43
- ownership_percentage: number | null;
165
+ operating_jurisdictions: Array<string>;
166
+
167
+ phone_numbers: Array<ChildLegalEntity.PhoneNumber>;
44
168
 
45
169
  /**
46
- * The ID of the parent legal entity. This must be a business or joint legal
47
- * entity.
170
+ * Whether the individual is a politically exposed person.
48
171
  */
49
- parent_legal_entity_id: string;
172
+ politically_exposed_person: boolean | null;
50
173
 
51
- relationship_types: Array<'authorized_signer' | 'beneficial_owner' | 'control_person'>;
174
+ /**
175
+ * An individual's preferred name.
176
+ */
177
+ preferred_name: string | null;
52
178
 
53
179
  /**
54
- * The job title of the child entity at the parent entity.
180
+ * An individual's prefix.
55
181
  */
56
- title: string | null;
182
+ prefix: string | null;
183
+
184
+ /**
185
+ * A list of primary social media URLs for the business.
186
+ */
187
+ primary_social_media_sites: Array<string>;
188
+
189
+ /**
190
+ * Array of regulatory bodies overseeing this institution.
191
+ */
192
+ regulators: Array<ChildLegalEntity.Regulator> | null;
193
+
194
+ /**
195
+ * The risk rating of the legal entity. One of low, medium, high.
196
+ */
197
+ risk_rating: 'low' | 'medium' | 'high' | null;
198
+
199
+ /**
200
+ * The activation status of the legal entity. One of pending, active, suspended, or
201
+ * closed.
202
+ */
203
+ status: 'active' | 'closed' | 'pending' | 'suspended' | null;
204
+
205
+ /**
206
+ * An individual's suffix.
207
+ */
208
+ suffix: string | null;
209
+
210
+ /**
211
+ * Information describing a third-party verification run by an external vendor.
212
+ */
213
+ third_party_verification: ChildLegalEntity.ThirdPartyVerification | null;
214
+
215
+ /**
216
+ * Stock ticker symbol for publicly traded companies.
217
+ */
218
+ ticker_symbol: string | null;
57
219
 
58
220
  updated_at: string;
59
- }
60
221
 
61
- export namespace LegalEntityAssociation {
222
+ wealth_and_employment_details: ChildLegalEntity.WealthAndEmploymentDetails | null;
223
+
62
224
  /**
63
- * The child legal entity.
225
+ * The entity's primary website URL.
64
226
  */
65
- export interface ChildLegalEntity {
227
+ website: string | null;
228
+ }
229
+
230
+ export namespace ChildLegalEntity {
231
+ export interface Address {
66
232
  id: string;
67
233
 
68
234
  /**
69
- * A list of addresses for the entity.
235
+ * The types of this address.
236
+ */
237
+ address_types: Array<'business' | 'mailing' | 'other' | 'po_box' | 'residential'>;
238
+
239
+ /**
240
+ * Country code conforms to [ISO 3166-1 alpha-2]
70
241
  */
71
- addresses: Array<ChildLegalEntity.Address>;
242
+ country: string | null;
243
+
244
+ created_at: string;
72
245
 
73
- bank_settings: ChildLegalEntity.BankSettings | null;
246
+ discarded_at: string | null;
247
+
248
+ line1: string | null;
249
+
250
+ line2: string | null;
74
251
 
75
252
  /**
76
- * The business's legal business name.
253
+ * This field will be true if this object exists in the live environment or false
254
+ * if it exists in the test environment.
77
255
  */
78
- business_name: string | null;
256
+ live_mode: boolean;
79
257
 
80
258
  /**
81
- * The country of citizenship for an individual.
259
+ * Locality or City.
82
260
  */
83
- citizenship_country: string | null;
261
+ locality: string | null;
84
262
 
85
- compliance_details: Shared.LegalEntityComplianceDetail | null;
263
+ object: string;
86
264
 
87
- created_at: string;
265
+ /**
266
+ * The postal code of the address.
267
+ */
268
+ postal_code: string | null;
88
269
 
89
270
  /**
90
- * A business's formation date (YYYY-MM-DD).
271
+ * Region or State.
91
272
  */
92
- date_formed: string | null;
273
+ region: string | null;
274
+
275
+ updated_at: string;
276
+ }
277
+
278
+ export interface BankSettings {
279
+ id: string;
93
280
 
94
281
  /**
95
- * An individual's date of birth (YYYY-MM-DD).
282
+ * The percentage of backup withholding to apply to the legal entity.
96
283
  */
97
- date_of_birth: string | null;
284
+ backup_withholding_percentage: number | null;
285
+
286
+ created_at: string;
98
287
 
99
288
  discarded_at: string | null;
100
289
 
101
- doing_business_as_names: Array<string>;
290
+ /**
291
+ * Whether backup withholding is enabled. See more here -
292
+ * https://www.irs.gov/businesses/small-businesses-self-employed/backup-withholding.
293
+ */
294
+ enable_backup_withholding: boolean | null;
102
295
 
103
296
  /**
104
- * The entity's primary email.
297
+ * This field will be true if this object exists in the live environment or false
298
+ * if it exists in the test environment.
105
299
  */
106
- email: string | null;
300
+ live_mode: boolean;
301
+
302
+ object: string;
107
303
 
108
304
  /**
109
- * An individual's first name.
305
+ * Cross River Bank specific setting to opt out of privacy policy.
110
306
  */
111
- first_name: string | null;
307
+ privacy_opt_out: boolean | null;
112
308
 
113
309
  /**
114
- * A list of identifications for the legal entity.
310
+ * It covers, among other types of insider loans, extensions of credit by a member
311
+ * bank to an executive officer, director, or principal shareholder of the member
312
+ * bank; a bank holding company of which the member bank is a subsidiary; and any
313
+ * other subsidiary of that bank holding company.
115
314
  */
116
- identifications: Array<ChildLegalEntity.Identification>;
315
+ regulation_o: boolean | null;
316
+
317
+ updated_at: string;
318
+ }
319
+
320
+ export interface Identification {
321
+ id: string;
322
+
323
+ created_at: string;
324
+
325
+ discarded_at: string | null;
326
+
327
+ documents: Array<DocumentsAPI.Document>;
117
328
 
118
329
  /**
119
- * A list of industry classifications for the legal entity.
330
+ * The date when the Identification is no longer considered valid by the issuing
331
+ * authority.
120
332
  */
121
- industry_classifications: Array<Shared.LegalEntityIndustryClassification>;
333
+ expiration_date: string | null;
122
334
 
123
335
  /**
124
- * An individual's last name.
336
+ * The type of ID number.
125
337
  */
126
- last_name: string | null;
338
+ id_type:
339
+ | 'ar_cuil'
340
+ | 'ar_cuit'
341
+ | 'br_cnpj'
342
+ | 'br_cpf'
343
+ | 'cl_run'
344
+ | 'cl_rut'
345
+ | 'co_cedulas'
346
+ | 'co_nit'
347
+ | 'drivers_license'
348
+ | 'hn_id'
349
+ | 'hn_rtn'
350
+ | 'in_lei'
351
+ | 'kr_brn'
352
+ | 'kr_crn'
353
+ | 'kr_rrn'
354
+ | 'passport'
355
+ | 'sa_tin'
356
+ | 'sa_vat'
357
+ | 'us_ein'
358
+ | 'us_itin'
359
+ | 'us_ssn'
360
+ | 'vn_tin';
127
361
 
128
362
  /**
129
- * The type of legal entity.
363
+ * The ISO 3166-1 alpha-2 country code of the country that issued the
364
+ * identification
130
365
  */
131
- legal_entity_type: 'business' | 'individual' | 'joint';
366
+ issuing_country: string | null;
132
367
 
133
368
  /**
134
- * The business's legal structure.
369
+ * The region in which the identifcation was issued.
135
370
  */
136
- legal_structure:
137
- | 'corporation'
138
- | 'llc'
139
- | 'non_profit'
140
- | 'partnership'
141
- | 'sole_proprietorship'
142
- | 'trust'
143
- | null;
371
+ issuing_region: string | null;
144
372
 
145
373
  /**
146
374
  * This field will be true if this object exists in the live environment or false
@@ -148,380 +376,263 @@ export namespace LegalEntityAssociation {
148
376
  */
149
377
  live_mode: boolean;
150
378
 
379
+ object: string;
380
+
381
+ updated_at: string;
382
+ }
383
+
384
+ /**
385
+ * A list of phone numbers in E.164 format.
386
+ */
387
+ export interface PhoneNumber {
388
+ phone_number?: string;
389
+ }
390
+
391
+ export interface Regulator {
151
392
  /**
152
- * Additional data represented as key-value pairs. Both the key and value must be
153
- * strings.
393
+ * The country code where the regulator operates in the ISO 3166-1 alpha-2 format
394
+ * (e.g., "US", "CA", "GB").
154
395
  */
155
- metadata: { [key: string]: string };
396
+ jurisdiction: string;
156
397
 
157
398
  /**
158
- * An individual's middle name.
399
+ * Full name of the regulatory body.
159
400
  */
160
- middle_name: string | null;
401
+ name: string;
161
402
 
162
- object: string;
403
+ /**
404
+ * Registration or identification number with the regulator.
405
+ */
406
+ registration_number: string;
407
+ }
408
+
409
+ /**
410
+ * Information describing a third-party verification run by an external vendor.
411
+ */
412
+ export interface ThirdPartyVerification {
413
+ /**
414
+ * The vendor that performed the verification, e.g. `persona`.
415
+ */
416
+ vendor: 'persona';
417
+
418
+ /**
419
+ * The identification of the third party verification in `vendor`'s system.
420
+ */
421
+ vendor_verification_id: string;
422
+ }
163
423
 
164
- phone_numbers: Array<ChildLegalEntity.PhoneNumber>;
424
+ export interface WealthAndEmploymentDetails {
425
+ id: string;
165
426
 
166
427
  /**
167
- * Whether the individual is a politically exposed person.
428
+ * The annual income of the individual in USD.
168
429
  */
169
- politically_exposed_person: boolean | null;
430
+ annual_income: number | null;
431
+
432
+ created_at: string;
433
+
434
+ discarded_at: string | null;
170
435
 
171
436
  /**
172
- * An individual's preferred name.
437
+ * The country in which the employer is located.
173
438
  */
174
- preferred_name: string | null;
439
+ employer_country: string | null;
175
440
 
176
441
  /**
177
- * An individual's prefix.
442
+ * The name of the employer.
178
443
  */
179
- prefix: string | null;
444
+ employer_name: string | null;
180
445
 
181
446
  /**
182
- * The risk rating of the legal entity. One of low, medium, high.
447
+ * The state in which the employer is located.
183
448
  */
184
- risk_rating: 'low' | 'medium' | 'high' | null;
449
+ employer_state: string | null;
185
450
 
186
451
  /**
187
- * An individual's suffix.
452
+ * The employment status of the individual.
188
453
  */
189
- suffix: string | null;
454
+ employment_status: 'employed' | 'retired' | 'self_employed' | 'student' | 'unemployed' | null;
190
455
 
191
- updated_at: string;
456
+ /**
457
+ * The country in which the individual's income is earned.
458
+ */
459
+ income_country: string | null;
192
460
 
193
- wealth_and_employment_details: ChildLegalEntity.WealthAndEmploymentDetails | null;
461
+ /**
462
+ * The source of the individual's income.
463
+ */
464
+ income_source:
465
+ | 'family_support'
466
+ | 'government_benefits'
467
+ | 'inheritance'
468
+ | 'investments'
469
+ | 'rental_income'
470
+ | 'retirement'
471
+ | 'salary'
472
+ | 'self_employed'
473
+ | null;
194
474
 
195
475
  /**
196
- * The entity's primary website URL.
476
+ * The state in which the individual's income is earned.
197
477
  */
198
- website: string | null;
199
- }
478
+ income_state: string | null;
479
+
480
+ /**
481
+ * The industry of the individual.
482
+ */
483
+ industry:
484
+ | 'accounting'
485
+ | 'agriculture'
486
+ | 'automotive'
487
+ | 'chemical_manufacturing'
488
+ | 'construction'
489
+ | 'educational_medical'
490
+ | 'food_service'
491
+ | 'finance'
492
+ | 'gasoline'
493
+ | 'health_stores'
494
+ | 'laundry'
495
+ | 'maintenance'
496
+ | 'manufacturing'
497
+ | 'merchant_wholesale'
498
+ | 'mining'
499
+ | 'performing_arts'
500
+ | 'professional_non_legal'
501
+ | 'public_administration'
502
+ | 'publishing'
503
+ | 'real_estate'
504
+ | 'recreation_gambling'
505
+ | 'religious_charity'
506
+ | 'rental_services'
507
+ | 'retail_clothing'
508
+ | 'retail_electronics'
509
+ | 'retail_food'
510
+ | 'retail_furnishing'
511
+ | 'retail_home'
512
+ | 'retail_non_store'
513
+ | 'retail_sporting'
514
+ | 'transportation'
515
+ | 'travel'
516
+ | 'utilities'
517
+ | null;
200
518
 
201
- export namespace ChildLegalEntity {
202
- export interface Address {
203
- id: string;
519
+ /**
520
+ * This field will be true if this object exists in the live environment or false
521
+ * if it exists in the test environment.
522
+ */
523
+ live_mode: boolean;
204
524
 
205
- /**
206
- * The types of this address.
207
- */
208
- address_types: Array<'business' | 'mailing' | 'other' | 'po_box' | 'residential'>;
525
+ object: string;
526
+
527
+ /**
528
+ * The occupation of the individual.
529
+ */
530
+ occupation:
531
+ | 'consulting'
532
+ | 'executive'
533
+ | 'finance_accounting'
534
+ | 'food_services'
535
+ | 'government'
536
+ | 'healthcare'
537
+ | 'legal_services'
538
+ | 'manufacturing'
539
+ | 'other'
540
+ | 'sales'
541
+ | 'science_engineering'
542
+ | 'technology'
543
+ | null;
544
+
545
+ /**
546
+ * The source of the individual's funds.
547
+ */
548
+ source_of_funds:
549
+ | 'alimony'
550
+ | 'annuity'
551
+ | 'business_owner'
552
+ | 'business_revenue'
553
+ | 'debt_financing'
554
+ | 'general_employee'
555
+ | 'government_benefits'
556
+ | 'homemaker'
557
+ | 'inheritance_gift'
558
+ | 'intercompany_loan'
559
+ | 'investment'
560
+ | 'investor_funding'
561
+ | 'legal_settlement'
562
+ | 'lottery'
563
+ | 'real_estate'
564
+ | 'retained_earnings_or_savings'
565
+ | 'retired'
566
+ | 'retirement'
567
+ | 'salary'
568
+ | 'sale_of_business_assets'
569
+ | 'sale_of_real_estate'
570
+ | 'self_employed'
571
+ | 'senior_executive'
572
+ | 'trust_income'
573
+ | null;
209
574
 
210
- /**
211
- * Country code conforms to [ISO 3166-1 alpha-2]
212
- */
213
- country: string | null;
575
+ updated_at: string;
214
576
 
215
- created_at: string;
216
-
217
- discarded_at: string | null;
218
-
219
- line1: string | null;
220
-
221
- line2: string | null;
222
-
223
- /**
224
- * This field will be true if this object exists in the live environment or false
225
- * if it exists in the test environment.
226
- */
227
- live_mode: boolean;
228
-
229
- /**
230
- * Locality or City.
231
- */
232
- locality: string | null;
233
-
234
- object: string;
235
-
236
- /**
237
- * The postal code of the address.
238
- */
239
- postal_code: string | null;
240
-
241
- /**
242
- * Region or State.
243
- */
244
- region: string | null;
245
-
246
- updated_at: string;
247
- }
248
-
249
- export interface BankSettings {
250
- id: string;
251
-
252
- /**
253
- * The percentage of backup withholding to apply to the legal entity.
254
- */
255
- backup_withholding_percentage: number | null;
256
-
257
- created_at: string;
258
-
259
- discarded_at: string | null;
260
-
261
- /**
262
- * Whether backup withholding is enabled. See more here -
263
- * https://www.irs.gov/businesses/small-businesses-self-employed/backup-withholding.
264
- */
265
- enable_backup_withholding: boolean | null;
266
-
267
- /**
268
- * This field will be true if this object exists in the live environment or false
269
- * if it exists in the test environment.
270
- */
271
- live_mode: boolean;
272
-
273
- object: string;
274
-
275
- /**
276
- * Cross River Bank specific setting to opt out of privacy policy.
277
- */
278
- privacy_opt_out: boolean | null;
279
-
280
- /**
281
- * It covers, among other types of insider loans, extensions of credit by a member
282
- * bank to an executive officer, director, or principal shareholder of the member
283
- * bank; a bank holding company of which the member bank is a subsidiary; and any
284
- * other subsidiary of that bank holding company.
285
- */
286
- regulation_o: boolean | null;
287
-
288
- updated_at: string;
289
- }
290
-
291
- export interface Identification {
292
- id: string;
293
-
294
- created_at: string;
295
-
296
- discarded_at: string | null;
297
-
298
- /**
299
- * The date when the Identification is no longer considered valid by the issuing
300
- * authority.
301
- */
302
- expiration_date: string | null;
303
-
304
- /**
305
- * The type of ID number.
306
- */
307
- id_type:
308
- | 'ar_cuil'
309
- | 'ar_cuit'
310
- | 'br_cnpj'
311
- | 'br_cpf'
312
- | 'cl_run'
313
- | 'cl_rut'
314
- | 'co_cedulas'
315
- | 'co_nit'
316
- | 'drivers_license'
317
- | 'hn_id'
318
- | 'hn_rtn'
319
- | 'in_lei'
320
- | 'kr_brn'
321
- | 'kr_crn'
322
- | 'kr_rrn'
323
- | 'passport'
324
- | 'sa_tin'
325
- | 'sa_vat'
326
- | 'us_ein'
327
- | 'us_itin'
328
- | 'us_ssn'
329
- | 'vn_tin';
330
-
331
- /**
332
- * The ISO 3166-1 alpha-2 country code of the country that issued the
333
- * identification
334
- */
335
- issuing_country: string | null;
336
-
337
- /**
338
- * The region in which the identifcation was issued.
339
- */
340
- issuing_region: string | null;
341
-
342
- /**
343
- * This field will be true if this object exists in the live environment or false
344
- * if it exists in the test environment.
345
- */
346
- live_mode: boolean;
347
-
348
- object: string;
349
-
350
- updated_at: string;
351
- }
352
-
353
- /**
354
- * A list of phone numbers in E.164 format.
355
- */
356
- export interface PhoneNumber {
357
- phone_number?: string;
358
- }
359
-
360
- export interface WealthAndEmploymentDetails {
361
- id: string;
362
-
363
- /**
364
- * The annual income of the individual.
365
- */
366
- annual_income: number | null;
367
-
368
- created_at: string;
369
-
370
- discarded_at: string | null;
371
-
372
- /**
373
- * The country in which the employer is located.
374
- */
375
- employer_country: string | null;
376
-
377
- /**
378
- * The name of the employer.
379
- */
380
- employer_name: string | null;
381
-
382
- /**
383
- * The state in which the employer is located.
384
- */
385
- employer_state: string | null;
386
-
387
- /**
388
- * The employment status of the individual.
389
- */
390
- employment_status: 'employed' | 'retired' | 'self_employed' | 'student' | 'unemployed' | null;
391
-
392
- /**
393
- * The country in which the individual's income is earned.
394
- */
395
- income_country: string | null;
396
-
397
- /**
398
- * The source of the individual's income.
399
- */
400
- income_source:
401
- | 'family_support'
402
- | 'government_benefits'
403
- | 'inheritance'
404
- | 'investments'
405
- | 'rental_income'
406
- | 'retirement'
407
- | 'salary'
408
- | 'self_employed'
409
- | null;
410
-
411
- /**
412
- * The state in which the individual's income is earned.
413
- */
414
- income_state: string | null;
415
-
416
- /**
417
- * The industry of the individual.
418
- */
419
- industry:
420
- | 'accounting'
421
- | 'agriculture'
422
- | 'automotive'
423
- | 'chemical_manufacturing'
424
- | 'construction'
425
- | 'educational_medical'
426
- | 'food_service'
427
- | 'finance'
428
- | 'gasoline'
429
- | 'health_stores'
430
- | 'laundry'
431
- | 'maintenance'
432
- | 'manufacturing'
433
- | 'merchant_wholesale'
434
- | 'mining'
435
- | 'performing_arts'
436
- | 'professional_non_legal'
437
- | 'public_administration'
438
- | 'publishing'
439
- | 'real_estate'
440
- | 'recreation_gambling'
441
- | 'religious_charity'
442
- | 'rental_services'
443
- | 'retail_clothing'
444
- | 'retail_electronics'
445
- | 'retail_food'
446
- | 'retail_furnishing'
447
- | 'retail_home'
448
- | 'retail_non_store'
449
- | 'retail_sporting'
450
- | 'transportation'
451
- | 'travel'
452
- | 'utilities'
453
- | null;
454
-
455
- /**
456
- * This field will be true if this object exists in the live environment or false
457
- * if it exists in the test environment.
458
- */
459
- live_mode: boolean;
460
-
461
- object: string;
462
-
463
- /**
464
- * The occupation of the individual.
465
- */
466
- occupation:
467
- | 'consulting'
468
- | 'executive'
469
- | 'finance_accounting'
470
- | 'food_services'
471
- | 'government'
472
- | 'healthcare'
473
- | 'legal_services'
474
- | 'manufacturing'
475
- | 'other'
476
- | 'sales'
477
- | 'science_engineering'
478
- | 'technology'
479
- | null;
480
-
481
- /**
482
- * The source of the individual's funds.
483
- */
484
- source_of_funds:
485
- | 'alimony'
486
- | 'annuity'
487
- | 'business_owner'
488
- | 'general_employee'
489
- | 'government_benefits'
490
- | 'homemaker'
491
- | 'inheritance_gift'
492
- | 'investment'
493
- | 'legal_settlement'
494
- | 'lottery'
495
- | 'real_estate'
496
- | 'retired'
497
- | 'retirement'
498
- | 'salary'
499
- | 'self_employed'
500
- | 'senior_executive'
501
- | 'trust_income'
502
- | null;
503
-
504
- updated_at: string;
505
-
506
- /**
507
- * The source of the individual's wealth.
508
- */
509
- wealth_source:
510
- | 'business_sale'
511
- | 'family_support'
512
- | 'government_benefits'
513
- | 'inheritance'
514
- | 'investments'
515
- | 'other'
516
- | 'rental_income'
517
- | 'retirement'
518
- | 'salary'
519
- | 'self_employed'
520
- | null;
521
- }
577
+ /**
578
+ * The source of the individual's wealth.
579
+ */
580
+ wealth_source:
581
+ | 'business_sale'
582
+ | 'family_support'
583
+ | 'government_benefits'
584
+ | 'inheritance'
585
+ | 'investments'
586
+ | 'other'
587
+ | 'rental_income'
588
+ | 'retirement'
589
+ | 'salary'
590
+ | 'self_employed'
591
+ | null;
522
592
  }
523
593
  }
524
594
 
595
+ export interface LegalEntityAssociation {
596
+ id: string;
597
+
598
+ /**
599
+ * The child legal entity.
600
+ */
601
+ child_legal_entity: ChildLegalEntity;
602
+
603
+ created_at: string;
604
+
605
+ discarded_at: string | null;
606
+
607
+ /**
608
+ * This field will be true if this object exists in the live environment or false
609
+ * if it exists in the test environment.
610
+ */
611
+ live_mode: boolean;
612
+
613
+ object: string;
614
+
615
+ /**
616
+ * The child entity's ownership percentage iff they are a beneficial owner.
617
+ */
618
+ ownership_percentage: number | null;
619
+
620
+ /**
621
+ * The ID of the parent legal entity. This must be a business or joint legal
622
+ * entity.
623
+ */
624
+ parent_legal_entity_id: string;
625
+
626
+ relationship_types: Array<'authorized_signer' | 'beneficial_owner' | 'control_person'>;
627
+
628
+ /**
629
+ * The job title of the child entity at the parent entity.
630
+ */
631
+ title: string | null;
632
+
633
+ updated_at: string;
634
+ }
635
+
525
636
  export interface LegalEntityAssociationCreateParams {
526
637
  /**
527
638
  * The ID of the parent legal entity. This must be a business or joint legal
@@ -554,6 +665,7 @@ export interface LegalEntityAssociationCreateParams {
554
665
 
555
666
  export declare namespace LegalEntityAssociations {
556
667
  export {
668
+ type ChildLegalEntity as ChildLegalEntity,
557
669
  type LegalEntityAssociation as LegalEntityAssociation,
558
670
  type LegalEntityAssociationCreateParams as LegalEntityAssociationCreateParams,
559
671
  };