modern_treasury 0.1.0.pre.alpha.18 → 0.1.0.pre.alpha.19

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 (1013) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +65 -0
  3. data/README.md +64 -55
  4. data/lib/modern_treasury/client.rb +6 -6
  5. data/lib/modern_treasury/errors.rb +10 -10
  6. data/lib/modern_treasury/file_part.rb +55 -0
  7. data/lib/modern_treasury/internal/page.rb +2 -2
  8. data/lib/modern_treasury/internal/transport/base_client.rb +88 -16
  9. data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +16 -6
  10. data/lib/modern_treasury/internal/type/array_of.rb +11 -0
  11. data/lib/modern_treasury/internal/type/base_model.rb +98 -39
  12. data/lib/modern_treasury/internal/type/base_page.rb +9 -1
  13. data/lib/modern_treasury/internal/type/boolean.rb +14 -11
  14. data/lib/modern_treasury/internal/type/converter.rb +22 -1
  15. data/lib/modern_treasury/internal/type/enum.rb +23 -19
  16. data/lib/modern_treasury/internal/type/{io_like.rb → file_input.rb} +34 -15
  17. data/lib/modern_treasury/internal/type/hash_of.rb +11 -0
  18. data/lib/modern_treasury/internal/type/request_parameters.rb +7 -14
  19. data/lib/modern_treasury/internal/type/union.rb +12 -2
  20. data/lib/modern_treasury/internal/type/unknown.rb +14 -11
  21. data/lib/modern_treasury/internal/util.rb +144 -64
  22. data/lib/modern_treasury/internal.rb +6 -1
  23. data/lib/modern_treasury/models/account_collection_flow.rb +50 -93
  24. data/lib/modern_treasury/models/account_collection_flow_create_params.rb +16 -23
  25. data/lib/modern_treasury/models/account_collection_flow_list_params.rb +14 -50
  26. data/lib/modern_treasury/models/account_collection_flow_retrieve_params.rb +3 -8
  27. data/lib/modern_treasury/models/account_collection_flow_update_params.rb +12 -16
  28. data/lib/modern_treasury/models/account_detail.rb +27 -40
  29. data/lib/modern_treasury/models/account_detail_create_params.rb +21 -31
  30. data/lib/modern_treasury/models/account_detail_delete_params.rb +9 -17
  31. data/lib/modern_treasury/models/account_detail_list_params.rb +9 -18
  32. data/lib/modern_treasury/models/account_detail_retrieve_params.rb +7 -12
  33. data/lib/modern_treasury/models/accounts_type.rb +2 -5
  34. data/lib/modern_treasury/models/async_response.rb +3 -7
  35. data/lib/modern_treasury/models/bank_settings.rb +23 -29
  36. data/lib/modern_treasury/models/bulk_request.rb +42 -57
  37. data/lib/modern_treasury/models/bulk_request_create_params.rb +1223 -1758
  38. data/lib/modern_treasury/models/bulk_request_list_params.rb +36 -72
  39. data/lib/modern_treasury/models/bulk_request_retrieve_params.rb +3 -8
  40. data/lib/modern_treasury/models/bulk_result.rb +90 -104
  41. data/lib/modern_treasury/models/bulk_result_list_params.rb +39 -79
  42. data/lib/modern_treasury/models/bulk_result_retrieve_params.rb +3 -8
  43. data/lib/modern_treasury/models/client_ping_params.rb +3 -8
  44. data/lib/modern_treasury/models/connection.rb +21 -27
  45. data/lib/modern_treasury/models/connection_legal_entity.rb +28 -37
  46. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +326 -442
  47. data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +16 -50
  48. data/lib/modern_treasury/models/connection_legal_entity_retrieve_params.rb +3 -8
  49. data/lib/modern_treasury/models/connection_legal_entity_update_params.rb +10 -21
  50. data/lib/modern_treasury/models/connection_list_params.rb +14 -27
  51. data/lib/modern_treasury/models/counterparty.rb +176 -256
  52. data/lib/modern_treasury/models/counterparty_collect_account_params.rb +25 -36
  53. data/lib/modern_treasury/models/counterparty_collect_account_response.rb +9 -8
  54. data/lib/modern_treasury/models/counterparty_create_params.rb +537 -794
  55. data/lib/modern_treasury/models/counterparty_delete_params.rb +3 -8
  56. data/lib/modern_treasury/models/counterparty_list_params.rb +29 -64
  57. data/lib/modern_treasury/models/counterparty_retrieve_params.rb +3 -8
  58. data/lib/modern_treasury/models/counterparty_update_params.rb +23 -50
  59. data/lib/modern_treasury/models/currency.rb +2 -5
  60. data/lib/modern_treasury/models/document.rb +65 -94
  61. data/lib/modern_treasury/models/document_create_params.rb +18 -26
  62. data/lib/modern_treasury/models/document_list_params.rb +21 -34
  63. data/lib/modern_treasury/models/document_retrieve_params.rb +3 -8
  64. data/lib/modern_treasury/models/event.rb +23 -29
  65. data/lib/modern_treasury/models/event_list_params.rb +23 -57
  66. data/lib/modern_treasury/models/event_retrieve_params.rb +3 -8
  67. data/lib/modern_treasury/models/expected_payment.rb +76 -91
  68. data/lib/modern_treasury/models/expected_payment_create_params.rb +151 -227
  69. data/lib/modern_treasury/models/expected_payment_delete_params.rb +3 -8
  70. data/lib/modern_treasury/models/expected_payment_list_params.rb +46 -95
  71. data/lib/modern_treasury/models/expected_payment_retrieve_params.rb +3 -8
  72. data/lib/modern_treasury/models/expected_payment_type.rb +2 -5
  73. data/lib/modern_treasury/models/expected_payment_update_params.rb +56 -75
  74. data/lib/modern_treasury/models/external_account.rb +120 -152
  75. data/lib/modern_treasury/models/external_account_complete_verification_params.rb +5 -14
  76. data/lib/modern_treasury/models/external_account_create_params.rb +155 -263
  77. data/lib/modern_treasury/models/external_account_delete_params.rb +3 -8
  78. data/lib/modern_treasury/models/external_account_list_params.rb +20 -43
  79. data/lib/modern_treasury/models/external_account_retrieve_params.rb +3 -8
  80. data/lib/modern_treasury/models/external_account_type.rb +2 -5
  81. data/lib/modern_treasury/models/external_account_update_params.rb +45 -72
  82. data/lib/modern_treasury/models/external_account_verify_params.rb +34 -62
  83. data/lib/modern_treasury/models/external_account_verify_response.rb +42 -48
  84. data/lib/modern_treasury/models/foreign_exchange_quote.rb +55 -60
  85. data/lib/modern_treasury/models/foreign_exchange_quote_create_params.rb +26 -49
  86. data/lib/modern_treasury/models/foreign_exchange_quote_list_params.rb +32 -71
  87. data/lib/modern_treasury/models/foreign_exchange_quote_retrieve_params.rb +3 -8
  88. data/lib/modern_treasury/models/incoming_payment_detail.rb +79 -97
  89. data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +39 -68
  90. data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +42 -87
  91. data/lib/modern_treasury/models/incoming_payment_detail_retrieve_params.rb +3 -8
  92. data/lib/modern_treasury/models/incoming_payment_detail_update_params.rb +9 -14
  93. data/lib/modern_treasury/models/internal_account.rb +89 -109
  94. data/lib/modern_treasury/models/internal_account_create_params.rb +50 -83
  95. data/lib/modern_treasury/models/internal_account_list_params.rb +37 -75
  96. data/lib/modern_treasury/models/internal_account_retrieve_params.rb +3 -8
  97. data/lib/modern_treasury/models/internal_account_update_params.rb +21 -48
  98. data/lib/modern_treasury/models/internal_accounts/balance_report.rb +70 -84
  99. data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +43 -39
  100. data/lib/modern_treasury/models/internal_accounts/balance_report_delete_params.rb +4 -9
  101. data/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rb +22 -34
  102. data/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb +4 -9
  103. data/lib/modern_treasury/models/invoice.rb +179 -213
  104. data/lib/modern_treasury/models/invoice_add_payment_order_params.rb +4 -9
  105. data/lib/modern_treasury/models/invoice_create_params.rb +178 -262
  106. data/lib/modern_treasury/models/invoice_list_params.rb +44 -94
  107. data/lib/modern_treasury/models/invoice_retrieve_params.rb +3 -8
  108. data/lib/modern_treasury/models/invoice_update_params.rb +182 -282
  109. data/lib/modern_treasury/models/invoices/invoice_line_item.rb +29 -35
  110. data/lib/modern_treasury/models/invoices/line_item_create_params.rb +25 -52
  111. data/lib/modern_treasury/models/invoices/line_item_delete_params.rb +4 -9
  112. data/lib/modern_treasury/models/invoices/line_item_list_params.rb +6 -15
  113. data/lib/modern_treasury/models/invoices/line_item_retrieve_params.rb +4 -9
  114. data/lib/modern_treasury/models/invoices/line_item_update_params.rb +29 -64
  115. data/lib/modern_treasury/models/ledger.rb +21 -14
  116. data/lib/modern_treasury/models/ledger_account.rb +113 -128
  117. data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +126 -119
  118. data/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rb +33 -34
  119. data/lib/modern_treasury/models/ledger_account_balance_monitor_delete_params.rb +3 -8
  120. data/lib/modern_treasury/models/ledger_account_balance_monitor_list_params.rb +21 -33
  121. data/lib/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rb +3 -8
  122. data/lib/modern_treasury/models/ledger_account_balance_monitor_update_params.rb +13 -20
  123. data/lib/modern_treasury/models/ledger_account_category.rb +98 -104
  124. data/lib/modern_treasury/models/ledger_account_category_add_ledger_account_params.rb +4 -9
  125. data/lib/modern_treasury/models/ledger_account_category_add_nested_category_params.rb +4 -9
  126. data/lib/modern_treasury/models/ledger_account_category_create_params.rb +26 -41
  127. data/lib/modern_treasury/models/ledger_account_category_delete_params.rb +3 -8
  128. data/lib/modern_treasury/models/ledger_account_category_list_params.rb +44 -95
  129. data/lib/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rb +4 -9
  130. data/lib/modern_treasury/models/ledger_account_category_remove_nested_category_params.rb +4 -9
  131. data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +20 -37
  132. data/lib/modern_treasury/models/ledger_account_category_update_params.rb +14 -21
  133. data/lib/modern_treasury/models/ledger_account_create_params.rb +36 -62
  134. data/lib/modern_treasury/models/ledger_account_delete_params.rb +3 -8
  135. data/lib/modern_treasury/models/ledger_account_list_params.rb +120 -283
  136. data/lib/modern_treasury/models/ledger_account_retrieve_params.rb +29 -67
  137. data/lib/modern_treasury/models/ledger_account_settlement.rb +42 -51
  138. data/lib/modern_treasury/models/ledger_account_settlement_create_params.rb +27 -43
  139. data/lib/modern_treasury/models/ledger_account_settlement_list_params.rb +35 -78
  140. data/lib/modern_treasury/models/ledger_account_settlement_retrieve_params.rb +3 -8
  141. data/lib/modern_treasury/models/ledger_account_settlement_update_params.rb +18 -28
  142. data/lib/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rb +9 -9
  143. data/lib/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rb +9 -9
  144. data/lib/modern_treasury/models/ledger_account_statement_create_params.rb +17 -28
  145. data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +145 -147
  146. data/lib/modern_treasury/models/ledger_account_statement_retrieve_params.rb +3 -8
  147. data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +146 -147
  148. data/lib/modern_treasury/models/ledger_account_update_params.rb +14 -21
  149. data/lib/modern_treasury/models/ledger_create_params.rb +13 -16
  150. data/lib/modern_treasury/models/ledger_delete_params.rb +3 -8
  151. data/lib/modern_treasury/models/ledger_entry.rb +113 -121
  152. data/lib/modern_treasury/models/ledger_entry_list_params.rb +93 -197
  153. data/lib/modern_treasury/models/ledger_entry_retrieve_params.rb +9 -14
  154. data/lib/modern_treasury/models/ledger_entry_update_params.rb +9 -14
  155. data/lib/modern_treasury/models/ledger_event_handler.rb +68 -70
  156. data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +58 -67
  157. data/lib/modern_treasury/models/ledger_event_handler_delete_params.rb +3 -8
  158. data/lib/modern_treasury/models/ledger_event_handler_list_params.rb +20 -33
  159. data/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rb +3 -8
  160. data/lib/modern_treasury/models/ledger_event_handler_variable.rb +17 -18
  161. data/lib/modern_treasury/models/ledger_list_params.rb +20 -33
  162. data/lib/modern_treasury/models/ledger_retrieve_params.rb +3 -8
  163. data/lib/modern_treasury/models/ledger_transaction.rb +53 -68
  164. data/lib/modern_treasury/models/ledger_transaction_create_params.rb +67 -117
  165. data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +42 -51
  166. data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +35 -71
  167. data/lib/modern_treasury/models/ledger_transaction_list_params.rb +92 -197
  168. data/lib/modern_treasury/models/ledger_transaction_retrieve_params.rb +3 -8
  169. data/lib/modern_treasury/models/ledger_transaction_update_params.rb +63 -109
  170. data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +179 -186
  171. data/lib/modern_treasury/models/ledger_transactions/version_list_params.rb +24 -50
  172. data/lib/modern_treasury/models/ledger_update_params.rb +14 -21
  173. data/lib/modern_treasury/models/ledgerable_event.rb +23 -29
  174. data/lib/modern_treasury/models/ledgerable_event_create_params.rb +15 -17
  175. data/lib/modern_treasury/models/ledgerable_event_retrieve_params.rb +3 -8
  176. data/lib/modern_treasury/models/legal_entity.rb +166 -191
  177. data/lib/modern_treasury/models/legal_entity_association.rb +207 -231
  178. data/lib/modern_treasury/models/legal_entity_association_create_params.rb +179 -233
  179. data/lib/modern_treasury/models/legal_entity_compliance_detail.rb +27 -33
  180. data/lib/modern_treasury/models/legal_entity_create_params.rb +312 -415
  181. data/lib/modern_treasury/models/legal_entity_industry_classification.rb +24 -33
  182. data/lib/modern_treasury/models/legal_entity_list_params.rb +24 -50
  183. data/lib/modern_treasury/models/legal_entity_retrieve_params.rb +3 -8
  184. data/lib/modern_treasury/models/legal_entity_update_params.rb +130 -176
  185. data/lib/modern_treasury/models/line_item.rb +45 -54
  186. data/lib/modern_treasury/models/line_item_list_params.rb +11 -23
  187. data/lib/modern_treasury/models/line_item_retrieve_params.rb +9 -17
  188. data/lib/modern_treasury/models/line_item_update_params.rb +17 -23
  189. data/lib/modern_treasury/models/paper_item.rb +46 -55
  190. data/lib/modern_treasury/models/paper_item_list_params.rb +20 -43
  191. data/lib/modern_treasury/models/paper_item_retrieve_params.rb +3 -8
  192. data/lib/modern_treasury/models/payment_flow.rb +75 -139
  193. data/lib/modern_treasury/models/payment_flow_create_params.rb +23 -37
  194. data/lib/modern_treasury/models/payment_flow_list_params.rb +18 -64
  195. data/lib/modern_treasury/models/payment_flow_retrieve_params.rb +3 -8
  196. data/lib/modern_treasury/models/payment_flow_update_params.rb +12 -16
  197. data/lib/modern_treasury/models/payment_order.rb +222 -237
  198. data/lib/modern_treasury/models/payment_order_create_async_params.rb +391 -602
  199. data/lib/modern_treasury/models/payment_order_create_params.rb +414 -635
  200. data/lib/modern_treasury/models/payment_order_list_params.rb +70 -150
  201. data/lib/modern_treasury/models/payment_order_retrieve_params.rb +3 -8
  202. data/lib/modern_treasury/models/payment_order_subtype.rb +2 -5
  203. data/lib/modern_treasury/models/payment_order_type.rb +2 -5
  204. data/lib/modern_treasury/models/payment_order_update_params.rb +320 -495
  205. data/lib/modern_treasury/models/payment_orders/reversal.rb +35 -47
  206. data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +95 -149
  207. data/lib/modern_treasury/models/payment_orders/reversal_list_params.rb +6 -15
  208. data/lib/modern_treasury/models/payment_orders/reversal_retrieve_params.rb +4 -9
  209. data/lib/modern_treasury/models/payment_reference.rb +31 -44
  210. data/lib/modern_treasury/models/payment_reference_list_params.rb +24 -51
  211. data/lib/modern_treasury/models/payment_reference_retireve_params.rb +3 -8
  212. data/lib/modern_treasury/models/payment_reference_retrieve_params.rb +3 -8
  213. data/lib/modern_treasury/models/ping_response.rb +2 -6
  214. data/lib/modern_treasury/models/reconciliation_rule.rb +37 -53
  215. data/lib/modern_treasury/models/return_create_params.rb +28 -41
  216. data/lib/modern_treasury/models/return_list_params.rb +27 -57
  217. data/lib/modern_treasury/models/return_object.rb +104 -123
  218. data/lib/modern_treasury/models/return_retrieve_params.rb +3 -8
  219. data/lib/modern_treasury/models/routing_detail.rb +63 -81
  220. data/lib/modern_treasury/models/routing_detail_create_params.rb +26 -36
  221. data/lib/modern_treasury/models/routing_detail_delete_params.rb +9 -17
  222. data/lib/modern_treasury/models/routing_detail_list_params.rb +9 -18
  223. data/lib/modern_treasury/models/routing_detail_retrieve_params.rb +7 -12
  224. data/lib/modern_treasury/models/routing_number_lookup_request.rb +53 -84
  225. data/lib/modern_treasury/models/transaction.rb +93 -106
  226. data/lib/modern_treasury/models/transaction_create_params.rb +32 -50
  227. data/lib/modern_treasury/models/transaction_delete_params.rb +3 -8
  228. data/lib/modern_treasury/models/transaction_direction.rb +2 -5
  229. data/lib/modern_treasury/models/transaction_list_params.rb +47 -106
  230. data/lib/modern_treasury/models/transaction_retrieve_params.rb +3 -8
  231. data/lib/modern_treasury/models/transaction_update_params.rb +9 -14
  232. data/lib/modern_treasury/models/transactions/line_item_create_params.rb +12 -11
  233. data/lib/modern_treasury/models/transactions/line_item_delete_params.rb +3 -8
  234. data/lib/modern_treasury/models/transactions/line_item_list_params.rb +15 -35
  235. data/lib/modern_treasury/models/transactions/line_item_retrieve_params.rb +3 -8
  236. data/lib/modern_treasury/models/transactions/transaction_line_item.rb +43 -55
  237. data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +15 -17
  238. data/lib/modern_treasury/models/virtual_account.rb +39 -47
  239. data/lib/modern_treasury/models/virtual_account_create_params.rb +115 -187
  240. data/lib/modern_treasury/models/virtual_account_delete_params.rb +3 -8
  241. data/lib/modern_treasury/models/virtual_account_list_params.rb +20 -43
  242. data/lib/modern_treasury/models/virtual_account_retrieve_params.rb +3 -8
  243. data/lib/modern_treasury/models/virtual_account_update_params.rb +14 -27
  244. data/lib/modern_treasury/models/wealth_and_employment_details.rb +73 -95
  245. data/lib/modern_treasury/models.rb +442 -0
  246. data/lib/modern_treasury/request_options.rb +8 -6
  247. data/lib/modern_treasury/resources/account_collection_flows.rb +25 -16
  248. data/lib/modern_treasury/resources/account_details.rb +41 -24
  249. data/lib/modern_treasury/resources/bulk_requests.rb +34 -17
  250. data/lib/modern_treasury/resources/bulk_results.rb +22 -11
  251. data/lib/modern_treasury/resources/connection_legal_entities.rb +24 -18
  252. data/lib/modern_treasury/resources/connections.rb +9 -5
  253. data/lib/modern_treasury/resources/counterparties.rb +90 -45
  254. data/lib/modern_treasury/resources/documents.rb +27 -15
  255. data/lib/modern_treasury/resources/events.rb +16 -8
  256. data/lib/modern_treasury/resources/expected_payments.rb +118 -60
  257. data/lib/modern_treasury/resources/external_accounts.rb +93 -45
  258. data/lib/modern_treasury/resources/foreign_exchange_quotes.rb +44 -22
  259. data/lib/modern_treasury/resources/incoming_payment_details.rb +61 -30
  260. data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +48 -21
  261. data/lib/modern_treasury/resources/internal_accounts.rb +66 -33
  262. data/lib/modern_treasury/resources/invoices/line_items.rb +67 -37
  263. data/lib/modern_treasury/resources/invoices.rb +145 -71
  264. data/lib/modern_treasury/resources/ledger_account_balance_monitors.rb +51 -25
  265. data/lib/modern_treasury/resources/ledger_account_categories.rb +91 -50
  266. data/lib/modern_treasury/resources/ledger_account_settlements/account_entries.rb +18 -8
  267. data/lib/modern_treasury/resources/ledger_account_settlements.rb +60 -28
  268. data/lib/modern_treasury/resources/ledger_account_statements.rb +16 -7
  269. data/lib/modern_treasury/resources/ledger_accounts.rb +83 -40
  270. data/lib/modern_treasury/resources/ledger_entries.rb +60 -27
  271. data/lib/modern_treasury/resources/ledger_event_handlers.rb +41 -21
  272. data/lib/modern_treasury/resources/ledger_transactions/versions.rb +17 -7
  273. data/lib/modern_treasury/resources/ledger_transactions.rb +124 -57
  274. data/lib/modern_treasury/resources/ledgerable_events.rb +18 -10
  275. data/lib/modern_treasury/resources/ledgers.rb +48 -25
  276. data/lib/modern_treasury/resources/legal_entities.rb +129 -63
  277. data/lib/modern_treasury/resources/legal_entity_associations.rb +18 -9
  278. data/lib/modern_treasury/resources/line_items.rb +34 -20
  279. data/lib/modern_treasury/resources/paper_items.rb +18 -9
  280. data/lib/modern_treasury/resources/payment_flows.rb +35 -20
  281. data/lib/modern_treasury/resources/payment_orders/reversals.rb +28 -16
  282. data/lib/modern_treasury/resources/payment_orders.rb +267 -132
  283. data/lib/modern_treasury/resources/payment_references.rb +18 -9
  284. data/lib/modern_treasury/resources/returns.rb +40 -20
  285. data/lib/modern_treasury/resources/routing_details.rb +43 -25
  286. data/lib/modern_treasury/resources/transactions/line_items.rb +22 -14
  287. data/lib/modern_treasury/resources/transactions.rb +69 -32
  288. data/lib/modern_treasury/resources/validations.rb +11 -5
  289. data/lib/modern_treasury/resources/virtual_accounts.rb +56 -28
  290. data/lib/modern_treasury/version.rb +1 -1
  291. data/lib/modern_treasury.rb +5 -10
  292. data/rbi/{lib/modern_treasury → modern_treasury}/client.rbi +13 -12
  293. data/rbi/{lib/modern_treasury → modern_treasury}/errors.rbi +34 -15
  294. data/rbi/modern_treasury/file_part.rbi +37 -0
  295. data/rbi/{lib/modern_treasury → modern_treasury}/internal/page.rbi +8 -4
  296. data/rbi/modern_treasury/internal/transport/base_client.rbi +303 -0
  297. data/rbi/{lib/modern_treasury → modern_treasury}/internal/transport/pooled_net_requester.rbi +29 -13
  298. data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/array_of.rbi +40 -23
  299. data/rbi/modern_treasury/internal/type/base_model.rbi +305 -0
  300. data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/base_page.rbi +15 -8
  301. data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/boolean.rbi +12 -9
  302. data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/converter.rbi +75 -28
  303. data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/enum.rbi +26 -18
  304. data/rbi/{lib/modern_treasury/internal/type/io_like.rbi → modern_treasury/internal/type/file_input.rbi} +14 -6
  305. data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/hash_of.rbi +40 -23
  306. data/rbi/modern_treasury/internal/type/request_parameters.rbi +31 -0
  307. data/rbi/modern_treasury/internal/type/union.rbi +111 -0
  308. data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/unknown.rbi +16 -6
  309. data/rbi/modern_treasury/internal/util.rbi +451 -0
  310. data/rbi/{lib/modern_treasury → modern_treasury}/internal.rbi +2 -1
  311. data/rbi/modern_treasury/models/account_collection_flow.rbi +372 -0
  312. data/rbi/modern_treasury/models/account_collection_flow_create_params.rbi +197 -0
  313. data/rbi/{lib/modern_treasury → modern_treasury}/models/account_collection_flow_list_params.rbi +26 -17
  314. data/rbi/modern_treasury/models/account_collection_flow_retrieve_params.rbi +32 -0
  315. data/rbi/modern_treasury/models/account_collection_flow_update_params.rbi +85 -0
  316. data/rbi/modern_treasury/models/account_detail.rbi +178 -0
  317. data/rbi/modern_treasury/models/account_detail_create_params.rbi +189 -0
  318. data/rbi/modern_treasury/models/account_detail_delete_params.rbi +81 -0
  319. data/rbi/modern_treasury/models/account_detail_list_params.rbi +59 -0
  320. data/rbi/modern_treasury/models/account_detail_retrieve_params.rbi +46 -0
  321. data/rbi/modern_treasury/models/accounts_type.rbi +24 -0
  322. data/rbi/{lib/modern_treasury → modern_treasury}/models/async_response.rbi +13 -3
  323. data/rbi/{lib/modern_treasury → modern_treasury}/models/bank_settings.rbi +35 -19
  324. data/rbi/modern_treasury/models/bulk_request.rbi +226 -0
  325. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +7094 -0
  326. data/rbi/modern_treasury/models/bulk_request_list_params.rbi +259 -0
  327. data/rbi/modern_treasury/models/bulk_request_retrieve_params.rbi +32 -0
  328. data/rbi/modern_treasury/models/bulk_result.rbi +413 -0
  329. data/rbi/modern_treasury/models/bulk_result_list_params.rbi +265 -0
  330. data/rbi/modern_treasury/models/bulk_result_retrieve_params.rbi +32 -0
  331. data/rbi/modern_treasury/models/client_ping_params.rbi +32 -0
  332. data/rbi/{lib/modern_treasury → modern_treasury}/models/connection.rbi +29 -18
  333. data/rbi/modern_treasury/models/connection_legal_entity.rbi +148 -0
  334. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +2006 -0
  335. data/rbi/modern_treasury/models/connection_legal_entity_list_params.rbi +137 -0
  336. data/rbi/modern_treasury/models/connection_legal_entity_retrieve_params.rbi +32 -0
  337. data/rbi/modern_treasury/models/connection_legal_entity_update_params.rbi +92 -0
  338. data/rbi/{lib/modern_treasury → modern_treasury}/models/connection_list_params.rbi +23 -14
  339. data/rbi/modern_treasury/models/counterparty.rbi +796 -0
  340. data/rbi/modern_treasury/models/counterparty_collect_account_params.rbi +291 -0
  341. data/rbi/modern_treasury/models/counterparty_collect_account_response.rbi +58 -0
  342. data/rbi/modern_treasury/models/counterparty_create_params.rbi +3441 -0
  343. data/rbi/modern_treasury/models/counterparty_delete_params.rbi +32 -0
  344. data/rbi/{lib/modern_treasury → modern_treasury}/models/counterparty_list_params.rbi +38 -19
  345. data/rbi/modern_treasury/models/counterparty_retrieve_params.rbi +32 -0
  346. data/rbi/{lib/modern_treasury → modern_treasury}/models/counterparty_update_params.rbi +34 -17
  347. data/rbi/modern_treasury/models/currency.rbi +207 -0
  348. data/rbi/modern_treasury/models/document.rbi +336 -0
  349. data/rbi/modern_treasury/models/document_create_params.rbi +159 -0
  350. data/rbi/modern_treasury/models/document_list_params.rbi +176 -0
  351. data/rbi/modern_treasury/models/document_retrieve_params.rbi +32 -0
  352. data/rbi/{lib/modern_treasury → modern_treasury}/models/event.rbi +29 -18
  353. data/rbi/{lib/modern_treasury → modern_treasury}/models/event_list_params.rbi +29 -18
  354. data/rbi/modern_treasury/models/event_retrieve_params.rbi +32 -0
  355. data/rbi/modern_treasury/models/expected_payment.rbi +387 -0
  356. data/rbi/{lib/modern_treasury → modern_treasury}/models/expected_payment_create_params.rbi +341 -157
  357. data/rbi/modern_treasury/models/expected_payment_delete_params.rbi +32 -0
  358. data/rbi/modern_treasury/models/expected_payment_list_params.rbi +380 -0
  359. data/rbi/modern_treasury/models/expected_payment_retrieve_params.rbi +32 -0
  360. data/rbi/modern_treasury/models/expected_payment_type.rbi +65 -0
  361. data/rbi/modern_treasury/models/expected_payment_update_params.rbi +289 -0
  362. data/rbi/modern_treasury/models/external_account.rbi +540 -0
  363. data/rbi/modern_treasury/models/external_account_complete_verification_params.rbi +44 -0
  364. data/rbi/modern_treasury/models/external_account_create_params.rbi +1156 -0
  365. data/rbi/modern_treasury/models/external_account_delete_params.rbi +32 -0
  366. data/rbi/{lib/modern_treasury → modern_treasury}/models/external_account_list_params.rbi +29 -16
  367. data/rbi/modern_treasury/models/external_account_retrieve_params.rbi +32 -0
  368. data/rbi/modern_treasury/models/external_account_type.rbi +39 -0
  369. data/rbi/modern_treasury/models/external_account_update_params.rbi +237 -0
  370. data/rbi/modern_treasury/models/external_account_verify_params.rbi +367 -0
  371. data/rbi/{lib/modern_treasury → modern_treasury}/models/external_account_verify_response.rbi +93 -71
  372. data/rbi/{lib/modern_treasury → modern_treasury}/models/foreign_exchange_quote.rbi +86 -51
  373. data/rbi/{lib/modern_treasury → modern_treasury}/models/foreign_exchange_quote_create_params.rbi +39 -22
  374. data/rbi/{lib/modern_treasury → modern_treasury}/models/foreign_exchange_quote_list_params.rbi +38 -20
  375. data/rbi/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbi +32 -0
  376. data/rbi/modern_treasury/models/incoming_payment_detail.rbi +597 -0
  377. data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +279 -0
  378. data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +299 -0
  379. data/rbi/modern_treasury/models/incoming_payment_detail_retrieve_params.rbi +32 -0
  380. data/rbi/{lib/modern_treasury → modern_treasury}/models/incoming_payment_detail_update_params.rbi +25 -6
  381. data/rbi/modern_treasury/models/internal_account.rbi +407 -0
  382. data/rbi/{lib/modern_treasury → modern_treasury}/models/internal_account_create_params.rbi +115 -56
  383. data/rbi/modern_treasury/models/internal_account_list_params.rbi +315 -0
  384. data/rbi/modern_treasury/models/internal_account_retrieve_params.rbi +32 -0
  385. data/rbi/{lib/modern_treasury → modern_treasury}/models/internal_account_update_params.rbi +31 -16
  386. data/rbi/{lib/modern_treasury → modern_treasury}/models/internal_accounts/balance_report.rbi +155 -82
  387. data/rbi/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +288 -0
  388. data/rbi/modern_treasury/models/internal_accounts/balance_report_delete_params.rbi +43 -0
  389. data/rbi/{lib/modern_treasury → modern_treasury}/models/internal_accounts/balance_report_list_params.rbi +47 -33
  390. data/rbi/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbi +43 -0
  391. data/rbi/modern_treasury/models/invoice.rbi +822 -0
  392. data/rbi/modern_treasury/models/invoice_add_payment_order_params.rbi +38 -0
  393. data/rbi/{lib/modern_treasury → modern_treasury}/models/invoice_create_params.rbi +416 -192
  394. data/rbi/{lib/modern_treasury → modern_treasury}/models/invoice_list_params.rbi +80 -37
  395. data/rbi/modern_treasury/models/invoice_retrieve_params.rbi +32 -0
  396. data/rbi/{lib/modern_treasury → modern_treasury}/models/invoice_update_params.rbi +416 -192
  397. data/rbi/{lib/modern_treasury → modern_treasury}/models/invoices/invoice_line_item.rbi +51 -24
  398. data/rbi/{lib/modern_treasury → modern_treasury}/models/invoices/line_item_create_params.rbi +41 -18
  399. data/rbi/modern_treasury/models/invoices/line_item_delete_params.rbi +43 -0
  400. data/rbi/{lib/modern_treasury → modern_treasury}/models/invoices/line_item_list_params.rbi +21 -13
  401. data/rbi/modern_treasury/models/invoices/line_item_retrieve_params.rbi +43 -0
  402. data/rbi/{lib/modern_treasury → modern_treasury}/models/invoices/line_item_update_params.rbi +42 -19
  403. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger.rbi +27 -17
  404. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account.rbi +244 -120
  405. data/rbi/modern_treasury/models/ledger_account_balance_monitor.rbi +551 -0
  406. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_balance_monitor_create_params.rbi +69 -29
  407. data/rbi/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbi +32 -0
  408. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_balance_monitor_list_params.rbi +28 -15
  409. data/rbi/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbi +32 -0
  410. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_balance_monitor_update_params.rbi +28 -13
  411. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_category.rbi +202 -115
  412. data/rbi/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbi +38 -0
  413. data/rbi/modern_treasury/models/ledger_account_category_add_nested_category_params.rbi +38 -0
  414. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_category_create_params.rbi +40 -21
  415. data/rbi/modern_treasury/models/ledger_account_category_delete_params.rbi +32 -0
  416. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_category_list_params.rbi +64 -35
  417. data/rbi/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbi +38 -0
  418. data/rbi/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbi +38 -0
  419. data/rbi/modern_treasury/models/ledger_account_category_retrieve_params.rbi +101 -0
  420. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_category_update_params.rbi +31 -14
  421. data/rbi/modern_treasury/models/ledger_account_create_params.rbi +200 -0
  422. data/rbi/modern_treasury/models/ledger_account_delete_params.rbi +32 -0
  423. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_list_params.rbi +182 -87
  424. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_retrieve_params.rbi +62 -31
  425. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_settlement.rbi +104 -39
  426. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_settlement_create_params.rbi +81 -29
  427. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_settlement_list_params.rbi +41 -21
  428. data/rbi/modern_treasury/models/ledger_account_settlement_retrieve_params.rbi +32 -0
  429. data/rbi/modern_treasury/models/ledger_account_settlement_update_params.rbi +121 -0
  430. data/rbi/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbi +50 -0
  431. data/rbi/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbi +50 -0
  432. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_statement_create_params.rbi +34 -16
  433. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_statement_create_response.rbi +389 -222
  434. data/rbi/modern_treasury/models/ledger_account_statement_retrieve_params.rbi +32 -0
  435. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_statement_retrieve_response.rbi +389 -222
  436. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_update_params.rbi +31 -14
  437. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_create_params.rbi +31 -14
  438. data/rbi/modern_treasury/models/ledger_delete_params.rbi +32 -0
  439. data/rbi/modern_treasury/models/ledger_entry.rbi +519 -0
  440. data/rbi/modern_treasury/models/ledger_entry_list_params.rbi +474 -0
  441. data/rbi/modern_treasury/models/ledger_entry_retrieve_params.rbi +51 -0
  442. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_entry_update_params.rbi +25 -6
  443. data/rbi/modern_treasury/models/ledger_event_handler.rbi +322 -0
  444. data/rbi/modern_treasury/models/ledger_event_handler_create_params.rbi +303 -0
  445. data/rbi/modern_treasury/models/ledger_event_handler_delete_params.rbi +32 -0
  446. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_event_handler_list_params.rbi +28 -15
  447. data/rbi/modern_treasury/models/ledger_event_handler_retrieve_params.rbi +32 -0
  448. data/rbi/modern_treasury/models/ledger_event_handler_variable.rbi +98 -0
  449. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_list_params.rbi +30 -15
  450. data/rbi/modern_treasury/models/ledger_retrieve_params.rbi +32 -0
  451. data/rbi/modern_treasury/models/ledger_transaction.rbi +298 -0
  452. data/rbi/modern_treasury/models/ledger_transaction_create_params.rbi +410 -0
  453. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_transaction_create_partial_post_params.rbi +95 -52
  454. data/rbi/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +249 -0
  455. data/rbi/modern_treasury/models/ledger_transaction_list_params.rbi +506 -0
  456. data/rbi/modern_treasury/models/ledger_transaction_retrieve_params.rbi +32 -0
  457. data/rbi/modern_treasury/models/ledger_transaction_update_params.rbi +396 -0
  458. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_transactions/ledger_transaction_version.rbi +358 -214
  459. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_transactions/version_list_params.rbi +35 -17
  460. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_update_params.rbi +31 -14
  461. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledgerable_event.rbi +36 -19
  462. data/rbi/{lib/modern_treasury → modern_treasury}/models/ledgerable_event_create_params.rbi +34 -15
  463. data/rbi/modern_treasury/models/ledgerable_event_retrieve_params.rbi +32 -0
  464. data/rbi/modern_treasury/models/legal_entity.rbi +852 -0
  465. data/rbi/modern_treasury/models/legal_entity_association.rbi +1089 -0
  466. data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +1033 -0
  467. data/rbi/{lib/modern_treasury → modern_treasury}/models/legal_entity_compliance_detail.rbi +38 -21
  468. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +1894 -0
  469. data/rbi/modern_treasury/models/legal_entity_industry_classification.rbi +194 -0
  470. data/rbi/modern_treasury/models/legal_entity_list_params.rbi +133 -0
  471. data/rbi/modern_treasury/models/legal_entity_retrieve_params.rbi +32 -0
  472. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +805 -0
  473. data/rbi/modern_treasury/models/line_item.rbi +217 -0
  474. data/rbi/modern_treasury/models/line_item_list_params.rbi +94 -0
  475. data/rbi/modern_treasury/models/line_item_retrieve_params.rbi +86 -0
  476. data/rbi/modern_treasury/models/line_item_update_params.rbi +98 -0
  477. data/rbi/{lib/modern_treasury → modern_treasury}/models/paper_item.rbi +69 -39
  478. data/rbi/{lib/modern_treasury → modern_treasury}/models/paper_item_list_params.rbi +29 -16
  479. data/rbi/modern_treasury/models/paper_item_retrieve_params.rbi +32 -0
  480. data/rbi/modern_treasury/models/payment_flow.rbi +387 -0
  481. data/rbi/modern_treasury/models/payment_flow_create_params.rbi +136 -0
  482. data/rbi/{lib/modern_treasury → modern_treasury}/models/payment_flow_list_params.rbi +28 -19
  483. data/rbi/modern_treasury/models/payment_flow_retrieve_params.rbi +32 -0
  484. data/rbi/modern_treasury/models/payment_flow_update_params.rbi +76 -0
  485. data/rbi/modern_treasury/models/payment_order.rbi +1477 -0
  486. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +2433 -0
  487. data/rbi/modern_treasury/models/payment_order_create_params.rbi +2591 -0
  488. data/rbi/modern_treasury/models/payment_order_list_params.rbi +522 -0
  489. data/rbi/modern_treasury/models/payment_order_retrieve_params.rbi +32 -0
  490. data/rbi/modern_treasury/models/payment_order_subtype.rbi +66 -0
  491. data/rbi/modern_treasury/models/payment_order_type.rbi +59 -0
  492. data/rbi/modern_treasury/models/payment_order_update_params.rbi +2096 -0
  493. data/rbi/modern_treasury/models/payment_orders/reversal.rbi +221 -0
  494. data/rbi/{lib/modern_treasury → modern_treasury}/models/payment_orders/reversal_create_params.rbi +228 -126
  495. data/rbi/{lib/modern_treasury → modern_treasury}/models/payment_orders/reversal_list_params.rbi +21 -13
  496. data/rbi/modern_treasury/models/payment_orders/reversal_retrieve_params.rbi +43 -0
  497. data/rbi/modern_treasury/models/payment_reference.rbi +544 -0
  498. data/rbi/modern_treasury/models/payment_reference_list_params.rbi +144 -0
  499. data/rbi/modern_treasury/models/payment_reference_retireve_params.rbi +32 -0
  500. data/rbi/modern_treasury/models/payment_reference_retrieve_params.rbi +32 -0
  501. data/rbi/{lib/modern_treasury → modern_treasury}/models/ping_response.rbi +10 -3
  502. data/rbi/modern_treasury/models/reconciliation_rule.rbi +272 -0
  503. data/rbi/modern_treasury/models/return_create_params.rbi +265 -0
  504. data/rbi/modern_treasury/models/return_list_params.rbi +162 -0
  505. data/rbi/modern_treasury/models/return_object.rbi +945 -0
  506. data/rbi/modern_treasury/models/return_retrieve_params.rbi +32 -0
  507. data/rbi/modern_treasury/models/routing_detail.rbi +506 -0
  508. data/rbi/modern_treasury/models/routing_detail_create_params.rbi +435 -0
  509. data/rbi/modern_treasury/models/routing_detail_delete_params.rbi +81 -0
  510. data/rbi/modern_treasury/models/routing_detail_list_params.rbi +59 -0
  511. data/rbi/modern_treasury/models/routing_detail_retrieve_params.rbi +46 -0
  512. data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +474 -0
  513. data/rbi/modern_treasury/models/transaction.rbi +572 -0
  514. data/rbi/modern_treasury/models/transaction_create_params.rbi +326 -0
  515. data/rbi/modern_treasury/models/transaction_delete_params.rbi +32 -0
  516. data/rbi/modern_treasury/models/transaction_direction.rbi +25 -0
  517. data/rbi/{lib/modern_treasury → modern_treasury}/models/transaction_list_params.rbi +47 -25
  518. data/rbi/modern_treasury/models/transaction_retrieve_params.rbi +32 -0
  519. data/rbi/{lib/modern_treasury → modern_treasury}/models/transaction_update_params.rbi +25 -6
  520. data/rbi/{lib/modern_treasury → modern_treasury}/models/transactions/line_item_create_params.rbi +31 -14
  521. data/rbi/modern_treasury/models/transactions/line_item_delete_params.rbi +34 -0
  522. data/rbi/modern_treasury/models/transactions/line_item_list_params.rbi +125 -0
  523. data/rbi/modern_treasury/models/transactions/line_item_retrieve_params.rbi +34 -0
  524. data/rbi/modern_treasury/models/transactions/transaction_line_item.rbi +276 -0
  525. data/rbi/modern_treasury/models/validation_validate_routing_number_params.rbi +199 -0
  526. data/rbi/{lib/modern_treasury → modern_treasury}/models/virtual_account.rbi +57 -29
  527. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +917 -0
  528. data/rbi/modern_treasury/models/virtual_account_delete_params.rbi +32 -0
  529. data/rbi/{lib/modern_treasury → modern_treasury}/models/virtual_account_list_params.rbi +28 -16
  530. data/rbi/modern_treasury/models/virtual_account_retrieve_params.rbi +32 -0
  531. data/rbi/{lib/modern_treasury → modern_treasury}/models/virtual_account_update_params.rbi +22 -14
  532. data/rbi/modern_treasury/models/wealth_and_employment_details.rbi +812 -0
  533. data/rbi/modern_treasury/models.rbi +489 -0
  534. data/rbi/{lib/modern_treasury → modern_treasury}/request_options.rbi +20 -5
  535. data/rbi/{lib/modern_treasury → modern_treasury}/resources/account_collection_flows.rbi +29 -18
  536. data/rbi/{lib/modern_treasury → modern_treasury}/resources/account_details.rbi +30 -22
  537. data/rbi/modern_treasury/resources/bulk_requests.rbi +97 -0
  538. data/rbi/{lib/modern_treasury → modern_treasury}/resources/bulk_results.rbi +17 -12
  539. data/rbi/{lib/modern_treasury → modern_treasury}/resources/connection_legal_entities.rbi +29 -22
  540. data/rbi/{lib/modern_treasury → modern_treasury}/resources/connections.rbi +7 -5
  541. data/rbi/{lib/modern_treasury → modern_treasury}/resources/counterparties.rbi +47 -32
  542. data/rbi/{lib/modern_treasury → modern_treasury}/resources/documents.rbi +22 -16
  543. data/rbi/{lib/modern_treasury → modern_treasury}/resources/events.rbi +12 -9
  544. data/rbi/{lib/modern_treasury → modern_treasury}/resources/expected_payments.rbi +57 -37
  545. data/rbi/{lib/modern_treasury → modern_treasury}/resources/external_accounts.rbi +77 -70
  546. data/rbi/{lib/modern_treasury → modern_treasury}/resources/foreign_exchange_quotes.rbi +20 -14
  547. data/rbi/{lib/modern_treasury → modern_treasury}/resources/incoming_payment_details.rbi +32 -22
  548. data/rbi/{lib/modern_treasury → modern_treasury}/resources/internal_accounts/balance_reports.rbi +33 -44
  549. data/rbi/{lib/modern_treasury → modern_treasury}/resources/internal_accounts.rbi +34 -25
  550. data/rbi/{lib/modern_treasury → modern_treasury}/resources/invoices/line_items.rbi +30 -45
  551. data/rbi/{lib/modern_treasury → modern_treasury}/resources/invoices.rbi +80 -66
  552. data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_account_balance_monitors.rbi +32 -24
  553. data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_account_categories.rbi +53 -45
  554. data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_account_settlements/account_entries.rbi +12 -19
  555. data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_account_settlements.rbi +36 -19
  556. data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_account_statements.rbi +13 -8
  557. data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_accounts.rbi +39 -37
  558. data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_entries.rbi +20 -16
  559. data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_event_handlers.rbi +36 -29
  560. data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_transactions/versions.rbi +10 -11
  561. data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_transactions.rbi +62 -51
  562. data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledgerable_events.rbi +12 -9
  563. data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledgers.rbi +27 -21
  564. data/rbi/{lib/modern_treasury → modern_treasury}/resources/legal_entities.rbi +82 -45
  565. data/rbi/{lib/modern_treasury → modern_treasury}/resources/legal_entity_associations.rbi +13 -10
  566. data/rbi/{lib/modern_treasury → modern_treasury}/resources/line_items.rbi +23 -16
  567. data/rbi/{lib/modern_treasury → modern_treasury}/resources/paper_items.rbi +12 -9
  568. data/rbi/{lib/modern_treasury → modern_treasury}/resources/payment_flows.rbi +25 -19
  569. data/rbi/{lib/modern_treasury → modern_treasury}/resources/payment_orders/reversals.rbi +24 -32
  570. data/rbi/{lib/modern_treasury → modern_treasury}/resources/payment_orders.rbi +114 -80
  571. data/rbi/{lib/modern_treasury → modern_treasury}/resources/payment_references.rbi +15 -9
  572. data/rbi/{lib/modern_treasury → modern_treasury}/resources/returns.rbi +22 -16
  573. data/rbi/{lib/modern_treasury → modern_treasury}/resources/routing_details.rbi +34 -23
  574. data/rbi/{lib/modern_treasury → modern_treasury}/resources/transactions/line_items.rbi +26 -36
  575. data/rbi/{lib/modern_treasury → modern_treasury}/resources/transactions.rbi +29 -22
  576. data/rbi/{lib/modern_treasury → modern_treasury}/resources/validations.rbi +9 -6
  577. data/rbi/{lib/modern_treasury → modern_treasury}/resources/virtual_accounts.rbi +38 -36
  578. data/sig/modern_treasury/client.rbs +1 -1
  579. data/sig/modern_treasury/file_part.rbs +21 -0
  580. data/sig/modern_treasury/internal/page.rbs +1 -1
  581. data/sig/modern_treasury/internal/transport/base_client.rbs +25 -4
  582. data/sig/modern_treasury/internal/transport/pooled_net_requester.rbs +2 -0
  583. data/sig/modern_treasury/internal/type/array_of.rbs +2 -0
  584. data/sig/modern_treasury/internal/type/base_model.rbs +17 -1
  585. data/sig/modern_treasury/internal/type/base_page.rbs +1 -1
  586. data/sig/modern_treasury/internal/type/converter.rbs +2 -0
  587. data/sig/modern_treasury/internal/type/enum.rbs +3 -2
  588. data/sig/modern_treasury/internal/type/{io_like.rbs → file_input.rbs} +1 -1
  589. data/sig/modern_treasury/internal/type/hash_of.rbs +2 -0
  590. data/sig/modern_treasury/internal/type/request_parameters.rbs +5 -1
  591. data/sig/modern_treasury/internal/type/union.rbs +3 -0
  592. data/sig/modern_treasury/internal/util.rbs +29 -12
  593. data/sig/modern_treasury/internal.rbs +2 -0
  594. data/sig/modern_treasury/models/account_collection_flow.rbs +16 -18
  595. data/sig/modern_treasury/models/account_collection_flow_create_params.rbs +6 -8
  596. data/sig/modern_treasury/models/account_collection_flow_list_params.rbs +0 -2
  597. data/sig/modern_treasury/models/account_collection_flow_retrieve_params.rbs +0 -2
  598. data/sig/modern_treasury/models/account_collection_flow_update_params.rbs +0 -2
  599. data/sig/modern_treasury/models/account_detail.rbs +4 -6
  600. data/sig/modern_treasury/models/account_detail_create_params.rbs +0 -2
  601. data/sig/modern_treasury/models/account_detail_delete_params.rbs +0 -2
  602. data/sig/modern_treasury/models/account_detail_list_params.rbs +0 -2
  603. data/sig/modern_treasury/models/account_detail_retrieve_params.rbs +0 -2
  604. data/sig/modern_treasury/models/async_response.rbs +0 -2
  605. data/sig/modern_treasury/models/bank_settings.rbs +0 -2
  606. data/sig/modern_treasury/models/bulk_request.rbs +12 -14
  607. data/sig/modern_treasury/models/bulk_request_create_params.rbs +312 -378
  608. data/sig/modern_treasury/models/bulk_request_list_params.rbs +0 -2
  609. data/sig/modern_treasury/models/bulk_request_retrieve_params.rbs +0 -2
  610. data/sig/modern_treasury/models/bulk_result.rbs +24 -30
  611. data/sig/modern_treasury/models/bulk_result_list_params.rbs +0 -2
  612. data/sig/modern_treasury/models/bulk_result_retrieve_params.rbs +0 -2
  613. data/sig/modern_treasury/models/client_ping_params.rbs +0 -2
  614. data/sig/modern_treasury/models/connection.rbs +0 -2
  615. data/sig/modern_treasury/models/connection_legal_entity.rbs +4 -6
  616. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +123 -143
  617. data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +0 -2
  618. data/sig/modern_treasury/models/connection_legal_entity_retrieve_params.rbs +0 -2
  619. data/sig/modern_treasury/models/connection_legal_entity_update_params.rbs +0 -2
  620. data/sig/modern_treasury/models/connection_list_params.rbs +0 -2
  621. data/sig/modern_treasury/models/counterparty.rbs +43 -51
  622. data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +6 -8
  623. data/sig/modern_treasury/models/counterparty_collect_account_response.rbs +0 -2
  624. data/sig/modern_treasury/models/counterparty_create_params.rbs +194 -230
  625. data/sig/modern_treasury/models/counterparty_delete_params.rbs +0 -2
  626. data/sig/modern_treasury/models/counterparty_list_params.rbs +0 -2
  627. data/sig/modern_treasury/models/counterparty_retrieve_params.rbs +0 -2
  628. data/sig/modern_treasury/models/counterparty_update_params.rbs +0 -2
  629. data/sig/modern_treasury/models/document.rbs +10 -16
  630. data/sig/modern_treasury/models/document_create_params.rbs +3 -5
  631. data/sig/modern_treasury/models/document_list_params.rbs +0 -2
  632. data/sig/modern_treasury/models/document_retrieve_params.rbs +0 -2
  633. data/sig/modern_treasury/models/event.rbs +0 -2
  634. data/sig/modern_treasury/models/event_list_params.rbs +0 -2
  635. data/sig/modern_treasury/models/event_retrieve_params.rbs +0 -2
  636. data/sig/modern_treasury/models/expected_payment.rbs +15 -17
  637. data/sig/modern_treasury/models/expected_payment_create_params.rbs +28 -36
  638. data/sig/modern_treasury/models/expected_payment_delete_params.rbs +0 -2
  639. data/sig/modern_treasury/models/expected_payment_list_params.rbs +0 -2
  640. data/sig/modern_treasury/models/expected_payment_retrieve_params.rbs +0 -2
  641. data/sig/modern_treasury/models/expected_payment_update_params.rbs +3 -5
  642. data/sig/modern_treasury/models/external_account.rbs +28 -34
  643. data/sig/modern_treasury/models/external_account_complete_verification_params.rbs +0 -2
  644. data/sig/modern_treasury/models/external_account_create_params.rbs +53 -65
  645. data/sig/modern_treasury/models/external_account_delete_params.rbs +0 -2
  646. data/sig/modern_treasury/models/external_account_list_params.rbs +0 -2
  647. data/sig/modern_treasury/models/external_account_retrieve_params.rbs +0 -2
  648. data/sig/modern_treasury/models/external_account_update_params.rbs +5 -9
  649. data/sig/modern_treasury/models/external_account_verify_params.rbs +0 -2
  650. data/sig/modern_treasury/models/external_account_verify_response.rbs +2 -4
  651. data/sig/modern_treasury/models/foreign_exchange_quote.rbs +3 -7
  652. data/sig/modern_treasury/models/foreign_exchange_quote_create_params.rbs +0 -2
  653. data/sig/modern_treasury/models/foreign_exchange_quote_list_params.rbs +0 -2
  654. data/sig/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbs +0 -2
  655. data/sig/modern_treasury/models/incoming_payment_detail.rbs +19 -21
  656. data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +0 -2
  657. data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +0 -2
  658. data/sig/modern_treasury/models/incoming_payment_detail_retrieve_params.rbs +0 -2
  659. data/sig/modern_treasury/models/incoming_payment_detail_update_params.rbs +0 -2
  660. data/sig/modern_treasury/models/internal_account.rbs +20 -24
  661. data/sig/modern_treasury/models/internal_account_create_params.rbs +5 -9
  662. data/sig/modern_treasury/models/internal_account_list_params.rbs +0 -2
  663. data/sig/modern_treasury/models/internal_account_retrieve_params.rbs +0 -2
  664. data/sig/modern_treasury/models/internal_account_update_params.rbs +0 -2
  665. data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +11 -15
  666. data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +7 -11
  667. data/sig/modern_treasury/models/internal_accounts/balance_report_delete_params.rbs +0 -2
  668. data/sig/modern_treasury/models/internal_accounts/balance_report_list_params.rbs +0 -2
  669. data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +0 -2
  670. data/sig/modern_treasury/models/invoice.rbs +34 -44
  671. data/sig/modern_treasury/models/invoice_add_payment_order_params.rbs +0 -2
  672. data/sig/modern_treasury/models/invoice_create_params.rbs +21 -33
  673. data/sig/modern_treasury/models/invoice_list_params.rbs +0 -2
  674. data/sig/modern_treasury/models/invoice_retrieve_params.rbs +0 -2
  675. data/sig/modern_treasury/models/invoice_update_params.rbs +21 -33
  676. data/sig/modern_treasury/models/invoices/invoice_line_item.rbs +0 -2
  677. data/sig/modern_treasury/models/invoices/line_item_create_params.rbs +0 -2
  678. data/sig/modern_treasury/models/invoices/line_item_delete_params.rbs +0 -2
  679. data/sig/modern_treasury/models/invoices/line_item_list_params.rbs +0 -2
  680. data/sig/modern_treasury/models/invoices/line_item_retrieve_params.rbs +0 -2
  681. data/sig/modern_treasury/models/invoices/line_item_update_params.rbs +0 -2
  682. data/sig/modern_treasury/models/ledger.rbs +0 -2
  683. data/sig/modern_treasury/models/ledger_account.rbs +16 -26
  684. data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +18 -32
  685. data/sig/modern_treasury/models/ledger_account_balance_monitor_create_params.rbs +3 -7
  686. data/sig/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbs +0 -2
  687. data/sig/modern_treasury/models/ledger_account_balance_monitor_list_params.rbs +0 -2
  688. data/sig/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbs +0 -2
  689. data/sig/modern_treasury/models/ledger_account_balance_monitor_update_params.rbs +0 -2
  690. data/sig/modern_treasury/models/ledger_account_category.rbs +12 -22
  691. data/sig/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbs +0 -2
  692. data/sig/modern_treasury/models/ledger_account_category_add_nested_category_params.rbs +0 -2
  693. data/sig/modern_treasury/models/ledger_account_category_create_params.rbs +0 -2
  694. data/sig/modern_treasury/models/ledger_account_category_delete_params.rbs +0 -2
  695. data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +5 -9
  696. data/sig/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbs +0 -2
  697. data/sig/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbs +0 -2
  698. data/sig/modern_treasury/models/ledger_account_category_retrieve_params.rbs +5 -9
  699. data/sig/modern_treasury/models/ledger_account_category_update_params.rbs +0 -2
  700. data/sig/modern_treasury/models/ledger_account_create_params.rbs +0 -2
  701. data/sig/modern_treasury/models/ledger_account_delete_params.rbs +0 -2
  702. data/sig/modern_treasury/models/ledger_account_list_params.rbs +20 -30
  703. data/sig/modern_treasury/models/ledger_account_retrieve_params.rbs +5 -11
  704. data/sig/modern_treasury/models/ledger_account_settlement.rbs +4 -6
  705. data/sig/modern_treasury/models/ledger_account_settlement_create_params.rbs +0 -2
  706. data/sig/modern_treasury/models/ledger_account_settlement_list_params.rbs +0 -2
  707. data/sig/modern_treasury/models/ledger_account_settlement_retrieve_params.rbs +0 -2
  708. data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +0 -2
  709. data/sig/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbs +0 -2
  710. data/sig/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbs +0 -2
  711. data/sig/modern_treasury/models/ledger_account_statement_create_params.rbs +0 -2
  712. data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +0 -18
  713. data/sig/modern_treasury/models/ledger_account_statement_retrieve_params.rbs +0 -2
  714. data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +0 -18
  715. data/sig/modern_treasury/models/ledger_account_update_params.rbs +0 -2
  716. data/sig/modern_treasury/models/ledger_create_params.rbs +0 -2
  717. data/sig/modern_treasury/models/ledger_delete_params.rbs +0 -2
  718. data/sig/modern_treasury/models/ledger_entry.rbs +16 -26
  719. data/sig/modern_treasury/models/ledger_entry_list_params.rbs +17 -21
  720. data/sig/modern_treasury/models/ledger_entry_retrieve_params.rbs +0 -2
  721. data/sig/modern_treasury/models/ledger_entry_update_params.rbs +0 -2
  722. data/sig/modern_treasury/models/ledger_event_handler.rbs +12 -20
  723. data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +12 -20
  724. data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +0 -2
  725. data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +0 -2
  726. data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +0 -2
  727. data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +3 -10
  728. data/sig/modern_treasury/models/ledger_list_params.rbs +0 -2
  729. data/sig/modern_treasury/models/ledger_retrieve_params.rbs +0 -2
  730. data/sig/modern_treasury/models/ledger_transaction.rbs +11 -13
  731. data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +3 -7
  732. data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +7 -11
  733. data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +0 -2
  734. data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +17 -21
  735. data/sig/modern_treasury/models/ledger_transaction_retrieve_params.rbs +0 -2
  736. data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +5 -9
  737. data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +27 -39
  738. data/sig/modern_treasury/models/ledger_transactions/version_list_params.rbs +0 -2
  739. data/sig/modern_treasury/models/ledger_update_params.rbs +0 -2
  740. data/sig/modern_treasury/models/ledgerable_event.rbs +0 -2
  741. data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +0 -2
  742. data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +0 -2
  743. data/sig/modern_treasury/models/legal_entity.rbs +44 -52
  744. data/sig/modern_treasury/models/legal_entity_association.rbs +48 -58
  745. data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +62 -72
  746. data/sig/modern_treasury/models/legal_entity_compliance_detail.rbs +0 -2
  747. data/sig/modern_treasury/models/legal_entity_create_params.rbs +104 -122
  748. data/sig/modern_treasury/models/legal_entity_industry_classification.rbs +4 -6
  749. data/sig/modern_treasury/models/legal_entity_list_params.rbs +0 -2
  750. data/sig/modern_treasury/models/legal_entity_retrieve_params.rbs +0 -2
  751. data/sig/modern_treasury/models/legal_entity_update_params.rbs +39 -47
  752. data/sig/modern_treasury/models/line_item.rbs +7 -11
  753. data/sig/modern_treasury/models/line_item_list_params.rbs +0 -2
  754. data/sig/modern_treasury/models/line_item_retrieve_params.rbs +0 -2
  755. data/sig/modern_treasury/models/line_item_update_params.rbs +0 -2
  756. data/sig/modern_treasury/models/paper_item.rbs +4 -6
  757. data/sig/modern_treasury/models/paper_item_list_params.rbs +0 -2
  758. data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +0 -2
  759. data/sig/modern_treasury/models/payment_flow.rbs +22 -24
  760. data/sig/modern_treasury/models/payment_flow_create_params.rbs +0 -2
  761. data/sig/modern_treasury/models/payment_flow_list_params.rbs +0 -2
  762. data/sig/modern_treasury/models/payment_flow_retrieve_params.rbs +0 -2
  763. data/sig/modern_treasury/models/payment_flow_update_params.rbs +0 -2
  764. data/sig/modern_treasury/models/payment_order.rbs +49 -58
  765. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +92 -114
  766. data/sig/modern_treasury/models/payment_order_create_params.rbs +104 -128
  767. data/sig/modern_treasury/models/payment_order_list_params.rbs +0 -2
  768. data/sig/modern_treasury/models/payment_order_retrieve_params.rbs +0 -2
  769. data/sig/modern_treasury/models/payment_order_update_params.rbs +72 -90
  770. data/sig/modern_treasury/models/payment_orders/reversal.rbs +8 -10
  771. data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +20 -26
  772. data/sig/modern_treasury/models/payment_orders/reversal_list_params.rbs +0 -2
  773. data/sig/modern_treasury/models/payment_orders/reversal_retrieve_params.rbs +0 -2
  774. data/sig/modern_treasury/models/payment_reference.rbs +8 -10
  775. data/sig/modern_treasury/models/payment_reference_list_params.rbs +0 -2
  776. data/sig/modern_treasury/models/payment_reference_retireve_params.rbs +0 -2
  777. data/sig/modern_treasury/models/payment_reference_retrieve_params.rbs +0 -2
  778. data/sig/modern_treasury/models/ping_response.rbs +0 -2
  779. data/sig/modern_treasury/models/reconciliation_rule.rbs +8 -10
  780. data/sig/modern_treasury/models/return_create_params.rbs +0 -2
  781. data/sig/modern_treasury/models/return_list_params.rbs +0 -2
  782. data/sig/modern_treasury/models/return_object.rbs +30 -34
  783. data/sig/modern_treasury/models/return_retrieve_params.rbs +0 -2
  784. data/sig/modern_treasury/models/routing_detail.rbs +11 -15
  785. data/sig/modern_treasury/models/routing_detail_create_params.rbs +0 -2
  786. data/sig/modern_treasury/models/routing_detail_delete_params.rbs +0 -2
  787. data/sig/modern_treasury/models/routing_detail_list_params.rbs +0 -2
  788. data/sig/modern_treasury/models/routing_detail_retrieve_params.rbs +0 -2
  789. data/sig/modern_treasury/models/routing_number_lookup_request.rbs +17 -21
  790. data/sig/modern_treasury/models/transaction.rbs +11 -15
  791. data/sig/modern_treasury/models/transaction_create_params.rbs +0 -2
  792. data/sig/modern_treasury/models/transaction_delete_params.rbs +0 -2
  793. data/sig/modern_treasury/models/transaction_list_params.rbs +0 -2
  794. data/sig/modern_treasury/models/transaction_retrieve_params.rbs +0 -2
  795. data/sig/modern_treasury/models/transaction_update_params.rbs +0 -2
  796. data/sig/modern_treasury/models/transactions/line_item_create_params.rbs +0 -2
  797. data/sig/modern_treasury/models/transactions/line_item_delete_params.rbs +0 -2
  798. data/sig/modern_treasury/models/transactions/line_item_list_params.rbs +0 -2
  799. data/sig/modern_treasury/models/transactions/line_item_retrieve_params.rbs +0 -2
  800. data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +8 -10
  801. data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +0 -2
  802. data/sig/modern_treasury/models/virtual_account.rbs +6 -8
  803. data/sig/modern_treasury/models/virtual_account_create_params.rbs +35 -43
  804. data/sig/modern_treasury/models/virtual_account_delete_params.rbs +0 -2
  805. data/sig/modern_treasury/models/virtual_account_list_params.rbs +0 -2
  806. data/sig/modern_treasury/models/virtual_account_retrieve_params.rbs +0 -2
  807. data/sig/modern_treasury/models/virtual_account_update_params.rbs +0 -2
  808. data/sig/modern_treasury/models/wealth_and_employment_details.rbs +24 -26
  809. data/sig/modern_treasury/models.rbs +403 -0
  810. data/sig/modern_treasury/request_options.rbs +1 -1
  811. data/sig/modern_treasury/resources/account_collection_flows.rbs +5 -5
  812. data/sig/modern_treasury/resources/account_details.rbs +3 -3
  813. data/sig/modern_treasury/resources/bulk_requests.rbs +4 -4
  814. data/sig/modern_treasury/resources/bulk_results.rbs +2 -2
  815. data/sig/modern_treasury/resources/connection_legal_entities.rbs +5 -5
  816. data/sig/modern_treasury/resources/connections.rbs +1 -1
  817. data/sig/modern_treasury/resources/counterparties.rbs +9 -9
  818. data/sig/modern_treasury/resources/documents.rbs +4 -4
  819. data/sig/modern_treasury/resources/events.rbs +2 -2
  820. data/sig/modern_treasury/resources/expected_payments.rbs +9 -9
  821. data/sig/modern_treasury/resources/external_accounts.rbs +11 -11
  822. data/sig/modern_treasury/resources/foreign_exchange_quotes.rbs +3 -3
  823. data/sig/modern_treasury/resources/incoming_payment_details.rbs +4 -4
  824. data/sig/modern_treasury/resources/internal_accounts/balance_reports.rbs +4 -4
  825. data/sig/modern_treasury/resources/internal_accounts.rbs +5 -5
  826. data/sig/modern_treasury/resources/invoices/line_items.rbs +5 -5
  827. data/sig/modern_treasury/resources/invoices.rbs +14 -14
  828. data/sig/modern_treasury/resources/ledger_account_balance_monitors.rbs +6 -6
  829. data/sig/modern_treasury/resources/ledger_account_categories.rbs +7 -7
  830. data/sig/modern_treasury/resources/ledger_account_settlements.rbs +4 -4
  831. data/sig/modern_treasury/resources/ledger_accounts.rbs +10 -10
  832. data/sig/modern_treasury/resources/ledger_entries.rbs +4 -4
  833. data/sig/modern_treasury/resources/ledger_event_handlers.rbs +7 -7
  834. data/sig/modern_treasury/resources/ledger_transactions/versions.rbs +1 -1
  835. data/sig/modern_treasury/resources/ledger_transactions.rbs +10 -10
  836. data/sig/modern_treasury/resources/ledgerable_events.rbs +2 -2
  837. data/sig/modern_treasury/resources/ledgers.rbs +5 -5
  838. data/sig/modern_treasury/resources/legal_entities.rbs +19 -19
  839. data/sig/modern_treasury/resources/legal_entity_associations.rbs +3 -3
  840. data/sig/modern_treasury/resources/line_items.rbs +3 -3
  841. data/sig/modern_treasury/resources/paper_items.rbs +2 -2
  842. data/sig/modern_treasury/resources/payment_flows.rbs +4 -4
  843. data/sig/modern_treasury/resources/payment_orders/reversals.rbs +4 -4
  844. data/sig/modern_treasury/resources/payment_orders.rbs +17 -17
  845. data/sig/modern_treasury/resources/payment_references.rbs +2 -2
  846. data/sig/modern_treasury/resources/returns.rbs +3 -3
  847. data/sig/modern_treasury/resources/routing_details.rbs +3 -3
  848. data/sig/modern_treasury/resources/transactions/line_items.rbs +3 -3
  849. data/sig/modern_treasury/resources/transactions.rbs +4 -4
  850. data/sig/modern_treasury/resources/validations.rbs +1 -1
  851. data/sig/modern_treasury/resources/virtual_accounts.rbs +8 -8
  852. metadata +297 -291
  853. data/rbi/lib/modern_treasury/internal/transport/base_client.rbi +0 -199
  854. data/rbi/lib/modern_treasury/internal/type/base_model.rbi +0 -203
  855. data/rbi/lib/modern_treasury/internal/type/request_parameters.rbi +0 -21
  856. data/rbi/lib/modern_treasury/internal/type/union.rbi +0 -77
  857. data/rbi/lib/modern_treasury/internal/util.rbi +0 -300
  858. data/rbi/lib/modern_treasury/models/account_collection_flow.rbi +0 -197
  859. data/rbi/lib/modern_treasury/models/account_collection_flow_create_params.rbi +0 -117
  860. data/rbi/lib/modern_treasury/models/account_collection_flow_retrieve_params.rbi +0 -19
  861. data/rbi/lib/modern_treasury/models/account_collection_flow_update_params.rbi +0 -54
  862. data/rbi/lib/modern_treasury/models/account_detail.rbi +0 -111
  863. data/rbi/lib/modern_treasury/models/account_detail_create_params.rbi +0 -103
  864. data/rbi/lib/modern_treasury/models/account_detail_delete_params.rbi +0 -53
  865. data/rbi/lib/modern_treasury/models/account_detail_list_params.rbi +0 -46
  866. data/rbi/lib/modern_treasury/models/account_detail_retrieve_params.rbi +0 -38
  867. data/rbi/lib/modern_treasury/models/accounts_type.rbi +0 -18
  868. data/rbi/lib/modern_treasury/models/bulk_request.rbi +0 -160
  869. data/rbi/lib/modern_treasury/models/bulk_request_create_params.rbi +0 -6245
  870. data/rbi/lib/modern_treasury/models/bulk_request_list_params.rbi +0 -144
  871. data/rbi/lib/modern_treasury/models/bulk_request_retrieve_params.rbi +0 -19
  872. data/rbi/lib/modern_treasury/models/bulk_result.rbi +0 -285
  873. data/rbi/lib/modern_treasury/models/bulk_result_list_params.rbi +0 -154
  874. data/rbi/lib/modern_treasury/models/bulk_result_retrieve_params.rbi +0 -19
  875. data/rbi/lib/modern_treasury/models/client_ping_params.rbi +0 -19
  876. data/rbi/lib/modern_treasury/models/connection_legal_entity.rbi +0 -106
  877. data/rbi/lib/modern_treasury/models/connection_legal_entity_create_params.rbi +0 -1797
  878. data/rbi/lib/modern_treasury/models/connection_legal_entity_list_params.rbi +0 -90
  879. data/rbi/lib/modern_treasury/models/connection_legal_entity_retrieve_params.rbi +0 -19
  880. data/rbi/lib/modern_treasury/models/connection_legal_entity_update_params.rbi +0 -55
  881. data/rbi/lib/modern_treasury/models/counterparty.rbi +0 -591
  882. data/rbi/lib/modern_treasury/models/counterparty_collect_account_params.rbi +0 -158
  883. data/rbi/lib/modern_treasury/models/counterparty_collect_account_response.rbi +0 -29
  884. data/rbi/lib/modern_treasury/models/counterparty_create_params.rbi +0 -2902
  885. data/rbi/lib/modern_treasury/models/counterparty_delete_params.rbi +0 -19
  886. data/rbi/lib/modern_treasury/models/counterparty_retrieve_params.rbi +0 -19
  887. data/rbi/lib/modern_treasury/models/currency.rbi +0 -206
  888. data/rbi/lib/modern_treasury/models/document.rbi +0 -234
  889. data/rbi/lib/modern_treasury/models/document_create_params.rbi +0 -92
  890. data/rbi/lib/modern_treasury/models/document_list_params.rbi +0 -109
  891. data/rbi/lib/modern_treasury/models/document_retrieve_params.rbi +0 -19
  892. data/rbi/lib/modern_treasury/models/event_retrieve_params.rbi +0 -19
  893. data/rbi/lib/modern_treasury/models/expected_payment.rbi +0 -267
  894. data/rbi/lib/modern_treasury/models/expected_payment_delete_params.rbi +0 -19
  895. data/rbi/lib/modern_treasury/models/expected_payment_list_params.rbi +0 -192
  896. data/rbi/lib/modern_treasury/models/expected_payment_retrieve_params.rbi +0 -19
  897. data/rbi/lib/modern_treasury/models/expected_payment_type.rbi +0 -49
  898. data/rbi/lib/modern_treasury/models/expected_payment_update_params.rbi +0 -196
  899. data/rbi/lib/modern_treasury/models/external_account.rbi +0 -403
  900. data/rbi/lib/modern_treasury/models/external_account_complete_verification_params.rbi +0 -28
  901. data/rbi/lib/modern_treasury/models/external_account_create_params.rbi +0 -986
  902. data/rbi/lib/modern_treasury/models/external_account_delete_params.rbi +0 -19
  903. data/rbi/lib/modern_treasury/models/external_account_retrieve_params.rbi +0 -19
  904. data/rbi/lib/modern_treasury/models/external_account_type.rbi +0 -26
  905. data/rbi/lib/modern_treasury/models/external_account_update_params.rbi +0 -170
  906. data/rbi/lib/modern_treasury/models/external_account_verify_params.rbi +0 -161
  907. data/rbi/lib/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbi +0 -19
  908. data/rbi/lib/modern_treasury/models/incoming_payment_detail.rbi +0 -436
  909. data/rbi/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +0 -170
  910. data/rbi/lib/modern_treasury/models/incoming_payment_detail_list_params.rbi +0 -169
  911. data/rbi/lib/modern_treasury/models/incoming_payment_detail_retrieve_params.rbi +0 -19
  912. data/rbi/lib/modern_treasury/models/internal_account.rbi +0 -294
  913. data/rbi/lib/modern_treasury/models/internal_account_list_params.rbi +0 -154
  914. data/rbi/lib/modern_treasury/models/internal_account_retrieve_params.rbi +0 -19
  915. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +0 -231
  916. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_delete_params.rbi +0 -29
  917. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbi +0 -29
  918. data/rbi/lib/modern_treasury/models/invoice.rbi +0 -634
  919. data/rbi/lib/modern_treasury/models/invoice_add_payment_order_params.rbi +0 -25
  920. data/rbi/lib/modern_treasury/models/invoice_retrieve_params.rbi +0 -19
  921. data/rbi/lib/modern_treasury/models/invoices/line_item_delete_params.rbi +0 -27
  922. data/rbi/lib/modern_treasury/models/invoices/line_item_retrieve_params.rbi +0 -27
  923. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor.rbi +0 -438
  924. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbi +0 -19
  925. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbi +0 -19
  926. data/rbi/lib/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbi +0 -25
  927. data/rbi/lib/modern_treasury/models/ledger_account_category_add_nested_category_params.rbi +0 -25
  928. data/rbi/lib/modern_treasury/models/ledger_account_category_delete_params.rbi +0 -19
  929. data/rbi/lib/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbi +0 -25
  930. data/rbi/lib/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbi +0 -25
  931. data/rbi/lib/modern_treasury/models/ledger_account_category_retrieve_params.rbi +0 -73
  932. data/rbi/lib/modern_treasury/models/ledger_account_create_params.rbi +0 -142
  933. data/rbi/lib/modern_treasury/models/ledger_account_delete_params.rbi +0 -19
  934. data/rbi/lib/modern_treasury/models/ledger_account_settlement_retrieve_params.rbi +0 -19
  935. data/rbi/lib/modern_treasury/models/ledger_account_settlement_update_params.rbi +0 -76
  936. data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbi +0 -35
  937. data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbi +0 -35
  938. data/rbi/lib/modern_treasury/models/ledger_account_statement_retrieve_params.rbi +0 -19
  939. data/rbi/lib/modern_treasury/models/ledger_delete_params.rbi +0 -19
  940. data/rbi/lib/modern_treasury/models/ledger_entry.rbi +0 -410
  941. data/rbi/lib/modern_treasury/models/ledger_entry_list_params.rbi +0 -334
  942. data/rbi/lib/modern_treasury/models/ledger_entry_retrieve_params.rbi +0 -30
  943. data/rbi/lib/modern_treasury/models/ledger_event_handler.rbi +0 -226
  944. data/rbi/lib/modern_treasury/models/ledger_event_handler_create_params.rbi +0 -207
  945. data/rbi/lib/modern_treasury/models/ledger_event_handler_delete_params.rbi +0 -19
  946. data/rbi/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rbi +0 -19
  947. data/rbi/lib/modern_treasury/models/ledger_event_handler_variable.rbi +0 -55
  948. data/rbi/lib/modern_treasury/models/ledger_retrieve_params.rbi +0 -19
  949. data/rbi/lib/modern_treasury/models/ledger_transaction.rbi +0 -203
  950. data/rbi/lib/modern_treasury/models/ledger_transaction_create_params.rbi +0 -283
  951. data/rbi/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +0 -192
  952. data/rbi/lib/modern_treasury/models/ledger_transaction_list_params.rbi +0 -365
  953. data/rbi/lib/modern_treasury/models/ledger_transaction_retrieve_params.rbi +0 -19
  954. data/rbi/lib/modern_treasury/models/ledger_transaction_update_params.rbi +0 -274
  955. data/rbi/lib/modern_treasury/models/ledgerable_event_retrieve_params.rbi +0 -19
  956. data/rbi/lib/modern_treasury/models/legal_entity.rbi +0 -562
  957. data/rbi/lib/modern_treasury/models/legal_entity_association.rbi +0 -901
  958. data/rbi/lib/modern_treasury/models/legal_entity_association_create_params.rbi +0 -915
  959. data/rbi/lib/modern_treasury/models/legal_entity_create_params.rbi +0 -1460
  960. data/rbi/lib/modern_treasury/models/legal_entity_industry_classification.rbi +0 -136
  961. data/rbi/lib/modern_treasury/models/legal_entity_list_params.rbi +0 -90
  962. data/rbi/lib/modern_treasury/models/legal_entity_retrieve_params.rbi +0 -19
  963. data/rbi/lib/modern_treasury/models/legal_entity_update_params.rbi +0 -509
  964. data/rbi/lib/modern_treasury/models/line_item.rbi +0 -156
  965. data/rbi/lib/modern_treasury/models/line_item_list_params.rbi +0 -62
  966. data/rbi/lib/modern_treasury/models/line_item_retrieve_params.rbi +0 -55
  967. data/rbi/lib/modern_treasury/models/line_item_update_params.rbi +0 -65
  968. data/rbi/lib/modern_treasury/models/paper_item_retrieve_params.rbi +0 -19
  969. data/rbi/lib/modern_treasury/models/payment_flow.rbi +0 -280
  970. data/rbi/lib/modern_treasury/models/payment_flow_create_params.rbi +0 -95
  971. data/rbi/lib/modern_treasury/models/payment_flow_retrieve_params.rbi +0 -19
  972. data/rbi/lib/modern_treasury/models/payment_flow_update_params.rbi +0 -50
  973. data/rbi/lib/modern_treasury/models/payment_order.rbi +0 -1145
  974. data/rbi/lib/modern_treasury/models/payment_order_create_async_params.rbi +0 -1984
  975. data/rbi/lib/modern_treasury/models/payment_order_create_params.rbi +0 -2083
  976. data/rbi/lib/modern_treasury/models/payment_order_list_params.rbi +0 -276
  977. data/rbi/lib/modern_treasury/models/payment_order_retrieve_params.rbi +0 -19
  978. data/rbi/lib/modern_treasury/models/payment_order_subtype.rbi +0 -50
  979. data/rbi/lib/modern_treasury/models/payment_order_type.rbi +0 -49
  980. data/rbi/lib/modern_treasury/models/payment_order_update_params.rbi +0 -1642
  981. data/rbi/lib/modern_treasury/models/payment_orders/reversal.rbi +0 -140
  982. data/rbi/lib/modern_treasury/models/payment_orders/reversal_retrieve_params.rbi +0 -27
  983. data/rbi/lib/modern_treasury/models/payment_reference.rbi +0 -378
  984. data/rbi/lib/modern_treasury/models/payment_reference_list_params.rbi +0 -105
  985. data/rbi/lib/modern_treasury/models/payment_reference_retireve_params.rbi +0 -19
  986. data/rbi/lib/modern_treasury/models/payment_reference_retrieve_params.rbi +0 -19
  987. data/rbi/lib/modern_treasury/models/reconciliation_rule.rbi +0 -160
  988. data/rbi/lib/modern_treasury/models/return_create_params.rbi +0 -164
  989. data/rbi/lib/modern_treasury/models/return_list_params.rbi +0 -108
  990. data/rbi/lib/modern_treasury/models/return_object.rbi +0 -799
  991. data/rbi/lib/modern_treasury/models/return_retrieve_params.rbi +0 -19
  992. data/rbi/lib/modern_treasury/models/routing_detail.rbi +0 -289
  993. data/rbi/lib/modern_treasury/models/routing_detail_create_params.rbi +0 -209
  994. data/rbi/lib/modern_treasury/models/routing_detail_delete_params.rbi +0 -53
  995. data/rbi/lib/modern_treasury/models/routing_detail_list_params.rbi +0 -46
  996. data/rbi/lib/modern_treasury/models/routing_detail_retrieve_params.rbi +0 -38
  997. data/rbi/lib/modern_treasury/models/routing_number_lookup_request.rbi +0 -295
  998. data/rbi/lib/modern_treasury/models/transaction.rbi +0 -388
  999. data/rbi/lib/modern_treasury/models/transaction_create_params.rbi +0 -158
  1000. data/rbi/lib/modern_treasury/models/transaction_delete_params.rbi +0 -19
  1001. data/rbi/lib/modern_treasury/models/transaction_direction.rbi +0 -19
  1002. data/rbi/lib/modern_treasury/models/transaction_retrieve_params.rbi +0 -19
  1003. data/rbi/lib/modern_treasury/models/transactions/line_item_delete_params.rbi +0 -21
  1004. data/rbi/lib/modern_treasury/models/transactions/line_item_list_params.rbi +0 -89
  1005. data/rbi/lib/modern_treasury/models/transactions/line_item_retrieve_params.rbi +0 -21
  1006. data/rbi/lib/modern_treasury/models/transactions/transaction_line_item.rbi +0 -213
  1007. data/rbi/lib/modern_treasury/models/validation_validate_routing_number_params.rbi +0 -176
  1008. data/rbi/lib/modern_treasury/models/virtual_account_create_params.rbi +0 -769
  1009. data/rbi/lib/modern_treasury/models/virtual_account_delete_params.rbi +0 -19
  1010. data/rbi/lib/modern_treasury/models/virtual_account_retrieve_params.rbi +0 -19
  1011. data/rbi/lib/modern_treasury/models/wealth_and_employment_details.rbi +0 -401
  1012. data/rbi/lib/modern_treasury/resources/bulk_requests.rbi +0 -89
  1013. /data/rbi/{lib/modern_treasury → modern_treasury}/version.rbi +0 -0
