modern_treasury 0.1.0.pre.alpha.22 → 0.2.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 (307) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +54 -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/array_of.rb +1 -0
  7. data/lib/modern_treasury/internal/type/base_model.rb +7 -5
  8. data/lib/modern_treasury/internal/type/converter.rb +27 -0
  9. data/lib/modern_treasury/internal/type/hash_of.rb +1 -0
  10. data/lib/modern_treasury/internal/type/union.rb +9 -7
  11. data/lib/modern_treasury/models/accounting.rb +30 -0
  12. data/lib/modern_treasury/models/address.rb +94 -0
  13. data/lib/modern_treasury/models/address_request.rb +54 -0
  14. data/lib/modern_treasury/models/bulk_request_create_params.rb +144 -1505
  15. data/lib/modern_treasury/models/child_legal_entity_create.rb +275 -0
  16. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +10 -627
  17. data/lib/modern_treasury/models/contact_detail.rb +81 -0
  18. data/lib/modern_treasury/models/contact_detail_create_request.rb +34 -0
  19. data/lib/modern_treasury/models/counterparty.rb +24 -177
  20. data/lib/modern_treasury/models/counterparty_create_params.rb +37 -838
  21. data/lib/modern_treasury/models/counterparty_list_params.rb +9 -1
  22. data/lib/modern_treasury/models/document.rb +4 -6
  23. data/lib/modern_treasury/models/document_create_params.rb +0 -2
  24. data/lib/modern_treasury/models/document_list_params.rb +4 -6
  25. data/lib/modern_treasury/models/expected_payment.rb +9 -1
  26. data/lib/modern_treasury/models/expected_payment_create_params.rb +12 -230
  27. data/lib/modern_treasury/models/expected_payment_list_params.rb +8 -1
  28. data/lib/modern_treasury/models/expected_payment_update_params.rb +9 -1
  29. data/lib/modern_treasury/models/external_account.rb +15 -177
  30. data/lib/modern_treasury/models/external_account_create_params.rb +18 -210
  31. data/lib/modern_treasury/models/external_account_list_params.rb +9 -1
  32. data/lib/modern_treasury/models/external_account_update_params.rb +3 -52
  33. data/lib/modern_treasury/models/foreign_exchange_quote.rb +3 -73
  34. data/lib/modern_treasury/models/foreign_exchange_rate.rb +71 -0
  35. data/lib/modern_treasury/models/identification_create_request.rb +86 -0
  36. data/lib/modern_treasury/models/internal_account.rb +3 -95
  37. data/lib/modern_treasury/models/internal_account_update_account_capability_params.rb +34 -0
  38. data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +131 -0
  39. data/lib/modern_treasury/models/invoice.rb +3 -81
  40. data/lib/modern_treasury/models/invoice_create_params.rb +3 -83
  41. data/lib/modern_treasury/models/invoice_update_params.rb +3 -83
  42. data/lib/modern_treasury/models/ledger_account.rb +9 -141
  43. data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +3 -182
  44. data/lib/modern_treasury/models/ledger_account_category.rb +3 -175
  45. data/lib/modern_treasury/models/ledger_account_category_list_params.rb +9 -5
  46. data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +4 -2
  47. data/lib/modern_treasury/models/ledger_account_create_params.rb +2 -105
  48. data/lib/modern_treasury/models/ledger_account_create_request.rb +113 -0
  49. data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +6 -360
  50. data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +6 -360
  51. data/lib/modern_treasury/models/ledger_balance.rb +45 -0
  52. data/lib/modern_treasury/models/ledger_balances.rb +38 -0
  53. data/lib/modern_treasury/models/ledger_entry.rb +3 -183
  54. data/lib/modern_treasury/models/ledger_entry_create_request.rb +98 -0
  55. data/lib/modern_treasury/models/ledger_entry_list_params.rb +8 -6
  56. data/lib/modern_treasury/models/ledger_transaction.rb +14 -6
  57. data/lib/modern_treasury/models/ledger_transaction_create_params.rb +2 -212
  58. data/lib/modern_treasury/models/ledger_transaction_create_request.rb +123 -0
  59. data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +0 -1
  60. data/lib/modern_treasury/models/ledger_transaction_list_params.rb +44 -7
  61. data/lib/modern_treasury/models/ledger_transaction_update_params.rb +5 -104
  62. data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +15 -193
  63. data/lib/modern_treasury/models/legal_entity_address_create_request.rb +78 -0
  64. data/lib/modern_treasury/models/legal_entity_association.rb +1 -0
  65. data/lib/modern_treasury/models/legal_entity_association_create_params.rb +4 -448
  66. data/lib/modern_treasury/models/legal_entity_create_params.rb +10 -618
  67. data/lib/modern_treasury/models/legal_entity_update_params.rb +6 -165
  68. data/lib/modern_treasury/models/line_item.rb +3 -29
  69. data/lib/modern_treasury/models/payment_action_list_params.rb +2 -0
  70. data/lib/modern_treasury/models/payment_order.rb +13 -102
  71. data/lib/modern_treasury/models/payment_order_create_async_params.rb +24 -477
  72. data/lib/modern_treasury/models/payment_order_create_params.rb +24 -479
  73. data/lib/modern_treasury/models/payment_order_update_params.rb +21 -248
  74. data/lib/modern_treasury/models/payment_orders/reversal.rb +3 -4
  75. data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +3 -232
  76. data/lib/modern_treasury/models/payment_reference.rb +7 -1
  77. data/lib/modern_treasury/models/return_list_params.rb +5 -6
  78. data/lib/modern_treasury/models/return_object.rb +7 -3
  79. data/lib/modern_treasury/models/routing_detail.rb +3 -93
  80. data/lib/modern_treasury/models/routing_number_lookup_request.rb +3 -55
  81. data/lib/modern_treasury/models/transaction.rb +5 -73
  82. data/lib/modern_treasury/models/transactions/transaction_line_item.rb +0 -1
  83. data/lib/modern_treasury/models/virtual_account_create_params.rb +3 -117
  84. data/lib/modern_treasury/models.rb +31 -6
  85. data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
  86. data/lib/modern_treasury/resources/counterparties.rb +20 -14
  87. data/lib/modern_treasury/resources/expected_payments.rb +10 -4
  88. data/lib/modern_treasury/resources/external_accounts.rb +23 -17
  89. data/lib/modern_treasury/resources/internal_accounts.rb +34 -0
  90. data/lib/modern_treasury/resources/invoices.rb +2 -2
  91. data/lib/modern_treasury/resources/ledger_account_categories.rb +1 -1
  92. data/lib/modern_treasury/resources/ledger_accounts.rb +1 -1
  93. data/lib/modern_treasury/resources/ledger_entries.rb +1 -1
  94. data/lib/modern_treasury/resources/ledger_transactions.rb +5 -5
  95. data/lib/modern_treasury/resources/legal_entities.rb +4 -4
  96. data/lib/modern_treasury/resources/legal_entity_associations.rb +1 -1
  97. data/lib/modern_treasury/resources/payment_orders/reversals.rb +1 -1
  98. data/lib/modern_treasury/resources/payment_orders.rb +5 -5
  99. data/lib/modern_treasury/resources/returns.rb +1 -1
  100. data/lib/modern_treasury/resources/virtual_accounts.rb +1 -1
  101. data/lib/modern_treasury/version.rb +1 -1
  102. data/lib/modern_treasury.rb +16 -6
  103. data/rbi/modern_treasury/client.rbi +0 -9
  104. data/rbi/modern_treasury/internal/transport/base_client.rbi +1 -1
  105. data/rbi/modern_treasury/internal/type/converter.rbi +58 -0
  106. data/rbi/modern_treasury/internal/type/union.rbi +11 -2
  107. data/rbi/modern_treasury/models/accounting.rbi +48 -0
  108. data/rbi/modern_treasury/models/address.rbi +107 -0
  109. data/rbi/modern_treasury/models/address_request.rbi +76 -0
  110. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +701 -3140
  111. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +511 -0
  112. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +17 -1314
  113. data/rbi/modern_treasury/models/contact_detail.rbi +124 -0
  114. data/rbi/modern_treasury/models/contact_detail_create_request.rbi +99 -0
  115. data/rbi/modern_treasury/models/counterparty.rbi +24 -264
  116. data/rbi/modern_treasury/models/counterparty_create_params.rbi +47 -1718
  117. data/rbi/modern_treasury/models/counterparty_list_params.rbi +11 -0
  118. data/rbi/modern_treasury/models/document.rbi +6 -16
  119. data/rbi/modern_treasury/models/document_create_params.rbi +0 -10
  120. data/rbi/modern_treasury/models/document_list_params.rbi +6 -16
  121. data/rbi/modern_treasury/models/expected_payment.rbi +8 -0
  122. data/rbi/modern_treasury/models/expected_payment_create_params.rbi +12 -419
  123. data/rbi/modern_treasury/models/expected_payment_list_params.rbi +9 -0
  124. data/rbi/modern_treasury/models/expected_payment_update_params.rbi +8 -0
  125. data/rbi/modern_treasury/models/external_account.rbi +15 -244
  126. data/rbi/modern_treasury/models/external_account_create_params.rbi +20 -400
  127. data/rbi/modern_treasury/models/external_account_list_params.rbi +11 -0
  128. data/rbi/modern_treasury/models/external_account_update_params.rbi +4 -86
  129. data/rbi/modern_treasury/models/foreign_exchange_quote.rbi +4 -99
  130. data/rbi/modern_treasury/models/foreign_exchange_rate.rbi +96 -0
  131. data/rbi/modern_treasury/models/identification_create_request.rbi +212 -0
  132. data/rbi/modern_treasury/models/internal_account.rbi +4 -115
  133. data/rbi/modern_treasury/models/internal_account_update_account_capability_params.rbi +54 -0
  134. data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +304 -0
  135. data/rbi/modern_treasury/models/invoice.rbi +3 -128
  136. data/rbi/modern_treasury/models/invoice_create_params.rbi +4 -139
  137. data/rbi/modern_treasury/models/invoice_update_params.rbi +4 -139
  138. data/rbi/modern_treasury/models/ledger_account.rbi +12 -218
  139. data/rbi/modern_treasury/models/ledger_account_balance_monitor.rbi +4 -303
  140. data/rbi/modern_treasury/models/ledger_account_category.rbi +4 -301
  141. data/rbi/modern_treasury/models/ledger_account_category_list_params.rbi +14 -7
  142. data/rbi/modern_treasury/models/ledger_account_category_retrieve_params.rbi +6 -3
  143. data/rbi/modern_treasury/models/ledger_account_create_params.rbi +5 -173
  144. data/rbi/modern_treasury/models/ledger_account_create_request.rbi +194 -0
  145. data/rbi/modern_treasury/models/ledger_account_statement_create_response.rbi +8 -612
  146. data/rbi/modern_treasury/models/ledger_account_statement_retrieve_response.rbi +8 -612
  147. data/rbi/modern_treasury/models/ledger_balance.rbi +66 -0
  148. data/rbi/modern_treasury/models/ledger_balances.rbi +75 -0
  149. data/rbi/modern_treasury/models/ledger_entry.rbi +4 -309
  150. data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +137 -0
  151. data/rbi/modern_treasury/models/ledger_entry_list_params.rbi +13 -8
  152. data/rbi/modern_treasury/models/ledger_transaction.rbi +17 -11
  153. data/rbi/modern_treasury/models/ledger_transaction_create_params.rbi +5 -383
  154. data/rbi/modern_treasury/models/ledger_transaction_create_request.rbi +258 -0
  155. data/rbi/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +0 -5
  156. data/rbi/modern_treasury/models/ledger_transaction_list_params.rbi +93 -18
  157. data/rbi/modern_treasury/models/ledger_transaction_update_params.rbi +7 -158
  158. data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +18 -316
  159. data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +157 -0
  160. data/rbi/modern_treasury/models/legal_entity_association.rbi +5 -0
  161. data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +9 -917
  162. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +17 -1297
  163. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +8 -378
  164. data/rbi/modern_treasury/models/line_item.rbi +4 -52
  165. data/rbi/modern_treasury/models/payment_action_list_params.rbi +10 -0
  166. data/rbi/modern_treasury/models/payment_order.rbi +43 -159
  167. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +28 -882
  168. data/rbi/modern_treasury/models/payment_order_create_params.rbi +28 -887
  169. data/rbi/modern_treasury/models/payment_order_update_params.rbi +24 -460
  170. data/rbi/modern_treasury/models/payment_orders/reversal.rbi +3 -3
  171. data/rbi/modern_treasury/models/payment_orders/reversal_create_params.rbi +4 -415
  172. data/rbi/modern_treasury/models/payment_reference.rbi +35 -5
  173. data/rbi/modern_treasury/models/return_list_params.rbi +6 -11
  174. data/rbi/modern_treasury/models/return_object.rbi +35 -12
  175. data/rbi/modern_treasury/models/routing_detail.rbi +4 -113
  176. data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +4 -87
  177. data/rbi/modern_treasury/models/transaction.rbi +14 -103
  178. data/rbi/modern_treasury/models/transactions/transaction_line_item.rbi +0 -5
  179. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +4 -203
  180. data/rbi/modern_treasury/models.rbi +36 -6
  181. data/rbi/modern_treasury/resources/bulk_requests.rbi +2 -2
  182. data/rbi/modern_treasury/resources/counterparties.rbi +20 -12
  183. data/rbi/modern_treasury/resources/documents.rbi +2 -2
  184. data/rbi/modern_treasury/resources/expected_payments.rbi +9 -1
  185. data/rbi/modern_treasury/resources/external_accounts.rbi +29 -22
  186. data/rbi/modern_treasury/resources/internal_accounts.rbi +24 -0
  187. data/rbi/modern_treasury/resources/invoices.rbi +2 -8
  188. data/rbi/modern_treasury/resources/ledger_account_categories.rbi +7 -3
  189. data/rbi/modern_treasury/resources/ledger_accounts.rbi +1 -1
  190. data/rbi/modern_treasury/resources/ledger_entries.rbi +4 -2
  191. data/rbi/modern_treasury/resources/ledger_transactions.rbi +13 -13
  192. data/rbi/modern_treasury/resources/legal_entities.rbi +4 -8
  193. data/rbi/modern_treasury/resources/legal_entity_associations.rbi +1 -2
  194. data/rbi/modern_treasury/resources/payment_orders/reversals.rbi +1 -1
  195. data/rbi/modern_treasury/resources/payment_orders.rbi +5 -8
  196. data/rbi/modern_treasury/resources/returns.rbi +2 -2
  197. data/rbi/modern_treasury/resources/virtual_accounts.rbi +1 -2
  198. data/sig/modern_treasury/client.rbs +0 -6
  199. data/sig/modern_treasury/internal/transport/base_client.rbs +1 -1
  200. data/sig/modern_treasury/internal/type/converter.rbs +17 -0
  201. data/sig/modern_treasury/internal/type/union.rbs +2 -2
  202. data/sig/modern_treasury/models/accounting.rbs +15 -0
  203. data/sig/modern_treasury/models/address.rbs +70 -0
  204. data/sig/modern_treasury/models/address_request.rbs +45 -0
  205. data/sig/modern_treasury/models/bulk_request_create_params.rbs +88 -1089
  206. data/sig/modern_treasury/models/child_legal_entity_create.rbs +220 -0
  207. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +21 -548
  208. data/sig/modern_treasury/models/contact_detail.rbs +67 -0
  209. data/sig/modern_treasury/models/contact_detail_create_request.rbs +43 -0
  210. data/sig/modern_treasury/models/counterparty.rbs +20 -141
  211. data/sig/modern_treasury/models/counterparty_create_params.rbs +49 -737
  212. data/sig/modern_treasury/models/counterparty_list_params.rbs +7 -0
  213. data/sig/modern_treasury/models/document.rbs +0 -4
  214. data/sig/modern_treasury/models/document_create_params.rbs +0 -4
  215. data/sig/modern_treasury/models/document_list_params.rbs +0 -4
  216. data/sig/modern_treasury/models/expected_payment.rbs +5 -0
  217. data/sig/modern_treasury/models/expected_payment_create_params.rbs +11 -173
  218. data/sig/modern_treasury/models/expected_payment_list_params.rbs +7 -0
  219. data/sig/modern_treasury/models/expected_payment_update_params.rbs +5 -0
  220. data/sig/modern_treasury/models/external_account.rbs +13 -139
  221. data/sig/modern_treasury/models/external_account_create_params.rbs +23 -189
  222. data/sig/modern_treasury/models/external_account_list_params.rbs +7 -0
  223. data/sig/modern_treasury/models/external_account_update_params.rbs +6 -48
  224. data/sig/modern_treasury/models/foreign_exchange_quote.rbs +4 -51
  225. data/sig/modern_treasury/models/foreign_exchange_rate.rbs +50 -0
  226. data/sig/modern_treasury/models/identification_create_request.rbs +93 -0
  227. data/sig/modern_treasury/models/internal_account.rbs +4 -71
  228. data/sig/modern_treasury/models/internal_account_update_account_capability_params.rbs +28 -0
  229. data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +137 -0
  230. data/sig/modern_treasury/models/invoice.rbs +4 -68
  231. data/sig/modern_treasury/models/invoice_create_params.rbs +6 -70
  232. data/sig/modern_treasury/models/invoice_update_params.rbs +6 -70
  233. data/sig/modern_treasury/models/ledger_account.rbs +12 -123
  234. data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +4 -142
  235. data/sig/modern_treasury/models/ledger_account_category.rbs +4 -142
  236. data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +5 -5
  237. data/sig/modern_treasury/models/ledger_account_create_params.rbs +4 -84
  238. data/sig/modern_treasury/models/ledger_account_create_request.rbs +89 -0
  239. data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +8 -284
  240. data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +8 -284
  241. data/sig/modern_treasury/models/ledger_balance.rbs +40 -0
  242. data/sig/modern_treasury/models/ledger_balances.rbs +30 -0
  243. data/sig/modern_treasury/models/ledger_entry.rbs +4 -142
  244. data/sig/modern_treasury/models/ledger_entry_create_request.rbs +62 -0
  245. data/sig/modern_treasury/models/ledger_entry_list_params.rbs +6 -6
  246. data/sig/modern_treasury/models/ledger_transaction.rbs +5 -2
  247. data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +4 -165
  248. data/sig/modern_treasury/models/ledger_transaction_create_request.rbs +109 -0
  249. data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +0 -2
  250. data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +21 -5
  251. data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +6 -67
  252. data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +9 -144
  253. data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +68 -0
  254. data/sig/modern_treasury/models/legal_entity_association.rbs +3 -1
  255. data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +9 -380
  256. data/sig/modern_treasury/models/legal_entity_create_params.rbs +21 -548
  257. data/sig/modern_treasury/models/legal_entity_update_params.rbs +12 -168
  258. data/sig/modern_treasury/models/line_item.rbs +4 -16
  259. data/sig/modern_treasury/models/payment_action_list_params.rbs +4 -1
  260. data/sig/modern_treasury/models/payment_order.rbs +22 -69
  261. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +35 -380
  262. data/sig/modern_treasury/models/payment_order_create_params.rbs +35 -384
  263. data/sig/modern_treasury/models/payment_order_update_params.rbs +29 -207
  264. data/sig/modern_treasury/models/payment_orders/reversal.rbs +4 -4
  265. data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +6 -173
  266. data/sig/modern_treasury/models/payment_reference.rbs +14 -2
  267. data/sig/modern_treasury/models/return_list_params.rbs +1 -6
  268. data/sig/modern_treasury/models/return_object.rbs +15 -10
  269. data/sig/modern_treasury/models/routing_detail.rbs +4 -71
  270. data/sig/modern_treasury/models/routing_number_lookup_request.rbs +6 -48
  271. data/sig/modern_treasury/models/transaction.rbs +8 -53
  272. data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +0 -2
  273. data/sig/modern_treasury/models/virtual_account_create_params.rbs +6 -95
  274. data/sig/modern_treasury/models.rbs +30 -6
  275. data/sig/modern_treasury/resources/counterparties.rbs +2 -0
  276. data/sig/modern_treasury/resources/expected_payments.rbs +4 -1
  277. data/sig/modern_treasury/resources/external_accounts.rbs +6 -4
  278. data/sig/modern_treasury/resources/internal_accounts.rbs +7 -0
  279. data/sig/modern_treasury/resources/invoices.rbs +2 -2
  280. data/sig/modern_treasury/resources/ledger_account_categories.rbs +1 -1
  281. data/sig/modern_treasury/resources/ledger_accounts.rbs +1 -1
  282. data/sig/modern_treasury/resources/ledger_entries.rbs +1 -1
  283. data/sig/modern_treasury/resources/ledger_transactions.rbs +4 -4
  284. data/sig/modern_treasury/resources/legal_entities.rbs +4 -4
  285. data/sig/modern_treasury/resources/legal_entity_associations.rbs +1 -1
  286. data/sig/modern_treasury/resources/payment_orders/reversals.rbs +1 -1
  287. data/sig/modern_treasury/resources/payment_orders.rbs +5 -5
  288. data/sig/modern_treasury/resources/virtual_accounts.rbs +1 -1
  289. metadata +52 -22
  290. data/lib/modern_treasury/models/paper_item.rb +0 -178
  291. data/lib/modern_treasury/models/paper_item_list_params.rb +0 -56
  292. data/lib/modern_treasury/models/paper_item_retrieve_params.rb +0 -14
  293. data/lib/modern_treasury/resources/ledger_event_handlers.rb +0 -14
  294. data/lib/modern_treasury/resources/ledgerable_events.rb +0 -14
  295. data/lib/modern_treasury/resources/paper_items.rb +0 -68
  296. data/rbi/modern_treasury/models/paper_item.rbi +0 -204
  297. data/rbi/modern_treasury/models/paper_item_list_params.rbi +0 -88
  298. data/rbi/modern_treasury/models/paper_item_retrieve_params.rbi +0 -32
  299. data/rbi/modern_treasury/resources/ledger_event_handlers.rbi +0 -12
  300. data/rbi/modern_treasury/resources/ledgerable_events.rbi +0 -12
  301. data/rbi/modern_treasury/resources/paper_items.rbi +0 -51
  302. data/sig/modern_treasury/models/paper_item.rbs +0 -122
  303. data/sig/modern_treasury/models/paper_item_list_params.rbs +0 -54
  304. data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +0 -15
  305. data/sig/modern_treasury/resources/ledger_event_handlers.rbs +0 -7
  306. data/sig/modern_treasury/resources/ledgerable_events.rbs +0 -7
  307. data/sig/modern_treasury/resources/paper_items.rbs +0 -21
