modern_treasury 0.1.0.pre.alpha.22 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +38 -0
  3. data/README.md +1 -1
  4. data/lib/modern_treasury/client.rb +0 -12
  5. data/lib/modern_treasury/internal/transport/base_client.rb +1 -1
  6. data/lib/modern_treasury/internal/type/base_model.rb +4 -4
  7. data/lib/modern_treasury/models/accounting.rb +30 -0
  8. data/lib/modern_treasury/models/address.rb +94 -0
  9. data/lib/modern_treasury/models/address_request.rb +54 -0
  10. data/lib/modern_treasury/models/bulk_request_create_params.rb +144 -1505
  11. data/lib/modern_treasury/models/child_legal_entity_create.rb +275 -0
  12. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +10 -627
  13. data/lib/modern_treasury/models/contact_detail.rb +81 -0
  14. data/lib/modern_treasury/models/contact_detail_create_request.rb +34 -0
  15. data/lib/modern_treasury/models/counterparty.rb +24 -177
  16. data/lib/modern_treasury/models/counterparty_create_params.rb +37 -838
  17. data/lib/modern_treasury/models/counterparty_list_params.rb +9 -1
  18. data/lib/modern_treasury/models/document.rb +4 -6
  19. data/lib/modern_treasury/models/document_create_params.rb +0 -2
  20. data/lib/modern_treasury/models/document_list_params.rb +4 -6
  21. data/lib/modern_treasury/models/expected_payment.rb +9 -1
  22. data/lib/modern_treasury/models/expected_payment_create_params.rb +12 -230
  23. data/lib/modern_treasury/models/expected_payment_list_params.rb +8 -1
  24. data/lib/modern_treasury/models/expected_payment_update_params.rb +9 -1
  25. data/lib/modern_treasury/models/external_account.rb +15 -177
  26. data/lib/modern_treasury/models/external_account_create_params.rb +18 -210
  27. data/lib/modern_treasury/models/external_account_list_params.rb +9 -1
  28. data/lib/modern_treasury/models/external_account_update_params.rb +3 -52
  29. data/lib/modern_treasury/models/foreign_exchange_quote.rb +3 -73
  30. data/lib/modern_treasury/models/foreign_exchange_rate.rb +71 -0
  31. data/lib/modern_treasury/models/identification_create_request.rb +86 -0
  32. data/lib/modern_treasury/models/internal_account.rb +3 -95
  33. data/lib/modern_treasury/models/internal_account_update_account_capability_params.rb +34 -0
  34. data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +131 -0
  35. data/lib/modern_treasury/models/invoice.rb +3 -81
  36. data/lib/modern_treasury/models/invoice_create_params.rb +3 -83
  37. data/lib/modern_treasury/models/invoice_update_params.rb +3 -83
  38. data/lib/modern_treasury/models/ledger_account.rb +9 -141
  39. data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +3 -182
  40. data/lib/modern_treasury/models/ledger_account_category.rb +3 -175
  41. data/lib/modern_treasury/models/ledger_account_category_list_params.rb +9 -5
  42. data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +4 -2
  43. data/lib/modern_treasury/models/ledger_account_create_params.rb +2 -105
  44. data/lib/modern_treasury/models/ledger_account_create_request.rb +113 -0
  45. data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +6 -360
  46. data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +6 -360
  47. data/lib/modern_treasury/models/ledger_balance.rb +45 -0
  48. data/lib/modern_treasury/models/ledger_balances.rb +38 -0
  49. data/lib/modern_treasury/models/ledger_entry.rb +3 -183
  50. data/lib/modern_treasury/models/ledger_entry_create_request.rb +98 -0
  51. data/lib/modern_treasury/models/ledger_entry_list_params.rb +48 -8
  52. data/lib/modern_treasury/models/ledger_transaction.rb +14 -6
  53. data/lib/modern_treasury/models/ledger_transaction_create_params.rb +2 -212
  54. data/lib/modern_treasury/models/ledger_transaction_create_request.rb +123 -0
  55. data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +0 -1
  56. data/lib/modern_treasury/models/ledger_transaction_list_params.rb +44 -7
  57. data/lib/modern_treasury/models/ledger_transaction_update_params.rb +5 -104
  58. data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +15 -193
  59. data/lib/modern_treasury/models/legal_entity_address_create_request.rb +78 -0
  60. data/lib/modern_treasury/models/legal_entity_association.rb +1 -0
  61. data/lib/modern_treasury/models/legal_entity_association_create_params.rb +4 -448
  62. data/lib/modern_treasury/models/legal_entity_create_params.rb +10 -618
  63. data/lib/modern_treasury/models/legal_entity_update_params.rb +6 -165
  64. data/lib/modern_treasury/models/line_item.rb +3 -29
  65. data/lib/modern_treasury/models/payment_action_list_params.rb +1 -0
  66. data/lib/modern_treasury/models/payment_order.rb +13 -102
  67. data/lib/modern_treasury/models/payment_order_create_async_params.rb +24 -477
  68. data/lib/modern_treasury/models/payment_order_create_params.rb +24 -479
  69. data/lib/modern_treasury/models/payment_order_update_params.rb +21 -248
  70. data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +3 -232
  71. data/lib/modern_treasury/models/payment_reference.rb +7 -1
  72. data/lib/modern_treasury/models/return_list_params.rb +5 -6
  73. data/lib/modern_treasury/models/return_object.rb +7 -3
  74. data/lib/modern_treasury/models/routing_detail.rb +3 -93
  75. data/lib/modern_treasury/models/routing_number_lookup_request.rb +3 -55
  76. data/lib/modern_treasury/models/transaction.rb +5 -73
  77. data/lib/modern_treasury/models/transactions/transaction_line_item.rb +0 -1
  78. data/lib/modern_treasury/models/virtual_account_create_params.rb +3 -117
  79. data/lib/modern_treasury/models.rb +31 -6
  80. data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
  81. data/lib/modern_treasury/resources/counterparties.rb +20 -14
  82. data/lib/modern_treasury/resources/expected_payments.rb +10 -4
  83. data/lib/modern_treasury/resources/external_accounts.rb +23 -17
  84. data/lib/modern_treasury/resources/internal_accounts.rb +34 -0
  85. data/lib/modern_treasury/resources/invoices.rb +2 -2
  86. data/lib/modern_treasury/resources/ledger_account_categories.rb +1 -1
  87. data/lib/modern_treasury/resources/ledger_accounts.rb +1 -1
  88. data/lib/modern_treasury/resources/ledger_entries.rb +1 -1
  89. data/lib/modern_treasury/resources/ledger_transactions.rb +5 -5
  90. data/lib/modern_treasury/resources/legal_entities.rb +4 -4
  91. data/lib/modern_treasury/resources/legal_entity_associations.rb +1 -1
  92. data/lib/modern_treasury/resources/payment_orders/reversals.rb +1 -1
  93. data/lib/modern_treasury/resources/payment_orders.rb +5 -5
  94. data/lib/modern_treasury/resources/returns.rb +1 -1
  95. data/lib/modern_treasury/resources/virtual_accounts.rb +1 -1
  96. data/lib/modern_treasury/version.rb +1 -1
  97. data/lib/modern_treasury.rb +16 -6
  98. data/rbi/modern_treasury/client.rbi +0 -9
  99. data/rbi/modern_treasury/internal/transport/base_client.rbi +1 -1
  100. data/rbi/modern_treasury/models/accounting.rbi +48 -0
  101. data/rbi/modern_treasury/models/address.rbi +107 -0
  102. data/rbi/modern_treasury/models/address_request.rbi +76 -0
  103. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +701 -3140
  104. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +511 -0
  105. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +17 -1314
  106. data/rbi/modern_treasury/models/contact_detail.rbi +124 -0
  107. data/rbi/modern_treasury/models/contact_detail_create_request.rbi +99 -0
  108. data/rbi/modern_treasury/models/counterparty.rbi +24 -264
  109. data/rbi/modern_treasury/models/counterparty_create_params.rbi +47 -1718
  110. data/rbi/modern_treasury/models/counterparty_list_params.rbi +11 -0
  111. data/rbi/modern_treasury/models/document.rbi +6 -16
  112. data/rbi/modern_treasury/models/document_create_params.rbi +0 -10
  113. data/rbi/modern_treasury/models/document_list_params.rbi +6 -16
  114. data/rbi/modern_treasury/models/expected_payment.rbi +8 -0
  115. data/rbi/modern_treasury/models/expected_payment_create_params.rbi +12 -419
  116. data/rbi/modern_treasury/models/expected_payment_list_params.rbi +9 -0
  117. data/rbi/modern_treasury/models/expected_payment_update_params.rbi +8 -0
  118. data/rbi/modern_treasury/models/external_account.rbi +15 -244
  119. data/rbi/modern_treasury/models/external_account_create_params.rbi +20 -400
  120. data/rbi/modern_treasury/models/external_account_list_params.rbi +11 -0
  121. data/rbi/modern_treasury/models/external_account_update_params.rbi +4 -86
  122. data/rbi/modern_treasury/models/foreign_exchange_quote.rbi +4 -99
  123. data/rbi/modern_treasury/models/foreign_exchange_rate.rbi +96 -0
  124. data/rbi/modern_treasury/models/identification_create_request.rbi +212 -0
  125. data/rbi/modern_treasury/models/internal_account.rbi +4 -115
  126. data/rbi/modern_treasury/models/internal_account_update_account_capability_params.rbi +54 -0
  127. data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +304 -0
  128. data/rbi/modern_treasury/models/invoice.rbi +3 -128
  129. data/rbi/modern_treasury/models/invoice_create_params.rbi +4 -139
  130. data/rbi/modern_treasury/models/invoice_update_params.rbi +4 -139
  131. data/rbi/modern_treasury/models/ledger_account.rbi +12 -218
  132. data/rbi/modern_treasury/models/ledger_account_balance_monitor.rbi +4 -303
  133. data/rbi/modern_treasury/models/ledger_account_category.rbi +4 -301
  134. data/rbi/modern_treasury/models/ledger_account_category_list_params.rbi +14 -7
  135. data/rbi/modern_treasury/models/ledger_account_category_retrieve_params.rbi +6 -3
  136. data/rbi/modern_treasury/models/ledger_account_create_params.rbi +5 -173
  137. data/rbi/modern_treasury/models/ledger_account_create_request.rbi +194 -0
  138. data/rbi/modern_treasury/models/ledger_account_statement_create_response.rbi +8 -612
  139. data/rbi/modern_treasury/models/ledger_account_statement_retrieve_response.rbi +8 -612
  140. data/rbi/modern_treasury/models/ledger_balance.rbi +66 -0
  141. data/rbi/modern_treasury/models/ledger_balances.rbi +75 -0
  142. data/rbi/modern_treasury/models/ledger_entry.rbi +4 -309
  143. data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +137 -0
  144. data/rbi/modern_treasury/models/ledger_entry_list_params.rbi +99 -16
  145. data/rbi/modern_treasury/models/ledger_transaction.rbi +17 -11
  146. data/rbi/modern_treasury/models/ledger_transaction_create_params.rbi +5 -383
  147. data/rbi/modern_treasury/models/ledger_transaction_create_request.rbi +258 -0
  148. data/rbi/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +0 -5
  149. data/rbi/modern_treasury/models/ledger_transaction_list_params.rbi +93 -18
  150. data/rbi/modern_treasury/models/ledger_transaction_update_params.rbi +7 -158
  151. data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +18 -316
  152. data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +157 -0
  153. data/rbi/modern_treasury/models/legal_entity_association.rbi +5 -0
  154. data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +9 -917
  155. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +17 -1297
  156. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +8 -378
  157. data/rbi/modern_treasury/models/line_item.rbi +4 -52
  158. data/rbi/modern_treasury/models/payment_action_list_params.rbi +5 -0
  159. data/rbi/modern_treasury/models/payment_order.rbi +43 -159
  160. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +28 -882
  161. data/rbi/modern_treasury/models/payment_order_create_params.rbi +28 -887
  162. data/rbi/modern_treasury/models/payment_order_update_params.rbi +24 -460
  163. data/rbi/modern_treasury/models/payment_orders/reversal_create_params.rbi +4 -415
  164. data/rbi/modern_treasury/models/payment_reference.rbi +35 -5
  165. data/rbi/modern_treasury/models/return_list_params.rbi +6 -11
  166. data/rbi/modern_treasury/models/return_object.rbi +35 -12
  167. data/rbi/modern_treasury/models/routing_detail.rbi +4 -113
  168. data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +4 -87
  169. data/rbi/modern_treasury/models/transaction.rbi +14 -103
  170. data/rbi/modern_treasury/models/transactions/transaction_line_item.rbi +0 -5
  171. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +4 -203
  172. data/rbi/modern_treasury/models.rbi +36 -6
  173. data/rbi/modern_treasury/resources/bulk_requests.rbi +2 -2
  174. data/rbi/modern_treasury/resources/counterparties.rbi +20 -12
  175. data/rbi/modern_treasury/resources/documents.rbi +2 -2
  176. data/rbi/modern_treasury/resources/expected_payments.rbi +9 -1
  177. data/rbi/modern_treasury/resources/external_accounts.rbi +29 -22
  178. data/rbi/modern_treasury/resources/internal_accounts.rbi +24 -0
  179. data/rbi/modern_treasury/resources/invoices.rbi +2 -8
  180. data/rbi/modern_treasury/resources/ledger_account_categories.rbi +7 -3
  181. data/rbi/modern_treasury/resources/ledger_accounts.rbi +1 -1
  182. data/rbi/modern_treasury/resources/ledger_entries.rbi +9 -2
  183. data/rbi/modern_treasury/resources/ledger_transactions.rbi +13 -13
  184. data/rbi/modern_treasury/resources/legal_entities.rbi +4 -8
  185. data/rbi/modern_treasury/resources/legal_entity_associations.rbi +1 -2
  186. data/rbi/modern_treasury/resources/payment_orders/reversals.rbi +1 -1
  187. data/rbi/modern_treasury/resources/payment_orders.rbi +5 -8
  188. data/rbi/modern_treasury/resources/returns.rbi +2 -2
  189. data/rbi/modern_treasury/resources/virtual_accounts.rbi +1 -2
  190. data/sig/modern_treasury/client.rbs +0 -6
  191. data/sig/modern_treasury/internal/transport/base_client.rbs +1 -1
  192. data/sig/modern_treasury/models/accounting.rbs +15 -0
  193. data/sig/modern_treasury/models/address.rbs +70 -0
  194. data/sig/modern_treasury/models/address_request.rbs +45 -0
  195. data/sig/modern_treasury/models/bulk_request_create_params.rbs +88 -1089
  196. data/sig/modern_treasury/models/child_legal_entity_create.rbs +220 -0
  197. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +21 -548
  198. data/sig/modern_treasury/models/contact_detail.rbs +67 -0
  199. data/sig/modern_treasury/models/contact_detail_create_request.rbs +43 -0
  200. data/sig/modern_treasury/models/counterparty.rbs +20 -141
  201. data/sig/modern_treasury/models/counterparty_create_params.rbs +49 -737
  202. data/sig/modern_treasury/models/counterparty_list_params.rbs +7 -0
  203. data/sig/modern_treasury/models/document.rbs +0 -4
  204. data/sig/modern_treasury/models/document_create_params.rbs +0 -4
  205. data/sig/modern_treasury/models/document_list_params.rbs +0 -4
  206. data/sig/modern_treasury/models/expected_payment.rbs +5 -0
  207. data/sig/modern_treasury/models/expected_payment_create_params.rbs +11 -173
  208. data/sig/modern_treasury/models/expected_payment_list_params.rbs +7 -0
  209. data/sig/modern_treasury/models/expected_payment_update_params.rbs +5 -0
  210. data/sig/modern_treasury/models/external_account.rbs +13 -139
  211. data/sig/modern_treasury/models/external_account_create_params.rbs +23 -189
  212. data/sig/modern_treasury/models/external_account_list_params.rbs +7 -0
  213. data/sig/modern_treasury/models/external_account_update_params.rbs +6 -48
  214. data/sig/modern_treasury/models/foreign_exchange_quote.rbs +4 -51
  215. data/sig/modern_treasury/models/foreign_exchange_rate.rbs +50 -0
  216. data/sig/modern_treasury/models/identification_create_request.rbs +93 -0
  217. data/sig/modern_treasury/models/internal_account.rbs +4 -71
  218. data/sig/modern_treasury/models/internal_account_update_account_capability_params.rbs +28 -0
  219. data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +137 -0
  220. data/sig/modern_treasury/models/invoice.rbs +4 -68
  221. data/sig/modern_treasury/models/invoice_create_params.rbs +6 -70
  222. data/sig/modern_treasury/models/invoice_update_params.rbs +6 -70
  223. data/sig/modern_treasury/models/ledger_account.rbs +12 -123
  224. data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +4 -142
  225. data/sig/modern_treasury/models/ledger_account_category.rbs +4 -142
  226. data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +5 -5
  227. data/sig/modern_treasury/models/ledger_account_create_params.rbs +4 -84
  228. data/sig/modern_treasury/models/ledger_account_create_request.rbs +89 -0
  229. data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +8 -284
  230. data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +8 -284
  231. data/sig/modern_treasury/models/ledger_balance.rbs +40 -0
  232. data/sig/modern_treasury/models/ledger_balances.rbs +30 -0
  233. data/sig/modern_treasury/models/ledger_entry.rbs +4 -142
  234. data/sig/modern_treasury/models/ledger_entry_create_request.rbs +62 -0
  235. data/sig/modern_treasury/models/ledger_entry_list_params.rbs +21 -3
  236. data/sig/modern_treasury/models/ledger_transaction.rbs +5 -2
  237. data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +4 -165
  238. data/sig/modern_treasury/models/ledger_transaction_create_request.rbs +109 -0
  239. data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +0 -2
  240. data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +21 -5
  241. data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +6 -67
  242. data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +9 -144
  243. data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +68 -0
  244. data/sig/modern_treasury/models/legal_entity_association.rbs +3 -1
  245. data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +9 -380
  246. data/sig/modern_treasury/models/legal_entity_create_params.rbs +21 -548
  247. data/sig/modern_treasury/models/legal_entity_update_params.rbs +12 -168
  248. data/sig/modern_treasury/models/line_item.rbs +4 -16
  249. data/sig/modern_treasury/models/payment_action_list_params.rbs +2 -1
  250. data/sig/modern_treasury/models/payment_order.rbs +22 -69
  251. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +35 -380
  252. data/sig/modern_treasury/models/payment_order_create_params.rbs +35 -384
  253. data/sig/modern_treasury/models/payment_order_update_params.rbs +29 -207
  254. data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +6 -173
  255. data/sig/modern_treasury/models/payment_reference.rbs +14 -2
  256. data/sig/modern_treasury/models/return_list_params.rbs +1 -6
  257. data/sig/modern_treasury/models/return_object.rbs +15 -10
  258. data/sig/modern_treasury/models/routing_detail.rbs +4 -71
  259. data/sig/modern_treasury/models/routing_number_lookup_request.rbs +6 -48
  260. data/sig/modern_treasury/models/transaction.rbs +8 -53
  261. data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +0 -2
  262. data/sig/modern_treasury/models/virtual_account_create_params.rbs +6 -95
  263. data/sig/modern_treasury/models.rbs +30 -6
  264. data/sig/modern_treasury/resources/counterparties.rbs +2 -0
  265. data/sig/modern_treasury/resources/expected_payments.rbs +4 -1
  266. data/sig/modern_treasury/resources/external_accounts.rbs +6 -4
  267. data/sig/modern_treasury/resources/internal_accounts.rbs +7 -0
  268. data/sig/modern_treasury/resources/invoices.rbs +2 -2
  269. data/sig/modern_treasury/resources/ledger_account_categories.rbs +1 -1
  270. data/sig/modern_treasury/resources/ledger_accounts.rbs +1 -1
  271. data/sig/modern_treasury/resources/ledger_transactions.rbs +4 -4
  272. data/sig/modern_treasury/resources/legal_entities.rbs +4 -4
  273. data/sig/modern_treasury/resources/legal_entity_associations.rbs +1 -1
  274. data/sig/modern_treasury/resources/payment_orders/reversals.rbs +1 -1
  275. data/sig/modern_treasury/resources/payment_orders.rbs +5 -5
  276. data/sig/modern_treasury/resources/virtual_accounts.rbs +1 -1
  277. metadata +52 -22
  278. data/lib/modern_treasury/models/paper_item.rb +0 -178
  279. data/lib/modern_treasury/models/paper_item_list_params.rb +0 -56
  280. data/lib/modern_treasury/models/paper_item_retrieve_params.rb +0 -14
  281. data/lib/modern_treasury/resources/ledger_event_handlers.rb +0 -14
  282. data/lib/modern_treasury/resources/ledgerable_events.rb +0 -14
  283. data/lib/modern_treasury/resources/paper_items.rb +0 -68
  284. data/rbi/modern_treasury/models/paper_item.rbi +0 -204
  285. data/rbi/modern_treasury/models/paper_item_list_params.rbi +0 -88
  286. data/rbi/modern_treasury/models/paper_item_retrieve_params.rbi +0 -32
  287. data/rbi/modern_treasury/resources/ledger_event_handlers.rbi +0 -12
  288. data/rbi/modern_treasury/resources/ledgerable_events.rbi +0 -12
  289. data/rbi/modern_treasury/resources/paper_items.rbi +0 -51
  290. data/sig/modern_treasury/models/paper_item.rbs +0 -122
  291. data/sig/modern_treasury/models/paper_item_list_params.rbs +0 -54
  292. data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +0 -15
  293. data/sig/modern_treasury/resources/ledger_event_handlers.rbs +0 -7
  294. data/sig/modern_treasury/resources/ledgerable_events.rbs +0 -7
  295. data/sig/modern_treasury/resources/paper_items.rbs +0 -21