@@ -4,51 +4,51 @@ module ModernTreasury
4
4
  module Models
5
5
  # @see ModernTreasury::Resources::BulkRequests#create
6
6
  class BulkRequestCreateParams < ModernTreasury::Internal::Type::BaseModel
7
- # @!parse
8
- # extend ModernTreasury::Internal::Type::RequestParameters::Converter
7
+ extend ModernTreasury::Internal::Type::RequestParameters::Converter
9
8
  include ModernTreasury::Internal::Type::RequestParameters
10
9
 
11
10
  # @!attribute action_type
12
11
  # One of create, or update.
13
12
  #
14
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::ActionType]
15
- required :action_type, enum: -> { ModernTreasury::Models::BulkRequestCreateParams::ActionType }
13
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::ActionType]
14
+ required :action_type, enum: -> { ModernTreasury::BulkRequestCreateParams::ActionType }
16
15
 
17
16
  # @!attribute resource_type
18
17
  # One of payment_order, expected_payment, or ledger_transaction.
19
18
  #
20
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::ResourceType]
21
- required :resource_type, enum: -> { ModernTreasury::Models::BulkRequestCreateParams::ResourceType }
19
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::ResourceType]
20
+ required :resource_type, enum: -> { ModernTreasury::BulkRequestCreateParams::ResourceType }
22
21
 
