modern_treasury 0.1.0.pre.alpha.22 → 0.1.0

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 (295) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +38 -0
  3. data/README.md +1 -1
  4. data/lib/modern_treasury/client.rb +0 -12
  5. data/lib/modern_treasury/internal/transport/base_client.rb +1 -1
  6. data/lib/modern_treasury/internal/type/base_model.rb +4 -4
  7. data/lib/modern_treasury/models/accounting.rb +30 -0
  8. data/lib/modern_treasury/models/address.rb +94 -0
  9. data/lib/modern_treasury/models/address_request.rb +54 -0
  10. data/lib/modern_treasury/models/bulk_request_create_params.rb +144 -1505
  11. data/lib/modern_treasury/models/child_legal_entity_create.rb +275 -0
  12. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +10 -627
  13. data/lib/modern_treasury/models/contact_detail.rb +81 -0
  14. data/lib/modern_treasury/models/contact_detail_create_request.rb +34 -0
  15. data/lib/modern_treasury/models/counterparty.rb +24 -177
  16. data/lib/modern_treasury/models/counterparty_create_params.rb +37 -838
  17. data/lib/modern_treasury/models/counterparty_list_params.rb +9 -1
  18. data/lib/modern_treasury/models/document.rb +4 -6
  19. data/lib/modern_treasury/models/document_create_params.rb +0 -2
  20. data/lib/modern_treasury/models/document_list_params.rb +4 -6
  21. data/lib/modern_treasury/models/expected_payment.rb +9 -1
  22. data/lib/modern_treasury/models/expected_payment_create_params.rb +12 -230
  23. data/lib/modern_treasury/models/expected_payment_list_params.rb +8 -1
  24. data/lib/modern_treasury/models/expected_payment_update_params.rb +9 -1
  25. data/lib/modern_treasury/models/external_account.rb +15 -177
  26. data/lib/modern_treasury/models/external_account_create_params.rb +18 -210
  27. data/lib/modern_treasury/models/external_account_list_params.rb +9 -1
  28. data/lib/modern_treasury/models/external_account_update_params.rb +3 -52
  29. data/lib/modern_treasury/models/foreign_exchange_quote.rb +3 -73
  30. data/lib/modern_treasury/models/foreign_exchange_rate.rb +71 -0
  31. data/lib/modern_treasury/models/identification_create_request.rb +86 -0
  32. data/lib/modern_treasury/models/internal_account.rb +3 -95
  33. data/lib/modern_treasury/models/internal_account_update_account_capability_params.rb +34 -0
  34. data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +131 -0
  35. data/lib/modern_treasury/models/invoice.rb +3 -81
  36. data/lib/modern_treasury/models/invoice_create_params.rb +3 -83
  37. data/lib/modern_treasury/models/invoice_update_params.rb +3 -83
  38. data/lib/modern_treasury/models/ledger_account.rb +9 -141
  39. data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +3 -182
  40. data/lib/modern_treasury/models/ledger_account_category.rb +3 -175
  41. data/lib/modern_treasury/models/ledger_account_category_list_params.rb +9 -5
  42. data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +4 -2
  43. data/lib/modern_treasury/models/ledger_account_create_params.rb +2 -105
  44. data/lib/modern_treasury/models/ledger_account_create_request.rb +113 -0
  45. data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +6 -360
  46. data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +6 -360
  47. data/lib/modern_treasury/models/ledger_balance.rb +45 -0
  48. data/lib/modern_treasury/models/ledger_balances.rb +38 -0
  49. data/lib/modern_treasury/models/ledger_entry.rb +3 -183
  50. data/lib/modern_treasury/models/ledger_entry_create_request.rb +98 -0
  51. data/lib/modern_treasury/models/ledger_entry_list_params.rb +48 -8
  52. data/lib/modern_treasury/models/ledger_transaction.rb +14 -6
  53. data/lib/modern_treasury/models/ledger_transaction_create_params.rb +2 -212
  54. data/lib/modern_treasury/models/ledger_transaction_create_request.rb +123 -0
  55. data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +0 -1
  56. data/lib/modern_treasury/models/ledger_transaction_list_params.rb +44 -7
  57. data/lib/modern_treasury/models/ledger_transaction_update_params.rb +5 -104
  58. data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +15 -193
  59. data/lib/modern_treasury/models/legal_entity_address_create_request.rb +78 -0
  60. data/lib/modern_treasury/models/legal_entity_association.rb +1 -0
  61. data/lib/modern_treasury/models/legal_entity_association_create_params.rb +4 -448
  62. data/lib/modern_treasury/models/legal_entity_create_params.rb +10 -618
  63. data/lib/modern_treasury/models/legal_entity_update_params.rb +6 -165
  64. data/lib/modern_treasury/models/line_item.rb +3 -29
  65. data/lib/modern_treasury/models/payment_action_list_params.rb +1 -0
  66. data/lib/modern_treasury/models/payment_order.rb +13 -102
  67. data/lib/modern_treasury/models/payment_order_create_async_params.rb +24 -477
  68. data/lib/modern_treasury/models/payment_order_create_params.rb +24 -479
  69. data/lib/modern_treasury/models/payment_order_update_params.rb +21 -248
  70. data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +3 -232
  71. data/lib/modern_treasury/models/payment_reference.rb +7 -1
  72. data/lib/modern_treasury/models/return_list_params.rb +5 -6
  73. data/lib/modern_treasury/models/return_object.rb +7 -3
  74. data/lib/modern_treasury/models/routing_detail.rb +3 -93
  75. data/lib/modern_treasury/models/routing_number_lookup_request.rb +3 -55
  76. data/lib/modern_treasury/models/transaction.rb +5 -73
  77. data/lib/modern_treasury/models/transactions/transaction_line_item.rb +0 -1
  78. data/lib/modern_treasury/models/virtual_account_create_params.rb +3 -117
  79. data/lib/modern_treasury/models.rb +31 -6
  80. data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
  81. data/lib/modern_treasury/resources/counterparties.rb +20 -14
  82. data/lib/modern_treasury/resources/expected_payments.rb +10 -4
  83. data/lib/modern_treasury/resources/external_accounts.rb +23 -17
  84. data/lib/modern_treasury/resources/internal_accounts.rb +34 -0
  85. data/lib/modern_treasury/resources/invoices.rb +2 -2
  86. data/lib/modern_treasury/resources/ledger_account_categories.rb +1 -1
  87. data/lib/modern_treasury/resources/ledger_accounts.rb +1 -1
  88. data/lib/modern_treasury/resources/ledger_entries.rb +1 -1
  89. data/lib/modern_treasury/resources/ledger_transactions.rb +5 -5
  90. data/lib/modern_treasury/resources/legal_entities.rb +4 -4
  91. data/lib/modern_treasury/resources/legal_entity_associations.rb +1 -1
  92. data/lib/modern_treasury/resources/payment_orders/reversals.rb +1 -1
  93. data/lib/modern_treasury/resources/payment_orders.rb +5 -5
  94. data/lib/modern_treasury/resources/returns.rb +1 -1
  95. data/lib/modern_treasury/resources/virtual_accounts.rb +1 -1
  96. data/lib/modern_treasury/version.rb +1 -1
  97. data/lib/modern_treasury.rb +16 -6
  98. data/rbi/modern_treasury/client.rbi +0 -9
  99. data/rbi/modern_treasury/internal/transport/base_client.rbi +1 -1
  100. data/rbi/modern_treasury/models/accounting.rbi +48 -0
  101. data/rbi/modern_treasury/models/address.rbi +107 -0
  102. data/rbi/modern_treasury/models/address_request.rbi +76 -0
  103. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +701 -3140
  104. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +511 -0
  105. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +17 -1314
  106. data/rbi/modern_treasury/models/contact_detail.rbi +124 -0
  107. data/rbi/modern_treasury/models/contact_detail_create_request.rbi +99 -0
  108. data/rbi/modern_treasury/models/counterparty.rbi +24 -264
  109. data/rbi/modern_treasury/models/counterparty_create_params.rbi +47 -1718
  110. data/rbi/modern_treasury/models/counterparty_list_params.rbi +11 -0
  111. data/rbi/modern_treasury/models/document.rbi +6 -16
  112. data/rbi/modern_treasury/models/document_create_params.rbi +0 -10
  113. data/rbi/modern_treasury/models/document_list_params.rbi +6 -16
  114. data/rbi/modern_treasury/models/expected_payment.rbi +8 -0
  115. data/rbi/modern_treasury/models/expected_payment_create_params.rbi +12 -419
  116. data/rbi/modern_treasury/models/expected_payment_list_params.rbi +9 -0
  117. data/rbi/modern_treasury/models/expected_payment_update_params.rbi +8 -0
  118. data/rbi/modern_treasury/models/external_account.rbi +15 -244
  119. data/rbi/modern_treasury/models/external_account_create_params.rbi +20 -400
  120. data/rbi/modern_treasury/models/external_account_list_params.rbi +11 -0
  121. data/rbi/modern_treasury/models/external_account_update_params.rbi +4 -86
  122. data/rbi/modern_treasury/models/foreign_exchange_quote.rbi +4 -99
  123. data/rbi/modern_treasury/models/foreign_exchange_rate.rbi +96 -0
  124. data/rbi/modern_treasury/models/identification_create_request.rbi +212 -0
  125. data/rbi/modern_treasury/models/internal_account.rbi +4 -115
  126. data/rbi/modern_treasury/models/internal_account_update_account_capability_params.rbi +54 -0
  127. data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +304 -0
  128. data/rbi/modern_treasury/models/invoice.rbi +3 -128
  129. data/rbi/modern_treasury/models/invoice_create_params.rbi +4 -139
  130. data/rbi/modern_treasury/models/invoice_update_params.rbi +4 -139
  131. data/rbi/modern_treasury/models/ledger_account.rbi +12 -218
  132. data/rbi/modern_treasury/models/ledger_account_balance_monitor.rbi +4 -303
  133. data/rbi/modern_treasury/models/ledger_account_category.rbi +4 -301
  134. data/rbi/modern_treasury/models/ledger_account_category_list_params.rbi +14 -7
  135. data/rbi/modern_treasury/models/ledger_account_category_retrieve_params.rbi +6 -3
  136. data/rbi/modern_treasury/models/ledger_account_create_params.rbi +5 -173
  137. data/rbi/modern_treasury/models/ledger_account_create_request.rbi +194 -0
  138. data/rbi/modern_treasury/models/ledger_account_statement_create_response.rbi +8 -612
  139. data/rbi/modern_treasury/models/ledger_account_statement_retrieve_response.rbi +8 -612
  140. data/rbi/modern_treasury/models/ledger_balance.rbi +66 -0
  141. data/rbi/modern_treasury/models/ledger_balances.rbi +75 -0
  142. data/rbi/modern_treasury/models/ledger_entry.rbi +4 -309
  143. data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +137 -0
  144. data/rbi/modern_treasury/models/ledger_entry_list_params.rbi +99 -16
  145. data/rbi/modern_treasury/models/ledger_transaction.rbi +17 -11
  146. data/rbi/modern_treasury/models/ledger_transaction_create_params.rbi +5 -383
  147. data/rbi/modern_treasury/models/ledger_transaction_create_request.rbi +258 -0
  148. data/rbi/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +0 -5
  149. data/rbi/modern_treasury/models/ledger_transaction_list_params.rbi +93 -18
  150. data/rbi/modern_treasury/models/ledger_transaction_update_params.rbi +7 -158
  151. data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +18 -316
  152. data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +157 -0
  153. data/rbi/modern_treasury/models/legal_entity_association.rbi +5 -0
  154. data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +9 -917
  155. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +17 -1297
  156. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +8 -378
  157. data/rbi/modern_treasury/models/line_item.rbi +4 -52
  158. data/rbi/modern_treasury/models/payment_action_list_params.rbi +5 -0
  159. data/rbi/modern_treasury/models/payment_order.rbi +43 -159
  160. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +28 -882
  161. data/rbi/modern_treasury/models/payment_order_create_params.rbi +28 -887
  162. data/rbi/modern_treasury/models/payment_order_update_params.rbi +24 -460
  163. data/rbi/modern_treasury/models/payment_orders/reversal_create_params.rbi +4 -415
  164. data/rbi/modern_treasury/models/payment_reference.rbi +35 -5
  165. data/rbi/modern_treasury/models/return_list_params.rbi +6 -11
  166. data/rbi/modern_treasury/models/return_object.rbi +35 -12
  167. data/rbi/modern_treasury/models/routing_detail.rbi +4 -113
  168. data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +4 -87
  169. data/rbi/modern_treasury/models/transaction.rbi +14 -103
  170. data/rbi/modern_treasury/models/transactions/transaction_line_item.rbi +0 -5
  171. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +4 -203
  172. data/rbi/modern_treasury/models.rbi +36 -6
  173. data/rbi/modern_treasury/resources/bulk_requests.rbi +2 -2
  174. data/rbi/modern_treasury/resources/counterparties.rbi +20 -12
  175. data/rbi/modern_treasury/resources/documents.rbi +2 -2
  176. data/rbi/modern_treasury/resources/expected_payments.rbi +9 -1
  177. data/rbi/modern_treasury/resources/external_accounts.rbi +29 -22
  178. data/rbi/modern_treasury/resources/internal_accounts.rbi +24 -0
  179. data/rbi/modern_treasury/resources/invoices.rbi +2 -8
  180. data/rbi/modern_treasury/resources/ledger_account_categories.rbi +7 -3
  181. data/rbi/modern_treasury/resources/ledger_accounts.rbi +1 -1
  182. data/rbi/modern_treasury/resources/ledger_entries.rbi +9 -2
  183. data/rbi/modern_treasury/resources/ledger_transactions.rbi +13 -13
  184. data/rbi/modern_treasury/resources/legal_entities.rbi +4 -8
  185. data/rbi/modern_treasury/resources/legal_entity_associations.rbi +1 -2
  186. data/rbi/modern_treasury/resources/payment_orders/reversals.rbi +1 -1
  187. data/rbi/modern_treasury/resources/payment_orders.rbi +5 -8
  188. data/rbi/modern_treasury/resources/returns.rbi +2 -2
  189. data/rbi/modern_treasury/resources/virtual_accounts.rbi +1 -2
  190. data/sig/modern_treasury/client.rbs +0 -6
  191. data/sig/modern_treasury/internal/transport/base_client.rbs +1 -1
  192. data/sig/modern_treasury/models/accounting.rbs +15 -0
  193. data/sig/modern_treasury/models/address.rbs +70 -0
  194. data/sig/modern_treasury/models/address_request.rbs +45 -0
  195. data/sig/modern_treasury/models/bulk_request_create_params.rbs +88 -1089
  196. data/sig/modern_treasury/models/child_legal_entity_create.rbs +220 -0
  197. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +21 -548
  198. data/sig/modern_treasury/models/contact_detail.rbs +67 -0
  199. data/sig/modern_treasury/models/contact_detail_create_request.rbs +43 -0
  200. data/sig/modern_treasury/models/counterparty.rbs +20 -141
  201. data/sig/modern_treasury/models/counterparty_create_params.rbs +49 -737
  202. data/sig/modern_treasury/models/counterparty_list_params.rbs +7 -0
  203. data/sig/modern_treasury/models/document.rbs +0 -4
  204. data/sig/modern_treasury/models/document_create_params.rbs +0 -4
  205. data/sig/modern_treasury/models/document_list_params.rbs +0 -4
  206. data/sig/modern_treasury/models/expected_payment.rbs +5 -0
  207. data/sig/modern_treasury/models/expected_payment_create_params.rbs +11 -173
  208. data/sig/modern_treasury/models/expected_payment_list_params.rbs +7 -0
  209. data/sig/modern_treasury/models/expected_payment_update_params.rbs +5 -0
  210. data/sig/modern_treasury/models/external_account.rbs +13 -139
  211. data/sig/modern_treasury/models/external_account_create_params.rbs +23 -189
  212. data/sig/modern_treasury/models/external_account_list_params.rbs +7 -0
  213. data/sig/modern_treasury/models/external_account_update_params.rbs +6 -48
  214. data/sig/modern_treasury/models/foreign_exchange_quote.rbs +4 -51
  215. data/sig/modern_treasury/models/foreign_exchange_rate.rbs +50 -0
  216. data/sig/modern_treasury/models/identification_create_request.rbs +93 -0
  217. data/sig/modern_treasury/models/internal_account.rbs +4 -71
  218. data/sig/modern_treasury/models/internal_account_update_account_capability_params.rbs +28 -0
  219. data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +137 -0
  220. data/sig/modern_treasury/models/invoice.rbs +4 -68
  221. data/sig/modern_treasury/models/invoice_create_params.rbs +6 -70
  222. data/sig/modern_treasury/models/invoice_update_params.rbs +6 -70
  223. data/sig/modern_treasury/models/ledger_account.rbs +12 -123
  224. data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +4 -142
  225. data/sig/modern_treasury/models/ledger_account_category.rbs +4 -142
  226. data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +5 -5
  227. data/sig/modern_treasury/models/ledger_account_create_params.rbs +4 -84
  228. data/sig/modern_treasury/models/ledger_account_create_request.rbs +89 -0
  229. data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +8 -284
  230. data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +8 -284
  231. data/sig/modern_treasury/models/ledger_balance.rbs +40 -0
  232. data/sig/modern_treasury/models/ledger_balances.rbs +30 -0
  233. data/sig/modern_treasury/models/ledger_entry.rbs +4 -142
  234. data/sig/modern_treasury/models/ledger_entry_create_request.rbs +62 -0
  235. data/sig/modern_treasury/models/ledger_entry_list_params.rbs +21 -3
  236. data/sig/modern_treasury/models/ledger_transaction.rbs +5 -2
  237. data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +4 -165
  238. data/sig/modern_treasury/models/ledger_transaction_create_request.rbs +109 -0
  239. data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +0 -2
  240. data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +21 -5
  241. data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +6 -67
  242. data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +9 -144
  243. data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +68 -0
  244. data/sig/modern_treasury/models/legal_entity_association.rbs +3 -1
  245. data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +9 -380
  246. data/sig/modern_treasury/models/legal_entity_create_params.rbs +21 -548
  247. data/sig/modern_treasury/models/legal_entity_update_params.rbs +12 -168
  248. data/sig/modern_treasury/models/line_item.rbs +4 -16
  249. data/sig/modern_treasury/models/payment_action_list_params.rbs +2 -1
  250. data/sig/modern_treasury/models/payment_order.rbs +22 -69
  251. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +35 -380
  252. data/sig/modern_treasury/models/payment_order_create_params.rbs +35 -384
  253. data/sig/modern_treasury/models/payment_order_update_params.rbs +29 -207
  254. data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +6 -173
  255. data/sig/modern_treasury/models/payment_reference.rbs +14 -2
  256. data/sig/modern_treasury/models/return_list_params.rbs +1 -6
  257. data/sig/modern_treasury/models/return_object.rbs +15 -10
  258. data/sig/modern_treasury/models/routing_detail.rbs +4 -71
  259. data/sig/modern_treasury/models/routing_number_lookup_request.rbs +6 -48
  260. data/sig/modern_treasury/models/transaction.rbs +8 -53
  261. data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +0 -2
  262. data/sig/modern_treasury/models/virtual_account_create_params.rbs +6 -95
  263. data/sig/modern_treasury/models.rbs +30 -6
  264. data/sig/modern_treasury/resources/counterparties.rbs +2 -0
  265. data/sig/modern_treasury/resources/expected_payments.rbs +4 -1
  266. data/sig/modern_treasury/resources/external_accounts.rbs +6 -4
  267. data/sig/modern_treasury/resources/internal_accounts.rbs +7 -0
  268. data/sig/modern_treasury/resources/invoices.rbs +2 -2
  269. data/sig/modern_treasury/resources/ledger_account_categories.rbs +1 -1
  270. data/sig/modern_treasury/resources/ledger_accounts.rbs +1 -1
  271. data/sig/modern_treasury/resources/ledger_transactions.rbs +4 -4
  272. data/sig/modern_treasury/resources/legal_entities.rbs +4 -4
  273. data/sig/modern_treasury/resources/legal_entity_associations.rbs +1 -1
  274. data/sig/modern_treasury/resources/payment_orders/reversals.rbs +1 -1
  275. data/sig/modern_treasury/resources/payment_orders.rbs +5 -5
  276. data/sig/modern_treasury/resources/virtual_accounts.rbs +1 -1
  277. metadata +52 -22
  278. data/lib/modern_treasury/models/paper_item.rb +0 -178
  279. data/lib/modern_treasury/models/paper_item_list_params.rb +0 -56
  280. data/lib/modern_treasury/models/paper_item_retrieve_params.rb +0 -14
  281. data/lib/modern_treasury/resources/ledger_event_handlers.rb +0 -14
  282. data/lib/modern_treasury/resources/ledgerable_events.rb +0 -14
  283. data/lib/modern_treasury/resources/paper_items.rb +0 -68
  284. data/rbi/modern_treasury/models/paper_item.rbi +0 -204
  285. data/rbi/modern_treasury/models/paper_item_list_params.rbi +0 -88
  286. data/rbi/modern_treasury/models/paper_item_retrieve_params.rbi +0 -32
  287. data/rbi/modern_treasury/resources/ledger_event_handlers.rbi +0 -12
  288. data/rbi/modern_treasury/resources/ledgerable_events.rbi +0 -12
  289. data/rbi/modern_treasury/resources/paper_items.rbi +0 -51
  290. data/sig/modern_treasury/models/paper_item.rbs +0 -122
  291. data/sig/modern_treasury/models/paper_item_list_params.rbs +0 -54
  292. data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +0 -15
  293. data/sig/modern_treasury/resources/ledger_event_handlers.rbs +0 -7
  294. data/sig/modern_treasury/resources/ledgerable_events.rbs +0 -7
  295. data/sig/modern_treasury/resources/paper_items.rbs +0 -21