@@ -10,11 +10,9 @@ module ModernTreasury
10
10
  # @!attribute addresses
11
11
  # A list of addresses for the entity.
12
12
  #
13
- # @return [Array<ModernTreasury::Models::LegalEntityUpdateParams::Address>, nil]
13
+ # @return [Array<ModernTreasury::Models::LegalEntityAddressCreateRequest>, nil]
14
14
  optional :addresses,
15
- -> {
16
- ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityUpdateParams::Address]
17
- }
15
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityAddressCreateRequest] }
18
16
 
19
17
  # @!attribute bank_settings
20
18
  #
@@ -70,11 +68,9 @@ module ModernTreasury
70
68
  # @!attribute identifications
71
69
  # A list of identifications for the legal entity.
72
70
  #
73
- # @return [Array<ModernTreasury::Models::LegalEntityUpdateParams::Identification>, nil]
71
+ # @return [Array<ModernTreasury::Models::IdentificationCreateRequest>, nil]
74
72
  optional :identifications,
75
- -> {
76
- ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityUpdateParams::Identification]
77
- }
73
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::IdentificationCreateRequest] }
78
74
 
79
75
  # @!attribute industry_classifications
80
76
  # A list of industry classifications for the legal entity.
@@ -165,7 +161,7 @@ module ModernTreasury
165
161
  # Some parameter documentations has been truncated, see