23
22
  # @!attribute resources
24
23
  # An array of objects where each object contains the input params for a single
25
24
  # `action_type` request on a `resource_type` resource
26
25
  #
27
- # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ID, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID>]
26
+ # @return [Array<ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest, ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest, ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest, ModernTreasury::BulkRequestCreateParams::Resource::TransactionCreateRequest, ModernTreasury::BulkRequestCreateParams::Resource::ID, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID, ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID, ModernTreasury::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID, ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID>]
28
27
  required :resources,
29
- -> { ModernTreasury::Internal::Type::ArrayOf[union: ModernTreasury::Models::BulkRequestCreateParams::Resource] }
28
+ -> {
29
+ ModernTreasury::Internal::Type::ArrayOf[union: ModernTreasury::BulkRequestCreateParams::Resource]
30
+ }
30
31
 
31
- # @!attribute [r] metadata
32
+ # @!attribute metadata
32
33
  # Additional data represented as key-value pairs. Both the key and value must be
33
34
  # strings.
34
35
  #
35
36
  # @return [Hash{Symbol=>String}, nil]
36
37
  optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
37
38
 
38
- # @!parse
39
- # # @return [Hash{Symbol=>String}]
40
- # attr_writer :metadata
41
-
42
- # @!parse
43
- # # @param action_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::ActionType]
44
- # # @param resource_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::ResourceType]
45
- # # @param resources [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ID, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID>]
46
- # # @param metadata [Hash{Symbol=>String}]
47
- # # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
48
- # #
49
- # def initialize(action_type:, resource_type:, resources:, metadata: nil, request_options: {}, **) = super
50
-
51
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
39
+ # @!method initialize(action_type:, resource_type:, resources:, metadata: nil, request_options: {})
40
+ # Some parameter documentations has been truncated, see
41
+ # {ModernTreasury::Models::BulkRequestCreateParams} for more details.
42
+ #
43
+ # @param action_type [Symbol, ModernTreasury::BulkRequestCreateParams::ActionType] One of create, or update.
44
+ #
45
+ # @param resource_type [Symbol, ModernTreasury::BulkRequestCreateParams::ResourceType] One of payment_order, expected_payment, or ledger_transaction.
46
+ #
47
+ # @param resources [Array<ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest, ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest, ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest, ModernTreasury::BulkRequestCreateParams::Resource::TransactionCreateRequest, ModernTreasury::BulkRequestCreateParams::Resource::ID, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID, ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID, ModernTreasury::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID, ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID>] An array of objects where each object contains the input params for a single `ac
48
+ #
49
+ # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
50
+ #
51
+ # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
52
52
 
53
53
  # One of create, or update.
54
54
  module ActionType
@@ -58,11 +58,8 @@ module ModernTreasury
58
58
  UPDATE = :update
59
59
  DELETE = :delete
60
60
 
61
- finalize!
62
-
63
- # @!parse
64
- # # @return [Array<Symbol>]
65
- # def self.values; end
61
+ # @!method self.values
62
+ # @return [Array<Symbol>]
66
63
  end
67
64
 
68
65
  # One of payment_order, expected_payment, or ledger_transaction.
@@ -76,33 +73,30 @@ module ModernTreasury
76
73
  TRANSACTION = :transaction
77
74
  ENTITY_LINK = :entity_link
78
75
 
79
- finalize!
80
-
81
- # @!parse
82
- # # @return [Array<Symbol>]
83
- # def self.values; end
76
+ # @!method self.values
77
+ # @return [Array<Symbol>]
84
78
  end
85
79
 
86
80
  module Resource
87
81
  extend ModernTreasury::Internal::Type::Union
88
82
 
89
- variant -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest }
83
+ variant -> { ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest }
90
84
 
91
- variant -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest }
85
+ variant -> { ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest }
92
86
 
93
- variant -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest }
87
+ variant -> { ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest }
94
88
 
95
- variant -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest }
89
+ variant -> { ModernTreasury::BulkRequestCreateParams::Resource::TransactionCreateRequest }
96
90
 
97
- variant -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::ID }
91
+ variant -> { ModernTreasury::BulkRequestCreateParams::Resource::ID }
98
92
 
99
- variant -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID }
93
+ variant -> { ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID }
100
94
 
101
- variant -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID }
95
+ variant -> { ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID }
102
96
 
103
- variant -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID }
97
+ variant -> { ModernTreasury::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID }
104
98
 
105
- variant -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID }
99
+ variant -> { ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID }
106
100
 
107
101
  class PaymentOrderAsyncCreateRequest < ModernTreasury::Internal::Type::BaseModel
108
102
  # @!attribute amount
@@ -118,9 +112,11 @@ module ModernTreasury
118
112
  # `debit` pulls money from someone else's account to your own. Note that wire,
119
113
  # rtp, and check payments will always be `credit`.
120
114
  #
121
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Direction]
115
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Direction]
122
116
  required :direction,
123
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Direction }
117
+ enum: -> {
118
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Direction
119
+ }
124
120
 
125
121
  # @!attribute originating_account_id
126
122
  # The ID of one of your organization's internal accounts.
@@ -133,20 +129,20 @@ module ModernTreasury
133
129
  # `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
134
130
  # `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
135
131
  #
136
- # @return [Symbol, ModernTreasury::Models::PaymentOrderType]
137
- required :type, enum: -> { ModernTreasury::Models::PaymentOrderType }
132
+ # @return [Symbol, ModernTreasury::PaymentOrderType]
133
+ required :type, enum: -> { ModernTreasury::PaymentOrderType }
138
134
 
139
- # @!attribute [r] accounting
135
+ # @!attribute accounting
140
136
  #
141
- # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting, nil]
137
+ # @return [ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting, nil]
142
138
  optional :accounting,
143
- -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting }
144
-
145
- # @!parse
146
- # # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting]
147
- # attr_writer :accounting
139
+ -> {
140
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting
141
+ }
148
142
 
149
143
  # @!attribute accounting_category_id
144
+ # @deprecated
145
+ #
150
146
  # The ID of one of your accounting categories. Note that these will only be
151
147
  # accessible if your accounting system has been connected.
152
148
  #
@@ -154,6 +150,8 @@ module ModernTreasury
154
150
  optional :accounting_category_id, String, nil?: true
155
151
 
156
152
  # @!attribute accounting_ledger_class_id
153
+ # @deprecated
154
+ #
157
155
  # The ID of one of your accounting ledger classes. Note that these will only be
158
156
  # accessible if your accounting system has been connected.
159
157
  #
@@ -165,20 +163,18 @@ module ModernTreasury
165
163
  # payment orders. Can be one of shared, sender, or receiver, which correspond
166
164
  # respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
167
165
  #
168
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ChargeBearer, nil]
166
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ChargeBearer, nil]
169
167
  optional :charge_bearer,
170
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ChargeBearer },
168
+ enum: -> {
169
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ChargeBearer
170
+ },
171
171
  nil?: true
172
172
 
173
- # @!attribute [r] currency
173
+ # @!attribute currency
174
174
  # Defaults to the currency of the originating account.
175
175
  #
176
- # @return [Symbol, ModernTreasury::Models::Currency, nil]
177
- optional :currency, enum: -> { ModernTreasury::Models::Currency }
178
-
179
- # @!parse
180
- # # @return [Symbol, ModernTreasury::Models::Currency]
181
- # attr_writer :currency
176
+ # @return [Symbol, ModernTreasury::Currency, nil]
177
+ optional :currency, enum: -> { ModernTreasury::Currency }
182
178
 
183
179
  # @!attribute description
184
180
  # An optional description for internal use.
@@ -186,7 +182,7 @@ module ModernTreasury
186
182
  # @return [String, nil]
187
183
  optional :description, String, nil?: true
188
184
 
189
- # @!attribute [r] effective_date
185
+ # @!attribute effective_date
190
186
  # Date transactions are to be posted to the participants' account. Defaults to the
191
187
  # current business day or the next business day if the current day is a bank
192
188
  # holiday or weekend. Format: yyyy-mm-dd.
@@ -194,28 +190,22 @@ module ModernTreasury
194
190
  # @return [Date, nil]
195
191
  optional :effective_date, Date
196
192
 
197
- # @!parse
198
- # # @return [Date]
199
- # attr_writer :effective_date
200
-
201
193
  # @!attribute expires_at
202
194
  # RFP payments require an expires_at. This value must be past the effective_date.
203
195
  #
204
196
  # @return [Time, nil]
205
197
  optional :expires_at, Time, nil?: true
206
198
 
207
- # @!attribute [r] fallback_type
199
+ # @!attribute fallback_type
208
200
  # A payment type to fallback to if the original type is not valid for the
209
201
  # receiving account. Currently, this only supports falling back from RTP to ACH
210
202
  # (type=rtp and fallback_type=ach)
211
203
  #
212
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::FallbackType, nil]
204
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::FallbackType, nil]
213
205
  optional :fallback_type,
214
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::FallbackType }
215
-
216
- # @!parse
217
- # # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::FallbackType]
218
- # attr_writer :fallback_type
206
+ enum: -> {
207
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::FallbackType
208
+ }
219
209
 
220
210
  # @!attribute foreign_exchange_contract
221
211
  # If present, indicates a specific foreign exchange contract number that has been
@@ -229,26 +219,26 @@ module ModernTreasury
229
219
  # `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
230
220
  # currency matches the originating account currency.
231
221
  #
232
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ForeignExchangeIndicator, nil]
222
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ForeignExchangeIndicator, nil]
233
223
  optional :foreign_exchange_indicator,
234
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ForeignExchangeIndicator },
224
+ enum: -> {
225
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ForeignExchangeIndicator
226
+ },
235
227
  nil?: true
236
228
 
237
- # @!attribute [r] ledger_transaction
229
+ # @!attribute ledger_transaction
238
230
  # Specifies a ledger transaction object that will be created with the payment
239
231
  # order. If the ledger transaction cannot be created, then the payment order
240
232
  # creation will fail. The resulting ledger transaction will mirror the status of
241
233
  # the payment order.
242
234
  #
243
- # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction, nil]
235
+ # @return [ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction, nil]
244
236
  optional :ledger_transaction,
245
- -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction }
246
-
247
- # @!parse
248
- # # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction]
249
- # attr_writer :ledger_transaction
237
+ -> {
238
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction
239
+ }
250
240
 
251
- # @!attribute [r] ledger_transaction_id
241
+ # @!attribute ledger_transaction_id
252
242
  # Either ledger_transaction or ledger_transaction_id can be provided. Only a
253
243
  # pending ledger transaction can be attached upon payment order creation. Once the
254
244
  # payment order is created, the status of the ledger transaction tracks the
@@ -257,43 +247,29 @@ module ModernTreasury
257
247
  # @return [String, nil]
258
248
  optional :ledger_transaction_id, String
259
249
 
260
- # @!parse
261
- # # @return [String]
262
- # attr_writer :ledger_transaction_id
263
-
264
- # @!attribute [r] line_items
250
+ # @!attribute line_items
265
251
  # An array of line items that must sum up to the amount of the payment order.
266
252
  #
267
- # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LineItem>, nil]
253
+ # @return [Array<ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LineItem>, nil]
268
254
  optional :line_items,
269
- -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LineItem] }
270
-
271
- # @!parse
272
- # # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LineItem>]
273
- # attr_writer :line_items
255
+ -> {
256
+ ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LineItem]
257
+ }
274
258
 
275
- # @!attribute [r] metadata
259
+ # @!attribute metadata
276
260
  # Additional data represented as key-value pairs. Both the key and value must be
277
261
  # strings.
278
262
  #
279
263
  # @return [Hash{Symbol=>String}, nil]
280
264
  optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
281
265
 
282
- # @!parse
283
- # # @return [Hash{Symbol=>String}]
284
- # attr_writer :metadata
285
-
286
- # @!attribute [r] nsf_protected
266
+ # @!attribute nsf_protected
287
267
  # A boolean to determine if NSF Protection is enabled for this payment order. Note
288
268
  # that this setting must also be turned on in your organization settings page.
289
269
  #
290
270
  # @return [Boolean, nil]
291
271
  optional :nsf_protected, ModernTreasury::Internal::Type::Boolean
292
272
 
293
- # @!parse
294
- # # @return [Boolean]
295
- # attr_writer :nsf_protected
296
-
297
273
  # @!attribute originating_party_name
298
274
  # If present, this will replace your default company name on receiver's bank
299
275
  # statement. This field can only be used for ACH payments currently. For ACH, only
@@ -303,18 +279,16 @@ module ModernTreasury
303
279
  # @return [String, nil]
304
280
  optional :originating_party_name, String, nil?: true
305
281
 
306
- # @!attribute [r] priority
282
+ # @!attribute priority
307
283
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
308
284
  # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
309
285
  # an overnight check rather than standard mail.
310
286
  #
311
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Priority, nil]
287
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Priority, nil]
312
288
  optional :priority,
313
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Priority }
314
-
315
- # @!parse
316
- # # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Priority]
317
- # attr_writer :priority
289
+ enum: -> {
290
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Priority
291
+ }
318
292
 
319
293
  # @!attribute process_after
320
294
  # If present, Modern Treasury will not process the payment until after this time.
@@ -334,20 +308,18 @@ module ModernTreasury
334
308
  # @return [String, nil]
335
309
  optional :purpose, String, nil?: true
336
310
 
337
- # @!attribute [r] receiving_account
311
+ # @!attribute receiving_account
338
312
  # Either `receiving_account` or `receiving_account_id` must be present. When using
339
313
  # `receiving_account_id`, you may pass the id of an external account or an
340
314
  # internal account.
341
315
  #
342
- # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount, nil]
316
+ # @return [ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount, nil]
343
317
  optional :receiving_account,
344
- -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount }
318
+ -> {
319
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount
320
+ }
345
321
 
346
- # @!parse
347
- # # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount]
348
- # attr_writer :receiving_account
349
-
350
- # @!attribute [r] receiving_account_id
322
+ # @!attribute receiving_account_id
351
323
  # Either `receiving_account` or `receiving_account_id` must be present. When using
352
324
  # `receiving_account_id`, you may pass the id of an external account or an
353
325
  # internal account.
@@ -355,10 +327,6 @@ module ModernTreasury
355
327
  # @return [String, nil]
356
328
  optional :receiving_account_id, String
357
329
 
358
- # @!parse
359
- # # @return [String]
360
- # attr_writer :receiving_account_id
361
-
362
330
  # @!attribute remittance_information
363
331
  # For `ach`, this field will be passed through on an addenda record. For `wire`
364
332
  # payments the field will be passed through as the "Originator to Beneficiary
@@ -391,20 +359,16 @@ module ModernTreasury
391
359
  # payment orders, the `subtype` represents the SEC code. We currently support
392
360
  # `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
393
361
  #
394
- # @return [Symbol, ModernTreasury::Models::PaymentOrderSubtype, nil]
395
- optional :subtype, enum: -> { ModernTreasury::Models::PaymentOrderSubtype }, nil?: true
362
+ # @return [Symbol, ModernTreasury::PaymentOrderSubtype, nil]
363
+ optional :subtype, enum: -> { ModernTreasury::PaymentOrderSubtype }, nil?: true
396
364
 
397
- # @!attribute [r] transaction_monitoring_enabled
365
+ # @!attribute transaction_monitoring_enabled
398
366
  # A flag that determines whether a payment order should go through transaction
399
367
  # monitoring.
400
368
  #
401
369
  # @return [Boolean, nil]
402
370
  optional :transaction_monitoring_enabled, ModernTreasury::Internal::Type::Boolean
403
371
 
404
- # @!parse
405
- # # @return [Boolean]
406
- # attr_writer :transaction_monitoring_enabled
407
-
408
372
  # @!attribute ultimate_originating_party_identifier
409
373
  # Identifier of the ultimate originator of the payment order.
410
374
  #
@@ -429,106 +393,98 @@ module ModernTreasury
429
393
  # @return [String, nil]