@@ -25,7 +25,7 @@ module ModernTreasury
25
25
  # A list of addresses for the entity.
26
26
  sig do
27
27
  returns(
28
- T.nilable(T::Array[ModernTreasury::LegalEntityCreateParams::Address])
28
+ T.nilable(T::Array[ModernTreasury::LegalEntityAddressCreateRequest])
29
29
  )
30
30
  end
31
31
  attr_reader :addresses
@@ -33,7 +33,7 @@ module ModernTreasury
33
33
  sig do
34
34
  params(
35
35
  addresses:
36
- T::Array[ModernTreasury::LegalEntityCreateParams::Address::OrHash]
36
+ T::Array[ModernTreasury::LegalEntityAddressCreateRequest::OrHash]
37
37
  ).void
38
38
  end
39
39
  attr_writer :addresses
@@ -92,9 +92,7 @@ module ModernTreasury
92
92
  # A list of identifications for the legal entity.
93
93
  sig do
94
94
  returns(
95
- T.nilable(
96
- T::Array[ModernTreasury::LegalEntityCreateParams::Identification]
97
- )
95
+ T.nilable(T::Array[ModernTreasury::IdentificationCreateRequest])
98
96
  )
99
97
  end
100
98
  attr_reader :identifications
@@ -102,9 +100,7 @@ module ModernTreasury
102
100
  sig do