@@ -36,11 +36,8 @@ module ModernTreasury
36
36
  # @!attribute contact_details
37
37
  # The invoicer's contact details displayed at the top of the invoice.
38
38
  #
39
- # @return [Array<ModernTreasury::Models::InvoiceCreateParams::ContactDetail>, nil]
40
- optional :contact_details,
41
- -> {
42
- ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::InvoiceCreateParams::ContactDetail]
43
- }
39
+ # @return [Array<ModernTreasury::Models::ContactDetail>, nil]
40
+ optional :contact_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ContactDetail] }
44
41
 
45
42
  # @!attribute counterparty_billing_address
46
43
  # The counterparty's billing address.
@@ -203,7 +200,7 @@ module ModernTreasury
203
200
  #
204
201
  # @param auto_advance [Boolean, nil] When true, the invoice will progress to unpaid automatically and cannot be edite
205
202
  #
206
- # @param contact_details [Array<ModernTreasury::Models::InvoiceCreateParams::ContactDetail>] The invoicer's contact details displayed at the top of the invoice.
203
+ # @param contact_details [Array<ModernTreasury::Models::ContactDetail>] The invoicer's contact details displayed at the top of the invoice.
207
204
  #
208
205
  # @param counterparty_billing_address [ModernTreasury::Models::InvoiceCreateParams::CounterpartyBillingAddress, nil] The counterparty's billing address.