430
394
  optional :ultimate_receiving_party_name, String, nil?: true
431
395
 
432
- # @!parse
433
- # # @param amount [Integer]
434
- # # @param direction [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Direction]
435
- # # @param originating_account_id [String]
436
- # # @param type [Symbol, ModernTreasury::Models::PaymentOrderType]
437
- # # @param accounting [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting]
438
- # # @param accounting_category_id [String, nil]
439
- # # @param accounting_ledger_class_id [String, nil]
440
- # # @param charge_bearer [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ChargeBearer, nil]
441
- # # @param currency [Symbol, ModernTreasury::Models::Currency]
442
- # # @param description [String, nil]
443
- # # @param effective_date [Date]
444
- # # @param expires_at [Time, nil]
445
- # # @param fallback_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::FallbackType]
446
- # # @param foreign_exchange_contract [String, nil]
447
- # # @param foreign_exchange_indicator [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ForeignExchangeIndicator, nil]
448
- # # @param ledger_transaction [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction]
449
- # # @param ledger_transaction_id [String]
450
- # # @param line_items [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LineItem>]
451
- # # @param metadata [Hash{Symbol=>String}]
452
- # # @param nsf_protected [Boolean]
453
- # # @param originating_party_name [String, nil]
454
- # # @param priority [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Priority]
455
- # # @param process_after [Time, nil]
456
- # # @param purpose [String, nil]
457
- # # @param receiving_account [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount]
458
- # # @param receiving_account_id [String]
459
- # # @param remittance_information [String, nil]
460
- # # @param send_remittance_advice [Boolean, nil]
461
- # # @param statement_descriptor [String, nil]
462
- # # @param subtype [Symbol, ModernTreasury::Models::PaymentOrderSubtype, nil]
463
- # # @param transaction_monitoring_enabled [Boolean]
464
- # # @param ultimate_originating_party_identifier [String, nil]
465
- # # @param ultimate_originating_party_name [String, nil]
466
- # # @param ultimate_receiving_party_identifier [String, nil]
467
- # # @param ultimate_receiving_party_name [String, nil]
468
- # #
469
- # def initialize(
470
- # amount:,
471
- # direction:,
472
- # originating_account_id:,
473
- # type:,
474
- # accounting: nil,
475
- # accounting_category_id: nil,
476
- # accounting_ledger_class_id: nil,
477
- # charge_bearer: nil,
478
- # currency: nil,
479
- # description: nil,
480
- # effective_date: nil,
481
- # expires_at: nil,
482
- # fallback_type: nil,
483
- # foreign_exchange_contract: nil,
484
- # foreign_exchange_indicator: nil,
485
- # ledger_transaction: nil,
486
- # ledger_transaction_id: nil,
487
- # line_items: nil,
488
- # metadata: nil,
489
- # nsf_protected: nil,
490
- # originating_party_name: nil,
491
- # priority: nil,
492
- # process_after: nil,
493
- # purpose: nil,
494
- # receiving_account: nil,
495
- # receiving_account_id: nil,
496
- # remittance_information: nil,
497
- # send_remittance_advice: nil,
498
- # statement_descriptor: nil,
499
- # subtype: nil,
500
- # transaction_monitoring_enabled: nil,
501
- # ultimate_originating_party_identifier: nil,
502
- # ultimate_originating_party_name: nil,
503
- # ultimate_receiving_party_identifier: nil,
504
- # ultimate_receiving_party_name: nil,
505
- # **
506
- # )
507
- # super
508
- # end
509
-
510
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
396
+ # @!method initialize(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil)
397
+ # Some parameter documentations has been truncated, see
398
+ # {ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest}
399
+ # for more details.
400
+ #
401
+ # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
402
+ #
403
+ # @param direction [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Direction] One of `credit`, `debit`. Describes the direction money is flowing in the transa
404
+ #
405
+ # @param originating_account_id [String] The ID of one of your organization's internal accounts.
406
+ #
407
+ # @param type [Symbol, ModernTreasury::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sep
408
+ #
409
+ # @param accounting [ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting]
410
+ #
411
+ # @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
412
+ #
413
+ # @param accounting_ledger_class_id [String, nil] The ID of one of your accounting ledger classes. Note that these will only be ac
414
+ #
415
+ # @param charge_bearer [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ChargeBearer, nil] The party that will pay the fees for the payment order. Only applies to wire pay
416
+ #
417
+ # @param currency [Symbol, ModernTreasury::Currency] Defaults to the currency of the originating account.
418
+ #
419
+ # @param description [String, nil] An optional description for internal use.
420
+ #
421
+ # @param effective_date [Date] Date transactions are to be posted to the participants' account. Defaults to the
422
+ #
423
+ # @param expires_at [Time, nil] RFP payments require an expires_at. This value must be past the effective_date.
424
+ #
425
+ # @param fallback_type [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::FallbackType] A payment type to fallback to if the original type is not valid for the receivin
426
+ #
427
+ # @param foreign_exchange_contract [String, nil] If present, indicates a specific foreign exchange contract number that has been
428
+ #
429
+ # @param foreign_exchange_indicator [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ForeignExchangeIndicator, nil] Indicates the type of FX transfer to initiate, can be either `variable_to_fixed`
430
+ #
431
+ # @param ledger_transaction [ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction] Specifies a ledger transaction object that will be created with the payment orde
432
+ #
433
+ # @param ledger_transaction_id [String] Either ledger_transaction or ledger_transaction_id can be provided. Only a pendi
434
+ #
435
+ # @param line_items [Array<ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LineItem>] An array of line items that must sum up to the amount of the payment order.
436
+ #
437
+ # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
438
+ #
439
+ # @param nsf_protected [Boolean] A boolean to determine if NSF Protection is enabled for this payment order. Note
440
+ #
441
+ # @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
442
+ #
443
+ # @param priority [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
444
+ #
445
+ # @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
446
+ #
447
+ # @param purpose [String, nil] For `wire`, this is usually the purpose which is transmitted via the "InstrForDb
448
+ #
449
+ # @param receiving_account [ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount] Either `receiving_account` or `receiving_account_id` must be present. When using
450
+ #
451
+ # @param receiving_account_id [String] Either `receiving_account` or `receiving_account_id` must be present. When using
452
+ #
453
+ # @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
454
+ #
455
+ # @param send_remittance_advice [Boolean, nil] Send an email to the counterparty when the payment order is sent to the bank. If
456
+ #
457
+ # @param statement_descriptor [String, nil] An optional descriptor which will appear in the receiver's statement. For `check
458
+ #
459
+ # @param subtype [Symbol, ModernTreasury::PaymentOrderSubtype, nil] An additional layer of classification for the type of payment order you are doin
460
+ #
461
+ # @param transaction_monitoring_enabled [Boolean] A flag that determines whether a payment order should go through transaction mon
462
+ #
463
+ # @param ultimate_originating_party_identifier [String, nil] Identifier of the ultimate originator of the payment order.
464
+ #
465
+ # @param ultimate_originating_party_name [String, nil] Name of the ultimate originator of the payment order.
466
+ #
467
+ # @param ultimate_receiving_party_identifier [String, nil] Identifier of the ultimate funds recipient.
468
+ #
469
+ # @param ultimate_receiving_party_name [String, nil] Name of the ultimate funds recipient.
511
470
 
512
471
  # One of `credit`, `debit`. Describes the direction money is flowing in the
513
472
  # transaction. A `credit` moves money from your account to someone else's. A
514
473
  # `debit` pulls money from someone else's account to your own. Note that wire,
515
474
  # rtp, and check payments will always be `credit`.
516
475
  #
517
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#direction
476
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#direction
518
477
  module Direction
519
478
  extend ModernTreasury::Internal::Type::Enum
520
479
 
521
480
  CREDIT = :credit
522
481
  DEBIT = :debit
523
482
 
524
- finalize!
525
-
526
- # @!parse
527
- # # @return [Array<Symbol>]
528
- # def self.values; end
483
+ # @!method self.values
484
+ # @return [Array<Symbol>]
529
485
  end
530
486
 
531
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#accounting
487
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#accounting
532
488
  class Accounting < ModernTreasury::Internal::Type::BaseModel
533
489
  # @!attribute account_id
534
490
  # The ID of one of your accounting categories. Note that these will only be
@@ -545,20 +501,21 @@ module ModernTreasury
545
501
  # @return [String, nil]
546
502
  optional :class_id, String, nil?: true
547
503
 
548
- # @!parse
549
- # # @param account_id [String, nil]
550
- # # @param class_id [String, nil]
551
- # #
552
- # def initialize(account_id: nil, class_id: nil, **) = super
553
-
554
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
504
+ # @!method initialize(account_id: nil, class_id: nil)
505
+ # Some parameter documentations has been truncated, see
506
+ # {ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting}
507
+ # for more details.
508
+ #
509
+ # @param account_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
510
+ #
511
+ # @param class_id [String, nil] The ID of one of the class objects in your accounting system. Class objects trac
555
512
  end
556
513
 
557
514
  # The party that will pay the fees for the payment order. Only applies to wire
558
515
  # payment orders. Can be one of shared, sender, or receiver, which correspond
559
516
  # respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
560
517
  #
561
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#charge_bearer
518
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#charge_bearer
562
519
  module ChargeBearer
563
520
  extend ModernTreasury::Internal::Type::Enum
564
521
 
@@ -566,58 +523,49 @@ module ModernTreasury
566
523
  SENDER = :sender
567
524
  RECEIVER = :receiver
568
525
 
569
- finalize!
570
-
571
- # @!parse
572
- # # @return [Array<Symbol>]
573
- # def self.values; end
526
+ # @!method self.values
527
+ # @return [Array<Symbol>]
574
528
  end
575
529
 
576
530
  # A payment type to fallback to if the original type is not valid for the
577
531
  # receiving account. Currently, this only supports falling back from RTP to ACH
578
532
  # (type=rtp and fallback_type=ach)
579
533
  #
580
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#fallback_type
534
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#fallback_type
581
535
  module FallbackType
582
536
  extend ModernTreasury::Internal::Type::Enum
583
537
 
584
538
  ACH = :ach
585
539
 
586
- finalize!
587
-
588
- # @!parse
589
- # # @return [Array<Symbol>]
590
- # def self.values; end
540
+ # @!method self.values
541
+ # @return [Array<Symbol>]
591
542
  end
592
543
 
593
544
  # Indicates the type of FX transfer to initiate, can be either
594
545
  # `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
595
546
  # currency matches the originating account currency.
596
547
  #
597
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#foreign_exchange_indicator
548
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#foreign_exchange_indicator
598
549
  module ForeignExchangeIndicator
599
550
  extend ModernTreasury::Internal::Type::Enum
600
551
 
601
552
  FIXED_TO_VARIABLE = :fixed_to_variable
602
553
  VARIABLE_TO_FIXED = :variable_to_fixed
603
554
 
604
- finalize!
605
-
606
- # @!parse
607
- # # @return [Array<Symbol>]
608
- # def self.values; end
555
+ # @!method self.values
556
+ # @return [Array<Symbol>]
609
557
  end
610
558
 
611
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#ledger_transaction
559
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#ledger_transaction
612
560
  class LedgerTransaction < ModernTreasury::Internal::Type::BaseModel
613
561
  # @!attribute ledger_entries
614
562
  # An array of ledger entry objects.
615
563
  #
616
- # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::LedgerEntry>]
564
+ # @return [Array<ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::LedgerEntry>]
617
565
  required :ledger_entries,
618
566
  -> do
619
567
  ModernTreasury::Internal::Type::ArrayOf[
620
- ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::LedgerEntry
568
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::LedgerEntry
621
569
  ]
622
570
  end
623
571
 
@@ -627,118 +575,89 @@ module ModernTreasury
627
575
  # @return [String, nil]
628
576
  optional :description, String, nil?: true
629
577
 
630
- # @!attribute [r] effective_at
578
+ # @!attribute effective_at
631
579
  # The timestamp (ISO8601 format) at which the ledger transaction happened for
632
580
  # reporting purposes.
633
581
  #
634
582
  # @return [Time, nil]
635
583
  optional :effective_at, Time
636
584
 
637
- # @!parse
638
- # # @return [Time]
639
- # attr_writer :effective_at
640
-
641
- # @!attribute [r] effective_date
585
+ # @!attribute effective_date
642
586
  # The date (YYYY-MM-DD) on which the ledger transaction happened for reporting
643
587
  # purposes.
644
588
  #
645
589
  # @return [Date, nil]
646
590
  optional :effective_date, Date
647
591
 
648
- # @!parse
649
- # # @return [Date]
650
- # attr_writer :effective_date
651
-
652
- # @!attribute [r] external_id
592
+ # @!attribute external_id
653
593
  # A unique string to represent the ledger transaction. Only one pending or posted
654
594
  # ledger transaction may have this ID in the ledger.
655
595
  #
656
596
  # @return [String, nil]
657
597
  optional :external_id, String
658
598
 
659
- # @!parse
660
- # # @return [String]
661
- # attr_writer :external_id
662
-
663
- # @!attribute [r] ledgerable_id
599
+ # @!attribute ledgerable_id
664
600
  # If the ledger transaction can be reconciled to another object in Modern
665
601
  # Treasury, the id will be populated here, otherwise null.
666
602
  #
667
603
  # @return [String, nil]
668
604
  optional :ledgerable_id, String
669
605
 
670
- # @!parse
671
- # # @return [String]
672
- # attr_writer :ledgerable_id
673
-
674
- # @!attribute [r] ledgerable_type
606
+ # @!attribute ledgerable_type
675
607
  # If the ledger transaction can be reconciled to another object in Modern
676
608
  # Treasury, the type will be populated here, otherwise null. This can be one of
677
609
  # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
678
610
  # reversal.
679
611
  #
680
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::LedgerableType, nil]
612
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::LedgerableType, nil]
681
613
  optional :ledgerable_type,
682
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::LedgerableType }
683
-
684
- # @!parse
685
- # # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::LedgerableType]
686
- # attr_writer :ledgerable_type
614
+ enum: -> {
615
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::LedgerableType
616
+ }
687
617
 
688
- # @!attribute [r] metadata
618
+ # @!attribute metadata
689
619
  # Additional data represented as key-value pairs. Both the key and value must be
690
620
  # strings.
691
621
  #
692
622
  # @return [Hash{Symbol=>String}, nil]
693
623
  optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
694
624
 
695
- # @!parse
696
- # # @return [Hash{Symbol=>String}]
697
- # attr_writer :metadata
698
-
699
- # @!attribute [r] status
625
+ # @!attribute status
700
626
  # To post a ledger transaction at creation, use `posted`.
701
627
  #
702
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::Status, nil]
628
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::Status, nil]
703
629
  optional :status,
704
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::Status }
705
-
706
- # @!parse
707
- # # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::Status]
708
- # attr_writer :status
709
-
710
- # @!parse
711
- # # Specifies a ledger transaction object that will be created with the payment
712
- # # order. If the ledger transaction cannot be created, then the payment order
713
- # # creation will fail. The resulting ledger transaction will mirror the status of
714
- # # the payment order.
715
- # #
716
- # # @param ledger_entries [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::LedgerEntry>]
717
- # # @param description [String, nil]
718
- # # @param effective_at [Time]
719
- # # @param effective_date [Date]
720
- # # @param external_id [String]
721
- # # @param ledgerable_id [String]
722
- # # @param ledgerable_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::LedgerableType]
723
- # # @param metadata [Hash{Symbol=>String}]
724
- # # @param status [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::Status]
725
- # #
726
- # def initialize(
727
- # ledger_entries:,
728
- # description: nil,
729
- # effective_at: nil,
730
- # effective_date: nil,
731
- # external_id: nil,
732
- # ledgerable_id: nil,
733
- # ledgerable_type: nil,
734
- # metadata: nil,
735
- # status: nil,
736
- # **
737
- # )
738
- # super
739
- # end
740
-
741
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
630
+ enum: -> {
631
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::Status
632
+ }
633
+
634
+ # @!method initialize(ledger_entries:, description: nil, effective_at: nil, effective_date: nil, external_id: nil, ledgerable_id: nil, ledgerable_type: nil, metadata: nil, status: nil)
635
+ # Some parameter documentations has been truncated, see
636
+ # {ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction}
637
+ # for more details.
638
+ #
639
+ # Specifies a ledger transaction object that will be created with the payment
640
+ # order. If the ledger transaction cannot be created, then the payment order
641
+ # creation will fail. The resulting ledger transaction will mirror the status of
642
+ # the payment order.
643
+ #
644
+ # @param ledger_entries [Array<ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::LedgerEntry>] An array of ledger entry objects.
645
+ #
646
+ # @param description [String, nil] An optional description for internal use.
647
+ #
648
+ # @param effective_at [Time] The timestamp (ISO8601 format) at which the ledger transaction happened for repo
649
+ #
650
+ # @param effective_date [Date] The date (YYYY-MM-DD) on which the ledger transaction happened for reporting pur
651
+ #
652
+ # @param external_id [String] A unique string to represent the ledger transaction. Only one pending or posted
653
+ #
654
+ # @param ledgerable_id [String] If the ledger transaction can be reconciled to another object in Modern Treasury
655
+ #
656
+ # @param ledgerable_type [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::LedgerableType] If the ledger transaction can be reconciled to another object in Modern Treasury
657
+ #
658
+ # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
659
+ #
660
+ # @param status [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::Status] To post a ledger transaction at creation, use `posted`.
742
661
 
743
662
  class LedgerEntry < ModernTreasury::Internal::Type::BaseModel
744
663
  # @!attribute amount
@@ -754,8 +673,8 @@ module ModernTreasury
754
673
  # `debit` pulls money from someone else's account to your own. Note that wire,
755
674
  # rtp, and check payments will always be `credit`.
756
675
  #
757
- # @return [Symbol, ModernTreasury::Models::TransactionDirection]
758
- required :direction, enum: -> { ModernTreasury::Models::TransactionDirection }
676
+ # @return [Symbol, ModernTreasury::TransactionDirection]
677
+ required :direction, enum: -> { ModernTreasury::TransactionDirection }
759
678
 
760
679
  # @!attribute ledger_account_id
761
680
  # The ledger account that this ledger entry is associated with.
@@ -780,17 +699,13 @@ module ModernTreasury
780
699
  # @return [Integer, nil]
781
700
  optional :lock_version, Integer, nil?: true
782
701
 
783
- # @!attribute [r] metadata
702
+ # @!attribute metadata
784
703
  # Additional data represented as key-value pairs. Both the key and value must be
785
704
  # strings.
786
705
  #
787
706
  # @return [Hash{Symbol=>String}, nil]
788
707
  optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
789
708
 
790
- # @!parse
791
- # # @return [Hash{Symbol=>String}]
792
- # attr_writer :metadata
793
-
794
709
  # @!attribute pending_balance_amount
795
710
  # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
796
711
  # account’s pending balance. If any of these conditions would be false after the
@@ -816,33 +731,28 @@ module ModernTreasury
816
731
  ModernTreasury::Internal::Type::Boolean,
817
732
  nil?: true
818
733
 
819
- # @!parse
820
- # # @param amount [Integer]
821
- # # @param direction [Symbol, ModernTreasury::Models::TransactionDirection]
822
- # # @param ledger_account_id [String]
823
- # # @param available_balance_amount [Hash{Symbol=>Integer}, nil]
824
- # # @param lock_version [Integer, nil]
825
- # # @param metadata [Hash{Symbol=>String}]
826
- # # @param pending_balance_amount [Hash{Symbol=>Integer}, nil]
827
- # # @param posted_balance_amount [Hash{Symbol=>Integer}, nil]
828
- # # @param show_resulting_ledger_account_balances [Boolean, nil]
829
- # #
830
- # def initialize(
831
- # amount:,
832
- # direction:,
833
- # ledger_account_id:,
834
- # available_balance_amount: nil,
835
- # lock_version: nil,
836
- # metadata: nil,
837
- # pending_balance_amount: nil,
838
- # posted_balance_amount: nil,
839
- # show_resulting_ledger_account_balances: nil,
840
- # **
841
- # )
842
- # super
843
- # end
844
-
845
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
734
+ # @!method initialize(amount:, direction:, ledger_account_id:, available_balance_amount: nil, lock_version: nil, metadata: nil, pending_balance_amount: nil, posted_balance_amount: nil, show_resulting_ledger_account_balances: nil)
735
+ # Some parameter documentations has been truncated, see
736
+ # {ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::LedgerEntry}
737
+ # for more details.
738
+ #
739
+ # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
740
+ #
741
+ # @param direction [Symbol, ModernTreasury::TransactionDirection] One of `credit`, `debit`. Describes the direction money is flowing in the transa
742
+ #
743
+ # @param ledger_account_id [String] The ledger account that this ledger entry is associated with.
744
+ #
745
+ # @param available_balance_amount [Hash{Symbol=>Integer}, nil] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the accou
746
+ #
747
+ # @param lock_version [Integer, nil] Lock version of the ledger account. This can be passed when creating a ledger tr
748
+ #
749
+ # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
750
+ #
751
+ # @param pending_balance_amount [Hash{Symbol=>Integer}, nil] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the accou
752
+ #
753
+ # @param posted_balance_amount [Hash{Symbol=>Integer}, nil] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the accou
754
+ #
755
+ # @param show_resulting_ledger_account_balances [Boolean, nil] If true, response will include the balance of the associated ledger account for
846
756
  end
847
757
 
848
758
  # If the ledger transaction can be reconciled to another object in Modern
@@ -850,7 +760,7 @@ module ModernTreasury
850
760
  # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
851
761
  # reversal.
852
762
  #
853
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction#ledgerable_type
763
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction#ledgerable_type
854
764
  module LedgerableType
855
765
  extend ModernTreasury::Internal::Type::Enum
856
766
 
@@ -861,16 +771,13 @@ module ModernTreasury
861
771
  RETURN = :return
862
772
  REVERSAL = :reversal
863
773
 
864
- finalize!
865
-
866
- # @!parse
867
- # # @return [Array<Symbol>]
868
- # def self.values; end
774
+ # @!method self.values
775
+ # @return [Array<Symbol>]
869
776
  end
870
777
 
871
778
  # To post a ledger transaction at creation, use `posted`.
872
779
  #
873
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction#status
780
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction#status
874
781
  module Status
875
782
  extend ModernTreasury::Internal::Type::Enum
876
783
 
@@ -878,11 +785,8 @@ module ModernTreasury
878
785
  PENDING = :pending
879
786
  POSTED = :posted
880
787
 
881
- finalize!
882
-
883
- # @!parse
884
- # # @return [Array<Symbol>]
885
- # def self.values; end
788
+ # @!method self.values
789
+ # @return [Array<Symbol>]
886
790
  end
887
791
  end
888
792
 
@@ -907,112 +811,90 @@ module ModernTreasury
907
811
  # @return [String, nil]
908
812
  optional :description, String, nil?: true
909
813
 
910
- # @!attribute [r] metadata
814
+ # @!attribute metadata
911
815
  # Additional data represented as key-value pairs. Both the key and value must be
912
816
  # strings.
913
817
  #
914
818
  # @return [Hash{Symbol=>String}, nil]
915
819
  optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
916
820
 
917
- # @!parse
918
- # # @return [Hash{Symbol=>String}]
919
- # attr_writer :metadata
920
-
921
- # @!parse
922
- # # @param amount [Integer]
923
- # # @param accounting_category_id [String, nil]
924
- # # @param description [String, nil]
925
- # # @param metadata [Hash{Symbol=>String}]
926
- # #
927
- # def initialize(amount:, accounting_category_id: nil, description: nil, metadata: nil, **) = super
928
-
929
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
821
+ # @!method initialize(amount:, accounting_category_id: nil, description: nil, metadata: nil)
822
+ # Some parameter documentations has been truncated, see
823
+ # {ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LineItem}
824
+ # for more details.
825
+ #
826
+ # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
827
+ #
828
+ # @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
829
+ #
830
+ # @param description [String, nil] A free-form description of the line item.
831
+ #
832
+ # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
930
833
  end
931
834
 
932
835
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
933
836
  # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
934
837
  # an overnight check rather than standard mail.
935
838
  #
936
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#priority
839
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#priority
937
840
  module Priority
938
841
  extend ModernTreasury::Internal::Type::Enum
939
842
 
940
843
  HIGH = :high
941
844
  NORMAL = :normal
942
845
 
943
- finalize!
944
-
945
- # @!parse
946
- # # @return [Array<Symbol>]
947
- # def self.values; end
846
+ # @!method self.values
847
+ # @return [Array<Symbol>]
948
848
  end
949
849
 
950
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#receiving_account
850
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#receiving_account
951
851
  class ReceivingAccount < ModernTreasury::Internal::Type::BaseModel
952
- # @!attribute [r] account_details
852
+ # @!attribute account_details
953
853
  #
954
- # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail>, nil]
854
+ # @return [Array<ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail>, nil]
955
855
  optional :account_details,
956
856
  -> do
957
857
  ModernTreasury::Internal::Type::ArrayOf[
958
- ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail
858
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail
959
859
  ]
960
860
  end
961
861
 
962
- # @!parse
963
- # # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail>]
964
- # attr_writer :account_details
965
-
966
- # @!attribute [r] account_type
862
+ # @!attribute account_type
967
863
  # Can be `checking`, `savings` or `other`.
968
864
  #
969
- # @return [Symbol, ModernTreasury::Models::ExternalAccountType, nil]
970
- optional :account_type, enum: -> { ModernTreasury::Models::ExternalAccountType }
971
-
972
- # @!parse
973
- # # @return [Symbol, ModernTreasury::Models::ExternalAccountType]
974
- # attr_writer :account_type
865
+ # @return [Symbol, ModernTreasury::ExternalAccountType, nil]
866
+ optional :account_type, enum: -> { ModernTreasury::ExternalAccountType }
975
867
 
976
- # @!attribute [r] contact_details
868
+ # @!attribute contact_details
977
869
  #
978
- # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::ContactDetail>, nil]
870
+ # @return [Array<ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::ContactDetail>, nil]
979
871
  optional :contact_details,
980
872
  -> do
981
873
  ModernTreasury::Internal::Type::ArrayOf[
982
- ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::ContactDetail
874
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::ContactDetail
983
875
  ]
984
876
  end
985
877
 
986
- # @!parse
987
- # # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::ContactDetail>]
988
- # attr_writer :contact_details
989
-
990
- # @!attribute [r] ledger_account
878
+ # @!attribute ledger_account
991
879
  # Specifies a ledger account object that will be created with the external
992
880
  # account. The resulting ledger account is linked to the external account for
993
881
  # auto-ledgering Payment objects. See
994
882
  # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
995
883
  # for more details.
996
884
  #
997
- # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::LedgerAccount, nil]
885
+ # @return [ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::LedgerAccount, nil]
998
886
  optional :ledger_account,
999
- -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::LedgerAccount }
887
+ -> {
888
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::LedgerAccount
889
+ }
1000
890
 
1001
- # @!parse
1002
- # # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::LedgerAccount]
1003
- # attr_writer :ledger_account
1004
-
1005
- # @!attribute [r] metadata
891
+ # @!attribute metadata
1006
892
  # Additional data represented as key-value pairs. Both the key and value must be
1007
893
  # strings.
1008
894
  #
1009
895
  # @return [Hash{Symbol=>String}, nil]
1010
896
  optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
1011
897
 
1012
- # @!parse
1013
- # # @return [Hash{Symbol=>String}]
1014
- # attr_writer :metadata
1015
-
1016
898
  # @!attribute name
1017
899
  # A nickname for the external account. This is only for internal usage and won't
1018
900
  # affect any payments
@@ -1020,106 +902,85 @@ module ModernTreasury
1020
902
  # @return [String, nil]
1021
903
  optional :name, String, nil?: true
1022
904
 
1023
- # @!attribute [r] party_address
905
+ # @!attribute party_address
1024
906
  # Required if receiving wire payments.
1025
907
  #
1026
- # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::PartyAddress, nil]
908
+ # @return [ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::PartyAddress, nil]
1027
909
  optional :party_address,
1028
- -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::PartyAddress }
910
+ -> {
911
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::PartyAddress
912
+ }
1029
913
 
1030
- # @!parse
1031
- # # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::PartyAddress]
1032
- # attr_writer :party_address
1033
-
1034
- # @!attribute [r] party_identifier
914
+ # @!attribute party_identifier
1035
915
  #
1036
916
  # @return [String, nil]
1037
917
  optional :party_identifier, String
1038
918
 
1039
- # @!parse
1040
- # # @return [String]
1041
- # attr_writer :party_identifier
1042
-
1043
- # @!attribute [r] party_name
919
+ # @!attribute party_name
1044
920
  # If this value isn't provided, it will be inherited from the counterparty's name.
1045
921
  #
1046
922
  # @return [String, nil]
1047
923
  optional :party_name, String
1048
924
 
1049
- # @!parse
1050
- # # @return [String]
1051
- # attr_writer :party_name
1052
-
1053
925
  # @!attribute party_type
1054
926
  # Either `individual` or `business`.
1055
927
  #
1056
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::PartyType, nil]
928
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::PartyType, nil]
1057
929
  optional :party_type,
1058
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::PartyType },
930
+ enum: -> {
931
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::PartyType
932
+ },
1059
933
  nil?: true
1060
934
 
1061
- # @!attribute [r] plaid_processor_token
935
+ # @!attribute plaid_processor_token
1062
936
  # If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
1063
937
  # you can pass the processor token in this field.
1064
938
  #
1065
939
  # @return [String, nil]
1066
940
  optional :plaid_processor_token, String
1067
941
 
1068
- # @!parse
1069
- # # @return [String]
1070
- # attr_writer :plaid_processor_token
1071
-
1072
- # @!attribute [r] routing_details
942
+ # @!attribute routing_details
1073
943
  #
1074
- # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail>, nil]
944
+ # @return [Array<ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail>, nil]
1075
945
  optional :routing_details,
1076
946
  -> do
1077
947
  ModernTreasury::Internal::Type::ArrayOf[
1078
- ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail
948
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail
1079
949
  ]
1080
950
  end
1081
951
 
1082
- # @!parse
1083
- # # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail>]
1084
- # attr_writer :routing_details
1085
-
1086
- # @!parse
1087
- # # Either `receiving_account` or `receiving_account_id` must be present. When using
1088
- # # `receiving_account_id`, you may pass the id of an external account or an
1089
- # # internal account.
1090
- # #
1091
- # # @param account_details [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail>]
1092
- # # @param account_type [Symbol, ModernTreasury::Models::ExternalAccountType]
1093
- # # @param contact_details [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::ContactDetail>]
1094
- # # @param ledger_account [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::LedgerAccount]
1095
- # # @param metadata [Hash{Symbol=>String}]
1096
- # # @param name [String, nil]
1097
- # # @param party_address [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::PartyAddress]
1098
- # # @param party_identifier [String]
1099
- # # @param party_name [String]
1100
- # # @param party_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::PartyType, nil]
1101
- # # @param plaid_processor_token [String]
1102
- # # @param routing_details [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail>]
1103
- # #
1104
- # def initialize(
1105
- # account_details: nil,
1106
- # account_type: nil,
1107
- # contact_details: nil,
1108
- # ledger_account: nil,
1109
- # metadata: nil,
1110
- # name: nil,
1111
- # party_address: nil,
1112
- # party_identifier: nil,
1113
- # party_name: nil,
1114
- # party_type: nil,
1115
- # plaid_processor_token: nil,
1116
- # routing_details: nil,
1117
- # **
1118
- # )
1119
- # super
1120
- # end
1121
-
1122
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
952
+ # @!method initialize(account_details: nil, account_type: nil, contact_details: nil, ledger_account: nil, metadata: nil, name: nil, party_address: nil, party_identifier: nil, party_name: nil, party_type: nil, plaid_processor_token: nil, routing_details: nil)
953
+ # Some parameter documentations has been truncated, see
954
+ # {ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount}
955
+ # for more details.
956
+ #
957
+ # Either `receiving_account` or `receiving_account_id` must be present. When using
958
+ # `receiving_account_id`, you may pass the id of an external account or an
959
+ # internal account.
960
+ #
961
+ # @param account_details [Array<ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail>]
962
+ #
963
+ # @param account_type [Symbol, ModernTreasury::ExternalAccountType] Can be `checking`, `savings` or `other`.
964
+ #
965
+ # @param contact_details [Array<ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::ContactDetail>]
966
+ #
967
+ # @param ledger_account [ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::LedgerAccount] Specifies a ledger account object that will be created with the external account
968
+ #
969
+ # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
970
+ #
971
+ # @param name [String, nil] A nickname for the external account. This is only for internal usage and won't a
972
+ #
973
+ # @param party_address [ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::PartyAddress] Required if receiving wire payments.
974
+ #
975
+ # @param party_identifier [String]
976
+ #
977
+ # @param party_name [String] If this value isn't provided, it will be inherited from the counterparty's name.
978
+ #
979
+ # @param party_type [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::PartyType, nil] Either `individual` or `business`.
980
+ #
981
+ # @param plaid_processor_token [String] If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
982
+ #
983
+ # @param routing_details [Array<ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail>]
1123
984
 
1124
985
  class AccountDetail < ModernTreasury::Internal::Type::BaseModel
1125
986
  # @!attribute account_number
@@ -1127,25 +988,19 @@ module ModernTreasury
1127
988
  # @return [String]
1128
989
  required :account_number, String
1129
990
 
1130
- # @!attribute [r] account_number_type
991
+ # @!attribute account_number_type
1131
992
  #
1132
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail::AccountNumberType, nil]
993
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail::AccountNumberType, nil]
1133
994
  optional :account_number_type,