103
101
  params(
104
102
  identifications:
105
- T::Array[
106
- ModernTreasury::LegalEntityCreateParams::Identification::OrHash
107
- ]
103
+ T::Array[ModernTreasury::IdentificationCreateRequest::OrHash]
108
104
  ).void
109
105
  end
110
106
  attr_writer :identifications
@@ -228,7 +224,7 @@ module ModernTreasury
228
224
  legal_entity_type:
229
225
  ModernTreasury::LegalEntityCreateParams::LegalEntityType::OrSymbol,
230
226
  addresses:
231
- T::Array[ModernTreasury::LegalEntityCreateParams::Address::OrHash],
227
+ T::Array[ModernTreasury::LegalEntityAddressCreateRequest::OrHash],
232
228
  bank_settings: T.nilable(ModernTreasury::BankSettings::OrHash),
233
229
  business_name: T.nilable(String),
234
230
  citizenship_country: T.nilable(String),
@@ -240,9 +236,7 @@ module ModernTreasury
240
236
  email: T.nilable(String),
241
237
  first_name: T.nilable(String),
242
238
  identifications:
243
- T::Array[
244
- ModernTreasury::LegalEntityCreateParams::Identification::OrHash
245
- ],
239
+ T::Array[ModernTreasury::IdentificationCreateRequest::OrHash],
246
240
  industry_classifications:
