modern_treasury 0.1.0.pre.alpha.22 → 0.2.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 (307) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +54 -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/array_of.rb +1 -0
  7. data/lib/modern_treasury/internal/type/base_model.rb +7 -5
  8. data/lib/modern_treasury/internal/type/converter.rb +27 -0
  9. data/lib/modern_treasury/internal/type/hash_of.rb +1 -0
  10. data/lib/modern_treasury/internal/type/union.rb +9 -7
  11. data/lib/modern_treasury/models/accounting.rb +30 -0
  12. data/lib/modern_treasury/models/address.rb +94 -0
  13. data/lib/modern_treasury/models/address_request.rb +54 -0
  14. data/lib/modern_treasury/models/bulk_request_create_params.rb +144 -1505
  15. data/lib/modern_treasury/models/child_legal_entity_create.rb +275 -0
  16. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +10 -627
  17. data/lib/modern_treasury/models/contact_detail.rb +81 -0
  18. data/lib/modern_treasury/models/contact_detail_create_request.rb +34 -0
  19. data/lib/modern_treasury/models/counterparty.rb +24 -177
  20. data/lib/modern_treasury/models/counterparty_create_params.rb +37 -838
  21. data/lib/modern_treasury/models/counterparty_list_params.rb +9 -1
  22. data/lib/modern_treasury/models/document.rb +4 -6
  23. data/lib/modern_treasury/models/document_create_params.rb +0 -2
  24. data/lib/modern_treasury/models/document_list_params.rb +4 -6
  25. data/lib/modern_treasury/models/expected_payment.rb +9 -1
  26. data/lib/modern_treasury/models/expected_payment_create_params.rb +12 -230
  27. data/lib/modern_treasury/models/expected_payment_list_params.rb +8 -1
  28. data/lib/modern_treasury/models/expected_payment_update_params.rb +9 -1
  29. data/lib/modern_treasury/models/external_account.rb +15 -177
  30. data/lib/modern_treasury/models/external_account_create_params.rb +18 -210
  31. data/lib/modern_treasury/models/external_account_list_params.rb +9 -1
  32. data/lib/modern_treasury/models/external_account_update_params.rb +3 -52
  33. data/lib/modern_treasury/models/foreign_exchange_quote.rb +3 -73
  34. data/lib/modern_treasury/models/foreign_exchange_rate.rb +71 -0
  35. data/lib/modern_treasury/models/identification_create_request.rb +86 -0
  36. data/lib/modern_treasury/models/internal_account.rb +3 -95
  37. data/lib/modern_treasury/models/internal_account_update_account_capability_params.rb +34 -0
  38. data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +131 -0
  39. data/lib/modern_treasury/models/invoice.rb +3 -81
  40. data/lib/modern_treasury/models/invoice_create_params.rb +3 -83
  41. data/lib/modern_treasury/models/invoice_update_params.rb +3 -83
  42. data/lib/modern_treasury/models/ledger_account.rb +9 -141
  43. data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +3 -182
  44. data/lib/modern_treasury/models/ledger_account_category.rb +3 -175
  45. data/lib/modern_treasury/models/ledger_account_category_list_params.rb +9 -5
  46. data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +4 -2
  47. data/lib/modern_treasury/models/ledger_account_create_params.rb +2 -105
  48. data/lib/modern_treasury/models/ledger_account_create_request.rb +113 -0
  49. data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +6 -360
  50. data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +6 -360
  51. data/lib/modern_treasury/models/ledger_balance.rb +45 -0
  52. data/lib/modern_treasury/models/ledger_balances.rb +38 -0
  53. data/lib/modern_treasury/models/ledger_entry.rb +3 -183
  54. data/lib/modern_treasury/models/ledger_entry_create_request.rb +98 -0
  55. data/lib/modern_treasury/models/ledger_entry_list_params.rb +8 -6
  56. data/lib/modern_treasury/models/ledger_transaction.rb +14 -6
  57. data/lib/modern_treasury/models/ledger_transaction_create_params.rb +2 -212
  58. data/lib/modern_treasury/models/ledger_transaction_create_request.rb +123 -0
  59. data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +0 -1
  60. data/lib/modern_treasury/models/ledger_transaction_list_params.rb +44 -7
  61. data/lib/modern_treasury/models/ledger_transaction_update_params.rb +5 -104
  62. data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +15 -193
  63. data/lib/modern_treasury/models/legal_entity_address_create_request.rb +78 -0
  64. data/lib/modern_treasury/models/legal_entity_association.rb +1 -0
  65. data/lib/modern_treasury/models/legal_entity_association_create_params.rb +4 -448
  66. data/lib/modern_treasury/models/legal_entity_create_params.rb +10 -618
  67. data/lib/modern_treasury/models/legal_entity_update_params.rb +6 -165
  68. data/lib/modern_treasury/models/line_item.rb +3 -29
  69. data/lib/modern_treasury/models/payment_action_list_params.rb +2 -0
  70. data/lib/modern_treasury/models/payment_order.rb +13 -102
  71. data/lib/modern_treasury/models/payment_order_create_async_params.rb +24 -477
  72. data/lib/modern_treasury/models/payment_order_create_params.rb +24 -479
  73. data/lib/modern_treasury/models/payment_order_update_params.rb +21 -248
  74. data/lib/modern_treasury/models/payment_orders/reversal.rb +3 -4
  75. data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +3 -232
  76. data/lib/modern_treasury/models/payment_reference.rb +7 -1
  77. data/lib/modern_treasury/models/return_list_params.rb +5 -6
  78. data/lib/modern_treasury/models/return_object.rb +7 -3
  79. data/lib/modern_treasury/models/routing_detail.rb +3 -93
  80. data/lib/modern_treasury/models/routing_number_lookup_request.rb +3 -55
  81. data/lib/modern_treasury/models/transaction.rb +5 -73
  82. data/lib/modern_treasury/models/transactions/transaction_line_item.rb +0 -1
  83. data/lib/modern_treasury/models/virtual_account_create_params.rb +3 -117
  84. data/lib/modern_treasury/models.rb +31 -6
  85. data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
  86. data/lib/modern_treasury/resources/counterparties.rb +20 -14
  87. data/lib/modern_treasury/resources/expected_payments.rb +10 -4
  88. data/lib/modern_treasury/resources/external_accounts.rb +23 -17
  89. data/lib/modern_treasury/resources/internal_accounts.rb +34 -0
  90. data/lib/modern_treasury/resources/invoices.rb +2 -2
  91. data/lib/modern_treasury/resources/ledger_account_categories.rb +1 -1
  92. data/lib/modern_treasury/resources/ledger_accounts.rb +1 -1
  93. data/lib/modern_treasury/resources/ledger_entries.rb +1 -1
  94. data/lib/modern_treasury/resources/ledger_transactions.rb +5 -5
  95. data/lib/modern_treasury/resources/legal_entities.rb +4 -4
  96. data/lib/modern_treasury/resources/legal_entity_associations.rb +1 -1
  97. data/lib/modern_treasury/resources/payment_orders/reversals.rb +1 -1
  98. data/lib/modern_treasury/resources/payment_orders.rb +5 -5
  99. data/lib/modern_treasury/resources/returns.rb +1 -1
  100. data/lib/modern_treasury/resources/virtual_accounts.rb +1 -1
  101. data/lib/modern_treasury/version.rb +1 -1
  102. data/lib/modern_treasury.rb +16 -6
  103. data/rbi/modern_treasury/client.rbi +0 -9
  104. data/rbi/modern_treasury/internal/transport/base_client.rbi +1 -1
  105. data/rbi/modern_treasury/internal/type/converter.rbi +58 -0
  106. data/rbi/modern_treasury/internal/type/union.rbi +11 -2
  107. data/rbi/modern_treasury/models/accounting.rbi +48 -0
  108. data/rbi/modern_treasury/models/address.rbi +107 -0
  109. data/rbi/modern_treasury/models/address_request.rbi +76 -0
  110. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +701 -3140
  111. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +511 -0
  112. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +17 -1314
  113. data/rbi/modern_treasury/models/contact_detail.rbi +124 -0
  114. data/rbi/modern_treasury/models/contact_detail_create_request.rbi +99 -0
  115. data/rbi/modern_treasury/models/counterparty.rbi +24 -264
  116. data/rbi/modern_treasury/models/counterparty_create_params.rbi +47 -1718
  117. data/rbi/modern_treasury/models/counterparty_list_params.rbi +11 -0
  118. data/rbi/modern_treasury/models/document.rbi +6 -16
  119. data/rbi/modern_treasury/models/document_create_params.rbi +0 -10
  120. data/rbi/modern_treasury/models/document_list_params.rbi +6 -16
  121. data/rbi/modern_treasury/models/expected_payment.rbi +8 -0
  122. data/rbi/modern_treasury/models/expected_payment_create_params.rbi +12 -419
  123. data/rbi/modern_treasury/models/expected_payment_list_params.rbi +9 -0
  124. data/rbi/modern_treasury/models/expected_payment_update_params.rbi +8 -0
  125. data/rbi/modern_treasury/models/external_account.rbi +15 -244
  126. data/rbi/modern_treasury/models/external_account_create_params.rbi +20 -400
  127. data/rbi/modern_treasury/models/external_account_list_params.rbi +11 -0
  128. data/rbi/modern_treasury/models/external_account_update_params.rbi +4 -86
  129. data/rbi/modern_treasury/models/foreign_exchange_quote.rbi +4 -99
  130. data/rbi/modern_treasury/models/foreign_exchange_rate.rbi +96 -0
  131. data/rbi/modern_treasury/models/identification_create_request.rbi +212 -0
  132. data/rbi/modern_treasury/models/internal_account.rbi +4 -115
  133. data/rbi/modern_treasury/models/internal_account_update_account_capability_params.rbi +54 -0
  134. data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +304 -0
  135. data/rbi/modern_treasury/models/invoice.rbi +3 -128
  136. data/rbi/modern_treasury/models/invoice_create_params.rbi +4 -139
  137. data/rbi/modern_treasury/models/invoice_update_params.rbi +4 -139
  138. data/rbi/modern_treasury/models/ledger_account.rbi +12 -218
  139. data/rbi/modern_treasury/models/ledger_account_balance_monitor.rbi +4 -303
  140. data/rbi/modern_treasury/models/ledger_account_category.rbi +4 -301
  141. data/rbi/modern_treasury/models/ledger_account_category_list_params.rbi +14 -7
  142. data/rbi/modern_treasury/models/ledger_account_category_retrieve_params.rbi +6 -3
  143. data/rbi/modern_treasury/models/ledger_account_create_params.rbi +5 -173
  144. data/rbi/modern_treasury/models/ledger_account_create_request.rbi +194 -0
  145. data/rbi/modern_treasury/models/ledger_account_statement_create_response.rbi +8 -612
  146. data/rbi/modern_treasury/models/ledger_account_statement_retrieve_response.rbi +8 -612
  147. data/rbi/modern_treasury/models/ledger_balance.rbi +66 -0
  148. data/rbi/modern_treasury/models/ledger_balances.rbi +75 -0
  149. data/rbi/modern_treasury/models/ledger_entry.rbi +4 -309
  150. data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +137 -0
  151. data/rbi/modern_treasury/models/ledger_entry_list_params.rbi +13 -8
  152. data/rbi/modern_treasury/models/ledger_transaction.rbi +17 -11
  153. data/rbi/modern_treasury/models/ledger_transaction_create_params.rbi +5 -383
  154. data/rbi/modern_treasury/models/ledger_transaction_create_request.rbi +258 -0
  155. data/rbi/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +0 -5
  156. data/rbi/modern_treasury/models/ledger_transaction_list_params.rbi +93 -18
  157. data/rbi/modern_treasury/models/ledger_transaction_update_params.rbi +7 -158
  158. data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +18 -316
  159. data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +157 -0
  160. data/rbi/modern_treasury/models/legal_entity_association.rbi +5 -0
  161. data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +9 -917
  162. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +17 -1297
  163. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +8 -378
  164. data/rbi/modern_treasury/models/line_item.rbi +4 -52
  165. data/rbi/modern_treasury/models/payment_action_list_params.rbi +10 -0
  166. data/rbi/modern_treasury/models/payment_order.rbi +43 -159
  167. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +28 -882
  168. data/rbi/modern_treasury/models/payment_order_create_params.rbi +28 -887
  169. data/rbi/modern_treasury/models/payment_order_update_params.rbi +24 -460
  170. data/rbi/modern_treasury/models/payment_orders/reversal.rbi +3 -3
  171. data/rbi/modern_treasury/models/payment_orders/reversal_create_params.rbi +4 -415
  172. data/rbi/modern_treasury/models/payment_reference.rbi +35 -5
  173. data/rbi/modern_treasury/models/return_list_params.rbi +6 -11
  174. data/rbi/modern_treasury/models/return_object.rbi +35 -12
  175. data/rbi/modern_treasury/models/routing_detail.rbi +4 -113
  176. data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +4 -87
  177. data/rbi/modern_treasury/models/transaction.rbi +14 -103
  178. data/rbi/modern_treasury/models/transactions/transaction_line_item.rbi +0 -5
  179. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +4 -203
  180. data/rbi/modern_treasury/models.rbi +36 -6
  181. data/rbi/modern_treasury/resources/bulk_requests.rbi +2 -2
  182. data/rbi/modern_treasury/resources/counterparties.rbi +20 -12
  183. data/rbi/modern_treasury/resources/documents.rbi +2 -2
  184. data/rbi/modern_treasury/resources/expected_payments.rbi +9 -1
  185. data/rbi/modern_treasury/resources/external_accounts.rbi +29 -22
  186. data/rbi/modern_treasury/resources/internal_accounts.rbi +24 -0
  187. data/rbi/modern_treasury/resources/invoices.rbi +2 -8
  188. data/rbi/modern_treasury/resources/ledger_account_categories.rbi +7 -3
  189. data/rbi/modern_treasury/resources/ledger_accounts.rbi +1 -1
  190. data/rbi/modern_treasury/resources/ledger_entries.rbi +4 -2
  191. data/rbi/modern_treasury/resources/ledger_transactions.rbi +13 -13
  192. data/rbi/modern_treasury/resources/legal_entities.rbi +4 -8
  193. data/rbi/modern_treasury/resources/legal_entity_associations.rbi +1 -2
  194. data/rbi/modern_treasury/resources/payment_orders/reversals.rbi +1 -1
  195. data/rbi/modern_treasury/resources/payment_orders.rbi +5 -8
  196. data/rbi/modern_treasury/resources/returns.rbi +2 -2
  197. data/rbi/modern_treasury/resources/virtual_accounts.rbi +1 -2
  198. data/sig/modern_treasury/client.rbs +0 -6
  199. data/sig/modern_treasury/internal/transport/base_client.rbs +1 -1
  200. data/sig/modern_treasury/internal/type/converter.rbs +17 -0
  201. data/sig/modern_treasury/internal/type/union.rbs +2 -2
  202. data/sig/modern_treasury/models/accounting.rbs +15 -0
  203. data/sig/modern_treasury/models/address.rbs +70 -0
  204. data/sig/modern_treasury/models/address_request.rbs +45 -0
  205. data/sig/modern_treasury/models/bulk_request_create_params.rbs +88 -1089
  206. data/sig/modern_treasury/models/child_legal_entity_create.rbs +220 -0
  207. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +21 -548
  208. data/sig/modern_treasury/models/contact_detail.rbs +67 -0
  209. data/sig/modern_treasury/models/contact_detail_create_request.rbs +43 -0
  210. data/sig/modern_treasury/models/counterparty.rbs +20 -141
  211. data/sig/modern_treasury/models/counterparty_create_params.rbs +49 -737
  212. data/sig/modern_treasury/models/counterparty_list_params.rbs +7 -0
  213. data/sig/modern_treasury/models/document.rbs +0 -4
  214. data/sig/modern_treasury/models/document_create_params.rbs +0 -4
  215. data/sig/modern_treasury/models/document_list_params.rbs +0 -4
  216. data/sig/modern_treasury/models/expected_payment.rbs +5 -0
  217. data/sig/modern_treasury/models/expected_payment_create_params.rbs +11 -173
  218. data/sig/modern_treasury/models/expected_payment_list_params.rbs +7 -0
  219. data/sig/modern_treasury/models/expected_payment_update_params.rbs +5 -0
  220. data/sig/modern_treasury/models/external_account.rbs +13 -139
  221. data/sig/modern_treasury/models/external_account_create_params.rbs +23 -189
  222. data/sig/modern_treasury/models/external_account_list_params.rbs +7 -0
  223. data/sig/modern_treasury/models/external_account_update_params.rbs +6 -48
  224. data/sig/modern_treasury/models/foreign_exchange_quote.rbs +4 -51
  225. data/sig/modern_treasury/models/foreign_exchange_rate.rbs +50 -0
  226. data/sig/modern_treasury/models/identification_create_request.rbs +93 -0
  227. data/sig/modern_treasury/models/internal_account.rbs +4 -71
  228. data/sig/modern_treasury/models/internal_account_update_account_capability_params.rbs +28 -0
  229. data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +137 -0
  230. data/sig/modern_treasury/models/invoice.rbs +4 -68
  231. data/sig/modern_treasury/models/invoice_create_params.rbs +6 -70
  232. data/sig/modern_treasury/models/invoice_update_params.rbs +6 -70
  233. data/sig/modern_treasury/models/ledger_account.rbs +12 -123
  234. data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +4 -142
  235. data/sig/modern_treasury/models/ledger_account_category.rbs +4 -142
  236. data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +5 -5
  237. data/sig/modern_treasury/models/ledger_account_create_params.rbs +4 -84
  238. data/sig/modern_treasury/models/ledger_account_create_request.rbs +89 -0
  239. data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +8 -284
  240. data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +8 -284
  241. data/sig/modern_treasury/models/ledger_balance.rbs +40 -0
  242. data/sig/modern_treasury/models/ledger_balances.rbs +30 -0
  243. data/sig/modern_treasury/models/ledger_entry.rbs +4 -142
  244. data/sig/modern_treasury/models/ledger_entry_create_request.rbs +62 -0
  245. data/sig/modern_treasury/models/ledger_entry_list_params.rbs +6 -6
  246. data/sig/modern_treasury/models/ledger_transaction.rbs +5 -2
  247. data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +4 -165
  248. data/sig/modern_treasury/models/ledger_transaction_create_request.rbs +109 -0
  249. data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +0 -2
  250. data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +21 -5
  251. data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +6 -67
  252. data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +9 -144
  253. data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +68 -0
  254. data/sig/modern_treasury/models/legal_entity_association.rbs +3 -1
  255. data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +9 -380
  256. data/sig/modern_treasury/models/legal_entity_create_params.rbs +21 -548
  257. data/sig/modern_treasury/models/legal_entity_update_params.rbs +12 -168
  258. data/sig/modern_treasury/models/line_item.rbs +4 -16
  259. data/sig/modern_treasury/models/payment_action_list_params.rbs +4 -1
  260. data/sig/modern_treasury/models/payment_order.rbs +22 -69
  261. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +35 -380
  262. data/sig/modern_treasury/models/payment_order_create_params.rbs +35 -384
  263. data/sig/modern_treasury/models/payment_order_update_params.rbs +29 -207
  264. data/sig/modern_treasury/models/payment_orders/reversal.rbs +4 -4
  265. data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +6 -173
  266. data/sig/modern_treasury/models/payment_reference.rbs +14 -2
  267. data/sig/modern_treasury/models/return_list_params.rbs +1 -6
  268. data/sig/modern_treasury/models/return_object.rbs +15 -10
  269. data/sig/modern_treasury/models/routing_detail.rbs +4 -71
  270. data/sig/modern_treasury/models/routing_number_lookup_request.rbs +6 -48
  271. data/sig/modern_treasury/models/transaction.rbs +8 -53
  272. data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +0 -2
  273. data/sig/modern_treasury/models/virtual_account_create_params.rbs +6 -95
  274. data/sig/modern_treasury/models.rbs +30 -6
  275. data/sig/modern_treasury/resources/counterparties.rbs +2 -0
  276. data/sig/modern_treasury/resources/expected_payments.rbs +4 -1
  277. data/sig/modern_treasury/resources/external_accounts.rbs +6 -4
  278. data/sig/modern_treasury/resources/internal_accounts.rbs +7 -0
  279. data/sig/modern_treasury/resources/invoices.rbs +2 -2
  280. data/sig/modern_treasury/resources/ledger_account_categories.rbs +1 -1
  281. data/sig/modern_treasury/resources/ledger_accounts.rbs +1 -1
  282. data/sig/modern_treasury/resources/ledger_entries.rbs +1 -1
  283. data/sig/modern_treasury/resources/ledger_transactions.rbs +4 -4
  284. data/sig/modern_treasury/resources/legal_entities.rbs +4 -4
  285. data/sig/modern_treasury/resources/legal_entity_associations.rbs +1 -1
  286. data/sig/modern_treasury/resources/payment_orders/reversals.rbs +1 -1
  287. data/sig/modern_treasury/resources/payment_orders.rbs +5 -5
  288. data/sig/modern_treasury/resources/virtual_accounts.rbs +1 -1
  289. metadata +52 -22
  290. data/lib/modern_treasury/models/paper_item.rb +0 -178
  291. data/lib/modern_treasury/models/paper_item_list_params.rb +0 -56
  292. data/lib/modern_treasury/models/paper_item_retrieve_params.rb +0 -14
  293. data/lib/modern_treasury/resources/ledger_event_handlers.rb +0 -14
  294. data/lib/modern_treasury/resources/ledgerable_events.rb +0 -14
  295. data/lib/modern_treasury/resources/paper_items.rb +0 -68
  296. data/rbi/modern_treasury/models/paper_item.rbi +0 -204
  297. data/rbi/modern_treasury/models/paper_item_list_params.rbi +0 -88
  298. data/rbi/modern_treasury/models/paper_item_retrieve_params.rbi +0 -32
  299. data/rbi/modern_treasury/resources/ledger_event_handlers.rbi +0 -12
  300. data/rbi/modern_treasury/resources/ledgerable_events.rbi +0 -12
  301. data/rbi/modern_treasury/resources/paper_items.rbi +0 -51
  302. data/sig/modern_treasury/models/paper_item.rbs +0 -122
  303. data/sig/modern_treasury/models/paper_item_list_params.rbs +0 -54
  304. data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +0 -15
  305. data/sig/modern_treasury/resources/ledger_event_handlers.rbs +0 -7
  306. data/sig/modern_treasury/resources/ledgerable_events.rbs +0 -7
  307. data/sig/modern_treasury/resources/paper_items.rbs +0 -21