1134
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail::AccountNumberType }
1135
-
1136
- # @!parse
1137
- # # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail::AccountNumberType]
1138
- # attr_writer :account_number_type
1139
-
1140
- # @!parse
1141
- # # @param account_number [String]
1142
- # # @param account_number_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail::AccountNumberType]
1143
- # #
1144
- # def initialize(account_number:, account_number_type: nil, **) = super
995
+ enum: -> {
996
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail::AccountNumberType
997
+ }
1145
998
 
1146
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
999
+ # @!method initialize(account_number:, account_number_type: nil)
1000
+ # @param account_number [String]
1001
+ # @param account_number_type [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail::AccountNumberType]
1147
1002
 
1148
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail#account_number_type
1003
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail#account_number_type
1149
1004
  module AccountNumberType
1150
1005
  extend ModernTreasury::Internal::Type::Enum
1151
1006
 
@@ -1160,43 +1015,30 @@ module ModernTreasury
1160
1015
  SG_NUMBER = :sg_number
1161
1016
  WALLET_ADDRESS = :wallet_address
1162
1017
 
1163
- finalize!
1164
-
1165
- # @!parse
1166
- # # @return [Array<Symbol>]
1167
- # def self.values; end
1018
+ # @!method self.values
1019
+ # @return [Array<Symbol>]
1168
1020
  end
1169
1021
  end
1170
1022
 
1171
1023
  class ContactDetail < ModernTreasury::Internal::Type::BaseModel
1172
- # @!attribute [r] contact_identifier
1024
+ # @!attribute contact_identifier
1173
1025
  #
1174
1026
  # @return [String, nil]
1175
1027
  optional :contact_identifier, String
1176
1028
 
1177
- # @!parse
1178
- # # @return [String]
1179
- # attr_writer :contact_identifier
1180
-
1181
- # @!attribute [r] contact_identifier_type
1029
+ # @!attribute contact_identifier_type
1182
1030
  #
1183
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::ContactDetail::ContactIdentifierType, nil]
1031
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::ContactDetail::ContactIdentifierType, nil]
1184
1032
  optional :contact_identifier_type,
1185
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::ContactDetail::ContactIdentifierType }
1186
-
1187
- # @!parse
1188
- # # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::ContactDetail::ContactIdentifierType]
1189
- # attr_writer :contact_identifier_type
1190
-
1191
- # @!parse
1192
- # # @param contact_identifier [String]
1193
- # # @param contact_identifier_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::ContactDetail::ContactIdentifierType]
1194
- # #
1195
- # def initialize(contact_identifier: nil, contact_identifier_type: nil, **) = super
1033
+ enum: -> {
1034
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::ContactDetail::ContactIdentifierType
1035
+ }
1196
1036
 
1197
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1037
+ # @!method initialize(contact_identifier: nil, contact_identifier_type: nil)
1038
+ # @param contact_identifier [String]
1039
+ # @param contact_identifier_type [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::ContactDetail::ContactIdentifierType]
1198
1040
 
1199
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::ContactDetail#contact_identifier_type
1041
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::ContactDetail#contact_identifier_type
1200
1042
  module ContactIdentifierType
1201
1043
  extend ModernTreasury::Internal::Type::Enum
1202
1044
 
@@ -1204,15 +1046,12 @@ module ModernTreasury
1204
1046
  PHONE_NUMBER = :phone_number
1205
1047
  WEBSITE = :website
1206
1048
 
1207
- finalize!
1208
-
1209
- # @!parse
1210
- # # @return [Array<Symbol>]
1211
- # def self.values; end
1049
+ # @!method self.values
1050
+ # @return [Array<Symbol>]
1212
1051
  end
1213
1052
  end
1214
1053
 
1215
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount#ledger_account
1054
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount#ledger_account
1216
1055
  class LedgerAccount < ModernTreasury::Internal::Type::BaseModel
1217
1056
  # @!attribute currency
1218
1057
  # The currency of the ledger account.
@@ -1235,8 +1074,8 @@ module ModernTreasury
1235
1074
  # @!attribute normal_balance
1236
1075
  # The normal balance of the ledger account.
1237
1076
  #
1238
- # @return [Symbol, ModernTreasury::Models::TransactionDirection]
1239
- required :normal_balance, enum: -> { ModernTreasury::Models::TransactionDirection }
1077
+ # @return [Symbol, ModernTreasury::TransactionDirection]
1078
+ required :normal_balance, enum: -> { ModernTreasury::TransactionDirection }
1240
1079
 
1241
1080
  # @!attribute currency_exponent
1242
1081
  # The currency exponent of the ledger account.
@@ -1250,93 +1089,74 @@ module ModernTreasury
1250
1089
  # @return [String, nil]
1251
1090
  optional :description, String, nil?: true
1252
1091
 
1253
- # @!attribute [r] ledger_account_category_ids
1092
+ # @!attribute ledger_account_category_ids
1254
1093
  # The array of ledger account category ids that this ledger account should be a
1255
1094
  # child of.
1256
1095
  #
1257
1096
  # @return [Array<String>, nil]
1258
1097
  optional :ledger_account_category_ids, ModernTreasury::Internal::Type::ArrayOf[String]
1259
1098
 
1260
- # @!parse
1261
- # # @return [Array<String>]
1262
- # attr_writer :ledger_account_category_ids
1263
-
1264
- # @!attribute [r] ledgerable_id
1099
+ # @!attribute ledgerable_id
1265
1100
  # If the ledger account links to another object in Modern Treasury, the id will be
1266
1101
  # populated here, otherwise null.
1267
1102
  #
1268
1103
  # @return [String, nil]
1269
1104
  optional :ledgerable_id, String
1270
1105
 
1271
- # @!parse
1272
- # # @return [String]
1273
- # attr_writer :ledgerable_id
1274
-
1275
- # @!attribute [r] ledgerable_type
1106
+ # @!attribute ledgerable_type
1276
1107
  # If the ledger account links to another object in Modern Treasury, the type will
1277
1108
  # be populated here, otherwise null. The value is one of internal_account or
1278
1109
  # external_account.
1279
1110
  #
1280
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::LedgerAccount::LedgerableType, nil]
1111
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::LedgerAccount::LedgerableType, nil]
1281
1112
  optional :ledgerable_type,
1282
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::LedgerAccount::LedgerableType }
1113
+ enum: -> {
1114
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::LedgerAccount::LedgerableType
1115
+ }
1283
1116
 
1284
- # @!parse
1285
- # # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::LedgerAccount::LedgerableType]
1286
- # attr_writer :ledgerable_type
1287
-
1288
- # @!attribute [r] metadata
1117
+ # @!attribute metadata
1289
1118
  # Additional data represented as key-value pairs. Both the key and value must be
1290
1119
  # strings.
1291
1120
  #
1292
1121
  # @return [Hash{Symbol=>String}, nil]
1293
1122
  optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
1294
1123
 
1295
- # @!parse
1296
- # # @return [Hash{Symbol=>String}]
1297
- # attr_writer :metadata
1298
-
1299
- # @!parse
1300
- # # Specifies a ledger account object that will be created with the external
1301
- # # account. The resulting ledger account is linked to the external account for
1302
- # # auto-ledgering Payment objects. See
1303
- # # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
1304
- # # for more details.
1305
- # #
1306
- # # @param currency [String]
1307
- # # @param ledger_id [String]
1308
- # # @param name [String]
1309
- # # @param normal_balance [Symbol, ModernTreasury::Models::TransactionDirection]
1310
- # # @param currency_exponent [Integer, nil]
1311
- # # @param description [String, nil]
1312
- # # @param ledger_account_category_ids [Array<String>]
1313
- # # @param ledgerable_id [String]
1314
- # # @param ledgerable_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::LedgerAccount::LedgerableType]
1315
- # # @param metadata [Hash{Symbol=>String}]
1316
- # #
1317
- # def initialize(
1318
- # currency:,
1319
- # ledger_id:,
1320
- # name:,
1321
- # normal_balance:,
1322
- # currency_exponent: nil,
1323
- # description: nil,
1324
- # ledger_account_category_ids: nil,
1325
- # ledgerable_id: nil,
1326
- # ledgerable_type: nil,
1327
- # metadata: nil,
1328
- # **
1329
- # )
1330
- # super
1331
- # end
1332
-
1333
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1124
+ # @!method initialize(currency:, ledger_id:, name:, normal_balance:, currency_exponent: nil, description: nil, ledger_account_category_ids: nil, ledgerable_id: nil, ledgerable_type: nil, metadata: nil)
1125
+ # Some parameter documentations has been truncated, see
1126
+ # {ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::LedgerAccount}
1127
+ # for more details.
1128
+ #
1129
+ # Specifies a ledger account object that will be created with the external
1130
+ # account. The resulting ledger account is linked to the external account for
1131
+ # auto-ledgering Payment objects. See
1132
+ # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
1133
+ # for more details.
1134
+ #
1135
+ # @param currency [String] The currency of the ledger account.
1136
+ #
1137
+ # @param ledger_id [String] The id of the ledger that this account belongs to.
1138
+ #
1139
+ # @param name [String] The name of the ledger account.
1140
+ #
1141
+ # @param normal_balance [Symbol, ModernTreasury::TransactionDirection] The normal balance of the ledger account.
1142
+ #
1143
+ # @param currency_exponent [Integer, nil] The currency exponent of the ledger account.
1144
+ #
1145
+ # @param description [String, nil] The description of the ledger account.
1146
+ #
1147
+ # @param ledger_account_category_ids [Array<String>] The array of ledger account category ids that this ledger account should be a ch
1148
+ #
1149
+ # @param ledgerable_id [String] If the ledger account links to another object in Modern Treasury, the id will be
1150
+ #
1151
+ # @param ledgerable_type [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::LedgerAccount::LedgerableType] If the ledger account links to another object in Modern Treasury, the type will
1152
+ #
1153
+ # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
1334
1154
 
1335
1155
  # If the ledger account links to another object in Modern Treasury, the type will
1336
1156
  # be populated here, otherwise null. The value is one of internal_account or
1337
1157
  # external_account.
1338
1158
  #
1339
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::LedgerAccount#ledgerable_type
1159
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::LedgerAccount#ledgerable_type
1340
1160
  module LedgerableType
1341
1161
  extend ModernTreasury::Internal::Type::Enum
1342
1162
 
@@ -1345,15 +1165,12 @@ module ModernTreasury
1345
1165
  INTERNAL_ACCOUNT = :internal_account
1346
1166
  VIRTUAL_ACCOUNT = :virtual_account
1347
1167
 
1348
- finalize!
1349
-
1350
- # @!parse
1351
- # # @return [Array<Symbol>]
1352
- # def self.values; end
1168
+ # @!method self.values
1169
+ # @return [Array<Symbol>]
1353
1170
  end
1354
1171
  end
1355
1172
 
1356
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount#party_address
1173
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount#party_address
1357
1174
  class PartyAddress < ModernTreasury::Internal::Type::BaseModel
1358
1175
  # @!attribute country
1359
1176
  # Country code conforms to [ISO 3166-1 alpha-2]
@@ -1389,35 +1206,33 @@ module ModernTreasury
1389
1206
  # @return [String, nil]
1390
1207
  optional :region, String, nil?: true
1391
1208
 
1392
- # @!parse
1393
- # # Required if receiving wire payments.
1394
- # #
1395
- # # @param country [String, nil]
1396
- # # @param line1 [String, nil]
1397
- # # @param line2 [String, nil]
1398
- # # @param locality [String, nil]
1399
- # # @param postal_code [String, nil]
1400
- # # @param region [String, nil]
1401
- # #
1402
- # def initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil, **) = super
1403
-
1404
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1209
+ # @!method initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil)
1210
+ # Required if receiving wire payments.
1211
+ #
1212
+ # @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
1213
+ #
1214
+ # @param line1 [String, nil]
1215
+ #
1216
+ # @param line2 [String, nil]
1217
+ #
1218
+ # @param locality [String, nil] Locality or City.
1219
+ #
1220
+ # @param postal_code [String, nil] The postal code of the address.
1221
+ #
1222
+ # @param region [String, nil] Region or State.
1405
1223
  end
1406
1224
 
1407
1225
  # Either `individual` or `business`.
1408
1226
  #
1409
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount#party_type
1227
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount#party_type
1410
1228
  module PartyType
1411
1229
  extend ModernTreasury::Internal::Type::Enum
1412
1230
 
1413
1231
  BUSINESS = :business
1414
1232
  INDIVIDUAL = :individual
1415
1233
 
1416
- finalize!
1417
-
1418
- # @!parse
1419
- # # @return [Array<Symbol>]
1420
- # def self.values; end
1234
+ # @!method self.values
1235
+ # @return [Array<Symbol>]
1421
1236
  end
1422
1237
 
1423
1238
  class RoutingDetail < ModernTreasury::Internal::Type::BaseModel
@@ -1428,30 +1243,26 @@ module ModernTreasury
1428
1243
 
1429
1244
  # @!attribute routing_number_type
1430
1245
  #
1431
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail::RoutingNumberType]
1246
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail::RoutingNumberType]
1432
1247
  required :routing_number_type,
1433
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail::RoutingNumberType }
1248
+ enum: -> {
1249
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail::RoutingNumberType
1250
+ }
1434
1251
 
1435
- # @!attribute [r] payment_type
1252
+ # @!attribute payment_type
1436
1253
  #
1437
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail::PaymentType, nil]
1254
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail::PaymentType, nil]
1438
1255
  optional :payment_type,
1439
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail::PaymentType }
1440
-
1441
- # @!parse
1442
- # # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail::PaymentType]
1443
- # attr_writer :payment_type
1444
-
1445
- # @!parse
1446
- # # @param routing_number [String]
1447
- # # @param routing_number_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail::RoutingNumberType]
1448
- # # @param payment_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail::PaymentType]
1449
- # #
1450
- # def initialize(routing_number:, routing_number_type:, payment_type: nil, **) = super
1256
+ enum: -> {
1257
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail::PaymentType
1258
+ }
1451
1259
 
1452
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1260
+ # @!method initialize(routing_number:, routing_number_type:, payment_type: nil)
1261
+ # @param routing_number [String]
1262
+ # @param routing_number_type [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail::RoutingNumberType]
1263
+ # @param payment_type [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail::PaymentType]
1453
1264
 
1454
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail#routing_number_type
1265
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail#routing_number_type
1455
1266
  module RoutingNumberType
1456
1267
  extend ModernTreasury::Internal::Type::Enum
1457
1268
 
@@ -1477,14 +1288,11 @@ module ModernTreasury
1477
1288
  SWIFT = :swift
1478
1289
  ZA_NATIONAL_CLEARING_CODE = :za_national_clearing_code
1479
1290
 
1480
- finalize!
1481
-
1482
- # @!parse
1483
- # # @return [Array<Symbol>]
1484
- # def self.values; end
1291
+ # @!method self.values
1292
+ # @return [Array<Symbol>]
1485
1293
  end
1486
1294
 
1487
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail#payment_type
1295
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail#payment_type
1488
1296
  module PaymentType
1489
1297
  extend ModernTreasury::Internal::Type::Enum
1490
1298
 
@@ -1519,11 +1327,8 @@ module ModernTreasury
1519
1327
  WIRE = :wire
1520
1328
  ZENGIN = :zengin
1521
1329
 
1522
- finalize!
1523
-
1524
- # @!parse
1525
- # # @return [Array<Symbol>]
1526
- # def self.values; end
1330
+ # @!method self.values
1331
+ # @return [Array<Symbol>]
1527
1332
  end
1528
1333
  end
1529
1334
  end
@@ -1553,8 +1358,8 @@ module ModernTreasury
1553
1358
  # @!attribute currency
1554
1359
  # Must conform to ISO 4217. Defaults to the currency of the internal account.
1555
1360
  #
1556
- # @return [Symbol, ModernTreasury::Models::Currency, nil]
1557
- optional :currency, enum: -> { ModernTreasury::Models::Currency }, nil?: true
1361
+ # @return [Symbol, ModernTreasury::Currency, nil]
1362
+ optional :currency, enum: -> { ModernTreasury::Currency }, nil?: true
1558
1363
 
1559
1364
  # @!attribute date_lower_bound
1560
1365
  # The earliest date the payment may come in. Format: yyyy-mm-dd
@@ -1578,9 +1383,11 @@ module ModernTreasury
1578
1383
  # One of credit or debit. When you are receiving money, use credit. When you are
1579
1384
  # being charged, use debit.
1580
1385
  #
1581
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::Direction, nil]
1386
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::Direction, nil]
1582
1387
  optional :direction,
1583
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::Direction },
1388
+ enum: -> {
1389
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::Direction
1390
+ },
1584
1391
  nil?: true
1585
1392
 
1586
1393
  # @!attribute internal_account_id
@@ -1589,21 +1396,19 @@ module ModernTreasury
1589
1396
  # @return [String, nil]
1590
1397
  optional :internal_account_id, String, nil?: true
1591
1398
 
1592
- # @!attribute [r] ledger_transaction
1399
+ # @!attribute ledger_transaction
1593
1400
  # Specifies a ledger transaction object that will be created with the expected
1594
1401
  # payment. If the ledger transaction cannot be created, then the expected payment
1595
1402
  # creation will fail. The resulting ledger transaction will mirror the status of
1596
1403
  # the expected payment.
1597
1404
  #
1598
- # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction, nil]
1405
+ # @return [ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction, nil]
1599
1406
  optional :ledger_transaction,
1600
- -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction }
1407
+ -> {
1408
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction
1409
+ }
1601
1410
 
1602
- # @!parse
1603
- # # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction]
1604
- # attr_writer :ledger_transaction
1605
-
1606
- # @!attribute [r] ledger_transaction_id
1411
+ # @!attribute ledger_transaction_id
1607
1412
  # Either ledger_transaction or ledger_transaction_id can be provided. Only a
1608
1413
  # pending ledger transaction can be attached upon expected payment creation. Once
1609
1414
  # the expected payment is created, the status of the ledger transaction tracks the
@@ -1612,31 +1417,21 @@ module ModernTreasury
1612
1417
  # @return [String, nil]
1613
1418
  optional :ledger_transaction_id, String
1614
1419
 
1615
- # @!parse
1616
- # # @return [String]
1617
- # attr_writer :ledger_transaction_id
1618
-
1619
- # @!attribute [r] line_items
1420
+ # @!attribute line_items
1620
1421
  #
1621
- # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LineItem>, nil]
1422
+ # @return [Array<ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LineItem>, nil]
1622
1423
  optional :line_items,
1623
- -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LineItem] }
1424
+ -> {
1425
+ ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LineItem]
1426
+ }
1624
1427
 
1625
- # @!parse
1626
- # # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LineItem>]
1627
- # attr_writer :line_items
1628
-
1629
- # @!attribute [r] metadata
1428
+ # @!attribute metadata
1630
1429
  # Additional data represented as key-value pairs. Both the key and value must be
1631
1430
  # strings.
1632
1431
  #
1633
1432
  # @return [Hash{Symbol=>String}, nil]
1634
1433
  optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
1635
1434
 
1636
- # @!parse
1637
- # # @return [Hash{Symbol=>String}]
1638
- # attr_writer :metadata
1639
-
1640
1435
  # @!attribute reconciliation_filters
1641
1436
  # The reconciliation filters you have for this payment.
1642
1437
  #
@@ -1652,9 +1447,9 @@ module ModernTreasury
1652
1447
  # @!attribute reconciliation_rule_variables
1653
1448
  # An array of reconciliation rule variables for this payment.
1654
1449
  #
1655
- # @return [Array<ModernTreasury::Models::ReconciliationRule>, nil]
1450
+ # @return [Array<ModernTreasury::ReconciliationRule>, nil]
1656
1451
  optional :reconciliation_rule_variables,
1657
- -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Models::ReconciliationRule] },
1452
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ReconciliationRule] },
1658
1453
  nil?: true
1659
1454
 
1660
1455
  # @!attribute remittance_information
@@ -1678,84 +1473,76 @@ module ModernTreasury
1678
1473
  # One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen,
1679
1474
  # sepa, signet, wire.
1680
1475
  #
1681
- # @return [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil]
1682
- optional :type, enum: -> { ModernTreasury::Models::ExpectedPaymentType }, nil?: true
1683
-
1684
- # @!parse
1685
- # # @param amount_lower_bound [Integer, nil]
1686
- # # @param amount_upper_bound [Integer, nil]
1687
- # # @param counterparty_id [String, nil]
1688
- # # @param currency [Symbol, ModernTreasury::Models::Currency, nil]
1689
- # # @param date_lower_bound [Date, nil]
1690
- # # @param date_upper_bound [Date, nil]
1691
- # # @param description [String, nil]
1692
- # # @param direction [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::Direction, nil]
1693
- # # @param internal_account_id [String, nil]
1694
- # # @param ledger_transaction [ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction]
1695
- # # @param ledger_transaction_id [String]
1696
- # # @param line_items [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LineItem>]
1697
- # # @param metadata [Hash{Symbol=>String}]
1698
- # # @param reconciliation_filters [Object, nil]
1699
- # # @param reconciliation_groups [Object, nil]
1700
- # # @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>, nil]
1701
- # # @param remittance_information [String, nil]
1702
- # # @param statement_descriptor [String, nil]
1703
- # # @param type [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil]
1704
- # #
1705
- # def initialize(
1706
- # amount_lower_bound: nil,
1707
- # amount_upper_bound: nil,
1708
- # counterparty_id: nil,
1709
- # currency: nil,
1710
- # date_lower_bound: nil,
1711
- # date_upper_bound: nil,
1712
- # description: nil,
1713
- # direction: nil,
1714
- # internal_account_id: nil,
1715
- # ledger_transaction: nil,
1716
- # ledger_transaction_id: nil,
1717
- # line_items: nil,
1718
- # metadata: nil,
1719
- # reconciliation_filters: nil,
1720
- # reconciliation_groups: nil,
1721
- # reconciliation_rule_variables: nil,
1722
- # remittance_information: nil,
1723
- # statement_descriptor: nil,
1724
- # type: nil,
1725
- # **
1726
- # )
1727
- # super
1728
- # end
1729
-
1730
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1476
+ # @return [Symbol, ModernTreasury::ExpectedPaymentType, nil]
1477
+ optional :type, enum: -> { ModernTreasury::ExpectedPaymentType }, nil?: true
1478
+
1479
+ # @!method initialize(amount_lower_bound: nil, amount_upper_bound: nil, counterparty_id: nil, currency: nil, date_lower_bound: nil, date_upper_bound: nil, description: nil, direction: nil, internal_account_id: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, reconciliation_filters: nil, reconciliation_groups: nil, reconciliation_rule_variables: nil, remittance_information: nil, statement_descriptor: nil, type: nil)
1480
+ # Some parameter documentations has been truncated, see
1481
+ # {ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest}
1482
+ # for more details.
1483
+ #
1484
+ # @param amount_lower_bound [Integer, nil] The lowest amount this expected payment may be equal to. Value in specified curr
1485
+ #
1486
+ # @param amount_upper_bound [Integer, nil] The highest amount this expected payment may be equal to. Value in specified cur
1487
+ #
1488
+ # @param counterparty_id [String, nil] The ID of the counterparty you expect for this payment.
1489
+ #
1490
+ # @param currency [Symbol, ModernTreasury::Currency, nil] Must conform to ISO 4217. Defaults to the currency of the internal account.
1491
+ #
1492
+ # @param date_lower_bound [Date, nil] The earliest date the payment may come in. Format: yyyy-mm-dd
1493
+ #
1494
+ # @param date_upper_bound [Date, nil] The latest date the payment may come in. Format: yyyy-mm-dd
1495
+ #
1496
+ # @param description [String, nil] An optional description for internal use.
1497
+ #
1498
+ # @param direction [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::Direction, nil] One of credit or debit. When you are receiving money, use credit. When you are b
1499
+ #
1500
+ # @param internal_account_id [String, nil] The ID of the Internal Account for the expected payment.
1501
+ #
1502
+ # @param ledger_transaction [ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction] Specifies a ledger transaction object that will be created with the expected pay
1503
+ #
1504
+ # @param ledger_transaction_id [String] Either ledger_transaction or ledger_transaction_id can be provided. Only a pendi
1505
+ #
1506
+ # @param line_items [Array<ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LineItem>]
1507
+ #
1508
+ # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
1509
+ #
1510
+ # @param reconciliation_filters [Object, nil] The reconciliation filters you have for this payment.
1511
+ #
1512
+ # @param reconciliation_groups [Object, nil] The reconciliation groups you have for this payment.
1513
+ #
1514
+ # @param reconciliation_rule_variables [Array<ModernTreasury::ReconciliationRule>, nil] An array of reconciliation rule variables for this payment.
1515
+ #
1516
+ # @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
1517
+ #
1518
+ # @param statement_descriptor [String, nil] The statement description you expect to see on the transaction. For ACH payments
1519
+ #
1520
+ # @param type [Symbol, ModernTreasury::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, se
1731
1521
 
1732
1522
  # One of credit or debit. When you are receiving money, use credit. When you are
1733
1523
  # being charged, use debit.
1734
1524
  #
1735
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest#direction
1525
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest#direction
1736
1526
  module Direction
1737
1527
  extend ModernTreasury::Internal::Type::Enum
1738
1528
 
1739
1529
  CREDIT = :credit
1740
1530
  DEBIT = :debit
1741
1531
 
1742
- finalize!
1743
-
1744
- # @!parse
1745
- # # @return [Array<Symbol>]
1746
- # def self.values; end
1532
+ # @!method self.values
1533
+ # @return [Array<Symbol>]
1747
1534
  end
1748
1535
 
1749
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest#ledger_transaction
1536
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest#ledger_transaction
1750
1537
  class LedgerTransaction < ModernTreasury::Internal::Type::BaseModel
1751
1538
  # @!attribute ledger_entries
1752
1539
  # An array of ledger entry objects.
1753
1540
  #
1754
- # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::LedgerEntry>]
1541
+ # @return [Array<ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::LedgerEntry>]
1755
1542
  required :ledger_entries,
1756
1543
  -> do
1757
1544
  ModernTreasury::Internal::Type::ArrayOf[
1758
- ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::LedgerEntry
1545
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::LedgerEntry
1759
1546
  ]
1760
1547
  end
1761
1548
 
@@ -1765,118 +1552,89 @@ module ModernTreasury
1765
1552
  # @return [String, nil]
1766
1553
  optional :description, String, nil?: true
1767
1554
 
1768
- # @!attribute [r] effective_at
1555
+ # @!attribute effective_at
1769
1556
  # The timestamp (ISO8601 format) at which the ledger transaction happened for
1770
1557
  # reporting purposes.
1771
1558
  #
1772
1559
  # @return [Time, nil]
1773
1560
  optional :effective_at, Time
1774
1561
 
1775
- # @!parse
1776
- # # @return [Time]
1777
- # attr_writer :effective_at
1778
-
1779
- # @!attribute [r] effective_date
1562
+ # @!attribute effective_date
1780
1563
  # The date (YYYY-MM-DD) on which the ledger transaction happened for reporting
1781
1564
  # purposes.
1782
1565
  #
1783
1566
  # @return [Date, nil]
1784
1567
  optional :effective_date, Date
1785
1568
 
1786
- # @!parse
1787
- # # @return [Date]
1788
- # attr_writer :effective_date
1789
-
1790
- # @!attribute [r] external_id
1569
+ # @!attribute external_id
1791
1570
  # A unique string to represent the ledger transaction. Only one pending or posted
1792
1571
  # ledger transaction may have this ID in the ledger.
1793
1572
  #
1794
1573
  # @return [String, nil]
1795
1574
  optional :external_id, String
1796
1575
 
1797
- # @!parse
1798
- # # @return [String]
1799
- # attr_writer :external_id
1800
-
1801
- # @!attribute [r] ledgerable_id
1576
+ # @!attribute ledgerable_id
1802
1577
  # If the ledger transaction can be reconciled to another object in Modern
1803
1578
  # Treasury, the id will be populated here, otherwise null.
1804
1579
  #
1805
1580
  # @return [String, nil]
1806
1581
  optional :ledgerable_id, String
1807
1582
 
1808
- # @!parse
1809
- # # @return [String]
1810
- # attr_writer :ledgerable_id
1811
-
1812
- # @!attribute [r] ledgerable_type
1583
+ # @!attribute ledgerable_type
1813
1584
  # If the ledger transaction can be reconciled to another object in Modern
1814
1585
  # Treasury, the type will be populated here, otherwise null. This can be one of
1815
1586
  # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
1816
1587
  # reversal.
1817
1588
  #
1818
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::LedgerableType, nil]
1589
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::LedgerableType, nil]
1819
1590
  optional :ledgerable_type,
1820
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::LedgerableType }
1591
+ enum: -> {
1592
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::LedgerableType
1593
+ }
1821
1594
 
1822
- # @!parse
1823
- # # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::LedgerableType]
1824
- # attr_writer :ledgerable_type
1825
-
1826
- # @!attribute [r] metadata
1595
+ # @!attribute metadata
1827
1596
  # Additional data represented as key-value pairs. Both the key and value must be
1828
1597
  # strings.
1829
1598
  #
1830
1599
  # @return [Hash{Symbol=>String}, nil]
1831
1600
  optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
1832
1601
 
1833
- # @!parse
1834
- # # @return [Hash{Symbol=>String}]
1835
- # attr_writer :metadata
1836
-
1837
- # @!attribute [r] status
1602
+ # @!attribute status
1838
1603
  # To post a ledger transaction at creation, use `posted`.
1839
1604
  #
1840
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::Status, nil]
1605
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::Status, nil]
1841
1606
  optional :status,
1842
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::Status }
1843
-
1844
- # @!parse
1845
- # # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::Status]
1846
- # attr_writer :status
1847
-
1848
- # @!parse
1849
- # # Specifies a ledger transaction object that will be created with the expected
1850
- # # payment. If the ledger transaction cannot be created, then the expected payment
1851
- # # creation will fail. The resulting ledger transaction will mirror the status of
1852
- # # the expected payment.
1853
- # #
1854
- # # @param ledger_entries [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::LedgerEntry>]
1855
- # # @param description [String, nil]
1856
- # # @param effective_at [Time]
1857
- # # @param effective_date [Date]
1858
- # # @param external_id [String]
1859
- # # @param ledgerable_id [String]
1860
- # # @param ledgerable_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::LedgerableType]
1861
- # # @param metadata [Hash{Symbol=>String}]
1862
- # # @param status [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::Status]
1863
- # #
1864
- # def initialize(
1865
- # ledger_entries:,
1866
- # description: nil,
1867
- # effective_at: nil,
1868
- # effective_date: nil,
1869
- # external_id: nil,
1870
- # ledgerable_id: nil,
1871
- # ledgerable_type: nil,
1872
- # metadata: nil,
1873
- # status: nil,
1874
- # **
1875
- # )
1876
- # super
1877
- # end
1878
-
1879
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1607
+ enum: -> {
1608
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::Status
1609
+ }
1610
+
1611
+ # @!method initialize(ledger_entries:, description: nil, effective_at: nil, effective_date: nil, external_id: nil, ledgerable_id: nil, ledgerable_type: nil, metadata: nil, status: nil)
1612
+ # Some parameter documentations has been truncated, see
1613
+ # {ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction}
1614
+ # for more details.
1615
+ #
1616
+ # Specifies a ledger transaction object that will be created with the expected
1617
+ # payment. If the ledger transaction cannot be created, then the expected payment
1618
+ # creation will fail. The resulting ledger transaction will mirror the status of
1619
+ # the expected payment.
1620
+ #
1621
+ # @param ledger_entries [Array<ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::LedgerEntry>] An array of ledger entry objects.
1622
+ #
1623
+ # @param description [String, nil] An optional description for internal use.
1624
+ #
1625
+ # @param effective_at [Time] The timestamp (ISO8601 format) at which the ledger transaction happened for repo
1626
+ #
1627
+ # @param effective_date [Date] The date (YYYY-MM-DD) on which the ledger transaction happened for reporting pur
1628
+ #
1629
+ # @param external_id [String] A unique string to represent the ledger transaction. Only one pending or posted
1630
+ #
1631
+ # @param ledgerable_id [String] If the ledger transaction can be reconciled to another object in Modern Treasury
1632
+ #
1633
+ # @param ledgerable_type [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::LedgerableType] If the ledger transaction can be reconciled to another object in Modern Treasury
1634
+ #
1635
+ # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
1636
+ #
1637
+ # @param status [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::Status] To post a ledger transaction at creation, use `posted`.
1880
1638
 
1881
1639
  class LedgerEntry < ModernTreasury::Internal::Type::BaseModel
1882
1640
  # @!attribute amount
@@ -1892,8 +1650,8 @@ module ModernTreasury
1892
1650
  # `debit` pulls money from someone else's account to your own. Note that wire,
1893
1651
  # rtp, and check payments will always be `credit`.
1894
1652
  #
1895
- # @return [Symbol, ModernTreasury::Models::TransactionDirection]
1896
- required :direction, enum: -> { ModernTreasury::Models::TransactionDirection }
1653
+ # @return [Symbol, ModernTreasury::TransactionDirection]
1654
+ required :direction, enum: -> { ModernTreasury::TransactionDirection }
1897
1655
 
1898
1656
  # @!attribute ledger_account_id
1899
1657
  # The ledger account that this ledger entry is associated with.
@@ -1918,17 +1676,13 @@ module ModernTreasury
1918
1676
  # @return [Integer, nil]
1919
1677
  optional :lock_version, Integer, nil?: true
1920
1678
 
1921
- # @!attribute [r] metadata
1679
+ # @!attribute metadata
1922
1680
  # Additional data represented as key-value pairs. Both the key and value must be