209
206
  #
@@ -247,83 +244,6 @@ module ModernTreasury
247
244
  #
248
245
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
249
246
 
250
- class ContactDetail < ModernTreasury::Internal::Type::BaseModel
251
- # @!attribute id
252
- #
253
- # @return [String]
254
- required :id, String
255
-
256
- # @!attribute contact_identifier
257
- #
258
- # @return [String]
259
- required :contact_identifier, String
260
-
261
- # @!attribute contact_identifier_type
262
- #
263
- # @return [Symbol, ModernTreasury::Models::InvoiceCreateParams::ContactDetail::ContactIdentifierType]
264
- required :contact_identifier_type,
265
- enum: -> { ModernTreasury::InvoiceCreateParams::ContactDetail::ContactIdentifierType }
266
-
267
- # @!attribute created_at
268
- #
269
- # @return [Time]
270
- required :created_at, Time
271
-
272
- # @!attribute discarded_at
273
- #
274
- # @return [Time, nil]
275
- required :discarded_at, Time, nil?: true
276
-
277
- # @!attribute live_mode
278
- # This field will be true if this object exists in the live environment or false
279
- # if it exists in the test environment.
280
- #
281
- # @return [Boolean]
282
- required :live_mode, ModernTreasury::Internal::Type::Boolean
283
-
284
- # @!attribute object
285
- #
286
- # @return [String]
287
- required :object, String
288
-
289
- # @!attribute updated_at
290
- #
291
- # @return [Time]
292
- required :updated_at, Time
293
-
294
- # @!method initialize(id:, contact_identifier:, contact_identifier_type:, created_at:, discarded_at:, live_mode:, object:, updated_at:)
295
- # Some parameter documentations has been truncated, see
296
- # {ModernTreasury::Models::InvoiceCreateParams::ContactDetail} for more details.
297
- #
298
- # @param id [String]
299
- #
300
- # @param contact_identifier [String]
301
- #
302
- # @param contact_identifier_type [Symbol, ModernTreasury::Models::InvoiceCreateParams::ContactDetail::ContactIdentifierType]
303
- #
304
- # @param created_at [Time]
305
- #
306
- # @param discarded_at [Time, nil]
307
- #
308
- # @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
309
- #
310
- # @param object [String]
311
- #
312
- # @param updated_at [Time]
313
-
314
- # @see ModernTreasury::Models::InvoiceCreateParams::ContactDetail#contact_identifier_type
315
- module ContactIdentifierType
316
- extend ModernTreasury::Internal::Type::Enum
317
-
318
- EMAIL = :email
319
- PHONE_NUMBER = :phone_number
320
- WEBSITE = :website
321
-
322
- # @!method self.values
323
- # @return [Array<Symbol>]
324
- end
325
- end
326
-
327
247
  class CounterpartyBillingAddress < ModernTreasury::Internal::Type::BaseModel
