modern_treasury 0.0.0 → 0.1.0.pre.alpha.15

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