1923
1681
  # strings.
1924
1682
  #
1925
1683
  # @return [Hash{Symbol=>String}, nil]
1926
1684
  optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
1927
1685
 
1928
- # @!parse
1929
- # # @return [Hash{Symbol=>String}]
1930
- # attr_writer :metadata
1931
-
1932
1686
  # @!attribute pending_balance_amount
1933
1687
  # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
1934
1688
  # account’s pending balance. If any of these conditions would be false after the
@@ -1954,33 +1708,28 @@ module ModernTreasury
1954
1708
  ModernTreasury::Internal::Type::Boolean,
1955
1709
  nil?: true
1956
1710
 
1957
- # @!parse
1958
- # # @param amount [Integer]
1959
- # # @param direction [Symbol, ModernTreasury::Models::TransactionDirection]
1960
- # # @param ledger_account_id [String]
1961
- # # @param available_balance_amount [Hash{Symbol=>Integer}, nil]
1962
- # # @param lock_version [Integer, nil]
1963
- # # @param metadata [Hash{Symbol=>String}]
1964
- # # @param pending_balance_amount [Hash{Symbol=>Integer}, nil]
1965
- # # @param posted_balance_amount [Hash{Symbol=>Integer}, nil]
1966
- # # @param show_resulting_ledger_account_balances [Boolean, nil]
1967
- # #
1968
- # def initialize(
1969
- # amount:,
1970
- # direction:,
1971
- # ledger_account_id:,
1972
- # available_balance_amount: nil,
1973
- # lock_version: nil,
1974
- # metadata: nil,
1975
- # pending_balance_amount: nil,
1976
- # posted_balance_amount: nil,
1977
- # show_resulting_ledger_account_balances: nil,
1978
- # **
1979
- # )
1980
- # super
1981
- # end
1982
-
1983
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1711
+ # @!method initialize(amount:, direction:, ledger_account_id:, available_balance_amount: nil, lock_version: nil, metadata: nil, pending_balance_amount: nil, posted_balance_amount: nil, show_resulting_ledger_account_balances: nil)
1712
+ # Some parameter documentations has been truncated, see
1713
+ # {ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::LedgerEntry}
1714
+ # for more details.
1715
+ #
1716
+ # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
1717
+ #
1718
+ # @param direction [Symbol, ModernTreasury::TransactionDirection] One of `credit`, `debit`. Describes the direction money is flowing in the transa
1719
+ #
1720
+ # @param ledger_account_id [String] The ledger account that this ledger entry is associated with.
1721
+ #
1722
+ # @param available_balance_amount [Hash{Symbol=>Integer}, nil] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the accou
1723
+ #
1724
+ # @param lock_version [Integer, nil] Lock version of the ledger account. This can be passed when creating a ledger tr
1725
+ #
1726
+ # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
1727
+ #
1728
+ # @param pending_balance_amount [Hash{Symbol=>Integer}, nil] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the accou
1729
+ #
1730
+ # @param posted_balance_amount [Hash{Symbol=>Integer}, nil] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the accou
1731
+ #
1732
+ # @param show_resulting_ledger_account_balances [Boolean, nil] If true, response will include the balance of the associated ledger account for
1984
1733
  end
1985
1734
 
1986
1735
  # If the ledger transaction can be reconciled to another object in Modern
@@ -1988,7 +1737,7 @@ module ModernTreasury
1988
1737
  # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
1989
1738
  # reversal.
1990
1739
  #
1991
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction#ledgerable_type
1740
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction#ledgerable_type
1992
1741
  module LedgerableType
1993
1742
  extend ModernTreasury::Internal::Type::Enum
1994
1743
 
@@ -1999,16 +1748,13 @@ module ModernTreasury
1999
1748
  RETURN = :return
2000
1749
  REVERSAL = :reversal
2001
1750
 
2002
- finalize!
2003
-
2004
- # @!parse
2005
- # # @return [Array<Symbol>]
2006
- # def self.values; end
1751
+ # @!method self.values
1752
+ # @return [Array<Symbol>]
2007
1753
  end
2008
1754
 
2009
1755
  # To post a ledger transaction at creation, use `posted`.
2010
1756
  #
2011
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction#status
1757
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction#status
2012
1758
  module Status
2013
1759
  extend ModernTreasury::Internal::Type::Enum
2014
1760
 
@@ -2016,11 +1762,8 @@ module ModernTreasury
2016
1762
  PENDING = :pending
2017
1763
  POSTED = :posted
2018
1764
 
2019
- finalize!
2020
-
2021
- # @!parse
2022
- # # @return [Array<Symbol>]
2023
- # def self.values; end
1765
+ # @!method self.values
1766
+ # @return [Array<Symbol>]
2024
1767
  end
2025
1768
  end
2026
1769
 
@@ -2045,26 +1788,25 @@ module ModernTreasury
2045
1788
  # @return [String, nil]
2046
1789
  optional :description, String, nil?: true
2047
1790
 
2048
- # @!attribute [r] metadata
1791
+ # @!attribute metadata
2049
1792
  # Additional data represented as key-value pairs. Both the key and value must be
2050
1793
  # strings.
2051
1794
  #
2052
1795
  # @return [Hash{Symbol=>String}, nil]
2053
1796
  optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
2054
1797
 
2055
- # @!parse
2056
- # # @return [Hash{Symbol=>String}]
2057
- # attr_writer :metadata
2058
-
2059
- # @!parse
2060
- # # @param amount [Integer]
2061
- # # @param accounting_category_id [String, nil]
2062
- # # @param description [String, nil]
2063
- # # @param metadata [Hash{Symbol=>String}]
2064
- # #
2065
- # def initialize(amount:, accounting_category_id: nil, description: nil, metadata: nil, **) = super
2066
-
2067
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1798
+ # @!method initialize(amount:, accounting_category_id: nil, description: nil, metadata: nil)
1799
+ # Some parameter documentations has been truncated, see
1800
+ # {ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LineItem}
1801
+ # for more details.
1802
+ #
1803
+ # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
1804
+ #
1805
+ # @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
1806
+ #
1807
+ # @param description [String, nil] A free-form description of the line item.
1808
+ #
1809
+ # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
2068
1810
  end
2069
1811
  end
2070
1812
 
@@ -2072,9 +1814,11 @@ module ModernTreasury
2072
1814
  # @!attribute ledger_entries
2073
1815
  # An array of ledger entry objects.
2074
1816
  #
2075
- # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::LedgerEntry>]
1817
+ # @return [Array<ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::LedgerEntry>]
2076
1818
  required :ledger_entries,
2077
- -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::LedgerEntry] }
1819
+ -> {
1820
+ ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::LedgerEntry]
1821
+ }
2078
1822
 
2079
1823
  # @!attribute description
2080
1824
  # An optional description for internal use.
@@ -2082,113 +1826,84 @@ module ModernTreasury
2082
1826
  # @return [String, nil]
2083
1827
  optional :description, String, nil?: true
2084
1828
 
2085
- # @!attribute [r] effective_at
1829
+ # @!attribute effective_at
2086
1830
  # The timestamp (ISO8601 format) at which the ledger transaction happened for
2087
1831
  # reporting purposes.
2088
1832
  #
2089
1833
  # @return [Time, nil]
2090
1834
  optional :effective_at, Time
2091
1835
 
2092
- # @!parse
2093
- # # @return [Time]
2094
- # attr_writer :effective_at
2095
-
2096
- # @!attribute [r] effective_date
1836
+ # @!attribute effective_date
2097
1837
  # The date (YYYY-MM-DD) on which the ledger transaction happened for reporting
2098
1838
  # purposes.
2099
1839
  #
2100
1840
  # @return [Date, nil]
2101
1841
  optional :effective_date, Date
2102
1842
 
2103
- # @!parse
2104
- # # @return [Date]
2105
- # attr_writer :effective_date
2106
-
2107
- # @!attribute [r] external_id
1843
+ # @!attribute external_id
2108
1844
  # A unique string to represent the ledger transaction. Only one pending or posted
2109
1845
  # ledger transaction may have this ID in the ledger.
2110
1846
  #
2111
1847
  # @return [String, nil]
2112
1848
  optional :external_id, String
2113
1849
 
2114
- # @!parse
2115
- # # @return [String]
2116
- # attr_writer :external_id
2117
-
2118
- # @!attribute [r] ledgerable_id
1850
+ # @!attribute ledgerable_id
2119
1851
  # If the ledger transaction can be reconciled to another object in Modern
2120
1852
  # Treasury, the id will be populated here, otherwise null.
2121
1853
  #
2122
1854
  # @return [String, nil]
2123
1855
  optional :ledgerable_id, String
2124
1856
 
2125
- # @!parse
2126
- # # @return [String]
2127
- # attr_writer :ledgerable_id
2128
-
2129
- # @!attribute [r] ledgerable_type
1857
+ # @!attribute ledgerable_type
2130
1858
  # If the ledger transaction can be reconciled to another object in Modern
2131
1859
  # Treasury, the type will be populated here, otherwise null. This can be one of
2132
1860
  # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
2133
1861
  # reversal.
2134
1862
  #
2135
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::LedgerableType, nil]
1863
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::LedgerableType, nil]
2136
1864
  optional :ledgerable_type,
2137
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::LedgerableType }
1865
+ enum: -> {
1866
+ ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::LedgerableType
1867
+ }
2138
1868
 
2139
- # @!parse
2140
- # # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::LedgerableType]
2141
- # attr_writer :ledgerable_type
2142
-
2143
- # @!attribute [r] metadata
1869
+ # @!attribute metadata
2144
1870
  # Additional data represented as key-value pairs. Both the key and value must be
2145
1871
  # strings.
2146
1872
  #
2147
1873
  # @return [Hash{Symbol=>String}, nil]
2148
1874
  optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
2149
1875
 
2150
- # @!parse
2151
- # # @return [Hash{Symbol=>String}]
2152
- # attr_writer :metadata
2153
-
2154
- # @!attribute [r] status
1876
+ # @!attribute status
2155
1877
  # To post a ledger transaction at creation, use `posted`.
2156
1878
  #
2157
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::Status, nil]
1879
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::Status, nil]
2158
1880
  optional :status,
2159
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::Status }
2160
-
2161
- # @!parse
2162
- # # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::Status]
2163
- # attr_writer :status
2164
-
2165
- # @!parse
2166
- # # @param ledger_entries [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::LedgerEntry>]
2167
- # # @param description [String, nil]
2168
- # # @param effective_at [Time]
2169
- # # @param effective_date [Date]
2170
- # # @param external_id [String]
2171
- # # @param ledgerable_id [String]
2172
- # # @param ledgerable_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::LedgerableType]
2173
- # # @param metadata [Hash{Symbol=>String}]
2174
- # # @param status [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::Status]
2175
- # #
2176
- # def initialize(
2177
- # ledger_entries:,
2178
- # description: nil,
2179
- # effective_at: nil,
2180
- # effective_date: nil,
2181
- # external_id: nil,
2182
- # ledgerable_id: nil,
2183
- # ledgerable_type: nil,
2184
- # metadata: nil,
2185
- # status: nil,
2186
- # **
2187
- # )
2188
- # super
2189
- # end
2190
-
2191
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1881
+ enum: -> {
1882
+ ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::Status
1883
+ }
1884
+
1885
+ # @!method initialize(ledger_entries:, description: nil, effective_at: nil, effective_date: nil, external_id: nil, ledgerable_id: nil, ledgerable_type: nil, metadata: nil, status: nil)
1886
+ # Some parameter documentations has been truncated, see
1887
+ # {ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest}
1888
+ # for more details.
1889
+ #
1890
+ # @param ledger_entries [Array<ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::LedgerEntry>] An array of ledger entry objects.
1891
+ #
1892
+ # @param description [String, nil] An optional description for internal use.
1893
+ #
1894
+ # @param effective_at [Time] The timestamp (ISO8601 format) at which the ledger transaction happened for repo
1895
+ #
1896
+ # @param effective_date [Date] The date (YYYY-MM-DD) on which the ledger transaction happened for reporting pur
1897
+ #
1898
+ # @param external_id [String] A unique string to represent the ledger transaction. Only one pending or posted
1899
+ #
1900
+ # @param ledgerable_id [String] If the ledger transaction can be reconciled to another object in Modern Treasury
1901
+ #
1902
+ # @param ledgerable_type [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::LedgerableType] If the ledger transaction can be reconciled to another object in Modern Treasury
1903
+ #
1904
+ # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
1905
+ #
1906
+ # @param status [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::Status] To post a ledger transaction at creation, use `posted`.
2192
1907
 
2193
1908
  class LedgerEntry < ModernTreasury::Internal::Type::BaseModel
2194
1909
  # @!attribute amount
@@ -2204,8 +1919,8 @@ module ModernTreasury
2204
1919
  # `debit` pulls money from someone else's account to your own. Note that wire,
2205
1920
  # rtp, and check payments will always be `credit`.
2206
1921
  #
2207
- # @return [Symbol, ModernTreasury::Models::TransactionDirection]
2208
- required :direction, enum: -> { ModernTreasury::Models::TransactionDirection }
1922
+ # @return [Symbol, ModernTreasury::TransactionDirection]
1923
+ required :direction, enum: -> { ModernTreasury::TransactionDirection }
2209
1924
 
2210
1925
  # @!attribute ledger_account_id
2211
1926
  # The ledger account that this ledger entry is associated with.
@@ -2230,17 +1945,13 @@ module ModernTreasury
2230
1945
  # @return [Integer, nil]
2231
1946
  optional :lock_version, Integer, nil?: true
2232
1947
 
2233
- # @!attribute [r] metadata
1948
+ # @!attribute metadata
2234
1949
  # Additional data represented as key-value pairs. Both the key and value must be
2235
1950
  # strings.
2236
1951
  #
2237
1952
  # @return [Hash{Symbol=>String}, nil]
2238
1953
  optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
2239
1954
 
2240
- # @!parse
2241
- # # @return [Hash{Symbol=>String}]
2242
- # attr_writer :metadata
2243
-
2244
1955
  # @!attribute pending_balance_amount
2245
1956
  # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
2246
1957
  # account’s pending balance. If any of these conditions would be false after the
@@ -2266,33 +1977,28 @@ module ModernTreasury
2266
1977
  ModernTreasury::Internal::Type::Boolean,
2267
1978
  nil?: true
2268
1979
 
2269
- # @!parse
2270
- # # @param amount [Integer]
2271
- # # @param direction [Symbol, ModernTreasury::Models::TransactionDirection]
2272
- # # @param ledger_account_id [String]
2273
- # # @param available_balance_amount [Hash{Symbol=>Integer}, nil]
2274
- # # @param lock_version [Integer, nil]
2275
- # # @param metadata [Hash{Symbol=>String}]
2276
- # # @param pending_balance_amount [Hash{Symbol=>Integer}, nil]
2277
- # # @param posted_balance_amount [Hash{Symbol=>Integer}, nil]
2278
- # # @param show_resulting_ledger_account_balances [Boolean, nil]
2279
- # #
2280
- # def initialize(
2281
- # amount:,
2282
- # direction:,
2283
- # ledger_account_id:,
2284
- # available_balance_amount: nil,
2285
- # lock_version: nil,
2286
- # metadata: nil,
2287
- # pending_balance_amount: nil,
2288
- # posted_balance_amount: nil,
2289
- # show_resulting_ledger_account_balances: nil,
2290
- # **
2291
- # )
2292
- # super
2293
- # end
2294
-
2295
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1980
+ # @!method initialize(amount:, direction:, ledger_account_id:, available_balance_amount: nil, lock_version: nil, metadata: nil, pending_balance_amount: nil, posted_balance_amount: nil, show_resulting_ledger_account_balances: nil)
1981
+ # Some parameter documentations has been truncated, see
1982
+ # {ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::LedgerEntry}
1983
+ # for more details.
1984
+ #
1985
+ # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
1986
+ #
1987
+ # @param direction [Symbol, ModernTreasury::TransactionDirection] One of `credit`, `debit`. Describes the direction money is flowing in the transa
1988
+ #
1989
+ # @param ledger_account_id [String] The ledger account that this ledger entry is associated with.
1990
+ #
1991
+ # @param available_balance_amount [Hash{Symbol=>Integer}, nil] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the accou
1992
+ #
1993
+ # @param lock_version [Integer, nil] Lock version of the ledger account. This can be passed when creating a ledger tr
1994
+ #
1995
+ # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
1996
+ #
1997
+ # @param pending_balance_amount [Hash{Symbol=>Integer}, nil] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the accou
1998
+ #
1999
+ # @param posted_balance_amount [Hash{Symbol=>Integer}, nil] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the accou
2000
+ #
2001
+ # @param show_resulting_ledger_account_balances [Boolean, nil] If true, response will include the balance of the associated ledger account for
2296
2002
  end
2297
2003
 
2298
2004
  # If the ledger transaction can be reconciled to another object in Modern
@@ -2300,7 +2006,7 @@ module ModernTreasury
2300
2006
  # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
2301
2007
  # reversal.
2302
2008
  #
2303
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest#ledgerable_type
2009
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest#ledgerable_type
2304
2010
  module LedgerableType
2305
2011
  extend ModernTreasury::Internal::Type::Enum
2306
2012
 
@@ -2311,16 +2017,13 @@ module ModernTreasury
2311
2017
  RETURN = :return
2312
2018
  REVERSAL = :reversal
2313
2019
 
2314
- finalize!
2315
-
2316
- # @!parse
2317
- # # @return [Array<Symbol>]
2318
- # def self.values; end
2020
+ # @!method self.values
2021
+ # @return [Array<Symbol>]
2319
2022
  end
2320
2023
 
2321
2024
  # To post a ledger transaction at creation, use `posted`.
2322
2025
  #
2323
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest#status
2026
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest#status
2324
2027
  module Status
2325
2028
  extend ModernTreasury::Internal::Type::Enum
2326
2029
 
@@ -2328,11 +2031,8 @@ module ModernTreasury
2328
2031
  PENDING = :pending
2329
2032
  POSTED = :posted
2330
2033
 
2331
- finalize!
2332
-
2333
- # @!parse
2334
- # # @return [Array<Symbol>]
2335
- # def self.values; end
2034
+ # @!method self.values
2035
+ # @return [Array<Symbol>]
2336
2036
  end
2337
2037
  end
2338
2038
 
@@ -2378,34 +2078,28 @@ module ModernTreasury
2378
2078
  # @return [String, nil]
2379
2079
  required :vendor_code_type, String, nil?: true
2380
2080
 
2381
- # @!attribute [r] metadata
2081
+ # @!attribute metadata
2382
2082
  # Additional data represented as key-value pairs. Both the key and value must be
2383
2083
  # strings.
2384
2084
  #
2385
2085
  # @return [Hash{Symbol=>String}, nil]
2386
2086
  optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
2387
2087
 
2388
- # @!parse
2389
- # # @return [Hash{Symbol=>String}]
2390
- # attr_writer :metadata
2391
-
2392
- # @!attribute [r] posted
2088
+ # @!attribute posted
2393
2089
  # This field will be `true` if the transaction has posted to the account.
2394
2090
  #
2395
2091
  # @return [Boolean, nil]
2396
2092
  optional :posted, ModernTreasury::Internal::Type::Boolean
2397
2093
 
2398
- # @!parse
2399
- # # @return [Boolean]
2400
- # attr_writer :posted
2401
-
2402
2094
  # @!attribute type
2403
2095
  # The type of the transaction. Examples could be
2404
2096
  # `card, `ach`, `wire`, `check`, `rtp`, `book`, or `sen`.
2405
2097
  #
2406
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest::Type, nil]
2098
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::TransactionCreateRequest::Type, nil]
2407
2099
  optional :type,
2408
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest::Type },
2100
+ enum: -> {
2101
+ ModernTreasury::BulkRequestCreateParams::Resource::TransactionCreateRequest::Type
2102
+ },
2409
2103
  nil?: true
2410
2104
 
2411
2105
  # @!attribute vendor_description
@@ -2415,40 +2109,35 @@ module ModernTreasury
2415
2109
  # @return [String, nil]
2416
2110
  optional :vendor_description, String, nil?: true
2417
2111
 
2418
- # @!parse
2419
- # # @param amount [Integer]
2420
- # # @param as_of_date [Date, nil]
2421
- # # @param direction [String]
2422
- # # @param internal_account_id [String]
2423
- # # @param vendor_code [String, nil]
2424
- # # @param vendor_code_type [String, nil]
2425
- # # @param metadata [Hash{Symbol=>String}]
2426
- # # @param posted [Boolean]
2427
- # # @param type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest::Type, nil]
2428
- # # @param vendor_description [String, nil]
2429
- # #
2430
- # def initialize(
2431
- # amount:,
2432
- # as_of_date:,
2433
- # direction:,
2434
- # internal_account_id:,
2435
- # vendor_code:,
2436
- # vendor_code_type:,
2437
- # metadata: nil,
2438
- # posted: nil,
2439
- # type: nil,
2440
- # vendor_description: nil,
2441
- # **
2442
- # )
2443
- # super
2444
- # end
2445
-
2446
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
2112
+ # @!method initialize(amount:, as_of_date:, direction:, internal_account_id:, vendor_code:, vendor_code_type:, metadata: nil, posted: nil, type: nil, vendor_description: nil)
2113
+ # Some parameter documentations has been truncated, see
2114
+ # {ModernTreasury::BulkRequestCreateParams::Resource::TransactionCreateRequest}
2115
+ # for more details.
2116
+ #
2117
+ # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
2118
+ #
2119
+ # @param as_of_date [Date, nil] The date on which the transaction occurred.
2120
+ #
2121
+ # @param direction [String] Either `credit` or `debit`.
2122
+ #
2123
+ # @param internal_account_id [String] The ID of the relevant Internal Account.
2124
+ #
2125
+ # @param vendor_code [String, nil] When applicable, the bank-given code that determines the transaction's category.
2126
+ #
2127
+ # @param vendor_code_type [String, nil] The type of `vendor_code` being reported. Can be one of `bai2`, `bankprov`, `bnk
2128
+ #
2129
+ # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
2130
+ #
2131
+ # @param posted [Boolean] This field will be `true` if the transaction has posted to the account.
2132
+ #
2133
+ # @param type [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::TransactionCreateRequest::Type, nil] The type of the transaction. Examples could be `card, `ach`, `wire`, `check`, `r
2134
+ #
2135
+ # @param vendor_description [String, nil] The transaction detail text that often appears in on your bank statement and in
2447
2136
 
2448
2137
  # The type of the transaction. Examples could be
2449
2138
  # `card, `ach`, `wire`, `check`, `rtp`, `book`, or `sen`.
2450
2139
  #
2451
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest#type
2140
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::TransactionCreateRequest#type
2452
2141
  module Type
2453
2142
  extend ModernTreasury::Internal::Type::Enum
2454
2143
 
@@ -2484,53 +2173,38 @@ module ModernTreasury
2484
2173
  ZENGIN = :zengin
2485
2174
  OTHER = :other
2486
2175
 
2487
- finalize!
2488
-
2489
- # @!parse
2490
- # # @return [Array<Symbol>]
2491
- # def self.values; end
2176
+ # @!method self.values
2177
+ # @return [Array<Symbol>]
2492
2178
  end
2493
2179
  end
2494
2180
 
2495
2181
  class ID < ModernTreasury::Internal::Type::BaseModel
2496
- # @!attribute [r] id
2182
+ # @!attribute id
2497
2183
  #
2498
2184
  # @return [String, nil]
2499
2185
  optional :id, String
2500
2186
 
2501
- # @!parse
2502
- # # @return [String]
2503
- # attr_writer :id
2504
-
2505
- # @!parse
2506
- # # @param id [String]
2507
- # #
2508
- # def initialize(id: nil, **) = super
2509
-
2510
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
2187
+ # @!method initialize(id: nil)
2188
+ # @param id [String]
2511
2189
  end
2512
2190
 
2513
2191
  class PaymentOrderUpdateRequestWithID < ModernTreasury::Internal::Type::BaseModel
2514
- # @!attribute [r] id
2192
+ # @!attribute id
2515
2193
  #
2516
2194
  # @return [String, nil]
2517
2195
  optional :id, String
2518
2196
 
2519
- # @!parse
2520
- # # @return [String]
2521
- # attr_writer :id
2522
-
2523
- # @!attribute [r] accounting
2197
+ # @!attribute accounting
2524
2198
  #
2525
- # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting, nil]
2199
+ # @return [ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting, nil]
2526
2200
  optional :accounting,
2527
- -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting }
2528
-
2529
- # @!parse
2530
- # # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting]
2531
- # attr_writer :accounting
2201
+ -> {
2202
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting
2203
+ }
2532
2204
 
2533
2205
  # @!attribute accounting_category_id
2206
+ # @deprecated
2207
+ #
2534
2208
  # The ID of one of your accounting categories. Note that these will only be
2535
2209
  # accessible if your accounting system has been connected.
2536
2210
  #
@@ -2538,31 +2212,31 @@ module ModernTreasury
2538
2212
  optional :accounting_category_id, String, nil?: true
2539
2213
 
2540
2214
  # @!attribute accounting_ledger_class_id
2215
+ # @deprecated
2216
+ #
2541
2217
  # The ID of one of your accounting ledger classes. Note that these will only be
2542
2218
  # accessible if your accounting system has been connected.
2543
2219
  #
2544
2220
  # @return [String, nil]
2545
2221
  optional :accounting_ledger_class_id, String, nil?: true
2546
2222
 
2547
- # @!attribute [r] amount
2223
+ # @!attribute amount
2548
2224
  # Value in specified currency's smallest unit. e.g. $10 would be represented as
2549
2225
  # 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
2550
2226
  #
2551
2227
  # @return [Integer, nil]
2552
2228
  optional :amount, Integer
2553
2229
 
2554
- # @!parse
2555
- # # @return [Integer]
2556
- # attr_writer :amount
2557
-
2558
2230
  # @!attribute charge_bearer
2559
2231
  # The party that will pay the fees for the payment order. Only applies to wire
2560
2232
  # payment orders. Can be one of shared, sender, or receiver, which correspond
2561
2233
  # respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
2562
2234
  #
2563
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ChargeBearer, nil]
2235
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ChargeBearer, nil]
2564
2236
  optional :charge_bearer,
2565
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ChargeBearer },
2237
+ enum: -> {
2238
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ChargeBearer
2239
+ },
2566
2240
  nil?: true
2567
2241
 
2568
2242
  # @!attribute counterparty_id
@@ -2571,15 +2245,11 @@ module ModernTreasury
2571
2245
  # @return [String, nil]
2572
2246
  optional :counterparty_id, String, nil?: true
2573
2247
 
2574
- # @!attribute [r] currency
2248
+ # @!attribute currency
2575
2249
  # Defaults to the currency of the originating account.
2576
2250
  #
2577
- # @return [Symbol, ModernTreasury::Models::Currency, nil]
2578
- optional :currency, enum: -> { ModernTreasury::Models::Currency }
2579
-
2580
- # @!parse
2581
- # # @return [Symbol, ModernTreasury::Models::Currency]
2582
- # attr_writer :currency
2251
+ # @return [Symbol, ModernTreasury::Currency, nil]
2252
+ optional :currency, enum: -> { ModernTreasury::Currency }
2583
2253
 
2584
2254
  # @!attribute description
2585
2255
  # An optional description for internal use.
@@ -2587,21 +2257,19 @@ module ModernTreasury
2587
2257
  # @return [String, nil]
2588
2258
  optional :description, String, nil?: true
2589
2259
 
2590
- # @!attribute [r] direction
2260
+ # @!attribute direction
2591
2261
  # One of `credit`, `debit`. Describes the direction money is flowing in the
2592
2262
  # transaction. A `credit` moves money from your account to someone else's. A
2593
2263
  # `debit` pulls money from someone else's account to your own. Note that wire,
2594
2264
  # rtp, and check payments will always be `credit`.
2595
2265
  #
2596
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Direction, nil]
2266
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Direction, nil]
2597
2267
  optional :direction,
2598
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Direction }
2599
-
2600
- # @!parse
2601
- # # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Direction]
2602
- # attr_writer :direction
2268
+ enum: -> {
2269
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Direction
2270
+ }
2603
2271
 
2604
- # @!attribute [r] effective_date
2272
+ # @!attribute effective_date
2605
2273
  # Date transactions are to be posted to the participants' account. Defaults to the
2606
2274
  # current business day or the next business day if the current day is a bank
2607
2275
  # holiday or weekend. Format: yyyy-mm-dd.
@@ -2609,28 +2277,22 @@ module ModernTreasury
2609
2277
  # @return [Date, nil]
2610
2278
  optional :effective_date, Date
2611
2279
 
2612
- # @!parse
2613
- # # @return [Date]
2614
- # attr_writer :effective_date
2615
-
2616
2280
  # @!attribute expires_at
2617
2281
  # RFP payments require an expires_at. This value must be past the effective_date.
2618
2282
  #
2619
2283
  # @return [Time, nil]
2620
2284
  optional :expires_at, Time, nil?: true
2621
2285
 
2622
- # @!attribute [r] fallback_type
2286
+ # @!attribute fallback_type
2623
2287
  # A payment type to fallback to if the original type is not valid for the
2624
2288
  # receiving account. Currently, this only supports falling back from RTP to ACH
2625
2289
  # (type=rtp and fallback_type=ach)
2626
2290
  #
2627
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::FallbackType, nil]
2291
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::FallbackType, nil]
2628
2292
  optional :fallback_type,
2629
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::FallbackType }
2630
-
2631
- # @!parse
2632
- # # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::FallbackType]
2633
- # attr_writer :fallback_type
2293
+ enum: -> {
2294
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::FallbackType
2295
+ }
2634
2296
 
2635
2297
  # @!attribute foreign_exchange_contract
2636
2298
  # If present, indicates a specific foreign exchange contract number that has been
@@ -2644,54 +2306,42 @@ module ModernTreasury
2644
2306
  # `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
2645
2307
  # currency matches the originating account currency.
2646
2308
  #
2647
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ForeignExchangeIndicator, nil]
2309
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ForeignExchangeIndicator, nil]
2648
2310
  optional :foreign_exchange_indicator,
2649
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ForeignExchangeIndicator },
2311
+ enum: -> {
2312
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ForeignExchangeIndicator
2313
+ },
2650
2314
  nil?: true
2651
2315
 
2652
- # @!attribute [r] line_items
2316
+ # @!attribute line_items
2653
2317
  # An array of line items that must sum up to the amount of the payment order.
2654
2318
  #
2655
- # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::LineItem>, nil]
2319
+ # @return [Array<ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::LineItem>, nil]
2656
2320
  optional :line_items,
2657
- -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::LineItem] }
2658
-
2659
- # @!parse
2660
- # # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::LineItem>]
2661
- # attr_writer :line_items
2321
+ -> {
2322
+ ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::LineItem]
2323
+ }
2662
2324
 
2663
- # @!attribute [r] metadata
2325
+ # @!attribute metadata
2664
2326
  # Additional data represented as key-value pairs. Both the key and value must be
2665
2327
  # strings.
2666
2328
  #
2667
2329
  # @return [Hash{Symbol=>String}, nil]
2668
2330
  optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
2669
2331
 
2670
- # @!parse
2671
- # # @return [Hash{Symbol=>String}]
2672
- # attr_writer :metadata
2673
-
2674
- # @!attribute [r] nsf_protected
2332
+ # @!attribute nsf_protected
2675
2333
  # A boolean to determine if NSF Protection is enabled for this payment order. Note
2676
2334
  # that this setting must also be turned on in your organization settings page.
2677
2335
  #
2678
2336
  # @return [Boolean, nil]
2679
2337
  optional :nsf_protected, ModernTreasury::Internal::Type::Boolean
2680
2338
 
2681
- # @!parse
2682
- # # @return [Boolean]
2683
- # attr_writer :nsf_protected
2684
-
2685
- # @!attribute [r] originating_account_id
2339
+ # @!attribute originating_account_id
2686
2340
  # The ID of one of your organization's internal accounts.
2687
2341
  #
2688
2342
  # @return [String, nil]
2689
2343
  optional :originating_account_id, String
2690
2344
 
2691
- # @!parse
2692
- # # @return [String]
2693
- # attr_writer :originating_account_id
2694
-
2695
2345
  # @!attribute originating_party_name
2696
2346
  # If present, this will replace your default company name on receiver's bank
2697
2347
  # statement. This field can only be used for ACH payments currently. For ACH, only
@@ -2701,18 +2351,16 @@ module ModernTreasury
2701
2351
  # @return [String, nil]
2702
2352
  optional :originating_party_name, String, nil?: true
2703
2353
 
2704
- # @!attribute [r] priority
2354
+ # @!attribute priority
2705
2355
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
2706
2356
  # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
2707
2357
  # an overnight check rather than standard mail.
2708
2358
  #
2709
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Priority, nil]
2359
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Priority, nil]
2710
2360
  optional :priority,
2711
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Priority }
2712
-
2713
- # @!parse
2714
- # # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Priority]
2715
- # attr_writer :priority
2361
+ enum: -> {
2362
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Priority
2363
+ }
2716
2364
 
2717
2365
  # @!attribute process_after
2718
2366
  # If present, Modern Treasury will not process the payment until after this time.
@@ -2732,20 +2380,18 @@ module ModernTreasury
2732
2380
  # @return [String, nil]
2733
2381
  optional :purpose, String, nil?: true
2734
2382
 
2735
- # @!attribute [r] receiving_account
2383
+ # @!attribute receiving_account
2736
2384
  # Either `receiving_account` or `receiving_account_id` must be present. When using