166
162
  # {ModernTreasury::Models::LegalEntityUpdateParams} for more details.
167
163
  #
168
- # @param addresses [Array<ModernTreasury::Models::LegalEntityUpdateParams::Address>] A list of addresses for the entity.
164
+ # @param addresses [Array<ModernTreasury::Models::LegalEntityAddressCreateRequest>] A list of addresses for the entity.
169
165
  #
170
166
  # @param bank_settings [ModernTreasury::Models::BankSettings, nil]
171
167
  #
@@ -185,7 +181,7 @@ module ModernTreasury
185
181
  #
186
182
  # @param first_name [String, nil] An individual's first name.
187
183
  #
188
- # @param identifications [Array<ModernTreasury::Models::LegalEntityUpdateParams::Identification>] A list of identifications for the legal entity.
184
+ # @param identifications [Array<ModernTreasury::Models::IdentificationCreateRequest>] A list of identifications for the legal entity.
189
185
  #
190
186
  # @param industry_classifications [Array<ModernTreasury::Models::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
191
187
  #
@@ -215,161 +211,6 @@ module ModernTreasury
215
211
  #
216
212
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
217
213
 
218
- class Address < ModernTreasury::Internal::Type::BaseModel
219
- # @!attribute country
220
- # Country code conforms to [ISO 3166-1 alpha-2]
221
- #
222
- # @return [String, nil]
223
- required :country, String, nil?: true
224
-
225
- # @!attribute line1
226
- #
227
- # @return [String, nil]
228
- required :line1, String, nil?: true
229
-
230
- # @!attribute locality
231
- # Locality or City.
232
- #
233
- # @return [String, nil]
234
- required :locality, String, nil?: true
235
-
236
- # @!attribute postal_code
237
- # The postal code of the address.
238
- #
239
- # @return [String, nil]
240
- required :postal_code, String, nil?: true
241
-
242
- # @!attribute region
243
- # Region or State.
244
- #
245
- # @return [String, nil]
246
- required :region, String, nil?: true
247
-
248
- # @!attribute address_types
249
- # The types of this address.
250
- #
251
- # @return [Array<Symbol, ModernTreasury::Models::LegalEntityUpdateParams::Address::AddressType>, nil]
252
- optional :address_types,
253
- -> {
254
- ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::LegalEntityUpdateParams::Address::AddressType]
255
- }
256
-
257
- # @!attribute line2
258
- #
259
- # @return [String, nil]
260
- optional :line2, String, nil?: true
261
-
262
- # @!method initialize(country:, line1:, locality:, postal_code:, region:, address_types: nil, line2: nil)
263
- # @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
264
- #
265
- # @param line1 [String, nil]
266
- #
267
- # @param locality [String, nil] Locality or City.
268
- #
269
- # @param postal_code [String, nil] The postal code of the address.
270
- #
271
- # @param region [String, nil] Region or State.
272
- #
273
- # @param address_types [Array<Symbol, ModernTreasury::Models::LegalEntityUpdateParams::Address::AddressType>] The types of this address.
274
- #
275
- # @param line2 [String, nil]
276
-
277
- module AddressType
278
- extend ModernTreasury::Internal::Type::Enum
279
-
280
- BUSINESS = :business
281
- MAILING = :mailing
282
- OTHER = :other
283
- PO_BOX = :po_box
284
- RESIDENTIAL = :residential
285
-
286
- # @!method self.values
287
- # @return [Array<Symbol>]
288
- end
289
- end
290
-
291
- class Identification < ModernTreasury::Internal::Type::BaseModel
292
- # @!attribute id_number
293
- # The ID number of identification document.
294
- #
295
- # @return [String]
296
- required :id_number, String
297
-
298
- # @!attribute id_type
299
- # The type of ID number.
300
- #
301
- # @return [Symbol, ModernTreasury::Models::LegalEntityUpdateParams::Identification::IDType]
302
- required :id_type, enum: -> { ModernTreasury::LegalEntityUpdateParams::Identification::IDType }
303
-
304
- # @!attribute expiration_date
305
- # The date when the Identification is no longer considered valid by the issuing
306
- # authority.
307
- #
308
- # @return [Date, nil]
309
- optional :expiration_date, Date, nil?: true
310
-
311
- # @!attribute issuing_country
312
- # The ISO 3166-1 alpha-2 country code of the country that issued the
313
- # identification
314
- #
315
- # @return [String, nil]
316
- optional :issuing_country, String, nil?: true
317
-
318
- # @!attribute issuing_region
319
- # The region in which the identifcation was issued.
320
- #
321
- # @return [String, nil]
322
- optional :issuing_region, String, nil?: true
323
-
324
- # @!method initialize(id_number:, id_type:, expiration_date: nil, issuing_country: nil, issuing_region: nil)
325
- # Some parameter documentations has been truncated, see
326
- # {ModernTreasury::Models::LegalEntityUpdateParams::Identification} for more
327
- # details.
328
- #
329
- # @param id_number [String] The ID number of identification document.
330
- #
331
- # @param id_type [Symbol, ModernTreasury::Models::LegalEntityUpdateParams::Identification::IDType] The type of ID number.
332
- #
333
- # @param expiration_date [Date, nil] The date when the Identification is no longer considered valid by the issuing au
334
- #
335
- # @param issuing_country [String, nil] The ISO 3166-1 alpha-2 country code of the country that issued the identificatio
336
- #
337
- # @param issuing_region [String, nil] The region in which the identifcation was issued.
338
-
339
- # The type of ID number.
340
- #
341
- # @see ModernTreasury::Models::LegalEntityUpdateParams::Identification#id_type
342
- module IDType
343
- extend ModernTreasury::Internal::Type::Enum
344
-
345
- AR_CUIL = :ar_cuil
346
- AR_CUIT = :ar_cuit
347
- BR_CNPJ = :br_cnpj
348
- BR_CPF = :br_cpf
349
- CL_RUN = :cl_run
350
- CL_RUT = :cl_rut
351
- CO_CEDULAS = :co_cedulas
352
- CO_NIT = :co_nit
353
- DRIVERS_LICENSE = :drivers_license
354
- HN_ID = :hn_id
355
- HN_RTN = :hn_rtn
356
- IN_LEI = :in_lei
357
- KR_BRN = :kr_brn
358
- KR_CRN = :kr_crn
359
- KR_RRN = :kr_rrn
360
- PASSPORT = :passport
361
- SA_TIN = :sa_tin
362
- SA_VAT = :sa_vat
363
- US_EIN = :us_ein
364
- US_ITIN = :us_itin
365
- US_SSN = :us_ssn
366
- VN_TIN = :vn_tin
367
-
368
- # @!method self.values
369
- # @return [Array<Symbol>]
370
- end
371
- end
372
-
373
214
  # The business's legal structure.