328
248
  # @!attribute country
329
249
  # Country code conforms to [ISO 3166-1 alpha-2]
@@ -10,11 +10,8 @@ module ModernTreasury
10
10
  # @!attribute contact_details
11
11
  # The invoicer's contact details displayed at the top of the invoice.
12
12
  #
13
- # @return [Array<ModernTreasury::Models::InvoiceUpdateParams::ContactDetail>, nil]
14
- optional :contact_details,
15
- -> {
16
- ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::InvoiceUpdateParams::ContactDetail]
17
- }
13
+ # @return [Array<ModernTreasury::Models::ContactDetail>, nil]
14
+ optional :contact_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ContactDetail] }
18
15
 
19
16
  # @!attribute counterparty_billing_address
20
17
  # The counterparty's billing address.
@@ -195,7 +192,7 @@ module ModernTreasury
195
192
  # Some parameter documentations has been truncated, see
196
193
  # {ModernTreasury::Models::InvoiceUpdateParams} for more details.
197
194
  #
198
- # @param contact_details [Array<ModernTreasury::Models::InvoiceUpdateParams::ContactDetail>] The invoicer's contact details displayed at the top of the invoice.
195
+ # @param contact_details [Array<ModernTreasury::Models::ContactDetail>] The invoicer's contact details displayed at the top of the invoice.
199
196
  #
