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
@@ -89,11 +89,7 @@ module ModernTreasury
89
89
  # A list of addresses for the entity.
90
90
  sig do
91
91
  returns(
92
- T.nilable(
93
- T::Array[
94
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Address
95
- ]
96
- )
92
+ T.nilable(T::Array[ModernTreasury::LegalEntityAddressCreateRequest])
97
93
  )
98
94
  end
99
95
  attr_reader :addresses
@@ -101,9 +97,7 @@ module ModernTreasury
101
97
  sig do
102
98
  params(
103
99
  addresses:
104
- T::Array[
105
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Address::OrHash
106
- ]
100
+ T::Array[ModernTreasury::LegalEntityAddressCreateRequest::OrHash]
107
101
  ).void
108
102
  end
109
103
  attr_writer :addresses
@@ -162,11 +156,7 @@ module ModernTreasury
162
156
  # A list of identifications for the legal entity.
163
157
  sig do
164
158
  returns(
165
- T.nilable(
166
- T::Array[
167
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification
168
- ]
169
- )
159
+ T.nilable(T::Array[ModernTreasury::IdentificationCreateRequest])
170
160
  )
171
161
  end
172
162
  attr_reader :identifications
@@ -174,9 +164,7 @@ module ModernTreasury
174
164
  sig do
175
165
  params(
176
166
  identifications:
177
- T::Array[
178
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::OrHash
179
- ]
167
+ T::Array[ModernTreasury::IdentificationCreateRequest::OrHash]
180
168
  ).void
181
169
  end
182
170
  attr_writer :identifications
@@ -323,9 +311,7 @@ module ModernTreasury
323
311
  sig do