374
215
  module LegalStructure
375
216
  extend ModernTreasury::Internal::Type::Enum
@@ -11,8 +11,8 @@ module ModernTreasury
11
11
 
12
12
  # @!attribute accounting
13
13
  #
14
- # @return [ModernTreasury::Models::LineItem::Accounting]
15
- required :accounting, -> { ModernTreasury::LineItem::Accounting }
14
+ # @return [ModernTreasury::Models::Accounting]
15
+ required :accounting, -> { ModernTreasury::Accounting }
16
16
 
17
17
  # @!attribute accounting_category_id
18
18
  # The ID of one of your accounting categories. Note that these will only be
@@ -89,7 +89,7 @@ module ModernTreasury
89
89
  #
90
90
  # @param id [String]
91
91
  #
92
- # @param accounting [ModernTreasury::Models::LineItem::Accounting]
92
+ # @param accounting [ModernTreasury::Models::Accounting]
93
93
  #
94
94
  # @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
95
95
  #
@@ -113,32 +113,6 @@ module ModernTreasury
113
113
  #
114
114
  # @param updated_at [Time]
115
115
 
116
- # @see ModernTreasury::Models::LineItem#accounting
117
- class Accounting < ModernTreasury::Internal::Type::BaseModel
118
- # @!attribute account_id
119
- # The ID of one of your accounting categories. Note that these will only be
120
- # accessible if your accounting system has been connected.
121
- #
122
- # @return [String, nil]
123
- optional :account_id, String, nil?: true
124
-
125
- # @!attribute class_id
126
- # The ID of one of the class objects in your accounting system. Class objects
127
- # track segments of your business independent of client or project. Note that
128
- # these will only be accessible if your accounting system has been connected.
129
- #
130
- # @return [String, nil]
131
- optional :class_id, String, nil?: true
132
-
133
- # @!method initialize(account_id: nil, class_id: nil)
134
- # Some parameter documentations has been truncated, see
135
- # {ModernTreasury::Models::LineItem::Accounting} for more details.
136
- #
137
- # @param account_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
138
- #
139
- # @param class_id [String, nil] The ID of one of the class objects in your accounting system. Class objects trac
140
- end
141
-
142
116
  # One of `payment_orders` or `expected_payments`.