200
197
  # @param counterparty_billing_address [ModernTreasury::Models::InvoiceUpdateParams::CounterpartyBillingAddress, nil] The counterparty's billing address.
201
198
  #
@@ -247,83 +244,6 @@ module ModernTreasury
247
244
  #
248
245
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
249
246
 
250
- class ContactDetail < ModernTreasury::Internal::Type::BaseModel
251
- # @!attribute id
252
- #
253
- # @return [String]
254
- required :id, String
255
-
256
- # @!attribute contact_identifier
257
- #
258
- # @return [String]
259
- required :contact_identifier, String
260
-
261
- # @!attribute contact_identifier_type
262
- #
263
- # @return [Symbol, ModernTreasury::Models::InvoiceUpdateParams::ContactDetail::ContactIdentifierType]
264
- required :contact_identifier_type,
265
- enum: -> { ModernTreasury::InvoiceUpdateParams::ContactDetail::ContactIdentifierType }
266
-
267
- # @!attribute created_at
268
- #
269
- # @return [Time]
270
- required :created_at, Time
271
-
272
- # @!attribute discarded_at
273
- #
274
- # @return [Time, nil]
275
- required :discarded_at, Time, nil?: true
276
-
277
- # @!attribute live_mode
278
- # This field will be true if this object exists in the live environment or false
279
- # if it exists in the test environment.
280
- #
281
- # @return [Boolean]
282
- required :live_mode, ModernTreasury::Internal::Type::Boolean
283
-
284
- # @!attribute object
285
- #
286
- # @return [String]
287
- required :object, String
288
-
289
- # @!attribute updated_at
290
- #
291
- # @return [Time]
292
- required :updated_at, Time
293
-
294
- # @!method initialize(id:, contact_identifier:, contact_identifier_type:, created_at:, discarded_at:, live_mode:, object:, updated_at:)
295
- # Some parameter documentations has been truncated, see
296
- # {ModernTreasury::Models::InvoiceUpdateParams::ContactDetail} for more details.
297
- #
298
- # @param id [String]
299
- #
300
- # @param contact_identifier [String]
301
- #
302
- # @param contact_identifier_type [Symbol, ModernTreasury::Models::InvoiceUpdateParams::ContactDetail::ContactIdentifierType]
303
- #
304
- # @param created_at [Time]
305
- #
306
- # @param discarded_at [Time, nil]
307
- #
308
- # @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
309
- #
310
- # @param object [String]
311
- #
312
- # @param updated_at [Time]
313
-
314
- # @see ModernTreasury::Models::InvoiceUpdateParams::ContactDetail#contact_identifier_type
315
- module ContactIdentifierType
316
- extend ModernTreasury::Internal::Type::Enum
317
-
318
- EMAIL = :email
319
- PHONE_NUMBER = :phone_number
320
- WEBSITE = :website
321
-
322
- # @!method self.values
323
- # @return [Array<Symbol>]
324
- end
325
- end
326
-
327
247
  class CounterpartyBillingAddress < ModernTreasury::Internal::Type::BaseModel
