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,4 +1,5 @@
1
1
  import { APIResource } from "../core/resource.mjs";
2
+ import * as DocumentsAPI from "./documents.mjs";
2
3
  import * as Shared from "./shared.mjs";
3
4
  import { APIPromise } from "../core/api-promise.mjs";
4
5
  import { RequestOptions } from "../internal/request-options.mjs";
@@ -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 LegalEntityAssociation {
12
+ export interface ChildLegalEntity {
12
13
  id: string;
13
14
  /**
14
- * The child legal entity.
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
- child_legal_entity: LegalEntityAssociation.ChildLegalEntity;
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
- * The child entity's ownership percentage iff they are a beneficial owner.
118
+ * A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3
119
+ * codes).
27
120
  */
28
- ownership_percentage: number | null;
121
+ operating_jurisdictions: Array<string>;
122
+ phone_numbers: Array<ChildLegalEntity.PhoneNumber>;
29
123
  /**
30
- * The ID of the parent legal entity. This must be a business or joint legal
31
- * entity.
124
+ * Whether the individual is a politically exposed person.
32
125
  */
33
- parent_legal_entity_id: string;
34
- relationship_types: Array<'authorized_signer' | 'beneficial_owner' | 'control_person'>;
126
+ politically_exposed_person: boolean | null;
35
127
  /**
36
- * The job title of the child entity at the parent entity.
128
+ * An individual's preferred name.
37
129
  */
38
- title: string | null;
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 child legal entity.
167
+ * The entity's primary website URL.
44
168
  */
45
- interface ChildLegalEntity {
169
+ website: string | null;
170
+ }
171
+ export declare namespace ChildLegalEntity {
172
+ interface Address {
46
173
  id: string;
47
174
  /**
48
- * A list of addresses for the entity.
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
- addresses: Array<ChildLegalEntity.Address>;
51
- bank_settings: ChildLegalEntity.BankSettings | null;
181
+ country: string | null;
182
+ created_at: string;
183
+ discarded_at: string | null;
184
+ line1: string | null;
185
+ line2: string | null;
52
186
  /**
53
- * The business's legal business name.
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
- business_name: string | null;
190
+ live_mode: boolean;
56
191
  /**
57
- * The country of citizenship for an individual.
192
+ * Locality or City.
58
193
  */
59
- citizenship_country: string | null;
60
- compliance_details: Shared.LegalEntityComplianceDetail | null;
61
- created_at: string;
194
+ locality: string | null;
195
+ object: string;
62
196
  /**
63
- * A business's formation date (YYYY-MM-DD).
197
+ * The postal code of the address.
64
198
  */
65
- date_formed: string | null;
199
+ postal_code: string | null;
66
200
  /**
67
- * An individual's date of birth (YYYY-MM-DD).
201
+ * Region or State.
68
202
  */
69
- date_of_birth: string | null;
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
- * The entity's primary email.
215
+ * Whether backup withholding is enabled. See more here -
216
+ * https://www.irs.gov/businesses/small-businesses-self-employed/backup-withholding.
74
217
  */
75
- email: string | null;
218
+ enable_backup_withholding: boolean | null;
76
219
  /**
77
- * An individual's first name.
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
- first_name: string | null;
223
+ live_mode: boolean;
224
+ object: string;
80
225
  /**
81
- * A list of identifications for the legal entity.
226
+ * Cross River Bank specific setting to opt out of privacy policy.
82
227
  */
83
- identifications: Array<ChildLegalEntity.Identification>;
228
+ privacy_opt_out: boolean | null;
84
229
  /**
85
- * A list of industry classifications for the legal entity.
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
- industry_classifications: Array<Shared.LegalEntityIndustryClassification>;
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
- * An individual's last name.
249
+ * The type of ID number.
90
250
  */
91
- last_name: string | null;
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 type of legal entity.
253
+ * The ISO 3166-1 alpha-2 country code of the country that issued the
254
+ * identification
94
255
  */
95
- legal_entity_type: 'business' | 'individual' | 'joint';
256
+ issuing_country: string | null;
96
257
  /**
97
- * The business's legal structure.
258
+ * The region in which the identifcation was issued.
98
259
  */
99
- legal_structure: 'corporation' | 'llc' | 'non_profit' | 'partnership' | 'sole_proprietorship' | 'trust' | null;
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
- * Additional data represented as key-value pairs. Both the key and value must be
107
- * strings.
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
- metadata: {
110
- [key: string]: string;
111
- };
280
+ jurisdiction: string;
112
281
  /**
113
- * An individual's middle name.
282
+ * Full name of the regulatory body.
114
283
  */
115
- middle_name: string | null;
116
- object: string;
117
- phone_numbers: Array<ChildLegalEntity.PhoneNumber>;
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
- * Whether the individual is a politically exposed person.
328
+ * The country in which the individual's income is earned.
120
329
  */
121
- politically_exposed_person: boolean | null;
330
+ income_country: string | null;
122
331
  /**
123
- * An individual's preferred name.
332
+ * The source of the individual's income.
124
333
  */
125
- preferred_name: string | null;
334
+ income_source: 'family_support' | 'government_benefits' | 'inheritance' | 'investments' | 'rental_income' | 'retirement' | 'salary' | 'self_employed' | null;
126
335
  /**
127
- * An individual's prefix.
336
+ * The state in which the individual's income is earned.
128
337
  */
129
- prefix: string | null;
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 risk rating of the legal entity. One of low, medium, high.
350
+ * The occupation of the individual.
132
351
  */
133
- risk_rating: 'low' | 'medium' | 'high' | null;
352
+ occupation: 'consulting' | 'executive' | 'finance_accounting' | 'food_services' | 'government' | 'healthcare' | 'legal_services' | 'manufacturing' | 'other' | 'sales' | 'science_engineering' | 'technology' | null;
134
353
  /**
135
- * An individual's suffix.
354
+ * The source of the individual's funds.
136
355
  */
137
- suffix: string | null;
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 entity's primary website URL.
359
+ * The source of the individual's wealth.
142
360
  */
143
- website: string | null;
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.mts.map