143
117
  #
144
118
  # @see ModernTreasury::Models::LineItem#itemizable_type
@@ -146,6 +146,7 @@ module ModernTreasury
146
146
  module Type
147
147
  extend ModernTreasury::Internal::Type::Enum
148
148
 
149
+ EVOLVE_NON_PROCESSING_TRANSACTION = :evolve_non_processing_transaction
149
150
  STOP = :stop
150
151
  ISSUE = :issue
151
152
 
@@ -11,8 +11,8 @@ module ModernTreasury
11
11
 
12
12
  # @!attribute accounting
13
13
  #
14
- # @return [ModernTreasury::Models::PaymentOrder::Accounting]
15
- required :accounting, -> { ModernTreasury::PaymentOrder::Accounting }
14
+ # @return [ModernTreasury::Models::Accounting]
15
+ required :accounting, -> { ModernTreasury::Accounting }
16
16
 
17
17
  # @!attribute accounting_category_id
18
18
  # @deprecated
@@ -127,8 +127,8 @@ module ModernTreasury
127
127
  # @!attribute foreign_exchange_rate
128
128
  # Associated serialized foreign exchange rate information.
129
129
  #
130
- # @return [ModernTreasury::Models::PaymentOrder::ForeignExchangeRate, nil]
131
- required :foreign_exchange_rate, -> { ModernTreasury::PaymentOrder::ForeignExchangeRate }, nil?: true
130
+ # @return [ModernTreasury::Models::ForeignExchangeRate, nil]
131
+ required :foreign_exchange_rate, -> { ModernTreasury::ForeignExchangeRate }, nil?: true
132
132
 