328
248
  # @!attribute country
329
249
  # Country code conforms to [ISO 3166-1 alpha-2]
@@ -148,8 +148,8 @@ module ModernTreasury
148
148
  # pending_debits; for debit normal, available_amount = posted_debits -
149
149
  # pending_credits.
150
150
  #
151
- # @return [ModernTreasury::Models::LedgerAccount::Balances::AvailableBalance]
152
- required :available_balance, -> { ModernTreasury::LedgerAccount::Balances::AvailableBalance }
151
+ # @return [ModernTreasury::Models::LedgerBalance]
152
+ required :available_balance, -> { ModernTreasury::LedgerBalance }
153
153
 
154
154
  # @!attribute effective_at_lower_bound
155
155
  # The inclusive lower bound of the effective_at timestamp for the returned
@@ -168,14 +168,14 @@ module ModernTreasury
168
168
  # @!attribute pending_balance
169
169
  # The pending_balance is the sum of all pending and posted entries.
170
170
  #
171
- # @return [ModernTreasury::Models::LedgerAccount::Balances::PendingBalance]
172
- required :pending_balance, -> { ModernTreasury::LedgerAccount::Balances::PendingBalance }
171
+ # @return [ModernTreasury::Models::LedgerBalance]
172
+ required :pending_balance, -> { ModernTreasury::LedgerBalance }
173
173
 
174
174
  # @!attribute posted_balance
175
175
  # The posted_balance is the sum of all posted entries.
176
176
  #
177
- # @return [ModernTreasury::Models::LedgerAccount::Balances::PostedBalance]
178
- required :posted_balance, -> { ModernTreasury::LedgerAccount::Balances::PostedBalance }
177
+ # @return [ModernTreasury::Models::LedgerBalance]
178
+ required :posted_balance, -> { ModernTreasury::LedgerBalance }
179
179
 
180
180
  # @!method initialize(available_balance:, effective_at_lower_bound:, effective_at_upper_bound:, pending_balance:, posted_balance:)
181
181
  # Some parameter documentations has been truncated, see
@@ -187,147 +187,15 @@ module ModernTreasury
187
187
  # is the posted incoming entries minus the sum of the pending and posted outgoing
188
188
  # amounts.
189
189
  #
190
- # @param available_balance [ModernTreasury::Models::LedgerAccount::Balances::AvailableBalance] The available_balance is the sum of all posted inbound entries and pending outbo
190
+ # @param available_balance [ModernTreasury::Models::LedgerBalance] The available_balance is the sum of all posted inbound entries and pending outbo
191
191
  #
192
192
  # @param effective_at_lower_bound [Time, nil] The inclusive lower bound of the effective_at timestamp for the returned balance
193
193
  #
194
194
  # @param effective_at_upper_bound [Time, nil] The exclusive upper bound of the effective_at timestamp for the returned balance
195
195
  #
