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