324
312
  params(
325
313
  addresses:
326
- T::Array[
327
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Address::OrHash
328
- ],
314
+ T::Array[ModernTreasury::LegalEntityAddressCreateRequest::OrHash],
329
315
  bank_settings: T.nilable(ModernTreasury::BankSettings::OrHash),
330
316
  business_name: T.nilable(String),
331
317
  citizenship_country: T.nilable(String),
@@ -337,9 +323,7 @@ module ModernTreasury
337
323
  email: T.nilable(String),
338
324
  first_name: T.nilable(String),
339
325
  identifications:
340
- T::Array[
341
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::OrHash
342
- ],
326
+ T::Array[ModernTreasury::IdentificationCreateRequest::OrHash],
343
327
  industry_classifications:
344
328
  T::Array[
345
329
  ModernTreasury::LegalEntityIndustryClassification::OrHash
@@ -432,9 +416,7 @@ module ModernTreasury
432
416
  override.returns(
433
417
  {
434
418
  addresses:
435
- T::Array[
436
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Address
437
- ],
419
+ T::Array[ModernTreasury::LegalEntityAddressCreateRequest],
438
420
  bank_settings: T.nilable(ModernTreasury::BankSettings),
439
421
  business_name: T.nilable(String),
440
422
  citizenship_country: T.nilable(String),
@@ -446,9 +428,7 @@ module ModernTreasury
446
428
  email: T.nilable(String),
447
429
  first_name: T.nilable(String),
448
430
  identifications:
449
- T::Array[
450
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification
451
- ],
431
+ T::Array[ModernTreasury::IdentificationCreateRequest],
452
432
  industry_classifications:
453
433
  T::Array[ModernTreasury::LegalEntityIndustryClassification],
454
434
  last_name: T.nilable(String),
@@ -487,370 +467,6 @@ module ModernTreasury
487
467
  def to_hash
488
468
  end
489
469
 
490
- class Address < ModernTreasury::Internal::Type::BaseModel
491
- OrHash =
492
- T.type_alias do
493
- T.any(
494
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Address,
495
- ModernTreasury::Internal::AnyHash
496
- )
497
- end
498
-
499
- # Country code conforms to [ISO 3166-1 alpha-2]
500
- sig { returns(T.nilable(String)) }
501
- attr_accessor :country
502
-
503
- sig { returns(T.nilable(String)) }
504
- attr_accessor :line1
505
-
506
- # Locality or City.
507
- sig { returns(T.nilable(String)) }
508
- attr_accessor :locality
509
-
510
- # The postal code of the address.
511
- sig { returns(T.nilable(String)) }
512
- attr_accessor :postal_code
513
-
514
- # Region or State.
515
- sig { returns(T.nilable(String)) }
516
- attr_accessor :region
517
-
518
- # The types of this address.
519
- sig do
520
- returns(
521
- T.nilable(
522
- T::Array[
523
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Address::AddressType::OrSymbol
524
- ]
525
- )
526
- )
527
- end
528
- attr_reader :address_types
529
-
530
- sig do
531
- params(
532
- address_types:
533
- T::Array[
534
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Address::AddressType::OrSymbol
535
- ]
536
- ).void
537
- end
538
- attr_writer :address_types
539
-
540
- sig { returns(T.nilable(String)) }
541
- attr_accessor :line2
542
-
543
- sig do
544
- params(
545
- country: T.nilable(String),
546
- line1: T.nilable(String),
547
- locality: T.nilable(String),
548
- postal_code: T.nilable(String),
549
- region: T.nilable(String),
550
- address_types:
551
- T::Array[
552
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Address::AddressType::OrSymbol
553
- ],
554
- line2: T.nilable(String)
555
- ).returns(T.attached_class)
556
- end
557
- def self.new(
558
- # Country code conforms to [ISO 3166-1 alpha-2]
559
- country:,
560
- line1:,
561
- # Locality or City.
562
- locality:,
563
- # The postal code of the address.
564
- postal_code:,
565
- # Region or State.
566
- region:,
567
- # The types of this address.
568
- address_types: nil,
569
- line2: nil
570
- )
571
- end
572
-
573
- sig do
574
- override.returns(
575
- {
576
- country: T.nilable(String),
577
- line1: T.nilable(String),
578
- locality: T.nilable(String),
579
- postal_code: T.nilable(String),
580
- region: T.nilable(String),
581
- address_types:
582
- T::Array[
583
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Address::AddressType::OrSymbol
584
- ],
585
- line2: T.nilable(String)
586
- }
587
- )
588
- end
589
- def to_hash
590
- end
591
-
592
- module AddressType
593
- extend ModernTreasury::Internal::Type::Enum
594
-
595
- TaggedSymbol =
596
- T.type_alias do
597
- T.all(
598
- Symbol,
599
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Address::AddressType
600
- )
601
- end
602
- OrSymbol = T.type_alias { T.any(Symbol, String) }
603
-
604
- BUSINESS =
605
- T.let(
606
- :business,
607
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Address::AddressType::TaggedSymbol
608
- )
609
- MAILING =
610
- T.let(
611
- :mailing,
612
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Address::AddressType::TaggedSymbol
613
- )
614
- OTHER =
615
- T.let(
616
- :other,
617
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Address::AddressType::TaggedSymbol
618
- )
619
- PO_BOX =
620
- T.let(
621
- :po_box,
622
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Address::AddressType::TaggedSymbol
623
- )
624
- RESIDENTIAL =
625
- T.let(
626
- :residential,
627
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Address::AddressType::TaggedSymbol
628
- )
629
-
630
- sig do
631
- override.returns(
632
- T::Array[
633
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Address::AddressType::TaggedSymbol
634
- ]
635
- )
636
- end
637
- def self.values
638
- end
639
- end
640
- end
641
-
642
- class Identification < ModernTreasury::Internal::Type::BaseModel
643
- OrHash =
644
- T.type_alias do
645
- T.any(
646
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification,
647
- ModernTreasury::Internal::AnyHash
648
- )
649
- end
650
-
651
- # The ID number of identification document.
652
- sig { returns(String) }
653
- attr_accessor :id_number
654
-
655
- # The type of ID number.
656
- sig do
657
- returns(
658
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::OrSymbol
659
- )
660
- end
661
- attr_accessor :id_type
662
-
663
- # The date when the Identification is no longer considered valid by the issuing
664
- # authority.
665
- sig { returns(T.nilable(Date)) }
666
- attr_accessor :expiration_date
667
-
668
- # The ISO 3166-1 alpha-2 country code of the country that issued the
669
- # identification
670
- sig { returns(T.nilable(String)) }
671
- attr_accessor :issuing_country
672
-
673
- # The region in which the identifcation was issued.
674
- sig { returns(T.nilable(String)) }
675
- attr_accessor :issuing_region
676
-
677
- sig do
678
- params(
679
- id_number: String,
680
- id_type:
681
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::OrSymbol,
682
- expiration_date: T.nilable(Date),
683
- issuing_country: T.nilable(String),
684
- issuing_region: T.nilable(String)
685
- ).returns(T.attached_class)
686
- end
687
- def self.new(
688
- # The ID number of identification document.
689
- id_number:,
690
- # The type of ID number.
691
- id_type:,
692
- # The date when the Identification is no longer considered valid by the issuing
693
- # authority.
694
- expiration_date: nil,
695
- # The ISO 3166-1 alpha-2 country code of the country that issued the
696
- # identification
697
- issuing_country: nil,
698
- # The region in which the identifcation was issued.
699
- issuing_region: nil
700
- )
701
- end
702
-
703
- sig do
704
- override.returns(
705
- {
706
- id_number: String,
707
- id_type:
708
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::OrSymbol,
709
- expiration_date: T.nilable(Date),
710
- issuing_country: T.nilable(String),
711
- issuing_region: T.nilable(String)
712
- }
713
- )
714
- end
715
- def to_hash
716
- end
717
-
718
- # The type of ID number.
719
- module IDType
720
- extend ModernTreasury::Internal::Type::Enum
721
-
722
- TaggedSymbol =
723
- T.type_alias do
724
- T.all(
725
- Symbol,
726
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType
727
- )
728
- end
729
- OrSymbol = T.type_alias { T.any(Symbol, String) }
730
-
731
- AR_CUIL =
732
- T.let(
733
- :ar_cuil,
734
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
735
- )
736
- AR_CUIT =
737
- T.let(
738
- :ar_cuit,
739
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
740
- )
741
- BR_CNPJ =
742
- T.let(
743
- :br_cnpj,
744
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
745
- )
746
- BR_CPF =
747
- T.let(
748
- :br_cpf,
749
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
750
- )
751
- CL_RUN =
752
- T.let(
753
- :cl_run,
754
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
755
- )
756
- CL_RUT =
757
- T.let(
758
- :cl_rut,
759
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
760
- )
761
- CO_CEDULAS =
762
- T.let(
763
- :co_cedulas,
764
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
765
- )
766
- CO_NIT =
767
- T.let(
768
- :co_nit,
769
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
770
- )
771
- DRIVERS_LICENSE =
772
- T.let(
773
- :drivers_license,
774
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
775
- )
776
- HN_ID =
777
- T.let(
778
- :hn_id,
779
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
780
- )
781
- HN_RTN =
782
- T.let(
783
- :hn_rtn,
784
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
785
- )
786
- IN_LEI =
787
- T.let(
788
- :in_lei,
789
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
790
- )
791
- KR_BRN =
792
- T.let(
793
- :kr_brn,
794
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
795
- )
796
- KR_CRN =
797
- T.let(
798
- :kr_crn,
799
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
800
- )
801
- KR_RRN =
802
- T.let(
803
- :kr_rrn,
804
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
805
- )
806
- PASSPORT =
807
- T.let(
808
- :passport,
809
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
810
- )
811
- SA_TIN =
812
- T.let(
813
- :sa_tin,
814
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
815
- )
816
- SA_VAT =
817
- T.let(
818
- :sa_vat,
819
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
820
- )
821
- US_EIN =
822
- T.let(
823
- :us_ein,
824
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
825
- )
826
- US_ITIN =
827
- T.let(
828
- :us_itin,
829
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
830
- )
831
- US_SSN =
832
- T.let(
833
- :us_ssn,
834
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
835
- )
836
- VN_TIN =
837
- T.let(
838
- :vn_tin,
839
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
840
- )
841
-
842
- sig do
843
- override.returns(
844
- T::Array[
845
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
846
- ]
847
- )
848
- end
849
- def self.values
850
- end
851
- end
852
- end
853
-
854
470
  class LegalEntityAssociation < ModernTreasury::Internal::Type::BaseModel
855
471
  OrHash =
856
472
  T.type_alias do
@@ -870,19 +486,12 @@ module ModernTreasury
870
486
  attr_accessor :relationship_types
871
487
 
872
488
  # The child legal entity.
873
- sig do
874
- returns(
875
- T.nilable(
876
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity
877
- )
878
- )
879
- end
489
+ sig { returns(T.nilable(ModernTreasury::ChildLegalEntityCreate)) }
880
490
  attr_reader :child_legal_entity
881
491
 
882
492
  sig do
883
493
  params(
884
- child_legal_entity:
885
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::OrHash
494
+ child_legal_entity: ModernTreasury::ChildLegalEntityCreate::OrHash
886
495
  ).void
887
496
  end
888
497
  attr_writer :child_legal_entity
@@ -909,7 +518,7 @@ module ModernTreasury
909
518
  ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType::OrSymbol
910
519
  ],
911
520
  child_legal_entity:
912
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::OrHash,
521
+ ModernTreasury::ChildLegalEntityCreate::OrHash,
913
522
  child_legal_entity_id: String,
914
523
  ownership_percentage: T.nilable(Integer),
915
524
  title: T.nilable(String)
@@ -935,8 +544,7 @@ module ModernTreasury
935
544
  T::Array[
936
545
  ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType::OrSymbol
937
546
  ],
938
- child_legal_entity:
939
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity,
547
+ child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
940
548
  child_legal_entity_id: String,
941
549
  ownership_percentage: T.nilable(Integer),
942
550
  title: T.nilable(String)
@@ -959,6 +567,11 @@ module ModernTreasury
959
567
  end
960
568
  OrSymbol = T.type_alias { T.any(Symbol, String) }
961
569
 
570
+ AUTHORIZED_SIGNER =
571
+ T.let(
572
+ :authorized_signer,
573
+ ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType::TaggedSymbol
574
+ )
962
575
  BENEFICIAL_OWNER =
963
576
  T.let(
964
577
  :beneficial_owner,
@@ -980,916 +593,6 @@ module ModernTreasury
980
593
  def self.values
981
594
  end
982
595
  end
983
-
984
- class ChildLegalEntity < ModernTreasury::Internal::Type::BaseModel
985
- OrHash =
986
- T.type_alias do
987
- T.any(
988
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity,
989
- ModernTreasury::Internal::AnyHash
990
- )
991
- end
992
-
993
- # A list of addresses for the entity.
994
- sig do
995
- returns(
996
- T.nilable(
997
- T::Array[
998
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address
999
- ]
1000
- )
1001
- )
1002
- end
1003
- attr_reader :addresses
1004
-
1005
- sig do
1006
- params(
1007
- addresses:
1008
- T::Array[
1009
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::OrHash
1010
- ]
1011
- ).void
1012
- end
1013
- attr_writer :addresses
1014
-
1015
- sig { returns(T.nilable(ModernTreasury::BankSettings)) }
1016
- attr_reader :bank_settings
1017
-
1018
- sig do
1019
- params(
1020
- bank_settings: T.nilable(ModernTreasury::BankSettings::OrHash)
1021
- ).void
1022
- end
1023
- attr_writer :bank_settings
1024
-
1025
- # The business's legal business name.
1026
- sig { returns(T.nilable(String)) }
1027
- attr_accessor :business_name
1028
-
1029
- # The country of citizenship for an individual.
1030
- sig { returns(T.nilable(String)) }
1031
- attr_accessor :citizenship_country
1032
-
1033
- sig do
1034
- returns(T.nilable(ModernTreasury::LegalEntityComplianceDetail))
1035
- end
1036
- attr_reader :compliance_details
1037
-
1038
- sig do
1039
- params(
1040
- compliance_details:
1041
- T.nilable(ModernTreasury::LegalEntityComplianceDetail::OrHash)
1042
- ).void
1043
- end
1044
- attr_writer :compliance_details
1045
-
1046
- # A business's formation date (YYYY-MM-DD).
1047
- sig { returns(T.nilable(Date)) }
1048
- attr_accessor :date_formed
1049
-
1050
- # An individual's date of birth (YYYY-MM-DD).
1051
- sig { returns(T.nilable(Date)) }
1052
- attr_accessor :date_of_birth
1053
-
1054
- sig { returns(T.nilable(T::Array[String])) }
1055
- attr_reader :doing_business_as_names
1056
-
1057
- sig { params(doing_business_as_names: T::Array[String]).void }
1058
- attr_writer :doing_business_as_names
1059
-
1060
- # The entity's primary email.
1061
- sig { returns(T.nilable(String)) }
1062
- attr_accessor :email
1063
-
1064
- # An individual's first name.
1065
- sig { returns(T.nilable(String)) }
1066
- attr_accessor :first_name
1067
-
1068
- # A list of identifications for the legal entity.
1069
- sig do
1070
- returns(
1071
- T.nilable(
1072
- T::Array[
1073
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification
1074
- ]
1075
- )
1076
- )
1077
- end
1078
- attr_reader :identifications
1079
-
1080
- sig do
1081
- params(
1082
- identifications:
1083
- T::Array[
1084
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::OrHash
1085
- ]
1086
- ).void
1087
- end
1088
- attr_writer :identifications
1089
-
1090
- # A list of industry classifications for the legal entity.
1091
- sig do
1092
- returns(
1093
- T.nilable(
1094
- T::Array[ModernTreasury::LegalEntityIndustryClassification]
1095
- )
1096
- )
1097
- end
1098
- attr_reader :industry_classifications
1099
-
1100
- sig do
1101
- params(
1102
- industry_classifications:
1103
- T::Array[
1104
- ModernTreasury::LegalEntityIndustryClassification::OrHash
1105
- ]
1106
- ).void
1107
- end
1108
- attr_writer :industry_classifications
1109
-
1110
- # An individual's last name.
1111
- sig { returns(T.nilable(String)) }
1112
- attr_accessor :last_name
1113
-
1114
- # The type of legal entity.
1115
- sig do
1116
- returns(
1117
- T.nilable(
1118
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::OrSymbol
1119
- )
1120
- )
1121
- end
1122
- attr_reader :legal_entity_type
1123
-
1124
- sig do
1125
- params(
1126
- legal_entity_type:
1127
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::OrSymbol
1128
- ).void
1129
- end
1130
- attr_writer :legal_entity_type
1131
-
1132
- # The business's legal structure.
1133
- sig do
1134
- returns(
1135
- T.nilable(
1136
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::OrSymbol
1137
- )
1138
- )
1139
- end
1140
- attr_accessor :legal_structure
1141
-
1142
- # Additional data represented as key-value pairs. Both the key and value must be
1143
- # strings.
1144
- sig { returns(T.nilable(T::Hash[Symbol, String])) }
1145
- attr_reader :metadata
1146
-
1147
- sig { params(metadata: T::Hash[Symbol, String]).void }
1148
- attr_writer :metadata
1149
-
1150
- # An individual's middle name.
1151
- sig { returns(T.nilable(String)) }
1152
- attr_accessor :middle_name
1153
-
1154
- sig do
1155
- returns(
1156
- T.nilable(
1157
- T::Array[
1158
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber
1159
- ]
1160
- )
1161
- )
1162
- end
1163
- attr_reader :phone_numbers
1164
-
1165
- sig do
1166
- params(
1167
- phone_numbers:
1168
- T::Array[
1169
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber::OrHash
1170
- ]
1171
- ).void
1172
- end
1173
- attr_writer :phone_numbers
1174
-
1175
- # Whether the individual is a politically exposed person.
1176
- sig { returns(T.nilable(T::Boolean)) }
1177
- attr_accessor :politically_exposed_person
1178
-
1179
- # An individual's preferred name.
1180
- sig { returns(T.nilable(String)) }
1181
- attr_accessor :preferred_name
1182
-
1183
- # An individual's prefix.
1184
- sig { returns(T.nilable(String)) }
1185
- attr_accessor :prefix
1186
-
1187
- # The risk rating of the legal entity. One of low, medium, high.
1188
- sig do
1189
- returns(
1190
- T.nilable(
1191
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating::OrSymbol
1192
- )
1193
- )
1194
- end
1195
- attr_accessor :risk_rating
1196
-
1197
- # An individual's suffix.
1198
- sig { returns(T.nilable(String)) }
1199
- attr_accessor :suffix
1200
-
1201
- sig do
1202
- returns(T.nilable(ModernTreasury::WealthAndEmploymentDetails))
1203
- end
1204
- attr_reader :wealth_and_employment_details
1205
-
1206
- sig do
1207
- params(
1208
- wealth_and_employment_details:
1209
- T.nilable(ModernTreasury::WealthAndEmploymentDetails::OrHash)
1210
- ).void
1211
- end
1212
- attr_writer :wealth_and_employment_details
1213
-
1214
- # The entity's primary website URL.
1215
- sig { returns(T.nilable(String)) }
1216
- attr_accessor :website
1217
-
1218
- # The child legal entity.
1219
- sig do
1220
- params(
1221
- addresses:
1222
- T::Array[
1223
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::OrHash
1224
- ],
1225
- bank_settings: T.nilable(ModernTreasury::BankSettings::OrHash),
1226
- business_name: T.nilable(String),
1227
- citizenship_country: T.nilable(String),
1228
- compliance_details:
1229
- T.nilable(
1230
- ModernTreasury::LegalEntityComplianceDetail::OrHash
1231
- ),
1232
- date_formed: T.nilable(Date),
1233
- date_of_birth: T.nilable(Date),
1234
- doing_business_as_names: T::Array[String],
1235
- email: T.nilable(String),
1236
- first_name: T.nilable(String),
1237
- identifications:
1238
- T::Array[
1239
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::OrHash
1240
- ],
1241
- industry_classifications:
1242
- T::Array[
1243
- ModernTreasury::LegalEntityIndustryClassification::OrHash
1244
- ],
1245
- last_name: T.nilable(String),
1246
- legal_entity_type:
1247
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::OrSymbol,
1248
- legal_structure:
1249
- T.nilable(
1250
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::OrSymbol
1251
- ),
1252
- metadata: T::Hash[Symbol, String],
1253
- middle_name: T.nilable(String),
1254
- phone_numbers:
1255
- T::Array[
1256
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber::OrHash
1257
- ],
1258
- politically_exposed_person: T.nilable(T::Boolean),
1259
- preferred_name: T.nilable(String),
1260
- prefix: T.nilable(String),
1261
- risk_rating:
1262
- T.nilable(
1263
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating::OrSymbol
1264
- ),
1265
- suffix: T.nilable(String),
1266
- wealth_and_employment_details:
1267
- T.nilable(ModernTreasury::WealthAndEmploymentDetails::OrHash),
1268
- website: T.nilable(String)
1269
- ).returns(T.attached_class)
1270
- end
1271
- def self.new(
1272
- # A list of addresses for the entity.
1273
- addresses: nil,
1274
- bank_settings: nil,
1275
- # The business's legal business name.
1276
- business_name: nil,
1277
- # The country of citizenship for an individual.
1278
- citizenship_country: nil,
1279
- compliance_details: nil,
1280
- # A business's formation date (YYYY-MM-DD).
1281
- date_formed: nil,
1282
- # An individual's date of birth (YYYY-MM-DD).
1283
- date_of_birth: nil,
1284
- doing_business_as_names: nil,
1285
- # The entity's primary email.
1286
- email: nil,
1287
- # An individual's first name.
1288
- first_name: nil,
1289
- # A list of identifications for the legal entity.
1290
- identifications: nil,
1291
- # A list of industry classifications for the legal entity.
1292
- industry_classifications: nil,
1293
- # An individual's last name.
1294
- last_name: nil,
1295
- # The type of legal entity.
1296
- legal_entity_type: nil,
1297
- # The business's legal structure.
1298
- legal_structure: nil,
1299
- # Additional data represented as key-value pairs. Both the key and value must be
1300
- # strings.
1301
- metadata: nil,
1302
- # An individual's middle name.
1303
- middle_name: nil,
1304
- phone_numbers: nil,
1305
- # Whether the individual is a politically exposed person.
1306
- politically_exposed_person: nil,
1307
- # An individual's preferred name.
1308
- preferred_name: nil,
1309
- # An individual's prefix.
1310
- prefix: nil,
1311
- # The risk rating of the legal entity. One of low, medium, high.
1312
- risk_rating: nil,
1313
- # An individual's suffix.
1314
- suffix: nil,
1315
- wealth_and_employment_details: nil,
1316
- # The entity's primary website URL.
1317
- website: nil
1318
- )
1319
- end
1320
-
1321
- sig do
1322
- override.returns(
1323
- {
1324
- addresses:
1325
- T::Array[
1326
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address
1327
- ],
1328
- bank_settings: T.nilable(ModernTreasury::BankSettings),
1329
- business_name: T.nilable(String),
1330
- citizenship_country: T.nilable(String),
1331
- compliance_details:
1332
- T.nilable(ModernTreasury::LegalEntityComplianceDetail),
1333
- date_formed: T.nilable(Date),
1334
- date_of_birth: T.nilable(Date),
1335
- doing_business_as_names: T::Array[String],
1336
- email: T.nilable(String),
1337
- first_name: T.nilable(String),
1338
- identifications:
1339
- T::Array[
1340
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification
1341
- ],
1342
- industry_classifications:
1343
- T::Array[ModernTreasury::LegalEntityIndustryClassification],
1344
- last_name: T.nilable(String),
1345
- legal_entity_type:
1346
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::OrSymbol,
1347
- legal_structure:
1348
- T.nilable(
1349
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::OrSymbol
1350
- ),
1351
- metadata: T::Hash[Symbol, String],
1352
- middle_name: T.nilable(String),
1353
- phone_numbers:
1354
- T::Array[
1355
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber
1356
- ],
1357
- politically_exposed_person: T.nilable(T::Boolean),
1358
- preferred_name: T.nilable(String),
1359
- prefix: T.nilable(String),
1360
- risk_rating:
1361
- T.nilable(
1362
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating::OrSymbol
1363
- ),
1364
- suffix: T.nilable(String),
1365
- wealth_and_employment_details:
1366
- T.nilable(ModernTreasury::WealthAndEmploymentDetails),
1367
- website: T.nilable(String)
1368
- }
1369
- )
1370
- end
1371
- def to_hash
1372
- end
1373
-
1374
- class Address < ModernTreasury::Internal::Type::BaseModel
1375
- OrHash =
1376
- T.type_alias do
1377
- T.any(
1378
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address,
1379
- ModernTreasury::Internal::AnyHash
1380
- )
1381
- end
1382
-
1383
- # Country code conforms to [ISO 3166-1 alpha-2]
1384
- sig { returns(T.nilable(String)) }
1385
- attr_accessor :country
1386
-
1387
- sig { returns(T.nilable(String)) }
1388
- attr_accessor :line1
1389
-
1390
- # Locality or City.
1391
- sig { returns(T.nilable(String)) }
1392
- attr_accessor :locality
1393
-
1394
- # The postal code of the address.
1395
- sig { returns(T.nilable(String)) }
1396
- attr_accessor :postal_code
1397
-
1398
- # Region or State.
1399
- sig { returns(T.nilable(String)) }
1400
- attr_accessor :region
1401
-
1402
- # The types of this address.
1403
- sig do
1404
- returns(
1405
- T.nilable(
1406
- T::Array[
1407
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::OrSymbol
1408
- ]
1409
- )
1410
- )
1411
- end
1412
- attr_reader :address_types
1413
-
1414
- sig do
1415
- params(
1416
- address_types:
1417
- T::Array[
1418
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::OrSymbol
1419
- ]
1420
- ).void
1421
- end
1422
- attr_writer :address_types
1423
-
1424
- sig { returns(T.nilable(String)) }
1425
- attr_accessor :line2
1426
-
1427
- sig do
1428
- params(
1429
- country: T.nilable(String),
1430
- line1: T.nilable(String),
1431
- locality: T.nilable(String),
1432
- postal_code: T.nilable(String),
1433
- region: T.nilable(String),
1434
- address_types:
1435
- T::Array[
1436
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::OrSymbol
1437
- ],
1438
- line2: T.nilable(String)
1439
- ).returns(T.attached_class)
1440
- end
1441
- def self.new(
1442
- # Country code conforms to [ISO 3166-1 alpha-2]
1443
- country:,
1444
- line1:,
1445
- # Locality or City.
1446
- locality:,
1447
- # The postal code of the address.
1448
- postal_code:,
1449
- # Region or State.
1450
- region:,
1451
- # The types of this address.
1452
- address_types: nil,
1453
- line2: nil
1454
- )
1455
- end
1456
-
1457
- sig do
1458
- override.returns(
1459
- {
1460
- country: T.nilable(String),
1461
- line1: T.nilable(String),
1462
- locality: T.nilable(String),
1463
- postal_code: T.nilable(String),
1464
- region: T.nilable(String),
1465
- address_types:
1466
- T::Array[
1467
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::OrSymbol
1468
- ],
1469
- line2: T.nilable(String)
1470
- }
1471
- )
1472
- end
1473
- def to_hash
1474
- end
1475
-
1476
- module AddressType
1477
- extend ModernTreasury::Internal::Type::Enum
1478
-
1479
- TaggedSymbol =
1480
- T.type_alias do
1481
- T.all(
1482
- Symbol,
1483
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType
1484
- )
1485
- end
1486
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1487
-
1488
- BUSINESS =
1489
- T.let(
1490
- :business,
1491
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
1492
- )
1493
- MAILING =
1494
- T.let(
1495
- :mailing,
1496
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
1497
- )
1498
- OTHER =
1499
- T.let(
1500
- :other,
1501
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
1502
- )
1503
- PO_BOX =
1504
- T.let(
1505
- :po_box,
1506
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
1507
- )
1508
- RESIDENTIAL =
1509
- T.let(
1510
- :residential,
1511
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
1512
- )
1513
-
1514
- sig do
1515
- override.returns(
1516
- T::Array[
1517
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
1518
- ]
1519
- )
1520
- end
1521
- def self.values
1522
- end
1523
- end
1524
- end
1525
-
1526
- class Identification < ModernTreasury::Internal::Type::BaseModel
1527
- OrHash =
1528
- T.type_alias do
1529
- T.any(
1530
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification,
1531
- ModernTreasury::Internal::AnyHash
1532
- )
1533
- end
1534
-
1535
- # The ID number of identification document.
1536
- sig { returns(String) }
1537
- attr_accessor :id_number
1538
-
1539
- # The type of ID number.
1540
- sig do
1541
- returns(
1542
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::OrSymbol
1543
- )
1544
- end
1545
- attr_accessor :id_type
1546
-
1547
- # The date when the Identification is no longer considered valid by the issuing
1548
- # authority.
1549
- sig { returns(T.nilable(Date)) }
1550
- attr_accessor :expiration_date
1551
-
1552
- # The ISO 3166-1 alpha-2 country code of the country that issued the
1553
- # identification
1554
- sig { returns(T.nilable(String)) }
1555
- attr_accessor :issuing_country
1556
-
1557
- # The region in which the identifcation was issued.
1558
- sig { returns(T.nilable(String)) }
1559
- attr_accessor :issuing_region
1560
-
1561
- sig do
1562
- params(
1563
- id_number: String,
1564
- id_type:
1565
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::OrSymbol,
1566
- expiration_date: T.nilable(Date),
1567
- issuing_country: T.nilable(String),
1568
- issuing_region: T.nilable(String)
1569
- ).returns(T.attached_class)
1570
- end
1571
- def self.new(
1572
- # The ID number of identification document.
1573
- id_number:,
1574
- # The type of ID number.
1575
- id_type:,
1576
- # The date when the Identification is no longer considered valid by the issuing
1577
- # authority.
1578
- expiration_date: nil,
1579
- # The ISO 3166-1 alpha-2 country code of the country that issued the
1580
- # identification
1581
- issuing_country: nil,
1582
- # The region in which the identifcation was issued.
1583
- issuing_region: nil
1584
- )
1585
- end
1586
-
1587
- sig do
1588
- override.returns(
1589
- {
1590
- id_number: String,
1591
- id_type:
1592
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::OrSymbol,
1593
- expiration_date: T.nilable(Date),
1594
- issuing_country: T.nilable(String),
1595
- issuing_region: T.nilable(String)
1596
- }
1597
- )
1598
- end
1599
- def to_hash
1600
- end
1601
-
1602
- # The type of ID number.
1603
- module IDType
1604
- extend ModernTreasury::Internal::Type::Enum
1605
-
1606
- TaggedSymbol =
1607
- T.type_alias do
1608
- T.all(
1609
- Symbol,
1610
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType
1611
- )
1612
- end
1613
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1614
-
1615
- AR_CUIL =
1616
- T.let(
1617
- :ar_cuil,
1618
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1619
- )
1620
- AR_CUIT =
1621
- T.let(
1622
- :ar_cuit,
1623
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1624
- )
1625
- BR_CNPJ =
1626
- T.let(
1627
- :br_cnpj,
1628
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1629
- )
1630
- BR_CPF =
1631
- T.let(
1632
- :br_cpf,
1633
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1634
- )
1635
- CL_RUN =
1636
- T.let(
1637
- :cl_run,
1638
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1639
- )
1640
- CL_RUT =
1641
- T.let(
1642
- :cl_rut,
1643
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1644
- )
1645
- CO_CEDULAS =
1646
- T.let(
1647
- :co_cedulas,
1648
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1649
- )
1650
- CO_NIT =
1651
- T.let(
1652
- :co_nit,
1653
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1654
- )
1655
- DRIVERS_LICENSE =
1656
- T.let(
1657
- :drivers_license,
1658
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1659
- )
1660
- HN_ID =
1661
- T.let(
1662
- :hn_id,
1663
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1664
- )
1665
- HN_RTN =
1666
- T.let(
1667
- :hn_rtn,
1668
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1669
- )
1670
- IN_LEI =
1671
- T.let(
1672
- :in_lei,
1673
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1674
- )
1675
- KR_BRN =
1676
- T.let(
1677
- :kr_brn,
1678
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1679
- )
1680
- KR_CRN =
1681
- T.let(
1682
- :kr_crn,
1683
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1684
- )
1685
- KR_RRN =
1686
- T.let(
1687
- :kr_rrn,
1688
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1689
- )
1690
- PASSPORT =
1691
- T.let(
1692
- :passport,
1693
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1694
- )
1695
- SA_TIN =
1696
- T.let(
1697
- :sa_tin,
1698
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1699
- )
1700
- SA_VAT =
1701
- T.let(
1702
- :sa_vat,
1703
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1704
- )
1705
- US_EIN =
1706
- T.let(
1707
- :us_ein,
1708
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1709
- )
1710
- US_ITIN =
1711
- T.let(
1712
- :us_itin,
1713
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1714
- )
1715
- US_SSN =
1716
- T.let(
1717
- :us_ssn,
1718
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1719
- )
1720
- VN_TIN =
1721
- T.let(
1722
- :vn_tin,
1723
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1724
- )
1725
-
1726
- sig do
1727
- override.returns(
1728
- T::Array[
1729
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
1730
- ]
1731
- )
1732
- end
1733
- def self.values
1734
- end
1735
- end
1736
- end
1737
-
1738
- # The type of legal entity.
1739
- module LegalEntityType
1740
- extend ModernTreasury::Internal::Type::Enum
1741
-
1742
- TaggedSymbol =
1743
- T.type_alias do
1744
- T.all(
1745
- Symbol,
1746
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType
1747
- )
1748
- end
1749
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1750
-
1751
- BUSINESS =
1752
- T.let(
1753
- :business,
1754
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::TaggedSymbol
1755
- )
1756
- INDIVIDUAL =
1757
- T.let(
1758
- :individual,
1759
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::TaggedSymbol
1760
- )
1761
-
1762
- sig do
1763
- override.returns(
1764
- T::Array[
1765
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::TaggedSymbol
1766
- ]
1767
- )
1768
- end
1769
- def self.values
1770
- end
1771
- end
1772
-
1773
- # The business's legal structure.
1774
- module LegalStructure
1775
- extend ModernTreasury::Internal::Type::Enum
1776
-
1777
- TaggedSymbol =
1778
- T.type_alias do
1779
- T.all(
1780
- Symbol,
1781
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure
1782
- )
1783
- end
1784
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1785
-
1786
- CORPORATION =
1787
- T.let(
1788
- :corporation,
1789
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
1790
- )
1791
- LLC =
1792
- T.let(
1793
- :llc,
1794
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
1795
- )
1796
- NON_PROFIT =
1797
- T.let(
1798
- :non_profit,
1799
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
1800
- )
1801
- PARTNERSHIP =
1802
- T.let(
1803
- :partnership,
1804
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
1805
- )
1806
- SOLE_PROPRIETORSHIP =
1807
- T.let(
1808
- :sole_proprietorship,
1809
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
1810
- )
1811
- TRUST =
1812
- T.let(
1813
- :trust,
1814
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
1815
- )
1816
-
1817
- sig do
1818
- override.returns(
1819
- T::Array[
1820
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
1821
- ]
1822
- )
1823
- end
1824
- def self.values
1825
- end
1826
- end
1827
-
1828
- class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
1829
- OrHash =
1830
- T.type_alias do
1831
- T.any(
1832
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber,
1833
- ModernTreasury::Internal::AnyHash
1834
- )
1835
- end
1836
-
1837
- sig { returns(T.nilable(String)) }
1838
- attr_reader :phone_number
1839
-
1840
- sig { params(phone_number: String).void }
1841
- attr_writer :phone_number
1842
-
1843
- # A list of phone numbers in E.164 format.
1844
- sig { params(phone_number: String).returns(T.attached_class) }
1845
- def self.new(phone_number: nil)
1846
- end
1847
-
1848
- sig { override.returns({ phone_number: String }) }
1849
- def to_hash
1850
- end
1851
- end
1852
-
1853
- # The risk rating of the legal entity. One of low, medium, high.
1854
- module RiskRating
1855
- extend ModernTreasury::Internal::Type::Enum
1856
-
1857
- TaggedSymbol =
1858
- T.type_alias do
1859
- T.all(
1860
- Symbol,
1861
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating
1862
- )
1863
- end
1864
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1865
-
1866
- LOW =
1867
- T.let(
1868
- :low,
1869
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating::TaggedSymbol
1870
- )
1871
- MEDIUM =
1872
- T.let(
1873
- :medium,
1874
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating::TaggedSymbol
1875
- )
1876
- HIGH =
1877
- T.let(
1878
- :high,
1879
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating::TaggedSymbol
1880
- )
1881
-
1882
- sig do
1883
- override.returns(
1884
- T::Array[
1885
- ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating::TaggedSymbol
1886
- ]
1887
- )
1888
- end
1889
- def self.values
1890
- end
1891
- end
1892
- end
1893
596
  end
1894
597
 
1895
598
  # The type of legal entity.