196
- # @param pending_balance [ModernTreasury::Models::LedgerAccount::Balances::PendingBalance] The pending_balance is the sum of all pending and posted entries.
196
+ # @param pending_balance [ModernTreasury::Models::LedgerBalance] The pending_balance is the sum of all pending and posted entries.
197
197
  #
198
- # @param posted_balance [ModernTreasury::Models::LedgerAccount::Balances::PostedBalance] The posted_balance is the sum of all posted entries.
199
-
200
- # @see ModernTreasury::Models::LedgerAccount::Balances#available_balance
201
- class AvailableBalance < ModernTreasury::Internal::Type::BaseModel
202
- # @!attribute amount
203
- #
204
- # @return [Integer]
205
- required :amount, Integer
206
-
207
- # @!attribute credits
208
- #
209
- # @return [Integer]
210
- required :credits, Integer
211
-
212
- # @!attribute currency
213
- # The currency of the ledger account.
214
- #
215
- # @return [String]
216
- required :currency, String
217
-
218
- # @!attribute currency_exponent
219
- # The currency exponent of the ledger account.
220
- #
221
- # @return [Integer]
222
- required :currency_exponent, Integer
223
-
224
- # @!attribute debits
225
- #
226
- # @return [Integer]
227
- required :debits, Integer
228
-
229
- # @!method initialize(amount:, credits:, currency:, currency_exponent:, debits:)
230
- # The available_balance is the sum of all posted inbound entries and pending
231
- # outbound entries. For credit normal, available_amount = posted_credits -
232
- # pending_debits; for debit normal, available_amount = posted_debits -
233
- # pending_credits.
234
- #
235
- # @param amount [Integer]
236
- #
237
- # @param credits [Integer]
238
- #
239
- # @param currency [String] The currency of the ledger account.
240
- #
241
- # @param currency_exponent [Integer] The currency exponent of the ledger account.
242
- #
243
- # @param debits [Integer]
244
- end
245
-
246
- # @see ModernTreasury::Models::LedgerAccount::Balances#pending_balance
247
- class PendingBalance < ModernTreasury::Internal::Type::BaseModel
248
- # @!attribute amount
249
- #
250
- # @return [Integer]
251
- required :amount, Integer
252
-
253
- # @!attribute credits
254
- #
255
- # @return [Integer]
256
- required :credits, Integer
257
-
258
- # @!attribute currency
259
- # The currency of the ledger account.
260
- #
261
- # @return [String]
262
- required :currency, String
263
-
264
- # @!attribute currency_exponent
265
- # The currency exponent of the ledger account.
266
- #
267
- # @return [Integer]
268
- required :currency_exponent, Integer
269
-
270
- # @!attribute debits
271
- #
272
- # @return [Integer]
273
- required :debits, Integer
274
-
275
- # @!method initialize(amount:, credits:, currency:, currency_exponent:, debits:)
276
- # The pending_balance is the sum of all pending and posted entries.
277
- #
278
- # @param amount [Integer]
279
- #
280
- # @param credits [Integer]
281
- #
282
- # @param currency [String] The currency of the ledger account.
283
- #
284
- # @param currency_exponent [Integer] The currency exponent of the ledger account.
285
- #
286
- # @param debits [Integer]
287
- end
288
-
289
- # @see ModernTreasury::Models::LedgerAccount::Balances#posted_balance
290
- class PostedBalance < ModernTreasury::Internal::Type::BaseModel
291
- # @!attribute amount
292
- #
293
- # @return [Integer]
294
- required :amount, Integer
295
-
296
- # @!attribute credits
297
- #
298
- # @return [Integer]
299
- required :credits, Integer
300
-
301
- # @!attribute currency
302
- # The currency of the ledger account.
303
- #
304
- # @return [String]
305
- required :currency, String
306
-
307
- # @!attribute currency_exponent
308
- # The currency exponent of the ledger account.
309
- #
310
- # @return [Integer]
311
- required :currency_exponent, Integer
312
-
313
- # @!attribute debits
314
- #
315
- # @return [Integer]
316
- required :debits, Integer
317
-
318
- # @!method initialize(amount:, credits:, currency:, currency_exponent:, debits:)
319
- # The posted_balance is the sum of all posted entries.
320
- #
321
- # @param amount [Integer]
322
- #
323
- # @param credits [Integer]
324
- #
325
- # @param currency [String] The currency of the ledger account.
326
- #
327
- # @param currency_exponent [Integer] The currency exponent of the ledger account.
328
- #
329
- # @param debits [Integer]
330
- end
198
+ # @param posted_balance [ModernTreasury::Models::LedgerBalance] The posted_balance is the sum of all posted entries.
331
199
  end
332
200
 
333
201
  # If the ledger account links to another object in Modern Treasury, the type will
@@ -138,11 +138,8 @@ module ModernTreasury
138
138
  class CurrentLedgerAccountBalanceState < ModernTreasury::Internal::Type::BaseModel
139
139
  # @!attribute balances
140
140
  #
141
- # @return [ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances]
142
- required :balances,
143
- -> {
144
- ModernTreasury::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances
145
- }
141
+ # @return [ModernTreasury::Models::LedgerBalances]
142
+ required :balances, -> { ModernTreasury::LedgerBalances }
146
143
 
147
144
  # @!attribute ledger_account_lock_version
148
145
  # The current lock version of the ledger account.
@@ -165,187 +162,11 @@ module ModernTreasury
165
162
  # The ledger account's balances and the monitor state as of the current ledger
166
163
  # account lock version.
167
164
  #
168
- # @param balances [ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances]
165
+ # @param balances [ModernTreasury::Models::LedgerBalances]
169
166
  #
170
167
  # @param ledger_account_lock_version [Integer] The current lock version of the ledger account.
171
168
  #