133
133
  # @!attribute ledger_transaction_id
134
134
  # The ID of the ledger transaction linked to the payment order.
@@ -348,7 +348,7 @@ module ModernTreasury
348
348
  #
349
349
  # @param id [String]
350
350
  #
351
- # @param accounting [ModernTreasury::Models::PaymentOrder::Accounting]
351
+ # @param accounting [ModernTreasury::Models::Accounting]
352
352
  #
353
353
  # @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
354
354
  #
@@ -380,7 +380,7 @@ module ModernTreasury
380
380
  #
381
381
  # @param foreign_exchange_indicator [Symbol, ModernTreasury::Models::PaymentOrder::ForeignExchangeIndicator, nil] Indicates the type of FX transfer to initiate, can be either `variable_to_fixed`
382
382
  #
383
- # @param foreign_exchange_rate [ModernTreasury::Models::PaymentOrder::ForeignExchangeRate, nil] Associated serialized foreign exchange rate information.
383
+ # @param foreign_exchange_rate [ModernTreasury::Models::ForeignExchangeRate, nil] Associated serialized foreign exchange rate information.
384
384
  #
385
385
  # @param ledger_transaction_id [String, nil] The ID of the ledger transaction linked to the payment order.
386
386
  #
@@ -442,32 +442,6 @@ module ModernTreasury
442
442
  #