@@ -3,7 +3,7 @@ module ModernTreasury
3
3
  type legal_entity_create_params =
4
4
  {
5
5
  legal_entity_type: ModernTreasury::Models::LegalEntityCreateParams::legal_entity_type,
6
- addresses: ::Array[ModernTreasury::LegalEntityCreateParams::Address],
6
+ addresses: ::Array[ModernTreasury::LegalEntityAddressCreateRequest],
7
7
  bank_settings: ModernTreasury::BankSettings?,
8
8
  business_name: String?,
9
9
  citizenship_country: String?,
@@ -13,7 +13,7 @@ module ModernTreasury
13
13
  doing_business_as_names: ::Array[String],
14
14
  email: String?,
15
15
  first_name: String?,
16
- identifications: ::Array[ModernTreasury::LegalEntityCreateParams::Identification],
16
+ identifications: ::Array[ModernTreasury::IdentificationCreateRequest],
17
17
  industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
18
18
  last_name: String?,
19
19
  legal_entity_associations: ::Array[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation]?,
@@ -37,11 +37,11 @@ module ModernTreasury
37
37
 
38
38
  attr_accessor legal_entity_type: ModernTreasury::Models::LegalEntityCreateParams::legal_entity_type
39
39
 
40
- attr_reader addresses: ::Array[ModernTreasury::LegalEntityCreateParams::Address]?
40
+ attr_reader addresses: ::Array[ModernTreasury::LegalEntityAddressCreateRequest]?
41
41
 
42
42
  def addresses=: (
43
- ::Array[ModernTreasury::LegalEntityCreateParams::Address]
44
- ) -> ::Array[ModernTreasury::LegalEntityCreateParams::Address]
43
+ ::Array[ModernTreasury::LegalEntityAddressCreateRequest]
44
+ ) -> ::Array[ModernTreasury::LegalEntityAddressCreateRequest]
45
45
 
