modern_treasury 0.0.0 → 0.1.0.pre.alpha.15

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 (827) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +125 -0
  3. data/lib/modern_treasury/base_client.rb +475 -0
  4. data/lib/modern_treasury/base_model.rb +1191 -0
  5. data/lib/modern_treasury/base_page.rb +40 -0
  6. data/lib/modern_treasury/client.rb +236 -0
  7. data/lib/modern_treasury/errors.rb +187 -0
  8. data/lib/modern_treasury/extern.rb +10 -0
  9. data/lib/modern_treasury/models/account_collection_flow.rb +244 -0
  10. data/lib/modern_treasury/models/account_collection_flow_create_params.rb +91 -0
  11. data/lib/modern_treasury/models/account_collection_flow_list_params.rb +85 -0
  12. data/lib/modern_treasury/models/account_collection_flow_retrieve_params.rb +18 -0
  13. data/lib/modern_treasury/models/account_collection_flow_update_params.rb +49 -0
  14. data/lib/modern_treasury/models/account_detail.rb +132 -0
  15. data/lib/modern_treasury/models/account_detail_create_params.rb +106 -0
  16. data/lib/modern_treasury/models/account_detail_delete_params.rb +50 -0
  17. data/lib/modern_treasury/models/account_detail_list_params.rb +40 -0
  18. data/lib/modern_treasury/models/account_detail_retrieve_params.rb +30 -0
  19. data/lib/modern_treasury/models/accounts_type.rb +28 -0
  20. data/lib/modern_treasury/models/async_response.rb +25 -0
  21. data/lib/modern_treasury/models/bank_settings.rb +97 -0
  22. data/lib/modern_treasury/models/bulk_request.rb +200 -0
  23. data/lib/modern_treasury/models/bulk_request_create_params.rb +4666 -0
  24. data/lib/modern_treasury/models/bulk_request_list_params.rb +178 -0
  25. data/lib/modern_treasury/models/bulk_request_retrieve_params.rb +18 -0
  26. data/lib/modern_treasury/models/bulk_result.rb +323 -0
  27. data/lib/modern_treasury/models/bulk_result_list_params.rb +190 -0
  28. data/lib/modern_treasury/models/bulk_result_retrieve_params.rb +18 -0
  29. data/lib/modern_treasury/models/client_ping_params.rb +18 -0
  30. data/lib/modern_treasury/models/connection.rb +85 -0
  31. data/lib/modern_treasury/models/connection_legal_entity.rb +124 -0
  32. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +1191 -0
  33. data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +103 -0
  34. data/lib/modern_treasury/models/connection_legal_entity_retrieve_params.rb +18 -0
  35. data/lib/modern_treasury/models/connection_legal_entity_update_params.rb +51 -0
  36. data/lib/modern_treasury/models/connection_list_params.rb +56 -0
  37. data/lib/modern_treasury/models/counterparty.rb +623 -0
  38. data/lib/modern_treasury/models/counterparty_collect_account_params.rb +128 -0
  39. data/lib/modern_treasury/models/counterparty_collect_account_response.rb +38 -0
  40. data/lib/modern_treasury/models/counterparty_create_params.rb +2033 -0
  41. data/lib/modern_treasury/models/counterparty_delete_params.rb +18 -0
  42. data/lib/modern_treasury/models/counterparty_list_params.rb +117 -0
  43. data/lib/modern_treasury/models/counterparty_retrieve_params.rb +18 -0
  44. data/lib/modern_treasury/models/counterparty_update_params.rb +93 -0
  45. data/lib/modern_treasury/models/currency.rb +225 -0
  46. data/lib/modern_treasury/models/document.rb +266 -0
  47. data/lib/modern_treasury/models/document_create_params.rb +89 -0
  48. data/lib/modern_treasury/models/document_list_params.rb +103 -0
  49. data/lib/modern_treasury/models/document_retrieve_params.rb +18 -0
  50. data/lib/modern_treasury/models/event.rb +94 -0
  51. data/lib/modern_treasury/models/event_list_params.rb +98 -0
  52. data/lib/modern_treasury/models/event_retrieve_params.rb +18 -0
  53. data/lib/modern_treasury/models/expected_payment.rb +322 -0
  54. data/lib/modern_treasury/models/expected_payment_create_params.rb +580 -0
  55. data/lib/modern_treasury/models/expected_payment_delete_params.rb +18 -0
  56. data/lib/modern_treasury/models/expected_payment_list_params.rb +233 -0
  57. data/lib/modern_treasury/models/expected_payment_retrieve_params.rb +18 -0
  58. data/lib/modern_treasury/models/expected_payment_type.rb +67 -0
  59. data/lib/modern_treasury/models/expected_payment_update_params.rb +227 -0
  60. data/lib/modern_treasury/models/external_account.rb +436 -0
  61. data/lib/modern_treasury/models/external_account_complete_verification_params.rb +28 -0
  62. data/lib/modern_treasury/models/external_account_create_params.rb +662 -0
  63. data/lib/modern_treasury/models/external_account_delete_params.rb +18 -0
  64. data/lib/modern_treasury/models/external_account_list_params.rb +78 -0
  65. data/lib/modern_treasury/models/external_account_retrieve_params.rb +18 -0
  66. data/lib/modern_treasury/models/external_account_type.rb +44 -0
  67. data/lib/modern_treasury/models/external_account_update_params.rb +170 -0
  68. data/lib/modern_treasury/models/external_account_verify_params.rb +190 -0
  69. data/lib/modern_treasury/models/external_account_verify_response.rb +236 -0
  70. data/lib/modern_treasury/models/foreign_exchange_quote.rb +180 -0
  71. data/lib/modern_treasury/models/foreign_exchange_quote_create_params.rb +89 -0
  72. data/lib/modern_treasury/models/foreign_exchange_quote_list_params.rb +127 -0
  73. data/lib/modern_treasury/models/foreign_exchange_quote_retrieve_params.rb +18 -0
  74. data/lib/modern_treasury/models/incoming_payment_detail.rb +390 -0
  75. data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +171 -0
  76. data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +202 -0
  77. data/lib/modern_treasury/models/incoming_payment_detail_retrieve_params.rb +18 -0
  78. data/lib/modern_treasury/models/incoming_payment_detail_update_params.rb +30 -0
  79. data/lib/modern_treasury/models/internal_account.rb +329 -0
  80. data/lib/modern_treasury/models/internal_account_create_params.rb +197 -0
  81. data/lib/modern_treasury/models/internal_account_list_params.rb +176 -0
  82. data/lib/modern_treasury/models/internal_account_retrieve_params.rb +18 -0
  83. data/lib/modern_treasury/models/internal_account_update_params.rb +84 -0
  84. data/lib/modern_treasury/models/internal_accounts/balance_report.rb +294 -0
  85. data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +169 -0
  86. data/lib/modern_treasury/models/internal_accounts/balance_report_delete_params.rb +26 -0
  87. data/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rb +92 -0
  88. data/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb +26 -0
  89. data/lib/modern_treasury/models/invoice.rb +679 -0
  90. data/lib/modern_treasury/models/invoice_add_payment_order_params.rb +24 -0
  91. data/lib/modern_treasury/models/invoice_create_params.rb +674 -0
  92. data/lib/modern_treasury/models/invoice_list_params.rb +181 -0
  93. data/lib/modern_treasury/models/invoice_retrieve_params.rb +18 -0
  94. data/lib/modern_treasury/models/invoice_update_params.rb +690 -0
  95. data/lib/modern_treasury/models/invoices/invoice_line_item.rb +130 -0
  96. data/lib/modern_treasury/models/invoices/line_item_create_params.rb +108 -0
  97. data/lib/modern_treasury/models/invoices/line_item_delete_params.rb +26 -0
  98. data/lib/modern_treasury/models/invoices/line_item_list_params.rb +36 -0
  99. data/lib/modern_treasury/models/invoices/line_item_retrieve_params.rb +26 -0
  100. data/lib/modern_treasury/models/invoices/line_item_update_params.rb +123 -0
  101. data/lib/modern_treasury/models/ledger.rb +73 -0
  102. data/lib/modern_treasury/models/ledger_account.rb +366 -0
  103. data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +337 -0
  104. data/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rb +92 -0
  105. data/lib/modern_treasury/models/ledger_account_balance_monitor_delete_params.rb +18 -0
  106. data/lib/modern_treasury/models/ledger_account_balance_monitor_list_params.rb +70 -0
  107. data/lib/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rb +18 -0
  108. data/lib/modern_treasury/models/ledger_account_balance_monitor_update_params.rb +41 -0
  109. data/lib/modern_treasury/models/ledger_account_category.rb +282 -0
  110. data/lib/modern_treasury/models/ledger_account_category_add_ledger_account_params.rb +24 -0
  111. data/lib/modern_treasury/models/ledger_account_category_add_nested_category_params.rb +24 -0
  112. data/lib/modern_treasury/models/ledger_account_category_create_params.rb +97 -0
  113. data/lib/modern_treasury/models/ledger_account_category_delete_params.rb +18 -0
  114. data/lib/modern_treasury/models/ledger_account_category_list_params.rb +162 -0
  115. data/lib/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rb +24 -0
  116. data/lib/modern_treasury/models/ledger_account_category_remove_nested_category_params.rb +24 -0
  117. data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +63 -0
  118. data/lib/modern_treasury/models/ledger_account_category_update_params.rb +48 -0
  119. data/lib/modern_treasury/models/ledger_account_create_params.rb +157 -0
  120. data/lib/modern_treasury/models/ledger_account_delete_params.rb +18 -0
  121. data/lib/modern_treasury/models/ledger_account_list_params.rb +467 -0
  122. data/lib/modern_treasury/models/ledger_account_retrieve_params.rb +108 -0
  123. data/lib/modern_treasury/models/ledger_account_settlement.rb +194 -0
  124. data/lib/modern_treasury/models/ledger_account_settlement_create_params.rb +128 -0
  125. data/lib/modern_treasury/models/ledger_account_settlement_list_params.rb +140 -0
  126. data/lib/modern_treasury/models/ledger_account_settlement_retrieve_params.rb +18 -0
  127. data/lib/modern_treasury/models/ledger_account_settlement_update_params.rb +75 -0
  128. data/lib/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rb +28 -0
  129. data/lib/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rb +28 -0
  130. data/lib/modern_treasury/models/ledger_account_statement_create_params.rb +71 -0
  131. data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +488 -0
  132. data/lib/modern_treasury/models/ledger_account_statement_retrieve_params.rb +18 -0
  133. data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +488 -0
  134. data/lib/modern_treasury/models/ledger_account_update_params.rb +48 -0
  135. data/lib/modern_treasury/models/ledger_create_params.rb +44 -0
  136. data/lib/modern_treasury/models/ledger_delete_params.rb +18 -0
  137. data/lib/modern_treasury/models/ledger_entry.rb +359 -0
  138. data/lib/modern_treasury/models/ledger_entry_list_params.rb +380 -0
  139. data/lib/modern_treasury/models/ledger_entry_retrieve_params.rb +30 -0
  140. data/lib/modern_treasury/models/ledger_entry_update_params.rb +30 -0
  141. data/lib/modern_treasury/models/ledger_event_handler.rb +214 -0
  142. data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +182 -0
  143. data/lib/modern_treasury/models/ledger_event_handler_delete_params.rb +18 -0
  144. data/lib/modern_treasury/models/ledger_event_handler_list_params.rb +70 -0
  145. data/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rb +18 -0
  146. data/lib/modern_treasury/models/ledger_event_handler_variable.rb +56 -0
  147. data/lib/modern_treasury/models/ledger_list_params.rb +72 -0
  148. data/lib/modern_treasury/models/ledger_retrieve_params.rb +18 -0
  149. data/lib/modern_treasury/models/ledger_transaction.rb +245 -0
  150. data/lib/modern_treasury/models/ledger_transaction_create_params.rb +304 -0
  151. data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +138 -0
  152. data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +178 -0
  153. data/lib/modern_treasury/models/ledger_transaction_list_params.rb +389 -0
  154. data/lib/modern_treasury/models/ledger_transaction_retrieve_params.rb +18 -0
  155. data/lib/modern_treasury/models/ledger_transaction_update_params.rb +282 -0
  156. data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +600 -0
  157. data/lib/modern_treasury/models/ledger_transactions/version_list_params.rb +96 -0
  158. data/lib/modern_treasury/models/ledger_update_params.rb +48 -0
  159. data/lib/modern_treasury/models/ledgerable_event.rb +95 -0
  160. data/lib/modern_treasury/models/ledgerable_event_create_params.rb +51 -0
  161. data/lib/modern_treasury/models/ledgerable_event_retrieve_params.rb +18 -0
  162. data/lib/modern_treasury/models/legal_entity.rb +624 -0
  163. data/lib/modern_treasury/models/legal_entity_association.rb +746 -0
  164. data/lib/modern_treasury/models/legal_entity_association_create_params.rb +620 -0
  165. data/lib/modern_treasury/models/legal_entity_create_params.rb +1131 -0
  166. data/lib/modern_treasury/models/legal_entity_list_params.rb +100 -0
  167. data/lib/modern_treasury/models/legal_entity_retrieve_params.rb +18 -0
  168. data/lib/modern_treasury/models/legal_entity_update_params.rb +484 -0
  169. data/lib/modern_treasury/models/line_item.rb +172 -0
  170. data/lib/modern_treasury/models/line_item_list_params.rb +63 -0
  171. data/lib/modern_treasury/models/line_item_retrieve_params.rb +53 -0
  172. data/lib/modern_treasury/models/line_item_update_params.rb +65 -0
  173. data/lib/modern_treasury/models/paper_item.rb +188 -0
  174. data/lib/modern_treasury/models/paper_item_list_params.rb +78 -0
  175. data/lib/modern_treasury/models/paper_item_retrieve_params.rb +18 -0
  176. data/lib/modern_treasury/models/payment_flow.rb +339 -0
  177. data/lib/modern_treasury/models/payment_flow_create_params.rb +106 -0
  178. data/lib/modern_treasury/models/payment_flow_list_params.rb +107 -0
  179. data/lib/modern_treasury/models/payment_flow_retrieve_params.rb +18 -0
  180. data/lib/modern_treasury/models/payment_flow_update_params.rb +49 -0
  181. data/lib/modern_treasury/models/payment_order.rb +933 -0
  182. data/lib/modern_treasury/models/payment_order_create_async_params.rb +1566 -0
  183. data/lib/modern_treasury/models/payment_order_create_params.rb +1657 -0
  184. data/lib/modern_treasury/models/payment_order_list_params.rb +346 -0
  185. data/lib/modern_treasury/models/payment_order_retrieve_params.rb +18 -0
  186. data/lib/modern_treasury/models/payment_order_subtype.rb +68 -0
  187. data/lib/modern_treasury/models/payment_order_type.rb +68 -0
  188. data/lib/modern_treasury/models/payment_order_update_params.rb +1312 -0
  189. data/lib/modern_treasury/models/payment_orders/reversal.rb +175 -0
  190. data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +389 -0
  191. data/lib/modern_treasury/models/payment_orders/reversal_list_params.rb +36 -0
  192. data/lib/modern_treasury/models/payment_orders/reversal_retrieve_params.rb +26 -0
  193. data/lib/modern_treasury/models/payment_reference.rb +220 -0
  194. data/lib/modern_treasury/models/payment_reference_list_params.rb +109 -0
  195. data/lib/modern_treasury/models/payment_reference_retireve_params.rb +18 -0
  196. data/lib/modern_treasury/models/payment_reference_retrieve_params.rb +18 -0
  197. data/lib/modern_treasury/models/ping_response.rb +19 -0
  198. data/lib/modern_treasury/models/reconciliation_rule.rb +193 -0
  199. data/lib/modern_treasury/models/return_create_params.rb +182 -0
  200. data/lib/modern_treasury/models/return_list_params.rb +127 -0
  201. data/lib/modern_treasury/models/return_object.rb +588 -0
  202. data/lib/modern_treasury/models/return_retrieve_params.rb +18 -0
  203. data/lib/modern_treasury/models/routing_detail.rb +314 -0
  204. data/lib/modern_treasury/models/routing_detail_create_params.rb +187 -0
  205. data/lib/modern_treasury/models/routing_detail_delete_params.rb +50 -0
  206. data/lib/modern_treasury/models/routing_detail_list_params.rb +40 -0
  207. data/lib/modern_treasury/models/routing_detail_retrieve_params.rb +30 -0
  208. data/lib/modern_treasury/models/routing_number_lookup_request.rb +248 -0
  209. data/lib/modern_treasury/models/transaction.rb +421 -0
  210. data/lib/modern_treasury/models/transaction_create_params.rb +182 -0
  211. data/lib/modern_treasury/models/transaction_delete_params.rb +18 -0
  212. data/lib/modern_treasury/models/transaction_direction.rb +28 -0
  213. data/lib/modern_treasury/models/transaction_list_params.rb +186 -0
  214. data/lib/modern_treasury/models/transaction_retrieve_params.rb +18 -0
  215. data/lib/modern_treasury/models/transaction_update_params.rb +30 -0
  216. data/lib/modern_treasury/models/transactions/line_item_create_params.rb +42 -0
  217. data/lib/modern_treasury/models/transactions/line_item_delete_params.rb +20 -0
  218. data/lib/modern_treasury/models/transactions/line_item_list_params.rb +85 -0
  219. data/lib/modern_treasury/models/transactions/line_item_retrieve_params.rb +20 -0
  220. data/lib/modern_treasury/models/transactions/transaction_line_item.rb +212 -0
  221. data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +91 -0
  222. data/lib/modern_treasury/models/virtual_account.rb +148 -0
  223. data/lib/modern_treasury/models/virtual_account_create_params.rb +516 -0
  224. data/lib/modern_treasury/models/virtual_account_delete_params.rb +18 -0
  225. data/lib/modern_treasury/models/virtual_account_list_params.rb +77 -0
  226. data/lib/modern_treasury/models/virtual_account_retrieve_params.rb +18 -0
  227. data/lib/modern_treasury/models/virtual_account_update_params.rb +55 -0
  228. data/lib/modern_treasury/models/wealth_and_employment_details.rb +436 -0
  229. data/lib/modern_treasury/page.rb +94 -0
  230. data/lib/modern_treasury/pooled_net_requester.rb +163 -0
  231. data/lib/modern_treasury/request_options.rb +115 -0
  232. data/lib/modern_treasury/resources/account_collection_flows.rb +113 -0
  233. data/lib/modern_treasury/resources/account_details.rb +135 -0
  234. data/lib/modern_treasury/resources/bulk_requests.rb +95 -0
  235. data/lib/modern_treasury/resources/bulk_results.rb +69 -0
  236. data/lib/modern_treasury/resources/connection_legal_entities.rb +110 -0
  237. data/lib/modern_treasury/resources/connections.rb +41 -0
  238. data/lib/modern_treasury/resources/counterparties.rb +210 -0
  239. data/lib/modern_treasury/resources/documents.rb +90 -0
  240. data/lib/modern_treasury/resources/events.rb +66 -0
  241. data/lib/modern_treasury/resources/expected_payments.rb +233 -0
  242. data/lib/modern_treasury/resources/external_accounts.rb +230 -0
  243. data/lib/modern_treasury/resources/foreign_exchange_quotes.rb +105 -0
  244. data/lib/modern_treasury/resources/incoming_payment_details.rb +138 -0
  245. data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +128 -0
  246. data/lib/modern_treasury/resources/internal_accounts.rb +145 -0
  247. data/lib/modern_treasury/resources/invoices/line_items.rb +180 -0
  248. data/lib/modern_treasury/resources/invoices.rb +291 -0
  249. data/lib/modern_treasury/resources/ledger_account_balance_monitors.rb +138 -0
  250. data/lib/modern_treasury/resources/ledger_account_categories.rb +268 -0
  251. data/lib/modern_treasury/resources/ledger_account_settlements/account_entries.rb +63 -0
  252. data/lib/modern_treasury/resources/ledger_account_settlements.rb +156 -0
  253. data/lib/modern_treasury/resources/ledger_account_statements.rb +65 -0
  254. data/lib/modern_treasury/resources/ledger_accounts.rb +195 -0
  255. data/lib/modern_treasury/resources/ledger_entries.rb +141 -0
  256. data/lib/modern_treasury/resources/ledger_event_handlers.rb +119 -0
  257. data/lib/modern_treasury/resources/ledger_transactions/versions.rb +52 -0
  258. data/lib/modern_treasury/resources/ledger_transactions.rb +269 -0
  259. data/lib/modern_treasury/resources/ledgerable_events.rb +60 -0
  260. data/lib/modern_treasury/resources/ledgers.rb +140 -0
  261. data/lib/modern_treasury/resources/legal_entities.rb +198 -0
  262. data/lib/modern_treasury/resources/legal_entity_associations.rb +45 -0
  263. data/lib/modern_treasury/resources/line_items.rb +108 -0
  264. data/lib/modern_treasury/resources/paper_items.rb +63 -0
  265. data/lib/modern_treasury/resources/payment_flows.rb +128 -0
  266. data/lib/modern_treasury/resources/payment_orders/reversals.rb +98 -0
  267. data/lib/modern_treasury/resources/payment_orders.rb +523 -0
  268. data/lib/modern_treasury/resources/payment_references.rb +85 -0
  269. data/lib/modern_treasury/resources/returns.rb +102 -0
  270. data/lib/modern_treasury/resources/routing_details.rb +139 -0
  271. data/lib/modern_treasury/resources/transactions/line_items.rb +109 -0
  272. data/lib/modern_treasury/resources/transactions.rb +180 -0
  273. data/lib/modern_treasury/resources/validations.rb +40 -0
  274. data/lib/modern_treasury/resources/virtual_accounts.rb +158 -0
  275. data/lib/modern_treasury/util.rb +468 -0
  276. data/lib/modern_treasury/version.rb +5 -0
  277. data/lib/modern_treasury.rb +293 -0
  278. data/manifest.yaml +12 -0
  279. data/rbi/lib/modern_treasury/base_client.rbi +161 -0
  280. data/rbi/lib/modern_treasury/base_model.rbi +480 -0
  281. data/rbi/lib/modern_treasury/base_page.rbi +39 -0
  282. data/rbi/lib/modern_treasury/client.rbi +198 -0
  283. data/rbi/lib/modern_treasury/errors.rbi +145 -0
  284. data/rbi/lib/modern_treasury/extern.rbi +7 -0
  285. data/rbi/lib/modern_treasury/models/account_collection_flow.rbi +198 -0
  286. data/rbi/lib/modern_treasury/models/account_collection_flow_create_params.rbi +87 -0
  287. data/rbi/lib/modern_treasury/models/account_collection_flow_list_params.rbi +98 -0
  288. data/rbi/lib/modern_treasury/models/account_collection_flow_retrieve_params.rbi +18 -0
  289. data/rbi/lib/modern_treasury/models/account_collection_flow_update_params.rbi +42 -0
  290. data/rbi/lib/modern_treasury/models/account_detail.rbi +144 -0
  291. data/rbi/lib/modern_treasury/models/account_detail_create_params.rbi +89 -0
  292. data/rbi/lib/modern_treasury/models/account_detail_delete_params.rbi +58 -0
  293. data/rbi/lib/modern_treasury/models/account_detail_list_params.rbi +60 -0
  294. data/rbi/lib/modern_treasury/models/account_detail_retrieve_params.rbi +48 -0
  295. data/rbi/lib/modern_treasury/models/accounts_type.rbi +16 -0
  296. data/rbi/lib/modern_treasury/models/async_response.rbi +31 -0
  297. data/rbi/lib/modern_treasury/models/bank_settings.rbi +136 -0
  298. data/rbi/lib/modern_treasury/models/bulk_request.rbi +195 -0
  299. data/rbi/lib/modern_treasury/models/bulk_request_create_params.rbi +4685 -0
  300. data/rbi/lib/modern_treasury/models/bulk_request_list_params.rbi +135 -0
  301. data/rbi/lib/modern_treasury/models/bulk_request_retrieve_params.rbi +18 -0
  302. data/rbi/lib/modern_treasury/models/bulk_result.rbi +365 -0
  303. data/rbi/lib/modern_treasury/models/bulk_result_list_params.rbi +145 -0
  304. data/rbi/lib/modern_treasury/models/bulk_result_retrieve_params.rbi +18 -0
  305. data/rbi/lib/modern_treasury/models/client_ping_params.rbi +18 -0
  306. data/rbi/lib/modern_treasury/models/connection.rbi +125 -0
  307. data/rbi/lib/modern_treasury/models/connection_legal_entity.rbi +149 -0
  308. data/rbi/lib/modern_treasury/models/connection_legal_entity_create_params.rbi +1307 -0
  309. data/rbi/lib/modern_treasury/models/connection_legal_entity_list_params.rbi +100 -0
  310. data/rbi/lib/modern_treasury/models/connection_legal_entity_retrieve_params.rbi +18 -0
  311. data/rbi/lib/modern_treasury/models/connection_legal_entity_update_params.rbi +42 -0
  312. data/rbi/lib/modern_treasury/models/connection_list_params.rbi +76 -0
  313. data/rbi/lib/modern_treasury/models/counterparty.rbi +714 -0
  314. data/rbi/lib/modern_treasury/models/counterparty_collect_account_params.rbi +108 -0
  315. data/rbi/lib/modern_treasury/models/counterparty_collect_account_response.rbi +39 -0
  316. data/rbi/lib/modern_treasury/models/counterparty_create_params.rbi +2028 -0
  317. data/rbi/lib/modern_treasury/models/counterparty_delete_params.rbi +18 -0
  318. data/rbi/lib/modern_treasury/models/counterparty_list_params.rbi +120 -0
  319. data/rbi/lib/modern_treasury/models/counterparty_retrieve_params.rbi +18 -0
  320. data/rbi/lib/modern_treasury/models/counterparty_update_params.rbi +98 -0
  321. data/rbi/lib/modern_treasury/models/currency.rbi +203 -0
  322. data/rbi/lib/modern_treasury/models/document.rbi +325 -0
  323. data/rbi/lib/modern_treasury/models/document_create_params.rbi +91 -0
  324. data/rbi/lib/modern_treasury/models/document_list_params.rbi +97 -0
  325. data/rbi/lib/modern_treasury/models/document_retrieve_params.rbi +18 -0
  326. data/rbi/lib/modern_treasury/models/event.rbi +136 -0
  327. data/rbi/lib/modern_treasury/models/event_list_params.rbi +109 -0
  328. data/rbi/lib/modern_treasury/models/event_retrieve_params.rbi +18 -0
  329. data/rbi/lib/modern_treasury/models/expected_payment.rbi +350 -0
  330. data/rbi/lib/modern_treasury/models/expected_payment_create_params.rbi +591 -0
  331. data/rbi/lib/modern_treasury/models/expected_payment_delete_params.rbi +18 -0
  332. data/rbi/lib/modern_treasury/models/expected_payment_list_params.rbi +194 -0
  333. data/rbi/lib/modern_treasury/models/expected_payment_retrieve_params.rbi +18 -0
  334. data/rbi/lib/modern_treasury/models/expected_payment_type.rbi +44 -0
  335. data/rbi/lib/modern_treasury/models/expected_payment_update_params.rbi +243 -0
  336. data/rbi/lib/modern_treasury/models/external_account.rbi +545 -0
  337. data/rbi/lib/modern_treasury/models/external_account_complete_verification_params.rbi +32 -0
  338. data/rbi/lib/modern_treasury/models/external_account_create_params.rbi +611 -0
  339. data/rbi/lib/modern_treasury/models/external_account_delete_params.rbi +18 -0
  340. data/rbi/lib/modern_treasury/models/external_account_list_params.rbi +87 -0
  341. data/rbi/lib/modern_treasury/models/external_account_retrieve_params.rbi +18 -0
  342. data/rbi/lib/modern_treasury/models/external_account_type.rbi +22 -0
  343. data/rbi/lib/modern_treasury/models/external_account_update_params.rbi +203 -0
  344. data/rbi/lib/modern_treasury/models/external_account_verify_params.rbi +147 -0
  345. data/rbi/lib/modern_treasury/models/external_account_verify_response.rbi +212 -0
  346. data/rbi/lib/modern_treasury/models/foreign_exchange_quote.rbi +259 -0
  347. data/rbi/lib/modern_treasury/models/foreign_exchange_quote_create_params.rbi +98 -0
  348. data/rbi/lib/modern_treasury/models/foreign_exchange_quote_list_params.rbi +131 -0
  349. data/rbi/lib/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbi +18 -0
  350. data/rbi/lib/modern_treasury/models/incoming_payment_detail.rbi +383 -0
  351. data/rbi/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +149 -0
  352. data/rbi/lib/modern_treasury/models/incoming_payment_detail_list_params.rbi +161 -0
  353. data/rbi/lib/modern_treasury/models/incoming_payment_detail_retrieve_params.rbi +18 -0
  354. data/rbi/lib/modern_treasury/models/incoming_payment_detail_update_params.rbi +34 -0
  355. data/rbi/lib/modern_treasury/models/internal_account.rbi +414 -0
  356. data/rbi/lib/modern_treasury/models/internal_account_create_params.rbi +225 -0
  357. data/rbi/lib/modern_treasury/models/internal_account_list_params.rbi +159 -0
  358. data/rbi/lib/modern_treasury/models/internal_account_retrieve_params.rbi +18 -0
  359. data/rbi/lib/modern_treasury/models/internal_account_update_params.rbi +87 -0
  360. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report.rbi +336 -0
  361. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +164 -0
  362. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_delete_params.rbi +36 -0
  363. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rbi +91 -0
  364. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbi +36 -0
  365. data/rbi/lib/modern_treasury/models/invoice.rbi +850 -0
  366. data/rbi/lib/modern_treasury/models/invoice_add_payment_order_params.rbi +35 -0
  367. data/rbi/lib/modern_treasury/models/invoice_create_params.rbi +793 -0
  368. data/rbi/lib/modern_treasury/models/invoice_list_params.rbi +168 -0
  369. data/rbi/lib/modern_treasury/models/invoice_retrieve_params.rbi +18 -0
  370. data/rbi/lib/modern_treasury/models/invoice_update_params.rbi +793 -0
  371. data/rbi/lib/modern_treasury/models/invoices/invoice_line_item.rbi +173 -0
  372. data/rbi/lib/modern_treasury/models/invoices/line_item_create_params.rbi +111 -0
  373. data/rbi/lib/modern_treasury/models/invoices/line_item_delete_params.rbi +34 -0
  374. data/rbi/lib/modern_treasury/models/invoices/line_item_list_params.rbi +52 -0
  375. data/rbi/lib/modern_treasury/models/invoices/line_item_retrieve_params.rbi +34 -0
  376. data/rbi/lib/modern_treasury/models/invoices/line_item_update_params.rbi +122 -0
  377. data/rbi/lib/modern_treasury/models/ledger.rbi +125 -0
  378. data/rbi/lib/modern_treasury/models/ledger_account.rbi +502 -0
  379. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor.rbi +533 -0
  380. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rbi +113 -0
  381. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbi +18 -0
  382. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_list_params.rbi +87 -0
  383. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbi +18 -0
  384. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_update_params.rbi +50 -0
  385. data/rbi/lib/modern_treasury/models/ledger_account_category.rbi +430 -0
  386. data/rbi/lib/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbi +35 -0
  387. data/rbi/lib/modern_treasury/models/ledger_account_category_add_nested_category_params.rbi +35 -0
  388. data/rbi/lib/modern_treasury/models/ledger_account_category_create_params.rbi +120 -0
  389. data/rbi/lib/modern_treasury/models/ledger_account_category_delete_params.rbi +18 -0
  390. data/rbi/lib/modern_treasury/models/ledger_account_category_list_params.rbi +163 -0
  391. data/rbi/lib/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbi +35 -0
  392. data/rbi/lib/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbi +35 -0
  393. data/rbi/lib/modern_treasury/models/ledger_account_category_retrieve_params.rbi +69 -0
  394. data/rbi/lib/modern_treasury/models/ledger_account_category_update_params.rbi +60 -0
  395. data/rbi/lib/modern_treasury/models/ledger_account_create_params.rbi +155 -0
  396. data/rbi/lib/modern_treasury/models/ledger_account_delete_params.rbi +18 -0
  397. data/rbi/lib/modern_treasury/models/ledger_account_list_params.rbi +476 -0
  398. data/rbi/lib/modern_treasury/models/ledger_account_retrieve_params.rbi +119 -0
  399. data/rbi/lib/modern_treasury/models/ledger_account_settlement.rbi +228 -0
  400. data/rbi/lib/modern_treasury/models/ledger_account_settlement_create_params.rbi +131 -0
  401. data/rbi/lib/modern_treasury/models/ledger_account_settlement_list_params.rbi +142 -0
  402. data/rbi/lib/modern_treasury/models/ledger_account_settlement_retrieve_params.rbi +18 -0
  403. data/rbi/lib/modern_treasury/models/ledger_account_settlement_update_params.rbi +71 -0
  404. data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbi +42 -0
  405. data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbi +40 -0
  406. data/rbi/lib/modern_treasury/models/ledger_account_statement_create_params.rbi +87 -0
  407. data/rbi/lib/modern_treasury/models/ledger_account_statement_create_response.rbi +735 -0
  408. data/rbi/lib/modern_treasury/models/ledger_account_statement_retrieve_params.rbi +18 -0
  409. data/rbi/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rbi +737 -0
  410. data/rbi/lib/modern_treasury/models/ledger_account_update_params.rbi +60 -0
  411. data/rbi/lib/modern_treasury/models/ledger_create_params.rbi +60 -0
  412. data/rbi/lib/modern_treasury/models/ledger_delete_params.rbi +18 -0
  413. data/rbi/lib/modern_treasury/models/ledger_entry.rbi +486 -0
  414. data/rbi/lib/modern_treasury/models/ledger_entry_list_params.rbi +315 -0
  415. data/rbi/lib/modern_treasury/models/ledger_entry_retrieve_params.rbi +32 -0
  416. data/rbi/lib/modern_treasury/models/ledger_entry_update_params.rbi +34 -0
  417. data/rbi/lib/modern_treasury/models/ledger_event_handler.rbi +309 -0
  418. data/rbi/lib/modern_treasury/models/ledger_event_handler_create_params.rbi +257 -0
  419. data/rbi/lib/modern_treasury/models/ledger_event_handler_delete_params.rbi +18 -0
  420. data/rbi/lib/modern_treasury/models/ledger_event_handler_list_params.rbi +87 -0
  421. data/rbi/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rbi +18 -0
  422. data/rbi/lib/modern_treasury/models/ledger_event_handler_variable.rbi +68 -0
  423. data/rbi/lib/modern_treasury/models/ledger_list_params.rbi +87 -0
  424. data/rbi/lib/modern_treasury/models/ledger_retrieve_params.rbi +18 -0
  425. data/rbi/lib/modern_treasury/models/ledger_transaction.rbi +265 -0
  426. data/rbi/lib/modern_treasury/models/ledger_transaction_create_params.rbi +281 -0
  427. data/rbi/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rbi +150 -0
  428. data/rbi/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +136 -0
  429. data/rbi/lib/modern_treasury/models/ledger_transaction_list_params.rbi +319 -0
  430. data/rbi/lib/modern_treasury/models/ledger_transaction_retrieve_params.rbi +18 -0
  431. data/rbi/lib/modern_treasury/models/ledger_transaction_update_params.rbi +259 -0
  432. data/rbi/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +781 -0
  433. data/rbi/lib/modern_treasury/models/ledger_transactions/version_list_params.rbi +100 -0
  434. data/rbi/lib/modern_treasury/models/ledger_update_params.rbi +60 -0
  435. data/rbi/lib/modern_treasury/models/ledgerable_event.rbi +136 -0
  436. data/rbi/lib/modern_treasury/models/ledgerable_event_create_params.rbi +70 -0
  437. data/rbi/lib/modern_treasury/models/ledgerable_event_retrieve_params.rbi +18 -0
  438. data/rbi/lib/modern_treasury/models/legal_entity.rbi +748 -0
  439. data/rbi/lib/modern_treasury/models/legal_entity_association.rbi +890 -0
  440. data/rbi/lib/modern_treasury/models/legal_entity_association_create_params.rbi +649 -0
  441. data/rbi/lib/modern_treasury/models/legal_entity_create_params.rbi +1175 -0
  442. data/rbi/lib/modern_treasury/models/legal_entity_list_params.rbi +98 -0
  443. data/rbi/lib/modern_treasury/models/legal_entity_retrieve_params.rbi +18 -0
  444. data/rbi/lib/modern_treasury/models/legal_entity_update_params.rbi +502 -0
  445. data/rbi/lib/modern_treasury/models/line_item.rbi +209 -0
  446. data/rbi/lib/modern_treasury/models/line_item_list_params.rbi +71 -0
  447. data/rbi/lib/modern_treasury/models/line_item_retrieve_params.rbi +59 -0
  448. data/rbi/lib/modern_treasury/models/line_item_update_params.rbi +71 -0
  449. data/rbi/lib/modern_treasury/models/paper_item.rbi +236 -0
  450. data/rbi/lib/modern_treasury/models/paper_item_list_params.rbi +87 -0
  451. data/rbi/lib/modern_treasury/models/paper_item_retrieve_params.rbi +18 -0
  452. data/rbi/lib/modern_treasury/models/payment_flow.rbi +280 -0
  453. data/rbi/lib/modern_treasury/models/payment_flow_create_params.rbi +109 -0
  454. data/rbi/lib/modern_treasury/models/payment_flow_list_params.rbi +120 -0
  455. data/rbi/lib/modern_treasury/models/payment_flow_retrieve_params.rbi +18 -0
  456. data/rbi/lib/modern_treasury/models/payment_flow_update_params.rbi +42 -0
  457. data/rbi/lib/modern_treasury/models/payment_order.rbi +997 -0
  458. data/rbi/lib/modern_treasury/models/payment_order_create_async_params.rbi +1455 -0
  459. data/rbi/lib/modern_treasury/models/payment_order_create_params.rbi +1538 -0
  460. data/rbi/lib/modern_treasury/models/payment_order_list_params.rbi +289 -0
  461. data/rbi/lib/modern_treasury/models/payment_order_retrieve_params.rbi +18 -0
  462. data/rbi/lib/modern_treasury/models/payment_order_subtype.rbi +43 -0
  463. data/rbi/lib/modern_treasury/models/payment_order_type.rbi +44 -0
  464. data/rbi/lib/modern_treasury/models/payment_order_update_params.rbi +1179 -0
  465. data/rbi/lib/modern_treasury/models/payment_orders/reversal.rbi +178 -0
  466. data/rbi/lib/modern_treasury/models/payment_orders/reversal_create_params.rbi +363 -0
  467. data/rbi/lib/modern_treasury/models/payment_orders/reversal_list_params.rbi +52 -0
  468. data/rbi/lib/modern_treasury/models/payment_orders/reversal_retrieve_params.rbi +34 -0
  469. data/rbi/lib/modern_treasury/models/payment_reference.rbi +217 -0
  470. data/rbi/lib/modern_treasury/models/payment_reference_list_params.rbi +99 -0
  471. data/rbi/lib/modern_treasury/models/payment_reference_retireve_params.rbi +18 -0
  472. data/rbi/lib/modern_treasury/models/payment_reference_retrieve_params.rbi +18 -0
  473. data/rbi/lib/modern_treasury/models/ping_response.rbi +23 -0
  474. data/rbi/lib/modern_treasury/models/reconciliation_rule.rbi +186 -0
  475. data/rbi/lib/modern_treasury/models/return_create_params.rbi +170 -0
  476. data/rbi/lib/modern_treasury/models/return_list_params.rbi +112 -0
  477. data/rbi/lib/modern_treasury/models/return_object.rbi +587 -0
  478. data/rbi/lib/modern_treasury/models/return_retrieve_params.rbi +18 -0
  479. data/rbi/lib/modern_treasury/models/routing_detail.rbi +361 -0
  480. data/rbi/lib/modern_treasury/models/routing_detail_create_params.rbi +155 -0
  481. data/rbi/lib/modern_treasury/models/routing_detail_delete_params.rbi +58 -0
  482. data/rbi/lib/modern_treasury/models/routing_detail_list_params.rbi +60 -0
  483. data/rbi/lib/modern_treasury/models/routing_detail_retrieve_params.rbi +48 -0
  484. data/rbi/lib/modern_treasury/models/routing_number_lookup_request.rbi +231 -0
  485. data/rbi/lib/modern_treasury/models/transaction.rbi +474 -0
  486. data/rbi/lib/modern_treasury/models/transaction_create_params.rbi +182 -0
  487. data/rbi/lib/modern_treasury/models/transaction_delete_params.rbi +18 -0
  488. data/rbi/lib/modern_treasury/models/transaction_direction.rbi +16 -0
  489. data/rbi/lib/modern_treasury/models/transaction_list_params.rbi +186 -0
  490. data/rbi/lib/modern_treasury/models/transaction_retrieve_params.rbi +18 -0
  491. data/rbi/lib/modern_treasury/models/transaction_update_params.rbi +34 -0
  492. data/rbi/lib/modern_treasury/models/transactions/line_item_create_params.rbi +62 -0
  493. data/rbi/lib/modern_treasury/models/transactions/line_item_delete_params.rbi +22 -0
  494. data/rbi/lib/modern_treasury/models/transactions/line_item_list_params.rbi +100 -0
  495. data/rbi/lib/modern_treasury/models/transactions/line_item_retrieve_params.rbi +22 -0
  496. data/rbi/lib/modern_treasury/models/transactions/transaction_line_item.rbi +221 -0
  497. data/rbi/lib/modern_treasury/models/validation_validate_routing_number_params.rbi +80 -0
  498. data/rbi/lib/modern_treasury/models/virtual_account.rbi +208 -0
  499. data/rbi/lib/modern_treasury/models/virtual_account_create_params.rbi +453 -0
  500. data/rbi/lib/modern_treasury/models/virtual_account_delete_params.rbi +18 -0
  501. data/rbi/lib/modern_treasury/models/virtual_account_list_params.rbi +87 -0
  502. data/rbi/lib/modern_treasury/models/virtual_account_retrieve_params.rbi +18 -0
  503. data/rbi/lib/modern_treasury/models/virtual_account_update_params.rbi +76 -0
  504. data/rbi/lib/modern_treasury/models/wealth_and_employment_details.rbi +363 -0
  505. data/rbi/lib/modern_treasury/page.rbi +49 -0
  506. data/rbi/lib/modern_treasury/pooled_net_requester.rbi +59 -0
  507. data/rbi/lib/modern_treasury/request_options.rbi +84 -0
  508. data/rbi/lib/modern_treasury/resources/account_collection_flows.rbi +67 -0
  509. data/rbi/lib/modern_treasury/resources/account_details.rbi +61 -0
  510. data/rbi/lib/modern_treasury/resources/bulk_requests.rbi +69 -0
  511. data/rbi/lib/modern_treasury/resources/bulk_results.rbi +46 -0
  512. data/rbi/lib/modern_treasury/resources/connection_legal_entities.rbi +65 -0
  513. data/rbi/lib/modern_treasury/resources/connections.rbi +24 -0
  514. data/rbi/lib/modern_treasury/resources/counterparties.rbi +137 -0
  515. data/rbi/lib/modern_treasury/resources/documents.rbi +53 -0
  516. data/rbi/lib/modern_treasury/resources/events.rbi +46 -0
  517. data/rbi/lib/modern_treasury/resources/expected_payments.rbi +158 -0
  518. data/rbi/lib/modern_treasury/resources/external_accounts.rbi +155 -0
  519. data/rbi/lib/modern_treasury/resources/foreign_exchange_quotes.rbi +73 -0
  520. data/rbi/lib/modern_treasury/resources/incoming_payment_details.rbi +88 -0
  521. data/rbi/lib/modern_treasury/resources/internal_accounts/balance_reports.rbi +77 -0
  522. data/rbi/lib/modern_treasury/resources/internal_accounts.rbi +104 -0
  523. data/rbi/lib/modern_treasury/resources/invoices/line_items.rbi +103 -0
  524. data/rbi/lib/modern_treasury/resources/invoices.rbi +193 -0
  525. data/rbi/lib/modern_treasury/resources/ledger_account_balance_monitors.rbi +77 -0
  526. data/rbi/lib/modern_treasury/resources/ledger_account_categories.rbi +147 -0
  527. data/rbi/lib/modern_treasury/resources/ledger_account_settlements/account_entries.rbi +35 -0
  528. data/rbi/lib/modern_treasury/resources/ledger_account_settlements.rbi +96 -0
  529. data/rbi/lib/modern_treasury/resources/ledger_account_statements.rbi +42 -0
  530. data/rbi/lib/modern_treasury/resources/ledger_accounts.rbi +115 -0
  531. data/rbi/lib/modern_treasury/resources/ledger_entries.rbi +84 -0
  532. data/rbi/lib/modern_treasury/resources/ledger_event_handlers.rbi +77 -0
  533. data/rbi/lib/modern_treasury/resources/ledger_transactions/versions.rbi +36 -0
  534. data/rbi/lib/modern_treasury/resources/ledger_transactions.rbi +178 -0
  535. data/rbi/lib/modern_treasury/resources/ledgerable_events.rbi +34 -0
  536. data/rbi/lib/modern_treasury/resources/ledgers.rbi +70 -0
  537. data/rbi/lib/modern_treasury/resources/legal_entities.rbi +158 -0
  538. data/rbi/lib/modern_treasury/resources/legal_entity_associations.rbi +34 -0
  539. data/rbi/lib/modern_treasury/resources/line_items.rbi +49 -0
  540. data/rbi/lib/modern_treasury/resources/paper_items.rbi +42 -0
  541. data/rbi/lib/modern_treasury/resources/payment_flows.rbi +82 -0
  542. data/rbi/lib/modern_treasury/resources/payment_orders/reversals.rbi +49 -0
  543. data/rbi/lib/modern_treasury/resources/payment_orders.rbi +315 -0
  544. data/rbi/lib/modern_treasury/resources/payment_references.rbi +52 -0
  545. data/rbi/lib/modern_treasury/resources/returns.rbi +67 -0
  546. data/rbi/lib/modern_treasury/resources/routing_details.rbi +69 -0
  547. data/rbi/lib/modern_treasury/resources/transactions/line_items.rbi +66 -0
  548. data/rbi/lib/modern_treasury/resources/transactions.rbi +116 -0
  549. data/rbi/lib/modern_treasury/resources/validations.rbi +22 -0
  550. data/rbi/lib/modern_treasury/resources/virtual_accounts.rbi +104 -0
  551. data/rbi/lib/modern_treasury/util.rbi +135 -0
  552. data/rbi/lib/modern_treasury/version.rbi +5 -0
  553. data/sig/modern_treasury/base_client.rbs +100 -0
  554. data/sig/modern_treasury/base_model.rbs +246 -0
  555. data/sig/modern_treasury/base_page.rbs +20 -0
  556. data/sig/modern_treasury/client.rbs +102 -0
  557. data/sig/modern_treasury/errors.rbs +98 -0
  558. data/sig/modern_treasury/extern.rbs +4 -0
  559. data/sig/modern_treasury/models/account_collection_flow.rbs +146 -0
  560. data/sig/modern_treasury/models/account_collection_flow_create_params.rbs +83 -0
  561. data/sig/modern_treasury/models/account_collection_flow_list_params.rbs +58 -0
  562. data/sig/modern_treasury/models/account_collection_flow_retrieve_params.rbs +20 -0
  563. data/sig/modern_treasury/models/account_collection_flow_update_params.rbs +36 -0
  564. data/sig/modern_treasury/models/account_detail.rbs +84 -0
  565. data/sig/modern_treasury/models/account_detail_create_params.rbs +75 -0
  566. data/sig/modern_treasury/models/account_detail_delete_params.rbs +40 -0
  567. data/sig/modern_treasury/models/account_detail_list_params.rbs +38 -0
  568. data/sig/modern_treasury/models/account_detail_retrieve_params.rbs +32 -0
  569. data/sig/modern_treasury/models/accounts_type.rbs +12 -0
  570. data/sig/modern_treasury/models/async_response.rbs +20 -0
  571. data/sig/modern_treasury/models/bank_settings.rbs +59 -0
  572. data/sig/modern_treasury/models/bulk_request.rbs +98 -0
  573. data/sig/modern_treasury/models/bulk_request_create_params.rbs +2680 -0
  574. data/sig/modern_treasury/models/bulk_request_list_params.rbs +96 -0
  575. data/sig/modern_treasury/models/bulk_request_retrieve_params.rbs +20 -0
  576. data/sig/modern_treasury/models/bulk_result.rbs +178 -0
  577. data/sig/modern_treasury/models/bulk_result_list_params.rbs +105 -0
  578. data/sig/modern_treasury/models/bulk_result_retrieve_params.rbs +19 -0
  579. data/sig/modern_treasury/models/client_ping_params.rbs +19 -0
  580. data/sig/modern_treasury/models/connection.rbs +54 -0
  581. data/sig/modern_treasury/models/connection_legal_entity.rbs +70 -0
  582. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +739 -0
  583. data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +65 -0
  584. data/sig/modern_treasury/models/connection_legal_entity_retrieve_params.rbs +20 -0
  585. data/sig/modern_treasury/models/connection_legal_entity_update_params.rbs +40 -0
  586. data/sig/modern_treasury/models/connection_list_params.rbs +46 -0
  587. data/sig/modern_treasury/models/counterparty.rbs +352 -0
  588. data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +113 -0
  589. data/sig/modern_treasury/models/counterparty_collect_account_response.rbs +23 -0
  590. data/sig/modern_treasury/models/counterparty_create_params.rbs +1310 -0
  591. data/sig/modern_treasury/models/counterparty_delete_params.rbs +19 -0
  592. data/sig/modern_treasury/models/counterparty_list_params.rbs +70 -0
  593. data/sig/modern_treasury/models/counterparty_retrieve_params.rbs +20 -0
  594. data/sig/modern_treasury/models/counterparty_update_params.rbs +58 -0
  595. data/sig/modern_treasury/models/currency.rbs +388 -0
  596. data/sig/modern_treasury/models/document.rbs +170 -0
  597. data/sig/modern_treasury/models/document_create_params.rbs +73 -0
  598. data/sig/modern_treasury/models/document_list_params.rbs +79 -0
  599. data/sig/modern_treasury/models/document_retrieve_params.rbs +19 -0
  600. data/sig/modern_treasury/models/event.rbs +58 -0
  601. data/sig/modern_treasury/models/event_list_params.rbs +64 -0
  602. data/sig/modern_treasury/models/event_retrieve_params.rbs +19 -0
  603. data/sig/modern_treasury/models/expected_payment.rbs +153 -0
  604. data/sig/modern_treasury/models/expected_payment_create_params.rbs +308 -0
  605. data/sig/modern_treasury/models/expected_payment_delete_params.rbs +20 -0
  606. data/sig/modern_treasury/models/expected_payment_list_params.rbs +167 -0
  607. data/sig/modern_treasury/models/expected_payment_retrieve_params.rbs +20 -0
  608. data/sig/modern_treasury/models/expected_payment_type.rbs +70 -0
  609. data/sig/modern_treasury/models/expected_payment_update_params.rbs +111 -0
  610. data/sig/modern_treasury/models/external_account.rbs +242 -0
  611. data/sig/modern_treasury/models/external_account_complete_verification_params.rbs +27 -0
  612. data/sig/modern_treasury/models/external_account_create_params.rbs +481 -0
  613. data/sig/modern_treasury/models/external_account_delete_params.rbs +20 -0
  614. data/sig/modern_treasury/models/external_account_list_params.rbs +52 -0
  615. data/sig/modern_treasury/models/external_account_retrieve_params.rbs +20 -0
  616. data/sig/modern_treasury/models/external_account_type.rbs +26 -0
  617. data/sig/modern_treasury/models/external_account_update_params.rbs +113 -0
  618. data/sig/modern_treasury/models/external_account_verify_params.rbs +140 -0
  619. data/sig/modern_treasury/models/external_account_verify_response.rbs +154 -0
  620. data/sig/modern_treasury/models/foreign_exchange_quote.rbs +113 -0
  621. data/sig/modern_treasury/models/foreign_exchange_quote_create_params.rbs +58 -0
  622. data/sig/modern_treasury/models/foreign_exchange_quote_list_params.rbs +76 -0
  623. data/sig/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbs +20 -0
  624. data/sig/modern_treasury/models/incoming_payment_detail.rbs +222 -0
  625. data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +94 -0
  626. data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +109 -0
  627. data/sig/modern_treasury/models/incoming_payment_detail_retrieve_params.rbs +20 -0
  628. data/sig/modern_treasury/models/incoming_payment_detail_update_params.rbs +27 -0
  629. data/sig/modern_treasury/models/internal_account.rbs +187 -0
  630. data/sig/modern_treasury/models/internal_account_create_params.rbs +123 -0
  631. data/sig/modern_treasury/models/internal_account_list_params.rbs +143 -0
  632. data/sig/modern_treasury/models/internal_account_retrieve_params.rbs +20 -0
  633. data/sig/modern_treasury/models/internal_account_update_params.rbs +54 -0
  634. data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +166 -0
  635. data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +111 -0
  636. data/sig/modern_treasury/models/internal_accounts/balance_report_delete_params.rbs +27 -0
  637. data/sig/modern_treasury/models/internal_accounts/balance_report_list_params.rbs +62 -0
  638. data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +27 -0
  639. data/sig/modern_treasury/models/invoice.rbs +383 -0
  640. data/sig/modern_treasury/models/invoice_add_payment_order_params.rbs +22 -0
  641. data/sig/modern_treasury/models/invoice_create_params.rbs +396 -0
  642. data/sig/modern_treasury/models/invoice_list_params.rbs +104 -0
  643. data/sig/modern_treasury/models/invoice_retrieve_params.rbs +19 -0
  644. data/sig/modern_treasury/models/invoice_update_params.rbs +404 -0
  645. data/sig/modern_treasury/models/invoices/invoice_line_item.rbs +76 -0
  646. data/sig/modern_treasury/models/invoices/line_item_create_params.rbs +64 -0
  647. data/sig/modern_treasury/models/invoices/line_item_delete_params.rbs +27 -0
  648. data/sig/modern_treasury/models/invoices/line_item_list_params.rbs +33 -0
  649. data/sig/modern_treasury/models/invoices/line_item_retrieve_params.rbs +27 -0
  650. data/sig/modern_treasury/models/invoices/line_item_update_params.rbs +72 -0
  651. data/sig/modern_treasury/models/ledger.rbs +54 -0
  652. data/sig/modern_treasury/models/ledger_account.rbs +235 -0
  653. data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +246 -0
  654. data/sig/modern_treasury/models/ledger_account_balance_monitor_create_params.rbs +63 -0
  655. data/sig/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbs +20 -0
  656. data/sig/modern_treasury/models/ledger_account_balance_monitor_list_params.rbs +52 -0
  657. data/sig/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbs +20 -0
  658. data/sig/modern_treasury/models/ledger_account_balance_monitor_update_params.rbs +33 -0
  659. data/sig/modern_treasury/models/ledger_account_category.rbs +203 -0
  660. data/sig/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbs +22 -0
  661. data/sig/modern_treasury/models/ledger_account_category_add_nested_category_params.rbs +22 -0
  662. data/sig/modern_treasury/models/ledger_account_category_create_params.rbs +60 -0
  663. data/sig/modern_treasury/models/ledger_account_category_delete_params.rbs +20 -0
  664. data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +101 -0
  665. data/sig/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbs +22 -0
  666. data/sig/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbs +22 -0
  667. data/sig/modern_treasury/models/ledger_account_category_retrieve_params.rbs +53 -0
  668. data/sig/modern_treasury/models/ledger_account_category_update_params.rbs +36 -0
  669. data/sig/modern_treasury/models/ledger_account_create_params.rbs +86 -0
  670. data/sig/modern_treasury/models/ledger_account_delete_params.rbs +20 -0
  671. data/sig/modern_treasury/models/ledger_account_list_params.rbs +310 -0
  672. data/sig/modern_treasury/models/ledger_account_retrieve_params.rbs +78 -0
  673. data/sig/modern_treasury/models/ledger_account_settlement.rbs +101 -0
  674. data/sig/modern_treasury/models/ledger_account_settlement_create_params.rbs +67 -0
  675. data/sig/modern_treasury/models/ledger_account_settlement_list_params.rbs +82 -0
  676. data/sig/modern_treasury/models/ledger_account_settlement_retrieve_params.rbs +20 -0
  677. data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +51 -0
  678. data/sig/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbs +27 -0
  679. data/sig/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbs +28 -0
  680. data/sig/modern_treasury/models/ledger_account_statement_create_params.rbs +46 -0
  681. data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +351 -0
  682. data/sig/modern_treasury/models/ledger_account_statement_retrieve_params.rbs +20 -0
  683. data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +351 -0
  684. data/sig/modern_treasury/models/ledger_account_update_params.rbs +36 -0
  685. data/sig/modern_treasury/models/ledger_create_params.rbs +34 -0
  686. data/sig/modern_treasury/models/ledger_delete_params.rbs +19 -0
  687. data/sig/modern_treasury/models/ledger_entry.rbs +228 -0
  688. data/sig/modern_treasury/models/ledger_entry_list_params.rbs +210 -0
  689. data/sig/modern_treasury/models/ledger_entry_retrieve_params.rbs +27 -0
  690. data/sig/modern_treasury/models/ledger_entry_update_params.rbs +27 -0
  691. data/sig/modern_treasury/models/ledger_event_handler.rbs +146 -0
  692. data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +129 -0
  693. data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +20 -0
  694. data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +52 -0
  695. data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +20 -0
  696. data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +46 -0
  697. data/sig/modern_treasury/models/ledger_list_params.rbs +52 -0
  698. data/sig/modern_treasury/models/ledger_retrieve_params.rbs +19 -0
  699. data/sig/modern_treasury/models/ledger_transaction.rbs +124 -0
  700. data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +161 -0
  701. data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +89 -0
  702. data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +97 -0
  703. data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +221 -0
  704. data/sig/modern_treasury/models/ledger_transaction_retrieve_params.rbs +20 -0
  705. data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +153 -0
  706. data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +351 -0
  707. data/sig/modern_treasury/models/ledger_transactions/version_list_params.rbs +60 -0
  708. data/sig/modern_treasury/models/ledger_update_params.rbs +36 -0
  709. data/sig/modern_treasury/models/ledgerable_event.rbs +59 -0
  710. data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +42 -0
  711. data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +20 -0
  712. data/sig/modern_treasury/models/legal_entity.rbs +372 -0
  713. data/sig/modern_treasury/models/legal_entity_association.rbs +438 -0
  714. data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +384 -0
  715. data/sig/modern_treasury/models/legal_entity_create_params.rbs +701 -0
  716. data/sig/modern_treasury/models/legal_entity_list_params.rbs +63 -0
  717. data/sig/modern_treasury/models/legal_entity_retrieve_params.rbs +20 -0
  718. data/sig/modern_treasury/models/legal_entity_update_params.rbs +312 -0
  719. data/sig/modern_treasury/models/line_item.rbs +96 -0
  720. data/sig/modern_treasury/models/line_item_list_params.rbs +47 -0
  721. data/sig/modern_treasury/models/line_item_retrieve_params.rbs +41 -0
  722. data/sig/modern_treasury/models/line_item_update_params.rbs +47 -0
  723. data/sig/modern_treasury/models/paper_item.rbs +100 -0
  724. data/sig/modern_treasury/models/paper_item_list_params.rbs +52 -0
  725. data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +19 -0
  726. data/sig/modern_treasury/models/payment_flow.rbs +161 -0
  727. data/sig/modern_treasury/models/payment_flow_create_params.rbs +59 -0
  728. data/sig/modern_treasury/models/payment_flow_list_params.rbs +70 -0
  729. data/sig/modern_treasury/models/payment_flow_retrieve_params.rbs +20 -0
  730. data/sig/modern_treasury/models/payment_flow_update_params.rbs +34 -0
  731. data/sig/modern_treasury/models/payment_order.rbs +566 -0
  732. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +922 -0
  733. data/sig/modern_treasury/models/payment_order_create_params.rbs +995 -0
  734. data/sig/modern_treasury/models/payment_order_list_params.rbs +237 -0
  735. data/sig/modern_treasury/models/payment_order_retrieve_params.rbs +20 -0
  736. data/sig/modern_treasury/models/payment_order_subtype.rbs +68 -0
  737. data/sig/modern_treasury/models/payment_order_type.rbs +70 -0
  738. data/sig/modern_treasury/models/payment_order_update_params.rbs +802 -0
  739. data/sig/modern_treasury/models/payment_orders/reversal.rbs +96 -0
  740. data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +214 -0
  741. data/sig/modern_treasury/models/payment_orders/reversal_list_params.rbs +33 -0
  742. data/sig/modern_treasury/models/payment_orders/reversal_retrieve_params.rbs +27 -0
  743. data/sig/modern_treasury/models/payment_reference.rbs +214 -0
  744. data/sig/modern_treasury/models/payment_reference_list_params.rbs +64 -0
  745. data/sig/modern_treasury/models/payment_reference_retireve_params.rbs +20 -0
  746. data/sig/modern_treasury/models/payment_reference_retrieve_params.rbs +20 -0
  747. data/sig/modern_treasury/models/ping_response.rbs +18 -0
  748. data/sig/modern_treasury/models/reconciliation_rule.rbs +139 -0
  749. data/sig/modern_treasury/models/return_create_params.rbs +169 -0
  750. data/sig/modern_treasury/models/return_list_params.rbs +77 -0
  751. data/sig/modern_treasury/models/return_object.rbs +490 -0
  752. data/sig/modern_treasury/models/return_retrieve_params.rbs +19 -0
  753. data/sig/modern_treasury/models/routing_detail.rbs +239 -0
  754. data/sig/modern_treasury/models/routing_detail_create_params.rbs +164 -0
  755. data/sig/modern_treasury/models/routing_detail_delete_params.rbs +40 -0
  756. data/sig/modern_treasury/models/routing_detail_list_params.rbs +38 -0
  757. data/sig/modern_treasury/models/routing_detail_retrieve_params.rbs +32 -0
  758. data/sig/modern_treasury/models/routing_number_lookup_request.rbs +191 -0
  759. data/sig/modern_treasury/models/transaction.rbs +286 -0
  760. data/sig/modern_treasury/models/transaction_create_params.rbs +137 -0
  761. data/sig/modern_treasury/models/transaction_delete_params.rbs +19 -0
  762. data/sig/modern_treasury/models/transaction_direction.rbs +12 -0
  763. data/sig/modern_treasury/models/transaction_list_params.rbs +106 -0
  764. data/sig/modern_treasury/models/transaction_retrieve_params.rbs +19 -0
  765. data/sig/modern_treasury/models/transaction_update_params.rbs +27 -0
  766. data/sig/modern_treasury/models/transactions/line_item_create_params.rbs +34 -0
  767. data/sig/modern_treasury/models/transactions/line_item_delete_params.rbs +21 -0
  768. data/sig/modern_treasury/models/transactions/line_item_list_params.rbs +61 -0
  769. data/sig/modern_treasury/models/transactions/line_item_retrieve_params.rbs +21 -0
  770. data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +112 -0
  771. data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +81 -0
  772. data/sig/modern_treasury/models/virtual_account.rbs +83 -0
  773. data/sig/modern_treasury/models/virtual_account_create_params.rbs +366 -0
  774. data/sig/modern_treasury/models/virtual_account_delete_params.rbs +20 -0
  775. data/sig/modern_treasury/models/virtual_account_list_params.rbs +52 -0
  776. data/sig/modern_treasury/models/virtual_account_retrieve_params.rbs +20 -0
  777. data/sig/modern_treasury/models/virtual_account_update_params.rbs +46 -0
  778. data/sig/modern_treasury/models/wealth_and_employment_details.rbs +299 -0
  779. data/sig/modern_treasury/page.rbs +22 -0
  780. data/sig/modern_treasury/pooled_net_requester.rbs +42 -0
  781. data/sig/modern_treasury/request_options.rbs +42 -0
  782. data/sig/modern_treasury/resources/account_collection_flows.rbs +57 -0
  783. data/sig/modern_treasury/resources/account_details.rbs +61 -0
  784. data/sig/modern_treasury/resources/bulk_requests.rbs +46 -0
  785. data/sig/modern_treasury/resources/bulk_results.rbs +34 -0
  786. data/sig/modern_treasury/resources/connection_legal_entities.rbs +56 -0
  787. data/sig/modern_treasury/resources/connections.rbs +20 -0
  788. data/sig/modern_treasury/resources/counterparties.rbs +95 -0
  789. data/sig/modern_treasury/resources/documents.rbs +44 -0
  790. data/sig/modern_treasury/resources/events.rbs +33 -0
  791. data/sig/modern_treasury/resources/expected_payments.rbs +104 -0
  792. data/sig/modern_treasury/resources/external_accounts.rbs +108 -0
  793. data/sig/modern_treasury/resources/foreign_exchange_quotes.rbs +51 -0
  794. data/sig/modern_treasury/resources/incoming_payment_details.rbs +65 -0
  795. data/sig/modern_treasury/resources/internal_accounts/balance_reports.rbs +63 -0
  796. data/sig/modern_treasury/resources/internal_accounts.rbs +71 -0
  797. data/sig/modern_treasury/resources/invoices/line_items.rbs +83 -0
  798. data/sig/modern_treasury/resources/invoices.rbs +122 -0
  799. data/sig/modern_treasury/resources/ledger_account_balance_monitors.rbs +69 -0
  800. data/sig/modern_treasury/resources/ledger_account_categories.rbs +128 -0
  801. data/sig/modern_treasury/resources/ledger_account_settlements/account_entries.rbs +33 -0
  802. data/sig/modern_treasury/resources/ledger_account_settlements.rbs +70 -0
  803. data/sig/modern_treasury/resources/ledger_account_statements.rbs +32 -0
  804. data/sig/modern_treasury/resources/ledger_accounts.rbs +86 -0
  805. data/sig/modern_treasury/resources/ledger_entries.rbs +60 -0
  806. data/sig/modern_treasury/resources/ledger_event_handlers.rbs +59 -0
  807. data/sig/modern_treasury/resources/ledger_transactions/versions.rbs +24 -0
  808. data/sig/modern_treasury/resources/ledger_transactions.rbs +117 -0
  809. data/sig/modern_treasury/resources/ledgerable_events.rbs +31 -0
  810. data/sig/modern_treasury/resources/ledgers.rbs +68 -0
  811. data/sig/modern_treasury/resources/legal_entities.rbs +98 -0
  812. data/sig/modern_treasury/resources/legal_entity_associations.rbs +22 -0
  813. data/sig/modern_treasury/resources/line_items.rbs +48 -0
  814. data/sig/modern_treasury/resources/paper_items.rbs +32 -0
  815. data/sig/modern_treasury/resources/payment_flows.rbs +62 -0
  816. data/sig/modern_treasury/resources/payment_orders/reversals.rbs +48 -0
  817. data/sig/modern_treasury/resources/payment_orders.rbs +180 -0
  818. data/sig/modern_treasury/resources/payment_references.rbs +43 -0
  819. data/sig/modern_treasury/resources/returns.rbs +47 -0
  820. data/sig/modern_treasury/resources/routing_details.rbs +62 -0
  821. data/sig/modern_treasury/resources/transactions/line_items.rbs +54 -0
  822. data/sig/modern_treasury/resources/transactions.rbs +82 -0
  823. data/sig/modern_treasury/resources/validations.rbs +18 -0
  824. data/sig/modern_treasury/resources/virtual_accounts.rbs +77 -0
  825. data/sig/modern_treasury/util.rbs +91 -0
  826. data/sig/modern_treasury/version.rbs +3 -0
  827. metadata +861 -20