443
443
  # @param vendor_failure_reason [String, nil] This field will be populated if a vendor failure occurs. Logic shouldn't be buil
444
444
 
445
- # @see ModernTreasury::Models::PaymentOrder#accounting
446
- class Accounting < ModernTreasury::Internal::Type::BaseModel
447
- # @!attribute account_id
448
- # The ID of one of your accounting categories. Note that these will only be
449
- # accessible if your accounting system has been connected.
450
- #
451
- # @return [String, nil]
452
- optional :account_id, String, nil?: true
453
-
454
- # @!attribute class_id
455
- # The ID of one of the class objects in your accounting system. Class objects
456
- # track segments of your business independent of client or project. Note that
457
- # these will only be accessible if your accounting system has been connected.
458
- #
459
- # @return [String, nil]
460
- optional :class_id, String, nil?: true
461
-
462
- # @!method initialize(account_id: nil, class_id: nil)
463
- # Some parameter documentations has been truncated, see
464
- # {ModernTreasury::Models::PaymentOrder::Accounting} for more details.
465
- #
466
- # @param account_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
467
- #
468
- # @param class_id [String, nil] The ID of one of the class objects in your accounting system. Class objects trac
469
- end
470
-
471
445
  # The party that will pay the fees for the payment order. See
472
446
  # https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
473
447
  # differences between the options.
@@ -515,75 +489,6 @@ module ModernTreasury
515
489
  # @return [Array<Symbol>]
516
490
  end
517
491
 