46
46
  attr_accessor bank_settings: ModernTreasury::BankSettings?
47
47
 
@@ -63,11 +63,11 @@ module ModernTreasury
63
63
 
64
64
  attr_accessor first_name: String?
65
65
 
66
- attr_reader identifications: ::Array[ModernTreasury::LegalEntityCreateParams::Identification]?
66
+ attr_reader identifications: ::Array[ModernTreasury::IdentificationCreateRequest]?
67
67
 
68
68
  def identifications=: (
69
- ::Array[ModernTreasury::LegalEntityCreateParams::Identification]
70
- ) -> ::Array[ModernTreasury::LegalEntityCreateParams::Identification]
69
+ ::Array[ModernTreasury::IdentificationCreateRequest]
70
+ ) -> ::Array[ModernTreasury::IdentificationCreateRequest]
71
71
 
72
72
  attr_reader industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification]?
73
73
 
@@ -109,7 +109,7 @@ module ModernTreasury
109
109
 
110
110
  def initialize: (
111
111
  legal_entity_type: ModernTreasury::Models::LegalEntityCreateParams::legal_entity_type,
112
- ?addresses: ::Array[ModernTreasury::LegalEntityCreateParams::Address],
112
+ ?addresses: ::Array[ModernTreasury::LegalEntityAddressCreateRequest],
113
113
  ?bank_settings: ModernTreasury::BankSettings?,
114
114
  ?business_name: String?,
115
115
  ?citizenship_country: String?,
@@ -119,7 +119,7 @@ module ModernTreasury
119
119
  ?doing_business_as_names: ::Array[String],
120
120
  ?email: String?,
121
121
  ?first_name: String?,
122
- ?identifications: ::Array[ModernTreasury::LegalEntityCreateParams::Identification],
122
+ ?identifications: ::Array[ModernTreasury::IdentificationCreateRequest],
123
123
  ?industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
124
124
  ?last_name: String?,
125
125
  ?legal_entity_associations: ::Array[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation]?,
@@ -139,7 +139,7 @@ module ModernTreasury
139
139
 
140
140
  def to_hash: -> {
141
141
  legal_entity_type: ModernTreasury::Models::LegalEntityCreateParams::legal_entity_type,
142
- addresses: ::Array[ModernTreasury::LegalEntityCreateParams::Address],
142
+ addresses: ::Array[ModernTreasury::LegalEntityAddressCreateRequest],
143
143
  bank_settings: ModernTreasury::BankSettings?,
144
144
  business_name: String?,
145
145
  citizenship_country: String?,
@@ -149,7 +149,7 @@ module ModernTreasury
149
149
  doing_business_as_names: ::Array[String],
150
150
  email: String?,
151
151
  first_name: String?,
152
- identifications: ::Array[ModernTreasury::LegalEntityCreateParams::Identification],
152
+ identifications: ::Array[ModernTreasury::IdentificationCreateRequest],
153
153
  industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
154
154
  last_name: String?,
155
155
  legal_entity_associations: ::Array[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation]?,
@@ -178,166 +178,10 @@ module ModernTreasury
178
178
  def self?.values: -> ::Array[ModernTreasury::Models::LegalEntityCreateParams::legal_entity_type]
179
179
  end
180
180
 
181
- type address =
182
- {
183
- country: String?,
184
- :line1 => String?,
185
- locality: String?,
186
- postal_code: String?,
187
- region: String?,
188
- address_types: ::Array[ModernTreasury::Models::LegalEntityCreateParams::Address::address_type],
189
- :line2 => String?
190
- }
191
-
192
- class Address < ModernTreasury::Internal::Type::BaseModel
193
- attr_accessor country: String?
194
-
195
- attr_accessor line1: String?
196
-
197
- attr_accessor locality: String?
198
-
199
- attr_accessor postal_code: String?
200
-
201
- attr_accessor region: String?
202
-
203
- attr_reader address_types: ::Array[ModernTreasury::Models::LegalEntityCreateParams::Address::address_type]?
204
-
205
- def address_types=: (
206
- ::Array[ModernTreasury::Models::LegalEntityCreateParams::Address::address_type]
207
- ) -> ::Array[ModernTreasury::Models::LegalEntityCreateParams::Address::address_type]
208
-
209
- attr_accessor line2: String?
210
-
211
- def initialize: (
212
- country: String?,
213
- line1: String?,
214
- locality: String?,
215
- postal_code: String?,
216
- region: String?,
217
- ?address_types: ::Array[ModernTreasury::Models::LegalEntityCreateParams::Address::address_type],
218
- ?line2: String?
219
- ) -> void
220
-
221
- def to_hash: -> {
222
- country: String?,
223
- :line1 => String?,
224
- locality: String?,
225
- postal_code: String?,
226
- region: String?,
227
- address_types: ::Array[ModernTreasury::Models::LegalEntityCreateParams::Address::address_type],
228
- :line2 => String?
229
- }
230
-
231
- type address_type =
232
- :business | :mailing | :other | :po_box | :residential
233
-
234
- module AddressType
235
- extend ModernTreasury::Internal::Type::Enum
236
-
237
- BUSINESS: :business
238
- MAILING: :mailing
239
- OTHER: :other
240
- PO_BOX: :po_box
241
- RESIDENTIAL: :residential
242
-
243
- def self?.values: -> ::Array[ModernTreasury::Models::LegalEntityCreateParams::Address::address_type]
244
- end
245
- end
246
-
247
- type identification =
248
- {
249
- id_number: String,
250
- id_type: ModernTreasury::Models::LegalEntityCreateParams::Identification::id_type,
251
- expiration_date: Date?,
252
- issuing_country: String?,
253
- issuing_region: String?
254
- }
255
-
256
- class Identification < ModernTreasury::Internal::Type::BaseModel
257
- attr_accessor id_number: String
258
-
259
- attr_accessor id_type: ModernTreasury::Models::LegalEntityCreateParams::Identification::id_type
260
-
261
- attr_accessor expiration_date: Date?
262
-
263
- attr_accessor issuing_country: String?
264
-
265
- attr_accessor issuing_region: String?
266
-
267
- def initialize: (
268
- id_number: String,
269
- id_type: ModernTreasury::Models::LegalEntityCreateParams::Identification::id_type,
270
- ?expiration_date: Date?,
271
- ?issuing_country: String?,
272
- ?issuing_region: String?
273
- ) -> void
274
-
275
- def to_hash: -> {
276
- id_number: String,
277
- id_type: ModernTreasury::Models::LegalEntityCreateParams::Identification::id_type,
278
- expiration_date: Date?,
279
- issuing_country: String?,
280
- issuing_region: String?
281
- }
282
-
283
- type id_type =
284
- :ar_cuil
285
- | :ar_cuit
286
- | :br_cnpj
287
- | :br_cpf
288
- | :cl_run
289
- | :cl_rut
290
- | :co_cedulas
291
- | :co_nit
292
- | :drivers_license
293
- | :hn_id
294
- | :hn_rtn
295
- | :in_lei
296
- | :kr_brn
297
- | :kr_crn
298
- | :kr_rrn
299
- | :passport
300
- | :sa_tin
301
- | :sa_vat
302
- | :us_ein
303
- | :us_itin
304
- | :us_ssn
305
- | :vn_tin
306
-
307
- module IDType
308
- extend ModernTreasury::Internal::Type::Enum
309
-
310
- AR_CUIL: :ar_cuil
311
- AR_CUIT: :ar_cuit
312
- BR_CNPJ: :br_cnpj
313
- BR_CPF: :br_cpf
314
- CL_RUN: :cl_run
315
- CL_RUT: :cl_rut
316
- CO_CEDULAS: :co_cedulas
317
- CO_NIT: :co_nit
318
- DRIVERS_LICENSE: :drivers_license
319
- HN_ID: :hn_id
320
- HN_RTN: :hn_rtn
321
- IN_LEI: :in_lei
322
- KR_BRN: :kr_brn
323
- KR_CRN: :kr_crn
324
- KR_RRN: :kr_rrn
325
- PASSPORT: :passport
326
- SA_TIN: :sa_tin
327
- SA_VAT: :sa_vat
328
- US_EIN: :us_ein
329
- US_ITIN: :us_itin
330
- US_SSN: :us_ssn
331
- VN_TIN: :vn_tin
332
-
333
- def self?.values: -> ::Array[ModernTreasury::Models::LegalEntityCreateParams::Identification::id_type]
334
- end
335
- end
336
-
337
181
  type legal_entity_association =
338
182
  {
339
183
  relationship_types: ::Array[ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::relationship_type],
340
- child_legal_entity: ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity,
184
+ child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
341
185
  child_legal_entity_id: String,
342
186
  ownership_percentage: Integer?,
343
187
  title: String?
@@ -346,11 +190,11 @@ module ModernTreasury
346
190
  class LegalEntityAssociation < ModernTreasury::Internal::Type::BaseModel
347
191
  attr_accessor relationship_types: ::Array[ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::relationship_type]
348
192
 
349
- attr_reader child_legal_entity: ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity?
193
+ attr_reader child_legal_entity: ModernTreasury::ChildLegalEntityCreate?
350
194
 
351
195
  def child_legal_entity=: (
352
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity
353
- ) -> ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity
196
+ ModernTreasury::ChildLegalEntityCreate
197
+ ) -> ModernTreasury::ChildLegalEntityCreate
354
198
 
355
199
  attr_reader child_legal_entity_id: String?
356
200
 
@@ -362,7 +206,7 @@ module ModernTreasury
362
206
 
363
207
  def initialize: (
364
208
  relationship_types: ::Array[ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::relationship_type],
365
- ?child_legal_entity: ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity,
209
+ ?child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
366
210
  ?child_legal_entity_id: String,
367
211
  ?ownership_percentage: Integer?,
368
212
  ?title: String?
@@ -370,395 +214,24 @@ module ModernTreasury
370
214
 
371
215
  def to_hash: -> {
372
216
  relationship_types: ::Array[ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::relationship_type],
373
- child_legal_entity: ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity,
217
+ child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
374
218
  child_legal_entity_id: String,
375
219
  ownership_percentage: Integer?,
376
220
  title: String?
377
221
  }
378
222
 
379
- type relationship_type = :beneficial_owner | :control_person
223
+ type relationship_type =
224
+ :authorized_signer | :beneficial_owner | :control_person
380
225
 
381
226
  module RelationshipType
382
227
  extend ModernTreasury::Internal::Type::Enum
383
228
 
229
+ AUTHORIZED_SIGNER: :authorized_signer
384
230
  BENEFICIAL_OWNER: :beneficial_owner
385
231
  CONTROL_PERSON: :control_person
386
232
 
387
233
  def self?.values: -> ::Array[ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::relationship_type]
388
234
  end
389
-
390
- type child_legal_entity =
391
- {
392
- addresses: ::Array[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address],
393
- bank_settings: ModernTreasury::BankSettings?,
394
- business_name: String?,
395
- citizenship_country: String?,
396
- compliance_details: ModernTreasury::LegalEntityComplianceDetail?,
397
- date_formed: Date?,
398
- date_of_birth: Date?,
399
- doing_business_as_names: ::Array[String],
400
- email: String?,
401
- first_name: String?,
402
- identifications: ::Array[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification],
403
- industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
404
- last_name: String?,
405
- legal_entity_type: ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::legal_entity_type,
406
- legal_structure: ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::legal_structure?,
407
- metadata: ::Hash[Symbol, String],
408
- middle_name: String?,
409
- phone_numbers: ::Array[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::PhoneNumber],
410
- politically_exposed_person: bool?,
411
- preferred_name: String?,
412
- prefix: String?,
413
- risk_rating: ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::risk_rating?,
414
- suffix: String?,
415
- wealth_and_employment_details: ModernTreasury::WealthAndEmploymentDetails?,
416
- website: String?
417
- }
418
-
419
- class ChildLegalEntity < ModernTreasury::Internal::Type::BaseModel
420
- attr_reader addresses: ::Array[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address]?
421
-
422
- def addresses=: (
423
- ::Array[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address]
424
- ) -> ::Array[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address]
425
-
426
- attr_accessor bank_settings: ModernTreasury::BankSettings?
427
-
428
- attr_accessor business_name: String?
429
-
430
- attr_accessor citizenship_country: String?
431
-
432
- attr_accessor compliance_details: ModernTreasury::LegalEntityComplianceDetail?
433
-
434
- attr_accessor date_formed: Date?
435
-
436
- attr_accessor date_of_birth: Date?
437
-
438
- attr_reader doing_business_as_names: ::Array[String]?
439
-
440
- def doing_business_as_names=: (::Array[String]) -> ::Array[String]
441
-
442
- attr_accessor email: String?
443
-
444
- attr_accessor first_name: String?
445
-
446
- attr_reader identifications: ::Array[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification]?
447
-
448
- def identifications=: (
449
- ::Array[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification]
450
- ) -> ::Array[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification]
451
-
452
- attr_reader industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification]?
453
-
454
- def industry_classifications=: (
455
- ::Array[ModernTreasury::LegalEntityIndustryClassification]
456
- ) -> ::Array[ModernTreasury::LegalEntityIndustryClassification]
457
-
458
- attr_accessor last_name: String?
459
-
460
- attr_reader legal_entity_type: ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::legal_entity_type?
461
-
462
- def legal_entity_type=: (
463
- ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::legal_entity_type
464
- ) -> ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::legal_entity_type
465
-
466
- attr_accessor legal_structure: ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::legal_structure?
467
-
468
- attr_reader metadata: ::Hash[Symbol, String]?
469
-
470
- def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
471
-
472
- attr_accessor middle_name: String?
473
-
474
- attr_reader phone_numbers: ::Array[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::PhoneNumber]?
475
-
476
- def phone_numbers=: (
477
- ::Array[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::PhoneNumber]
478
- ) -> ::Array[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::PhoneNumber]
479
-
480
- attr_accessor politically_exposed_person: bool?
481
-
482
- attr_accessor preferred_name: String?
483
-
484
- attr_accessor prefix: String?
485
-
486
- attr_accessor risk_rating: ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::risk_rating?
487
-
488
- attr_accessor suffix: String?
489
-
490
- attr_accessor wealth_and_employment_details: ModernTreasury::WealthAndEmploymentDetails?
491
-
492
- attr_accessor website: String?
493
-
494
- def initialize: (
495
- ?addresses: ::Array[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address],
496
- ?bank_settings: ModernTreasury::BankSettings?,
497
- ?business_name: String?,
498
- ?citizenship_country: String?,
499
- ?compliance_details: ModernTreasury::LegalEntityComplianceDetail?,
500
- ?date_formed: Date?,
501
- ?date_of_birth: Date?,
502
- ?doing_business_as_names: ::Array[String],
503
- ?email: String?,
504
- ?first_name: String?,
505
- ?identifications: ::Array[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification],
506
- ?industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
507
- ?last_name: String?,
508
- ?legal_entity_type: ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::legal_entity_type,
509
- ?legal_structure: ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::legal_structure?,
510
- ?metadata: ::Hash[Symbol, String],
511
- ?middle_name: String?,
512
- ?phone_numbers: ::Array[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::PhoneNumber],
513
- ?politically_exposed_person: bool?,
514
- ?preferred_name: String?,
515
- ?prefix: String?,
516
- ?risk_rating: ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::risk_rating?,
517
- ?suffix: String?,
518
- ?wealth_and_employment_details: ModernTreasury::WealthAndEmploymentDetails?,
519
- ?website: String?
520
- ) -> void
521
-
522
- def to_hash: -> {
523
- addresses: ::Array[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address],
524
- bank_settings: ModernTreasury::BankSettings?,
525
- business_name: String?,
526
- citizenship_country: String?,
527
- compliance_details: ModernTreasury::LegalEntityComplianceDetail?,
528
- date_formed: Date?,
529
- date_of_birth: Date?,
530
- doing_business_as_names: ::Array[String],
531
- email: String?,
532
- first_name: String?,
533
- identifications: ::Array[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification],
534
- industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
535
- last_name: String?,
536
- legal_entity_type: ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::legal_entity_type,
537
- legal_structure: ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::legal_structure?,
538
- metadata: ::Hash[Symbol, String],
539
- middle_name: String?,
540
- phone_numbers: ::Array[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::PhoneNumber],
541
- politically_exposed_person: bool?,
542
- preferred_name: String?,
543
- prefix: String?,
544
- risk_rating: ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::risk_rating?,
545
- suffix: String?,
546
- wealth_and_employment_details: ModernTreasury::WealthAndEmploymentDetails?,
547
- website: String?
548
- }
549
-
550
- type address =
551
- {
552
- country: String?,
553
- :line1 => String?,
554
- locality: String?,
555
- postal_code: String?,
556
- region: String?,
557
- address_types: ::Array[ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::address_type],
558
- :line2 => String?
559
- }
560
-
561
- class Address < ModernTreasury::Internal::Type::BaseModel
562
- attr_accessor country: String?
563
-
564
- attr_accessor line1: String?
565
-
566
- attr_accessor locality: String?
567
-
568
- attr_accessor postal_code: String?
569
-
570
- attr_accessor region: String?
571
-
572
- attr_reader address_types: ::Array[ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::address_type]?
573
-
574
- def address_types=: (
575
- ::Array[ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::address_type]
576
- ) -> ::Array[ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::address_type]
577
-
578
- attr_accessor line2: String?
579
-
580
- def initialize: (
581
- country: String?,
582
- line1: String?,
583
- locality: String?,
584
- postal_code: String?,
585
- region: String?,
586
- ?address_types: ::Array[ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::address_type],
587
- ?line2: String?
588
- ) -> void
589
-
590
- def to_hash: -> {
591
- country: String?,
592
- :line1 => String?,
593
- locality: String?,
594
- postal_code: String?,
595
- region: String?,
596
- address_types: ::Array[ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::address_type],
597
- :line2 => String?
598
- }
599
-
600
- type address_type =
601
- :business | :mailing | :other | :po_box | :residential
602
-
603
- module AddressType
604
- extend ModernTreasury::Internal::Type::Enum
605
-
606
- BUSINESS: :business
607
- MAILING: :mailing
608
- OTHER: :other
609
- PO_BOX: :po_box
610
- RESIDENTIAL: :residential
611
-
612
- def self?.values: -> ::Array[ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::address_type]
613
- end
614
- end
615
-
616
- type identification =
617
- {
618
- id_number: String,
619
- id_type: ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::id_type,
620
- expiration_date: Date?,
621
- issuing_country: String?,
622
- issuing_region: String?
623
- }
624
-
625
- class Identification < ModernTreasury::Internal::Type::BaseModel
626
- attr_accessor id_number: String
627
-
628
- attr_accessor id_type: ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::id_type
629
-
630
- attr_accessor expiration_date: Date?
631
-
632
- attr_accessor issuing_country: String?
633
-
634
- attr_accessor issuing_region: String?
635
-
636
- def initialize: (
637
- id_number: String,
638
- id_type: ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::id_type,
639
- ?expiration_date: Date?,
640
- ?issuing_country: String?,
641
- ?issuing_region: String?
642
- ) -> void
643
-
644
- def to_hash: -> {
645
- id_number: String,
646
- id_type: ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::id_type,
647
- expiration_date: Date?,
648
- issuing_country: String?,
649
- issuing_region: String?
650
- }
651
-
652
- type id_type =
653
- :ar_cuil
654
- | :ar_cuit
655
- | :br_cnpj
656
- | :br_cpf
657
- | :cl_run
658
- | :cl_rut
659
- | :co_cedulas
660
- | :co_nit
661
- | :drivers_license
662
- | :hn_id
663
- | :hn_rtn
664
- | :in_lei
665
- | :kr_brn
666
- | :kr_crn
667
- | :kr_rrn
668
- | :passport
669
- | :sa_tin
670
- | :sa_vat
671
- | :us_ein
672
- | :us_itin
673
- | :us_ssn
674
- | :vn_tin
675
-
676
- module IDType
677
- extend ModernTreasury::Internal::Type::Enum
678
-
679
- AR_CUIL: :ar_cuil
680
- AR_CUIT: :ar_cuit
681
- BR_CNPJ: :br_cnpj
682
- BR_CPF: :br_cpf
683
- CL_RUN: :cl_run
684
- CL_RUT: :cl_rut
685
- CO_CEDULAS: :co_cedulas
686
- CO_NIT: :co_nit
687
- DRIVERS_LICENSE: :drivers_license
688
- HN_ID: :hn_id
689
- HN_RTN: :hn_rtn
690
- IN_LEI: :in_lei
691
- KR_BRN: :kr_brn
692
- KR_CRN: :kr_crn
693
- KR_RRN: :kr_rrn
694
- PASSPORT: :passport
695
- SA_TIN: :sa_tin
696
- SA_VAT: :sa_vat
697
- US_EIN: :us_ein
698
- US_ITIN: :us_itin
699
- US_SSN: :us_ssn
700
- VN_TIN: :vn_tin
701
-
702
- def self?.values: -> ::Array[ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::id_type]
703
- end
704
- end
705
-
706
- type legal_entity_type = :business | :individual
707
-
708
- module LegalEntityType
709
- extend ModernTreasury::Internal::Type::Enum
710
-
711
- BUSINESS: :business
712
- INDIVIDUAL: :individual
713
-
714
- def self?.values: -> ::Array[ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::legal_entity_type]
715
- end
716
-
717
- type legal_structure =
718
- :corporation
719
- | :llc
720
- | :non_profit
721
- | :partnership
722
- | :sole_proprietorship
723
- | :trust
724
-
725
- module LegalStructure
726
- extend ModernTreasury::Internal::Type::Enum
727
-
728
- CORPORATION: :corporation
729
- LLC: :llc
730
- NON_PROFIT: :non_profit
731
- PARTNERSHIP: :partnership
732
- SOLE_PROPRIETORSHIP: :sole_proprietorship
733
- TRUST: :trust
734
-
735
- def self?.values: -> ::Array[ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::legal_structure]
736
- end
737
-
738
- type phone_number = { phone_number: String }
739
-
740
- class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
741
- attr_reader phone_number: String?
742
-
743
- def phone_number=: (String) -> String
744
-
745
- def initialize: (?phone_number: String) -> void
746
-
747
- def to_hash: -> { phone_number: String }
748
- end
749
-
750
- type risk_rating = :low | :medium | :high
751
-
752
- module RiskRating
753
- extend ModernTreasury::Internal::Type::Enum
754
-
755
- LOW: :low
756
- MEDIUM: :medium
757
- HIGH: :high
758
-
759
- def self?.values: -> ::Array[ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::risk_rating]
760
- end
761
- end
762
235
  end
763
236
 
764
237
  type legal_structure =