247
241
  T::Array[ModernTreasury::LegalEntityIndustryClassification::OrHash],
248
242
  last_name: T.nilable(String),
@@ -335,7 +329,7 @@ module ModernTreasury
335
329
  legal_entity_type:
336
330
  ModernTreasury::LegalEntityCreateParams::LegalEntityType::OrSymbol,
337
331
  addresses:
338
- T::Array[ModernTreasury::LegalEntityCreateParams::Address],
332
+ T::Array[ModernTreasury::LegalEntityAddressCreateRequest],
339
333
  bank_settings: T.nilable(ModernTreasury::BankSettings),
340
334
  business_name: T.nilable(String),
341
335
  citizenship_country: T.nilable(String),
@@ -347,7 +341,7 @@ module ModernTreasury
347
341
  email: T.nilable(String),
348
342
  first_name: T.nilable(String),
349
343
  identifications:
350
- T::Array[ModernTreasury::LegalEntityCreateParams::Identification],
344
+ T::Array[ModernTreasury::IdentificationCreateRequest],
351
345
  industry_classifications:
352
346
  T::Array[ModernTreasury::LegalEntityIndustryClassification],
353
347
  last_name: T.nilable(String),
@@ -418,370 +412,6 @@ module ModernTreasury
418
412
  end
419
413
  end
420
414
 
421
- class Address < ModernTreasury::Internal::Type::BaseModel
422
- OrHash =
423
- T.type_alias do
424
- T.any(
425
- ModernTreasury::LegalEntityCreateParams::Address,
426
- ModernTreasury::Internal::AnyHash
427
- )
428
- end
429
-
430
- # Country code conforms to [ISO 3166-1 alpha-2]
431
- sig { returns(T.nilable(String)) }
432
- attr_accessor :country
433
-
434
- sig { returns(T.nilable(String)) }
435
- attr_accessor :line1
436
-
437
- # Locality or City.
438
- sig { returns(T.nilable(String)) }
439
- attr_accessor :locality
440
-
441
- # The postal code of the address.
442
- sig { returns(T.nilable(String)) }
443
- attr_accessor :postal_code
444
-
445
- # Region or State.
446
- sig { returns(T.nilable(String)) }
447
- attr_accessor :region
448
-
449
- # The types of this address.
450
- sig do
451
- returns(
452
- T.nilable(
453
- T::Array[
454
- ModernTreasury::LegalEntityCreateParams::Address::AddressType::OrSymbol
455
- ]
456
- )
457
- )
458
- end
459
- attr_reader :address_types
460
-
461
- sig do
462
- params(
463
- address_types:
464
- T::Array[
465
- ModernTreasury::LegalEntityCreateParams::Address::AddressType::OrSymbol
466
- ]
467
- ).void
468
- end
469
- attr_writer :address_types
470
-
471
- sig { returns(T.nilable(String)) }
472
- attr_accessor :line2
473
-
474
- sig do
475
- params(
476
- country: T.nilable(String),
477
- line1: T.nilable(String),
478
- locality: T.nilable(String),
479
- postal_code: T.nilable(String),
480
- region: T.nilable(String),
481
- address_types:
482
- T::Array[
483
- ModernTreasury::LegalEntityCreateParams::Address::AddressType::OrSymbol
484
- ],
485
- line2: T.nilable(String)
486
- ).returns(T.attached_class)
487
- end
488
- def self.new(
489
- # Country code conforms to [ISO 3166-1 alpha-2]
490
- country:,
491
- line1:,
492
- # Locality or City.
493
- locality:,
494
- # The postal code of the address.
495
- postal_code:,
496
- # Region or State.
497
- region:,
498
- # The types of this address.
499
- address_types: nil,
500
- line2: nil
501
- )
502
- end
503
-
504
- sig do
505
- override.returns(
506
- {
507
- country: T.nilable(String),
508
- line1: T.nilable(String),
509
- locality: T.nilable(String),
510
- postal_code: T.nilable(String),
511
- region: T.nilable(String),
512
- address_types:
513
- T::Array[
514
- ModernTreasury::LegalEntityCreateParams::Address::AddressType::OrSymbol
515
- ],
516
- line2: T.nilable(String)
517
- }
518
- )
519
- end
520
- def to_hash
521
- end
522
-
523
- module AddressType
524
- extend ModernTreasury::Internal::Type::Enum
525
-
526
- TaggedSymbol =
527
- T.type_alias do
528
- T.all(
529
- Symbol,
530
- ModernTreasury::LegalEntityCreateParams::Address::AddressType
531
- )
532
- end
533
- OrSymbol = T.type_alias { T.any(Symbol, String) }
534
-
535
- BUSINESS =
536
- T.let(
537
- :business,
538
- ModernTreasury::LegalEntityCreateParams::Address::AddressType::TaggedSymbol
539
- )
540
- MAILING =
541
- T.let(
542
- :mailing,
543
- ModernTreasury::LegalEntityCreateParams::Address::AddressType::TaggedSymbol
544
- )
545
- OTHER =
546
- T.let(
547
- :other,
548
- ModernTreasury::LegalEntityCreateParams::Address::AddressType::TaggedSymbol
549
- )
550
- PO_BOX =
551
- T.let(
552
- :po_box,
553
- ModernTreasury::LegalEntityCreateParams::Address::AddressType::TaggedSymbol
554
- )
555
- RESIDENTIAL =
556
- T.let(
557
- :residential,
558
- ModernTreasury::LegalEntityCreateParams::Address::AddressType::TaggedSymbol
559
- )
560
-
561
- sig do
562
- override.returns(
563
- T::Array[
564
- ModernTreasury::LegalEntityCreateParams::Address::AddressType::TaggedSymbol
565
- ]
566
- )
567
- end
568
- def self.values
569
- end
570
- end
571
- end
572
-
573
- class Identification < ModernTreasury::Internal::Type::BaseModel
574
- OrHash =
575
- T.type_alias do
576
- T.any(
577
- ModernTreasury::LegalEntityCreateParams::Identification,
578
- ModernTreasury::Internal::AnyHash
579
- )
580
- end
581
-
582
- # The ID number of identification document.
583
- sig { returns(String) }
584
- attr_accessor :id_number
585
-
586
- # The type of ID number.
587
- sig do
588
- returns(
589
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::OrSymbol
590
- )
591
- end
592
- attr_accessor :id_type
593
-
594
- # The date when the Identification is no longer considered valid by the issuing
595
- # authority.
596
- sig { returns(T.nilable(Date)) }
597
- attr_accessor :expiration_date
598
-
599
- # The ISO 3166-1 alpha-2 country code of the country that issued the
600
- # identification
601
- sig { returns(T.nilable(String)) }
602
- attr_accessor :issuing_country
603
-
604
- # The region in which the identifcation was issued.
605
- sig { returns(T.nilable(String)) }
606
- attr_accessor :issuing_region
607
-
608
- sig do
609
- params(
610
- id_number: String,
611
- id_type:
612
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::OrSymbol,
613
- expiration_date: T.nilable(Date),
614
- issuing_country: T.nilable(String),
615
- issuing_region: T.nilable(String)
616
- ).returns(T.attached_class)
617
- end
618
- def self.new(
619
- # The ID number of identification document.
620
- id_number:,
621
- # The type of ID number.
622
- id_type:,
623
- # The date when the Identification is no longer considered valid by the issuing
624
- # authority.
625
- expiration_date: nil,
626
- # The ISO 3166-1 alpha-2 country code of the country that issued the
627
- # identification
628
- issuing_country: nil,
629
- # The region in which the identifcation was issued.
630
- issuing_region: nil
631
- )
632
- end
633
-
634
- sig do
635
- override.returns(
636
- {
637
- id_number: String,
638
- id_type:
639
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::OrSymbol,
640
- expiration_date: T.nilable(Date),
641
- issuing_country: T.nilable(String),
642
- issuing_region: T.nilable(String)
643
- }
644
- )
645
- end
646
- def to_hash
647
- end
648
-
649
- # The type of ID number.
650
- module IDType
651
- extend ModernTreasury::Internal::Type::Enum
652
-
653
- TaggedSymbol =
654
- T.type_alias do
655
- T.all(
656
- Symbol,
657
- ModernTreasury::LegalEntityCreateParams::Identification::IDType
658
- )
659
- end
660
- OrSymbol = T.type_alias { T.any(Symbol, String) }
661
-
662
- AR_CUIL =
663
- T.let(
664
- :ar_cuil,
665
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
666
- )
667
- AR_CUIT =
668
- T.let(
669
- :ar_cuit,
670
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
671
- )
672
- BR_CNPJ =
673
- T.let(
674
- :br_cnpj,
675
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
676
- )
677
- BR_CPF =
678
- T.let(
679
- :br_cpf,
680
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
681
- )
682
- CL_RUN =
683
- T.let(
684
- :cl_run,
685
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
686
- )
687
- CL_RUT =
688
- T.let(
689
- :cl_rut,
690
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
691
- )
692
- CO_CEDULAS =
693
- T.let(
694
- :co_cedulas,
695
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
696
- )
697
- CO_NIT =
698
- T.let(
699
- :co_nit,
700
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
701
- )
702
- DRIVERS_LICENSE =
703
- T.let(
704
- :drivers_license,
705
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
706
- )
707
- HN_ID =
708
- T.let(
709
- :hn_id,
710
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
711
- )
712
- HN_RTN =
713
- T.let(
714
- :hn_rtn,
715
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
716
- )
717
- IN_LEI =
718
- T.let(
719
- :in_lei,
720
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
721
- )
722
- KR_BRN =
723
- T.let(
724
- :kr_brn,
725
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
726
- )
727
- KR_CRN =
728
- T.let(
729
- :kr_crn,
730
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
731
- )
732
- KR_RRN =
733
- T.let(
734
- :kr_rrn,
735
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
736
- )
737
- PASSPORT =
738
- T.let(
739
- :passport,
740
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
741
- )
742
- SA_TIN =
743
- T.let(
744
- :sa_tin,
745
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
746
- )
747
- SA_VAT =
748
- T.let(
749
- :sa_vat,
750
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
751
- )
752
- US_EIN =
753
- T.let(
754
- :us_ein,
755
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
756
- )
757
- US_ITIN =
758
- T.let(
759
- :us_itin,
760
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
761
- )
762
- US_SSN =
763
- T.let(
764
- :us_ssn,
765
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
766
- )
767
- VN_TIN =
768
- T.let(
769
- :vn_tin,
770
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
771
- )
772
-
773
- sig do
774
- override.returns(
775
- T::Array[
776
- ModernTreasury::LegalEntityCreateParams::Identification::IDType::TaggedSymbol
777
- ]
778
- )
779
- end
780
- def self.values
781
- end
782
- end
783
- end
784
-
785
415
  class LegalEntityAssociation < ModernTreasury::Internal::Type::BaseModel