518
- # @see ModernTreasury::Models::PaymentOrder#foreign_exchange_rate
519
- class ForeignExchangeRate < ModernTreasury::Internal::Type::BaseModel
520
- # @!attribute base_amount
521
- # Amount in the lowest denomination of the `base_currency` to convert, often
522
- # called the "sell" amount.
523
- #
524
- # @return [Integer]
525
- required :base_amount, Integer
526
-
527
- # @!attribute base_currency
528
- # Currency to convert, often called the "sell" currency.
529
- #
530
- # @return [Symbol, ModernTreasury::Models::Currency]
531
- required :base_currency, enum: -> { ModernTreasury::Currency }
532
-
533
- # @!attribute exponent
534
- # The exponent component of the rate. The decimal is calculated as `value` / (10 ^
535
- # `exponent`).
536
- #
537
- # @return [Integer]
538
- required :exponent, Integer
539
-
540
- # @!attribute rate_string
541
- # A string representation of the rate.
542
- #
543
- # @return [String]
544
- required :rate_string, String
545
-
546
- # @!attribute target_amount
547
- # Amount in the lowest denomination of the `target_currency`, often called the
548
- # "buy" amount.
549
- #
550
- # @return [Integer]
551
- required :target_amount, Integer
552
-
553
- # @!attribute target_currency
554
- # Currency to convert the `base_currency` to, often called the "buy" currency.
555
- #
556
- # @return [Symbol, ModernTreasury::Models::Currency]
557
- required :target_currency, enum: -> { ModernTreasury::Currency }
558
-
559
- # @!attribute value
560
- # The whole number component of the rate. The decimal is calculated as `value` /
561
- # (10 ^ `exponent`).
562
- #
563
- # @return [Integer]
564
- required :value, Integer
565
-
566
- # @!method initialize(base_amount:, base_currency:, exponent:, rate_string:, target_amount:, target_currency:, value:)
567
- # Some parameter documentations has been truncated, see
568
- # {ModernTreasury::Models::PaymentOrder::ForeignExchangeRate} for more details.
569
- #
570
- # Associated serialized foreign exchange rate information.
571
- #
572
- # @param base_amount [Integer] Amount in the lowest denomination of the `base_currency` to convert, often calle
573
- #
574
- # @param base_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert, often called the "sell" currency.
575
- #
576
- # @param exponent [Integer] The exponent component of the rate. The decimal is calculated as `value` / (10 ^
577
- #
578
- # @param rate_string [String] A string representation of the rate.
579
- #
580
- # @param target_amount [Integer] Amount in the lowest denomination of the `target_currency`, often called the "bu
581
- #
582
- # @param target_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert the `base_currency` to, often called the "buy" currency.
583
- #
584
- # @param value [Integer] The whole number component of the rate. The decimal is calculated as `value` / (
585
- end
586
-
587
492
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
588
493
  # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
589
494
  # an overnight check rather than standard mail.
@@ -703,7 +608,11 @@ module ModernTreasury
703
608
  CURRENCYCLOUD_PAYMENT_ID = :currencycloud_payment_id
704
609
  DC_BANK_TRANSACTION_ID = :dc_bank_transaction_id
705
610
  EFT_TRACE_NUMBER = :eft_trace_number
611
+ EVOLVE_CORE_BATCH = :evolve_core_batch
612
+ EVOLVE_CORE_FILE_KEY = :evolve_core_file_key
613
+ EVOLVE_CORE_SEQ = :evolve_core_seq
706
614
  EVOLVE_TRANSACTION_ID = :evolve_transaction_id
615
+ FAKE_VENDOR_PAYMENT_ID = :fake_vendor_payment_id
707
616
  FEDWIRE_IMAD = :fedwire_imad
708
617
  FEDWIRE_OMAD = :fedwire_omad
709
618
  FIRST_REPUBLIC_INTERNAL_ID = :first_republic_internal_id
@@ -736,7 +645,6 @@ module ModernTreasury
736
645
  PNC_REQUEST_FOR_PAYMENT_ID = :pnc_request_for_payment_id
737
646
  PNC_TRANSACTION_REFERENCE_NUMBER = :pnc_transaction_reference_number
738
647
  RBC_WIRE_REFERENCE_ID = :rbc_wire_reference_id
739
- RSPEC_VENDOR_PAYMENT_ID = :rspec_vendor_payment_id
740
648
  RTP_INSTRUCTION_ID = :rtp_instruction_id
741
649
  SIGNET_API_REFERENCE_ID = :signet_api_reference_id
742
650
  SIGNET_CONFIRMATION_ID = :signet_confirmation_id
@@ -757,6 +665,9 @@ module ModernTreasury
757
665
  WELLS_FARGO_PAYMENT_ID = :wells_fargo_payment_id
758
666
  WELLS_FARGO_TRACE_NUMBER = :wells_fargo_trace_number
759
667
  WELLS_FARGO_UETR = :wells_fargo_uetr
668
+ WESTERN_ALLIANCE_PAYMENT_ID = :western_alliance_payment_id
669
+ WESTERN_ALLIANCE_TRANSACTION_ID = :western_alliance_transaction_id
670
+ WESTERN_ALLIANCE_WIRE_CONFIRMATION_NUMBER = :western_alliance_wire_confirmation_number
760
671
 
761
672
  # @!method self.values
762
673
  # @return [Array<Symbol>]