172
169
  # @param triggered [Boolean] If `true`, the ledger account's balances satisfy the `alert_condition` at this l
173
-
174
- # @see ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState#balances
175
- class Balances < ModernTreasury::Internal::Type::BaseModel
176
- # @!attribute available_balance
177
- # The available_balance is the sum of all posted inbound entries and pending
178
- # outbound entries. For credit normal, available_amount = posted_credits -
179
- # pending_debits; for debit normal, available_amount = posted_debits -
180
- # pending_credits.
181
- #
182
- # @return [ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances::AvailableBalance]
183
- required :available_balance,
184
- -> {
185
- ModernTreasury::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances::AvailableBalance
186
- }
187
-
188
- # @!attribute pending_balance
189
- # The pending_balance is the sum of all pending and posted entries.
190
- #
191
- # @return [ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances::PendingBalance]
192
- required :pending_balance,
193
- -> {
194
- ModernTreasury::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances::PendingBalance
195
- }
196
-
197
- # @!attribute posted_balance
198
- # The posted_balance is the sum of all posted entries.
199
- #
200
- # @return [ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances::PostedBalance]
201
- required :posted_balance,
202
- -> {
203
- ModernTreasury::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances::PostedBalance
204
- }
205
-
206
- # @!method initialize(available_balance:, pending_balance:, posted_balance:)
207
- # Some parameter documentations has been truncated, see
208
- # {ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances}
209
- # for more details.
210
- #
211
- # @param available_balance [ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances::AvailableBalance] The available_balance is the sum of all posted inbound entries and pending outbo
212
- #
213
- # @param pending_balance [ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances::PendingBalance] The pending_balance is the sum of all pending and posted entries.
214
- #
215
- # @param posted_balance [ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances::PostedBalance] The posted_balance is the sum of all posted entries.
216
-
217
- # @see ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances#available_balance
218
- class AvailableBalance < ModernTreasury::Internal::Type::BaseModel
219
- # @!attribute amount
220
- #
221
- # @return [Integer]
222
- required :amount, Integer
223
-
224
- # @!attribute credits
225
- #
226
- # @return [Integer]
227
- required :credits, Integer
228
-
229
- # @!attribute currency
230
- # The currency of the ledger account.
231
- #
232
- # @return [String]
233
- required :currency, String
234
-
235
- # @!attribute currency_exponent
236
- # The currency exponent of the ledger account.
237
- #
238
- # @return [Integer]
239
- required :currency_exponent, Integer
240
-
241
- # @!attribute debits
242
- #
243
- # @return [Integer]
244
- required :debits, Integer
245
-
246
- # @!method initialize(amount:, credits:, currency:, currency_exponent:, debits:)
247
- # The available_balance is the sum of all posted inbound entries and pending
248
- # outbound entries. For credit normal, available_amount = posted_credits -
249
- # pending_debits; for debit normal, available_amount = posted_debits -
250
- # pending_credits.
251
- #
252
- # @param amount [Integer]
253
- #
254
- # @param credits [Integer]
255
- #
256
- # @param currency [String] The currency of the ledger account.
257
- #
258
- # @param currency_exponent [Integer] The currency exponent of the ledger account.
259
- #
260
- # @param debits [Integer]
261
- end
262
-
263
- # @see ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances#pending_balance
264
- class PendingBalance < ModernTreasury::Internal::Type::BaseModel
265
- # @!attribute amount
266
- #
267
- # @return [Integer]
268
- required :amount, Integer
269
-
270
- # @!attribute credits
271
- #
272
- # @return [Integer]
273
- required :credits, Integer
274
-
275
- # @!attribute currency
276
- # The currency of the ledger account.
277
- #
278
- # @return [String]
279
- required :currency, String
280
-
281
- # @!attribute currency_exponent
282
- # The currency exponent of the ledger account.
283
- #
284
- # @return [Integer]
285
- required :currency_exponent, Integer
286
-
287
- # @!attribute debits
288
- #
289
- # @return [Integer]
290
- required :debits, Integer
291
-
292
- # @!method initialize(amount:, credits:, currency:, currency_exponent:, debits:)
293
- # The pending_balance is the sum of all pending and posted entries.
294
- #
295
- # @param amount [Integer]
296
- #
297
- # @param credits [Integer]
298
- #
299
- # @param currency [String] The currency of the ledger account.
300
- #
301
- # @param currency_exponent [Integer] The currency exponent of the ledger account.
302
- #
303
- # @param debits [Integer]
304
- end
305
-
306
- # @see ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances#posted_balance
307
- class PostedBalance < ModernTreasury::Internal::Type::BaseModel
308
- # @!attribute amount
309
- #
310
- # @return [Integer]
311
- required :amount, Integer
312
-
313
- # @!attribute credits
314
- #
315
- # @return [Integer]
316
- required :credits, Integer
317
-
318
- # @!attribute currency
319
- # The currency of the ledger account.
320
- #
321
- # @return [String]
322
- required :currency, String
323
-
324
- # @!attribute currency_exponent
325
- # The currency exponent of the ledger account.
326
- #
327
- # @return [Integer]
328
- required :currency_exponent, Integer
329
-
330
- # @!attribute debits
331
- #
332
- # @return [Integer]
333
- required :debits, Integer
334
-
335
- # @!method initialize(amount:, credits:, currency:, currency_exponent:, debits:)
336
- # The posted_balance is the sum of all posted entries.
337
- #
338
- # @param amount [Integer]
339
- #
340
- # @param credits [Integer]
341
- #
342
- # @param currency [String] The currency of the ledger account.
343
- #
344
- # @param currency_exponent [Integer] The currency exponent of the ledger account.
345
- #
346
- # @param debits [Integer]
347
- end
348
- end
349
170
  end
350
171
  end
351
172
  end