2737
2385
  # `receiving_account_id`, you may pass the id of an external account or an
2738
2386
  # internal account.
2739
2387
  #
2740
- # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount, nil]
2388
+ # @return [ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount, nil]
2741
2389
  optional :receiving_account,
2742
- -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount }
2743
-
2744
- # @!parse
2745
- # # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount]
2746
- # attr_writer :receiving_account
2390
+ -> {
2391
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount
2392
+ }
2747
2393
 
2748
- # @!attribute [r] receiving_account_id
2394
+ # @!attribute receiving_account_id
2749
2395
  # Either `receiving_account` or `receiving_account_id` must be present. When using
2750
2396
  # `receiving_account_id`, you may pass the id of an external account or an
2751
2397
  # internal account.
@@ -2753,10 +2399,6 @@ module ModernTreasury
2753
2399
  # @return [String, nil]
2754
2400
  optional :receiving_account_id, String
2755
2401
 
2756
- # @!parse
2757
- # # @return [String]
2758
- # attr_writer :receiving_account_id
2759
-
2760
2402
  # @!attribute remittance_information
2761
2403
  # For `ach`, this field will be passed through on an addenda record. For `wire`
2762
2404
  # payments the field will be passed through as the "Originator to Beneficiary
@@ -2783,18 +2425,16 @@ module ModernTreasury
2783
2425
  # @return [String, nil]
2784
2426
  optional :statement_descriptor, String, nil?: true
2785
2427
 
2786
- # @!attribute [r] status
2428
+ # @!attribute status
2787
2429
  # To cancel a payment order, use `cancelled`. To redraft a returned payment order,
2788
2430
  # use `approved`. To undo approval on a denied or approved payment order, use
2789
2431
  # `needs_approval`.
2790
2432
  #
2791
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Status, nil]
2433
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Status, nil]
2792
2434
  optional :status,
2793
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Status }
2794
-
2795
- # @!parse
2796
- # # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Status]
2797
- # attr_writer :status
2435
+ enum: -> {
2436
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Status
2437
+ }
2798
2438
 
2799
2439
  # @!attribute subtype
2800
2440
  # An additional layer of classification for the type of payment order you are
@@ -2802,20 +2442,16 @@ module ModernTreasury
2802
2442
  # payment orders, the `subtype` represents the SEC code. We currently support
2803
2443
  # `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
2804
2444
  #
2805
- # @return [Symbol, ModernTreasury::Models::PaymentOrderSubtype, nil]
2806
- optional :subtype, enum: -> { ModernTreasury::Models::PaymentOrderSubtype }, nil?: true
2445
+ # @return [Symbol, ModernTreasury::PaymentOrderSubtype, nil]
2446
+ optional :subtype, enum: -> { ModernTreasury::PaymentOrderSubtype }, nil?: true
2807
2447
 
2808
- # @!attribute [r] type
2448
+ # @!attribute type
2809
2449
  # One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`,
2810
2450
  # `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
2811
2451
  # `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
2812
2452
  #
2813
- # @return [Symbol, ModernTreasury::Models::PaymentOrderType, nil]
2814
- optional :type, enum: -> { ModernTreasury::Models::PaymentOrderType }
2815
-
2816
- # @!parse
2817
- # # @return [Symbol, ModernTreasury::Models::PaymentOrderType]
2818
- # attr_writer :type
2453
+ # @return [Symbol, ModernTreasury::PaymentOrderType, nil]
2454
+ optional :type, enum: -> { ModernTreasury::PaymentOrderType }
2819
2455
 
2820
2456
  # @!attribute ultimate_originating_party_identifier
2821
2457
  # This represents the identifier by which the person is known to the receiver when
@@ -2849,87 +2485,82 @@ module ModernTreasury
2849
2485
  # @return [String, nil]
2850
2486
  optional :ultimate_receiving_party_name, String, nil?: true
2851
2487
 
2852
- # @!parse
2853
- # # @param id [String]
2854
- # # @param accounting [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting]
2855
- # # @param accounting_category_id [String, nil]
2856
- # # @param accounting_ledger_class_id [String, nil]
2857
- # # @param amount [Integer]
2858
- # # @param charge_bearer [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ChargeBearer, nil]
2859
- # # @param counterparty_id [String, nil]
2860
- # # @param currency [Symbol, ModernTreasury::Models::Currency]
2861
- # # @param description [String, nil]
2862
- # # @param direction [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Direction]
2863
- # # @param effective_date [Date]
2864
- # # @param expires_at [Time, nil]
2865
- # # @param fallback_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::FallbackType]
2866
- # # @param foreign_exchange_contract [String, nil]
2867
- # # @param foreign_exchange_indicator [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ForeignExchangeIndicator, nil]
2868
- # # @param line_items [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::LineItem>]
2869
- # # @param metadata [Hash{Symbol=>String}]
2870
- # # @param nsf_protected [Boolean]
2871
- # # @param originating_account_id [String]
2872
- # # @param originating_party_name [String, nil]
2873
- # # @param priority [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Priority]
2874
- # # @param process_after [Time, nil]
2875
- # # @param purpose [String, nil]
2876
- # # @param receiving_account [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount]
2877
- # # @param receiving_account_id [String]
2878
- # # @param remittance_information [String, nil]
2879
- # # @param send_remittance_advice [Boolean, nil]
2880
- # # @param statement_descriptor [String, nil]
2881
- # # @param status [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Status]
2882
- # # @param subtype [Symbol, ModernTreasury::Models::PaymentOrderSubtype, nil]
2883
- # # @param type [Symbol, ModernTreasury::Models::PaymentOrderType]
2884
- # # @param ultimate_originating_party_identifier [String, nil]
2885
- # # @param ultimate_originating_party_name [String, nil]
2886
- # # @param ultimate_receiving_party_identifier [String, nil]
2887
- # # @param ultimate_receiving_party_name [String, nil]
2888
- # #
2889
- # def initialize(
2890
- # id: nil,
2891
- # accounting: nil,
2892
- # accounting_category_id: nil,
2893
- # accounting_ledger_class_id: nil,
2894
- # amount: nil,
2895
- # charge_bearer: nil,
2896
- # counterparty_id: nil,
2897
- # currency: nil,
2898
- # description: nil,
2899
- # direction: nil,
2900
- # effective_date: nil,
2901
- # expires_at: nil,
2902
- # fallback_type: nil,
2903
- # foreign_exchange_contract: nil,
2904
- # foreign_exchange_indicator: nil,
2905
- # line_items: nil,
2906
- # metadata: nil,
2907
- # nsf_protected: nil,
2908
- # originating_account_id: nil,
2909
- # originating_party_name: nil,
2910
- # priority: nil,
2911
- # process_after: nil,
2912
- # purpose: nil,
2913
- # receiving_account: nil,
2914
- # receiving_account_id: nil,
2915
- # remittance_information: nil,
2916
- # send_remittance_advice: nil,
2917
- # statement_descriptor: nil,
2918
- # status: nil,
2919
- # subtype: nil,
2920
- # type: nil,
2921
- # ultimate_originating_party_identifier: nil,
2922
- # ultimate_originating_party_name: nil,
2923
- # ultimate_receiving_party_identifier: nil,
2924
- # ultimate_receiving_party_name: nil,
2925
- # **
2926
- # )
2927
- # super
2928
- # end
2929
-
2930
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
2931
-
2932
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#accounting
2488
+ # @!method initialize(id: nil, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, amount: nil, charge_bearer: nil, counterparty_id: nil, currency: nil, description: nil, direction: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_account_id: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, status: nil, subtype: nil, type: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil)
2489
+ # Some parameter documentations has been truncated, see
2490
+ # {ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID}
2491
+ # for more details.
2492
+ #
2493
+ # @param id [String]
2494
+ #
2495
+ # @param accounting [ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting]
2496
+ #
2497
+ # @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
2498
+ #
2499
+ # @param accounting_ledger_class_id [String, nil] The ID of one of your accounting ledger classes. Note that these will only be ac
2500
+ #
2501
+ # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
2502
+ #
2503
+ # @param charge_bearer [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ChargeBearer, nil] The party that will pay the fees for the payment order. Only applies to wire pay
2504
+ #
2505
+ # @param counterparty_id [String, nil] Required when receiving_account_id is passed the ID of an external account.
2506
+ #
2507
+ # @param currency [Symbol, ModernTreasury::Currency] Defaults to the currency of the originating account.
2508
+ #
2509
+ # @param description [String, nil] An optional description for internal use.
2510
+ #
2511
+ # @param direction [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Direction] One of `credit`, `debit`. Describes the direction money is flowing in the transa
2512
+ #
2513
+ # @param effective_date [Date] Date transactions are to be posted to the participants' account. Defaults to the
2514
+ #
2515
+ # @param expires_at [Time, nil] RFP payments require an expires_at. This value must be past the effective_date.
2516
+ #
2517
+ # @param fallback_type [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::FallbackType] A payment type to fallback to if the original type is not valid for the receivin
2518
+ #
2519
+ # @param foreign_exchange_contract [String, nil] If present, indicates a specific foreign exchange contract number that has been
2520
+ #
2521
+ # @param foreign_exchange_indicator [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ForeignExchangeIndicator, nil] Indicates the type of FX transfer to initiate, can be either `variable_to_fixed`
2522
+ #
2523
+ # @param line_items [Array<ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::LineItem>] An array of line items that must sum up to the amount of the payment order.
2524
+ #
2525
+ # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
2526
+ #
2527
+ # @param nsf_protected [Boolean] A boolean to determine if NSF Protection is enabled for this payment order. Note
2528
+ #
2529
+ # @param originating_account_id [String] The ID of one of your organization's internal accounts.
2530
+ #
2531
+ # @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
2532
+ #
2533
+ # @param priority [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
2534
+ #
2535
+ # @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
2536
+ #
2537
+ # @param purpose [String, nil] For `wire`, this is usually the purpose which is transmitted via the "InstrForDb
2538
+ #
2539
+ # @param receiving_account [ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount] Either `receiving_account` or `receiving_account_id` must be present. When using
2540
+ #
2541
+ # @param receiving_account_id [String] Either `receiving_account` or `receiving_account_id` must be present. When using
2542
+ #
2543
+ # @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
2544
+ #
2545
+ # @param send_remittance_advice [Boolean, nil] Send an email to the counterparty when the payment order is sent to the bank. If
2546
+ #
2547
+ # @param statement_descriptor [String, nil] An optional descriptor which will appear in the receiver's statement. For `check
2548
+ #
2549
+ # @param status [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Status] To cancel a payment order, use `cancelled`. To redraft a returned payment order,
2550
+ #
2551
+ # @param subtype [Symbol, ModernTreasury::PaymentOrderSubtype, nil] An additional layer of classification for the type of payment order you are doin
2552
+ #
2553
+ # @param type [Symbol, ModernTreasury::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sep
2554
+ #
2555
+ # @param ultimate_originating_party_identifier [String, nil] This represents the identifier by which the person is known to the receiver when
2556
+ #
2557
+ # @param ultimate_originating_party_name [String, nil] This represents the name of the person that the payment is on behalf of when usi
2558
+ #
2559
+ # @param ultimate_receiving_party_identifier [String, nil] This represents the name of the merchant that the payment is being sent to when
2560
+ #
2561
+ # @param ultimate_receiving_party_name [String, nil] This represents the identifier by which the merchant is known to the person init
2562
+
2563
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#accounting
2933
2564
  class Accounting < ModernTreasury::Internal::Type::BaseModel
2934
2565
  # @!attribute account_id
2935
2566
  # The ID of one of your accounting categories. Note that these will only be
@@ -2946,20 +2577,21 @@ module ModernTreasury
2946
2577
  # @return [String, nil]
2947
2578
  optional :class_id, String, nil?: true
2948
2579
 
2949
- # @!parse
2950
- # # @param account_id [String, nil]
2951
- # # @param class_id [String, nil]
2952
- # #
2953
- # def initialize(account_id: nil, class_id: nil, **) = super
2954
-
2955
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
2580
+ # @!method initialize(account_id: nil, class_id: nil)
2581
+ # Some parameter documentations has been truncated, see
2582
+ # {ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting}
2583
+ # for more details.
2584
+ #
2585
+ # @param account_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
2586
+ #
2587
+ # @param class_id [String, nil] The ID of one of the class objects in your accounting system. Class objects trac
2956
2588
  end
2957
2589
 
2958
2590
  # The party that will pay the fees for the payment order. Only applies to wire
2959
2591
  # payment orders. Can be one of shared, sender, or receiver, which correspond
2960
2592
  # respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
2961
2593
  #
2962
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#charge_bearer
2594
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#charge_bearer
2963
2595
  module ChargeBearer
2964
2596
  extend ModernTreasury::Internal::Type::Enum
2965
2597
 
@@ -2967,11 +2599,8 @@ module ModernTreasury
2967
2599
  SENDER = :sender
2968
2600
  RECEIVER = :receiver
2969
2601
 
2970
- finalize!
2971
-
2972
- # @!parse
2973
- # # @return [Array<Symbol>]
2974
- # def self.values; end
2602
+ # @!method self.values
2603
+ # @return [Array<Symbol>]
2975
2604
  end
2976
2605
 
2977
2606
  # One of `credit`, `debit`. Describes the direction money is flowing in the
@@ -2979,53 +2608,44 @@ module ModernTreasury
2979
2608
  # `debit` pulls money from someone else's account to your own. Note that wire,
2980
2609
  # rtp, and check payments will always be `credit`.
2981
2610
  #
2982
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#direction
2611
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#direction
2983
2612
  module Direction
2984
2613
  extend ModernTreasury::Internal::Type::Enum
2985
2614
 
2986
2615
  CREDIT = :credit
2987
2616
  DEBIT = :debit
2988
2617
 
2989
- finalize!
2990
-
2991
- # @!parse
2992
- # # @return [Array<Symbol>]
2993
- # def self.values; end
2618
+ # @!method self.values
2619
+ # @return [Array<Symbol>]
2994
2620
  end
2995
2621
 
2996
2622
  # A payment type to fallback to if the original type is not valid for the
2997
2623
  # receiving account. Currently, this only supports falling back from RTP to ACH
2998
2624
  # (type=rtp and fallback_type=ach)
2999
2625
  #
3000
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#fallback_type
2626
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#fallback_type
3001
2627
  module FallbackType
3002
2628
  extend ModernTreasury::Internal::Type::Enum
3003
2629
 
3004
2630
  ACH = :ach
3005
2631
 
3006
- finalize!
3007
-
3008
- # @!parse
3009
- # # @return [Array<Symbol>]
3010
- # def self.values; end
2632
+ # @!method self.values
2633
+ # @return [Array<Symbol>]
3011
2634
  end
3012
2635
 
3013
2636
  # Indicates the type of FX transfer to initiate, can be either
3014
2637
  # `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
3015
2638
  # currency matches the originating account currency.
3016
2639
  #
3017
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#foreign_exchange_indicator
2640
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#foreign_exchange_indicator
3018
2641
  module ForeignExchangeIndicator
3019
2642
  extend ModernTreasury::Internal::Type::Enum
3020
2643
 
3021
2644
  FIXED_TO_VARIABLE = :fixed_to_variable
3022
2645
  VARIABLE_TO_FIXED = :variable_to_fixed
3023
2646
 
3024
- finalize!
3025
-
3026
- # @!parse
3027
- # # @return [Array<Symbol>]
3028
- # def self.values; end
2647
+ # @!method self.values
2648
+ # @return [Array<Symbol>]
3029
2649
  end
3030
2650
 
3031
2651
  class LineItem < ModernTreasury::Internal::Type::BaseModel
@@ -3049,112 +2669,90 @@ module ModernTreasury
3049
2669
  # @return [String, nil]
3050
2670
  optional :description, String, nil?: true
3051
2671
 
3052
- # @!attribute [r] metadata
2672
+ # @!attribute metadata
3053
2673
  # Additional data represented as key-value pairs. Both the key and value must be
3054
2674
  # strings.
3055
2675
  #
3056
2676
  # @return [Hash{Symbol=>String}, nil]
3057
2677
  optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
3058
2678
 
3059
- # @!parse
3060
- # # @return [Hash{Symbol=>String}]
3061
- # attr_writer :metadata
3062
-
3063
- # @!parse
3064
- # # @param amount [Integer]
3065
- # # @param accounting_category_id [String, nil]
3066
- # # @param description [String, nil]
3067
- # # @param metadata [Hash{Symbol=>String}]
3068
- # #
3069
- # def initialize(amount:, accounting_category_id: nil, description: nil, metadata: nil, **) = super
3070
-
3071
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
2679
+ # @!method initialize(amount:, accounting_category_id: nil, description: nil, metadata: nil)
2680
+ # Some parameter documentations has been truncated, see
2681
+ # {ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::LineItem}
2682
+ # for more details.
2683
+ #
2684
+ # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
2685
+ #
2686
+ # @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
2687
+ #
2688
+ # @param description [String, nil] A free-form description of the line item.
2689
+ #
2690
+ # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
3072
2691
  end
3073
2692
 
3074
2693
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
3075
2694
  # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
3076
2695
  # an overnight check rather than standard mail.
3077
2696
  #
3078
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#priority
2697
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#priority
3079
2698
  module Priority
3080
2699
  extend ModernTreasury::Internal::Type::Enum
3081
2700
 
3082
2701
  HIGH = :high
3083
2702
  NORMAL = :normal
3084
2703
 
3085
- finalize!
3086
-
3087
- # @!parse
3088
- # # @return [Array<Symbol>]
3089
- # def self.values; end
2704
+ # @!method self.values
2705
+ # @return [Array<Symbol>]
3090
2706
  end
3091
2707
 
3092
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#receiving_account
2708
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#receiving_account
3093
2709
  class ReceivingAccount < ModernTreasury::Internal::Type::BaseModel
3094
- # @!attribute [r] account_details
2710
+ # @!attribute account_details
3095
2711
  #
3096
- # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail>, nil]
2712
+ # @return [Array<ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail>, nil]
3097
2713
  optional :account_details,
3098
2714
  -> do
3099
2715
  ModernTreasury::Internal::Type::ArrayOf[
3100
- ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail
2716
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail
3101
2717
  ]
3102
2718
  end
3103
2719
 
3104
- # @!parse
3105
- # # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail>]
3106
- # attr_writer :account_details
3107
-
3108
- # @!attribute [r] account_type
2720
+ # @!attribute account_type
3109
2721
  # Can be `checking`, `savings` or `other`.
3110
2722
  #
3111
- # @return [Symbol, ModernTreasury::Models::ExternalAccountType, nil]
3112
- optional :account_type, enum: -> { ModernTreasury::Models::ExternalAccountType }
3113
-
3114
- # @!parse
3115
- # # @return [Symbol, ModernTreasury::Models::ExternalAccountType]
3116
- # attr_writer :account_type
2723
+ # @return [Symbol, ModernTreasury::ExternalAccountType, nil]
2724
+ optional :account_type, enum: -> { ModernTreasury::ExternalAccountType }
3117
2725
 
3118
- # @!attribute [r] contact_details
2726
+ # @!attribute contact_details
3119
2727
  #
3120
- # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::ContactDetail>, nil]
2728
+ # @return [Array<ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::ContactDetail>, nil]
3121
2729
  optional :contact_details,
3122
2730
  -> do
3123
2731
  ModernTreasury::Internal::Type::ArrayOf[
3124
- ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::ContactDetail
2732
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::ContactDetail
3125
2733
  ]
3126
2734
  end
3127
2735
 
3128
- # @!parse
3129
- # # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::ContactDetail>]
3130
- # attr_writer :contact_details
3131
-
3132
- # @!attribute [r] ledger_account
2736
+ # @!attribute ledger_account
3133
2737
  # Specifies a ledger account object that will be created with the external
3134
2738
  # account. The resulting ledger account is linked to the external account for
3135
2739
  # auto-ledgering Payment objects. See
3136
2740
  # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
3137
2741
  # for more details.
3138
2742
  #
3139
- # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::LedgerAccount, nil]
2743
+ # @return [ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::LedgerAccount, nil]
3140
2744
  optional :ledger_account,
3141
- -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::LedgerAccount }
3142
-
3143
- # @!parse
3144
- # # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::LedgerAccount]
3145
- # attr_writer :ledger_account
2745
+ -> {
2746
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::LedgerAccount
2747
+ }
3146
2748
 
3147
- # @!attribute [r] metadata
2749
+ # @!attribute metadata
3148
2750
  # Additional data represented as key-value pairs. Both the key and value must be
3149
2751
  # strings.
3150
2752
  #
3151
2753
  # @return [Hash{Symbol=>String}, nil]
3152
2754
  optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
3153
2755
 
3154
- # @!parse
3155
- # # @return [Hash{Symbol=>String}]
3156
- # attr_writer :metadata
3157
-
3158
2756
  # @!attribute name
3159
2757
  # A nickname for the external account. This is only for internal usage and won't
3160
2758
  # affect any payments
@@ -3162,106 +2760,85 @@ module ModernTreasury
3162
2760
  # @return [String, nil]
3163
2761
  optional :name, String, nil?: true
3164
2762
 
3165
- # @!attribute [r] party_address
2763
+ # @!attribute party_address
3166
2764
  # Required if receiving wire payments.
3167
2765
  #
3168
- # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::PartyAddress, nil]
2766
+ # @return [ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::PartyAddress, nil]
3169
2767
  optional :party_address,
3170
- -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::PartyAddress }
3171
-
3172
- # @!parse
3173
- # # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::PartyAddress]
3174
- # attr_writer :party_address
2768
+ -> {
2769
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::PartyAddress
2770
+ }
3175
2771
 
3176
- # @!attribute [r] party_identifier
2772
+ # @!attribute party_identifier
3177
2773
  #
3178
2774
  # @return [String, nil]
3179
2775
  optional :party_identifier, String
3180
2776
 
3181
- # @!parse
3182
- # # @return [String]
3183
- # attr_writer :party_identifier
3184
-
3185
- # @!attribute [r] party_name
2777
+ # @!attribute party_name
3186
2778
  # If this value isn't provided, it will be inherited from the counterparty's name.
3187
2779
  #
3188
2780
  # @return [String, nil]
3189
2781
  optional :party_name, String
3190
2782
 
3191
- # @!parse
3192
- # # @return [String]
3193
- # attr_writer :party_name
3194
-
3195
2783
  # @!attribute party_type
3196
2784
  # Either `individual` or `business`.
3197
2785
  #
3198
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::PartyType, nil]
2786
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::PartyType, nil]
3199
2787
  optional :party_type,
3200
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::PartyType },
2788
+ enum: -> {
2789
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::PartyType
2790
+ },
3201
2791
  nil?: true
3202
2792
 
3203
- # @!attribute [r] plaid_processor_token
2793
+ # @!attribute plaid_processor_token
3204
2794
  # If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
3205
2795
  # you can pass the processor token in this field.
3206
2796
  #
3207
2797
  # @return [String, nil]
3208
2798
  optional :plaid_processor_token, String
3209
2799
 
3210
- # @!parse
3211
- # # @return [String]
3212
- # attr_writer :plaid_processor_token
3213
-
3214
- # @!attribute [r] routing_details
2800
+ # @!attribute routing_details
3215
2801
  #
3216
- # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail>, nil]
2802
+ # @return [Array<ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail>, nil]
3217
2803
  optional :routing_details,
3218
2804
  -> do
3219
2805
  ModernTreasury::Internal::Type::ArrayOf[
3220
- ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail
2806
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail
3221
2807
  ]
3222
2808
  end
3223
2809
 
3224
- # @!parse
3225
- # # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail>]
3226
- # attr_writer :routing_details
3227
-
3228
- # @!parse
3229
- # # Either `receiving_account` or `receiving_account_id` must be present. When using
3230
- # # `receiving_account_id`, you may pass the id of an external account or an
3231
- # # internal account.
3232
- # #
3233
- # # @param account_details [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail>]
3234
- # # @param account_type [Symbol, ModernTreasury::Models::ExternalAccountType]
3235
- # # @param contact_details [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::ContactDetail>]
3236
- # # @param ledger_account [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::LedgerAccount]
3237
- # # @param metadata [Hash{Symbol=>String}]
3238
- # # @param name [String, nil]
3239
- # # @param party_address [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::PartyAddress]
3240
- # # @param party_identifier [String]
3241
- # # @param party_name [String]
3242
- # # @param party_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::PartyType, nil]
3243
- # # @param plaid_processor_token [String]
3244
- # # @param routing_details [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail>]
3245
- # #
3246
- # def initialize(
3247
- # account_details: nil,
3248
- # account_type: nil,
3249
- # contact_details: nil,
3250
- # ledger_account: nil,
3251
- # metadata: nil,
3252
- # name: nil,
3253
- # party_address: nil,
3254
- # party_identifier: nil,
3255
- # party_name: nil,
3256
- # party_type: nil,
3257
- # plaid_processor_token: nil,
3258
- # routing_details: nil,
3259
- # **
3260
- # )
3261
- # super
3262
- # end
3263
-
3264
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
2810
+ # @!method initialize(account_details: nil, account_type: nil, contact_details: nil, ledger_account: nil, metadata: nil, name: nil, party_address: nil, party_identifier: nil, party_name: nil, party_type: nil, plaid_processor_token: nil, routing_details: nil)
2811
+ # Some parameter documentations has been truncated, see
2812
+ # {ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount}
2813
+ # for more details.
2814
+ #
2815
+ # Either `receiving_account` or `receiving_account_id` must be present. When using
2816
+ # `receiving_account_id`, you may pass the id of an external account or an
2817
+ # internal account.
2818
+ #
2819
+ # @param account_details [Array<ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail>]
2820
+ #
2821
+ # @param account_type [Symbol, ModernTreasury::ExternalAccountType] Can be `checking`, `savings` or `other`.
2822
+ #
2823
+ # @param contact_details [Array<ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::ContactDetail>]
2824
+ #
2825
+ # @param ledger_account [ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::LedgerAccount] Specifies a ledger account object that will be created with the external account
2826
+ #
2827
+ # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
2828
+ #
2829
+ # @param name [String, nil] A nickname for the external account. This is only for internal usage and won't a
2830
+ #
2831
+ # @param party_address [ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::PartyAddress] Required if receiving wire payments.
2832
+ #
2833
+ # @param party_identifier [String]
2834
+ #
2835
+ # @param party_name [String] If this value isn't provided, it will be inherited from the counterparty's name.
2836
+ #
2837
+ # @param party_type [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::PartyType, nil] Either `individual` or `business`.
2838
+ #
2839
+ # @param plaid_processor_token [String] If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
2840
+ #
2841
+ # @param routing_details [Array<ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail>]
3265
2842
 
3266
2843
  class AccountDetail < ModernTreasury::Internal::Type::BaseModel
3267
2844
  # @!attribute account_number
@@ -3269,25 +2846,19 @@ module ModernTreasury
3269
2846
  # @return [String]
3270
2847
  required :account_number, String
3271
2848
 
3272
- # @!attribute [r] account_number_type
2849
+ # @!attribute account_number_type
3273
2850
  #
3274
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail::AccountNumberType, nil]
2851
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail::AccountNumberType, nil]
3275
2852
  optional :account_number_type,
3276
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail::AccountNumberType }
3277
-
3278
- # @!parse
3279
- # # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail::AccountNumberType]
3280
- # attr_writer :account_number_type
2853
+ enum: -> {
2854
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail::AccountNumberType
2855
+ }
3281
2856
 
3282
- # @!parse
3283
- # # @param account_number [String]
3284
- # # @param account_number_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail::AccountNumberType]
3285
- # #
3286
- # def initialize(account_number:, account_number_type: nil, **) = super
2857
+ # @!method initialize(account_number:, account_number_type: nil)
2858
+ # @param account_number [String]
2859
+ # @param account_number_type [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail::AccountNumberType]
3287
2860
 
3288
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
3289
-
3290
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail#account_number_type
2861
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail#account_number_type
3291
2862
  module AccountNumberType
3292
2863
  extend ModernTreasury::Internal::Type::Enum
3293
2864
 
@@ -3302,43 +2873,30 @@ module ModernTreasury
3302
2873
  SG_NUMBER = :sg_number
3303
2874
  WALLET_ADDRESS = :wallet_address
3304
2875
 
3305
- finalize!
3306
-
3307
- # @!parse
3308
- # # @return [Array<Symbol>]
3309
- # def self.values; end
2876
+ # @!method self.values
2877
+ # @return [Array<Symbol>]
3310
2878
  end
3311
2879
  end
3312
2880
 
3313
2881
  class ContactDetail < ModernTreasury::Internal::Type::BaseModel
3314
- # @!attribute [r] contact_identifier
2882
+ # @!attribute contact_identifier
3315
2883
  #
3316
2884
  # @return [String, nil]
3317
2885
  optional :contact_identifier, String
3318
2886
 
3319
- # @!parse
3320
- # # @return [String]
3321
- # attr_writer :contact_identifier
3322
-
3323
- # @!attribute [r] contact_identifier_type
2887
+ # @!attribute contact_identifier_type
3324
2888
  #
3325
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::ContactDetail::ContactIdentifierType, nil]
2889
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::ContactDetail::ContactIdentifierType, nil]
3326
2890
  optional :contact_identifier_type,
3327
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::ContactDetail::ContactIdentifierType }
3328
-
3329
- # @!parse
3330
- # # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::ContactDetail::ContactIdentifierType]
3331
- # attr_writer :contact_identifier_type
2891
+ enum: -> {
2892
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::ContactDetail::ContactIdentifierType
2893
+ }
3332
2894
 
3333
- # @!parse
3334
- # # @param contact_identifier [String]
3335
- # # @param contact_identifier_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::ContactDetail::ContactIdentifierType]
3336
- # #
3337
- # def initialize(contact_identifier: nil, contact_identifier_type: nil, **) = super
2895
+ # @!method initialize(contact_identifier: nil, contact_identifier_type: nil)
2896
+ # @param contact_identifier [String]
2897
+ # @param contact_identifier_type [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::ContactDetail::ContactIdentifierType]
3338
2898
 
3339
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
3340
-
3341
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::ContactDetail#contact_identifier_type
2899
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::ContactDetail#contact_identifier_type
3342
2900
  module ContactIdentifierType
3343
2901
  extend ModernTreasury::Internal::Type::Enum
3344
2902
 
@@ -3346,15 +2904,12 @@ module ModernTreasury
3346
2904
  PHONE_NUMBER = :phone_number
3347
2905
  WEBSITE = :website
3348
2906
 
3349
- finalize!
3350
-
3351
- # @!parse
3352
- # # @return [Array<Symbol>]
3353
- # def self.values; end
2907
+ # @!method self.values
2908
+ # @return [Array<Symbol>]
3354
2909
  end
3355
2910
  end
3356
2911
 
3357
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount#ledger_account
2912
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount#ledger_account
3358
2913
  class LedgerAccount < ModernTreasury::Internal::Type::BaseModel
3359
2914
  # @!attribute currency
3360
2915
  # The currency of the ledger account.
@@ -3377,8 +2932,8 @@ module ModernTreasury
3377
2932
  # @!attribute normal_balance
3378
2933
  # The normal balance of the ledger account.
3379
2934
  #
3380
- # @return [Symbol, ModernTreasury::Models::TransactionDirection]
3381
- required :normal_balance, enum: -> { ModernTreasury::Models::TransactionDirection }
2935
+ # @return [Symbol, ModernTreasury::TransactionDirection]
2936
+ required :normal_balance, enum: -> { ModernTreasury::TransactionDirection }
3382
2937
 
3383
2938
  # @!attribute currency_exponent
3384
2939
  # The currency exponent of the ledger account.
@@ -3392,93 +2947,74 @@ module ModernTreasury
3392
2947
  # @return [String, nil]
3393
2948
  optional :description, String, nil?: true
3394
2949
 
3395
- # @!attribute [r] ledger_account_category_ids
2950
+ # @!attribute ledger_account_category_ids
3396
2951
  # The array of ledger account category ids that this ledger account should be a
3397
2952
  # child of.
3398
2953
  #
3399
2954
  # @return [Array<String>, nil]
3400
2955
  optional :ledger_account_category_ids, ModernTreasury::Internal::Type::ArrayOf[String]
3401
2956
 
3402
- # @!parse
3403
- # # @return [Array<String>]
3404
- # attr_writer :ledger_account_category_ids
3405
-
3406
- # @!attribute [r] ledgerable_id
2957
+ # @!attribute ledgerable_id
3407
2958
  # If the ledger account links to another object in Modern Treasury, the id will be
3408
2959
  # populated here, otherwise null.
3409
2960
  #
3410
2961
  # @return [String, nil]
3411
2962
  optional :ledgerable_id, String
3412
2963
 
3413
- # @!parse
3414
- # # @return [String]
3415
- # attr_writer :ledgerable_id
3416
-
3417
- # @!attribute [r] ledgerable_type
2964
+ # @!attribute ledgerable_type
3418
2965
  # If the ledger account links to another object in Modern Treasury, the type will
3419
2966
  # be populated here, otherwise null. The value is one of internal_account or
3420
2967
  # external_account.
3421
2968
  #
3422
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::LedgerAccount::LedgerableType, nil]
2969
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::LedgerAccount::LedgerableType, nil]
3423
2970
  optional :ledgerable_type,
3424
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::LedgerAccount::LedgerableType }
3425
-
3426
- # @!parse
3427
- # # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::LedgerAccount::LedgerableType]
3428
- # attr_writer :ledgerable_type
2971
+ enum: -> {
2972
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::LedgerAccount::LedgerableType
2973
+ }
3429
2974
 
