modern_treasury 0.0.0 → 0.1.0.pre.alpha.16

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 +168 -0
  3. data/lib/modern_treasury/base_client.rb +457 -0
  4. data/lib/modern_treasury/base_model.rb +1211 -0
  5. data/lib/modern_treasury/base_page.rb +59 -0
  6. data/lib/modern_treasury/client.rb +250 -0
  7. data/lib/modern_treasury/errors.rb +183 -0
  8. data/lib/modern_treasury/extern.rb +7 -0
  9. data/lib/modern_treasury/models/account_collection_flow.rb +199 -0
  10. data/lib/modern_treasury/models/account_collection_flow_create_params.rb +72 -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 +40 -0
  14. data/lib/modern_treasury/models/account_detail.rb +113 -0
  15. data/lib/modern_treasury/models/account_detail_create_params.rb +79 -0
  16. data/lib/modern_treasury/models/account_detail_delete_params.rb +42 -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 +18 -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 +159 -0
  23. data/lib/modern_treasury/models/bulk_request_create_params.rb +4128 -0
  24. data/lib/modern_treasury/models/bulk_request_list_params.rb +137 -0
  25. data/lib/modern_treasury/models/bulk_request_retrieve_params.rb +18 -0
  26. data/lib/modern_treasury/models/bulk_result.rb +272 -0
  27. data/lib/modern_treasury/models/bulk_result_list_params.rb +151 -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 +109 -0
  32. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +1024 -0
  33. data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +89 -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 +42 -0
  36. data/lib/modern_treasury/models/connection_list_params.rb +56 -0
  37. data/lib/modern_treasury/models/counterparty.rb +561 -0
  38. data/lib/modern_treasury/models/counterparty_collect_account_params.rb +110 -0
  39. data/lib/modern_treasury/models/counterparty_collect_account_response.rb +38 -0
  40. data/lib/modern_treasury/models/counterparty_create_params.rb +1737 -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 +206 -0
  46. data/lib/modern_treasury/models/document.rb +247 -0
  47. data/lib/modern_treasury/models/document_create_params.rb +71 -0
  48. data/lib/modern_treasury/models/document_list_params.rb +84 -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 +285 -0
  54. data/lib/modern_treasury/models/expected_payment_create_params.rb +537 -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 +199 -0
  57. data/lib/modern_treasury/models/expected_payment_retrieve_params.rb +18 -0
  58. data/lib/modern_treasury/models/expected_payment_type.rb +48 -0
  59. data/lib/modern_treasury/models/expected_payment_update_params.rb +207 -0
  60. data/lib/modern_treasury/models/external_account.rb +389 -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 +570 -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 +25 -0
  67. data/lib/modern_treasury/models/external_account_update_params.rb +159 -0
  68. data/lib/modern_treasury/models/external_account_verify_params.rb +151 -0
  69. data/lib/modern_treasury/models/external_account_verify_response.rb +186 -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 +320 -0
  75. data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +141 -0
  76. data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +170 -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 +299 -0
  80. data/lib/modern_treasury/models/internal_account_create_params.rb +186 -0
  81. data/lib/modern_treasury/models/internal_account_list_params.rb +157 -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 +260 -0
  85. data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +135 -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 +77 -0
  88. data/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb +26 -0
  89. data/lib/modern_treasury/models/invoice.rb +624 -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 +649 -0
  92. data/lib/modern_treasury/models/invoice_list_params.rb +163 -0
  93. data/lib/modern_treasury/models/invoice_retrieve_params.rb +18 -0
  94. data/lib/modern_treasury/models/invoice_update_params.rb +665 -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 +351 -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 +142 -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 +175 -0
  124. data/lib/modern_treasury/models/ledger_account_settlement_create_params.rb +117 -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 +64 -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 +346 -0
  138. data/lib/modern_treasury/models/ledger_entry_list_params.rb +347 -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 +218 -0
  142. data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +185 -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 +58 -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 +213 -0
  150. data/lib/modern_treasury/models/ledger_transaction_create_params.rb +272 -0
  151. data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +127 -0
  152. data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +146 -0
  153. data/lib/modern_treasury/models/ledger_transaction_list_params.rb +339 -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 +250 -0
  156. data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +555 -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 +96 -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 +544 -0
  163. data/lib/modern_treasury/models/legal_entity_association.rb +655 -0
  164. data/lib/modern_treasury/models/legal_entity_association_create_params.rb +531 -0
  165. data/lib/modern_treasury/models/legal_entity_create_params.rb +964 -0
  166. data/lib/modern_treasury/models/legal_entity_list_params.rb +90 -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 +417 -0
  169. data/lib/modern_treasury/models/line_item.rb +161 -0
  170. data/lib/modern_treasury/models/line_item_list_params.rb +53 -0
  171. data/lib/modern_treasury/models/line_item_retrieve_params.rb +43 -0
  172. data/lib/modern_treasury/models/line_item_update_params.rb +55 -0
  173. data/lib/modern_treasury/models/paper_item.rb +175 -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 +293 -0
  177. data/lib/modern_treasury/models/payment_flow_create_params.rb +95 -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 +40 -0
  181. data/lib/modern_treasury/models/payment_order.rb +824 -0
  182. data/lib/modern_treasury/models/payment_order_create_async_params.rb +1387 -0
  183. data/lib/modern_treasury/models/payment_order_create_params.rb +1460 -0
  184. data/lib/modern_treasury/models/payment_order_list_params.rb +299 -0
  185. data/lib/modern_treasury/models/payment_order_retrieve_params.rb +18 -0
  186. data/lib/modern_treasury/models/payment_order_subtype.rb +49 -0
  187. data/lib/modern_treasury/models/payment_order_type.rb +49 -0
  188. data/lib/modern_treasury/models/payment_order_update_params.rb +1146 -0
  189. data/lib/modern_treasury/models/payment_orders/reversal.rb +139 -0
  190. data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +340 -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 +189 -0
  194. data/lib/modern_treasury/models/payment_reference_list_params.rb +96 -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 +163 -0
  199. data/lib/modern_treasury/models/return_create_params.rb +154 -0
  200. data/lib/modern_treasury/models/return_list_params.rb +110 -0
  201. data/lib/modern_treasury/models/return_object.rb +485 -0
  202. data/lib/modern_treasury/models/return_retrieve_params.rb +18 -0
  203. data/lib/modern_treasury/models/routing_detail.rb +276 -0
  204. data/lib/modern_treasury/models/routing_detail_create_params.rb +141 -0
  205. data/lib/modern_treasury/models/routing_detail_delete_params.rb +42 -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 +211 -0
  209. data/lib/modern_treasury/models/transaction.rb +383 -0
  210. data/lib/modern_treasury/models/transaction_create_params.rb +163 -0
  211. data/lib/modern_treasury/models/transaction_delete_params.rb +18 -0
  212. data/lib/modern_treasury/models/transaction_direction.rb +18 -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 +75 -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 +182 -0
  221. data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +72 -0
  222. data/lib/modern_treasury/models/virtual_account.rb +148 -0
  223. data/lib/modern_treasury/models/virtual_account_create_params.rb +444 -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 +324 -0
  229. data/lib/modern_treasury/page.rb +92 -0
  230. data/lib/modern_treasury/pooled_net_requester.rb +180 -0
  231. data/lib/modern_treasury/request_options.rb +108 -0
  232. data/lib/modern_treasury/resources/account_collection_flows.rb +108 -0
  233. data/lib/modern_treasury/resources/account_details.rb +136 -0
  234. data/lib/modern_treasury/resources/bulk_requests.rb +91 -0
  235. data/lib/modern_treasury/resources/bulk_results.rb +66 -0
  236. data/lib/modern_treasury/resources/connection_legal_entities.rb +105 -0
  237. data/lib/modern_treasury/resources/connections.rb +39 -0
  238. data/lib/modern_treasury/resources/counterparties.rb +203 -0
  239. data/lib/modern_treasury/resources/documents.rb +86 -0
  240. data/lib/modern_treasury/resources/events.rb +63 -0
  241. data/lib/modern_treasury/resources/expected_payments.rb +227 -0
  242. data/lib/modern_treasury/resources/external_accounts.rb +222 -0
  243. data/lib/modern_treasury/resources/foreign_exchange_quotes.rb +101 -0
  244. data/lib/modern_treasury/resources/incoming_payment_details.rb +133 -0
  245. data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +128 -0
  246. data/lib/modern_treasury/resources/internal_accounts.rb +140 -0
  247. data/lib/modern_treasury/resources/invoices/line_items.rb +177 -0
  248. data/lib/modern_treasury/resources/invoices.rb +286 -0
  249. data/lib/modern_treasury/resources/ledger_account_balance_monitors.rb +132 -0
  250. data/lib/modern_treasury/resources/ledger_account_categories.rb +266 -0
  251. data/lib/modern_treasury/resources/ledger_account_settlements/account_entries.rb +62 -0
  252. data/lib/modern_treasury/resources/ledger_account_settlements.rb +152 -0
  253. data/lib/modern_treasury/resources/ledger_account_statements.rb +62 -0
  254. data/lib/modern_treasury/resources/ledger_accounts.rb +189 -0
  255. data/lib/modern_treasury/resources/ledger_entries.rb +137 -0
  256. data/lib/modern_treasury/resources/ledger_event_handlers.rb +114 -0
  257. data/lib/modern_treasury/resources/ledger_transactions/versions.rb +50 -0
  258. data/lib/modern_treasury/resources/ledger_transactions.rb +262 -0
  259. data/lib/modern_treasury/resources/ledgerable_events.rb +57 -0
  260. data/lib/modern_treasury/resources/ledgers.rb +134 -0
  261. data/lib/modern_treasury/resources/legal_entities.rb +193 -0
  262. data/lib/modern_treasury/resources/legal_entity_associations.rb +43 -0
  263. data/lib/modern_treasury/resources/line_items.rb +109 -0
  264. data/lib/modern_treasury/resources/paper_items.rb +60 -0
  265. data/lib/modern_treasury/resources/payment_flows.rb +123 -0
  266. data/lib/modern_treasury/resources/payment_orders/reversals.rb +95 -0
  267. data/lib/modern_treasury/resources/payment_orders.rb +517 -0
  268. data/lib/modern_treasury/resources/payment_references.rb +66 -0
  269. data/lib/modern_treasury/resources/returns.rb +98 -0
  270. data/lib/modern_treasury/resources/routing_details.rb +140 -0
  271. data/lib/modern_treasury/resources/transactions/line_items.rb +104 -0
  272. data/lib/modern_treasury/resources/transactions.rb +174 -0
  273. data/lib/modern_treasury/resources/validations.rb +38 -0
  274. data/lib/modern_treasury/resources/virtual_accounts.rb +152 -0
  275. data/lib/modern_treasury/util.rb +728 -0
  276. data/lib/modern_treasury/version.rb +5 -0
  277. data/lib/modern_treasury.rb +310 -0
  278. data/manifest.yaml +14 -0
  279. data/rbi/lib/modern_treasury/base_client.rbi +197 -0
  280. data/rbi/lib/modern_treasury/base_model.rbi +645 -0
  281. data/rbi/lib/modern_treasury/base_page.rbi +36 -0
  282. data/rbi/lib/modern_treasury/client.rbi +174 -0
  283. data/rbi/lib/modern_treasury/errors.rbi +144 -0
  284. data/rbi/lib/modern_treasury/extern.rbi +7 -0
  285. data/rbi/lib/modern_treasury/models/account_collection_flow.rbi +203 -0
  286. data/rbi/lib/modern_treasury/models/account_collection_flow_create_params.rbi +114 -0
  287. data/rbi/lib/modern_treasury/models/account_collection_flow_list_params.rbi +83 -0
  288. data/rbi/lib/modern_treasury/models/account_collection_flow_retrieve_params.rbi +21 -0
  289. data/rbi/lib/modern_treasury/models/account_collection_flow_update_params.rbi +57 -0
  290. data/rbi/lib/modern_treasury/models/account_detail.rbi +115 -0
  291. data/rbi/lib/modern_treasury/models/account_detail_create_params.rbi +107 -0
  292. data/rbi/lib/modern_treasury/models/account_detail_delete_params.rbi +56 -0
  293. data/rbi/lib/modern_treasury/models/account_detail_list_params.rbi +48 -0
  294. data/rbi/lib/modern_treasury/models/account_detail_retrieve_params.rbi +40 -0
  295. data/rbi/lib/modern_treasury/models/accounts_type.rbi +19 -0
  296. data/rbi/lib/modern_treasury/models/async_response.rbi +21 -0
  297. data/rbi/lib/modern_treasury/models/bank_settings.rbi +96 -0
  298. data/rbi/lib/modern_treasury/models/bulk_request.rbi +162 -0
  299. data/rbi/lib/modern_treasury/models/bulk_request_create_params.rbi +6311 -0
  300. data/rbi/lib/modern_treasury/models/bulk_request_list_params.rbi +146 -0
  301. data/rbi/lib/modern_treasury/models/bulk_request_retrieve_params.rbi +21 -0
  302. data/rbi/lib/modern_treasury/models/bulk_result.rbi +286 -0
  303. data/rbi/lib/modern_treasury/models/bulk_result_list_params.rbi +157 -0
  304. data/rbi/lib/modern_treasury/models/bulk_result_retrieve_params.rbi +21 -0
  305. data/rbi/lib/modern_treasury/models/client_ping_params.rbi +21 -0
  306. data/rbi/lib/modern_treasury/models/connection.rbi +85 -0
  307. data/rbi/lib/modern_treasury/models/connection_legal_entity.rbi +110 -0
  308. data/rbi/lib/modern_treasury/models/connection_legal_entity_create_params.rbi +1752 -0
  309. data/rbi/lib/modern_treasury/models/connection_legal_entity_list_params.rbi +94 -0
  310. data/rbi/lib/modern_treasury/models/connection_legal_entity_retrieve_params.rbi +21 -0
  311. data/rbi/lib/modern_treasury/models/connection_legal_entity_update_params.rbi +58 -0
  312. data/rbi/lib/modern_treasury/models/connection_list_params.rbi +61 -0
  313. data/rbi/lib/modern_treasury/models/counterparty.rbi +607 -0
  314. data/rbi/lib/modern_treasury/models/counterparty_collect_account_params.rbi +161 -0
  315. data/rbi/lib/modern_treasury/models/counterparty_collect_account_response.rbi +31 -0
  316. data/rbi/lib/modern_treasury/models/counterparty_create_params.rbi +2867 -0
  317. data/rbi/lib/modern_treasury/models/counterparty_delete_params.rbi +21 -0
  318. data/rbi/lib/modern_treasury/models/counterparty_list_params.rbi +111 -0
  319. data/rbi/lib/modern_treasury/models/counterparty_retrieve_params.rbi +21 -0
  320. data/rbi/lib/modern_treasury/models/counterparty_update_params.rbi +91 -0
  321. data/rbi/lib/modern_treasury/models/currency.rbi +207 -0
  322. data/rbi/lib/modern_treasury/models/document.rbi +243 -0
  323. data/rbi/lib/modern_treasury/models/document_create_params.rbi +95 -0
  324. data/rbi/lib/modern_treasury/models/document_list_params.rbi +105 -0
  325. data/rbi/lib/modern_treasury/models/document_retrieve_params.rbi +21 -0
  326. data/rbi/lib/modern_treasury/models/event.rbi +82 -0
  327. data/rbi/lib/modern_treasury/models/event_list_params.rbi +94 -0
  328. data/rbi/lib/modern_treasury/models/event_retrieve_params.rbi +21 -0
  329. data/rbi/lib/modern_treasury/models/expected_payment.rbi +272 -0
  330. data/rbi/lib/modern_treasury/models/expected_payment_create_params.rbi +616 -0
  331. data/rbi/lib/modern_treasury/models/expected_payment_delete_params.rbi +21 -0
  332. data/rbi/lib/modern_treasury/models/expected_payment_list_params.rbi +197 -0
  333. data/rbi/lib/modern_treasury/models/expected_payment_retrieve_params.rbi +21 -0
  334. data/rbi/lib/modern_treasury/models/expected_payment_type.rbi +49 -0
  335. data/rbi/lib/modern_treasury/models/expected_payment_update_params.rbi +201 -0
  336. data/rbi/lib/modern_treasury/models/external_account.rbi +410 -0
  337. data/rbi/lib/modern_treasury/models/external_account_complete_verification_params.rbi +30 -0
  338. data/rbi/lib/modern_treasury/models/external_account_create_params.rbi +959 -0
  339. data/rbi/lib/modern_treasury/models/external_account_delete_params.rbi +21 -0
  340. data/rbi/lib/modern_treasury/models/external_account_list_params.rbi +78 -0
  341. data/rbi/lib/modern_treasury/models/external_account_retrieve_params.rbi +21 -0
  342. data/rbi/lib/modern_treasury/models/external_account_type.rbi +26 -0
  343. data/rbi/lib/modern_treasury/models/external_account_update_params.rbi +170 -0
  344. data/rbi/lib/modern_treasury/models/external_account_verify_params.rbi +167 -0
  345. data/rbi/lib/modern_treasury/models/external_account_verify_response.rbi +395 -0
  346. data/rbi/lib/modern_treasury/models/foreign_exchange_quote.rbi +188 -0
  347. data/rbi/lib/modern_treasury/models/foreign_exchange_quote_create_params.rbi +88 -0
  348. data/rbi/lib/modern_treasury/models/foreign_exchange_quote_list_params.rbi +119 -0
  349. data/rbi/lib/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbi +21 -0
  350. data/rbi/lib/modern_treasury/models/incoming_payment_detail.rbi +427 -0
  351. data/rbi/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +153 -0
  352. data/rbi/lib/modern_treasury/models/incoming_payment_detail_list_params.rbi +170 -0
  353. data/rbi/lib/modern_treasury/models/incoming_payment_detail_retrieve_params.rbi +21 -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 +302 -0
  356. data/rbi/lib/modern_treasury/models/internal_account_create_params.rbi +193 -0
  357. data/rbi/lib/modern_treasury/models/internal_account_list_params.rbi +158 -0
  358. data/rbi/lib/modern_treasury/models/internal_account_retrieve_params.rbi +21 -0
  359. data/rbi/lib/modern_treasury/models/internal_account_update_params.rbi +83 -0
  360. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report.rbi +311 -0
  361. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +235 -0
  362. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_delete_params.rbi +31 -0
  363. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rbi +119 -0
  364. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbi +31 -0
  365. data/rbi/lib/modern_treasury/models/invoice.rbi +648 -0
  366. data/rbi/lib/modern_treasury/models/invoice_add_payment_order_params.rbi +30 -0
  367. data/rbi/lib/modern_treasury/models/invoice_create_params.rbi +707 -0
  368. data/rbi/lib/modern_treasury/models/invoice_list_params.rbi +154 -0
  369. data/rbi/lib/modern_treasury/models/invoice_retrieve_params.rbi +21 -0
  370. data/rbi/lib/modern_treasury/models/invoice_update_params.rbi +719 -0
  371. data/rbi/lib/modern_treasury/models/invoices/invoice_line_item.rbi +126 -0
  372. data/rbi/lib/modern_treasury/models/invoices/line_item_create_params.rbi +105 -0
  373. data/rbi/lib/modern_treasury/models/invoices/line_item_delete_params.rbi +29 -0
  374. data/rbi/lib/modern_treasury/models/invoices/line_item_list_params.rbi +45 -0
  375. data/rbi/lib/modern_treasury/models/invoices/line_item_retrieve_params.rbi +29 -0
  376. data/rbi/lib/modern_treasury/models/invoices/line_item_update_params.rbi +117 -0
  377. data/rbi/lib/modern_treasury/models/ledger.rbi +76 -0
  378. data/rbi/lib/modern_treasury/models/ledger_account.rbi +401 -0
  379. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor.rbi +447 -0
  380. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rbi +103 -0
  381. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbi +21 -0
  382. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_list_params.rbi +73 -0
  383. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbi +21 -0
  384. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_update_params.rbi +49 -0
  385. data/rbi/lib/modern_treasury/models/ledger_account_category.rbi +354 -0
  386. data/rbi/lib/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbi +30 -0
  387. data/rbi/lib/modern_treasury/models/ledger_account_category_add_nested_category_params.rbi +30 -0
  388. data/rbi/lib/modern_treasury/models/ledger_account_category_create_params.rbi +96 -0
  389. data/rbi/lib/modern_treasury/models/ledger_account_category_delete_params.rbi +21 -0
  390. data/rbi/lib/modern_treasury/models/ledger_account_category_list_params.rbi +154 -0
  391. data/rbi/lib/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbi +30 -0
  392. data/rbi/lib/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbi +30 -0
  393. data/rbi/lib/modern_treasury/models/ledger_account_category_retrieve_params.rbi +77 -0
  394. data/rbi/lib/modern_treasury/models/ledger_account_category_update_params.rbi +55 -0
  395. data/rbi/lib/modern_treasury/models/ledger_account_create_params.rbi +146 -0
  396. data/rbi/lib/modern_treasury/models/ledger_account_delete_params.rbi +21 -0
  397. data/rbi/lib/modern_treasury/models/ledger_account_list_params.rbi +454 -0
  398. data/rbi/lib/modern_treasury/models/ledger_account_retrieve_params.rbi +121 -0
  399. data/rbi/lib/modern_treasury/models/ledger_account_settlement.rbi +169 -0
  400. data/rbi/lib/modern_treasury/models/ledger_account_settlement_create_params.rbi +123 -0
  401. data/rbi/lib/modern_treasury/models/ledger_account_settlement_list_params.rbi +130 -0
  402. data/rbi/lib/modern_treasury/models/ledger_account_settlement_retrieve_params.rbi +21 -0
  403. data/rbi/lib/modern_treasury/models/ledger_account_settlement_update_params.rbi +79 -0
  404. data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbi +39 -0
  405. data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbi +37 -0
  406. data/rbi/lib/modern_treasury/models/ledger_account_statement_create_params.rbi +74 -0
  407. data/rbi/lib/modern_treasury/models/ledger_account_statement_create_response.rbi +638 -0
  408. data/rbi/lib/modern_treasury/models/ledger_account_statement_retrieve_params.rbi +21 -0
  409. data/rbi/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rbi +638 -0
  410. data/rbi/lib/modern_treasury/models/ledger_account_update_params.rbi +55 -0
  411. data/rbi/lib/modern_treasury/models/ledger_create_params.rbi +52 -0
  412. data/rbi/lib/modern_treasury/models/ledger_delete_params.rbi +21 -0
  413. data/rbi/lib/modern_treasury/models/ledger_entry.rbi +415 -0
  414. data/rbi/lib/modern_treasury/models/ledger_entry_list_params.rbi +342 -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 +231 -0
  418. data/rbi/lib/modern_treasury/models/ledger_event_handler_create_params.rbi +210 -0
  419. data/rbi/lib/modern_treasury/models/ledger_event_handler_delete_params.rbi +21 -0
  420. data/rbi/lib/modern_treasury/models/ledger_event_handler_list_params.rbi +73 -0
  421. data/rbi/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rbi +21 -0
  422. data/rbi/lib/modern_treasury/models/ledger_event_handler_variable.rbi +59 -0
  423. data/rbi/lib/modern_treasury/models/ledger_list_params.rbi +75 -0
  424. data/rbi/lib/modern_treasury/models/ledger_retrieve_params.rbi +21 -0
  425. data/rbi/lib/modern_treasury/models/ledger_transaction.rbi +208 -0
  426. data/rbi/lib/modern_treasury/models/ledger_transaction_create_params.rbi +286 -0
  427. data/rbi/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rbi +171 -0
  428. data/rbi/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +191 -0
  429. data/rbi/lib/modern_treasury/models/ledger_transaction_list_params.rbi +360 -0
  430. data/rbi/lib/modern_treasury/models/ledger_transaction_retrieve_params.rbi +21 -0
  431. data/rbi/lib/modern_treasury/models/ledger_transaction_update_params.rbi +272 -0
  432. data/rbi/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +731 -0
  433. data/rbi/lib/modern_treasury/models/ledger_transactions/version_list_params.rbi +94 -0
  434. data/rbi/lib/modern_treasury/models/ledger_update_params.rbi +55 -0
  435. data/rbi/lib/modern_treasury/models/ledgerable_event.rbi +94 -0
  436. data/rbi/lib/modern_treasury/models/ledgerable_event_create_params.rbi +58 -0
  437. data/rbi/lib/modern_treasury/models/ledgerable_event_retrieve_params.rbi +21 -0
  438. data/rbi/lib/modern_treasury/models/legal_entity.rbi +543 -0
  439. data/rbi/lib/modern_treasury/models/legal_entity_association.rbi +879 -0
  440. data/rbi/lib/modern_treasury/models/legal_entity_association_create_params.rbi +892 -0
  441. data/rbi/lib/modern_treasury/models/legal_entity_create_params.rbi +1421 -0
  442. data/rbi/lib/modern_treasury/models/legal_entity_list_params.rbi +94 -0
  443. data/rbi/lib/modern_treasury/models/legal_entity_retrieve_params.rbi +21 -0
  444. data/rbi/lib/modern_treasury/models/legal_entity_update_params.rbi +487 -0
  445. data/rbi/lib/modern_treasury/models/line_item.rbi +158 -0
  446. data/rbi/lib/modern_treasury/models/line_item_list_params.rbi +65 -0
  447. data/rbi/lib/modern_treasury/models/line_item_retrieve_params.rbi +58 -0
  448. data/rbi/lib/modern_treasury/models/line_item_update_params.rbi +68 -0
  449. data/rbi/lib/modern_treasury/models/paper_item.rbi +167 -0
  450. data/rbi/lib/modern_treasury/models/paper_item_list_params.rbi +78 -0
  451. data/rbi/lib/modern_treasury/models/paper_item_retrieve_params.rbi +21 -0
  452. data/rbi/lib/modern_treasury/models/payment_flow.rbi +285 -0
  453. data/rbi/lib/modern_treasury/models/payment_flow_create_params.rbi +99 -0
  454. data/rbi/lib/modern_treasury/models/payment_flow_list_params.rbi +101 -0
  455. data/rbi/lib/modern_treasury/models/payment_flow_retrieve_params.rbi +21 -0
  456. data/rbi/lib/modern_treasury/models/payment_flow_update_params.rbi +53 -0
  457. data/rbi/lib/modern_treasury/models/payment_order.rbi +1115 -0
  458. data/rbi/lib/modern_treasury/models/payment_order_create_async_params.rbi +2008 -0
  459. data/rbi/lib/modern_treasury/models/payment_order_create_params.rbi +2083 -0
  460. data/rbi/lib/modern_treasury/models/payment_order_list_params.rbi +282 -0
  461. data/rbi/lib/modern_treasury/models/payment_order_retrieve_params.rbi +21 -0
  462. data/rbi/lib/modern_treasury/models/payment_order_subtype.rbi +50 -0
  463. data/rbi/lib/modern_treasury/models/payment_order_type.rbi +50 -0
  464. data/rbi/lib/modern_treasury/models/payment_order_update_params.rbi +1651 -0
  465. data/rbi/lib/modern_treasury/models/payment_orders/reversal.rbi +145 -0
  466. data/rbi/lib/modern_treasury/models/payment_orders/reversal_create_params.rbi +465 -0
  467. data/rbi/lib/modern_treasury/models/payment_orders/reversal_list_params.rbi +45 -0
  468. data/rbi/lib/modern_treasury/models/payment_orders/reversal_retrieve_params.rbi +29 -0
  469. data/rbi/lib/modern_treasury/models/payment_reference.rbi +371 -0
  470. data/rbi/lib/modern_treasury/models/payment_reference_list_params.rbi +109 -0
  471. data/rbi/lib/modern_treasury/models/payment_reference_retireve_params.rbi +21 -0
  472. data/rbi/lib/modern_treasury/models/payment_reference_retrieve_params.rbi +21 -0
  473. data/rbi/lib/modern_treasury/models/ping_response.rbi +18 -0
  474. data/rbi/lib/modern_treasury/models/reconciliation_rule.rbi +164 -0
  475. data/rbi/lib/modern_treasury/models/return_create_params.rbi +161 -0
  476. data/rbi/lib/modern_treasury/models/return_list_params.rbi +112 -0
  477. data/rbi/lib/modern_treasury/models/return_object.rbi +769 -0
  478. data/rbi/lib/modern_treasury/models/return_retrieve_params.rbi +21 -0
  479. data/rbi/lib/modern_treasury/models/routing_detail.rbi +297 -0
  480. data/rbi/lib/modern_treasury/models/routing_detail_create_params.rbi +207 -0
  481. data/rbi/lib/modern_treasury/models/routing_detail_delete_params.rbi +56 -0
  482. data/rbi/lib/modern_treasury/models/routing_detail_list_params.rbi +48 -0
  483. data/rbi/lib/modern_treasury/models/routing_detail_retrieve_params.rbi +40 -0
  484. data/rbi/lib/modern_treasury/models/routing_number_lookup_request.rbi +291 -0
  485. data/rbi/lib/modern_treasury/models/transaction.rbi +380 -0
  486. data/rbi/lib/modern_treasury/models/transaction_create_params.rbi +162 -0
  487. data/rbi/lib/modern_treasury/models/transaction_delete_params.rbi +21 -0
  488. data/rbi/lib/modern_treasury/models/transaction_direction.rbi +19 -0
  489. data/rbi/lib/modern_treasury/models/transaction_list_params.rbi +168 -0
  490. data/rbi/lib/modern_treasury/models/transaction_retrieve_params.rbi +21 -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 +51 -0
  493. data/rbi/lib/modern_treasury/models/transactions/line_item_delete_params.rbi +23 -0
  494. data/rbi/lib/modern_treasury/models/transactions/line_item_list_params.rbi +84 -0
  495. data/rbi/lib/modern_treasury/models/transactions/line_item_retrieve_params.rbi +23 -0
  496. data/rbi/lib/modern_treasury/models/transactions/transaction_line_item.rbi +212 -0
  497. data/rbi/lib/modern_treasury/models/validation_validate_routing_number_params.rbi +178 -0
  498. data/rbi/lib/modern_treasury/models/virtual_account.rbi +141 -0
  499. data/rbi/lib/modern_treasury/models/virtual_account_create_params.rbi +753 -0
  500. data/rbi/lib/modern_treasury/models/virtual_account_delete_params.rbi +21 -0
  501. data/rbi/lib/modern_treasury/models/virtual_account_list_params.rbi +77 -0
  502. data/rbi/lib/modern_treasury/models/virtual_account_retrieve_params.rbi +21 -0
  503. data/rbi/lib/modern_treasury/models/virtual_account_update_params.rbi +60 -0
  504. data/rbi/lib/modern_treasury/models/wealth_and_employment_details.rbi +410 -0
  505. data/rbi/lib/modern_treasury/page.rbi +31 -0
  506. data/rbi/lib/modern_treasury/pooled_net_requester.rbi +62 -0
  507. data/rbi/lib/modern_treasury/request_options.rbi +63 -0
  508. data/rbi/lib/modern_treasury/resources/account_collection_flows.rbi +88 -0
  509. data/rbi/lib/modern_treasury/resources/account_details.rbi +100 -0
  510. data/rbi/lib/modern_treasury/resources/bulk_requests.rbi +95 -0
  511. data/rbi/lib/modern_treasury/resources/bulk_results.rbi +60 -0
  512. data/rbi/lib/modern_treasury/resources/connection_legal_entities.rbi +90 -0
  513. data/rbi/lib/modern_treasury/resources/connections.rbi +33 -0
  514. data/rbi/lib/modern_treasury/resources/counterparties.rbi +198 -0
  515. data/rbi/lib/modern_treasury/resources/documents.rbi +72 -0
  516. data/rbi/lib/modern_treasury/resources/events.rbi +54 -0
  517. data/rbi/lib/modern_treasury/resources/expected_payments.rbi +248 -0
  518. data/rbi/lib/modern_treasury/resources/external_accounts.rbi +212 -0
  519. data/rbi/lib/modern_treasury/resources/foreign_exchange_quotes.rbi +97 -0
  520. data/rbi/lib/modern_treasury/resources/incoming_payment_details.rbi +127 -0
  521. data/rbi/lib/modern_treasury/resources/internal_accounts/balance_reports.rbi +106 -0
  522. data/rbi/lib/modern_treasury/resources/internal_accounts.rbi +137 -0
  523. data/rbi/lib/modern_treasury/resources/invoices/line_items.rbi +157 -0
  524. data/rbi/lib/modern_treasury/resources/invoices.rbi +338 -0
  525. data/rbi/lib/modern_treasury/resources/ledger_account_balance_monitors.rbi +119 -0
  526. data/rbi/lib/modern_treasury/resources/ledger_account_categories.rbi +227 -0
  527. data/rbi/lib/modern_treasury/resources/ledger_account_settlements/account_entries.rbi +51 -0
  528. data/rbi/lib/modern_treasury/resources/ledger_account_settlements.rbi +143 -0
  529. data/rbi/lib/modern_treasury/resources/ledger_account_statements.rbi +57 -0
  530. data/rbi/lib/modern_treasury/resources/ledger_accounts.rbi +191 -0
  531. data/rbi/lib/modern_treasury/resources/ledger_entries.rbi +135 -0
  532. data/rbi/lib/modern_treasury/resources/ledger_event_handlers.rbi +107 -0
  533. data/rbi/lib/modern_treasury/resources/ledger_transactions/versions.rbi +46 -0
  534. data/rbi/lib/modern_treasury/resources/ledger_transactions.rbi +268 -0
  535. data/rbi/lib/modern_treasury/resources/ledgerable_events.rbi +51 -0
  536. data/rbi/lib/modern_treasury/resources/ledgers.rbi +118 -0
  537. data/rbi/lib/modern_treasury/resources/legal_entities.rbi +217 -0
  538. data/rbi/lib/modern_treasury/resources/legal_entity_associations.rbi +44 -0
  539. data/rbi/lib/modern_treasury/resources/line_items.rbi +81 -0
  540. data/rbi/lib/modern_treasury/resources/paper_items.rbi +52 -0
  541. data/rbi/lib/modern_treasury/resources/payment_flows.rbi +108 -0
  542. data/rbi/lib/modern_treasury/resources/payment_orders/reversals.rbi +82 -0
  543. data/rbi/lib/modern_treasury/resources/payment_orders.rbi +601 -0
  544. data/rbi/lib/modern_treasury/resources/payment_references.rbi +53 -0
  545. data/rbi/lib/modern_treasury/resources/returns.rbi +91 -0
  546. data/rbi/lib/modern_treasury/resources/routing_details.rbi +105 -0
  547. data/rbi/lib/modern_treasury/resources/transactions/line_items.rbi +87 -0
  548. data/rbi/lib/modern_treasury/resources/transactions.rbi +166 -0
  549. data/rbi/lib/modern_treasury/resources/validations.rbi +33 -0
  550. data/rbi/lib/modern_treasury/resources/virtual_accounts.rbi +139 -0
  551. data/rbi/lib/modern_treasury/util.rbi +281 -0
  552. data/rbi/lib/modern_treasury/version.rbi +5 -0
  553. data/sig/modern_treasury/base_client.rbs +108 -0
  554. data/sig/modern_treasury/base_model.rbs +262 -0
  555. data/sig/modern_treasury/base_page.rbs +20 -0
  556. data/sig/modern_treasury/client.rbs +106 -0
  557. data/sig/modern_treasury/errors.rbs +99 -0
  558. data/sig/modern_treasury/extern.rbs +4 -0
  559. data/sig/modern_treasury/models/account_collection_flow.rbs +147 -0
  560. data/sig/modern_treasury/models/account_collection_flow_create_params.rbs +80 -0
  561. data/sig/modern_treasury/models/account_collection_flow_list_params.rbs +53 -0
  562. data/sig/modern_treasury/models/account_collection_flow_retrieve_params.rbs +15 -0
  563. data/sig/modern_treasury/models/account_collection_flow_update_params.rbs +33 -0
  564. data/sig/modern_treasury/models/account_detail.rbs +81 -0
  565. data/sig/modern_treasury/models/account_detail_create_params.rbs +74 -0
  566. data/sig/modern_treasury/models/account_detail_delete_params.rbs +37 -0
  567. data/sig/modern_treasury/models/account_detail_list_params.rbs +33 -0
  568. data/sig/modern_treasury/models/account_detail_retrieve_params.rbs +27 -0
  569. data/sig/modern_treasury/models/accounts_type.rbs +14 -0
  570. data/sig/modern_treasury/models/async_response.rbs +15 -0
  571. data/sig/modern_treasury/models/bank_settings.rbs +54 -0
  572. data/sig/modern_treasury/models/bulk_request.rbs +100 -0
  573. data/sig/modern_treasury/models/bulk_request_create_params.rbs +2594 -0
  574. data/sig/modern_treasury/models/bulk_request_list_params.rbs +97 -0
  575. data/sig/modern_treasury/models/bulk_request_retrieve_params.rbs +15 -0
  576. data/sig/modern_treasury/models/bulk_result.rbs +176 -0
  577. data/sig/modern_treasury/models/bulk_result_list_params.rbs +106 -0
  578. data/sig/modern_treasury/models/bulk_result_retrieve_params.rbs +14 -0
  579. data/sig/modern_treasury/models/client_ping_params.rbs +14 -0
  580. data/sig/modern_treasury/models/connection.rbs +50 -0
  581. data/sig/modern_treasury/models/connection_legal_entity.rbs +67 -0
  582. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +711 -0
  583. data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +62 -0
  584. data/sig/modern_treasury/models/connection_legal_entity_retrieve_params.rbs +15 -0
  585. data/sig/modern_treasury/models/connection_legal_entity_update_params.rbs +37 -0
  586. data/sig/modern_treasury/models/connection_list_params.rbs +41 -0
  587. data/sig/modern_treasury/models/counterparty.rbs +343 -0
  588. data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +110 -0
  589. data/sig/modern_treasury/models/counterparty_collect_account_response.rbs +18 -0
  590. data/sig/modern_treasury/models/counterparty_create_params.rbs +1265 -0
  591. data/sig/modern_treasury/models/counterparty_delete_params.rbs +14 -0
  592. data/sig/modern_treasury/models/counterparty_list_params.rbs +65 -0
  593. data/sig/modern_treasury/models/counterparty_retrieve_params.rbs +15 -0
  594. data/sig/modern_treasury/models/counterparty_update_params.rbs +53 -0
  595. data/sig/modern_treasury/models/currency.rbs +390 -0
  596. data/sig/modern_treasury/models/document.rbs +162 -0
  597. data/sig/modern_treasury/models/document_create_params.rbs +70 -0
  598. data/sig/modern_treasury/models/document_list_params.rbs +76 -0
  599. data/sig/modern_treasury/models/document_retrieve_params.rbs +14 -0
  600. data/sig/modern_treasury/models/event.rbs +54 -0
  601. data/sig/modern_treasury/models/event_list_params.rbs +59 -0
  602. data/sig/modern_treasury/models/event_retrieve_params.rbs +14 -0
  603. data/sig/modern_treasury/models/expected_payment.rbs +154 -0
  604. data/sig/modern_treasury/models/expected_payment_create_params.rbs +294 -0
  605. data/sig/modern_treasury/models/expected_payment_delete_params.rbs +15 -0
  606. data/sig/modern_treasury/models/expected_payment_list_params.rbs +166 -0
  607. data/sig/modern_treasury/models/expected_payment_retrieve_params.rbs +15 -0
  608. data/sig/modern_treasury/models/expected_payment_type.rbs +72 -0
  609. data/sig/modern_treasury/models/expected_payment_update_params.rbs +110 -0
  610. data/sig/modern_treasury/models/external_account.rbs +235 -0
  611. data/sig/modern_treasury/models/external_account_complete_verification_params.rbs +22 -0
  612. data/sig/modern_treasury/models/external_account_create_params.rbs +463 -0
  613. data/sig/modern_treasury/models/external_account_delete_params.rbs +15 -0
  614. data/sig/modern_treasury/models/external_account_list_params.rbs +47 -0
  615. data/sig/modern_treasury/models/external_account_retrieve_params.rbs +15 -0
  616. data/sig/modern_treasury/models/external_account_type.rbs +28 -0
  617. data/sig/modern_treasury/models/external_account_update_params.rbs +105 -0
  618. data/sig/modern_treasury/models/external_account_verify_params.rbs +141 -0
  619. data/sig/modern_treasury/models/external_account_verify_response.rbs +157 -0
  620. data/sig/modern_treasury/models/foreign_exchange_quote.rbs +103 -0
  621. data/sig/modern_treasury/models/foreign_exchange_quote_create_params.rbs +53 -0
  622. data/sig/modern_treasury/models/foreign_exchange_quote_list_params.rbs +71 -0
  623. data/sig/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbs +15 -0
  624. data/sig/modern_treasury/models/incoming_payment_detail.rbs +225 -0
  625. data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +93 -0
  626. data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +108 -0
  627. data/sig/modern_treasury/models/incoming_payment_detail_retrieve_params.rbs +15 -0
  628. data/sig/modern_treasury/models/incoming_payment_detail_update_params.rbs +22 -0
  629. data/sig/modern_treasury/models/internal_account.rbs +181 -0
  630. data/sig/modern_treasury/models/internal_account_create_params.rbs +115 -0
  631. data/sig/modern_treasury/models/internal_account_list_params.rbs +140 -0
  632. data/sig/modern_treasury/models/internal_account_retrieve_params.rbs +15 -0
  633. data/sig/modern_treasury/models/internal_account_update_params.rbs +49 -0
  634. data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +160 -0
  635. data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +105 -0
  636. data/sig/modern_treasury/models/internal_accounts/balance_report_delete_params.rbs +22 -0
  637. data/sig/modern_treasury/models/internal_accounts/balance_report_list_params.rbs +59 -0
  638. data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +22 -0
  639. data/sig/modern_treasury/models/invoice.rbs +367 -0
  640. data/sig/modern_treasury/models/invoice_add_payment_order_params.rbs +20 -0
  641. data/sig/modern_treasury/models/invoice_create_params.rbs +370 -0
  642. data/sig/modern_treasury/models/invoice_list_params.rbs +101 -0
  643. data/sig/modern_treasury/models/invoice_retrieve_params.rbs +14 -0
  644. data/sig/modern_treasury/models/invoice_update_params.rbs +378 -0
  645. data/sig/modern_treasury/models/invoices/invoice_line_item.rbs +70 -0
  646. data/sig/modern_treasury/models/invoices/line_item_create_params.rbs +59 -0
  647. data/sig/modern_treasury/models/invoices/line_item_delete_params.rbs +22 -0
  648. data/sig/modern_treasury/models/invoices/line_item_list_params.rbs +28 -0
  649. data/sig/modern_treasury/models/invoices/line_item_retrieve_params.rbs +22 -0
  650. data/sig/modern_treasury/models/invoices/line_item_update_params.rbs +67 -0
  651. data/sig/modern_treasury/models/ledger.rbs +50 -0
  652. data/sig/modern_treasury/models/ledger_account.rbs +212 -0
  653. data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +215 -0
  654. data/sig/modern_treasury/models/ledger_account_balance_monitor_create_params.rbs +57 -0
  655. data/sig/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbs +15 -0
  656. data/sig/modern_treasury/models/ledger_account_balance_monitor_list_params.rbs +47 -0
  657. data/sig/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbs +15 -0
  658. data/sig/modern_treasury/models/ledger_account_balance_monitor_update_params.rbs +28 -0
  659. data/sig/modern_treasury/models/ledger_account_category.rbs +178 -0
  660. data/sig/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbs +20 -0
  661. data/sig/modern_treasury/models/ledger_account_category_add_nested_category_params.rbs +20 -0
  662. data/sig/modern_treasury/models/ledger_account_category_create_params.rbs +55 -0
  663. data/sig/modern_treasury/models/ledger_account_category_delete_params.rbs +15 -0
  664. data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +91 -0
  665. data/sig/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbs +20 -0
  666. data/sig/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbs +20 -0
  667. data/sig/modern_treasury/models/ledger_account_category_retrieve_params.rbs +43 -0
  668. data/sig/modern_treasury/models/ledger_account_category_update_params.rbs +31 -0
  669. data/sig/modern_treasury/models/ledger_account_create_params.rbs +83 -0
  670. data/sig/modern_treasury/models/ledger_account_delete_params.rbs +15 -0
  671. data/sig/modern_treasury/models/ledger_account_list_params.rbs +285 -0
  672. data/sig/modern_treasury/models/ledger_account_retrieve_params.rbs +68 -0
  673. data/sig/modern_treasury/models/ledger_account_settlement.rbs +98 -0
  674. data/sig/modern_treasury/models/ledger_account_settlement_create_params.rbs +64 -0
  675. data/sig/modern_treasury/models/ledger_account_settlement_list_params.rbs +77 -0
  676. data/sig/modern_treasury/models/ledger_account_settlement_retrieve_params.rbs +15 -0
  677. data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +48 -0
  678. data/sig/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbs +22 -0
  679. data/sig/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbs +23 -0
  680. data/sig/modern_treasury/models/ledger_account_statement_create_params.rbs +41 -0
  681. data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +306 -0
  682. data/sig/modern_treasury/models/ledger_account_statement_retrieve_params.rbs +15 -0
  683. data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +306 -0
  684. data/sig/modern_treasury/models/ledger_account_update_params.rbs +31 -0
  685. data/sig/modern_treasury/models/ledger_create_params.rbs +29 -0
  686. data/sig/modern_treasury/models/ledger_delete_params.rbs +14 -0
  687. data/sig/modern_treasury/models/ledger_entry.rbs +206 -0
  688. data/sig/modern_treasury/models/ledger_entry_list_params.rbs +206 -0
  689. data/sig/modern_treasury/models/ledger_entry_retrieve_params.rbs +22 -0
  690. data/sig/modern_treasury/models/ledger_entry_update_params.rbs +22 -0
  691. data/sig/modern_treasury/models/ledger_event_handler.rbs +126 -0
  692. data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +109 -0
  693. data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +15 -0
  694. data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +47 -0
  695. data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +15 -0
  696. data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +36 -0
  697. data/sig/modern_treasury/models/ledger_list_params.rbs +47 -0
  698. data/sig/modern_treasury/models/ledger_retrieve_params.rbs +14 -0
  699. data/sig/modern_treasury/models/ledger_transaction.rbs +123 -0
  700. data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +155 -0
  701. data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +81 -0
  702. data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +96 -0
  703. data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +219 -0
  704. data/sig/modern_treasury/models/ledger_transaction_retrieve_params.rbs +15 -0
  705. data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +147 -0
  706. data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +326 -0
  707. data/sig/modern_treasury/models/ledger_transactions/version_list_params.rbs +55 -0
  708. data/sig/modern_treasury/models/ledger_update_params.rbs +31 -0
  709. data/sig/modern_treasury/models/ledgerable_event.rbs +54 -0
  710. data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +37 -0
  711. data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +15 -0
  712. data/sig/modern_treasury/models/legal_entity.rbs +363 -0
  713. data/sig/modern_treasury/models/legal_entity_association.rbs +425 -0
  714. data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +371 -0
  715. data/sig/modern_treasury/models/legal_entity_create_params.rbs +678 -0
  716. data/sig/modern_treasury/models/legal_entity_list_params.rbs +60 -0
  717. data/sig/modern_treasury/models/legal_entity_retrieve_params.rbs +15 -0
  718. data/sig/modern_treasury/models/legal_entity_update_params.rbs +300 -0
  719. data/sig/modern_treasury/models/line_item.rbs +89 -0
  720. data/sig/modern_treasury/models/line_item_list_params.rbs +44 -0
  721. data/sig/modern_treasury/models/line_item_retrieve_params.rbs +38 -0
  722. data/sig/modern_treasury/models/line_item_update_params.rbs +44 -0
  723. data/sig/modern_treasury/models/paper_item.rbs +98 -0
  724. data/sig/modern_treasury/models/paper_item_list_params.rbs +47 -0
  725. data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +14 -0
  726. data/sig/modern_treasury/models/payment_flow.rbs +165 -0
  727. data/sig/modern_treasury/models/payment_flow_create_params.rbs +56 -0
  728. data/sig/modern_treasury/models/payment_flow_list_params.rbs +65 -0
  729. data/sig/modern_treasury/models/payment_flow_retrieve_params.rbs +15 -0
  730. data/sig/modern_treasury/models/payment_flow_update_params.rbs +31 -0
  731. data/sig/modern_treasury/models/payment_order.rbs +564 -0
  732. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +893 -0
  733. data/sig/modern_treasury/models/payment_order_create_params.rbs +963 -0
  734. data/sig/modern_treasury/models/payment_order_list_params.rbs +238 -0
  735. data/sig/modern_treasury/models/payment_order_retrieve_params.rbs +15 -0
  736. data/sig/modern_treasury/models/payment_order_subtype.rbs +70 -0
  737. data/sig/modern_treasury/models/payment_order_type.rbs +72 -0
  738. data/sig/modern_treasury/models/payment_order_update_params.rbs +781 -0
  739. data/sig/modern_treasury/models/payment_orders/reversal.rbs +95 -0
  740. data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +205 -0
  741. data/sig/modern_treasury/models/payment_orders/reversal_list_params.rbs +28 -0
  742. data/sig/modern_treasury/models/payment_orders/reversal_retrieve_params.rbs +22 -0
  743. data/sig/modern_treasury/models/payment_reference.rbs +213 -0
  744. data/sig/modern_treasury/models/payment_reference_list_params.rbs +61 -0
  745. data/sig/modern_treasury/models/payment_reference_retireve_params.rbs +15 -0
  746. data/sig/modern_treasury/models/payment_reference_retrieve_params.rbs +15 -0
  747. data/sig/modern_treasury/models/ping_response.rbs +13 -0
  748. data/sig/modern_treasury/models/reconciliation_rule.rbs +138 -0
  749. data/sig/modern_treasury/models/return_create_params.rbs +168 -0
  750. data/sig/modern_treasury/models/return_list_params.rbs +74 -0
  751. data/sig/modern_treasury/models/return_object.rbs +492 -0
  752. data/sig/modern_treasury/models/return_retrieve_params.rbs +14 -0
  753. data/sig/modern_treasury/models/routing_detail.rbs +233 -0
  754. data/sig/modern_treasury/models/routing_detail_create_params.rbs +165 -0
  755. data/sig/modern_treasury/models/routing_detail_delete_params.rbs +37 -0
  756. data/sig/modern_treasury/models/routing_detail_list_params.rbs +33 -0
  757. data/sig/modern_treasury/models/routing_detail_retrieve_params.rbs +27 -0
  758. data/sig/modern_treasury/models/routing_number_lookup_request.rbs +185 -0
  759. data/sig/modern_treasury/models/transaction.rbs +281 -0
  760. data/sig/modern_treasury/models/transaction_create_params.rbs +134 -0
  761. data/sig/modern_treasury/models/transaction_delete_params.rbs +14 -0
  762. data/sig/modern_treasury/models/transaction_direction.rbs +14 -0
  763. data/sig/modern_treasury/models/transaction_list_params.rbs +101 -0
  764. data/sig/modern_treasury/models/transaction_retrieve_params.rbs +14 -0
  765. data/sig/modern_treasury/models/transaction_update_params.rbs +22 -0
  766. data/sig/modern_treasury/models/transactions/line_item_create_params.rbs +29 -0
  767. data/sig/modern_treasury/models/transactions/line_item_delete_params.rbs +16 -0
  768. data/sig/modern_treasury/models/transactions/line_item_list_params.rbs +58 -0
  769. data/sig/modern_treasury/models/transactions/line_item_retrieve_params.rbs +16 -0
  770. data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +110 -0
  771. data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +78 -0
  772. data/sig/modern_treasury/models/virtual_account.rbs +78 -0
  773. data/sig/modern_treasury/models/virtual_account_create_params.rbs +354 -0
  774. data/sig/modern_treasury/models/virtual_account_delete_params.rbs +15 -0
  775. data/sig/modern_treasury/models/virtual_account_list_params.rbs +47 -0
  776. data/sig/modern_treasury/models/virtual_account_retrieve_params.rbs +15 -0
  777. data/sig/modern_treasury/models/virtual_account_update_params.rbs +41 -0
  778. data/sig/modern_treasury/models/wealth_and_employment_details.rbs +306 -0
  779. data/sig/modern_treasury/page.rbs +17 -0
  780. data/sig/modern_treasury/pooled_net_requester.rbs +37 -0
  781. data/sig/modern_treasury/request_options.rbs +46 -0
  782. data/sig/modern_treasury/resources/account_collection_flows.rbs +35 -0
  783. data/sig/modern_treasury/resources/account_details.rbs +37 -0
  784. data/sig/modern_treasury/resources/bulk_requests.rbs +30 -0
  785. data/sig/modern_treasury/resources/bulk_results.rbs +23 -0
  786. data/sig/modern_treasury/resources/connection_legal_entities.rbs +34 -0
  787. data/sig/modern_treasury/resources/connections.rbs +15 -0
  788. data/sig/modern_treasury/resources/counterparties.rbs +64 -0
  789. data/sig/modern_treasury/resources/documents.rbs +28 -0
  790. data/sig/modern_treasury/resources/events.rbs +23 -0
  791. data/sig/modern_treasury/resources/expected_payments.rbs +76 -0
  792. data/sig/modern_treasury/resources/external_accounts.rbs +71 -0
  793. data/sig/modern_treasury/resources/foreign_exchange_quotes.rbs +35 -0
  794. data/sig/modern_treasury/resources/incoming_payment_details.rbs +43 -0
  795. data/sig/modern_treasury/resources/internal_accounts/balance_reports.rbs +39 -0
  796. data/sig/modern_treasury/resources/internal_accounts.rbs +49 -0
  797. data/sig/modern_treasury/resources/invoices/line_items.rbs +53 -0
  798. data/sig/modern_treasury/resources/invoices.rbs +94 -0
  799. data/sig/modern_treasury/resources/ledger_account_balance_monitors.rbs +41 -0
  800. data/sig/modern_treasury/resources/ledger_account_categories.rbs +76 -0
  801. data/sig/modern_treasury/resources/ledger_account_settlements/account_entries.rbs +21 -0
  802. data/sig/modern_treasury/resources/ledger_account_settlements.rbs +48 -0
  803. data/sig/modern_treasury/resources/ledger_account_statements.rbs +21 -0
  804. data/sig/modern_treasury/resources/ledger_accounts.rbs +58 -0
  805. data/sig/modern_treasury/resources/ledger_entries.rbs +43 -0
  806. data/sig/modern_treasury/resources/ledger_event_handlers.rbs +37 -0
  807. data/sig/modern_treasury/resources/ledger_transactions/versions.rbs +19 -0
  808. data/sig/modern_treasury/resources/ledger_transactions.rbs +83 -0
  809. data/sig/modern_treasury/resources/ledgerable_events.rbs +20 -0
  810. data/sig/modern_treasury/resources/ledgers.rbs +41 -0
  811. data/sig/modern_treasury/resources/legal_entities.rbs +76 -0
  812. data/sig/modern_treasury/resources/legal_entity_associations.rbs +17 -0
  813. data/sig/modern_treasury/resources/line_items.rbs +30 -0
  814. data/sig/modern_treasury/resources/paper_items.rbs +21 -0
  815. data/sig/modern_treasury/resources/payment_flows.rbs +40 -0
  816. data/sig/modern_treasury/resources/payment_orders/reversals.rbs +30 -0
  817. data/sig/modern_treasury/resources/payment_orders.rbs +153 -0
  818. data/sig/modern_treasury/resources/payment_references.rbs +23 -0
  819. data/sig/modern_treasury/resources/returns.rbs +32 -0
  820. data/sig/modern_treasury/resources/routing_details.rbs +38 -0
  821. data/sig/modern_treasury/resources/transactions/line_items.rbs +35 -0
  822. data/sig/modern_treasury/resources/transactions.rbs +57 -0
  823. data/sig/modern_treasury/resources/validations.rbs +13 -0
  824. data/sig/modern_treasury/resources/virtual_accounts.rbs +49 -0
  825. data/sig/modern_treasury/util.rbs +136 -0
  826. data/sig/modern_treasury/version.rbs +3 -0
  827. metadata +861 -20