@@ -0,0 +1,2033 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ModernTreasury
4
+ module Models
5
+ class CounterpartyCreateParams < ModernTreasury::BaseModel
6
+ # @!parse
7
+ # extend ModernTreasury::RequestParameters::Converter
8
+ include ModernTreasury::RequestParameters
9
+
10
+ # @!attribute name
11
+ # A human friendly name for this counterparty.
12
+ #
13
+ # @return [String, nil]
14
+ required :name, String, nil?: true
15
+
16
+ # @!attribute [r] accounting
17
+ #
18
+ # @return [ModernTreasury::Models::CounterpartyCreateParams::Accounting, nil]
19
+ optional :accounting, -> { ModernTreasury::Models::CounterpartyCreateParams::Accounting }
20
+
21
+ # @!parse
22
+ # # @return [ModernTreasury::Models::CounterpartyCreateParams::Accounting]
23
+ # attr_writer :accounting
24
+
25
+ # @!attribute [r] accounts
26
+ # The accounts for this counterparty.
27
+ #
28
+ # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account>, nil]
29
+ optional :accounts,
30
+ -> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::Account] }
31
+
32
+ # @!parse
33
+ # # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account>]
34
+ # attr_writer :accounts
35
+
36
+ # @!attribute email
37
+ # The counterparty's email.
38
+ #
39
+ # @return [String, nil]
40
+ optional :email, String, nil?: true
41
+
42
+ # @!attribute [r] ledger_type
43
+ # An optional type to auto-sync the counterparty to your ledger. Either `customer`
44
+ # or `vendor`.
45
+ #
46
+ # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LedgerType, nil]
47
+ optional :ledger_type, enum: -> { ModernTreasury::Models::CounterpartyCreateParams::LedgerType }
48
+
49
+ # @!parse
50
+ # # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LedgerType]
51
+ # attr_writer :ledger_type
52
+
53
+ # @!attribute [r] legal_entity
54
+ #
55
+ # @return [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity, nil]
56
+ optional :legal_entity, -> { ModernTreasury::Models::CounterpartyCreateParams::LegalEntity }
57
+
58
+ # @!parse
59
+ # # @return [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity]
60
+ # attr_writer :legal_entity
61
+
62
+ # @!attribute legal_entity_id
63
+ # The id of the legal entity.
64
+ #
65
+ # @return [String, nil]
66
+ optional :legal_entity_id, String, nil?: true
67
+
68
+ # @!attribute [r] metadata
69
+ # Additional data represented as key-value pairs. Both the key and value must be
70
+ # strings.
71
+ #
72
+ # @return [Hash{Symbol=>String}, nil]
73
+ optional :metadata, ModernTreasury::HashOf[String]
74
+
75
+ # @!parse
76
+ # # @return [Hash{Symbol=>String}]
77
+ # attr_writer :metadata
78
+
79
+ # @!attribute [r] send_remittance_advice
80
+ # Send an email to the counterparty whenever an associated payment order is sent
81
+ # to the bank.
82
+ #
83
+ # @return [Boolean, nil]
84
+ optional :send_remittance_advice, ModernTreasury::BooleanModel
85
+
86
+ # @!parse
87
+ # # @return [Boolean]
88
+ # attr_writer :send_remittance_advice
89
+
90
+ # @!attribute [r] taxpayer_identifier
91
+ # Either a valid SSN or EIN.
92
+ #
93
+ # @return [String, nil]
94
+ optional :taxpayer_identifier, String
95
+
96
+ # @!parse
97
+ # # @return [String]
98
+ # attr_writer :taxpayer_identifier
99
+
100
+ # @!attribute [r] verification_status
101
+ # The verification status of the counterparty.
102
+ #
103
+ # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus, nil]
104
+ optional :verification_status,
105
+ enum: -> { ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus }
106
+
107
+ # @!parse
108
+ # # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus]
109
+ # attr_writer :verification_status
110
+
111
+ # @!parse
112
+ # # @param name [String, nil]
113
+ # # @param accounting [ModernTreasury::Models::CounterpartyCreateParams::Accounting]
114
+ # # @param accounts [Array<ModernTreasury::Models::CounterpartyCreateParams::Account>]
115
+ # # @param email [String, nil]
116
+ # # @param ledger_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LedgerType]
117
+ # # @param legal_entity [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity]
118
+ # # @param legal_entity_id [String, nil]
119
+ # # @param metadata [Hash{Symbol=>String}]
120
+ # # @param send_remittance_advice [Boolean]
121
+ # # @param taxpayer_identifier [String]
122
+ # # @param verification_status [Symbol, ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus]
123
+ # # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
124
+ # #
125
+ # def initialize(
126
+ # name:,
127
+ # accounting: nil,
128
+ # accounts: nil,
129
+ # email: nil,
130
+ # ledger_type: nil,
131
+ # legal_entity: nil,
132
+ # legal_entity_id: nil,
133
+ # metadata: nil,
134
+ # send_remittance_advice: nil,
135
+ # taxpayer_identifier: nil,
136
+ # verification_status: nil,
137
+ # request_options: {},
138
+ # **
139
+ # )
140
+ # super
141
+ # end
142
+
143
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
144
+
145
+ class Accounting < ModernTreasury::BaseModel
146
+ # @!attribute [r] type
147
+ # An optional type to auto-sync the counterparty to your ledger. Either `customer`
148
+ # or `vendor`.
149
+ #
150
+ # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type, nil]
151
+ optional :type, enum: -> { ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type }
152
+
153
+ # @!parse
154
+ # # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type]
155
+ # attr_writer :type
156
+
157
+ # @!parse
158
+ # # @param type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type]
159
+ # #
160
+ # def initialize(type: nil, **) = super
161
+
162
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
163
+
164
+ # @abstract
165
+ #
166
+ # An optional type to auto-sync the counterparty to your ledger. Either `customer`
167
+ # or `vendor`.
168
+ #
169
+ # @example
170
+ # ```ruby
171
+ # case type
172
+ # in :customer
173
+ # # ...
174
+ # in :vendor
175
+ # # ...
176
+ # end
177
+ # ```
178
+ class Type < ModernTreasury::Enum
179
+ CUSTOMER = :customer
180
+ VENDOR = :vendor
181
+
182
+ finalize!
183
+
184
+ # @!parse
185
+ # # @return [Array<Symbol>]
186
+ # #
187
+ # def self.values; end
188
+ end
189
+ end
190
+
191
+ class Account < ModernTreasury::BaseModel
192
+ # @!attribute [r] account_details
193
+ #
194
+ # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail>, nil]
195
+ optional :account_details,
196
+ -> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail] }
197
+
198
+ # @!parse
199
+ # # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail>]
200
+ # attr_writer :account_details
201
+
202
+ # @!attribute [r] account_type
203
+ # Can be `checking`, `savings` or `other`.
204
+ #
205
+ # @return [Symbol, ModernTreasury::Models::ExternalAccountType, nil]
206
+ optional :account_type, enum: -> { ModernTreasury::Models::ExternalAccountType }
207
+
208
+ # @!parse
209
+ # # @return [Symbol, ModernTreasury::Models::ExternalAccountType]
210
+ # attr_writer :account_type
211
+
212
+ # @!attribute [r] contact_details
213
+ #
214
+ # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail>, nil]
215
+ optional :contact_details,
216
+ -> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail] }
217
+
218
+ # @!parse
219
+ # # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail>]
220
+ # attr_writer :contact_details
221
+
222
+ # @!attribute [r] ledger_account
223
+ # Specifies a ledger account object that will be created with the external
224
+ # account. The resulting ledger account is linked to the external account for
225
+ # auto-ledgering Payment objects. See
226
+ # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
227
+ # for more details.
228
+ #
229
+ # @return [ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount, nil]
230
+ optional :ledger_account, -> { ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount }
231
+
232
+ # @!parse
233
+ # # @return [ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount]
234
+ # attr_writer :ledger_account
235
+
236
+ # @!attribute [r] metadata
237
+ # Additional data represented as key-value pairs. Both the key and value must be
238
+ # strings.
239
+ #
240
+ # @return [Hash{Symbol=>String}, nil]
241
+ optional :metadata, ModernTreasury::HashOf[String]
242
+
243
+ # @!parse
244
+ # # @return [Hash{Symbol=>String}]
245
+ # attr_writer :metadata
246
+
247
+ # @!attribute name
248
+ # A nickname for the external account. This is only for internal usage and won't
249
+ # affect any payments
250
+ #
251
+ # @return [String, nil]
252
+ optional :name, String, nil?: true
253
+
254
+ # @!attribute [r] party_address
255
+ # Required if receiving wire payments.
256
+ #
257
+ # @return [ModernTreasury::Models::CounterpartyCreateParams::Account::PartyAddress, nil]
258
+ optional :party_address, -> { ModernTreasury::Models::CounterpartyCreateParams::Account::PartyAddress }
259
+
260
+ # @!parse
261
+ # # @return [ModernTreasury::Models::CounterpartyCreateParams::Account::PartyAddress]
262
+ # attr_writer :party_address
263
+
264
+ # @!attribute [r] party_identifier
265
+ #
266
+ # @return [String, nil]
267
+ optional :party_identifier, String
268
+
269
+ # @!parse
270
+ # # @return [String]
271
+ # attr_writer :party_identifier
272
+
273
+ # @!attribute [r] party_name
274
+ # If this value isn't provided, it will be inherited from the counterparty's name.
275
+ #
276
+ # @return [String, nil]
277
+ optional :party_name, String
278
+
279
+ # @!parse
280
+ # # @return [String]
281
+ # attr_writer :party_name
282
+
283
+ # @!attribute party_type
284
+ # Either `individual` or `business`.
285
+ #
286
+ # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::PartyType, nil]
287
+ optional :party_type,
288
+ enum: -> { ModernTreasury::Models::CounterpartyCreateParams::Account::PartyType },
289
+ nil?: true
290
+
291
+ # @!attribute [r] plaid_processor_token
292
+ # If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
293
+ # you can pass the processor token in this field.
294
+ #
295
+ # @return [String, nil]
296
+ optional :plaid_processor_token, String
297
+
298
+ # @!parse
299
+ # # @return [String]
300
+ # attr_writer :plaid_processor_token
301
+
302
+ # @!attribute [r] routing_details
303
+ #
304
+ # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail>, nil]
305
+ optional :routing_details,
306
+ -> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail] }
307
+
308
+ # @!parse
309
+ # # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail>]
310
+ # attr_writer :routing_details
311
+
312
+ # @!parse
313
+ # # @param account_details [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail>]
314
+ # # @param account_type [Symbol, ModernTreasury::Models::ExternalAccountType]
315
+ # # @param contact_details [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail>]
316
+ # # @param ledger_account [ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount]
317
+ # # @param metadata [Hash{Symbol=>String}]
318
+ # # @param name [String, nil]
319
+ # # @param party_address [ModernTreasury::Models::CounterpartyCreateParams::Account::PartyAddress]
320
+ # # @param party_identifier [String]
321
+ # # @param party_name [String]
322
+ # # @param party_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::PartyType, nil]
323
+ # # @param plaid_processor_token [String]
324
+ # # @param routing_details [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail>]
325
+ # #
326
+ # def initialize(
327
+ # account_details: nil,
328
+ # account_type: nil,
329
+ # contact_details: nil,
330
+ # ledger_account: nil,
331
+ # metadata: nil,
332
+ # name: nil,
333
+ # party_address: nil,
334
+ # party_identifier: nil,
335
+ # party_name: nil,
336
+ # party_type: nil,
337
+ # plaid_processor_token: nil,
338
+ # routing_details: nil,
339
+ # **
340
+ # )
341
+ # super
342
+ # end
343
+
344
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
345
+
346
+ class AccountDetail < ModernTreasury::BaseModel
347
+ # @!attribute account_number
348
+ #
349
+ # @return [String]
350
+ required :account_number, String
351
+
352
+ # @!attribute [r] account_number_type
353
+ #
354
+ # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType, nil]
355
+ optional :account_number_type,
356
+ enum: -> { ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType }
357
+
358
+ # @!parse
359
+ # # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType]
360
+ # attr_writer :account_number_type
361
+
362
+ # @!parse
363
+ # # @param account_number [String]
364
+ # # @param account_number_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType]
365
+ # #
366
+ # def initialize(account_number:, account_number_type: nil, **) = super
367
+
368
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
369
+
370
+ # @abstract
371
+ #
372
+ # @example
373
+ # ```ruby
374
+ # case account_number_type
375
+ # in :au_number
376
+ # # ...
377
+ # in :clabe
378
+ # # ...
379
+ # in :hk_number
380
+ # # ...
381
+ # in :iban
382
+ # # ...
383
+ # in :id_number
384
+ # # ...
385
+ # in ...
386
+ # #...
387
+ # end
388
+ # ```
389
+ class AccountNumberType < ModernTreasury::Enum
390
+ AU_NUMBER = :au_number
391
+ CLABE = :clabe
392
+ HK_NUMBER = :hk_number
393
+ IBAN = :iban
394
+ ID_NUMBER = :id_number
395
+ NZ_NUMBER = :nz_number
396
+ OTHER = :other
397
+ PAN = :pan
398
+ SG_NUMBER = :sg_number
399
+ WALLET_ADDRESS = :wallet_address
400
+
401
+ finalize!
402
+
403
+ # @!parse
404
+ # # @return [Array<Symbol>]
405
+ # #
406
+ # def self.values; end
407
+ end
408
+ end
409
+
410
+ class ContactDetail < ModernTreasury::BaseModel
411
+ # @!attribute [r] contact_identifier
412
+ #
413
+ # @return [String, nil]
414
+ optional :contact_identifier, String
415
+
416
+ # @!parse
417
+ # # @return [String]
418
+ # attr_writer :contact_identifier
419
+
420
+ # @!attribute [r] contact_identifier_type
421
+ #
422
+ # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType, nil]
423
+ optional :contact_identifier_type,
424
+ enum: -> { ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType }
425
+
426
+ # @!parse
427
+ # # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType]
428
+ # attr_writer :contact_identifier_type
429
+
430
+ # @!parse
431
+ # # @param contact_identifier [String]
432
+ # # @param contact_identifier_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType]
433
+ # #
434
+ # def initialize(contact_identifier: nil, contact_identifier_type: nil, **) = super
435
+
436
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
437
+
438
+ # @abstract
439
+ #
440
+ # @example
441
+ # ```ruby
442
+ # case contact_identifier_type
443
+ # in :email
444
+ # # ...
445
+ # in :phone_number
446
+ # # ...
447
+ # in :website
448
+ # # ...
449
+ # end
450
+ # ```
451
+ class ContactIdentifierType < ModernTreasury::Enum
452
+ EMAIL = :email
453
+ PHONE_NUMBER = :phone_number
454
+ WEBSITE = :website
455
+
456
+ finalize!
457
+
458
+ # @!parse
459
+ # # @return [Array<Symbol>]
460
+ # #
461
+ # def self.values; end
462
+ end
463
+ end
464
+
465
+ class LedgerAccount < ModernTreasury::BaseModel
466
+ # @!attribute currency
467
+ # The currency of the ledger account.
468
+ #
469
+ # @return [String]
470
+ required :currency, String
471
+
472
+ # @!attribute ledger_id
473
+ # The id of the ledger that this account belongs to.
474
+ #
475
+ # @return [String]
476
+ required :ledger_id, String
477
+
478
+ # @!attribute name
479
+ # The name of the ledger account.
480
+ #
481
+ # @return [String]
482
+ required :name, String
483
+
484
+ # @!attribute normal_balance
485
+ # The normal balance of the ledger account.
486
+ #
487
+ # @return [Symbol, ModernTreasury::Models::TransactionDirection]
488
+ required :normal_balance, enum: -> { ModernTreasury::Models::TransactionDirection }
489
+
490
+ # @!attribute currency_exponent
491
+ # The currency exponent of the ledger account.
492
+ #
493
+ # @return [Integer, nil]
494
+ optional :currency_exponent, Integer, nil?: true
495
+
496
+ # @!attribute description
497
+ # The description of the ledger account.
498
+ #
499
+ # @return [String, nil]
500
+ optional :description, String, nil?: true
501
+
502
+ # @!attribute [r] ledger_account_category_ids
503
+ # The array of ledger account category ids that this ledger account should be a
504
+ # child of.
505
+ #
506
+ # @return [Array<String>, nil]
507
+ optional :ledger_account_category_ids, ModernTreasury::ArrayOf[String]
508
+
509
+ # @!parse
510
+ # # @return [Array<String>]
511
+ # attr_writer :ledger_account_category_ids
512
+
513
+ # @!attribute [r] ledgerable_id
514
+ # If the ledger account links to another object in Modern Treasury, the id will be
515
+ # populated here, otherwise null.
516
+ #
517
+ # @return [String, nil]
518
+ optional :ledgerable_id, String
519
+
520
+ # @!parse
521
+ # # @return [String]
522
+ # attr_writer :ledgerable_id
523
+
524
+ # @!attribute [r] ledgerable_type
525
+ # If the ledger account links to another object in Modern Treasury, the type will
526
+ # be populated here, otherwise null. The value is one of internal_account or
527
+ # external_account.
528
+ #
529
+ # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType, nil]
530
+ optional :ledgerable_type,
531
+ enum: -> { ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType }
532
+
533
+ # @!parse
534
+ # # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType]
535
+ # attr_writer :ledgerable_type
536
+
537
+ # @!attribute [r] metadata
538
+ # Additional data represented as key-value pairs. Both the key and value must be
539
+ # strings.
540
+ #
541
+ # @return [Hash{Symbol=>String}, nil]
542
+ optional :metadata, ModernTreasury::HashOf[String]
543
+
544
+ # @!parse
545
+ # # @return [Hash{Symbol=>String}]
546
+ # attr_writer :metadata
547
+
548
+ # @!parse
549
+ # # Specifies a ledger account object that will be created with the external
550
+ # # account. The resulting ledger account is linked to the external account for
551
+ # # auto-ledgering Payment objects. See
552
+ # # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
553
+ # # for more details.
554
+ # #
555
+ # # @param currency [String]
556
+ # # @param ledger_id [String]
557
+ # # @param name [String]
558
+ # # @param normal_balance [Symbol, ModernTreasury::Models::TransactionDirection]
559
+ # # @param currency_exponent [Integer, nil]
560
+ # # @param description [String, nil]
561
+ # # @param ledger_account_category_ids [Array<String>]
562
+ # # @param ledgerable_id [String]
563
+ # # @param ledgerable_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType]
564
+ # # @param metadata [Hash{Symbol=>String}]
565
+ # #
566
+ # def initialize(
567
+ # currency:,
568
+ # ledger_id:,
569
+ # name:,
570
+ # normal_balance:,
571
+ # currency_exponent: nil,
572
+ # description: nil,
573
+ # ledger_account_category_ids: nil,
574
+ # ledgerable_id: nil,
575
+ # ledgerable_type: nil,
576
+ # metadata: nil,
577
+ # **
578
+ # )
579
+ # super
580
+ # end
581
+
582
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
583
+
584
+ # @abstract
585
+ #
586
+ # If the ledger account links to another object in Modern Treasury, the type will
587
+ # be populated here, otherwise null. The value is one of internal_account or
588
+ # external_account.
589
+ #
590
+ # @example
591
+ # ```ruby
592
+ # case ledgerable_type
593
+ # in :counterparty
594
+ # # ...
595
+ # in :external_account
596
+ # # ...
597
+ # in :internal_account
598
+ # # ...
599
+ # in :virtual_account
600
+ # # ...
601
+ # end
602
+ # ```
603
+ class LedgerableType < ModernTreasury::Enum
604
+ COUNTERPARTY = :counterparty
605
+ EXTERNAL_ACCOUNT = :external_account
606
+ INTERNAL_ACCOUNT = :internal_account
607
+ VIRTUAL_ACCOUNT = :virtual_account
608
+
609
+ finalize!
610
+
611
+ # @!parse
612
+ # # @return [Array<Symbol>]
613
+ # #
614
+ # def self.values; end
615
+ end
616
+ end
617
+
618
+ class PartyAddress < ModernTreasury::BaseModel
619
+ # @!attribute country
620
+ # Country code conforms to [ISO 3166-1 alpha-2]
621
+ #
622
+ # @return [String, nil]
623
+ optional :country, String, nil?: true
624
+
625
+ # @!attribute line1
626
+ #
627
+ # @return [String, nil]
628
+ optional :line1, String, nil?: true
629
+
630
+ # @!attribute line2
631
+ #
632
+ # @return [String, nil]
633
+ optional :line2, String, nil?: true
634
+
635
+ # @!attribute locality
636
+ # Locality or City.
637
+ #
638
+ # @return [String, nil]
639
+ optional :locality, String, nil?: true
640
+
641
+ # @!attribute postal_code
642
+ # The postal code of the address.
643
+ #
644
+ # @return [String, nil]
645
+ optional :postal_code, String, nil?: true
646
+
647
+ # @!attribute region
648
+ # Region or State.
649
+ #
650
+ # @return [String, nil]
651
+ optional :region, String, nil?: true
652
+
653
+ # @!parse
654
+ # # Required if receiving wire payments.
655
+ # #
656
+ # # @param country [String, nil]
657
+ # # @param line1 [String, nil]
658
+ # # @param line2 [String, nil]
659
+ # # @param locality [String, nil]
660
+ # # @param postal_code [String, nil]
661
+ # # @param region [String, nil]
662
+ # #
663
+ # def initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil, **) = super
664
+
665
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
666
+ end
667
+
668
+ # @abstract
669
+ #
670
+ # Either `individual` or `business`.
671
+ #
672
+ # @example
673
+ # ```ruby
674
+ # case party_type
675
+ # in :business
676
+ # # ...
677
+ # in :individual
678
+ # # ...
679
+ # end
680
+ # ```
681
+ class PartyType < ModernTreasury::Enum
682
+ BUSINESS = :business
683
+ INDIVIDUAL = :individual
684
+
685
+ finalize!
686
+
687
+ # @!parse
688
+ # # @return [Array<Symbol>]
689
+ # #
690
+ # def self.values; end
691
+ end
692
+
693
+ class RoutingDetail < ModernTreasury::BaseModel
694
+ # @!attribute routing_number
695
+ #
696
+ # @return [String]
697
+ required :routing_number, String
698
+
699
+ # @!attribute routing_number_type
700
+ #
701
+ # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType]
702
+ required :routing_number_type,
703
+ enum: -> { ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType }
704
+
705
+ # @!attribute [r] payment_type
706
+ #
707
+ # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType, nil]
708
+ optional :payment_type,
709
+ enum: -> { ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType }
710
+
711
+ # @!parse
712
+ # # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType]
713
+ # attr_writer :payment_type
714
+
715
+ # @!parse
716
+ # # @param routing_number [String]
717
+ # # @param routing_number_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType]
718
+ # # @param payment_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType]
719
+ # #
720
+ # def initialize(routing_number:, routing_number_type:, payment_type: nil, **) = super
721
+
722
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
723
+
724
+ # @abstract
725
+ #
726
+ # @example
727
+ # ```ruby
728
+ # case routing_number_type
729
+ # in :aba
730
+ # # ...
731
+ # in :au_bsb
732
+ # # ...
733
+ # in :br_codigo
734
+ # # ...
735
+ # in :ca_cpa
736
+ # # ...
737
+ # in :chips
738
+ # # ...
739
+ # in ...
740
+ # #...
741
+ # end
742
+ # ```
743
+ class RoutingNumberType < ModernTreasury::Enum
744
+ ABA = :aba
745
+ AU_BSB = :au_bsb
746
+ BR_CODIGO = :br_codigo
747
+ CA_CPA = :ca_cpa
748
+ CHIPS = :chips
749
+ CNAPS = :cnaps
750
+ DK_INTERBANK_CLEARING_CODE = :dk_interbank_clearing_code
751
+ GB_SORT_CODE = :gb_sort_code
752
+ HK_INTERBANK_CLEARING_CODE = :hk_interbank_clearing_code
753
+ HU_INTERBANK_CLEARING_CODE = :hu_interbank_clearing_code
754
+ ID_SKNBI_CODE = :id_sknbi_code
755
+ IN_IFSC = :in_ifsc
756
+ JP_ZENGIN_CODE = :jp_zengin_code
757
+ MY_BRANCH_CODE = :my_branch_code
758
+ MX_BANK_IDENTIFIER = :mx_bank_identifier
759
+ NZ_NATIONAL_CLEARING_CODE = :nz_national_clearing_code
760
+ PL_NATIONAL_CLEARING_CODE = :pl_national_clearing_code
761
+ SE_BANKGIRO_CLEARING_CODE = :se_bankgiro_clearing_code
762
+ SG_INTERBANK_CLEARING_CODE = :sg_interbank_clearing_code
763
+ SWIFT = :swift
764
+ ZA_NATIONAL_CLEARING_CODE = :za_national_clearing_code
765
+
766
+ finalize!
767
+
768
+ # @!parse
769
+ # # @return [Array<Symbol>]
770
+ # #
771
+ # def self.values; end
772
+ end
773
+
774
+ # @abstract
775
+ #
776
+ # @example
777
+ # ```ruby
778
+ # case payment_type
779
+ # in :ach
780
+ # # ...
781
+ # in :au_becs
782
+ # # ...
783
+ # in :bacs
784
+ # # ...
785
+ # in :book
786
+ # # ...
787
+ # in :card
788
+ # # ...
789
+ # in ...
790
+ # #...
791
+ # end
792
+ # ```
793
+ class PaymentType < ModernTreasury::Enum
794
+ ACH = :ach
795
+ AU_BECS = :au_becs
796
+ BACS = :bacs
797
+ BOOK = :book
798
+ CARD = :card
799
+ CHATS = :chats
800
+ CHECK = :check
801
+ CROSS_BORDER = :cross_border
802
+ DK_NETS = :dk_nets
803
+ EFT = :eft
804
+ HU_ICS = :hu_ics
805
+ INTERAC = :interac
806
+ MASAV = :masav
807
+ MX_CCEN = :mx_ccen
808
+ NEFT = :neft
809
+ NICS = :nics
810
+ NZ_BECS = :nz_becs
811
+ PL_ELIXIR = :pl_elixir
812
+ PROVXCHANGE = :provxchange
813
+ RO_SENT = :ro_sent
814
+ RTP = :rtp
815
+ SE_BANKGIROT = :se_bankgirot
816
+ SEN = :sen
817
+ SEPA = :sepa
818
+ SG_GIRO = :sg_giro
819
+ SIC = :sic
820
+ SIGNET = :signet
821
+ SKNBI = :sknbi
822
+ WIRE = :wire
823
+ ZENGIN = :zengin
824
+
825
+ finalize!
826
+
827
+ # @!parse
828
+ # # @return [Array<Symbol>]
829
+ # #
830
+ # def self.values; end
831
+ end
832
+ end
833
+ end
834
+
835
+ # @abstract
836
+ #
837
+ # @deprecated
838
+ #
839
+ # An optional type to auto-sync the counterparty to your ledger. Either `customer`
840
+ # or `vendor`.
841
+ #
842
+ # @example
843
+ # ```ruby
844
+ # case ledger_type
845
+ # in :customer
846
+ # # ...
847
+ # in :vendor
848
+ # # ...
849
+ # end
850
+ # ```
851
+ class LedgerType < ModernTreasury::Enum
852
+ CUSTOMER = :customer
853
+ VENDOR = :vendor
854
+
855
+ finalize!
856
+
857
+ # @!parse
858
+ # # @return [Array<Symbol>]
859
+ # #
860
+ # def self.values; end
861
+ end
862
+
863
+ class LegalEntity < ModernTreasury::BaseModel
864
+ # @!attribute legal_entity_type
865
+ # The type of legal entity.
866
+ #
867
+ # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityType]
868
+ required :legal_entity_type,
869
+ enum: -> { ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityType }
870
+
871
+ # @!attribute [r] addresses
872
+ # A list of addresses for the entity.
873
+ #
874
+ # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address>, nil]
875
+ optional :addresses,
876
+ -> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address] }
877
+
878
+ # @!parse
879
+ # # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address>]
880
+ # attr_writer :addresses
881
+
882
+ # @!attribute bank_settings
883
+ #
884
+ # @return [ModernTreasury::Models::BankSettings, nil]
885
+ optional :bank_settings, -> { ModernTreasury::Models::BankSettings }, nil?: true
886
+
887
+ # @!attribute business_name
888
+ # The business's legal business name.
889
+ #
890
+ # @return [String, nil]
891
+ optional :business_name, String, nil?: true
892
+
893
+ # @!attribute citizenship_country
894
+ # The country of citizenship for an individual.
895
+ #
896
+ # @return [String, nil]
897
+ optional :citizenship_country, String, nil?: true
898
+
899
+ # @!attribute date_formed
900
+ # A business's formation date (YYYY-MM-DD).
901
+ #
902
+ # @return [Date, nil]
903
+ optional :date_formed, Date, nil?: true
904
+
905
+ # @!attribute date_of_birth
906
+ # An individual's date of birth (YYYY-MM-DD).
907
+ #
908
+ # @return [Date, nil]
909
+ optional :date_of_birth, Date, nil?: true
910
+
911
+ # @!attribute [r] doing_business_as_names
912
+ #
913
+ # @return [Array<String>, nil]
914
+ optional :doing_business_as_names, ModernTreasury::ArrayOf[String]
915
+
916
+ # @!parse
917
+ # # @return [Array<String>]
918
+ # attr_writer :doing_business_as_names
919
+
920
+ # @!attribute email
921
+ # The entity's primary email.
922
+ #
923
+ # @return [String, nil]
924
+ optional :email, String, nil?: true
925
+
926
+ # @!attribute first_name
927
+ # An individual's first name.
928
+ #
929
+ # @return [String, nil]
930
+ optional :first_name, String, nil?: true
931
+
932
+ # @!attribute [r] identifications
933
+ # A list of identifications for the legal entity.
934
+ #
935
+ # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification>, nil]
936
+ optional :identifications,
937
+ -> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification] }
938
+
939
+ # @!parse
940
+ # # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification>]
941
+ # attr_writer :identifications
942
+
943
+ # @!attribute last_name
944
+ # An individual's last name.
945
+ #
946
+ # @return [String, nil]
947
+ optional :last_name, String, nil?: true
948
+
949
+ # @!attribute legal_entity_associations
950
+ # The legal entity associations and its child legal entities.
951
+ #
952
+ # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation>, nil]
953
+ optional :legal_entity_associations,
954
+ -> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation] },
955
+ nil?: true
956
+
957
+ # @!attribute legal_structure
958
+ # The business's legal structure.
959
+ #
960
+ # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure, nil]
961
+ optional :legal_structure,
962
+ enum: -> { ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure },
963
+ nil?: true
964
+
965
+ # @!attribute [r] metadata
966
+ # Additional data represented as key-value pairs. Both the key and value must be
967
+ # strings.
968
+ #
969
+ # @return [Hash{Symbol=>String}, nil]
970
+ optional :metadata, ModernTreasury::HashOf[String]
971
+
972
+ # @!parse
973
+ # # @return [Hash{Symbol=>String}]
974
+ # attr_writer :metadata
975
+
976
+ # @!attribute middle_name
977
+ # An individual's middle name.
978
+ #
979
+ # @return [String, nil]
980
+ optional :middle_name, String, nil?: true
981
+
982
+ # @!attribute [r] phone_numbers
983
+ #
984
+ # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber>, nil]
985
+ optional :phone_numbers,
986
+ -> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber] }
987
+
988
+ # @!parse
989
+ # # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber>]
990
+ # attr_writer :phone_numbers
991
+
992
+ # @!attribute politically_exposed_person
993
+ # Whether the individual is a politically exposed person.
994
+ #
995
+ # @return [Boolean, nil]
996
+ optional :politically_exposed_person, ModernTreasury::BooleanModel, nil?: true
997
+
998
+ # @!attribute preferred_name
999
+ # An individual's preferred name.
1000
+ #
1001
+ # @return [String, nil]
1002
+ optional :preferred_name, String, nil?: true
1003
+
1004
+ # @!attribute prefix
1005
+ # An individual's prefix.
1006
+ #
1007
+ # @return [String, nil]
1008
+ optional :prefix, String, nil?: true
1009
+
1010
+ # @!attribute risk_rating
1011
+ # The risk rating of the legal entity. One of low, medium, high.
1012
+ #
1013
+ # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::RiskRating, nil]
1014
+ optional :risk_rating,
1015
+ enum: -> { ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::RiskRating },
1016
+ nil?: true
1017
+
1018
+ # @!attribute suffix
1019
+ # An individual's suffix.
1020
+ #
1021
+ # @return [String, nil]
1022
+ optional :suffix, String, nil?: true
1023
+
1024
+ # @!attribute wealth_and_employment_details
1025
+ #
1026
+ # @return [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
1027
+ optional :wealth_and_employment_details,
1028
+ -> { ModernTreasury::Models::WealthAndEmploymentDetails },
1029
+ nil?: true
1030
+
1031
+ # @!attribute website
1032
+ # The entity's primary website URL.
1033
+ #
1034
+ # @return [String, nil]
1035
+ optional :website, String, nil?: true
1036
+
1037
+ # @!parse
1038
+ # # @param legal_entity_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityType]
1039
+ # # @param addresses [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address>]
1040
+ # # @param bank_settings [ModernTreasury::Models::BankSettings, nil]
1041
+ # # @param business_name [String, nil]
1042
+ # # @param citizenship_country [String, nil]
1043
+ # # @param date_formed [Date, nil]
1044
+ # # @param date_of_birth [Date, nil]
1045
+ # # @param doing_business_as_names [Array<String>]
1046
+ # # @param email [String, nil]
1047
+ # # @param first_name [String, nil]
1048
+ # # @param identifications [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification>]
1049
+ # # @param last_name [String, nil]
1050
+ # # @param legal_entity_associations [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation>, nil]
1051
+ # # @param legal_structure [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure, nil]
1052
+ # # @param metadata [Hash{Symbol=>String}]
1053
+ # # @param middle_name [String, nil]
1054
+ # # @param phone_numbers [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber>]
1055
+ # # @param politically_exposed_person [Boolean, nil]
1056
+ # # @param preferred_name [String, nil]
1057
+ # # @param prefix [String, nil]
1058
+ # # @param risk_rating [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::RiskRating, nil]
1059
+ # # @param suffix [String, nil]
1060
+ # # @param wealth_and_employment_details [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
1061
+ # # @param website [String, nil]
1062
+ # #
1063
+ # def initialize(
1064
+ # legal_entity_type:,
1065
+ # addresses: nil,
1066
+ # bank_settings: nil,
1067
+ # business_name: nil,
1068
+ # citizenship_country: nil,
1069
+ # date_formed: nil,
1070
+ # date_of_birth: nil,
1071
+ # doing_business_as_names: nil,
1072
+ # email: nil,
1073
+ # first_name: nil,
1074
+ # identifications: nil,
1075
+ # last_name: nil,
1076
+ # legal_entity_associations: nil,
1077
+ # legal_structure: nil,
1078
+ # metadata: nil,
1079
+ # middle_name: nil,
1080
+ # phone_numbers: nil,
1081
+ # politically_exposed_person: nil,
1082
+ # preferred_name: nil,
1083
+ # prefix: nil,
1084
+ # risk_rating: nil,
1085
+ # suffix: nil,
1086
+ # wealth_and_employment_details: nil,
1087
+ # website: nil,
1088
+ # **
1089
+ # )
1090
+ # super
1091
+ # end
1092
+
1093
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1094
+
1095
+ # @abstract
1096
+ #
1097
+ # The type of legal entity.
1098
+ #
1099
+ # @example
1100
+ # ```ruby
1101
+ # case legal_entity_type
1102
+ # in :business
1103
+ # # ...
1104
+ # in :individual
1105
+ # # ...
1106
+ # end
1107
+ # ```
1108
+ class LegalEntityType < ModernTreasury::Enum
1109
+ BUSINESS = :business
1110
+ INDIVIDUAL = :individual
1111
+
1112
+ finalize!
1113
+
1114
+ # @!parse
1115
+ # # @return [Array<Symbol>]
1116
+ # #
1117
+ # def self.values; end
1118
+ end
1119
+
1120
+ class Address < ModernTreasury::BaseModel
1121
+ # @!attribute country
1122
+ # Country code conforms to [ISO 3166-1 alpha-2]
1123
+ #
1124
+ # @return [String, nil]
1125
+ required :country, String, nil?: true
1126
+
1127
+ # @!attribute line1
1128
+ #
1129
+ # @return [String, nil]
1130
+ required :line1, String, nil?: true
1131
+
1132
+ # @!attribute locality
1133
+ # Locality or City.
1134
+ #
1135
+ # @return [String, nil]
1136
+ required :locality, String, nil?: true
1137
+
1138
+ # @!attribute postal_code
1139
+ # The postal code of the address.
1140
+ #
1141
+ # @return [String, nil]
1142
+ required :postal_code, String, nil?: true
1143
+
1144
+ # @!attribute region
1145
+ # Region or State.
1146
+ #
1147
+ # @return [String, nil]
1148
+ required :region, String, nil?: true
1149
+
1150
+ # @!attribute [r] address_types
1151
+ # The types of this address.
1152
+ #
1153
+ # @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType>, nil]
1154
+ optional :address_types,
1155
+ -> { ModernTreasury::ArrayOf[enum: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType] }
1156
+
1157
+ # @!parse
1158
+ # # @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType>]
1159
+ # attr_writer :address_types
1160
+
1161
+ # @!attribute line2
1162
+ #
1163
+ # @return [String, nil]
1164
+ optional :line2, String, nil?: true
1165
+
1166
+ # @!parse
1167
+ # # @param country [String, nil]
1168
+ # # @param line1 [String, nil]
1169
+ # # @param locality [String, nil]
1170
+ # # @param postal_code [String, nil]
1171
+ # # @param region [String, nil]
1172
+ # # @param address_types [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType>]
1173
+ # # @param line2 [String, nil]
1174
+ # #
1175
+ # def initialize(country:, line1:, locality:, postal_code:, region:, address_types: nil, line2: nil, **) = super
1176
+
1177
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1178
+
1179
+ # @abstract
1180
+ #
1181
+ # @example
1182
+ # ```ruby
1183
+ # case address_type
1184
+ # in :business
1185
+ # # ...
1186
+ # in :mailing
1187
+ # # ...
1188
+ # in :other
1189
+ # # ...
1190
+ # in :po_box
1191
+ # # ...
1192
+ # in :residential
1193
+ # # ...
1194
+ # end
1195
+ # ```
1196
+ class AddressType < ModernTreasury::Enum
1197
+ BUSINESS = :business
1198
+ MAILING = :mailing
1199
+ OTHER = :other
1200
+ PO_BOX = :po_box
1201
+ RESIDENTIAL = :residential
1202
+
1203
+ finalize!
1204
+
1205
+ # @!parse
1206
+ # # @return [Array<Symbol>]
1207
+ # #
1208
+ # def self.values; end
1209
+ end
1210
+ end
1211
+
1212
+ class Identification < ModernTreasury::BaseModel
1213
+ # @!attribute id_number
1214
+ # The ID number of identification document.
1215
+ #
1216
+ # @return [String]
1217
+ required :id_number, String
1218
+
1219
+ # @!attribute id_type
1220
+ # The type of ID number.
1221
+ #
1222
+ # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType]
1223
+ required :id_type,
1224
+ enum: -> { ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType }
1225
+
1226
+ # @!attribute issuing_country
1227
+ # The ISO 3166-1 alpha-2 country code of the country that issued the
1228
+ # identification
1229
+ #
1230
+ # @return [String, nil]
1231
+ optional :issuing_country, String, nil?: true
1232
+
1233
+ # @!parse
1234
+ # # @param id_number [String]
1235
+ # # @param id_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType]
1236
+ # # @param issuing_country [String, nil]
1237
+ # #
1238
+ # def initialize(id_number:, id_type:, issuing_country: nil, **) = super
1239
+
1240
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1241
+
1242
+ # @abstract
1243
+ #
1244
+ # The type of ID number.
1245
+ #
1246
+ # @example
1247
+ # ```ruby
1248
+ # case id_type
1249
+ # in :ar_cuil
1250
+ # # ...
1251
+ # in :ar_cuit
1252
+ # # ...
1253
+ # in :br_cnpj
1254
+ # # ...
1255
+ # in :br_cpf
1256
+ # # ...
1257
+ # in :cl_run
1258
+ # # ...
1259
+ # in ...
1260
+ # #...
1261
+ # end
1262
+ # ```
1263
+ class IDType < ModernTreasury::Enum
1264
+ AR_CUIL = :ar_cuil
1265
+ AR_CUIT = :ar_cuit
1266
+ BR_CNPJ = :br_cnpj
1267
+ BR_CPF = :br_cpf
1268
+ CL_RUN = :cl_run
1269
+ CL_RUT = :cl_rut
1270
+ CO_CEDULAS = :co_cedulas
1271
+ CO_NIT = :co_nit
1272
+ HN_ID = :hn_id
1273
+ HN_RTN = :hn_rtn
1274
+ IN_LEI = :in_lei
1275
+ KR_BRN = :kr_brn
1276
+ KR_CRN = :kr_crn
1277
+ KR_RRN = :kr_rrn
1278
+ PASSPORT = :passport
1279
+ SA_TIN = :sa_tin
1280
+ SA_VAT = :sa_vat
1281
+ US_EIN = :us_ein
1282
+ US_ITIN = :us_itin
1283
+ US_SSN = :us_ssn
1284
+ VN_TIN = :vn_tin
1285
+
1286
+ finalize!
1287
+
1288
+ # @!parse
1289
+ # # @return [Array<Symbol>]
1290
+ # #
1291
+ # def self.values; end
1292
+ end
1293
+ end
1294
+
1295
+ class LegalEntityAssociation < ModernTreasury::BaseModel
1296
+ # @!attribute relationship_types
1297
+ #
1298
+ # @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType>]
1299
+ required :relationship_types,
1300
+ -> do
1301
+ ModernTreasury::ArrayOf[
1302
+ enum: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType
1303
+ ]
1304
+ end
1305
+
1306
+ # @!attribute [r] child_legal_entity
1307
+ # The child legal entity.
1308
+ #
1309
+ # @return [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity, nil]
1310
+ optional :child_legal_entity,
1311
+ -> { ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity }
1312
+
1313
+ # @!parse
1314
+ # # @return [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity]
1315
+ # attr_writer :child_legal_entity
1316
+
1317
+ # @!attribute [r] child_legal_entity_id
1318
+ # The ID of the child legal entity.
1319
+ #
1320
+ # @return [String, nil]
1321
+ optional :child_legal_entity_id, String
1322
+
1323
+ # @!parse
1324
+ # # @return [String]
1325
+ # attr_writer :child_legal_entity_id
1326
+
1327
+ # @!attribute ownership_percentage
1328
+ # The child entity's ownership percentage iff they are a beneficial owner.
1329
+ #
1330
+ # @return [Integer, nil]
1331
+ optional :ownership_percentage, Integer, nil?: true
1332
+
1333
+ # @!attribute title
1334
+ # The job title of the child entity at the parent entity.
1335
+ #
1336
+ # @return [String, nil]
1337
+ optional :title, String, nil?: true
1338
+
1339
+ # @!parse
1340
+ # # @param relationship_types [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType>]
1341
+ # # @param child_legal_entity [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity]
1342
+ # # @param child_legal_entity_id [String]
1343
+ # # @param ownership_percentage [Integer, nil]
1344
+ # # @param title [String, nil]
1345
+ # #
1346
+ # def initialize(
1347
+ # relationship_types:,
1348
+ # child_legal_entity: nil,
1349
+ # child_legal_entity_id: nil,
1350
+ # ownership_percentage: nil,
1351
+ # title: nil,
1352
+ # **
1353
+ # )
1354
+ # super
1355
+ # end
1356
+
1357
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1358
+
1359
+ # @abstract
1360
+ #
1361
+ # A list of relationship types for how the child entity relates to parent entity.
1362
+ #
1363
+ # @example
1364
+ # ```ruby
1365
+ # case relationship_type
1366
+ # in :beneficial_owner
1367
+ # # ...
1368
+ # in :control_person
1369
+ # # ...
1370
+ # end
1371
+ # ```
1372
+ class RelationshipType < ModernTreasury::Enum
1373
+ BENEFICIAL_OWNER = :beneficial_owner
1374
+ CONTROL_PERSON = :control_person
1375
+
1376
+ finalize!
1377
+
1378
+ # @!parse
1379
+ # # @return [Array<Symbol>]
1380
+ # #
1381
+ # def self.values; end
1382
+ end
1383
+
1384
+ class ChildLegalEntity < ModernTreasury::BaseModel
1385
+ # @!attribute [r] addresses
1386
+ # A list of addresses for the entity.
1387
+ #
1388
+ # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address>, nil]
1389
+ optional :addresses,
1390
+ -> do
1391
+ ModernTreasury::ArrayOf[
1392
+ ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address
1393
+ ]
1394
+ end
1395
+
1396
+ # @!parse
1397
+ # # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address>]
1398
+ # attr_writer :addresses
1399
+
1400
+ # @!attribute bank_settings
1401
+ #
1402
+ # @return [ModernTreasury::Models::BankSettings, nil]
1403
+ optional :bank_settings, -> { ModernTreasury::Models::BankSettings }, nil?: true
1404
+
1405
+ # @!attribute business_name
1406
+ # The business's legal business name.
1407
+ #
1408
+ # @return [String, nil]
1409
+ optional :business_name, String, nil?: true
1410
+
1411
+ # @!attribute citizenship_country
1412
+ # The country of citizenship for an individual.
1413
+ #
1414
+ # @return [String, nil]
1415
+ optional :citizenship_country, String, nil?: true
1416
+
1417
+ # @!attribute date_formed
1418
+ # A business's formation date (YYYY-MM-DD).
1419
+ #
1420
+ # @return [Date, nil]
1421
+ optional :date_formed, Date, nil?: true
1422
+
1423
+ # @!attribute date_of_birth
1424
+ # An individual's date of birth (YYYY-MM-DD).
1425
+ #
1426
+ # @return [Date, nil]
1427
+ optional :date_of_birth, Date, nil?: true
1428
+
1429
+ # @!attribute [r] doing_business_as_names
1430
+ #
1431
+ # @return [Array<String>, nil]
1432
+ optional :doing_business_as_names, ModernTreasury::ArrayOf[String]
1433
+
1434
+ # @!parse
1435
+ # # @return [Array<String>]
1436
+ # attr_writer :doing_business_as_names
1437
+
1438
+ # @!attribute email
1439
+ # The entity's primary email.
1440
+ #
1441
+ # @return [String, nil]
1442
+ optional :email, String, nil?: true
1443
+
1444
+ # @!attribute first_name
1445
+ # An individual's first name.
1446
+ #
1447
+ # @return [String, nil]
1448
+ optional :first_name, String, nil?: true
1449
+
1450
+ # @!attribute [r] identifications
1451
+ # A list of identifications for the legal entity.
1452
+ #
1453
+ # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification>, nil]
1454
+ optional :identifications,
1455
+ -> do
1456
+ ModernTreasury::ArrayOf[
1457
+ ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification
1458
+ ]
1459
+ end
1460
+
1461
+ # @!parse
1462
+ # # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification>]
1463
+ # attr_writer :identifications
1464
+
1465
+ # @!attribute last_name
1466
+ # An individual's last name.
1467
+ #
1468
+ # @return [String, nil]
1469
+ optional :last_name, String, nil?: true
1470
+
1471
+ # @!attribute [r] legal_entity_type
1472
+ # The type of legal entity.
1473
+ #
1474
+ # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType, nil]
1475
+ optional :legal_entity_type,
1476
+ enum: -> { ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType }
1477
+
1478
+ # @!parse
1479
+ # # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType]
1480
+ # attr_writer :legal_entity_type
1481
+
1482
+ # @!attribute legal_structure
1483
+ # The business's legal structure.
1484
+ #
1485
+ # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil]
1486
+ optional :legal_structure,
1487
+ enum: -> { ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure },
1488
+ nil?: true
1489
+
1490
+ # @!attribute [r] metadata
1491
+ # Additional data represented as key-value pairs. Both the key and value must be
1492
+ # strings.
1493
+ #
1494
+ # @return [Hash{Symbol=>String}, nil]
1495
+ optional :metadata, ModernTreasury::HashOf[String]
1496
+
1497
+ # @!parse
1498
+ # # @return [Hash{Symbol=>String}]
1499
+ # attr_writer :metadata
1500
+
1501
+ # @!attribute middle_name
1502
+ # An individual's middle name.
1503
+ #
1504
+ # @return [String, nil]
1505
+ optional :middle_name, String, nil?: true
1506
+
1507
+ # @!attribute [r] phone_numbers
1508
+ #
1509
+ # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>, nil]
1510
+ optional :phone_numbers,
1511
+ -> do
1512
+ ModernTreasury::ArrayOf[
1513
+ ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber
1514
+ ]
1515
+ end
1516
+
1517
+ # @!parse
1518
+ # # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>]
1519
+ # attr_writer :phone_numbers
1520
+
1521
+ # @!attribute politically_exposed_person
1522
+ # Whether the individual is a politically exposed person.
1523
+ #
1524
+ # @return [Boolean, nil]
1525
+ optional :politically_exposed_person, ModernTreasury::BooleanModel, nil?: true
1526
+
1527
+ # @!attribute preferred_name
1528
+ # An individual's preferred name.
1529
+ #
1530
+ # @return [String, nil]
1531
+ optional :preferred_name, String, nil?: true
1532
+
1533
+ # @!attribute prefix
1534
+ # An individual's prefix.
1535
+ #
1536
+ # @return [String, nil]
1537
+ optional :prefix, String, nil?: true
1538
+
1539
+ # @!attribute risk_rating
1540
+ # The risk rating of the legal entity. One of low, medium, high.
1541
+ #
1542
+ # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil]
1543
+ optional :risk_rating,
1544
+ enum: -> { ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating },
1545
+ nil?: true
1546
+
1547
+ # @!attribute suffix
1548
+ # An individual's suffix.
1549
+ #
1550
+ # @return [String, nil]
1551
+ optional :suffix, String, nil?: true
1552
+
1553
+ # @!attribute wealth_and_employment_details
1554
+ #
1555
+ # @return [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
1556
+ optional :wealth_and_employment_details,
1557
+ -> { ModernTreasury::Models::WealthAndEmploymentDetails },
1558
+ nil?: true
1559
+
1560
+ # @!attribute website
1561
+ # The entity's primary website URL.
1562
+ #
1563
+ # @return [String, nil]
1564
+ optional :website, String, nil?: true
1565
+
1566
+ # @!parse
1567
+ # # The child legal entity.
1568
+ # #
1569
+ # # @param addresses [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address>]
1570
+ # # @param bank_settings [ModernTreasury::Models::BankSettings, nil]
1571
+ # # @param business_name [String, nil]
1572
+ # # @param citizenship_country [String, nil]
1573
+ # # @param date_formed [Date, nil]
1574
+ # # @param date_of_birth [Date, nil]
1575
+ # # @param doing_business_as_names [Array<String>]
1576
+ # # @param email [String, nil]
1577
+ # # @param first_name [String, nil]
1578
+ # # @param identifications [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification>]
1579
+ # # @param last_name [String, nil]
1580
+ # # @param legal_entity_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType]
1581
+ # # @param legal_structure [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil]
1582
+ # # @param metadata [Hash{Symbol=>String}]
1583
+ # # @param middle_name [String, nil]
1584
+ # # @param phone_numbers [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>]
1585
+ # # @param politically_exposed_person [Boolean, nil]
1586
+ # # @param preferred_name [String, nil]
1587
+ # # @param prefix [String, nil]
1588
+ # # @param risk_rating [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil]
1589
+ # # @param suffix [String, nil]
1590
+ # # @param wealth_and_employment_details [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
1591
+ # # @param website [String, nil]
1592
+ # #
1593
+ # def initialize(
1594
+ # addresses: nil,
1595
+ # bank_settings: nil,
1596
+ # business_name: nil,
1597
+ # citizenship_country: nil,
1598
+ # date_formed: nil,
1599
+ # date_of_birth: nil,
1600
+ # doing_business_as_names: nil,
1601
+ # email: nil,
1602
+ # first_name: nil,
1603
+ # identifications: nil,
1604
+ # last_name: nil,
1605
+ # legal_entity_type: nil,
1606
+ # legal_structure: nil,
1607
+ # metadata: nil,
1608
+ # middle_name: nil,
1609
+ # phone_numbers: nil,
1610
+ # politically_exposed_person: nil,
1611
+ # preferred_name: nil,
1612
+ # prefix: nil,
1613
+ # risk_rating: nil,
1614
+ # suffix: nil,
1615
+ # wealth_and_employment_details: nil,
1616
+ # website: nil,
1617
+ # **
1618
+ # )
1619
+ # super
1620
+ # end
1621
+
1622
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1623
+
1624
+ class Address < ModernTreasury::BaseModel
1625
+ # @!attribute country
1626
+ # Country code conforms to [ISO 3166-1 alpha-2]
1627
+ #
1628
+ # @return [String, nil]
1629
+ required :country, String, nil?: true
1630
+
1631
+ # @!attribute line1
1632
+ #
1633
+ # @return [String, nil]
1634
+ required :line1, String, nil?: true
1635
+
1636
+ # @!attribute locality
1637
+ # Locality or City.
1638
+ #
1639
+ # @return [String, nil]
1640
+ required :locality, String, nil?: true
1641
+
1642
+ # @!attribute postal_code
1643
+ # The postal code of the address.
1644
+ #
1645
+ # @return [String, nil]
1646
+ required :postal_code, String, nil?: true
1647
+
1648
+ # @!attribute region
1649
+ # Region or State.
1650
+ #
1651
+ # @return [String, nil]
1652
+ required :region, String, nil?: true
1653
+
1654
+ # @!attribute [r] address_types
1655
+ # The types of this address.
1656
+ #
1657
+ # @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>, nil]
1658
+ optional :address_types,
1659
+ -> do
1660
+ ModernTreasury::ArrayOf[
1661
+ enum: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType
1662
+ ]
1663
+ end
1664
+
1665
+ # @!parse
1666
+ # # @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>]
1667
+ # attr_writer :address_types
1668
+
1669
+ # @!attribute line2
1670
+ #
1671
+ # @return [String, nil]
1672
+ optional :line2, String, nil?: true
1673
+
1674
+ # @!parse
1675
+ # # @param country [String, nil]
1676
+ # # @param line1 [String, nil]
1677
+ # # @param locality [String, nil]
1678
+ # # @param postal_code [String, nil]
1679
+ # # @param region [String, nil]
1680
+ # # @param address_types [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>]
1681
+ # # @param line2 [String, nil]
1682
+ # #
1683
+ # def initialize(country:, line1:, locality:, postal_code:, region:, address_types: nil, line2: nil, **) = super
1684
+
1685
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1686
+
1687
+ # @abstract
1688
+ #
1689
+ # @example
1690
+ # ```ruby
1691
+ # case address_type
1692
+ # in :business
1693
+ # # ...
1694
+ # in :mailing
1695
+ # # ...
1696
+ # in :other
1697
+ # # ...
1698
+ # in :po_box
1699
+ # # ...
1700
+ # in :residential
1701
+ # # ...
1702
+ # end
1703
+ # ```
1704
+ class AddressType < ModernTreasury::Enum
1705
+ BUSINESS = :business
1706
+ MAILING = :mailing
1707
+ OTHER = :other
1708
+ PO_BOX = :po_box
1709
+ RESIDENTIAL = :residential
1710
+
1711
+ finalize!
1712
+
1713
+ # @!parse
1714
+ # # @return [Array<Symbol>]
1715
+ # #
1716
+ # def self.values; end
1717
+ end
1718
+ end
1719
+
1720
+ class Identification < ModernTreasury::BaseModel
1721
+ # @!attribute id_number
1722
+ # The ID number of identification document.
1723
+ #
1724
+ # @return [String]
1725
+ required :id_number, String
1726
+
1727
+ # @!attribute id_type
1728
+ # The type of ID number.
1729
+ #
1730
+ # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType]
1731
+ required :id_type,
1732
+ enum: -> { ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType }
1733
+
1734
+ # @!attribute issuing_country
1735
+ # The ISO 3166-1 alpha-2 country code of the country that issued the
1736
+ # identification
1737
+ #
1738
+ # @return [String, nil]
1739
+ optional :issuing_country, String, nil?: true
1740
+
1741
+ # @!parse
1742
+ # # @param id_number [String]
1743
+ # # @param id_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType]
1744
+ # # @param issuing_country [String, nil]
1745
+ # #
1746
+ # def initialize(id_number:, id_type:, issuing_country: nil, **) = super
1747
+
1748
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1749
+
1750
+ # @abstract
1751
+ #
1752
+ # The type of ID number.
1753
+ #
1754
+ # @example
1755
+ # ```ruby
1756
+ # case id_type
1757
+ # in :ar_cuil
1758
+ # # ...
1759
+ # in :ar_cuit
1760
+ # # ...
1761
+ # in :br_cnpj
1762
+ # # ...
1763
+ # in :br_cpf
1764
+ # # ...
1765
+ # in :cl_run
1766
+ # # ...
1767
+ # in ...
1768
+ # #...
1769
+ # end
1770
+ # ```
1771
+ class IDType < ModernTreasury::Enum
1772
+ AR_CUIL = :ar_cuil
1773
+ AR_CUIT = :ar_cuit
1774
+ BR_CNPJ = :br_cnpj
1775
+ BR_CPF = :br_cpf
1776
+ CL_RUN = :cl_run
1777
+ CL_RUT = :cl_rut
1778
+ CO_CEDULAS = :co_cedulas
1779
+ CO_NIT = :co_nit
1780
+ HN_ID = :hn_id
1781
+ HN_RTN = :hn_rtn
1782
+ IN_LEI = :in_lei
1783
+ KR_BRN = :kr_brn
1784
+ KR_CRN = :kr_crn
1785
+ KR_RRN = :kr_rrn
1786
+ PASSPORT = :passport
1787
+ SA_TIN = :sa_tin
1788
+ SA_VAT = :sa_vat
1789
+ US_EIN = :us_ein
1790
+ US_ITIN = :us_itin
1791
+ US_SSN = :us_ssn
1792
+ VN_TIN = :vn_tin
1793
+
1794
+ finalize!
1795
+
1796
+ # @!parse
1797
+ # # @return [Array<Symbol>]
1798
+ # #
1799
+ # def self.values; end
1800
+ end
1801
+ end
1802
+
1803
+ # @abstract
1804
+ #
1805
+ # The type of legal entity.
1806
+ #
1807
+ # @example
1808
+ # ```ruby
1809
+ # case legal_entity_type
1810
+ # in :business
1811
+ # # ...
1812
+ # in :individual
1813
+ # # ...
1814
+ # end
1815
+ # ```
1816
+ class LegalEntityType < ModernTreasury::Enum
1817
+ BUSINESS = :business
1818
+ INDIVIDUAL = :individual
1819
+
1820
+ finalize!
1821
+
1822
+ # @!parse
1823
+ # # @return [Array<Symbol>]
1824
+ # #
1825
+ # def self.values; end
1826
+ end
1827
+
1828
+ # @abstract
1829
+ #
1830
+ # The business's legal structure.
1831
+ #
1832
+ # @example
1833
+ # ```ruby
1834
+ # case legal_structure
1835
+ # in :corporation
1836
+ # # ...
1837
+ # in :llc
1838
+ # # ...
1839
+ # in :non_profit
1840
+ # # ...
1841
+ # in :partnership
1842
+ # # ...
1843
+ # in :sole_proprietorship
1844
+ # # ...
1845
+ # in ...
1846
+ # #...
1847
+ # end
1848
+ # ```
1849
+ class LegalStructure < ModernTreasury::Enum
1850
+ CORPORATION = :corporation
1851
+ LLC = :llc
1852
+ NON_PROFIT = :non_profit
1853
+ PARTNERSHIP = :partnership
1854
+ SOLE_PROPRIETORSHIP = :sole_proprietorship
1855
+ TRUST = :trust
1856
+
1857
+ finalize!
1858
+
1859
+ # @!parse
1860
+ # # @return [Array<Symbol>]
1861
+ # #
1862
+ # def self.values; end
1863
+ end
1864
+
1865
+ class PhoneNumber < ModernTreasury::BaseModel
1866
+ # @!attribute [r] phone_number
1867
+ #
1868
+ # @return [String, nil]
1869
+ optional :phone_number, String
1870
+
1871
+ # @!parse
1872
+ # # @return [String]
1873
+ # attr_writer :phone_number
1874
+
1875
+ # @!parse
1876
+ # # A list of phone numbers in E.164 format.
1877
+ # #
1878
+ # # @param phone_number [String]
1879
+ # #
1880
+ # def initialize(phone_number: nil, **) = super
1881
+
1882
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1883
+ end
1884
+
1885
+ # @abstract
1886
+ #
1887
+ # The risk rating of the legal entity. One of low, medium, high.
1888
+ #
1889
+ # @example
1890
+ # ```ruby
1891
+ # case risk_rating
1892
+ # in :low
1893
+ # # ...
1894
+ # in :medium
1895
+ # # ...
1896
+ # in :high
1897
+ # # ...
1898
+ # end
1899
+ # ```
1900
+ class RiskRating < ModernTreasury::Enum
1901
+ LOW = :low
1902
+ MEDIUM = :medium
1903
+ HIGH = :high
1904
+
1905
+ finalize!
1906
+
1907
+ # @!parse
1908
+ # # @return [Array<Symbol>]
1909
+ # #
1910
+ # def self.values; end
1911
+ end
1912
+ end
1913
+ end
1914
+
1915
+ # @abstract
1916
+ #
1917
+ # The business's legal structure.
1918
+ #
1919
+ # @example
1920
+ # ```ruby
1921
+ # case legal_structure
1922
+ # in :corporation
1923
+ # # ...
1924
+ # in :llc
1925
+ # # ...
1926
+ # in :non_profit
1927
+ # # ...
1928
+ # in :partnership
1929
+ # # ...
1930
+ # in :sole_proprietorship
1931
+ # # ...
1932
+ # in ...
1933
+ # #...
1934
+ # end
1935
+ # ```
1936
+ class LegalStructure < ModernTreasury::Enum
1937
+ CORPORATION = :corporation
1938
+ LLC = :llc
1939
+ NON_PROFIT = :non_profit
1940
+ PARTNERSHIP = :partnership
1941
+ SOLE_PROPRIETORSHIP = :sole_proprietorship
1942
+ TRUST = :trust
1943
+
1944
+ finalize!
1945
+
1946
+ # @!parse
1947
+ # # @return [Array<Symbol>]
1948
+ # #
1949
+ # def self.values; end
1950
+ end
1951
+
1952
+ class PhoneNumber < ModernTreasury::BaseModel
1953
+ # @!attribute [r] phone_number
1954
+ #
1955
+ # @return [String, nil]
1956
+ optional :phone_number, String
1957
+
1958
+ # @!parse
1959
+ # # @return [String]
1960
+ # attr_writer :phone_number
1961
+
1962
+ # @!parse
1963
+ # # A list of phone numbers in E.164 format.
1964
+ # #
1965
+ # # @param phone_number [String]
1966
+ # #
1967
+ # def initialize(phone_number: nil, **) = super
1968
+
1969
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1970
+ end
1971
+
1972
+ # @abstract
1973
+ #
1974
+ # The risk rating of the legal entity. One of low, medium, high.
1975
+ #
1976
+ # @example
1977
+ # ```ruby
1978
+ # case risk_rating
1979
+ # in :low
1980
+ # # ...
1981
+ # in :medium
1982
+ # # ...
1983
+ # in :high
1984
+ # # ...
1985
+ # end
1986
+ # ```
1987
+ class RiskRating < ModernTreasury::Enum
1988
+ LOW = :low
1989
+ MEDIUM = :medium
1990
+ HIGH = :high
1991
+
1992
+ finalize!
1993
+
1994
+ # @!parse
1995
+ # # @return [Array<Symbol>]
1996
+ # #
1997
+ # def self.values; end
1998
+ end
1999
+ end
2000
+
2001
+ # @abstract
2002
+ #
2003
+ # The verification status of the counterparty.
2004
+ #
2005
+ # @example
2006
+ # ```ruby
2007
+ # case verification_status
2008
+ # in :denied
2009
+ # # ...
2010
+ # in :needs_approval
2011
+ # # ...
2012
+ # in :unverified
2013
+ # # ...
2014
+ # in :verified
2015
+ # # ...
2016
+ # end
2017
+ # ```
2018
+ class VerificationStatus < ModernTreasury::Enum
2019
+ DENIED = :denied
2020
+ NEEDS_APPROVAL = :needs_approval
2021
+ UNVERIFIED = :unverified
2022
+ VERIFIED = :verified
2023
+
2024
+ finalize!
2025
+
2026
+ # @!parse
2027
+ # # @return [Array<Symbol>]
2028
+ # #
2029
+ # def self.values; end
2030
+ end
2031
+ end
2032
+ end
2033
+ end