786
416
  OrHash =
787
417
  T.type_alias do
@@ -801,19 +431,12 @@ module ModernTreasury
801
431
  attr_accessor :relationship_types
802
432
 
803
433
  # The child legal entity.
804
- sig do
805
- returns(
806
- T.nilable(
807
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity
808
- )
809
- )
810
- end
434
+ sig { returns(T.nilable(ModernTreasury::ChildLegalEntityCreate)) }
811
435
  attr_reader :child_legal_entity
812
436
 
813
437
  sig do
814
438
  params(
815
- child_legal_entity:
816
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::OrHash
439
+ child_legal_entity: ModernTreasury::ChildLegalEntityCreate::OrHash
817
440
  ).void
818
441
  end
819
442
  attr_writer :child_legal_entity
@@ -839,8 +462,7 @@ module ModernTreasury
839
462
  T::Array[
840
463
  ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::RelationshipType::OrSymbol
841
464
  ],
842
- child_legal_entity:
843
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::OrHash,
465
+ child_legal_entity: ModernTreasury::ChildLegalEntityCreate::OrHash,
844
466
  child_legal_entity_id: String,
845
467
  ownership_percentage: T.nilable(Integer),
846
468
  title: T.nilable(String)
@@ -866,8 +488,7 @@ module ModernTreasury
866
488
  T::Array[
867
489
  ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::RelationshipType::OrSymbol
868
490
  ],
869
- child_legal_entity:
870
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity,
491
+ child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
871
492
  child_legal_entity_id: String,
872
493
  ownership_percentage: T.nilable(Integer),
873
494
  title: T.nilable(String)
@@ -890,6 +511,11 @@ module ModernTreasury
890
511
  end
891
512
  OrSymbol = T.type_alias { T.any(Symbol, String) }
892
513
 
514
+ AUTHORIZED_SIGNER =
515
+ T.let(
516
+ :authorized_signer,
517
+ ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::RelationshipType::TaggedSymbol
518
+ )
893
519
  BENEFICIAL_OWNER =
