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
@@ -18,6 +18,10 @@ module ModernTreasury
18
18
  sig { returns(T.nilable(String)) }
19
19
  attr_accessor :name
20
20
 
21
+ # An optional user-defined 180 character unique identifier.
22
+ sig { returns(T.nilable(String)) }
23
+ attr_accessor :body_external_id
24
+
21
25
  sig do
22
26
  returns(T.nilable(ModernTreasury::CounterpartyCreateParams::Accounting))
23
27
  end
@@ -133,6 +137,7 @@ module ModernTreasury
133
137
  sig do
134
138
  params(
135
139
  name: T.nilable(String),
140
+ body_external_id: T.nilable(String),
136
141
  accounting:
137
142
  ModernTreasury::CounterpartyCreateParams::Accounting::OrHash,
138
143
  accounts:
@@ -154,6 +159,8 @@ module ModernTreasury
154
159
  def self.new(
155
160
  # A human friendly name for this counterparty.
156
161
  name:,
162
+ # An optional user-defined 180 character unique identifier.
163
+ body_external_id: nil,
157
164
  accounting: nil,
158
165
  # The accounts for this counterparty.
159
166
  accounts: nil,
@@ -183,6 +190,7 @@ module ModernTreasury
183
190
  override.returns(
184
191
  {
185
192
  name: T.nilable(String),
193
+ body_external_id: T.nilable(String),
186
194
  accounting: ModernTreasury::CounterpartyCreateParams::Accounting,
187
195
  accounts:
188
196
  T::Array[ModernTreasury::CounterpartyCreateParams::Account],
@@ -337,11 +345,7 @@ module ModernTreasury
337
345
 
338
346
  sig do
339
347
  returns(
340
- T.nilable(
341
- T::Array[
342
- ModernTreasury::CounterpartyCreateParams::Account::ContactDetail
343
- ]
344
- )
348
+ T.nilable(T::Array[ModernTreasury::ContactDetailCreateRequest])
345
349
  )
346
350
  end
347
351
  attr_reader :contact_details
@@ -349,31 +353,26 @@ module ModernTreasury
349
353
  sig do
350
354
  params(
351
355
  contact_details:
352
- T::Array[
353
- ModernTreasury::CounterpartyCreateParams::Account::ContactDetail::OrHash
354
- ]
356
+ T::Array[ModernTreasury::ContactDetailCreateRequest::OrHash]
355
357
  ).void
356
358
  end
357
359
  attr_writer :contact_details
358
360
 
361
+ # An optional user-defined 180 character unique identifier.
362
+ sig { returns(T.nilable(String)) }
363
+ attr_accessor :external_id
364
+
359
365
  # Specifies a ledger account object that will be created with the external
360
366
  # account. The resulting ledger account is linked to the external account for
361
367
  # auto-ledgering Payment objects. See
362
368
  # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
363
369
  # for more details.
364
- sig do
365
- returns(
366
- T.nilable(
367
- ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount
368
- )
369
- )
370
- end
370
+ sig { returns(T.nilable(ModernTreasury::LedgerAccountCreateRequest)) }
371
371
  attr_reader :ledger_account
372
372
 
373
373
  sig do
374
374
  params(
375
- ledger_account:
376
- ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount::OrHash
375
+ ledger_account: ModernTreasury::LedgerAccountCreateRequest::OrHash
377
376
  ).void
378
377
  end
379
378
  attr_writer :ledger_account
@@ -392,20 +391,11 @@ module ModernTreasury
392
391
  attr_accessor :name
393
392
 
394
393
  # Required if receiving wire payments.
395
- sig do
396
- returns(
397
- T.nilable(
398
- ModernTreasury::CounterpartyCreateParams::Account::PartyAddress
399
- )
400
- )
401
- end
394
+ sig { returns(T.nilable(ModernTreasury::AddressRequest)) }
402
395
  attr_reader :party_address
403
396
 
404
397
  sig do
405
- params(
406
- party_address:
407
- ModernTreasury::CounterpartyCreateParams::Account::PartyAddress::OrHash
408
- ).void
398
+ params(party_address: ModernTreasury::AddressRequest::OrHash).void
409
399
  end
410
400
  attr_writer :party_address
411
401
 
@@ -469,15 +459,12 @@ module ModernTreasury
469
459
  ],
470
460
  account_type: ModernTreasury::ExternalAccountType::OrSymbol,
471
461
  contact_details:
472
- T::Array[
473
- ModernTreasury::CounterpartyCreateParams::Account::ContactDetail::OrHash
474
- ],
475
- ledger_account:
476
- ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount::OrHash,
462
+ T::Array[ModernTreasury::ContactDetailCreateRequest::OrHash],
463
+ external_id: T.nilable(String),
464
+ ledger_account: ModernTreasury::LedgerAccountCreateRequest::OrHash,
477
465
  metadata: T::Hash[Symbol, String],
478
466
  name: T.nilable(String),
479
- party_address:
480
- ModernTreasury::CounterpartyCreateParams::Account::PartyAddress::OrHash,
467
+ party_address: ModernTreasury::AddressRequest::OrHash,
481
468
  party_identifier: String,
482
469
  party_name: String,
483
470
  party_type:
@@ -496,6 +483,8 @@ module ModernTreasury
496
483
  # Can be `checking`, `savings` or `other`.
497
484
  account_type: nil,
498
485
  contact_details: nil,
486
+ # An optional user-defined 180 character unique identifier.
487
+ external_id: nil,
499
488
  # Specifies a ledger account object that will be created with the external
500
489
  # account. The resulting ledger account is linked to the external account for
501
490
  # auto-ledgering Payment objects. See
@@ -531,15 +520,12 @@ module ModernTreasury
531
520
  ],
532
521
  account_type: ModernTreasury::ExternalAccountType::OrSymbol,
533
522
  contact_details:
534
- T::Array[
535
- ModernTreasury::CounterpartyCreateParams::Account::ContactDetail
536
- ],
537
- ledger_account:
538
- ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount,
523
+ T::Array[ModernTreasury::ContactDetailCreateRequest],
524
+ external_id: T.nilable(String),
525
+ ledger_account: ModernTreasury::LedgerAccountCreateRequest,
539
526
  metadata: T::Hash[Symbol, String],
540
527
  name: T.nilable(String),
541
- party_address:
542
- ModernTreasury::CounterpartyCreateParams::Account::PartyAddress,
528
+ party_address: ModernTreasury::AddressRequest,
543
529
  party_identifier: String,
544
530
  party_name: String,
545
531
  party_type:
@@ -703,366 +689,6 @@ module ModernTreasury
703
689
  end
704
690
  end
705
691
 
706
- class ContactDetail < ModernTreasury::Internal::Type::BaseModel
707
- OrHash =
708
- T.type_alias do
709
- T.any(
710
- ModernTreasury::CounterpartyCreateParams::Account::ContactDetail,
711
- ModernTreasury::Internal::AnyHash
712
- )
713
- end
714
-
715
- sig { returns(T.nilable(String)) }
716
- attr_reader :contact_identifier
717
-
718
- sig { params(contact_identifier: String).void }
719
- attr_writer :contact_identifier
720
-
721
- sig do
722
- returns(
723
- T.nilable(
724
- ModernTreasury::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType::OrSymbol
725
- )
726
- )
727
- end
728
- attr_reader :contact_identifier_type
729
-
730
- sig do
731
- params(
732
- contact_identifier_type:
733
- ModernTreasury::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType::OrSymbol
734
- ).void
735
- end
736
- attr_writer :contact_identifier_type
737
-
738
- sig do
739
- params(
740
- contact_identifier: String,
741
- contact_identifier_type:
742
- ModernTreasury::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType::OrSymbol
743
- ).returns(T.attached_class)
744
- end
745
- def self.new(contact_identifier: nil, contact_identifier_type: nil)
746
- end
747
-
748
- sig do
749
- override.returns(
750
- {
751
- contact_identifier: String,
752
- contact_identifier_type:
753
- ModernTreasury::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType::OrSymbol
754
- }
755
- )
756
- end
757
- def to_hash
758
- end
759
-
760
- module ContactIdentifierType
761
- extend ModernTreasury::Internal::Type::Enum
762
-
763
- TaggedSymbol =
764
- T.type_alias do
765
- T.all(
766
- Symbol,
767
- ModernTreasury::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType
768
- )
769
- end
770
- OrSymbol = T.type_alias { T.any(Symbol, String) }
771
-
772
- EMAIL =
773
- T.let(
774
- :email,
775
- ModernTreasury::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType::TaggedSymbol
776
- )
777
- PHONE_NUMBER =
778
- T.let(
779
- :phone_number,
780
- ModernTreasury::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType::TaggedSymbol
781
- )
782
- WEBSITE =
783
- T.let(
784
- :website,
785
- ModernTreasury::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType::TaggedSymbol
786
- )
787
-
788
- sig do
789
- override.returns(
790
- T::Array[
791
- ModernTreasury::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType::TaggedSymbol
792
- ]
793
- )
794
- end
795
- def self.values
796
- end
797
- end
798
- end
799
-
800
- class LedgerAccount < ModernTreasury::Internal::Type::BaseModel
801
- OrHash =
802
- T.type_alias do
803
- T.any(
804
- ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount,
805
- ModernTreasury::Internal::AnyHash
806
- )
807
- end
808
-
809
- # The currency of the ledger account.
810
- sig { returns(String) }
811
- attr_accessor :currency
812
-
813
- # The id of the ledger that this account belongs to.
814
- sig { returns(String) }
815
- attr_accessor :ledger_id
816
-
817
- # The name of the ledger account.
818
- sig { returns(String) }
819
- attr_accessor :name
820
-
821
- # The normal balance of the ledger account.
822
- sig { returns(ModernTreasury::TransactionDirection::OrSymbol) }
823
- attr_accessor :normal_balance
824
-
825
- # The currency exponent of the ledger account.
826
- sig { returns(T.nilable(Integer)) }
827
- attr_accessor :currency_exponent
828
-
829
- # The description of the ledger account.
830
- sig { returns(T.nilable(String)) }
831
- attr_accessor :description
832
-
833
- # The array of ledger account category ids that this ledger account should be a
834
- # child of.
835
- sig { returns(T.nilable(T::Array[String])) }
836
- attr_reader :ledger_account_category_ids
837
-
838
- sig { params(ledger_account_category_ids: T::Array[String]).void }
839
- attr_writer :ledger_account_category_ids
840
-
841
- # If the ledger account links to another object in Modern Treasury, the id will be
842
- # populated here, otherwise null.
843
- sig { returns(T.nilable(String)) }
844
- attr_reader :ledgerable_id
845
-
846
- sig { params(ledgerable_id: String).void }
847
- attr_writer :ledgerable_id
848
-
849
- # If the ledger account links to another object in Modern Treasury, the type will
850
- # be populated here, otherwise null. The value is one of internal_account or
851
- # external_account.
852
- sig do
853
- returns(
854
- T.nilable(
855
- ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType::OrSymbol
856
- )
857
- )
858
- end
859
- attr_reader :ledgerable_type
860
-
861
- sig do
862
- params(
863
- ledgerable_type:
864
- ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType::OrSymbol
865
- ).void
866
- end
867
- attr_writer :ledgerable_type
868
-
869
- # Additional data represented as key-value pairs. Both the key and value must be
870
- # strings.
871
- sig { returns(T.nilable(T::Hash[Symbol, String])) }
872
- attr_reader :metadata
873
-
874
- sig { params(metadata: T::Hash[Symbol, String]).void }
875
- attr_writer :metadata
876
-
877
- # Specifies a ledger account object that will be created with the external
878
- # account. The resulting ledger account is linked to the external account for
879
- # auto-ledgering Payment objects. See
880
- # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
881
- # for more details.
882
- sig do
883
- params(
884
- currency: String,
885
- ledger_id: String,
886
- name: String,
887
- normal_balance: ModernTreasury::TransactionDirection::OrSymbol,
888
- currency_exponent: T.nilable(Integer),
889
- description: T.nilable(String),
890
- ledger_account_category_ids: T::Array[String],
891
- ledgerable_id: String,
892
- ledgerable_type:
893
- ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType::OrSymbol,
894
- metadata: T::Hash[Symbol, String]
895
- ).returns(T.attached_class)
896
- end
897
- def self.new(
898
- # The currency of the ledger account.
899
- currency:,
900
- # The id of the ledger that this account belongs to.
901
- ledger_id:,
902
- # The name of the ledger account.
903
- name:,
904
- # The normal balance of the ledger account.
905
- normal_balance:,
906
- # The currency exponent of the ledger account.
907
- currency_exponent: nil,
908
- # The description of the ledger account.
909
- description: nil,
910
- # The array of ledger account category ids that this ledger account should be a
911
- # child of.
912
- ledger_account_category_ids: nil,
913
- # If the ledger account links to another object in Modern Treasury, the id will be
914
- # populated here, otherwise null.
915
- ledgerable_id: nil,
916
- # If the ledger account links to another object in Modern Treasury, the type will
917
- # be populated here, otherwise null. The value is one of internal_account or
918
- # external_account.
919
- ledgerable_type: nil,
920
- # Additional data represented as key-value pairs. Both the key and value must be
921
- # strings.
922
- metadata: nil
923
- )
924
- end
925
-
926
- sig do
927
- override.returns(
928
- {
929
- currency: String,
930
- ledger_id: String,
931
- name: String,
932
- normal_balance: ModernTreasury::TransactionDirection::OrSymbol,
933
- currency_exponent: T.nilable(Integer),
934
- description: T.nilable(String),
935
- ledger_account_category_ids: T::Array[String],
936
- ledgerable_id: String,
937
- ledgerable_type:
938
- ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType::OrSymbol,
939
- metadata: T::Hash[Symbol, String]
940
- }
941
- )
942
- end
943
- def to_hash
944
- end
945
-
946
- # If the ledger account links to another object in Modern Treasury, the type will
947
- # be populated here, otherwise null. The value is one of internal_account or
948
- # external_account.
949
- module LedgerableType
950
- extend ModernTreasury::Internal::Type::Enum
951
-
952
- TaggedSymbol =
953
- T.type_alias do
954
- T.all(
955
- Symbol,
956
- ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType
957
- )
958
- end
959
- OrSymbol = T.type_alias { T.any(Symbol, String) }
960
-
961
- COUNTERPARTY =
962
- T.let(
963
- :counterparty,
964
- ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType::TaggedSymbol
965
- )
966
- EXTERNAL_ACCOUNT =
967
- T.let(
968
- :external_account,
969
- ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType::TaggedSymbol
970
- )
971
- INTERNAL_ACCOUNT =
972
- T.let(
973
- :internal_account,
974
- ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType::TaggedSymbol
975
- )
976
- VIRTUAL_ACCOUNT =
977
- T.let(
978
- :virtual_account,
979
- ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType::TaggedSymbol
980
- )
981
-
982
- sig do
983
- override.returns(
984
- T::Array[
985
- ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType::TaggedSymbol
986
- ]
987
- )
988
- end
989
- def self.values
990
- end
991
- end
992
- end
993
-
994
- class PartyAddress < ModernTreasury::Internal::Type::BaseModel
995
- OrHash =
996
- T.type_alias do
997
- T.any(
998
- ModernTreasury::CounterpartyCreateParams::Account::PartyAddress,
999
- ModernTreasury::Internal::AnyHash
1000
- )
1001
- end
1002
-
1003
- # Country code conforms to [ISO 3166-1 alpha-2]
1004
- sig { returns(T.nilable(String)) }
1005
- attr_accessor :country
1006
-
1007
- sig { returns(T.nilable(String)) }
1008
- attr_accessor :line1
1009
-
1010
- sig { returns(T.nilable(String)) }
1011
- attr_accessor :line2
1012
-
1013
- # Locality or City.
1014
- sig { returns(T.nilable(String)) }
1015
- attr_accessor :locality
1016
-
1017
- # The postal code of the address.
1018
- sig { returns(T.nilable(String)) }
1019
- attr_accessor :postal_code
1020
-
1021
- # Region or State.
1022
- sig { returns(T.nilable(String)) }
1023
- attr_accessor :region
1024
-
1025
- # Required if receiving wire payments.
1026
- sig do
1027
- params(
1028
- country: T.nilable(String),
1029
- line1: T.nilable(String),
1030
- line2: T.nilable(String),
1031
- locality: T.nilable(String),
1032
- postal_code: T.nilable(String),
1033
- region: T.nilable(String)
1034
- ).returns(T.attached_class)
1035
- end
1036
- def self.new(
1037
- # Country code conforms to [ISO 3166-1 alpha-2]
1038
- country: nil,
1039
- line1: nil,
1040
- line2: nil,
1041
- # Locality or City.
1042
- locality: nil,
1043
- # The postal code of the address.
1044
- postal_code: nil,
1045
- # Region or State.
1046
- region: nil
1047
- )
1048
- end
1049
-
1050
- sig do
1051
- override.returns(
1052
- {
1053
- country: T.nilable(String),
1054
- line1: T.nilable(String),
1055
- line2: T.nilable(String),
1056
- locality: T.nilable(String),
1057
- postal_code: T.nilable(String),
1058
- region: T.nilable(String)
1059
- }
1060
- )
1061
- end
1062
- def to_hash
1063
- end
1064
- end
1065
-
1066
692
  # Either `individual` or `business`.
1067
693
  module PartyType
1068
694
  extend ModernTreasury::Internal::Type::Enum
@@ -1543,11 +1169,7 @@ module ModernTreasury
1543
1169
  # A list of addresses for the entity.
1544
1170
  sig do
1545
1171
  returns(
1546
- T.nilable(
1547
- T::Array[
1548
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Address
1549
- ]
1550
- )
1172
+ T.nilable(T::Array[ModernTreasury::LegalEntityAddressCreateRequest])
1551
1173
  )
1552
1174
  end
1553
1175
  attr_reader :addresses
@@ -1555,9 +1177,7 @@ module ModernTreasury
1555
1177
  sig do
1556
1178
  params(
1557
1179
  addresses:
1558
- T::Array[
1559
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Address::OrHash
1560
- ]
1180
+ T::Array[ModernTreasury::LegalEntityAddressCreateRequest::OrHash]
1561
1181
  ).void
1562
1182
  end
1563
1183
  attr_writer :addresses
@@ -1616,11 +1236,7 @@ module ModernTreasury
1616
1236
  # A list of identifications for the legal entity.
1617
1237
  sig do
1618
1238
  returns(
1619
- T.nilable(
1620
- T::Array[
1621
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification
1622
- ]
1623
- )
1239
+ T.nilable(T::Array[ModernTreasury::IdentificationCreateRequest])
1624
1240
  )
1625
1241
  end
1626
1242
  attr_reader :identifications
@@ -1628,9 +1244,7 @@ module ModernTreasury
1628
1244
  sig do
1629
1245
  params(
1630
1246
  identifications:
1631
- T::Array[
1632
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::OrHash
1633
- ]
1247
+ T::Array[ModernTreasury::IdentificationCreateRequest::OrHash]
1634
1248
  ).void
1635
1249
  end
1636
1250
  attr_writer :identifications
@@ -1760,9 +1374,7 @@ module ModernTreasury
1760
1374
  legal_entity_type:
1761
1375
  ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityType::OrSymbol,
1762
1376
  addresses:
1763
- T::Array[
1764
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Address::OrHash
1765
- ],
1377
+ T::Array[ModernTreasury::LegalEntityAddressCreateRequest::OrHash],
1766
1378
  bank_settings: T.nilable(ModernTreasury::BankSettings::OrHash),
1767
1379
  business_name: T.nilable(String),
1768
1380
  citizenship_country: T.nilable(String),
@@ -1774,9 +1386,7 @@ module ModernTreasury
1774
1386
  email: T.nilable(String),
1775
1387
  first_name: T.nilable(String),
1776
1388
  identifications:
1777
- T::Array[
1778
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::OrHash
1779
- ],
1389
+ T::Array[ModernTreasury::IdentificationCreateRequest::OrHash],
1780
1390
  industry_classifications:
1781
1391
  T::Array[
1782
1392
  ModernTreasury::LegalEntityIndustryClassification::OrHash
@@ -1869,9 +1479,7 @@ module ModernTreasury
1869
1479
  legal_entity_type:
1870
1480
  ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityType::OrSymbol,
1871
1481
  addresses:
1872
- T::Array[
1873
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Address
1874
- ],
1482
+ T::Array[ModernTreasury::LegalEntityAddressCreateRequest],
1875
1483
  bank_settings: T.nilable(ModernTreasury::BankSettings),
1876
1484
  business_name: T.nilable(String),
1877
1485
  citizenship_country: T.nilable(String),
@@ -1883,9 +1491,7 @@ module ModernTreasury
1883
1491
  email: T.nilable(String),
1884
1492
  first_name: T.nilable(String),
1885
1493
  identifications:
1886
- T::Array[
1887
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification
1888
- ],
1494
+ T::Array[ModernTreasury::IdentificationCreateRequest],
1889
1495
  industry_classifications:
1890
1496
  T::Array[ModernTreasury::LegalEntityIndustryClassification],
1891
1497
  last_name: T.nilable(String),
@@ -1957,375 +1563,11 @@ module ModernTreasury
1957
1563
  end
1958
1564
  end
1959
1565
 
1960
- class Address < ModernTreasury::Internal::Type::BaseModel
1566
+ class LegalEntityAssociation < ModernTreasury::Internal::Type::BaseModel
1961
1567
  OrHash =
1962
1568
  T.type_alias do
1963
1569
  T.any(
1964
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Address,
1965
- ModernTreasury::Internal::AnyHash
1966
- )
1967
- end
1968
-
1969
- # Country code conforms to [ISO 3166-1 alpha-2]
1970
- sig { returns(T.nilable(String)) }
1971
- attr_accessor :country
1972
-
1973
- sig { returns(T.nilable(String)) }
1974
- attr_accessor :line1
1975
-
1976
- # Locality or City.
1977
- sig { returns(T.nilable(String)) }
1978
- attr_accessor :locality
1979
-
1980
- # The postal code of the address.
1981
- sig { returns(T.nilable(String)) }
1982
- attr_accessor :postal_code
1983
-
1984
- # Region or State.
1985
- sig { returns(T.nilable(String)) }
1986
- attr_accessor :region
1987
-
1988
- # The types of this address.
1989
- sig do
1990
- returns(
1991
- T.nilable(
1992
- T::Array[
1993
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Address::AddressType::OrSymbol
1994
- ]
1995
- )
1996
- )
1997
- end
1998
- attr_reader :address_types
1999
-
2000
- sig do
2001
- params(
2002
- address_types:
2003
- T::Array[
2004
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Address::AddressType::OrSymbol
2005
- ]
2006
- ).void
2007
- end
2008
- attr_writer :address_types
2009
-
2010
- sig { returns(T.nilable(String)) }
2011
- attr_accessor :line2
2012
-
2013
- sig do
2014
- params(
2015
- country: T.nilable(String),
2016
- line1: T.nilable(String),
2017
- locality: T.nilable(String),
2018
- postal_code: T.nilable(String),
2019
- region: T.nilable(String),
2020
- address_types:
2021
- T::Array[
2022
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Address::AddressType::OrSymbol
2023
- ],
2024
- line2: T.nilable(String)
2025
- ).returns(T.attached_class)
2026
- end
2027
- def self.new(
2028
- # Country code conforms to [ISO 3166-1 alpha-2]
2029
- country:,
2030
- line1:,
2031
- # Locality or City.
2032
- locality:,
2033
- # The postal code of the address.
2034
- postal_code:,
2035
- # Region or State.
2036
- region:,
2037
- # The types of this address.
2038
- address_types: nil,
2039
- line2: nil
2040
- )
2041
- end
2042
-
2043
- sig do
2044
- override.returns(
2045
- {
2046
- country: T.nilable(String),
2047
- line1: T.nilable(String),
2048
- locality: T.nilable(String),
2049
- postal_code: T.nilable(String),
2050
- region: T.nilable(String),
2051
- address_types:
2052
- T::Array[
2053
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Address::AddressType::OrSymbol
2054
- ],
2055
- line2: T.nilable(String)
2056
- }
2057
- )
2058
- end
2059
- def to_hash
2060
- end
2061
-
2062
- module AddressType
2063
- extend ModernTreasury::Internal::Type::Enum
2064
-
2065
- TaggedSymbol =
2066
- T.type_alias do
2067
- T.all(
2068
- Symbol,
2069
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Address::AddressType
2070
- )
2071
- end
2072
- OrSymbol = T.type_alias { T.any(Symbol, String) }
2073
-
2074
- BUSINESS =
2075
- T.let(
2076
- :business,
2077
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Address::AddressType::TaggedSymbol
2078
- )
2079
- MAILING =
2080
- T.let(
2081
- :mailing,
2082
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Address::AddressType::TaggedSymbol
2083
- )
2084
- OTHER =
2085
- T.let(
2086
- :other,
2087
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Address::AddressType::TaggedSymbol
2088
- )
2089
- PO_BOX =
2090
- T.let(
2091
- :po_box,
2092
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Address::AddressType::TaggedSymbol
2093
- )
2094
- RESIDENTIAL =
2095
- T.let(
2096
- :residential,
2097
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Address::AddressType::TaggedSymbol
2098
- )
2099
-
2100
- sig do
2101
- override.returns(
2102
- T::Array[
2103
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Address::AddressType::TaggedSymbol
2104
- ]
2105
- )
2106
- end
2107
- def self.values
2108
- end
2109
- end
2110
- end
2111
-
2112
- class Identification < ModernTreasury::Internal::Type::BaseModel
2113
- OrHash =
2114
- T.type_alias do
2115
- T.any(
2116
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification,
2117
- ModernTreasury::Internal::AnyHash
2118
- )
2119
- end
2120
-
2121
- # The ID number of identification document.
2122
- sig { returns(String) }
2123
- attr_accessor :id_number
2124
-
2125
- # The type of ID number.
2126
- sig do
2127
- returns(
2128
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::OrSymbol
2129
- )
2130
- end
2131
- attr_accessor :id_type
2132
-
2133
- # The date when the Identification is no longer considered valid by the issuing
2134
- # authority.
2135
- sig { returns(T.nilable(Date)) }
2136
- attr_accessor :expiration_date
2137
-
2138
- # The ISO 3166-1 alpha-2 country code of the country that issued the
2139
- # identification
2140
- sig { returns(T.nilable(String)) }
2141
- attr_accessor :issuing_country
2142
-
2143
- # The region in which the identifcation was issued.
2144
- sig { returns(T.nilable(String)) }
2145
- attr_accessor :issuing_region
2146
-
2147
- sig do
2148
- params(
2149
- id_number: String,
2150
- id_type:
2151
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::OrSymbol,
2152
- expiration_date: T.nilable(Date),
2153
- issuing_country: T.nilable(String),
2154
- issuing_region: T.nilable(String)
2155
- ).returns(T.attached_class)
2156
- end
2157
- def self.new(
2158
- # The ID number of identification document.
2159
- id_number:,
2160
- # The type of ID number.
2161
- id_type:,
2162
- # The date when the Identification is no longer considered valid by the issuing
2163
- # authority.
2164
- expiration_date: nil,
2165
- # The ISO 3166-1 alpha-2 country code of the country that issued the
2166
- # identification
2167
- issuing_country: nil,
2168
- # The region in which the identifcation was issued.
2169
- issuing_region: nil
2170
- )
2171
- end
2172
-
2173
- sig do
2174
- override.returns(
2175
- {
2176
- id_number: String,
2177
- id_type:
2178
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::OrSymbol,
2179
- expiration_date: T.nilable(Date),
2180
- issuing_country: T.nilable(String),
2181
- issuing_region: T.nilable(String)
2182
- }
2183
- )
2184
- end
2185
- def to_hash
2186
- end
2187
-
2188
- # The type of ID number.
2189
- module IDType
2190
- extend ModernTreasury::Internal::Type::Enum
2191
-
2192
- TaggedSymbol =
2193
- T.type_alias do
2194
- T.all(
2195
- Symbol,
2196
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType
2197
- )
2198
- end
2199
- OrSymbol = T.type_alias { T.any(Symbol, String) }
2200
-
2201
- AR_CUIL =
2202
- T.let(
2203
- :ar_cuil,
2204
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2205
- )
2206
- AR_CUIT =
2207
- T.let(
2208
- :ar_cuit,
2209
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2210
- )
2211
- BR_CNPJ =
2212
- T.let(
2213
- :br_cnpj,
2214
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2215
- )
2216
- BR_CPF =
2217
- T.let(
2218
- :br_cpf,
2219
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2220
- )
2221
- CL_RUN =
2222
- T.let(
2223
- :cl_run,
2224
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2225
- )
2226
- CL_RUT =
2227
- T.let(
2228
- :cl_rut,
2229
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2230
- )
2231
- CO_CEDULAS =
2232
- T.let(
2233
- :co_cedulas,
2234
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2235
- )
2236
- CO_NIT =
2237
- T.let(
2238
- :co_nit,
2239
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2240
- )
2241
- DRIVERS_LICENSE =
2242
- T.let(
2243
- :drivers_license,
2244
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2245
- )
2246
- HN_ID =
2247
- T.let(
2248
- :hn_id,
2249
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2250
- )
2251
- HN_RTN =
2252
- T.let(
2253
- :hn_rtn,
2254
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2255
- )
2256
- IN_LEI =
2257
- T.let(
2258
- :in_lei,
2259
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2260
- )
2261
- KR_BRN =
2262
- T.let(
2263
- :kr_brn,
2264
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2265
- )
2266
- KR_CRN =
2267
- T.let(
2268
- :kr_crn,
2269
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2270
- )
2271
- KR_RRN =
2272
- T.let(
2273
- :kr_rrn,
2274
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2275
- )
2276
- PASSPORT =
2277
- T.let(
2278
- :passport,
2279
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2280
- )
2281
- SA_TIN =
2282
- T.let(
2283
- :sa_tin,
2284
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2285
- )
2286
- SA_VAT =
2287
- T.let(
2288
- :sa_vat,
2289
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2290
- )
2291
- US_EIN =
2292
- T.let(
2293
- :us_ein,
2294
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2295
- )
2296
- US_ITIN =
2297
- T.let(
2298
- :us_itin,
2299
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2300
- )
2301
- US_SSN =
2302
- T.let(
2303
- :us_ssn,
2304
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2305
- )
2306
- VN_TIN =
2307
- T.let(
2308
- :vn_tin,
2309
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2310
- )
2311
-
2312
- sig do
2313
- override.returns(
2314
- T::Array[
2315
- ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
2316
- ]
2317
- )
2318
- end
2319
- def self.values
2320
- end
2321
- end
2322
- end
2323
-
2324
- class LegalEntityAssociation < ModernTreasury::Internal::Type::BaseModel
2325
- OrHash =
2326
- T.type_alias do
2327
- T.any(
2328
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation,
1570
+ ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation,
2329
1571
  ModernTreasury::Internal::AnyHash
2330
1572
  )
2331
1573
  end
@@ -2340,19 +1582,12 @@ module ModernTreasury
2340
1582
  attr_accessor :relationship_types
2341
1583
 
2342
1584
  # The child legal entity.
2343
- sig do
2344
- returns(
2345
- T.nilable(
2346
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity
2347
- )
2348
- )
2349
- end
1585
+ sig { returns(T.nilable(ModernTreasury::ChildLegalEntityCreate)) }
2350
1586
  attr_reader :child_legal_entity
2351
1587
 
2352
1588
  sig do
2353
1589
  params(
2354
- child_legal_entity:
2355
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::OrHash
1590
+ child_legal_entity: ModernTreasury::ChildLegalEntityCreate::OrHash
2356
1591
  ).void
2357
1592
  end
2358
1593
  attr_writer :child_legal_entity
@@ -2379,7 +1614,7 @@ module ModernTreasury
2379
1614
  ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType::OrSymbol
2380
1615
  ],
2381
1616
  child_legal_entity:
2382
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::OrHash,
1617
+ ModernTreasury::ChildLegalEntityCreate::OrHash,
2383
1618
  child_legal_entity_id: String,
2384
1619
  ownership_percentage: T.nilable(Integer),
2385
1620
  title: T.nilable(String)
@@ -2405,8 +1640,7 @@ module ModernTreasury
2405
1640
  T::Array[
2406
1641
  ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType::OrSymbol
2407
1642
  ],
2408
- child_legal_entity:
2409
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity,
1643
+ child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
2410
1644
  child_legal_entity_id: String,
2411
1645
  ownership_percentage: T.nilable(Integer),
2412
1646
  title: T.nilable(String)
@@ -2429,6 +1663,11 @@ module ModernTreasury
2429
1663
  end
2430
1664
  OrSymbol = T.type_alias { T.any(Symbol, String) }
2431
1665
 
1666
+ AUTHORIZED_SIGNER =
1667
+ T.let(
1668
+ :authorized_signer,
1669
+ ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType::TaggedSymbol
1670
+ )
2432
1671
  BENEFICIAL_OWNER =
2433
1672
  T.let(
2434
1673
  :beneficial_owner,
@@ -2450,916 +1689,6 @@ module ModernTreasury
2450
1689
  def self.values
2451
1690
  end
2452
1691
  end
2453
-
2454
- class ChildLegalEntity < ModernTreasury::Internal::Type::BaseModel
2455
- OrHash =
2456
- T.type_alias do
2457
- T.any(
2458
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity,
2459
- ModernTreasury::Internal::AnyHash
2460
- )
2461
- end
2462
-
2463
- # A list of addresses for the entity.
2464
- sig do
2465
- returns(
2466
- T.nilable(
2467
- T::Array[
2468
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address
2469
- ]
2470
- )
2471
- )
2472
- end
2473
- attr_reader :addresses
2474
-
2475
- sig do
2476
- params(
2477
- addresses:
2478
- T::Array[
2479
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::OrHash
2480
- ]
2481
- ).void
2482
- end
2483
- attr_writer :addresses
2484
-
2485
- sig { returns(T.nilable(ModernTreasury::BankSettings)) }
2486
- attr_reader :bank_settings
2487
-
2488
- sig do
2489
- params(
2490
- bank_settings: T.nilable(ModernTreasury::BankSettings::OrHash)
2491
- ).void
2492
- end
2493
- attr_writer :bank_settings
2494
-
2495
- # The business's legal business name.
2496
- sig { returns(T.nilable(String)) }
2497
- attr_accessor :business_name
2498
-
2499
- # The country of citizenship for an individual.
2500
- sig { returns(T.nilable(String)) }
2501
- attr_accessor :citizenship_country
2502
-
2503
- sig do
2504
- returns(T.nilable(ModernTreasury::LegalEntityComplianceDetail))
2505
- end
2506
- attr_reader :compliance_details
2507
-
2508
- sig do
2509
- params(
2510
- compliance_details:
2511
- T.nilable(ModernTreasury::LegalEntityComplianceDetail::OrHash)
2512
- ).void
2513
- end
2514
- attr_writer :compliance_details
2515
-
2516
- # A business's formation date (YYYY-MM-DD).
2517
- sig { returns(T.nilable(Date)) }
2518
- attr_accessor :date_formed
2519
-
2520
- # An individual's date of birth (YYYY-MM-DD).
2521
- sig { returns(T.nilable(Date)) }
2522
- attr_accessor :date_of_birth
2523
-
2524
- sig { returns(T.nilable(T::Array[String])) }
2525
- attr_reader :doing_business_as_names
2526
-
2527
- sig { params(doing_business_as_names: T::Array[String]).void }
2528
- attr_writer :doing_business_as_names
2529
-
2530
- # The entity's primary email.
2531
- sig { returns(T.nilable(String)) }
2532
- attr_accessor :email
2533
-
2534
- # An individual's first name.
2535
- sig { returns(T.nilable(String)) }
2536
- attr_accessor :first_name
2537
-
2538
- # A list of identifications for the legal entity.
2539
- sig do
2540
- returns(
2541
- T.nilable(
2542
- T::Array[
2543
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification
2544
- ]
2545
- )
2546
- )
2547
- end
2548
- attr_reader :identifications
2549
-
2550
- sig do
2551
- params(
2552
- identifications:
2553
- T::Array[
2554
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::OrHash
2555
- ]
2556
- ).void
2557
- end
2558
- attr_writer :identifications
2559
-
2560
- # A list of industry classifications for the legal entity.
2561
- sig do
2562
- returns(
2563
- T.nilable(
2564
- T::Array[ModernTreasury::LegalEntityIndustryClassification]
2565
- )
2566
- )
2567
- end
2568
- attr_reader :industry_classifications
2569
-
2570
- sig do
2571
- params(
2572
- industry_classifications:
2573
- T::Array[
2574
- ModernTreasury::LegalEntityIndustryClassification::OrHash
2575
- ]
2576
- ).void
2577
- end
2578
- attr_writer :industry_classifications
2579
-
2580
- # An individual's last name.
2581
- sig { returns(T.nilable(String)) }
2582
- attr_accessor :last_name
2583
-
2584
- # The type of legal entity.
2585
- sig do
2586
- returns(
2587
- T.nilable(
2588
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::OrSymbol
2589
- )
2590
- )
2591
- end
2592
- attr_reader :legal_entity_type
2593
-
2594
- sig do
2595
- params(
2596
- legal_entity_type:
2597
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::OrSymbol
2598
- ).void
2599
- end
2600
- attr_writer :legal_entity_type
2601
-
2602
- # The business's legal structure.
2603
- sig do
2604
- returns(
2605
- T.nilable(
2606
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::OrSymbol
2607
- )
2608
- )
2609
- end
2610
- attr_accessor :legal_structure
2611
-
2612
- # Additional data represented as key-value pairs. Both the key and value must be
2613
- # strings.
2614
- sig { returns(T.nilable(T::Hash[Symbol, String])) }
2615
- attr_reader :metadata
2616
-
2617
- sig { params(metadata: T::Hash[Symbol, String]).void }
2618
- attr_writer :metadata
2619
-
2620
- # An individual's middle name.
2621
- sig { returns(T.nilable(String)) }
2622
- attr_accessor :middle_name
2623
-
2624
- sig do
2625
- returns(
2626
- T.nilable(
2627
- T::Array[
2628
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber
2629
- ]
2630
- )
2631
- )
2632
- end
2633
- attr_reader :phone_numbers
2634
-
2635
- sig do
2636
- params(
2637
- phone_numbers:
2638
- T::Array[
2639
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber::OrHash
2640
- ]
2641
- ).void
2642
- end
2643
- attr_writer :phone_numbers
2644
-
2645
- # Whether the individual is a politically exposed person.
2646
- sig { returns(T.nilable(T::Boolean)) }
2647
- attr_accessor :politically_exposed_person
2648
-
2649
- # An individual's preferred name.
2650
- sig { returns(T.nilable(String)) }
2651
- attr_accessor :preferred_name
2652
-
2653
- # An individual's prefix.
2654
- sig { returns(T.nilable(String)) }
2655
- attr_accessor :prefix
2656
-
2657
- # The risk rating of the legal entity. One of low, medium, high.
2658
- sig do
2659
- returns(
2660
- T.nilable(
2661
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating::OrSymbol
2662
- )
2663
- )
2664
- end
2665
- attr_accessor :risk_rating
2666
-
2667
- # An individual's suffix.
2668
- sig { returns(T.nilable(String)) }
2669
- attr_accessor :suffix
2670
-
2671
- sig do
2672
- returns(T.nilable(ModernTreasury::WealthAndEmploymentDetails))
2673
- end
2674
- attr_reader :wealth_and_employment_details
2675
-
2676
- sig do
2677
- params(
2678
- wealth_and_employment_details:
2679
- T.nilable(ModernTreasury::WealthAndEmploymentDetails::OrHash)
2680
- ).void
2681
- end
2682
- attr_writer :wealth_and_employment_details
2683
-
2684
- # The entity's primary website URL.
2685
- sig { returns(T.nilable(String)) }
2686
- attr_accessor :website
2687
-
2688
- # The child legal entity.
2689
- sig do
2690
- params(
2691
- addresses:
2692
- T::Array[
2693
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::OrHash
2694
- ],
2695
- bank_settings: T.nilable(ModernTreasury::BankSettings::OrHash),
2696
- business_name: T.nilable(String),
2697
- citizenship_country: T.nilable(String),
2698
- compliance_details:
2699
- T.nilable(
2700
- ModernTreasury::LegalEntityComplianceDetail::OrHash
2701
- ),
2702
- date_formed: T.nilable(Date),
2703
- date_of_birth: T.nilable(Date),
2704
- doing_business_as_names: T::Array[String],
2705
- email: T.nilable(String),
2706
- first_name: T.nilable(String),
2707
- identifications:
2708
- T::Array[
2709
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::OrHash
2710
- ],
2711
- industry_classifications:
2712
- T::Array[
2713
- ModernTreasury::LegalEntityIndustryClassification::OrHash
2714
- ],
2715
- last_name: T.nilable(String),
2716
- legal_entity_type:
2717
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::OrSymbol,
2718
- legal_structure:
2719
- T.nilable(
2720
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::OrSymbol
2721
- ),
2722
- metadata: T::Hash[Symbol, String],
2723
- middle_name: T.nilable(String),
2724
- phone_numbers:
2725
- T::Array[
2726
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber::OrHash
2727
- ],
2728
- politically_exposed_person: T.nilable(T::Boolean),
2729
- preferred_name: T.nilable(String),
2730
- prefix: T.nilable(String),
2731
- risk_rating:
2732
- T.nilable(
2733
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating::OrSymbol
2734
- ),
2735
- suffix: T.nilable(String),
2736
- wealth_and_employment_details:
2737
- T.nilable(ModernTreasury::WealthAndEmploymentDetails::OrHash),
2738
- website: T.nilable(String)
2739
- ).returns(T.attached_class)
2740
- end
2741
- def self.new(
2742
- # A list of addresses for the entity.
2743
- addresses: nil,
2744
- bank_settings: nil,
2745
- # The business's legal business name.
2746
- business_name: nil,
2747
- # The country of citizenship for an individual.
2748
- citizenship_country: nil,
2749
- compliance_details: nil,
2750
- # A business's formation date (YYYY-MM-DD).
2751
- date_formed: nil,
2752
- # An individual's date of birth (YYYY-MM-DD).
2753
- date_of_birth: nil,
2754
- doing_business_as_names: nil,
2755
- # The entity's primary email.
2756
- email: nil,
2757
- # An individual's first name.
2758
- first_name: nil,
2759
- # A list of identifications for the legal entity.
2760
- identifications: nil,
2761
- # A list of industry classifications for the legal entity.
2762
- industry_classifications: nil,
2763
- # An individual's last name.
2764
- last_name: nil,
2765
- # The type of legal entity.
2766
- legal_entity_type: nil,
2767
- # The business's legal structure.
2768
- legal_structure: nil,
2769
- # Additional data represented as key-value pairs. Both the key and value must be
2770
- # strings.
2771
- metadata: nil,
2772
- # An individual's middle name.
2773
- middle_name: nil,
2774
- phone_numbers: nil,
2775
- # Whether the individual is a politically exposed person.
2776
- politically_exposed_person: nil,
2777
- # An individual's preferred name.
2778
- preferred_name: nil,
2779
- # An individual's prefix.
2780
- prefix: nil,
2781
- # The risk rating of the legal entity. One of low, medium, high.
2782
- risk_rating: nil,
2783
- # An individual's suffix.
2784
- suffix: nil,
2785
- wealth_and_employment_details: nil,
2786
- # The entity's primary website URL.
2787
- website: nil
2788
- )
2789
- end
2790
-
2791
- sig do
2792
- override.returns(
2793
- {
2794
- addresses:
2795
- T::Array[
2796
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address
2797
- ],
2798
- bank_settings: T.nilable(ModernTreasury::BankSettings),
2799
- business_name: T.nilable(String),
2800
- citizenship_country: T.nilable(String),
2801
- compliance_details:
2802
- T.nilable(ModernTreasury::LegalEntityComplianceDetail),
2803
- date_formed: T.nilable(Date),
2804
- date_of_birth: T.nilable(Date),
2805
- doing_business_as_names: T::Array[String],
2806
- email: T.nilable(String),
2807
- first_name: T.nilable(String),
2808
- identifications:
2809
- T::Array[
2810
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification
2811
- ],
2812
- industry_classifications:
2813
- T::Array[ModernTreasury::LegalEntityIndustryClassification],
2814
- last_name: T.nilable(String),
2815
- legal_entity_type:
2816
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::OrSymbol,
2817
- legal_structure:
2818
- T.nilable(
2819
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::OrSymbol
2820
- ),
2821
- metadata: T::Hash[Symbol, String],
2822
- middle_name: T.nilable(String),
2823
- phone_numbers:
2824
- T::Array[
2825
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber
2826
- ],
2827
- politically_exposed_person: T.nilable(T::Boolean),
2828
- preferred_name: T.nilable(String),
2829
- prefix: T.nilable(String),
2830
- risk_rating:
2831
- T.nilable(
2832
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating::OrSymbol
2833
- ),
2834
- suffix: T.nilable(String),
2835
- wealth_and_employment_details:
2836
- T.nilable(ModernTreasury::WealthAndEmploymentDetails),
2837
- website: T.nilable(String)
2838
- }
2839
- )
2840
- end
2841
- def to_hash
2842
- end
2843
-
2844
- class Address < ModernTreasury::Internal::Type::BaseModel
2845
- OrHash =
2846
- T.type_alias do
2847
- T.any(
2848
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address,
2849
- ModernTreasury::Internal::AnyHash
2850
- )
2851
- end
2852
-
2853
- # Country code conforms to [ISO 3166-1 alpha-2]
2854
- sig { returns(T.nilable(String)) }
2855
- attr_accessor :country
2856
-
2857
- sig { returns(T.nilable(String)) }
2858
- attr_accessor :line1
2859
-
2860
- # Locality or City.
2861
- sig { returns(T.nilable(String)) }
2862
- attr_accessor :locality
2863
-
2864
- # The postal code of the address.
2865
- sig { returns(T.nilable(String)) }
2866
- attr_accessor :postal_code
2867
-
2868
- # Region or State.
2869
- sig { returns(T.nilable(String)) }
2870
- attr_accessor :region
2871
-
2872
- # The types of this address.
2873
- sig do
2874
- returns(
2875
- T.nilable(
2876
- T::Array[
2877
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::OrSymbol
2878
- ]
2879
- )
2880
- )
2881
- end
2882
- attr_reader :address_types
2883
-
2884
- sig do
2885
- params(
2886
- address_types:
2887
- T::Array[
2888
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::OrSymbol
2889
- ]
2890
- ).void
2891
- end
2892
- attr_writer :address_types
2893
-
2894
- sig { returns(T.nilable(String)) }
2895
- attr_accessor :line2
2896
-
2897
- sig do
2898
- params(
2899
- country: T.nilable(String),
2900
- line1: T.nilable(String),
2901
- locality: T.nilable(String),
2902
- postal_code: T.nilable(String),
2903
- region: T.nilable(String),
2904
- address_types:
2905
- T::Array[
2906
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::OrSymbol
2907
- ],
2908
- line2: T.nilable(String)
2909
- ).returns(T.attached_class)
2910
- end
2911
- def self.new(
2912
- # Country code conforms to [ISO 3166-1 alpha-2]
2913
- country:,
2914
- line1:,
2915
- # Locality or City.
2916
- locality:,
2917
- # The postal code of the address.
2918
- postal_code:,
2919
- # Region or State.
2920
- region:,
2921
- # The types of this address.
2922
- address_types: nil,
2923
- line2: nil
2924
- )
2925
- end
2926
-
2927
- sig do
2928
- override.returns(
2929
- {
2930
- country: T.nilable(String),
2931
- line1: T.nilable(String),
2932
- locality: T.nilable(String),
2933
- postal_code: T.nilable(String),
2934
- region: T.nilable(String),
2935
- address_types:
2936
- T::Array[
2937
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::OrSymbol
2938
- ],
2939
- line2: T.nilable(String)
2940
- }
2941
- )
2942
- end
2943
- def to_hash
2944
- end
2945
-
2946
- module AddressType
2947
- extend ModernTreasury::Internal::Type::Enum
2948
-
2949
- TaggedSymbol =
2950
- T.type_alias do
2951
- T.all(
2952
- Symbol,
2953
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType
2954
- )
2955
- end
2956
- OrSymbol = T.type_alias { T.any(Symbol, String) }
2957
-
2958
- BUSINESS =
2959
- T.let(
2960
- :business,
2961
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
2962
- )
2963
- MAILING =
2964
- T.let(
2965
- :mailing,
2966
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
2967
- )
2968
- OTHER =
2969
- T.let(
2970
- :other,
2971
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
2972
- )
2973
- PO_BOX =
2974
- T.let(
2975
- :po_box,
2976
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
2977
- )
2978
- RESIDENTIAL =
2979
- T.let(
2980
- :residential,
2981
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
2982
- )
2983
-
2984
- sig do
2985
- override.returns(
2986
- T::Array[
2987
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
2988
- ]
2989
- )
2990
- end
2991
- def self.values
2992
- end
2993
- end
2994
- end
2995
-
2996
- class Identification < ModernTreasury::Internal::Type::BaseModel
2997
- OrHash =
2998
- T.type_alias do
2999
- T.any(
3000
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification,
3001
- ModernTreasury::Internal::AnyHash
3002
- )
3003
- end
3004
-
3005
- # The ID number of identification document.
3006
- sig { returns(String) }
3007
- attr_accessor :id_number
3008
-
3009
- # The type of ID number.
3010
- sig do
3011
- returns(
3012
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::OrSymbol
3013
- )
3014
- end
3015
- attr_accessor :id_type
3016
-
3017
- # The date when the Identification is no longer considered valid by the issuing
3018
- # authority.
3019
- sig { returns(T.nilable(Date)) }
3020
- attr_accessor :expiration_date
3021
-
3022
- # The ISO 3166-1 alpha-2 country code of the country that issued the
3023
- # identification
3024
- sig { returns(T.nilable(String)) }
3025
- attr_accessor :issuing_country
3026
-
3027
- # The region in which the identifcation was issued.
3028
- sig { returns(T.nilable(String)) }
3029
- attr_accessor :issuing_region
3030
-
3031
- sig do
3032
- params(
3033
- id_number: String,
3034
- id_type:
3035
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::OrSymbol,
3036
- expiration_date: T.nilable(Date),
3037
- issuing_country: T.nilable(String),
3038
- issuing_region: T.nilable(String)
3039
- ).returns(T.attached_class)
3040
- end
3041
- def self.new(
3042
- # The ID number of identification document.
3043
- id_number:,
3044
- # The type of ID number.
3045
- id_type:,
3046
- # The date when the Identification is no longer considered valid by the issuing
3047
- # authority.
3048
- expiration_date: nil,
3049
- # The ISO 3166-1 alpha-2 country code of the country that issued the
3050
- # identification
3051
- issuing_country: nil,
3052
- # The region in which the identifcation was issued.
3053
- issuing_region: nil
3054
- )
3055
- end
3056
-
3057
- sig do
3058
- override.returns(
3059
- {
3060
- id_number: String,
3061
- id_type:
3062
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::OrSymbol,
3063
- expiration_date: T.nilable(Date),
3064
- issuing_country: T.nilable(String),
3065
- issuing_region: T.nilable(String)
3066
- }
3067
- )
3068
- end
3069
- def to_hash
3070
- end
3071
-
3072
- # The type of ID number.
3073
- module IDType
3074
- extend ModernTreasury::Internal::Type::Enum
3075
-
3076
- TaggedSymbol =
3077
- T.type_alias do
3078
- T.all(
3079
- Symbol,
3080
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType
3081
- )
3082
- end
3083
- OrSymbol = T.type_alias { T.any(Symbol, String) }
3084
-
3085
- AR_CUIL =
3086
- T.let(
3087
- :ar_cuil,
3088
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3089
- )
3090
- AR_CUIT =
3091
- T.let(
3092
- :ar_cuit,
3093
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3094
- )
3095
- BR_CNPJ =
3096
- T.let(
3097
- :br_cnpj,
3098
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3099
- )
3100
- BR_CPF =
3101
- T.let(
3102
- :br_cpf,
3103
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3104
- )
3105
- CL_RUN =
3106
- T.let(
3107
- :cl_run,
3108
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3109
- )
3110
- CL_RUT =
3111
- T.let(
3112
- :cl_rut,
3113
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3114
- )
3115
- CO_CEDULAS =
3116
- T.let(
3117
- :co_cedulas,
3118
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3119
- )
3120
- CO_NIT =
3121
- T.let(
3122
- :co_nit,
3123
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3124
- )
3125
- DRIVERS_LICENSE =
3126
- T.let(
3127
- :drivers_license,
3128
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3129
- )
3130
- HN_ID =
3131
- T.let(
3132
- :hn_id,
3133
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3134
- )
3135
- HN_RTN =
3136
- T.let(
3137
- :hn_rtn,
3138
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3139
- )
3140
- IN_LEI =
3141
- T.let(
3142
- :in_lei,
3143
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3144
- )
3145
- KR_BRN =
3146
- T.let(
3147
- :kr_brn,
3148
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3149
- )
3150
- KR_CRN =
3151
- T.let(
3152
- :kr_crn,
3153
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3154
- )
3155
- KR_RRN =
3156
- T.let(
3157
- :kr_rrn,
3158
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3159
- )
3160
- PASSPORT =
3161
- T.let(
3162
- :passport,
3163
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3164
- )
3165
- SA_TIN =
3166
- T.let(
3167
- :sa_tin,
3168
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3169
- )
3170
- SA_VAT =
3171
- T.let(
3172
- :sa_vat,
3173
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3174
- )
3175
- US_EIN =
3176
- T.let(
3177
- :us_ein,
3178
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3179
- )
3180
- US_ITIN =
3181
- T.let(
3182
- :us_itin,
3183
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3184
- )
3185
- US_SSN =
3186
- T.let(
3187
- :us_ssn,
3188
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3189
- )
3190
- VN_TIN =
3191
- T.let(
3192
- :vn_tin,
3193
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3194
- )
3195
-
3196
- sig do
3197
- override.returns(
3198
- T::Array[
3199
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
3200
- ]
3201
- )
3202
- end
3203
- def self.values
3204
- end
3205
- end
3206
- end
3207
-
3208
- # The type of legal entity.
3209
- module LegalEntityType
3210
- extend ModernTreasury::Internal::Type::Enum
3211
-
3212
- TaggedSymbol =
3213
- T.type_alias do
3214
- T.all(
3215
- Symbol,
3216
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType
3217
- )
3218
- end
3219
- OrSymbol = T.type_alias { T.any(Symbol, String) }
3220
-
3221
- BUSINESS =
3222
- T.let(
3223
- :business,
3224
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::TaggedSymbol
3225
- )
3226
- INDIVIDUAL =
3227
- T.let(
3228
- :individual,
3229
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::TaggedSymbol
3230
- )
3231
-
3232
- sig do
3233
- override.returns(
3234
- T::Array[
3235
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::TaggedSymbol
3236
- ]
3237
- )
3238
- end
3239
- def self.values
3240
- end
3241
- end
3242
-
3243
- # The business's legal structure.
3244
- module LegalStructure
3245
- extend ModernTreasury::Internal::Type::Enum
3246
-
3247
- TaggedSymbol =
3248
- T.type_alias do
3249
- T.all(
3250
- Symbol,
3251
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure
3252
- )
3253
- end
3254
- OrSymbol = T.type_alias { T.any(Symbol, String) }
3255
-
3256
- CORPORATION =
3257
- T.let(
3258
- :corporation,
3259
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
3260
- )
3261
- LLC =
3262
- T.let(
3263
- :llc,
3264
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
3265
- )
3266
- NON_PROFIT =
3267
- T.let(
3268
- :non_profit,
3269
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
3270
- )
3271
- PARTNERSHIP =
3272
- T.let(
3273
- :partnership,
3274
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
3275
- )
3276
- SOLE_PROPRIETORSHIP =
3277
- T.let(
3278
- :sole_proprietorship,
3279
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
3280
- )
3281
- TRUST =
3282
- T.let(
3283
- :trust,
3284
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
3285
- )
3286
-
3287
- sig do
3288
- override.returns(
3289
- T::Array[
3290
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
3291
- ]
3292
- )
3293
- end
3294
- def self.values
3295
- end
3296
- end
3297
-
3298
- class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
3299
- OrHash =
3300
- T.type_alias do
3301
- T.any(
3302
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber,
3303
- ModernTreasury::Internal::AnyHash
3304
- )
3305
- end
3306
-
3307
- sig { returns(T.nilable(String)) }
3308
- attr_reader :phone_number
3309
-
3310
- sig { params(phone_number: String).void }
3311
- attr_writer :phone_number
3312
-
3313
- # A list of phone numbers in E.164 format.
3314
- sig { params(phone_number: String).returns(T.attached_class) }
3315
- def self.new(phone_number: nil)
3316
- end
3317
-
3318
- sig { override.returns({ phone_number: String }) }
3319
- def to_hash
3320
- end
3321
- end
3322
-
3323
- # The risk rating of the legal entity. One of low, medium, high.
3324
- module RiskRating
3325
- extend ModernTreasury::Internal::Type::Enum
3326
-
3327
- TaggedSymbol =
3328
- T.type_alias do
3329
- T.all(
3330
- Symbol,
3331
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating
3332
- )
3333
- end
3334
- OrSymbol = T.type_alias { T.any(Symbol, String) }
3335
-
3336
- LOW =
3337
- T.let(
3338
- :low,
3339
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating::TaggedSymbol
3340
- )
3341
- MEDIUM =
3342
- T.let(
3343
- :medium,
3344
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating::TaggedSymbol
3345
- )
3346
- HIGH =
3347
- T.let(
3348
- :high,
3349
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating::TaggedSymbol
3350
- )
3351
-
3352
- sig do
3353
- override.returns(
3354
- T::Array[
3355
- ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating::TaggedSymbol
3356
- ]
3357
- )
3358
- end
3359
- def self.values
3360
- end
3361
- end
3362
- end
3363
1692
  end
3364
1693
 
3365
1694
  # The business's legal structure.