@@ -0,0 +1,1387 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ModernTreasury
4
+ module Models
5
+ class PaymentOrderCreateAsyncParams < ModernTreasury::BaseModel
6
+ # @!parse
7
+ # extend ModernTreasury::RequestParameters::Converter
8
+ include ModernTreasury::RequestParameters
9
+
10
+ # @!attribute amount
11
+ # Value in specified currency's smallest unit. e.g. $10 would be represented as
12
+ # 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
13
+ #
14
+ # @return [Integer]
15
+ required :amount, Integer
16
+
17
+ # @!attribute direction
18
+ # One of `credit`, `debit`. Describes the direction money is flowing in the
19
+ # transaction. A `credit` moves money from your account to someone else's. A
20
+ # `debit` pulls money from someone else's account to your own. Note that wire,
21
+ # rtp, and check payments will always be `credit`.
22
+ #
23
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Direction]
24
+ required :direction, enum: -> { ModernTreasury::Models::PaymentOrderCreateAsyncParams::Direction }
25
+
26
+ # @!attribute originating_account_id
27
+ # The ID of one of your organization's internal accounts.
28
+ #
29
+ # @return [String]
30
+ required :originating_account_id, String
31
+
32
+ # @!attribute type
33
+ # One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`,
34
+ # `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
35
+ # `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
36
+ #
37
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderType]
38
+ required :type, enum: -> { ModernTreasury::Models::PaymentOrderType }
39
+
40
+ # @!attribute [r] accounting
41
+ #
42
+ # @return [ModernTreasury::Models::PaymentOrderCreateAsyncParams::Accounting, nil]
43
+ optional :accounting, -> { ModernTreasury::Models::PaymentOrderCreateAsyncParams::Accounting }
44
+
45
+ # @!parse
46
+ # # @return [ModernTreasury::Models::PaymentOrderCreateAsyncParams::Accounting]
47
+ # attr_writer :accounting
48
+
49
+ # @!attribute accounting_category_id
50
+ # The ID of one of your accounting categories. Note that these will only be
51
+ # accessible if your accounting system has been connected.
52
+ #
53
+ # @return [String, nil]
54
+ optional :accounting_category_id, String, nil?: true
55
+
56
+ # @!attribute accounting_ledger_class_id
57
+ # The ID of one of your accounting ledger classes. Note that these will only be
58
+ # accessible if your accounting system has been connected.
59
+ #
60
+ # @return [String, nil]
61
+ optional :accounting_ledger_class_id, String, nil?: true
62
+
63
+ # @!attribute charge_bearer
64
+ # The party that will pay the fees for the payment order. Only applies to wire
65
+ # payment orders. Can be one of shared, sender, or receiver, which correspond
66
+ # respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
67
+ #
68
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ChargeBearer, nil]
69
+ optional :charge_bearer,
70
+ enum: -> { ModernTreasury::Models::PaymentOrderCreateAsyncParams::ChargeBearer },
71
+ nil?: true
72
+
73
+ # @!attribute [r] currency
74
+ # Defaults to the currency of the originating account.
75
+ #
76
+ # @return [Symbol, ModernTreasury::Models::Currency, nil]
77
+ optional :currency, enum: -> { ModernTreasury::Models::Currency }
78
+
79
+ # @!parse
80
+ # # @return [Symbol, ModernTreasury::Models::Currency]
81
+ # attr_writer :currency
82
+
83
+ # @!attribute description
84
+ # An optional description for internal use.
85
+ #
86
+ # @return [String, nil]
87
+ optional :description, String, nil?: true
88
+
89
+ # @!attribute [r] effective_date
90
+ # Date transactions are to be posted to the participants' account. Defaults to the
91
+ # current business day or the next business day if the current day is a bank
92
+ # holiday or weekend. Format: yyyy-mm-dd.
93
+ #
94
+ # @return [Date, nil]
95
+ optional :effective_date, Date
96
+
97
+ # @!parse
98
+ # # @return [Date]
99
+ # attr_writer :effective_date
100
+
101
+ # @!attribute expires_at
102
+ # RFP payments require an expires_at. This value must be past the effective_date.
103
+ #
104
+ # @return [Time, nil]
105
+ optional :expires_at, Time, nil?: true
106
+
107
+ # @!attribute [r] fallback_type
108
+ # A payment type to fallback to if the original type is not valid for the
109
+ # receiving account. Currently, this only supports falling back from RTP to ACH
110
+ # (type=rtp and fallback_type=ach)
111
+ #
112
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::FallbackType, nil]
113
+ optional :fallback_type, enum: -> { ModernTreasury::Models::PaymentOrderCreateAsyncParams::FallbackType }
114
+
115
+ # @!parse
116
+ # # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::FallbackType]
117
+ # attr_writer :fallback_type
118
+
119
+ # @!attribute foreign_exchange_contract
120
+ # If present, indicates a specific foreign exchange contract number that has been
121
+ # generated by your financial institution.
122
+ #
123
+ # @return [String, nil]
124
+ optional :foreign_exchange_contract, String, nil?: true
125
+
126
+ # @!attribute foreign_exchange_indicator
127
+ # Indicates the type of FX transfer to initiate, can be either
128
+ # `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
129
+ # currency matches the originating account currency.
130
+ #
131
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator, nil]
132
+ optional :foreign_exchange_indicator,
133
+ enum: -> { ModernTreasury::Models::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator },
134
+ nil?: true
135
+
136
+ # @!attribute [r] ledger_transaction
137
+ # Specifies a ledger transaction object that will be created with the payment
138
+ # order. If the ledger transaction cannot be created, then the payment order
139
+ # creation will fail. The resulting ledger transaction will mirror the status of
140
+ # the payment order.
141
+ #
142
+ # @return [ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction, nil]
143
+ optional :ledger_transaction,
144
+ -> { ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction }
145
+
146
+ # @!parse
147
+ # # @return [ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction]
148
+ # attr_writer :ledger_transaction
149
+
150
+ # @!attribute [r] ledger_transaction_id
151
+ # Either ledger_transaction or ledger_transaction_id can be provided. Only a
152
+ # pending ledger transaction can be attached upon payment order creation. Once the
153
+ # payment order is created, the status of the ledger transaction tracks the
154
+ # payment order automatically.
155
+ #
156
+ # @return [String, nil]
157
+ optional :ledger_transaction_id, String
158
+
159
+ # @!parse
160
+ # # @return [String]
161
+ # attr_writer :ledger_transaction_id
162
+
163
+ # @!attribute [r] line_items
164
+ # An array of line items that must sum up to the amount of the payment order.
165
+ #
166
+ # @return [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::LineItem>, nil]
167
+ optional :line_items,
168
+ -> { ModernTreasury::ArrayOf[ModernTreasury::Models::PaymentOrderCreateAsyncParams::LineItem] }
169
+
170
+ # @!parse
171
+ # # @return [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::LineItem>]
172
+ # attr_writer :line_items
173
+
174
+ # @!attribute [r] metadata
175
+ # Additional data represented as key-value pairs. Both the key and value must be
176
+ # strings.
177
+ #
178
+ # @return [Hash{Symbol=>String}, nil]
179
+ optional :metadata, ModernTreasury::HashOf[String]
180
+
181
+ # @!parse
182
+ # # @return [Hash{Symbol=>String}]
183
+ # attr_writer :metadata
184
+
185
+ # @!attribute [r] nsf_protected
186
+ # A boolean to determine if NSF Protection is enabled for this payment order. Note
187
+ # that this setting must also be turned on in your organization settings page.
188
+ #
189
+ # @return [Boolean, nil]
190
+ optional :nsf_protected, ModernTreasury::BooleanModel
191
+
192
+ # @!parse
193
+ # # @return [Boolean]
194
+ # attr_writer :nsf_protected
195
+
196
+ # @!attribute originating_party_name
197
+ # If present, this will replace your default company name on receiver's bank
198
+ # statement. This field can only be used for ACH payments currently. For ACH, only
199
+ # the first 16 characters of this string will be used. Any additional characters
200
+ # will be truncated.
201
+ #
202
+ # @return [String, nil]
203
+ optional :originating_party_name, String, nil?: true
204
+
205
+ # @!attribute [r] priority
206
+ # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
207
+ # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
208
+ # an overnight check rather than standard mail.
209
+ #
210
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Priority, nil]
211
+ optional :priority, enum: -> { ModernTreasury::Models::PaymentOrderCreateAsyncParams::Priority }
212
+
213
+ # @!parse
214
+ # # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Priority]
215
+ # attr_writer :priority
216
+
217
+ # @!attribute process_after
218
+ # If present, Modern Treasury will not process the payment until after this time.
219
+ # If `process_after` is past the cutoff for `effective_date`, `process_after` will
220
+ # take precedence and `effective_date` will automatically update to reflect the
221
+ # earliest possible sending date after `process_after`. Format is ISO8601
222
+ # timestamp.
223
+ #
224
+ # @return [Time, nil]
225
+ optional :process_after, Time, nil?: true
226
+
227
+ # @!attribute purpose
228
+ # For `wire`, this is usually the purpose which is transmitted via the
229
+ # "InstrForDbtrAgt" field in the ISO20022 file. For `eft`, this field is the 3
230
+ # digit CPA Code that will be attached to the payment.
231
+ #
232
+ # @return [String, nil]
233
+ optional :purpose, String, nil?: true
234
+
235
+ # @!attribute [r] receiving_account
236
+ # Either `receiving_account` or `receiving_account_id` must be present. When using
237
+ # `receiving_account_id`, you may pass the id of an external account or an
238
+ # internal account.
239
+ #
240
+ # @return [ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount, nil]
241
+ optional :receiving_account,
242
+ -> { ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount }
243
+
244
+ # @!parse
245
+ # # @return [ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount]
246
+ # attr_writer :receiving_account
247
+
248
+ # @!attribute [r] receiving_account_id
249
+ # Either `receiving_account` or `receiving_account_id` must be present. When using
250
+ # `receiving_account_id`, you may pass the id of an external account or an
251
+ # internal account.
252
+ #
253
+ # @return [String, nil]
254
+ optional :receiving_account_id, String
255
+
256
+ # @!parse
257
+ # # @return [String]
258
+ # attr_writer :receiving_account_id
259
+
260
+ # @!attribute remittance_information
261
+ # For `ach`, this field will be passed through on an addenda record. For `wire`
262
+ # payments the field will be passed through as the "Originator to Beneficiary
263
+ # Information", also known as OBI or Fedwire tag 6000.
264
+ #
265
+ # @return [String, nil]
266
+ optional :remittance_information, String, nil?: true
267
+
268
+ # @!attribute send_remittance_advice
269
+ # Send an email to the counterparty when the payment order is sent to the bank. If
270
+ # `null`, `send_remittance_advice` on the Counterparty is used.
271
+ #
272
+ # @return [Boolean, nil]
273
+ optional :send_remittance_advice, ModernTreasury::BooleanModel, nil?: true
274
+
275
+ # @!attribute statement_descriptor
276
+ # An optional descriptor which will appear in the receiver's statement. For
277
+ # `check` payments this field will be used as the memo line. For `ach` the maximum
278
+ # length is 10 characters. Note that for ACH payments, the name on your bank
279
+ # account will be included automatically by the bank, so you can use the
280
+ # characters for other useful information. For `eft` the maximum length is 15
281
+ # characters.
282
+ #
283
+ # @return [String, nil]
284
+ optional :statement_descriptor, String, nil?: true
285
+
286
+ # @!attribute subtype
287
+ # An additional layer of classification for the type of payment order you are
288
+ # doing. This field is only used for `ach` payment orders currently. For `ach`
289
+ # payment orders, the `subtype` represents the SEC code. We currently support
290
+ # `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
291
+ #
292
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderSubtype, nil]
293
+ optional :subtype, enum: -> { ModernTreasury::Models::PaymentOrderSubtype }, nil?: true
294
+
295
+ # @!attribute [r] transaction_monitoring_enabled
296
+ # A flag that determines whether a payment order should go through transaction
297
+ # monitoring.
298
+ #
299
+ # @return [Boolean, nil]
300
+ optional :transaction_monitoring_enabled, ModernTreasury::BooleanModel
301
+
302
+ # @!parse
303
+ # # @return [Boolean]
304
+ # attr_writer :transaction_monitoring_enabled
305
+
306
+ # @!attribute ultimate_originating_party_identifier
307
+ # Identifier of the ultimate originator of the payment order.
308
+ #
309
+ # @return [String, nil]
310
+ optional :ultimate_originating_party_identifier, String, nil?: true
311
+
312
+ # @!attribute ultimate_originating_party_name
313
+ # Name of the ultimate originator of the payment order.
314
+ #
315
+ # @return [String, nil]
316
+ optional :ultimate_originating_party_name, String, nil?: true
317
+
318
+ # @!attribute ultimate_receiving_party_identifier
319
+ # Identifier of the ultimate funds recipient.
320
+ #
321
+ # @return [String, nil]
322
+ optional :ultimate_receiving_party_identifier, String, nil?: true
323
+
324
+ # @!attribute ultimate_receiving_party_name
325
+ # Name of the ultimate funds recipient.
326
+ #
327
+ # @return [String, nil]
328
+ optional :ultimate_receiving_party_name, String, nil?: true
329
+
330
+ # @!parse
331
+ # # @param amount [Integer]
332
+ # # @param direction [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Direction]
333
+ # # @param originating_account_id [String]
334
+ # # @param type [Symbol, ModernTreasury::Models::PaymentOrderType]
335
+ # # @param accounting [ModernTreasury::Models::PaymentOrderCreateAsyncParams::Accounting]
336
+ # # @param accounting_category_id [String, nil]
337
+ # # @param accounting_ledger_class_id [String, nil]
338
+ # # @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ChargeBearer, nil]
339
+ # # @param currency [Symbol, ModernTreasury::Models::Currency]
340
+ # # @param description [String, nil]
341
+ # # @param effective_date [Date]
342
+ # # @param expires_at [Time, nil]
343
+ # # @param fallback_type [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::FallbackType]
344
+ # # @param foreign_exchange_contract [String, nil]
345
+ # # @param foreign_exchange_indicator [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator, nil]
346
+ # # @param ledger_transaction [ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction]
347
+ # # @param ledger_transaction_id [String]
348
+ # # @param line_items [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::LineItem>]
349
+ # # @param metadata [Hash{Symbol=>String}]
350
+ # # @param nsf_protected [Boolean]
351
+ # # @param originating_party_name [String, nil]
352
+ # # @param priority [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Priority]
353
+ # # @param process_after [Time, nil]
354
+ # # @param purpose [String, nil]
355
+ # # @param receiving_account [ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount]
356
+ # # @param receiving_account_id [String]
357
+ # # @param remittance_information [String, nil]
358
+ # # @param send_remittance_advice [Boolean, nil]
359
+ # # @param statement_descriptor [String, nil]
360
+ # # @param subtype [Symbol, ModernTreasury::Models::PaymentOrderSubtype, nil]
361
+ # # @param transaction_monitoring_enabled [Boolean]
362
+ # # @param ultimate_originating_party_identifier [String, nil]
363
+ # # @param ultimate_originating_party_name [String, nil]
364
+ # # @param ultimate_receiving_party_identifier [String, nil]
365
+ # # @param ultimate_receiving_party_name [String, nil]
366
+ # # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
367
+ # #
368
+ # def initialize(
369
+ # amount:,
370
+ # direction:,
371
+ # originating_account_id:,
372
+ # type:,
373
+ # accounting: nil,
374
+ # accounting_category_id: nil,
375
+ # accounting_ledger_class_id: nil,
376
+ # charge_bearer: nil,
377
+ # currency: nil,
378
+ # description: nil,
379
+ # effective_date: nil,
380
+ # expires_at: nil,
381
+ # fallback_type: nil,
382
+ # foreign_exchange_contract: nil,
383
+ # foreign_exchange_indicator: nil,
384
+ # ledger_transaction: nil,
385
+ # ledger_transaction_id: nil,
386
+ # line_items: nil,
387
+ # metadata: nil,
388
+ # nsf_protected: nil,
389
+ # originating_party_name: nil,
390
+ # priority: nil,
391
+ # process_after: nil,
392
+ # purpose: nil,
393
+ # receiving_account: nil,
394
+ # receiving_account_id: nil,
395
+ # remittance_information: nil,
396
+ # send_remittance_advice: nil,
397
+ # statement_descriptor: nil,
398
+ # subtype: nil,
399
+ # transaction_monitoring_enabled: nil,
400
+ # ultimate_originating_party_identifier: nil,
401
+ # ultimate_originating_party_name: nil,
402
+ # ultimate_receiving_party_identifier: nil,
403
+ # ultimate_receiving_party_name: nil,
404
+ # request_options: {},
405
+ # **
406
+ # )
407
+ # super
408
+ # end
409
+
410
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
411
+
412
+ # One of `credit`, `debit`. Describes the direction money is flowing in the
413
+ # transaction. A `credit` moves money from your account to someone else's. A
414
+ # `debit` pulls money from someone else's account to your own. Note that wire,
415
+ # rtp, and check payments will always be `credit`.
416
+ module Direction
417
+ extend ModernTreasury::Enum
418
+
419
+ CREDIT = :credit
420
+ DEBIT = :debit
421
+
422
+ finalize!
423
+
424
+ # @!parse
425
+ # # @return [Array<Symbol>]
426
+ # def self.values; end
427
+ end
428
+
429
+ class Accounting < ModernTreasury::BaseModel
430
+ # @!attribute account_id
431
+ # The ID of one of your accounting categories. Note that these will only be
432
+ # accessible if your accounting system has been connected.
433
+ #
434
+ # @return [String, nil]
435
+ optional :account_id, String, nil?: true
436
+
437
+ # @!attribute class_id
438
+ # The ID of one of the class objects in your accounting system. Class objects
439
+ # track segments of your business independent of client or project. Note that
440
+ # these will only be accessible if your accounting system has been connected.
441
+ #
442
+ # @return [String, nil]
443
+ optional :class_id, String, nil?: true
444
+
445
+ # @!parse
446
+ # # @param account_id [String, nil]
447
+ # # @param class_id [String, nil]
448
+ # #
449
+ # def initialize(account_id: nil, class_id: nil, **) = super
450
+
451
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
452
+ end
453
+
454
+ # The party that will pay the fees for the payment order. Only applies to wire
455
+ # payment orders. Can be one of shared, sender, or receiver, which correspond
456
+ # respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
457
+ module ChargeBearer
458
+ extend ModernTreasury::Enum
459
+
460
+ SHARED = :shared
461
+ SENDER = :sender
462
+ RECEIVER = :receiver
463
+
464
+ finalize!
465
+
466
+ # @!parse
467
+ # # @return [Array<Symbol>]
468
+ # def self.values; end
469
+ end
470
+
471
+ # A payment type to fallback to if the original type is not valid for the
472
+ # receiving account. Currently, this only supports falling back from RTP to ACH
473
+ # (type=rtp and fallback_type=ach)
474
+ module FallbackType
475
+ extend ModernTreasury::Enum
476
+
477
+ ACH = :ach
478
+
479
+ finalize!
480
+
481
+ # @!parse
482
+ # # @return [Array<Symbol>]
483
+ # def self.values; end
484
+ end
485
+
486
+ # Indicates the type of FX transfer to initiate, can be either
487
+ # `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
488
+ # currency matches the originating account currency.
489
+ module ForeignExchangeIndicator
490
+ extend ModernTreasury::Enum
491
+
492
+ FIXED_TO_VARIABLE = :fixed_to_variable
493
+ VARIABLE_TO_FIXED = :variable_to_fixed
494
+
495
+ finalize!
496
+
497
+ # @!parse
498
+ # # @return [Array<Symbol>]
499
+ # def self.values; end
500
+ end
501
+
502
+ class LedgerTransaction < ModernTreasury::BaseModel
503
+ # @!attribute ledger_entries
504
+ # An array of ledger entry objects.
505
+ #
506
+ # @return [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerEntry>]
507
+ required :ledger_entries,
508
+ -> { ModernTreasury::ArrayOf[ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerEntry] }
509
+
510
+ # @!attribute description
511
+ # An optional description for internal use.
512
+ #
513
+ # @return [String, nil]
514
+ optional :description, String, nil?: true
515
+
516
+ # @!attribute [r] effective_at
517
+ # The timestamp (ISO8601 format) at which the ledger transaction happened for
518
+ # reporting purposes.
519
+ #
520
+ # @return [Time, nil]
521
+ optional :effective_at, Time
522
+
523
+ # @!parse
524
+ # # @return [Time]
525
+ # attr_writer :effective_at
526
+
527
+ # @!attribute [r] effective_date
528
+ # The date (YYYY-MM-DD) on which the ledger transaction happened for reporting
529
+ # purposes.
530
+ #
531
+ # @return [Date, nil]
532
+ optional :effective_date, Date
533
+
534
+ # @!parse
535
+ # # @return [Date]
536
+ # attr_writer :effective_date
537
+
538
+ # @!attribute [r] external_id
539
+ # A unique string to represent the ledger transaction. Only one pending or posted
540
+ # ledger transaction may have this ID in the ledger.
541
+ #
542
+ # @return [String, nil]
543
+ optional :external_id, String
544
+
545
+ # @!parse
546
+ # # @return [String]
547
+ # attr_writer :external_id
548
+
549
+ # @!attribute [r] ledgerable_id
550
+ # If the ledger transaction can be reconciled to another object in Modern
551
+ # Treasury, the id will be populated here, otherwise null.
552
+ #
553
+ # @return [String, nil]
554
+ optional :ledgerable_id, String
555
+
556
+ # @!parse
557
+ # # @return [String]
558
+ # attr_writer :ledgerable_id
559
+
560
+ # @!attribute [r] ledgerable_type
561
+ # If the ledger transaction can be reconciled to another object in Modern
562
+ # Treasury, the type will be populated here, otherwise null. This can be one of
563
+ # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
564
+ # reversal.
565
+ #
566
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType, nil]
567
+ optional :ledgerable_type,
568
+ enum: -> { ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType }
569
+
570
+ # @!parse
571
+ # # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType]
572
+ # attr_writer :ledgerable_type
573
+
574
+ # @!attribute [r] metadata
575
+ # Additional data represented as key-value pairs. Both the key and value must be
576
+ # strings.
577
+ #
578
+ # @return [Hash{Symbol=>String}, nil]
579
+ optional :metadata, ModernTreasury::HashOf[String]
580
+
581
+ # @!parse
582
+ # # @return [Hash{Symbol=>String}]
583
+ # attr_writer :metadata
584
+
585
+ # @!attribute [r] status
586
+ # To post a ledger transaction at creation, use `posted`.
587
+ #
588
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::Status, nil]
589
+ optional :status,
590
+ enum: -> { ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::Status }
591
+
592
+ # @!parse
593
+ # # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::Status]
594
+ # attr_writer :status
595
+
596
+ # @!parse
597
+ # # Specifies a ledger transaction object that will be created with the payment
598
+ # # order. If the ledger transaction cannot be created, then the payment order
599
+ # # creation will fail. The resulting ledger transaction will mirror the status of
600
+ # # the payment order.
601
+ # #
602
+ # # @param ledger_entries [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerEntry>]
603
+ # # @param description [String, nil]
604
+ # # @param effective_at [Time]
605
+ # # @param effective_date [Date]
606
+ # # @param external_id [String]
607
+ # # @param ledgerable_id [String]
608
+ # # @param ledgerable_type [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType]
609
+ # # @param metadata [Hash{Symbol=>String}]
610
+ # # @param status [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::Status]
611
+ # #
612
+ # def initialize(
613
+ # ledger_entries:,
614
+ # description: nil,
615
+ # effective_at: nil,
616
+ # effective_date: nil,
617
+ # external_id: nil,
618
+ # ledgerable_id: nil,
619
+ # ledgerable_type: nil,
620
+ # metadata: nil,
621
+ # status: nil,
622
+ # **
623
+ # )
624
+ # super
625
+ # end
626
+
627
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
628
+
629
+ class LedgerEntry < ModernTreasury::BaseModel
630
+ # @!attribute amount
631
+ # Value in specified currency's smallest unit. e.g. $10 would be represented
632
+ # as 1000. Can be any integer up to 36 digits.
633
+ #
634
+ # @return [Integer]
635
+ required :amount, Integer
636
+
637
+ # @!attribute direction
638
+ # One of `credit`, `debit`. Describes the direction money is flowing in the
639
+ # transaction. A `credit` moves money from your account to someone else's. A
640
+ # `debit` pulls money from someone else's account to your own. Note that wire,
641
+ # rtp, and check payments will always be `credit`.
642
+ #
643
+ # @return [Symbol, ModernTreasury::Models::TransactionDirection]
644
+ required :direction, enum: -> { ModernTreasury::Models::TransactionDirection }
645
+
646
+ # @!attribute ledger_account_id
647
+ # The ledger account that this ledger entry is associated with.
648
+ #
649
+ # @return [String]
650
+ required :ledger_account_id, String
651
+
652
+ # @!attribute available_balance_amount
653
+ # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
654
+ # account’s available balance. If any of these conditions would be false after the
655
+ # transaction is created, the entire call will fail with error code 422.
656
+ #
657
+ # @return [Hash{Symbol=>Integer}, nil]
658
+ optional :available_balance_amount, ModernTreasury::HashOf[Integer], nil?: true
659
+
660
+ # @!attribute lock_version
661
+ # Lock version of the ledger account. This can be passed when creating a ledger
662
+ # transaction to only succeed if no ledger transactions have posted since the
663
+ # given version. See our post about Designing the Ledgers API with Optimistic
664
+ # Locking for more details.
665
+ #
666
+ # @return [Integer, nil]
667
+ optional :lock_version, Integer, nil?: true
668
+
669
+ # @!attribute [r] metadata
670
+ # Additional data represented as key-value pairs. Both the key and value must be
671
+ # strings.
672
+ #
673
+ # @return [Hash{Symbol=>String}, nil]
674
+ optional :metadata, ModernTreasury::HashOf[String]
675
+
676
+ # @!parse
677
+ # # @return [Hash{Symbol=>String}]
678
+ # attr_writer :metadata
679
+
680
+ # @!attribute pending_balance_amount
681
+ # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
682
+ # account’s pending balance. If any of these conditions would be false after the
683
+ # transaction is created, the entire call will fail with error code 422.
684
+ #
685
+ # @return [Hash{Symbol=>Integer}, nil]
686
+ optional :pending_balance_amount, ModernTreasury::HashOf[Integer], nil?: true
687
+
688
+ # @!attribute posted_balance_amount
689
+ # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
690
+ # account’s posted balance. If any of these conditions would be false after the
691
+ # transaction is created, the entire call will fail with error code 422.
692
+ #
693
+ # @return [Hash{Symbol=>Integer}, nil]
694
+ optional :posted_balance_amount, ModernTreasury::HashOf[Integer], nil?: true
695
+
696
+ # @!attribute show_resulting_ledger_account_balances
697
+ # If true, response will include the balance of the associated ledger account for
698
+ # the entry.
699
+ #
700
+ # @return [Boolean, nil]
701
+ optional :show_resulting_ledger_account_balances, ModernTreasury::BooleanModel, nil?: true
702
+
703
+ # @!parse
704
+ # # @param amount [Integer]
705
+ # # @param direction [Symbol, ModernTreasury::Models::TransactionDirection]
706
+ # # @param ledger_account_id [String]
707
+ # # @param available_balance_amount [Hash{Symbol=>Integer}, nil]
708
+ # # @param lock_version [Integer, nil]
709
+ # # @param metadata [Hash{Symbol=>String}]
710
+ # # @param pending_balance_amount [Hash{Symbol=>Integer}, nil]
711
+ # # @param posted_balance_amount [Hash{Symbol=>Integer}, nil]
712
+ # # @param show_resulting_ledger_account_balances [Boolean, nil]
713
+ # #
714
+ # def initialize(
715
+ # amount:,
716
+ # direction:,
717
+ # ledger_account_id:,
718
+ # available_balance_amount: nil,
719
+ # lock_version: nil,
720
+ # metadata: nil,
721
+ # pending_balance_amount: nil,
722
+ # posted_balance_amount: nil,
723
+ # show_resulting_ledger_account_balances: nil,
724
+ # **
725
+ # )
726
+ # super
727
+ # end
728
+
729
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
730
+ end
731
+
732
+ # If the ledger transaction can be reconciled to another object in Modern
733
+ # Treasury, the type will be populated here, otherwise null. This can be one of
734
+ # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
735
+ # reversal.
736
+ module LedgerableType
737
+ extend ModernTreasury::Enum
738
+
739
+ EXPECTED_PAYMENT = :expected_payment
740
+ INCOMING_PAYMENT_DETAIL = :incoming_payment_detail
741
+ PAPER_ITEM = :paper_item
742
+ PAYMENT_ORDER = :payment_order
743
+ RETURN = :return
744
+ REVERSAL = :reversal
745
+
746
+ finalize!
747
+
748
+ # @!parse
749
+ # # @return [Array<Symbol>]
750
+ # def self.values; end
751
+ end
752
+
753
+ # To post a ledger transaction at creation, use `posted`.
754
+ module Status
755
+ extend ModernTreasury::Enum
756
+
757
+ ARCHIVED = :archived
758
+ PENDING = :pending
759
+ POSTED = :posted
760
+
761
+ finalize!
762
+
763
+ # @!parse
764
+ # # @return [Array<Symbol>]
765
+ # def self.values; end
766
+ end
767
+ end
768
+
769
+ class LineItem < ModernTreasury::BaseModel
770
+ # @!attribute amount
771
+ # Value in specified currency's smallest unit. e.g. $10 would be represented
772
+ # as 1000.
773
+ #
774
+ # @return [Integer]
775
+ required :amount, Integer
776
+
777
+ # @!attribute accounting_category_id
778
+ # The ID of one of your accounting categories. Note that these will only be
779
+ # accessible if your accounting system has been connected.
780
+ #
781
+ # @return [String, nil]
782
+ optional :accounting_category_id, String, nil?: true
783
+
784
+ # @!attribute description
785
+ # A free-form description of the line item.
786
+ #
787
+ # @return [String, nil]
788
+ optional :description, String, nil?: true
789
+
790
+ # @!attribute [r] metadata
791
+ # Additional data represented as key-value pairs. Both the key and value must be
792
+ # strings.
793
+ #
794
+ # @return [Hash{Symbol=>String}, nil]
795
+ optional :metadata, ModernTreasury::HashOf[String]
796
+
797
+ # @!parse
798
+ # # @return [Hash{Symbol=>String}]
799
+ # attr_writer :metadata
800
+
801
+ # @!parse
802
+ # # @param amount [Integer]
803
+ # # @param accounting_category_id [String, nil]
804
+ # # @param description [String, nil]
805
+ # # @param metadata [Hash{Symbol=>String}]
806
+ # #
807
+ # def initialize(amount:, accounting_category_id: nil, description: nil, metadata: nil, **) = super
808
+
809
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
810
+ end
811
+
812
+ # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
813
+ # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
814
+ # an overnight check rather than standard mail.
815
+ module Priority
816
+ extend ModernTreasury::Enum
817
+
818
+ HIGH = :high
819
+ NORMAL = :normal
820
+
821
+ finalize!
822
+
823
+ # @!parse
824
+ # # @return [Array<Symbol>]
825
+ # def self.values; end
826
+ end
827
+
828
+ class ReceivingAccount < ModernTreasury::BaseModel
829
+ # @!attribute [r] account_details
830
+ #
831
+ # @return [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail>, nil]
832
+ optional :account_details,
833
+ -> { ModernTreasury::ArrayOf[ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail] }
834
+
835
+ # @!parse
836
+ # # @return [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail>]
837
+ # attr_writer :account_details
838
+
839
+ # @!attribute [r] account_type
840
+ # Can be `checking`, `savings` or `other`.
841
+ #
842
+ # @return [Symbol, ModernTreasury::Models::ExternalAccountType, nil]
843
+ optional :account_type, enum: -> { ModernTreasury::Models::ExternalAccountType }
844
+
845
+ # @!parse
846
+ # # @return [Symbol, ModernTreasury::Models::ExternalAccountType]
847
+ # attr_writer :account_type
848
+
849
+ # @!attribute [r] contact_details
850
+ #
851
+ # @return [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail>, nil]
852
+ optional :contact_details,
853
+ -> { ModernTreasury::ArrayOf[ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail] }
854
+
855
+ # @!parse
856
+ # # @return [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail>]
857
+ # attr_writer :contact_details
858
+
859
+ # @!attribute [r] ledger_account
860
+ # Specifies a ledger account object that will be created with the external
861
+ # account. The resulting ledger account is linked to the external account for
862
+ # auto-ledgering Payment objects. See
863
+ # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
864
+ # for more details.
865
+ #
866
+ # @return [ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount, nil]
867
+ optional :ledger_account,
868
+ -> { ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount }
869
+
870
+ # @!parse
871
+ # # @return [ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount]
872
+ # attr_writer :ledger_account
873
+
874
+ # @!attribute [r] metadata
875
+ # Additional data represented as key-value pairs. Both the key and value must be
876
+ # strings.
877
+ #
878
+ # @return [Hash{Symbol=>String}, nil]
879
+ optional :metadata, ModernTreasury::HashOf[String]
880
+
881
+ # @!parse
882
+ # # @return [Hash{Symbol=>String}]
883
+ # attr_writer :metadata
884
+
885
+ # @!attribute name
886
+ # A nickname for the external account. This is only for internal usage and won't
887
+ # affect any payments
888
+ #
889
+ # @return [String, nil]
890
+ optional :name, String, nil?: true
891
+
892
+ # @!attribute [r] party_address
893
+ # Required if receiving wire payments.
894
+ #
895
+ # @return [ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyAddress, nil]
896
+ optional :party_address,
897
+ -> { ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyAddress }
898
+
899
+ # @!parse
900
+ # # @return [ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyAddress]
901
+ # attr_writer :party_address
902
+
903
+ # @!attribute [r] party_identifier
904
+ #
905
+ # @return [String, nil]
906
+ optional :party_identifier, String
907
+
908
+ # @!parse
909
+ # # @return [String]
910
+ # attr_writer :party_identifier
911
+
912
+ # @!attribute [r] party_name
913
+ # If this value isn't provided, it will be inherited from the counterparty's name.
914
+ #
915
+ # @return [String, nil]
916
+ optional :party_name, String
917
+
918
+ # @!parse
919
+ # # @return [String]
920
+ # attr_writer :party_name
921
+
922
+ # @!attribute party_type
923
+ # Either `individual` or `business`.
924
+ #
925
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType, nil]
926
+ optional :party_type,
927
+ enum: -> { ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType },
928
+ nil?: true
929
+
930
+ # @!attribute [r] plaid_processor_token
931
+ # If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
932
+ # you can pass the processor token in this field.
933
+ #
934
+ # @return [String, nil]
935
+ optional :plaid_processor_token, String
936
+
937
+ # @!parse
938
+ # # @return [String]
939
+ # attr_writer :plaid_processor_token
940
+
941
+ # @!attribute [r] routing_details
942
+ #
943
+ # @return [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail>, nil]
944
+ optional :routing_details,
945
+ -> { ModernTreasury::ArrayOf[ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail] }
946
+
947
+ # @!parse
948
+ # # @return [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail>]
949
+ # attr_writer :routing_details
950
+
951
+ # @!parse
952
+ # # Either `receiving_account` or `receiving_account_id` must be present. When using
953
+ # # `receiving_account_id`, you may pass the id of an external account or an
954
+ # # internal account.
955
+ # #
956
+ # # @param account_details [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail>]
957
+ # # @param account_type [Symbol, ModernTreasury::Models::ExternalAccountType]
958
+ # # @param contact_details [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail>]
959
+ # # @param ledger_account [ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount]
960
+ # # @param metadata [Hash{Symbol=>String}]
961
+ # # @param name [String, nil]
962
+ # # @param party_address [ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyAddress]
963
+ # # @param party_identifier [String]
964
+ # # @param party_name [String]
965
+ # # @param party_type [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType, nil]
966
+ # # @param plaid_processor_token [String]
967
+ # # @param routing_details [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail>]
968
+ # #
969
+ # def initialize(
970
+ # account_details: nil,
971
+ # account_type: nil,
972
+ # contact_details: nil,
973
+ # ledger_account: nil,
974
+ # metadata: nil,
975
+ # name: nil,
976
+ # party_address: nil,
977
+ # party_identifier: nil,
978
+ # party_name: nil,
979
+ # party_type: nil,
980
+ # plaid_processor_token: nil,
981
+ # routing_details: nil,
982
+ # **
983
+ # )
984
+ # super
985
+ # end
986
+
987
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
988
+
989
+ class AccountDetail < ModernTreasury::BaseModel
990
+ # @!attribute account_number
991
+ #
992
+ # @return [String]
993
+ required :account_number, String
994
+
995
+ # @!attribute [r] account_number_type
996
+ #
997
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType, nil]
998
+ optional :account_number_type,
999
+ enum: -> { ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType }
1000
+
1001
+ # @!parse
1002
+ # # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType]
1003
+ # attr_writer :account_number_type
1004
+
1005
+ # @!parse
1006
+ # # @param account_number [String]
1007
+ # # @param account_number_type [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType]
1008
+ # #
1009
+ # def initialize(account_number:, account_number_type: nil, **) = super
1010
+
1011
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1012
+
1013
+ module AccountNumberType
1014
+ extend ModernTreasury::Enum
1015
+
1016
+ AU_NUMBER = :au_number
1017
+ CLABE = :clabe
1018
+ HK_NUMBER = :hk_number
1019
+ IBAN = :iban
1020
+ ID_NUMBER = :id_number
1021
+ NZ_NUMBER = :nz_number
1022
+ OTHER = :other
1023
+ PAN = :pan
1024
+ SG_NUMBER = :sg_number
1025
+ WALLET_ADDRESS = :wallet_address
1026
+
1027
+ finalize!
1028
+
1029
+ # @!parse
1030
+ # # @return [Array<Symbol>]
1031
+ # def self.values; end
1032
+ end
1033
+ end
1034
+
1035
+ class ContactDetail < ModernTreasury::BaseModel
1036
+ # @!attribute [r] contact_identifier
1037
+ #
1038
+ # @return [String, nil]
1039
+ optional :contact_identifier, String
1040
+
1041
+ # @!parse
1042
+ # # @return [String]
1043
+ # attr_writer :contact_identifier
1044
+
1045
+ # @!attribute [r] contact_identifier_type
1046
+ #
1047
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType, nil]
1048
+ optional :contact_identifier_type,
1049
+ enum: -> { ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType }
1050
+
1051
+ # @!parse
1052
+ # # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType]
1053
+ # attr_writer :contact_identifier_type
1054
+
1055
+ # @!parse
1056
+ # # @param contact_identifier [String]
1057
+ # # @param contact_identifier_type [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType]
1058
+ # #
1059
+ # def initialize(contact_identifier: nil, contact_identifier_type: nil, **) = super
1060
+
1061
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1062
+
1063
+ module ContactIdentifierType
1064
+ extend ModernTreasury::Enum
1065
+
1066
+ EMAIL = :email
1067
+ PHONE_NUMBER = :phone_number
1068
+ WEBSITE = :website
1069
+
1070
+ finalize!
1071
+
1072
+ # @!parse
1073
+ # # @return [Array<Symbol>]
1074
+ # def self.values; end
1075
+ end
1076
+ end
1077
+
1078
+ class LedgerAccount < ModernTreasury::BaseModel
1079
+ # @!attribute currency
1080
+ # The currency of the ledger account.
1081
+ #
1082
+ # @return [String]
1083
+ required :currency, String
1084
+
1085
+ # @!attribute ledger_id
1086
+ # The id of the ledger that this account belongs to.
1087
+ #
1088
+ # @return [String]
1089
+ required :ledger_id, String
1090
+
1091
+ # @!attribute name
1092
+ # The name of the ledger account.
1093
+ #
1094
+ # @return [String]
1095
+ required :name, String
1096
+
1097
+ # @!attribute normal_balance
1098
+ # The normal balance of the ledger account.
1099
+ #
1100
+ # @return [Symbol, ModernTreasury::Models::TransactionDirection]
1101
+ required :normal_balance, enum: -> { ModernTreasury::Models::TransactionDirection }
1102
+
1103
+ # @!attribute currency_exponent
1104
+ # The currency exponent of the ledger account.
1105
+ #
1106
+ # @return [Integer, nil]
1107
+ optional :currency_exponent, Integer, nil?: true
1108
+
1109
+ # @!attribute description
1110
+ # The description of the ledger account.
1111
+ #
1112
+ # @return [String, nil]
1113
+ optional :description, String, nil?: true
1114
+
1115
+ # @!attribute [r] ledger_account_category_ids
1116
+ # The array of ledger account category ids that this ledger account should be a
1117
+ # child of.
1118
+ #
1119
+ # @return [Array<String>, nil]
1120
+ optional :ledger_account_category_ids, ModernTreasury::ArrayOf[String]
1121
+
1122
+ # @!parse
1123
+ # # @return [Array<String>]
1124
+ # attr_writer :ledger_account_category_ids
1125
+
1126
+ # @!attribute [r] ledgerable_id
1127
+ # If the ledger account links to another object in Modern Treasury, the id will be
1128
+ # populated here, otherwise null.
1129
+ #
1130
+ # @return [String, nil]
1131
+ optional :ledgerable_id, String
1132
+
1133
+ # @!parse
1134
+ # # @return [String]
1135
+ # attr_writer :ledgerable_id
1136
+
1137
+ # @!attribute [r] ledgerable_type
1138
+ # If the ledger account links to another object in Modern Treasury, the type will
1139
+ # be populated here, otherwise null. The value is one of internal_account or
1140
+ # external_account.
1141
+ #
1142
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType, nil]
1143
+ optional :ledgerable_type,
1144
+ enum: -> { ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType }
1145
+
1146
+ # @!parse
1147
+ # # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType]
1148
+ # attr_writer :ledgerable_type
1149
+
1150
+ # @!attribute [r] metadata
1151
+ # Additional data represented as key-value pairs. Both the key and value must be
1152
+ # strings.
1153
+ #
1154
+ # @return [Hash{Symbol=>String}, nil]
1155
+ optional :metadata, ModernTreasury::HashOf[String]
1156
+
1157
+ # @!parse
1158
+ # # @return [Hash{Symbol=>String}]
1159
+ # attr_writer :metadata
1160
+
1161
+ # @!parse
1162
+ # # Specifies a ledger account object that will be created with the external
1163
+ # # account. The resulting ledger account is linked to the external account for
1164
+ # # auto-ledgering Payment objects. See
1165
+ # # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
1166
+ # # for more details.
1167
+ # #
1168
+ # # @param currency [String]
1169
+ # # @param ledger_id [String]
1170
+ # # @param name [String]
1171
+ # # @param normal_balance [Symbol, ModernTreasury::Models::TransactionDirection]
1172
+ # # @param currency_exponent [Integer, nil]
1173
+ # # @param description [String, nil]
1174
+ # # @param ledger_account_category_ids [Array<String>]
1175
+ # # @param ledgerable_id [String]
1176
+ # # @param ledgerable_type [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType]
1177
+ # # @param metadata [Hash{Symbol=>String}]
1178
+ # #
1179
+ # def initialize(
1180
+ # currency:,
1181
+ # ledger_id:,
1182
+ # name:,
1183
+ # normal_balance:,
1184
+ # currency_exponent: nil,
1185
+ # description: nil,
1186
+ # ledger_account_category_ids: nil,
1187
+ # ledgerable_id: nil,
1188
+ # ledgerable_type: nil,
1189
+ # metadata: nil,
1190
+ # **
1191
+ # )
1192
+ # super
1193
+ # end
1194
+
1195
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1196
+
1197
+ # If the ledger account links to another object in Modern Treasury, the type will
1198
+ # be populated here, otherwise null. The value is one of internal_account or
1199
+ # external_account.
1200
+ module LedgerableType
1201
+ extend ModernTreasury::Enum
1202
+
1203
+ COUNTERPARTY = :counterparty
1204
+ EXTERNAL_ACCOUNT = :external_account
1205
+ INTERNAL_ACCOUNT = :internal_account
1206
+ VIRTUAL_ACCOUNT = :virtual_account
1207
+
1208
+ finalize!
1209
+
1210
+ # @!parse
1211
+ # # @return [Array<Symbol>]
1212
+ # def self.values; end
1213
+ end
1214
+ end
1215
+
1216
+ class PartyAddress < ModernTreasury::BaseModel
1217
+ # @!attribute country
1218
+ # Country code conforms to [ISO 3166-1 alpha-2]
1219
+ #
1220
+ # @return [String, nil]
1221
+ optional :country, String, nil?: true
1222
+
1223
+ # @!attribute line1
1224
+ #
1225
+ # @return [String, nil]
1226
+ optional :line1, String, nil?: true
1227
+
1228
+ # @!attribute line2
1229
+ #
1230
+ # @return [String, nil]
1231
+ optional :line2, String, nil?: true
1232
+
1233
+ # @!attribute locality
1234
+ # Locality or City.
1235
+ #
1236
+ # @return [String, nil]
1237
+ optional :locality, String, nil?: true
1238
+
1239
+ # @!attribute postal_code
1240
+ # The postal code of the address.
1241
+ #
1242
+ # @return [String, nil]
1243
+ optional :postal_code, String, nil?: true
1244
+
1245
+ # @!attribute region
1246
+ # Region or State.
1247
+ #
1248
+ # @return [String, nil]
1249
+ optional :region, String, nil?: true
1250
+
1251
+ # @!parse
1252
+ # # Required if receiving wire payments.
1253
+ # #
1254
+ # # @param country [String, nil]
1255
+ # # @param line1 [String, nil]
1256
+ # # @param line2 [String, nil]
1257
+ # # @param locality [String, nil]
1258
+ # # @param postal_code [String, nil]
1259
+ # # @param region [String, nil]
1260
+ # #
1261
+ # def initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil, **) = super
1262
+
1263
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1264
+ end
1265
+
1266
+ # Either `individual` or `business`.
1267
+ module PartyType
1268
+ extend ModernTreasury::Enum
1269
+
1270
+ BUSINESS = :business
1271
+ INDIVIDUAL = :individual
1272
+
1273
+ finalize!
1274
+
1275
+ # @!parse
1276
+ # # @return [Array<Symbol>]
1277
+ # def self.values; end
1278
+ end
1279
+
1280
+ class RoutingDetail < ModernTreasury::BaseModel
1281
+ # @!attribute routing_number
1282
+ #
1283
+ # @return [String]
1284
+ required :routing_number, String
1285
+
1286
+ # @!attribute routing_number_type
1287
+ #
1288
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType]
1289
+ required :routing_number_type,
1290
+ enum: -> { ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType }
1291
+
1292
+ # @!attribute [r] payment_type
1293
+ #
1294
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType, nil]
1295
+ optional :payment_type,
1296
+ enum: -> { ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType }
1297
+
1298
+ # @!parse
1299
+ # # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType]
1300
+ # attr_writer :payment_type
1301
+
1302
+ # @!parse
1303
+ # # @param routing_number [String]
1304
+ # # @param routing_number_type [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType]
1305
+ # # @param payment_type [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType]
1306
+ # #
1307
+ # def initialize(routing_number:, routing_number_type:, payment_type: nil, **) = super
1308
+
1309
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1310
+
1311
+ module RoutingNumberType
1312
+ extend ModernTreasury::Enum
1313
+
1314
+ ABA = :aba
1315
+ AU_BSB = :au_bsb
1316
+ BR_CODIGO = :br_codigo
1317
+ CA_CPA = :ca_cpa
1318
+ CHIPS = :chips
1319
+ CNAPS = :cnaps
1320
+ DK_INTERBANK_CLEARING_CODE = :dk_interbank_clearing_code
1321
+ GB_SORT_CODE = :gb_sort_code
1322
+ HK_INTERBANK_CLEARING_CODE = :hk_interbank_clearing_code
1323
+ HU_INTERBANK_CLEARING_CODE = :hu_interbank_clearing_code
1324
+ ID_SKNBI_CODE = :id_sknbi_code
1325
+ IN_IFSC = :in_ifsc
1326
+ JP_ZENGIN_CODE = :jp_zengin_code
1327
+ MY_BRANCH_CODE = :my_branch_code
1328
+ MX_BANK_IDENTIFIER = :mx_bank_identifier
1329
+ NZ_NATIONAL_CLEARING_CODE = :nz_national_clearing_code
1330
+ PL_NATIONAL_CLEARING_CODE = :pl_national_clearing_code
1331
+ SE_BANKGIRO_CLEARING_CODE = :se_bankgiro_clearing_code
1332
+ SG_INTERBANK_CLEARING_CODE = :sg_interbank_clearing_code
1333
+ SWIFT = :swift
1334
+ ZA_NATIONAL_CLEARING_CODE = :za_national_clearing_code
1335
+
1336
+ finalize!
1337
+
1338
+ # @!parse
1339
+ # # @return [Array<Symbol>]
1340
+ # def self.values; end
1341
+ end
1342
+
1343
+ module PaymentType
1344
+ extend ModernTreasury::Enum
1345
+
1346
+ ACH = :ach
1347
+ AU_BECS = :au_becs
1348
+ BACS = :bacs
1349
+ BOOK = :book
1350
+ CARD = :card
1351
+ CHATS = :chats
1352
+ CHECK = :check
1353
+ CROSS_BORDER = :cross_border
1354
+ DK_NETS = :dk_nets
1355
+ EFT = :eft
1356
+ HU_ICS = :hu_ics
1357
+ INTERAC = :interac
1358
+ MASAV = :masav
1359
+ MX_CCEN = :mx_ccen
1360
+ NEFT = :neft
1361
+ NICS = :nics
1362
+ NZ_BECS = :nz_becs
1363
+ PL_ELIXIR = :pl_elixir
1364
+ PROVXCHANGE = :provxchange
1365
+ RO_SENT = :ro_sent
1366
+ RTP = :rtp
1367
+ SE_BANKGIROT = :se_bankgirot
1368
+ SEN = :sen
1369
+ SEPA = :sepa
1370
+ SG_GIRO = :sg_giro
1371
+ SIC = :sic
1372
+ SIGNET = :signet
1373
+ SKNBI = :sknbi
1374
+ WIRE = :wire
1375
+ ZENGIN = :zengin
1376
+
1377
+ finalize!
1378
+
1379
+ # @!parse
1380
+ # # @return [Array<Symbol>]
1381
+ # def self.values; end
1382
+ end
1383
+ end
1384
+ end
1385
+ end
1386
+ end
1387
+ end