894
520
  T.let(
895
521
  :beneficial_owner,
@@ -911,912 +537,6 @@ module ModernTreasury
911
537
  def self.values
912
538
  end
913
539
  end
914
-
915
- class ChildLegalEntity < ModernTreasury::Internal::Type::BaseModel
916
- OrHash =
917
- T.type_alias do
918
- T.any(
919
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity,
920
- ModernTreasury::Internal::AnyHash
921
- )
922
- end
923
-
924
- # A list of addresses for the entity.
925
- sig do
926
- returns(
927
- T.nilable(
928
- T::Array[
929
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address
930
- ]
931
- )
932
- )
933
- end
934
- attr_reader :addresses
935
-
936
- sig do
937
- params(
938
- addresses:
939
- T::Array[
940
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::OrHash
941
- ]
942
- ).void
943
- end
944
- attr_writer :addresses
945
-
946
- sig { returns(T.nilable(ModernTreasury::BankSettings)) }
947
- attr_reader :bank_settings
948
-
949
- sig do
950
- params(
951
- bank_settings: T.nilable(ModernTreasury::BankSettings::OrHash)
952
- ).void
953
- end
954
- attr_writer :bank_settings
955
-
956
- # The business's legal business name.
957
- sig { returns(T.nilable(String)) }
958
- attr_accessor :business_name
959
-
960
- # The country of citizenship for an individual.
961
- sig { returns(T.nilable(String)) }
962
- attr_accessor :citizenship_country
963
-
964
- sig do
965
- returns(T.nilable(ModernTreasury::LegalEntityComplianceDetail))
966
- end
967
- attr_reader :compliance_details
968
-
969
- sig do
970
- params(
971
- compliance_details:
972
- T.nilable(ModernTreasury::LegalEntityComplianceDetail::OrHash)
973
- ).void
974
- end
975
- attr_writer :compliance_details
976
-
977
- # A business's formation date (YYYY-MM-DD).
978
- sig { returns(T.nilable(Date)) }
979
- attr_accessor :date_formed
980
-
981
- # An individual's date of birth (YYYY-MM-DD).
982
- sig { returns(T.nilable(Date)) }
983
- attr_accessor :date_of_birth
984
-
985
- sig { returns(T.nilable(T::Array[String])) }
986
- attr_reader :doing_business_as_names
987
-
988
- sig { params(doing_business_as_names: T::Array[String]).void }
989
- attr_writer :doing_business_as_names
990
-
991
- # The entity's primary email.
992
- sig { returns(T.nilable(String)) }
993
- attr_accessor :email
994
-
995
- # An individual's first name.
996
- sig { returns(T.nilable(String)) }
997
- attr_accessor :first_name
998
-
999
- # A list of identifications for the legal entity.
1000
- sig do
1001
- returns(
1002
- T.nilable(
1003
- T::Array[
1004
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification
1005
- ]
1006
- )
1007
- )
1008
- end
1009
- attr_reader :identifications
1010
-
1011
- sig do
1012
- params(
1013
- identifications:
1014
- T::Array[
1015
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::OrHash
1016
- ]
1017
- ).void
1018
- end
1019
- attr_writer :identifications
1020
-
1021
- # A list of industry classifications for the legal entity.
1022
- sig do
1023
- returns(
1024
- T.nilable(
1025
- T::Array[ModernTreasury::LegalEntityIndustryClassification]
1026
- )
1027
- )
1028
- end
1029
- attr_reader :industry_classifications
1030
-
1031
- sig do
1032
- params(
1033
- industry_classifications:
1034
- T::Array[
1035
- ModernTreasury::LegalEntityIndustryClassification::OrHash
1036
- ]
1037
- ).void
1038
- end
1039
- attr_writer :industry_classifications
1040
-
1041
- # An individual's last name.
1042
- sig { returns(T.nilable(String)) }
1043
- attr_accessor :last_name
1044
-
1045
- # The type of legal entity.
1046
- sig do
1047
- returns(
1048
- T.nilable(
1049
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::OrSymbol
1050
- )
1051
- )
1052
- end
1053
- attr_reader :legal_entity_type
1054
-
1055
- sig do
1056
- params(
1057
- legal_entity_type:
1058
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::OrSymbol
1059
- ).void
1060
- end
1061
- attr_writer :legal_entity_type
1062
-
1063
- # The business's legal structure.
1064
- sig do
1065
- returns(
1066
- T.nilable(
1067
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalStructure::OrSymbol
1068
- )
1069
- )
1070
- end
1071
- attr_accessor :legal_structure
1072
-
1073
- # Additional data represented as key-value pairs. Both the key and value must be
1074
- # strings.
1075
- sig { returns(T.nilable(T::Hash[Symbol, String])) }
1076
- attr_reader :metadata
1077
-
1078
- sig { params(metadata: T::Hash[Symbol, String]).void }
1079
- attr_writer :metadata
1080
-
1081
- # An individual's middle name.
1082
- sig { returns(T.nilable(String)) }
1083
- attr_accessor :middle_name
1084
-
1085
- sig do
1086
- returns(
1087
- T.nilable(
1088
- T::Array[
1089
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::PhoneNumber
1090
- ]
1091
- )
1092
- )
1093
- end
1094
- attr_reader :phone_numbers
1095
-
1096
- sig do
1097
- params(
1098
- phone_numbers:
1099
- T::Array[
1100
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::PhoneNumber::OrHash
1101
- ]
1102
- ).void
1103
- end
1104
- attr_writer :phone_numbers
1105
-
1106
- # Whether the individual is a politically exposed person.
1107
- sig { returns(T.nilable(T::Boolean)) }
1108
- attr_accessor :politically_exposed_person
1109
-
1110
- # An individual's preferred name.
1111
- sig { returns(T.nilable(String)) }
1112
- attr_accessor :preferred_name
1113
-
1114
- # An individual's prefix.
1115
- sig { returns(T.nilable(String)) }
1116
- attr_accessor :prefix
1117
-
1118
- # The risk rating of the legal entity. One of low, medium, high.
1119
- sig do
1120
- returns(
1121
- T.nilable(
1122
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::RiskRating::OrSymbol
1123
- )
1124
- )
1125
- end
1126
- attr_accessor :risk_rating
1127
-
1128
- # An individual's suffix.
1129
- sig { returns(T.nilable(String)) }
1130
- attr_accessor :suffix
1131
-
1132
- sig { returns(T.nilable(ModernTreasury::WealthAndEmploymentDetails)) }
1133
- attr_reader :wealth_and_employment_details
1134
-
1135
- sig do
1136
- params(
1137
- wealth_and_employment_details:
1138
- T.nilable(ModernTreasury::WealthAndEmploymentDetails::OrHash)
1139
- ).void
1140
- end
1141
- attr_writer :wealth_and_employment_details
1142
-
1143
- # The entity's primary website URL.
1144
- sig { returns(T.nilable(String)) }
1145
- attr_accessor :website
1146
-
1147
- # The child legal entity.
1148
- sig do
1149
- params(
1150
- addresses:
1151
- T::Array[
1152
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::OrHash
1153
- ],
1154
- bank_settings: T.nilable(ModernTreasury::BankSettings::OrHash),
1155
- business_name: T.nilable(String),
1156
- citizenship_country: T.nilable(String),
1157
- compliance_details:
1158
- T.nilable(ModernTreasury::LegalEntityComplianceDetail::OrHash),
1159
- date_formed: T.nilable(Date),
1160
- date_of_birth: T.nilable(Date),
1161
- doing_business_as_names: T::Array[String],
1162
- email: T.nilable(String),
1163
- first_name: T.nilable(String),
1164
- identifications:
1165
- T::Array[
1166
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::OrHash
1167
- ],
1168
- industry_classifications:
1169
- T::Array[
1170
- ModernTreasury::LegalEntityIndustryClassification::OrHash
1171
- ],
1172
- last_name: T.nilable(String),
1173
- legal_entity_type:
1174
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::OrSymbol,
1175
- legal_structure:
1176
- T.nilable(
1177
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalStructure::OrSymbol
1178
- ),
1179
- metadata: T::Hash[Symbol, String],
1180
- middle_name: T.nilable(String),
1181
- phone_numbers:
1182
- T::Array[
1183
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::PhoneNumber::OrHash
1184
- ],
1185
- politically_exposed_person: T.nilable(T::Boolean),
1186
- preferred_name: T.nilable(String),
1187
- prefix: T.nilable(String),
1188
- risk_rating:
1189
- T.nilable(
1190
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::RiskRating::OrSymbol
1191
- ),
1192
- suffix: T.nilable(String),
1193
- wealth_and_employment_details:
1194
- T.nilable(ModernTreasury::WealthAndEmploymentDetails::OrHash),
1195
- website: T.nilable(String)
1196
- ).returns(T.attached_class)
1197
- end
1198
- def self.new(
1199
- # A list of addresses for the entity.
1200
- addresses: nil,
1201
- bank_settings: nil,
1202
- # The business's legal business name.
1203
- business_name: nil,
1204
- # The country of citizenship for an individual.
1205
- citizenship_country: nil,
1206
- compliance_details: nil,
1207
- # A business's formation date (YYYY-MM-DD).
1208
- date_formed: nil,
1209
- # An individual's date of birth (YYYY-MM-DD).
1210
- date_of_birth: nil,
1211
- doing_business_as_names: nil,
1212
- # The entity's primary email.
1213
- email: nil,
1214
- # An individual's first name.
1215
- first_name: nil,
1216
- # A list of identifications for the legal entity.
1217
- identifications: nil,
1218
- # A list of industry classifications for the legal entity.
1219
- industry_classifications: nil,
1220
- # An individual's last name.
1221
- last_name: nil,
1222
- # The type of legal entity.
1223
- legal_entity_type: nil,
1224
- # The business's legal structure.
1225
- legal_structure: nil,
1226
- # Additional data represented as key-value pairs. Both the key and value must be
1227
- # strings.
1228
- metadata: nil,
1229
- # An individual's middle name.
1230
- middle_name: nil,
1231
- phone_numbers: nil,
1232
- # Whether the individual is a politically exposed person.
1233
- politically_exposed_person: nil,
1234
- # An individual's preferred name.
1235
- preferred_name: nil,
1236
- # An individual's prefix.
1237
- prefix: nil,
1238
- # The risk rating of the legal entity. One of low, medium, high.
1239
- risk_rating: nil,
1240
- # An individual's suffix.
1241
- suffix: nil,
1242
- wealth_and_employment_details: nil,
1243
- # The entity's primary website URL.
1244
- website: nil
1245
- )
1246
- end
1247
-
1248
- sig do
1249
- override.returns(
1250
- {
1251
- addresses:
1252
- T::Array[
1253
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address
1254
- ],
1255
- bank_settings: T.nilable(ModernTreasury::BankSettings),
1256
- business_name: T.nilable(String),
1257
- citizenship_country: T.nilable(String),
1258
- compliance_details:
1259
- T.nilable(ModernTreasury::LegalEntityComplianceDetail),
1260
- date_formed: T.nilable(Date),
1261
- date_of_birth: T.nilable(Date),
1262
- doing_business_as_names: T::Array[String],
1263
- email: T.nilable(String),
1264
- first_name: T.nilable(String),
1265
- identifications:
1266
- T::Array[
1267
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification
1268
- ],
1269
- industry_classifications:
1270
- T::Array[ModernTreasury::LegalEntityIndustryClassification],
1271
- last_name: T.nilable(String),
1272
- legal_entity_type:
1273
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::OrSymbol,
1274
- legal_structure:
1275
- T.nilable(
1276
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalStructure::OrSymbol
1277
- ),
1278
- metadata: T::Hash[Symbol, String],
1279
- middle_name: T.nilable(String),
1280
- phone_numbers:
1281
- T::Array[
1282
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::PhoneNumber
1283
- ],
1284
- politically_exposed_person: T.nilable(T::Boolean),
1285
- preferred_name: T.nilable(String),
1286
- prefix: T.nilable(String),
1287
- risk_rating:
1288
- T.nilable(
1289
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::RiskRating::OrSymbol
1290
- ),
1291
- suffix: T.nilable(String),
1292
- wealth_and_employment_details:
1293
- T.nilable(ModernTreasury::WealthAndEmploymentDetails),
1294
- website: T.nilable(String)
1295
- }
1296
- )
1297
- end
1298
- def to_hash
1299
- end
1300
-
1301
- class Address < ModernTreasury::Internal::Type::BaseModel
1302
- OrHash =
1303
- T.type_alias do
1304
- T.any(
1305
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address,
1306
- ModernTreasury::Internal::AnyHash
1307
- )
1308
- end
1309
-
1310
- # Country code conforms to [ISO 3166-1 alpha-2]
1311
- sig { returns(T.nilable(String)) }
1312
- attr_accessor :country
1313
-
1314
- sig { returns(T.nilable(String)) }
1315
- attr_accessor :line1
1316
-
1317
- # Locality or City.
1318
- sig { returns(T.nilable(String)) }
1319
- attr_accessor :locality
1320
-
1321
- # The postal code of the address.
1322
- sig { returns(T.nilable(String)) }
1323
- attr_accessor :postal_code
1324
-
1325
- # Region or State.
1326
- sig { returns(T.nilable(String)) }
1327
- attr_accessor :region
1328
-
1329
- # The types of this address.
1330
- sig do
1331
- returns(
1332
- T.nilable(
1333
- T::Array[
1334
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::OrSymbol
1335
- ]
1336
- )
1337
- )
1338
- end
1339
- attr_reader :address_types
1340
-
1341
- sig do
1342
- params(
1343
- address_types:
1344
- T::Array[
1345
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::OrSymbol
1346
- ]
1347
- ).void
1348
- end
1349
- attr_writer :address_types
1350
-
1351
- sig { returns(T.nilable(String)) }
1352
- attr_accessor :line2
1353
-
1354
- sig do
1355
- params(
1356
- country: T.nilable(String),
1357
- line1: T.nilable(String),
1358
- locality: T.nilable(String),
1359
- postal_code: T.nilable(String),
1360
- region: T.nilable(String),
1361
- address_types:
1362
- T::Array[
1363
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::OrSymbol
1364
- ],
1365
- line2: T.nilable(String)
1366
- ).returns(T.attached_class)
1367
- end
1368
- def self.new(
1369
- # Country code conforms to [ISO 3166-1 alpha-2]
1370
- country:,
1371
- line1:,
1372
- # Locality or City.
1373
- locality:,
1374
- # The postal code of the address.
1375
- postal_code:,
1376
- # Region or State.
1377
- region:,
1378
- # The types of this address.
1379
- address_types: nil,
1380
- line2: nil
1381
- )
1382
- end
1383
-
1384
- sig do
1385
- override.returns(
1386
- {
1387
- country: T.nilable(String),
1388
- line1: T.nilable(String),
1389
- locality: T.nilable(String),
1390
- postal_code: T.nilable(String),
1391
- region: T.nilable(String),
1392
- address_types:
1393
- T::Array[
1394
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::OrSymbol
1395
- ],
1396
- line2: T.nilable(String)
1397
- }
1398
- )
1399
- end
1400
- def to_hash
1401
- end
1402
-
1403
- module AddressType
1404
- extend ModernTreasury::Internal::Type::Enum
1405
-
1406
- TaggedSymbol =
1407
- T.type_alias do
1408
- T.all(
1409
- Symbol,
1410
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::AddressType
1411
- )
1412
- end
1413
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1414
-
1415
- BUSINESS =
1416
- T.let(
1417
- :business,
1418
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
1419
- )
1420
- MAILING =
1421
- T.let(
1422
- :mailing,
1423
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
1424
- )
1425
- OTHER =
1426
- T.let(
1427
- :other,
1428
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
1429
- )
1430
- PO_BOX =
1431
- T.let(
1432
- :po_box,
1433
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
1434
- )
1435
- RESIDENTIAL =
1436
- T.let(
1437
- :residential,
1438
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
1439
- )
1440
-
1441
- sig do
1442
- override.returns(
1443
- T::Array[
1444
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
1445
- ]
1446
- )
1447
- end
1448
- def self.values
1449
- end
1450
- end
1451
- end
1452
-
1453
- class Identification < ModernTreasury::Internal::Type::BaseModel
1454
- OrHash =
1455
- T.type_alias do
1456
- T.any(
1457
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification,
1458
- ModernTreasury::Internal::AnyHash
1459
- )
1460
- end
1461
-
1462
- # The ID number of identification document.
1463
- sig { returns(String) }
1464
- attr_accessor :id_number
1465
-
1466
- # The type of ID number.
1467
- sig do
1468
- returns(
1469
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::OrSymbol
1470
- )
1471
- end
1472
- attr_accessor :id_type
1473
-
1474
- # The date when the Identification is no longer considered valid by the issuing
1475
- # authority.
1476
- sig { returns(T.nilable(Date)) }
1477
- attr_accessor :expiration_date
1478
-
1479
- # The ISO 3166-1 alpha-2 country code of the country that issued the
1480
- # identification
1481
- sig { returns(T.nilable(String)) }
1482
- attr_accessor :issuing_country
1483
-
1484
- # The region in which the identifcation was issued.
1485
- sig { returns(T.nilable(String)) }
1486
- attr_accessor :issuing_region
1487
-
1488
- sig do
1489
- params(
1490
- id_number: String,
1491
- id_type:
1492
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::OrSymbol,
1493
- expiration_date: T.nilable(Date),
1494
- issuing_country: T.nilable(String),
1495
- issuing_region: T.nilable(String)
1496
- ).returns(T.attached_class)
1497
- end
1498
- def self.new(
1499
- # The ID number of identification document.
1500
- id_number:,
1501
- # The type of ID number.
1502
- id_type:,
1503
- # The date when the Identification is no longer considered valid by the issuing
1504
- # authority.
1505
- expiration_date: nil,
1506
- # The ISO 3166-1 alpha-2 country code of the country that issued the
1507
- # identification
1508
- issuing_country: nil,
1509
- # The region in which the identifcation was issued.
1510
- issuing_region: nil
1511
- )
1512
- end
1513
-
1514
- sig do
1515
- override.returns(
1516
- {
1517
- id_number: String,
1518
- id_type:
1519
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::OrSymbol,
1520
- expiration_date: T.nilable(Date),
1521
- issuing_country: T.nilable(String),
1522
- issuing_region: T.nilable(String)
1523
- }
1524
- )
1525
- end
1526
- def to_hash
1527
- end
1528
-
1529
- # The type of ID number.
1530
- module IDType
1531
- extend ModernTreasury::Internal::Type::Enum
1532
-
1533
- TaggedSymbol =
1534
- T.type_alias do
1535
- T.all(
1536
- Symbol,
1537
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType
1538
- )
1539
- end
1540
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1541
-
1542
- AR_CUIL =
1543
- T.let(
1544
- :ar_cuil,
1545
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1546
- )
1547
- AR_CUIT =
1548
- T.let(
1549
- :ar_cuit,
1550
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1551
- )
1552
- BR_CNPJ =
1553
- T.let(
1554
- :br_cnpj,
1555
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1556
- )
1557
- BR_CPF =
1558
- T.let(
1559
- :br_cpf,
1560
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1561
- )
1562
- CL_RUN =
1563
- T.let(
1564
- :cl_run,
1565
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1566
- )
1567
- CL_RUT =
1568
- T.let(
1569
- :cl_rut,
1570
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1571
- )
1572
- CO_CEDULAS =
1573
- T.let(
1574
- :co_cedulas,
1575
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1576
- )
1577
- CO_NIT =
1578
- T.let(
1579
- :co_nit,
1580
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1581
- )
1582
- DRIVERS_LICENSE =
1583
- T.let(
1584
- :drivers_license,
1585
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1586
- )
1587
- HN_ID =
1588
- T.let(
1589
- :hn_id,
1590
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1591
- )
1592
- HN_RTN =
1593
- T.let(
1594
- :hn_rtn,
1595
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1596
- )
1597
- IN_LEI =
1598
- T.let(
1599
- :in_lei,
1600
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1601
- )
1602
- KR_BRN =
1603
- T.let(
1604
- :kr_brn,
1605
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1606
- )
1607
- KR_CRN =
1608
- T.let(
1609
- :kr_crn,
1610
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1611
- )
1612
- KR_RRN =
1613
- T.let(
1614
- :kr_rrn,
1615
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1616
- )
1617
- PASSPORT =
1618
- T.let(
1619
- :passport,
1620
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1621
- )
1622
- SA_TIN =
1623
- T.let(
1624
- :sa_tin,
1625
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1626
- )
1627
- SA_VAT =
1628
- T.let(
1629
- :sa_vat,
1630
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1631
- )
1632
- US_EIN =
1633
- T.let(
1634
- :us_ein,
1635
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1636
- )
1637
- US_ITIN =
1638
- T.let(
1639
- :us_itin,
1640
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1641
- )
1642
- US_SSN =
1643
- T.let(
1644
- :us_ssn,
1645
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1646
- )
1647
- VN_TIN =
1648
- T.let(
1649
- :vn_tin,
1650
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1651
- )
1652
-
1653
- sig do
1654
- override.returns(
1655
- T::Array[
1656
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1657
- ]
1658
- )
1659
- end
1660
- def self.values
1661
- end
1662
- end
1663
- end
1664
-
1665
- # The type of legal entity.
1666
- module LegalEntityType
1667
- extend ModernTreasury::Internal::Type::Enum
1668
-
1669
- TaggedSymbol =
1670
- T.type_alias do
1671
- T.all(
1672
- Symbol,
1673
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalEntityType
1674
- )
1675
- end
1676
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1677
-
1678
- BUSINESS =
1679
- T.let(
1680
- :business,
1681
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::TaggedSymbol
1682
- )
1683
- INDIVIDUAL =
1684
- T.let(
1685
- :individual,
1686
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::TaggedSymbol
1687
- )
1688
-
1689
- sig do
1690
- override.returns(
1691
- T::Array[
1692
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::TaggedSymbol
1693
- ]
1694
- )
1695
- end
1696
- def self.values
1697
- end
1698
- end
1699
-
1700
- # The business's legal structure.
1701
- module LegalStructure
1702
- extend ModernTreasury::Internal::Type::Enum
1703
-
1704
- TaggedSymbol =
1705
- T.type_alias do
1706
- T.all(
1707
- Symbol,
1708
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalStructure
1709
- )
1710
- end
1711
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1712
-
1713
- CORPORATION =
1714
- T.let(
1715
- :corporation,
1716
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
1717
- )
1718
- LLC =
1719
- T.let(
1720
- :llc,
1721
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
1722
- )
1723
- NON_PROFIT =
1724
- T.let(
1725
- :non_profit,
1726
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
1727
- )
1728
- PARTNERSHIP =
1729
- T.let(
1730
- :partnership,
1731
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
1732
- )
1733
- SOLE_PROPRIETORSHIP =
1734
- T.let(
1735
- :sole_proprietorship,
1736
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
1737
- )
1738
- TRUST =
1739
- T.let(
1740
- :trust,
1741
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
1742
- )
1743
-
1744
- sig do
1745
- override.returns(
1746
- T::Array[
1747
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
1748
- ]
1749
- )
1750
- end
1751
- def self.values
1752
- end
1753
- end
1754
-
1755
- class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
1756
- OrHash =
1757
- T.type_alias do
1758
- T.any(
1759
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::PhoneNumber,
1760
- ModernTreasury::Internal::AnyHash
1761
- )
1762
- end
1763
-
1764
- sig { returns(T.nilable(String)) }
1765
- attr_reader :phone_number
1766
-
1767
- sig { params(phone_number: String).void }
1768
- attr_writer :phone_number
1769
-
1770
- # A list of phone numbers in E.164 format.
1771
- sig { params(phone_number: String).returns(T.attached_class) }
1772
- def self.new(phone_number: nil)
1773
- end
1774
-
1775
- sig { override.returns({ phone_number: String }) }
1776
- def to_hash
1777
- end
1778
- end
1779
-
1780
- # The risk rating of the legal entity. One of low, medium, high.
1781
- module RiskRating
1782
- extend ModernTreasury::Internal::Type::Enum
1783
-
1784
- TaggedSymbol =
1785
- T.type_alias do
1786
- T.all(
1787
- Symbol,
1788
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::RiskRating
1789
- )
1790
- end
1791
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1792
-
1793
- LOW =
1794
- T.let(
1795
- :low,
1796
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::RiskRating::TaggedSymbol
1797
- )
1798
- MEDIUM =
1799
- T.let(
1800
- :medium,
1801
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::RiskRating::TaggedSymbol
1802
- )
1803
- HIGH =
1804
- T.let(
1805
- :high,
1806
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::RiskRating::TaggedSymbol
1807
- )
1808
-
1809
- sig do
1810
- override.returns(
1811
- T::Array[
1812
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::RiskRating::TaggedSymbol
1813
- ]
1814
- )
1815
- end
1816
- def self.values
1817
- end
1818
- end
1819
- end
1820
540
  end
1821
541
 
1822
542
  # The business's legal structure.