3430
- # @!attribute [r] metadata
2975
+ # @!attribute metadata
3431
2976
  # Additional data represented as key-value pairs. Both the key and value must be
3432
2977
  # strings.
3433
2978
  #
3434
2979
  # @return [Hash{Symbol=>String}, nil]
3435
2980
  optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
3436
2981
 
3437
- # @!parse
3438
- # # @return [Hash{Symbol=>String}]
3439
- # attr_writer :metadata
3440
-
3441
- # @!parse
3442
- # # Specifies a ledger account object that will be created with the external
3443
- # # account. The resulting ledger account is linked to the external account for
3444
- # # auto-ledgering Payment objects. See
3445
- # # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
3446
- # # for more details.
3447
- # #
3448
- # # @param currency [String]
3449
- # # @param ledger_id [String]
3450
- # # @param name [String]
3451
- # # @param normal_balance [Symbol, ModernTreasury::Models::TransactionDirection]
3452
- # # @param currency_exponent [Integer, nil]
3453
- # # @param description [String, nil]
3454
- # # @param ledger_account_category_ids [Array<String>]
3455
- # # @param ledgerable_id [String]
3456
- # # @param ledgerable_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::LedgerAccount::LedgerableType]
3457
- # # @param metadata [Hash{Symbol=>String}]
3458
- # #
3459
- # def initialize(
3460
- # currency:,
3461
- # ledger_id:,
3462
- # name:,
3463
- # normal_balance:,
3464
- # currency_exponent: nil,
3465
- # description: nil,
3466
- # ledger_account_category_ids: nil,
3467
- # ledgerable_id: nil,
3468
- # ledgerable_type: nil,
3469
- # metadata: nil,
3470
- # **
3471
- # )
3472
- # super
3473
- # end
3474
-
3475
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
2982
+ # @!method initialize(currency:, ledger_id:, name:, normal_balance:, currency_exponent: nil, description: nil, ledger_account_category_ids: nil, ledgerable_id: nil, ledgerable_type: nil, metadata: nil)
2983
+ # Some parameter documentations has been truncated, see
2984
+ # {ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::LedgerAccount}
2985
+ # for more details.
2986
+ #
2987
+ # Specifies a ledger account object that will be created with the external
2988
+ # account. The resulting ledger account is linked to the external account for
2989
+ # auto-ledgering Payment objects. See
2990
+ # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
2991
+ # for more details.
2992
+ #
2993
+ # @param currency [String] The currency of the ledger account.
2994
+ #
2995
+ # @param ledger_id [String] The id of the ledger that this account belongs to.
2996
+ #
2997
+ # @param name [String] The name of the ledger account.
2998
+ #
2999
+ # @param normal_balance [Symbol, ModernTreasury::TransactionDirection] The normal balance of the ledger account.
3000
+ #
3001
+ # @param currency_exponent [Integer, nil] The currency exponent of the ledger account.
3002
+ #
3003
+ # @param description [String, nil] The description of the ledger account.
3004
+ #
3005
+ # @param ledger_account_category_ids [Array<String>] The array of ledger account category ids that this ledger account should be a ch
3006
+ #
3007
+ # @param ledgerable_id [String] If the ledger account links to another object in Modern Treasury, the id will be
3008
+ #
3009
+ # @param ledgerable_type [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::LedgerAccount::LedgerableType] If the ledger account links to another object in Modern Treasury, the type will
3010
+ #
3011
+ # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
3476
3012
 
3477
3013
  # If the ledger account links to another object in Modern Treasury, the type will
3478
3014
  # be populated here, otherwise null. The value is one of internal_account or
3479
3015
  # external_account.
3480
3016
  #
3481
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::LedgerAccount#ledgerable_type
3017
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::LedgerAccount#ledgerable_type
3482
3018
  module LedgerableType
3483
3019
  extend ModernTreasury::Internal::Type::Enum
3484
3020
 
@@ -3487,15 +3023,12 @@ module ModernTreasury
3487
3023
  INTERNAL_ACCOUNT = :internal_account
3488
3024
  VIRTUAL_ACCOUNT = :virtual_account
3489
3025
 
3490
- finalize!
3491
-
3492
- # @!parse
3493
- # # @return [Array<Symbol>]
3494
- # def self.values; end
3026
+ # @!method self.values
3027
+ # @return [Array<Symbol>]
3495
3028
  end
3496
3029
  end
3497
3030
 
3498
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount#party_address
3031
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount#party_address
3499
3032
  class PartyAddress < ModernTreasury::Internal::Type::BaseModel
3500
3033
  # @!attribute country
3501
3034
  # Country code conforms to [ISO 3166-1 alpha-2]
@@ -3531,35 +3064,33 @@ module ModernTreasury
3531
3064
  # @return [String, nil]
3532
3065
  optional :region, String, nil?: true
3533
3066
 
3534
- # @!parse
3535
- # # Required if receiving wire payments.
3536
- # #
3537
- # # @param country [String, nil]
3538
- # # @param line1 [String, nil]
3539
- # # @param line2 [String, nil]
3540
- # # @param locality [String, nil]
3541
- # # @param postal_code [String, nil]
3542
- # # @param region [String, nil]
3543
- # #
3544
- # def initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil, **) = super
3545
-
3546
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
3067
+ # @!method initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil)
3068
+ # Required if receiving wire payments.
3069
+ #
3070
+ # @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
3071
+ #
3072
+ # @param line1 [String, nil]
3073
+ #
3074
+ # @param line2 [String, nil]
3075
+ #
3076
+ # @param locality [String, nil] Locality or City.
3077
+ #
3078
+ # @param postal_code [String, nil] The postal code of the address.
3079
+ #
3080
+ # @param region [String, nil] Region or State.
3547
3081
  end
3548
3082
 
3549
3083
  # Either `individual` or `business`.
3550
3084
  #
3551
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount#party_type
3085
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount#party_type
3552
3086
  module PartyType
3553
3087
  extend ModernTreasury::Internal::Type::Enum
3554
3088
 
3555
3089
  BUSINESS = :business
3556
3090
  INDIVIDUAL = :individual
3557
3091
 
3558
- finalize!
3559
-
3560
- # @!parse
3561
- # # @return [Array<Symbol>]
3562
- # def self.values; end
3092
+ # @!method self.values
3093
+ # @return [Array<Symbol>]
3563
3094
  end
3564
3095
 
3565
3096
  class RoutingDetail < ModernTreasury::Internal::Type::BaseModel
@@ -3570,30 +3101,26 @@ module ModernTreasury
3570
3101
 
3571
3102
  # @!attribute routing_number_type
3572
3103
  #
3573
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail::RoutingNumberType]
3104
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail::RoutingNumberType]
3574
3105
  required :routing_number_type,
3575
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail::RoutingNumberType }
3106
+ enum: -> {
3107
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail::RoutingNumberType
3108
+ }
3576
3109
 
3577
- # @!attribute [r] payment_type
3110
+ # @!attribute payment_type
3578
3111
  #
3579
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail::PaymentType, nil]
3112
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail::PaymentType, nil]
3580
3113
  optional :payment_type,
3581
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail::PaymentType }
3582
-
3583
- # @!parse
3584
- # # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail::PaymentType]
3585
- # attr_writer :payment_type
3114
+ enum: -> {
3115
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail::PaymentType
3116
+ }
3586
3117
 
3587
- # @!parse
3588
- # # @param routing_number [String]
3589
- # # @param routing_number_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail::RoutingNumberType]
3590
- # # @param payment_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail::PaymentType]
3591
- # #
3592
- # def initialize(routing_number:, routing_number_type:, payment_type: nil, **) = super
3118
+ # @!method initialize(routing_number:, routing_number_type:, payment_type: nil)
3119
+ # @param routing_number [String]
3120
+ # @param routing_number_type [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail::RoutingNumberType]
3121
+ # @param payment_type [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail::PaymentType]
3593
3122
 
3594
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
3595
-
3596
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail#routing_number_type
3123
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail#routing_number_type
3597
3124
  module RoutingNumberType
3598
3125
  extend ModernTreasury::Internal::Type::Enum
3599
3126
 
@@ -3619,14 +3146,11 @@ module ModernTreasury
3619
3146
  SWIFT = :swift
3620
3147
  ZA_NATIONAL_CLEARING_CODE = :za_national_clearing_code
3621
3148
 
3622
- finalize!
3623
-
3624
- # @!parse
3625
- # # @return [Array<Symbol>]
3626
- # def self.values; end
3149
+ # @!method self.values
3150
+ # @return [Array<Symbol>]
3627
3151
  end
3628
3152
 
3629
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail#payment_type
3153
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail#payment_type
3630
3154
  module PaymentType
3631
3155
  extend ModernTreasury::Internal::Type::Enum
3632
3156
 
@@ -3661,11 +3185,8 @@ module ModernTreasury
3661
3185
  WIRE = :wire
3662
3186
  ZENGIN = :zengin
3663
3187
 
3664
- finalize!
3665
-
3666
- # @!parse
3667
- # # @return [Array<Symbol>]
3668
- # def self.values; end
3188
+ # @!method self.values
3189
+ # @return [Array<Symbol>]
3669
3190
  end
3670
3191
  end
3671
3192
  end
@@ -3674,7 +3195,7 @@ module ModernTreasury
3674
3195
  # use `approved`. To undo approval on a denied or approved payment order, use
3675
3196
  # `needs_approval`.
3676
3197
  #
3677
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#status
3198
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#status
3678
3199
  module Status
3679
3200
  extend ModernTreasury::Internal::Type::Enum
3680
3201
 
@@ -3690,24 +3211,17 @@ module ModernTreasury
3690
3211
  REVERSED = :reversed
3691
3212
  SENT = :sent
3692
3213
 
3693
- finalize!
3694
-
3695
- # @!parse
3696
- # # @return [Array<Symbol>]
3697
- # def self.values; end
3214
+ # @!method self.values
3215
+ # @return [Array<Symbol>]
3698
3216
  end
3699
3217
  end
3700
3218
 
3701
3219
  class ExpectedPaymentUpdateRequestWithID < ModernTreasury::Internal::Type::BaseModel
3702
- # @!attribute [r] id
3220
+ # @!attribute id
3703
3221
  #
3704
3222
  # @return [String, nil]
3705
3223
  optional :id, String
3706
3224
 
3707
- # @!parse
3708
- # # @return [String]
3709
- # attr_writer :id
3710
-
3711
3225
  # @!attribute amount_lower_bound
3712
3226
  # The lowest amount this expected payment may be equal to. Value in specified
3713
3227
  # currency's smallest unit. e.g. $10 would be represented as 1000.
@@ -3731,8 +3245,8 @@ module ModernTreasury
3731
3245
  # @!attribute currency
3732
3246
  # Must conform to ISO 4217. Defaults to the currency of the internal account.
3733
3247
  #
3734
- # @return [Symbol, ModernTreasury::Models::Currency, nil]
3735
- optional :currency, enum: -> { ModernTreasury::Models::Currency }, nil?: true
3248
+ # @return [Symbol, ModernTreasury::Currency, nil]
3249
+ optional :currency, enum: -> { ModernTreasury::Currency }, nil?: true
3736
3250
 
3737
3251
  # @!attribute date_lower_bound
3738
3252
  # The earliest date the payment may come in. Format: yyyy-mm-dd
@@ -3756,9 +3270,11 @@ module ModernTreasury
3756
3270
  # One of credit or debit. When you are receiving money, use credit. When you are
3757
3271
  # being charged, use debit.
3758
3272
  #
3759
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::Direction, nil]
3273
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::Direction, nil]
3760
3274
  optional :direction,
3761
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::Direction },
3275
+ enum: -> {
3276
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::Direction
3277
+ },
3762
3278
  nil?: true
3763
3279
 
3764
3280
  # @!attribute internal_account_id
@@ -3767,17 +3283,13 @@ module ModernTreasury
3767
3283
  # @return [String, nil]
3768
3284
  optional :internal_account_id, String, nil?: true
3769
3285
 
3770
- # @!attribute [r] metadata
3286
+ # @!attribute metadata
3771
3287
  # Additional data represented as key-value pairs. Both the key and value must be
3772
3288
  # strings.
3773
3289
  #
3774
3290
  # @return [Hash{Symbol=>String}, nil]
3775
3291
  optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
3776
3292
 
3777
- # @!parse
3778
- # # @return [Hash{Symbol=>String}]
3779
- # attr_writer :metadata
3780
-
3781
3293
  # @!attribute reconciliation_filters
3782
3294
  # The reconciliation filters you have for this payment.
3783
3295
  #
@@ -3793,9 +3305,9 @@ module ModernTreasury
3793
3305
  # @!attribute reconciliation_rule_variables
3794
3306
  # An array of reconciliation rule variables for this payment.
3795
3307
  #
3796
- # @return [Array<ModernTreasury::Models::ReconciliationRule>, nil]
3308
+ # @return [Array<ModernTreasury::ReconciliationRule>, nil]
3797
3309
  optional :reconciliation_rule_variables,
3798
- -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Models::ReconciliationRule] },
3310
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ReconciliationRule] },
3799
3311
  nil?: true
3800
3312
 
3801
3313
  # @!attribute remittance_information
@@ -3819,242 +3331,195 @@ module ModernTreasury
3819
3331
  # The Expected Payment's status can be updated from partially_reconciled to
3820
3332
  # reconciled.
3821
3333
  #
3822
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::Status, nil]
3334
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::Status, nil]
3823
3335
  optional :status,
3824
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::Status },
3336
+ enum: -> {
3337
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::Status
3338
+ },
3825
3339
  nil?: true
3826
3340
 
3827
3341
  # @!attribute type
3828
3342
  # One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen,
3829
3343
  # sepa, signet, wire.
3830
3344
  #
3831
- # @return [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil]
3832
- optional :type, enum: -> { ModernTreasury::Models::ExpectedPaymentType }, nil?: true
3833
-
3834
- # @!parse
3835
- # # @param id [String]
3836
- # # @param amount_lower_bound [Integer, nil]
3837
- # # @param amount_upper_bound [Integer, nil]
3838
- # # @param counterparty_id [String, nil]
3839
- # # @param currency [Symbol, ModernTreasury::Models::Currency, nil]
3840
- # # @param date_lower_bound [Date, nil]
3841
- # # @param date_upper_bound [Date, nil]
3842
- # # @param description [String, nil]
3843
- # # @param direction [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::Direction, nil]
3844
- # # @param internal_account_id [String, nil]
3845
- # # @param metadata [Hash{Symbol=>String}]
3846
- # # @param reconciliation_filters [Object, nil]
3847
- # # @param reconciliation_groups [Object, nil]
3848
- # # @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>, nil]
3849
- # # @param remittance_information [String, nil]
3850
- # # @param statement_descriptor [String, nil]
3851
- # # @param status [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::Status, nil]
3852
- # # @param type [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil]
3853
- # #
3854
- # def initialize(
3855
- # id: nil,
3856
- # amount_lower_bound: nil,
3857
- # amount_upper_bound: nil,
3858
- # counterparty_id: nil,
3859
- # currency: nil,
3860
- # date_lower_bound: nil,
3861
- # date_upper_bound: nil,
3862
- # description: nil,
3863
- # direction: nil,
3864
- # internal_account_id: nil,
3865
- # metadata: nil,
3866
- # reconciliation_filters: nil,
3867
- # reconciliation_groups: nil,
3868
- # reconciliation_rule_variables: nil,
3869
- # remittance_information: nil,
3870
- # statement_descriptor: nil,
3871
- # status: nil,
3872
- # type: nil,
3873
- # **
3874
- # )
3875
- # super
3876
- # end
3877
-
3878
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
3345
+ # @return [Symbol, ModernTreasury::ExpectedPaymentType, nil]
3346
+ optional :type, enum: -> { ModernTreasury::ExpectedPaymentType }, nil?: true
3347
+
3348
+ # @!method initialize(id: nil, amount_lower_bound: nil, amount_upper_bound: nil, counterparty_id: nil, currency: nil, date_lower_bound: nil, date_upper_bound: nil, description: nil, direction: nil, internal_account_id: nil, metadata: nil, reconciliation_filters: nil, reconciliation_groups: nil, reconciliation_rule_variables: nil, remittance_information: nil, statement_descriptor: nil, status: nil, type: nil)
3349
+ # Some parameter documentations has been truncated, see
3350
+ # {ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID}
3351
+ # for more details.
3352
+ #
3353
+ # @param id [String]
3354
+ #
3355
+ # @param amount_lower_bound [Integer, nil] The lowest amount this expected payment may be equal to. Value in specified curr
3356
+ #
3357
+ # @param amount_upper_bound [Integer, nil] The highest amount this expected payment may be equal to. Value in specified cur
3358
+ #
3359
+ # @param counterparty_id [String, nil] The ID of the counterparty you expect for this payment.
3360
+ #
3361
+ # @param currency [Symbol, ModernTreasury::Currency, nil] Must conform to ISO 4217. Defaults to the currency of the internal account.
3362
+ #
3363
+ # @param date_lower_bound [Date, nil] The earliest date the payment may come in. Format: yyyy-mm-dd
3364
+ #
3365
+ # @param date_upper_bound [Date, nil] The latest date the payment may come in. Format: yyyy-mm-dd
3366
+ #
3367
+ # @param description [String, nil] An optional description for internal use.
3368
+ #
3369
+ # @param direction [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::Direction, nil] One of credit or debit. When you are receiving money, use credit. When you are b
3370
+ #
3371
+ # @param internal_account_id [String, nil] The ID of the Internal Account for the expected payment.
3372
+ #
3373
+ # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
3374
+ #
3375
+ # @param reconciliation_filters [Object, nil] The reconciliation filters you have for this payment.
3376
+ #
3377
+ # @param reconciliation_groups [Object, nil] The reconciliation groups you have for this payment.
3378
+ #
3379
+ # @param reconciliation_rule_variables [Array<ModernTreasury::ReconciliationRule>, nil] An array of reconciliation rule variables for this payment.
3380
+ #
3381
+ # @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
3382
+ #
3383
+ # @param statement_descriptor [String, nil] The statement description you expect to see on the transaction. For ACH payments
3384
+ #
3385
+ # @param status [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::Status, nil] The Expected Payment's status can be updated from partially_reconciled to reconc
3386
+ #
3387
+ # @param type [Symbol, ModernTreasury::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, se
3879
3388
 
3880
3389
  # One of credit or debit. When you are receiving money, use credit. When you are
3881
3390
  # being charged, use debit.
3882
3391
  #
3883
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID#direction
3392
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID#direction
3884
3393
  module Direction
3885
3394
  extend ModernTreasury::Internal::Type::Enum
3886
3395
 
3887
3396
  CREDIT = :credit
3888
3397
  DEBIT = :debit
3889
3398
 
3890
- finalize!
3891
-
3892
- # @!parse
3893
- # # @return [Array<Symbol>]
3894
- # def self.values; end
3399
+ # @!method self.values
3400
+ # @return [Array<Symbol>]
3895
3401
  end
3896
3402
 
3897
3403
  # The Expected Payment's status can be updated from partially_reconciled to
3898
3404
  # reconciled.
3899
3405
  #
3900
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID#status
3406
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID#status
3901
3407
  module Status
3902
3408
  extend ModernTreasury::Internal::Type::Enum
3903
3409
 
3904
3410
  RECONCILED = :reconciled
3905
3411
 
3906
- finalize!
3907
-
3908
- # @!parse
3909
- # # @return [Array<Symbol>]
3910
- # def self.values; end
3412
+ # @!method self.values
3413
+ # @return [Array<Symbol>]
3911
3414
  end
3912
3415
  end
3913
3416
 
3914
3417
  class TransactionUpdateRequestWithID < ModernTreasury::Internal::Type::BaseModel
3915
- # @!attribute [r] id
3418
+ # @!attribute id
3916
3419
  #
3917
3420
  # @return [String, nil]
3918
3421
  optional :id, String
3919
3422
 
3920
- # @!parse
3921
- # # @return [String]
3922
- # attr_writer :id
3923
-
3924
- # @!attribute [r] metadata
3423
+ # @!attribute metadata
3925
3424
  # Additional data in the form of key-value pairs. Pairs can be removed by passing
3926
3425
  # an empty string or `null` as the value.
3927
3426
  #
3928
3427
  # @return [Hash{Symbol=>String}, nil]
3929
3428
  optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
3930
3429
 
3931
- # @!parse
3932
- # # @return [Hash{Symbol=>String}]
3933
- # attr_writer :metadata
3934
-
3935
- # @!parse
3936
- # # @param id [String]
3937
- # # @param metadata [Hash{Symbol=>String}]
3938
- # #
3939
- # def initialize(id: nil, metadata: nil, **) = super
3940
-
3941
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
3430
+ # @!method initialize(id: nil, metadata: nil)
3431
+ # Some parameter documentations has been truncated, see
3432
+ # {ModernTreasury::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID}
3433
+ # for more details.
3434
+ #
3435
+ # @param id [String]
3436
+ #
3437
+ # @param metadata [Hash{Symbol=>String}] Additional data in the form of key-value pairs. Pairs can be removed by passing
3942
3438
  end
3943
3439
 
3944
3440
  class LedgerTransactionUpdateRequestWithID < ModernTreasury::Internal::Type::BaseModel
3945
- # @!attribute [r] id
3441
+ # @!attribute id
3946
3442
  #
3947
3443
  # @return [String, nil]
3948
3444
  optional :id, String
3949
3445
 
3950
- # @!parse
3951
- # # @return [String]
3952
- # attr_writer :id
3953
-
3954
3446
  # @!attribute description
3955
3447
  # An optional description for internal use.
3956
3448
  #
3957
3449
  # @return [String, nil]
3958
3450
  optional :description, String, nil?: true
3959
3451
 
3960
- # @!attribute [r] effective_at
3452
+ # @!attribute effective_at
3961
3453
  # The timestamp (ISO8601 format) at which the ledger transaction happened for
3962
3454
  # reporting purposes.
3963
3455
  #
3964
3456
  # @return [Time, nil]
3965
3457
  optional :effective_at, Time
3966
3458
 
3967
- # @!parse
3968
- # # @return [Time]
3969
- # attr_writer :effective_at
3970
-
3971
- # @!attribute [r] ledger_entries
3459
+ # @!attribute ledger_entries
3972
3460
  # An array of ledger entry objects.
3973
3461
  #
3974
- # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::LedgerEntry>, nil]
3462
+ # @return [Array<ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::LedgerEntry>, nil]
3975
3463
  optional :ledger_entries,
3976
- -> do
3977
- ModernTreasury::Internal::Type::ArrayOf[
3978
- ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::LedgerEntry
3979
- ]
3980
- end
3981
-
3982
- # @!parse
3983
- # # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::LedgerEntry>]
3984
- # attr_writer :ledger_entries
3464
+ -> {
3465
+ ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::LedgerEntry]
3466
+ }
3985
3467
 
3986
- # @!attribute [r] ledgerable_id
3468
+ # @!attribute ledgerable_id
3987
3469
  # If the ledger transaction can be reconciled to another object in Modern
3988
3470
  # Treasury, the id will be populated here, otherwise null.
3989
3471
  #
3990
3472
  # @return [String, nil]
3991
3473
  optional :ledgerable_id, String
3992
3474
 
3993
- # @!parse
3994
- # # @return [String]
3995
- # attr_writer :ledgerable_id
3996
-
3997
- # @!attribute [r] ledgerable_type
3475
+ # @!attribute ledgerable_type
3998
3476
  # If the ledger transaction can be reconciled to another object in Modern
3999
3477
  # Treasury, the type will be populated here, otherwise null. This can be one of
4000
3478
  # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
4001
3479
  # reversal.
4002
3480
  #
4003
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::LedgerableType, nil]
3481
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::LedgerableType, nil]
4004
3482
  optional :ledgerable_type,
4005
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::LedgerableType }
4006
-
4007
- # @!parse
4008
- # # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::LedgerableType]
4009
- # attr_writer :ledgerable_type
3483
+ enum: -> {
3484
+ ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::LedgerableType
3485
+ }
4010
3486
 
4011
- # @!attribute [r] metadata
3487
+ # @!attribute metadata
4012
3488
  # Additional data represented as key-value pairs. Both the key and value must be
4013
3489
  # strings.
4014
3490
  #
4015
3491
  # @return [Hash{Symbol=>String}, nil]
4016
3492
  optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
4017
3493
 
4018
- # @!parse
4019
- # # @return [Hash{Symbol=>String}]
4020
- # attr_writer :metadata
4021
-
4022
- # @!attribute [r] status
3494
+ # @!attribute status
4023
3495
  # To post a ledger transaction at creation, use `posted`.
4024
3496
  #
4025
- # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::Status, nil]
3497
+ # @return [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::Status, nil]
4026
3498
  optional :status,
4027
- enum: -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::Status }
4028
-
4029
- # @!parse
4030
- # # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::Status]
4031
- # attr_writer :status
4032
-
4033
- # @!parse
4034
- # # @param id [String]
4035
- # # @param description [String, nil]
4036
- # # @param effective_at [Time]
4037
- # # @param ledger_entries [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::LedgerEntry>]
4038
- # # @param ledgerable_id [String]
4039
- # # @param ledgerable_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::LedgerableType]
4040
- # # @param metadata [Hash{Symbol=>String}]
4041
- # # @param status [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::Status]
4042
- # #
4043
- # def initialize(
4044
- # id: nil,
4045
- # description: nil,
4046
- # effective_at: nil,
4047
- # ledger_entries: nil,
4048
- # ledgerable_id: nil,
4049
- # ledgerable_type: nil,
4050
- # metadata: nil,
4051
- # status: nil,
4052
- # **
4053
- # )
4054
- # super
4055
- # end
4056
-
4057
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
3499
+ enum: -> {
3500
+ ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::Status
3501
+ }
3502
+
3503
+ # @!method initialize(id: nil, description: nil, effective_at: nil, ledger_entries: nil, ledgerable_id: nil, ledgerable_type: nil, metadata: nil, status: nil)
3504
+ # Some parameter documentations has been truncated, see
3505
+ # {ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID}
3506
+ # for more details.
3507
+ #
3508
+ # @param id [String]
3509
+ #
3510
+ # @param description [String, nil] An optional description for internal use.
3511
+ #
3512
+ # @param effective_at [Time] The timestamp (ISO8601 format) at which the ledger transaction happened for repo
3513
+ #
3514
+ # @param ledger_entries [Array<ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::LedgerEntry>] An array of ledger entry objects.
3515
+ #
3516
+ # @param ledgerable_id [String] If the ledger transaction can be reconciled to another object in Modern Treasury
3517
+ #
3518
+ # @param ledgerable_type [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::LedgerableType] If the ledger transaction can be reconciled to another object in Modern Treasury
3519
+ #
3520
+ # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
3521
+ #
3522
+ # @param status [Symbol, ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::Status] To post a ledger transaction at creation, use `posted`.
4058
3523
 
4059
3524
  class LedgerEntry < ModernTreasury::Internal::Type::BaseModel
4060
3525
  # @!attribute amount
@@ -4070,8 +3535,8 @@ module ModernTreasury
4070
3535
  # `debit` pulls money from someone else's account to your own. Note that wire,
4071
3536
  # rtp, and check payments will always be `credit`.
4072
3537
  #
4073
- # @return [Symbol, ModernTreasury::Models::TransactionDirection]
4074
- required :direction, enum: -> { ModernTreasury::Models::TransactionDirection }
3538
+ # @return [Symbol, ModernTreasury::TransactionDirection]
3539
+ required :direction, enum: -> { ModernTreasury::TransactionDirection }
4075
3540
 
4076
3541
  # @!attribute ledger_account_id
4077
3542
  # The ledger account that this ledger entry is associated with.
@@ -4096,17 +3561,13 @@ module ModernTreasury
4096
3561
  # @return [Integer, nil]
4097
3562
  optional :lock_version, Integer, nil?: true
4098
3563
 
4099
- # @!attribute [r] metadata
3564
+ # @!attribute metadata
4100
3565
  # Additional data represented as key-value pairs. Both the key and value must be
4101
3566
  # strings.
4102
3567
  #
4103
3568
  # @return [Hash{Symbol=>String}, nil]
4104
3569
  optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
4105
3570
 
4106
- # @!parse
4107
- # # @return [Hash{Symbol=>String}]
4108
- # attr_writer :metadata
4109
-
4110
3571
  # @!attribute pending_balance_amount
4111
3572
  # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
4112
3573
  # account’s pending balance. If any of these conditions would be false after the
@@ -4132,33 +3593,28 @@ module ModernTreasury
4132
3593
  ModernTreasury::Internal::Type::Boolean,
4133
3594
  nil?: true
4134
3595
 
4135
- # @!parse
4136
- # # @param amount [Integer]
4137
- # # @param direction [Symbol, ModernTreasury::Models::TransactionDirection]
4138
- # # @param ledger_account_id [String]
4139
- # # @param available_balance_amount [Hash{Symbol=>Integer}, nil]
4140
- # # @param lock_version [Integer, nil]
4141
- # # @param metadata [Hash{Symbol=>String}]
4142
- # # @param pending_balance_amount [Hash{Symbol=>Integer}, nil]
4143
- # # @param posted_balance_amount [Hash{Symbol=>Integer}, nil]
4144
- # # @param show_resulting_ledger_account_balances [Boolean, nil]
4145
- # #
4146
- # def initialize(
4147
- # amount:,
4148
- # direction:,
4149
- # ledger_account_id:,
4150
- # available_balance_amount: nil,
4151
- # lock_version: nil,
4152
- # metadata: nil,
4153
- # pending_balance_amount: nil,
4154
- # posted_balance_amount: nil,
4155
- # show_resulting_ledger_account_balances: nil,
4156
- # **
4157
- # )
4158
- # super
4159
- # end
4160
-
4161
- # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
3596
+ # @!method initialize(amount:, direction:, ledger_account_id:, available_balance_amount: nil, lock_version: nil, metadata: nil, pending_balance_amount: nil, posted_balance_amount: nil, show_resulting_ledger_account_balances: nil)
3597
+ # Some parameter documentations has been truncated, see
3598
+ # {ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::LedgerEntry}
3599
+ # for more details.
3600
+ #
3601
+ # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
3602
+ #
3603
+ # @param direction [Symbol, ModernTreasury::TransactionDirection] One of `credit`, `debit`. Describes the direction money is flowing in the transa
3604
+ #
3605
+ # @param ledger_account_id [String] The ledger account that this ledger entry is associated with.
3606
+ #
3607
+ # @param available_balance_amount [Hash{Symbol=>Integer}, nil] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the accou
3608
+ #
3609
+ # @param lock_version [Integer, nil] Lock version of the ledger account. This can be passed when creating a ledger tr
3610
+ #
3611
+ # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
3612
+ #
3613
+ # @param pending_balance_amount [Hash{Symbol=>Integer}, nil] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the accou
3614
+ #
3615
+ # @param posted_balance_amount [Hash{Symbol=>Integer}, nil] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the accou
3616
+ #
3617
+ # @param show_resulting_ledger_account_balances [Boolean, nil] If true, response will include the balance of the associated ledger account for
4162
3618
  end
4163
3619
 
4164
3620
  # If the ledger transaction can be reconciled to another object in Modern
@@ -4166,7 +3622,7 @@ module ModernTreasury
4166
3622
  # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
4167
3623
  # reversal.
4168
3624
  #
4169
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID#ledgerable_type
3625
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID#ledgerable_type
4170
3626
  module LedgerableType
4171
3627
  extend ModernTreasury::Internal::Type::Enum
4172
3628
 
@@ -4177,16 +3633,13 @@ module ModernTreasury
4177
3633
  RETURN = :return
4178
3634
  REVERSAL = :reversal
4179
3635
 
4180
- finalize!
4181
-
4182
- # @!parse
4183
- # # @return [Array<Symbol>]
4184
- # def self.values; end
3636
+ # @!method self.values
3637
+ # @return [Array<Symbol>]
4185
3638
  end
4186
3639
 
4187
3640
  # To post a ledger transaction at creation, use `posted`.
4188
3641
  #
4189
- # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID#status
3642
+ # @see ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID#status
4190
3643
  module Status
4191
3644
  extend ModernTreasury::Internal::Type::Enum
4192
3645
 
@@ -4194,17 +3647,29 @@ module ModernTreasury
4194
3647
  PENDING = :pending
4195
3648
  POSTED = :posted
4196
3649
 
4197
- finalize!
4198
-
4199
- # @!parse
4200
- # # @return [Array<Symbol>]
4201
- # def self.values; end
3650
+ # @!method self.values
3651
+ # @return [Array<Symbol>]
4202
3652
  end
4203
3653
  end
4204
3654
 
4205
- # @!parse
4206
- # # @return [Array(ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ID, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID)]
4207
- # def self.variants; end
3655
+ # @!method self.variants
3656
+ # @return [Array(ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest, ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest, ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest, ModernTreasury::BulkRequestCreateParams::Resource::TransactionCreateRequest, ModernTreasury::BulkRequestCreateParams::Resource::ID, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID, ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID, ModernTreasury::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID, ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID)]
3657
+
3658
+ define_sorbet_constant!(:Variants) do
3659
+ T.type_alias do
3660
+ T.any(
3661
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest,
3662
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest,
3663
+ ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest,
3664
+ ModernTreasury::BulkRequestCreateParams::Resource::TransactionCreateRequest,
3665
+ ModernTreasury::BulkRequestCreateParams::Resource::ID,
3666
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID,
3667
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID,
3668
+ ModernTreasury::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID,
3669
+ ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID
3670
+ )
3671
+ end
3672
+ end
4208
3673
  end
4209
3674
  end
4210
3675
  end