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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +54 -0
- data/README.md +1 -1
- data/lib/modern_treasury/client.rb +0 -12
- data/lib/modern_treasury/internal/transport/base_client.rb +1 -1
- data/lib/modern_treasury/internal/type/array_of.rb +1 -0
- data/lib/modern_treasury/internal/type/base_model.rb +7 -5
- data/lib/modern_treasury/internal/type/converter.rb +27 -0
- data/lib/modern_treasury/internal/type/hash_of.rb +1 -0
- data/lib/modern_treasury/internal/type/union.rb +9 -7
- data/lib/modern_treasury/models/accounting.rb +30 -0
- data/lib/modern_treasury/models/address.rb +94 -0
- data/lib/modern_treasury/models/address_request.rb +54 -0
- data/lib/modern_treasury/models/bulk_request_create_params.rb +144 -1505
- data/lib/modern_treasury/models/child_legal_entity_create.rb +275 -0
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +10 -627
- data/lib/modern_treasury/models/contact_detail.rb +81 -0
- data/lib/modern_treasury/models/contact_detail_create_request.rb +34 -0
- data/lib/modern_treasury/models/counterparty.rb +24 -177
- data/lib/modern_treasury/models/counterparty_create_params.rb +37 -838
- data/lib/modern_treasury/models/counterparty_list_params.rb +9 -1
- data/lib/modern_treasury/models/document.rb +4 -6
- data/lib/modern_treasury/models/document_create_params.rb +0 -2
- data/lib/modern_treasury/models/document_list_params.rb +4 -6
- data/lib/modern_treasury/models/expected_payment.rb +9 -1
- data/lib/modern_treasury/models/expected_payment_create_params.rb +12 -230
- data/lib/modern_treasury/models/expected_payment_list_params.rb +8 -1
- data/lib/modern_treasury/models/expected_payment_update_params.rb +9 -1
- data/lib/modern_treasury/models/external_account.rb +15 -177
- data/lib/modern_treasury/models/external_account_create_params.rb +18 -210
- data/lib/modern_treasury/models/external_account_list_params.rb +9 -1
- data/lib/modern_treasury/models/external_account_update_params.rb +3 -52
- data/lib/modern_treasury/models/foreign_exchange_quote.rb +3 -73
- data/lib/modern_treasury/models/foreign_exchange_rate.rb +71 -0
- data/lib/modern_treasury/models/identification_create_request.rb +86 -0
- data/lib/modern_treasury/models/internal_account.rb +3 -95
- data/lib/modern_treasury/models/internal_account_update_account_capability_params.rb +34 -0
- data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +131 -0
- data/lib/modern_treasury/models/invoice.rb +3 -81
- data/lib/modern_treasury/models/invoice_create_params.rb +3 -83
- data/lib/modern_treasury/models/invoice_update_params.rb +3 -83
- data/lib/modern_treasury/models/ledger_account.rb +9 -141
- data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +3 -182
- data/lib/modern_treasury/models/ledger_account_category.rb +3 -175
- data/lib/modern_treasury/models/ledger_account_category_list_params.rb +9 -5
- data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +4 -2
- data/lib/modern_treasury/models/ledger_account_create_params.rb +2 -105
- data/lib/modern_treasury/models/ledger_account_create_request.rb +113 -0
- data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +6 -360
- data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +6 -360
- data/lib/modern_treasury/models/ledger_balance.rb +45 -0
- data/lib/modern_treasury/models/ledger_balances.rb +38 -0
- data/lib/modern_treasury/models/ledger_entry.rb +3 -183
- data/lib/modern_treasury/models/ledger_entry_create_request.rb +98 -0
- data/lib/modern_treasury/models/ledger_entry_list_params.rb +8 -6
- data/lib/modern_treasury/models/ledger_transaction.rb +14 -6
- data/lib/modern_treasury/models/ledger_transaction_create_params.rb +2 -212
- data/lib/modern_treasury/models/ledger_transaction_create_request.rb +123 -0
- data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +0 -1
- data/lib/modern_treasury/models/ledger_transaction_list_params.rb +44 -7
- data/lib/modern_treasury/models/ledger_transaction_update_params.rb +5 -104
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +15 -193
- data/lib/modern_treasury/models/legal_entity_address_create_request.rb +78 -0
- data/lib/modern_treasury/models/legal_entity_association.rb +1 -0
- data/lib/modern_treasury/models/legal_entity_association_create_params.rb +4 -448
- data/lib/modern_treasury/models/legal_entity_create_params.rb +10 -618
- data/lib/modern_treasury/models/legal_entity_update_params.rb +6 -165
- data/lib/modern_treasury/models/line_item.rb +3 -29
- data/lib/modern_treasury/models/payment_action_list_params.rb +2 -0
- data/lib/modern_treasury/models/payment_order.rb +13 -102
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +24 -477
- data/lib/modern_treasury/models/payment_order_create_params.rb +24 -479
- data/lib/modern_treasury/models/payment_order_update_params.rb +21 -248
- data/lib/modern_treasury/models/payment_orders/reversal.rb +3 -4
- data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +3 -232
- data/lib/modern_treasury/models/payment_reference.rb +7 -1
- data/lib/modern_treasury/models/return_list_params.rb +5 -6
- data/lib/modern_treasury/models/return_object.rb +7 -3
- data/lib/modern_treasury/models/routing_detail.rb +3 -93
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +3 -55
- data/lib/modern_treasury/models/transaction.rb +5 -73
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +0 -1
- data/lib/modern_treasury/models/virtual_account_create_params.rb +3 -117
- data/lib/modern_treasury/models.rb +31 -6
- data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
- data/lib/modern_treasury/resources/counterparties.rb +20 -14
- data/lib/modern_treasury/resources/expected_payments.rb +10 -4
- data/lib/modern_treasury/resources/external_accounts.rb +23 -17
- data/lib/modern_treasury/resources/internal_accounts.rb +34 -0
- data/lib/modern_treasury/resources/invoices.rb +2 -2
- data/lib/modern_treasury/resources/ledger_account_categories.rb +1 -1
- data/lib/modern_treasury/resources/ledger_accounts.rb +1 -1
- data/lib/modern_treasury/resources/ledger_entries.rb +1 -1
- data/lib/modern_treasury/resources/ledger_transactions.rb +5 -5
- data/lib/modern_treasury/resources/legal_entities.rb +4 -4
- data/lib/modern_treasury/resources/legal_entity_associations.rb +1 -1
- data/lib/modern_treasury/resources/payment_orders/reversals.rb +1 -1
- data/lib/modern_treasury/resources/payment_orders.rb +5 -5
- data/lib/modern_treasury/resources/returns.rb +1 -1
- data/lib/modern_treasury/resources/virtual_accounts.rb +1 -1
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +16 -6
- data/rbi/modern_treasury/client.rbi +0 -9
- data/rbi/modern_treasury/internal/transport/base_client.rbi +1 -1
- data/rbi/modern_treasury/internal/type/converter.rbi +58 -0
- data/rbi/modern_treasury/internal/type/union.rbi +11 -2
- data/rbi/modern_treasury/models/accounting.rbi +48 -0
- data/rbi/modern_treasury/models/address.rbi +107 -0
- data/rbi/modern_treasury/models/address_request.rbi +76 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +701 -3140
- data/rbi/modern_treasury/models/child_legal_entity_create.rbi +511 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +17 -1314
- data/rbi/modern_treasury/models/contact_detail.rbi +124 -0
- data/rbi/modern_treasury/models/contact_detail_create_request.rbi +99 -0
- data/rbi/modern_treasury/models/counterparty.rbi +24 -264
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +47 -1718
- data/rbi/modern_treasury/models/counterparty_list_params.rbi +11 -0
- data/rbi/modern_treasury/models/document.rbi +6 -16
- data/rbi/modern_treasury/models/document_create_params.rbi +0 -10
- data/rbi/modern_treasury/models/document_list_params.rbi +6 -16
- data/rbi/modern_treasury/models/expected_payment.rbi +8 -0
- data/rbi/modern_treasury/models/expected_payment_create_params.rbi +12 -419
- data/rbi/modern_treasury/models/expected_payment_list_params.rbi +9 -0
- data/rbi/modern_treasury/models/expected_payment_update_params.rbi +8 -0
- data/rbi/modern_treasury/models/external_account.rbi +15 -244
- data/rbi/modern_treasury/models/external_account_create_params.rbi +20 -400
- data/rbi/modern_treasury/models/external_account_list_params.rbi +11 -0
- data/rbi/modern_treasury/models/external_account_update_params.rbi +4 -86
- data/rbi/modern_treasury/models/foreign_exchange_quote.rbi +4 -99
- data/rbi/modern_treasury/models/foreign_exchange_rate.rbi +96 -0
- data/rbi/modern_treasury/models/identification_create_request.rbi +212 -0
- data/rbi/modern_treasury/models/internal_account.rbi +4 -115
- data/rbi/modern_treasury/models/internal_account_update_account_capability_params.rbi +54 -0
- data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +304 -0
- data/rbi/modern_treasury/models/invoice.rbi +3 -128
- data/rbi/modern_treasury/models/invoice_create_params.rbi +4 -139
- data/rbi/modern_treasury/models/invoice_update_params.rbi +4 -139
- data/rbi/modern_treasury/models/ledger_account.rbi +12 -218
- data/rbi/modern_treasury/models/ledger_account_balance_monitor.rbi +4 -303
- data/rbi/modern_treasury/models/ledger_account_category.rbi +4 -301
- data/rbi/modern_treasury/models/ledger_account_category_list_params.rbi +14 -7
- data/rbi/modern_treasury/models/ledger_account_category_retrieve_params.rbi +6 -3
- data/rbi/modern_treasury/models/ledger_account_create_params.rbi +5 -173
- data/rbi/modern_treasury/models/ledger_account_create_request.rbi +194 -0
- data/rbi/modern_treasury/models/ledger_account_statement_create_response.rbi +8 -612
- data/rbi/modern_treasury/models/ledger_account_statement_retrieve_response.rbi +8 -612
- data/rbi/modern_treasury/models/ledger_balance.rbi +66 -0
- data/rbi/modern_treasury/models/ledger_balances.rbi +75 -0
- data/rbi/modern_treasury/models/ledger_entry.rbi +4 -309
- data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +137 -0
- data/rbi/modern_treasury/models/ledger_entry_list_params.rbi +13 -8
- data/rbi/modern_treasury/models/ledger_transaction.rbi +17 -11
- data/rbi/modern_treasury/models/ledger_transaction_create_params.rbi +5 -383
- data/rbi/modern_treasury/models/ledger_transaction_create_request.rbi +258 -0
- data/rbi/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +0 -5
- data/rbi/modern_treasury/models/ledger_transaction_list_params.rbi +93 -18
- data/rbi/modern_treasury/models/ledger_transaction_update_params.rbi +7 -158
- data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +18 -316
- data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +157 -0
- data/rbi/modern_treasury/models/legal_entity_association.rbi +5 -0
- data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +9 -917
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +17 -1297
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +8 -378
- data/rbi/modern_treasury/models/line_item.rbi +4 -52
- data/rbi/modern_treasury/models/payment_action_list_params.rbi +10 -0
- data/rbi/modern_treasury/models/payment_order.rbi +43 -159
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +28 -882
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +28 -887
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +24 -460
- data/rbi/modern_treasury/models/payment_orders/reversal.rbi +3 -3
- data/rbi/modern_treasury/models/payment_orders/reversal_create_params.rbi +4 -415
- data/rbi/modern_treasury/models/payment_reference.rbi +35 -5
- data/rbi/modern_treasury/models/return_list_params.rbi +6 -11
- data/rbi/modern_treasury/models/return_object.rbi +35 -12
- data/rbi/modern_treasury/models/routing_detail.rbi +4 -113
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +4 -87
- data/rbi/modern_treasury/models/transaction.rbi +14 -103
- data/rbi/modern_treasury/models/transactions/transaction_line_item.rbi +0 -5
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +4 -203
- data/rbi/modern_treasury/models.rbi +36 -6
- data/rbi/modern_treasury/resources/bulk_requests.rbi +2 -2
- data/rbi/modern_treasury/resources/counterparties.rbi +20 -12
- data/rbi/modern_treasury/resources/documents.rbi +2 -2
- data/rbi/modern_treasury/resources/expected_payments.rbi +9 -1
- data/rbi/modern_treasury/resources/external_accounts.rbi +29 -22
- data/rbi/modern_treasury/resources/internal_accounts.rbi +24 -0
- data/rbi/modern_treasury/resources/invoices.rbi +2 -8
- data/rbi/modern_treasury/resources/ledger_account_categories.rbi +7 -3
- data/rbi/modern_treasury/resources/ledger_accounts.rbi +1 -1
- data/rbi/modern_treasury/resources/ledger_entries.rbi +4 -2
- data/rbi/modern_treasury/resources/ledger_transactions.rbi +13 -13
- data/rbi/modern_treasury/resources/legal_entities.rbi +4 -8
- data/rbi/modern_treasury/resources/legal_entity_associations.rbi +1 -2
- data/rbi/modern_treasury/resources/payment_orders/reversals.rbi +1 -1
- data/rbi/modern_treasury/resources/payment_orders.rbi +5 -8
- data/rbi/modern_treasury/resources/returns.rbi +2 -2
- data/rbi/modern_treasury/resources/virtual_accounts.rbi +1 -2
- data/sig/modern_treasury/client.rbs +0 -6
- data/sig/modern_treasury/internal/transport/base_client.rbs +1 -1
- data/sig/modern_treasury/internal/type/converter.rbs +17 -0
- data/sig/modern_treasury/internal/type/union.rbs +2 -2
- data/sig/modern_treasury/models/accounting.rbs +15 -0
- data/sig/modern_treasury/models/address.rbs +70 -0
- data/sig/modern_treasury/models/address_request.rbs +45 -0
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +88 -1089
- data/sig/modern_treasury/models/child_legal_entity_create.rbs +220 -0
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +21 -548
- data/sig/modern_treasury/models/contact_detail.rbs +67 -0
- data/sig/modern_treasury/models/contact_detail_create_request.rbs +43 -0
- data/sig/modern_treasury/models/counterparty.rbs +20 -141
- data/sig/modern_treasury/models/counterparty_create_params.rbs +49 -737
- data/sig/modern_treasury/models/counterparty_list_params.rbs +7 -0
- data/sig/modern_treasury/models/document.rbs +0 -4
- data/sig/modern_treasury/models/document_create_params.rbs +0 -4
- data/sig/modern_treasury/models/document_list_params.rbs +0 -4
- data/sig/modern_treasury/models/expected_payment.rbs +5 -0
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +11 -173
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +7 -0
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +5 -0
- data/sig/modern_treasury/models/external_account.rbs +13 -139
- data/sig/modern_treasury/models/external_account_create_params.rbs +23 -189
- data/sig/modern_treasury/models/external_account_list_params.rbs +7 -0
- data/sig/modern_treasury/models/external_account_update_params.rbs +6 -48
- data/sig/modern_treasury/models/foreign_exchange_quote.rbs +4 -51
- data/sig/modern_treasury/models/foreign_exchange_rate.rbs +50 -0
- data/sig/modern_treasury/models/identification_create_request.rbs +93 -0
- data/sig/modern_treasury/models/internal_account.rbs +4 -71
- data/sig/modern_treasury/models/internal_account_update_account_capability_params.rbs +28 -0
- data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +137 -0
- data/sig/modern_treasury/models/invoice.rbs +4 -68
- data/sig/modern_treasury/models/invoice_create_params.rbs +6 -70
- data/sig/modern_treasury/models/invoice_update_params.rbs +6 -70
- data/sig/modern_treasury/models/ledger_account.rbs +12 -123
- data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +4 -142
- data/sig/modern_treasury/models/ledger_account_category.rbs +4 -142
- data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +5 -5
- data/sig/modern_treasury/models/ledger_account_create_params.rbs +4 -84
- data/sig/modern_treasury/models/ledger_account_create_request.rbs +89 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +8 -284
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +8 -284
- data/sig/modern_treasury/models/ledger_balance.rbs +40 -0
- data/sig/modern_treasury/models/ledger_balances.rbs +30 -0
- data/sig/modern_treasury/models/ledger_entry.rbs +4 -142
- data/sig/modern_treasury/models/ledger_entry_create_request.rbs +62 -0
- data/sig/modern_treasury/models/ledger_entry_list_params.rbs +6 -6
- data/sig/modern_treasury/models/ledger_transaction.rbs +5 -2
- data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +4 -165
- data/sig/modern_treasury/models/ledger_transaction_create_request.rbs +109 -0
- data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +21 -5
- data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +6 -67
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +9 -144
- data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +68 -0
- data/sig/modern_treasury/models/legal_entity_association.rbs +3 -1
- data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +9 -380
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +21 -548
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +12 -168
- data/sig/modern_treasury/models/line_item.rbs +4 -16
- data/sig/modern_treasury/models/payment_action_list_params.rbs +4 -1
- data/sig/modern_treasury/models/payment_order.rbs +22 -69
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +35 -380
- data/sig/modern_treasury/models/payment_order_create_params.rbs +35 -384
- data/sig/modern_treasury/models/payment_order_update_params.rbs +29 -207
- data/sig/modern_treasury/models/payment_orders/reversal.rbs +4 -4
- data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +6 -173
- data/sig/modern_treasury/models/payment_reference.rbs +14 -2
- data/sig/modern_treasury/models/return_list_params.rbs +1 -6
- data/sig/modern_treasury/models/return_object.rbs +15 -10
- data/sig/modern_treasury/models/routing_detail.rbs +4 -71
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +6 -48
- data/sig/modern_treasury/models/transaction.rbs +8 -53
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +0 -2
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +6 -95
- data/sig/modern_treasury/models.rbs +30 -6
- data/sig/modern_treasury/resources/counterparties.rbs +2 -0
- data/sig/modern_treasury/resources/expected_payments.rbs +4 -1
- data/sig/modern_treasury/resources/external_accounts.rbs +6 -4
- data/sig/modern_treasury/resources/internal_accounts.rbs +7 -0
- data/sig/modern_treasury/resources/invoices.rbs +2 -2
- data/sig/modern_treasury/resources/ledger_account_categories.rbs +1 -1
- data/sig/modern_treasury/resources/ledger_accounts.rbs +1 -1
- data/sig/modern_treasury/resources/ledger_entries.rbs +1 -1
- data/sig/modern_treasury/resources/ledger_transactions.rbs +4 -4
- data/sig/modern_treasury/resources/legal_entities.rbs +4 -4
- data/sig/modern_treasury/resources/legal_entity_associations.rbs +1 -1
- data/sig/modern_treasury/resources/payment_orders/reversals.rbs +1 -1
- data/sig/modern_treasury/resources/payment_orders.rbs +5 -5
- data/sig/modern_treasury/resources/virtual_accounts.rbs +1 -1
- metadata +52 -22
- data/lib/modern_treasury/models/paper_item.rb +0 -178
- data/lib/modern_treasury/models/paper_item_list_params.rb +0 -56
- data/lib/modern_treasury/models/paper_item_retrieve_params.rb +0 -14
- data/lib/modern_treasury/resources/ledger_event_handlers.rb +0 -14
- data/lib/modern_treasury/resources/ledgerable_events.rb +0 -14
- data/lib/modern_treasury/resources/paper_items.rb +0 -68
- data/rbi/modern_treasury/models/paper_item.rbi +0 -204
- data/rbi/modern_treasury/models/paper_item_list_params.rbi +0 -88
- data/rbi/modern_treasury/models/paper_item_retrieve_params.rbi +0 -32
- data/rbi/modern_treasury/resources/ledger_event_handlers.rbi +0 -12
- data/rbi/modern_treasury/resources/ledgerable_events.rbi +0 -12
- data/rbi/modern_treasury/resources/paper_items.rbi +0 -51
- data/sig/modern_treasury/models/paper_item.rbs +0 -122
- data/sig/modern_treasury/models/paper_item_list_params.rbs +0 -54
- data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +0 -15
- data/sig/modern_treasury/resources/ledger_event_handlers.rbs +0 -7
- data/sig/modern_treasury/resources/ledgerable_events.rbs +0 -7
- data/sig/modern_treasury/resources/paper_items.rbs +0 -21
|
@@ -41,9 +41,8 @@ module ModernTreasury
|
|
|
41
41
|
# on the account. The available balance is the posted incoming entries minus the
|
|
42
42
|
# sum of the pending and posted outgoing amounts.
|
|
43
43
|
#
|
|
44
|
-
# @return [ModernTreasury::Models::
|
|
45
|
-
required :ending_balance,
|
|
46
|
-
-> { ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::EndingBalance }
|
|
44
|
+
# @return [ModernTreasury::Models::LedgerBalances]
|
|
45
|
+
required :ending_balance, -> { ModernTreasury::LedgerBalances }
|
|
47
46
|
|
|
48
47
|
# @!attribute ledger_account_id
|
|
49
48
|
# The id of the ledger account whose ledger entries are queried against, and its
|
|
@@ -96,9 +95,8 @@ module ModernTreasury
|
|
|
96
95
|
# on the account. The available balance is the posted incoming entries minus the
|
|
97
96
|
# sum of the pending and posted outgoing amounts.
|
|
98
97
|
#
|
|
99
|
-
# @return [ModernTreasury::Models::
|
|
100
|
-
required :starting_balance,
|
|
101
|
-
-> { ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::StartingBalance }
|
|
98
|
+
# @return [ModernTreasury::Models::LedgerBalances]
|
|
99
|
+
required :starting_balance, -> { ModernTreasury::LedgerBalances }
|
|
102
100
|
|
|
103
101
|
# @!attribute updated_at
|
|
104
102
|
#
|
|
@@ -120,7 +118,7 @@ module ModernTreasury
|
|
|
120
118
|
#
|
|
121
119
|
# @param effective_at_upper_bound [Time] The exclusive upper bound of the effective_at timestamp of the ledger entries to
|
|
122
120
|
#
|
|
123
|
-
# @param ending_balance [ModernTreasury::Models::
|
|
121
|
+
# @param ending_balance [ModernTreasury::Models::LedgerBalances] The pending, posted, and available balances for this ledger account at the `effe
|
|
124
122
|
#
|
|
125
123
|
# @param ledger_account_id [String] The id of the ledger account whose ledger entries are queried against, and its b
|
|
126
124
|
#
|
|
@@ -136,361 +134,9 @@ module ModernTreasury
|
|
|
136
134
|
#
|
|
137
135
|
# @param object [String]
|
|
138
136
|
#
|
|
139
|
-
# @param starting_balance [ModernTreasury::Models::
|
|
137
|
+
# @param starting_balance [ModernTreasury::Models::LedgerBalances] The pending, posted, and available balances for this ledger account at the `effe
|
|
140
138
|
#
|
|
141
139
|
# @param updated_at [Time]
|
|
142
|
-
|
|
143
|
-
# @see ModernTreasury::Models::LedgerAccountStatementRetrieveResponse#ending_balance
|
|
144
|
-
class EndingBalance < ModernTreasury::Internal::Type::BaseModel
|
|
145
|
-
# @!attribute available_balance
|
|
146
|
-
# The available_balance is the sum of all posted inbound entries and pending
|
|
147
|
-
# outbound entries. For credit normal, available_amount = posted_credits -
|
|
148
|
-
# pending_debits; for debit normal, available_amount = posted_debits -
|
|
149
|
-
# pending_credits.
|
|
150
|
-
#
|
|
151
|
-
# @return [ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::EndingBalance::AvailableBalance]
|
|
152
|
-
required :available_balance,
|
|
153
|
-
-> { ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::EndingBalance::AvailableBalance }
|
|
154
|
-
|
|
155
|
-
# @!attribute pending_balance
|
|
156
|
-
# The pending_balance is the sum of all pending and posted entries.
|
|
157
|
-
#
|
|
158
|
-
# @return [ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::EndingBalance::PendingBalance]
|
|
159
|
-
required :pending_balance,
|
|
160
|
-
-> { ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::EndingBalance::PendingBalance }
|
|
161
|
-
|
|
162
|
-
# @!attribute posted_balance
|
|
163
|
-
# The posted_balance is the sum of all posted entries.
|
|
164
|
-
#
|
|
165
|
-
# @return [ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::EndingBalance::PostedBalance]
|
|
166
|
-
required :posted_balance,
|
|
167
|
-
-> { ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::EndingBalance::PostedBalance }
|
|
168
|
-
|
|
169
|
-
# @!method initialize(available_balance:, pending_balance:, posted_balance:)
|
|
170
|
-
# Some parameter documentations has been truncated, see
|
|
171
|
-
# {ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::EndingBalance}
|
|
172
|
-
# for more details.
|
|
173
|
-
#
|
|
174
|
-
# The pending, posted, and available balances for this ledger account at the
|
|
175
|
-
# `effective_at_upper_bound`. The posted balance is the sum of all posted entries
|
|
176
|
-
# on the account. The pending balance is the sum of all pending and posted entries
|
|
177
|
-
# on the account. The available balance is the posted incoming entries minus the
|
|
178
|
-
# sum of the pending and posted outgoing amounts.
|
|
179
|
-
#
|
|
180
|
-
# @param available_balance [ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::EndingBalance::AvailableBalance] The available_balance is the sum of all posted inbound entries and pending outbo
|
|
181
|
-
#
|
|
182
|
-
# @param pending_balance [ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::EndingBalance::PendingBalance] The pending_balance is the sum of all pending and posted entries.
|
|
183
|
-
#
|
|
184
|
-
# @param posted_balance [ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::EndingBalance::PostedBalance] The posted_balance is the sum of all posted entries.
|
|
185
|
-
|
|
186
|
-
# @see ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::EndingBalance#available_balance
|
|
187
|
-
class AvailableBalance < ModernTreasury::Internal::Type::BaseModel
|
|
188
|
-
# @!attribute amount
|
|
189
|
-
#
|
|
190
|
-
# @return [Integer]
|
|
191
|
-
required :amount, Integer
|
|
192
|
-
|
|
193
|
-
# @!attribute credits
|
|
194
|
-
#
|
|
195
|
-
# @return [Integer]
|
|
196
|
-
required :credits, Integer
|
|
197
|
-
|
|
198
|
-
# @!attribute currency
|
|
199
|
-
# The currency of the ledger account.
|
|
200
|
-
#
|
|
201
|
-
# @return [String]
|
|
202
|
-
required :currency, String
|
|
203
|
-
|
|
204
|
-
# @!attribute currency_exponent
|
|
205
|
-
# The currency exponent of the ledger account.
|
|
206
|
-
#
|
|
207
|
-
# @return [Integer]
|
|
208
|
-
required :currency_exponent, Integer
|
|
209
|
-
|
|
210
|
-
# @!attribute debits
|
|
211
|
-
#
|
|
212
|
-
# @return [Integer]
|
|
213
|
-
required :debits, Integer
|
|
214
|
-
|
|
215
|
-
# @!method initialize(amount:, credits:, currency:, currency_exponent:, debits:)
|
|
216
|
-
# The available_balance is the sum of all posted inbound entries and pending
|
|
217
|
-
# outbound entries. For credit normal, available_amount = posted_credits -
|
|
218
|
-
# pending_debits; for debit normal, available_amount = posted_debits -
|
|
219
|
-
# pending_credits.
|
|
220
|
-
#
|
|
221
|
-
# @param amount [Integer]
|
|
222
|
-
#
|
|
223
|
-
# @param credits [Integer]
|
|
224
|
-
#
|
|
225
|
-
# @param currency [String] The currency of the ledger account.
|
|
226
|
-
#
|
|
227
|
-
# @param currency_exponent [Integer] The currency exponent of the ledger account.
|
|
228
|
-
#
|
|
229
|
-
# @param debits [Integer]
|
|
230
|
-
end
|
|
231
|
-
|
|
232
|
-
# @see ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::EndingBalance#pending_balance
|
|
233
|
-
class PendingBalance < ModernTreasury::Internal::Type::BaseModel
|
|
234
|
-
# @!attribute amount
|
|
235
|
-
#
|
|
236
|
-
# @return [Integer]
|
|
237
|
-
required :amount, Integer
|
|
238
|
-
|
|
239
|
-
# @!attribute credits
|
|
240
|
-
#
|
|
241
|
-
# @return [Integer]
|
|
242
|
-
required :credits, Integer
|
|
243
|
-
|
|
244
|
-
# @!attribute currency
|
|
245
|
-
# The currency of the ledger account.
|
|
246
|
-
#
|
|
247
|
-
# @return [String]
|
|
248
|
-
required :currency, String
|
|
249
|
-
|
|
250
|
-
# @!attribute currency_exponent
|
|
251
|
-
# The currency exponent of the ledger account.
|
|
252
|
-
#
|
|
253
|
-
# @return [Integer]
|
|
254
|
-
required :currency_exponent, Integer
|
|
255
|
-
|
|
256
|
-
# @!attribute debits
|
|
257
|
-
#
|
|
258
|
-
# @return [Integer]
|
|
259
|
-
required :debits, Integer
|
|
260
|
-
|
|
261
|
-
# @!method initialize(amount:, credits:, currency:, currency_exponent:, debits:)
|
|
262
|
-
# The pending_balance is the sum of all pending and posted entries.
|
|
263
|
-
#
|
|
264
|
-
# @param amount [Integer]
|
|
265
|
-
#
|
|
266
|
-
# @param credits [Integer]
|
|
267
|
-
#
|
|
268
|
-
# @param currency [String] The currency of the ledger account.
|
|
269
|
-
#
|
|
270
|
-
# @param currency_exponent [Integer] The currency exponent of the ledger account.
|
|
271
|
-
#
|
|
272
|
-
# @param debits [Integer]
|
|
273
|
-
end
|
|
274
|
-
|
|
275
|
-
# @see ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::EndingBalance#posted_balance
|
|
276
|
-
class PostedBalance < ModernTreasury::Internal::Type::BaseModel
|
|
277
|
-
# @!attribute amount
|
|
278
|
-
#
|
|
279
|
-
# @return [Integer]
|
|
280
|
-
required :amount, Integer
|
|
281
|
-
|
|
282
|
-
# @!attribute credits
|
|
283
|
-
#
|
|
284
|
-
# @return [Integer]
|
|
285
|
-
required :credits, Integer
|
|
286
|
-
|
|
287
|
-
# @!attribute currency
|
|
288
|
-
# The currency of the ledger account.
|
|
289
|
-
#
|
|
290
|
-
# @return [String]
|
|
291
|
-
required :currency, String
|
|
292
|
-
|
|
293
|
-
# @!attribute currency_exponent
|
|
294
|
-
# The currency exponent of the ledger account.
|
|
295
|
-
#
|
|
296
|
-
# @return [Integer]
|
|
297
|
-
required :currency_exponent, Integer
|
|
298
|
-
|
|
299
|
-
# @!attribute debits
|
|
300
|
-
#
|
|
301
|
-
# @return [Integer]
|
|
302
|
-
required :debits, Integer
|
|
303
|
-
|
|
304
|
-
# @!method initialize(amount:, credits:, currency:, currency_exponent:, debits:)
|
|
305
|
-
# The posted_balance is the sum of all posted entries.
|
|
306
|
-
#
|
|
307
|
-
# @param amount [Integer]
|
|
308
|
-
#
|
|
309
|
-
# @param credits [Integer]
|
|
310
|
-
#
|
|
311
|
-
# @param currency [String] The currency of the ledger account.
|
|
312
|
-
#
|
|
313
|
-
# @param currency_exponent [Integer] The currency exponent of the ledger account.
|
|
314
|
-
#
|
|
315
|
-
# @param debits [Integer]
|
|
316
|
-
end
|
|
317
|
-
end
|
|
318
|
-
|
|
319
|
-
# @see ModernTreasury::Models::LedgerAccountStatementRetrieveResponse#starting_balance
|
|
320
|
-
class StartingBalance < ModernTreasury::Internal::Type::BaseModel
|
|
321
|
-
# @!attribute available_balance
|
|
322
|
-
# The available_balance is the sum of all posted inbound entries and pending
|
|
323
|
-
# outbound entries. For credit normal, available_amount = posted_credits -
|
|
324
|
-
# pending_debits; for debit normal, available_amount = posted_debits -
|
|
325
|
-
# pending_credits.
|
|
326
|
-
#
|
|
327
|
-
# @return [ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::StartingBalance::AvailableBalance]
|
|
328
|
-
required :available_balance,
|
|
329
|
-
-> { ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::StartingBalance::AvailableBalance }
|
|
330
|
-
|
|
331
|
-
# @!attribute pending_balance
|
|
332
|
-
# The pending_balance is the sum of all pending and posted entries.
|
|
333
|
-
#
|
|
334
|
-
# @return [ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::StartingBalance::PendingBalance]
|
|
335
|
-
required :pending_balance,
|
|
336
|
-
-> { ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::StartingBalance::PendingBalance }
|
|
337
|
-
|
|
338
|
-
# @!attribute posted_balance
|
|
339
|
-
# The posted_balance is the sum of all posted entries.
|
|
340
|
-
#
|
|
341
|
-
# @return [ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::StartingBalance::PostedBalance]
|
|
342
|
-
required :posted_balance,
|
|
343
|
-
-> { ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::StartingBalance::PostedBalance }
|
|
344
|
-
|
|
345
|
-
# @!method initialize(available_balance:, pending_balance:, posted_balance:)
|
|
346
|
-
# Some parameter documentations has been truncated, see
|
|
347
|
-
# {ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::StartingBalance}
|
|
348
|
-
# for more details.
|
|
349
|
-
#
|
|
350
|
-
# The pending, posted, and available balances for this ledger account at the
|
|
351
|
-
# `effective_at_lower_bound`. The posted balance is the sum of all posted entries
|
|
352
|
-
# on the account. The pending balance is the sum of all pending and posted entries
|
|
353
|
-
# on the account. The available balance is the posted incoming entries minus the
|
|
354
|
-
# sum of the pending and posted outgoing amounts.
|
|
355
|
-
#
|
|
356
|
-
# @param available_balance [ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::StartingBalance::AvailableBalance] The available_balance is the sum of all posted inbound entries and pending outbo
|
|
357
|
-
#
|
|
358
|
-
# @param pending_balance [ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::StartingBalance::PendingBalance] The pending_balance is the sum of all pending and posted entries.
|
|
359
|
-
#
|
|
360
|
-
# @param posted_balance [ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::StartingBalance::PostedBalance] The posted_balance is the sum of all posted entries.
|
|
361
|
-
|
|
362
|
-
# @see ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::StartingBalance#available_balance
|
|
363
|
-
class AvailableBalance < ModernTreasury::Internal::Type::BaseModel
|
|
364
|
-
# @!attribute amount
|
|
365
|
-
#
|
|
366
|
-
# @return [Integer]
|
|
367
|
-
required :amount, Integer
|
|
368
|
-
|
|
369
|
-
# @!attribute credits
|
|
370
|
-
#
|
|
371
|
-
# @return [Integer]
|
|
372
|
-
required :credits, Integer
|
|
373
|
-
|
|
374
|
-
# @!attribute currency
|
|
375
|
-
# The currency of the ledger account.
|
|
376
|
-
#
|
|
377
|
-
# @return [String]
|
|
378
|
-
required :currency, String
|
|
379
|
-
|
|
380
|
-
# @!attribute currency_exponent
|
|
381
|
-
# The currency exponent of the ledger account.
|
|
382
|
-
#
|
|
383
|
-
# @return [Integer]
|
|
384
|
-
required :currency_exponent, Integer
|
|
385
|
-
|
|
386
|
-
# @!attribute debits
|
|
387
|
-
#
|
|
388
|
-
# @return [Integer]
|
|
389
|
-
required :debits, Integer
|
|
390
|
-
|
|
391
|
-
# @!method initialize(amount:, credits:, currency:, currency_exponent:, debits:)
|
|
392
|
-
# The available_balance is the sum of all posted inbound entries and pending
|
|
393
|
-
# outbound entries. For credit normal, available_amount = posted_credits -
|
|
394
|
-
# pending_debits; for debit normal, available_amount = posted_debits -
|
|
395
|
-
# pending_credits.
|
|
396
|
-
#
|
|
397
|
-
# @param amount [Integer]
|
|
398
|
-
#
|
|
399
|
-
# @param credits [Integer]
|
|
400
|
-
#
|
|
401
|
-
# @param currency [String] The currency of the ledger account.
|
|
402
|
-
#
|
|
403
|
-
# @param currency_exponent [Integer] The currency exponent of the ledger account.
|
|
404
|
-
#
|
|
405
|
-
# @param debits [Integer]
|
|
406
|
-
end
|
|
407
|
-
|
|
408
|
-
# @see ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::StartingBalance#pending_balance
|
|
409
|
-
class PendingBalance < ModernTreasury::Internal::Type::BaseModel
|
|
410
|
-
# @!attribute amount
|
|
411
|
-
#
|
|
412
|
-
# @return [Integer]
|
|
413
|
-
required :amount, Integer
|
|
414
|
-
|
|
415
|
-
# @!attribute credits
|
|
416
|
-
#
|
|
417
|
-
# @return [Integer]
|
|
418
|
-
required :credits, Integer
|
|
419
|
-
|
|
420
|
-
# @!attribute currency
|
|
421
|
-
# The currency of the ledger account.
|
|
422
|
-
#
|
|
423
|
-
# @return [String]
|
|
424
|
-
required :currency, String
|
|
425
|
-
|
|
426
|
-
# @!attribute currency_exponent
|
|
427
|
-
# The currency exponent of the ledger account.
|
|
428
|
-
#
|
|
429
|
-
# @return [Integer]
|
|
430
|
-
required :currency_exponent, Integer
|
|
431
|
-
|
|
432
|
-
# @!attribute debits
|
|
433
|
-
#
|
|
434
|
-
# @return [Integer]
|
|
435
|
-
required :debits, Integer
|
|
436
|
-
|
|
437
|
-
# @!method initialize(amount:, credits:, currency:, currency_exponent:, debits:)
|
|
438
|
-
# The pending_balance is the sum of all pending and posted entries.
|
|
439
|
-
#
|
|
440
|
-
# @param amount [Integer]
|
|
441
|
-
#
|
|
442
|
-
# @param credits [Integer]
|
|
443
|
-
#
|
|
444
|
-
# @param currency [String] The currency of the ledger account.
|
|
445
|
-
#
|
|
446
|
-
# @param currency_exponent [Integer] The currency exponent of the ledger account.
|
|
447
|
-
#
|
|
448
|
-
# @param debits [Integer]
|
|
449
|
-
end
|
|
450
|
-
|
|
451
|
-
# @see ModernTreasury::Models::LedgerAccountStatementRetrieveResponse::StartingBalance#posted_balance
|
|
452
|
-
class PostedBalance < ModernTreasury::Internal::Type::BaseModel
|
|
453
|
-
# @!attribute amount
|
|
454
|
-
#
|
|
455
|
-
# @return [Integer]
|
|
456
|
-
required :amount, Integer
|
|
457
|
-
|
|
458
|
-
# @!attribute credits
|
|
459
|
-
#
|
|
460
|
-
# @return [Integer]
|
|
461
|
-
required :credits, Integer
|
|
462
|
-
|
|
463
|
-
# @!attribute currency
|
|
464
|
-
# The currency of the ledger account.
|
|
465
|
-
#
|
|
466
|
-
# @return [String]
|
|
467
|
-
required :currency, String
|
|
468
|
-
|
|
469
|
-
# @!attribute currency_exponent
|
|
470
|
-
# The currency exponent of the ledger account.
|
|
471
|
-
#
|
|
472
|
-
# @return [Integer]
|
|
473
|
-
required :currency_exponent, Integer
|
|
474
|
-
|
|
475
|
-
# @!attribute debits
|
|
476
|
-
#
|
|
477
|
-
# @return [Integer]
|
|
478
|
-
required :debits, Integer
|
|
479
|
-
|
|
480
|
-
# @!method initialize(amount:, credits:, currency:, currency_exponent:, debits:)
|
|
481
|
-
# The posted_balance is the sum of all posted entries.
|
|
482
|
-
#
|
|
483
|
-
# @param amount [Integer]
|
|
484
|
-
#
|
|
485
|
-
# @param credits [Integer]
|
|
486
|
-
#
|
|
487
|
-
# @param currency [String] The currency of the ledger account.
|
|
488
|
-
#
|
|
489
|
-
# @param currency_exponent [Integer] The currency exponent of the ledger account.
|
|
490
|
-
#
|
|
491
|
-
# @param debits [Integer]
|
|
492
|
-
end
|
|
493
|
-
end
|
|
494
140
|
end
|
|
495
141
|
end
|
|
496
142
|
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ModernTreasury
|
|
4
|
+
module Models
|
|
5
|
+
class LedgerBalance < ModernTreasury::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute amount
|
|
7
|
+
#
|
|
8
|
+
# @return [Integer]
|
|
9
|
+
required :amount, Integer
|
|
10
|
+
|
|
11
|
+
# @!attribute credits
|
|
12
|
+
#
|
|
13
|
+
# @return [Integer]
|
|
14
|
+
required :credits, Integer
|
|
15
|
+
|
|
16
|
+
# @!attribute currency
|
|
17
|
+
# The currency of the ledger account.
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :currency, String
|
|
21
|
+
|
|
22
|
+
# @!attribute currency_exponent
|
|
23
|
+
# The currency exponent of the ledger account.
|
|
24
|
+
#
|
|
25
|
+
# @return [Integer]
|
|
26
|
+
required :currency_exponent, Integer
|
|
27
|
+
|
|
28
|
+
# @!attribute debits
|
|
29
|
+
#
|
|
30
|
+
# @return [Integer]
|
|
31
|
+
required :debits, Integer
|
|
32
|
+
|
|
33
|
+
# @!method initialize(amount:, credits:, currency:, currency_exponent:, debits:)
|
|
34
|
+
# @param amount [Integer]
|
|
35
|
+
#
|
|
36
|
+
# @param credits [Integer]
|
|
37
|
+
#
|
|
38
|
+
# @param currency [String] The currency of the ledger account.
|
|
39
|
+
#
|
|
40
|
+
# @param currency_exponent [Integer] The currency exponent of the ledger account.
|
|
41
|
+
#
|
|
42
|
+
# @param debits [Integer]
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ModernTreasury
|
|
4
|
+
module Models
|
|
5
|
+
class LedgerBalances < ModernTreasury::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute available_balance
|
|
7
|
+
# The available_balance is the sum of all posted inbound entries and pending
|
|
8
|
+
# outbound entries. For credit normal, available_amount = posted_credits -
|
|
9
|
+
# pending_debits; for debit normal, available_amount = posted_debits -
|
|
10
|
+
# pending_credits.
|
|
11
|
+
#
|
|
12
|
+
# @return [ModernTreasury::Models::LedgerBalance]
|
|
13
|
+
required :available_balance, -> { ModernTreasury::LedgerBalance }
|
|
14
|
+
|
|
15
|
+
# @!attribute pending_balance
|
|
16
|
+
# The pending_balance is the sum of all pending and posted entries.
|
|
17
|
+
#
|
|
18
|
+
# @return [ModernTreasury::Models::LedgerBalance]
|
|
19
|
+
required :pending_balance, -> { ModernTreasury::LedgerBalance }
|
|
20
|
+
|
|
21
|
+
# @!attribute posted_balance
|
|
22
|
+
# The posted_balance is the sum of all posted entries.
|
|
23
|
+
#
|
|
24
|
+
# @return [ModernTreasury::Models::LedgerBalance]
|
|
25
|
+
required :posted_balance, -> { ModernTreasury::LedgerBalance }
|
|
26
|
+
|
|
27
|
+
# @!method initialize(available_balance:, pending_balance:, posted_balance:)
|
|
28
|
+
# Some parameter documentations has been truncated, see
|
|
29
|
+
# {ModernTreasury::Models::LedgerBalances} for more details.
|
|
30
|
+
#
|
|
31
|
+
# @param available_balance [ModernTreasury::Models::LedgerBalance] The available_balance is the sum of all posted inbound entries and pending outbo
|
|
32
|
+
#
|
|
33
|
+
# @param pending_balance [ModernTreasury::Models::LedgerBalance] The pending_balance is the sum of all pending and posted entries.
|
|
34
|
+
#
|
|
35
|
+
# @param posted_balance [ModernTreasury::Models::LedgerBalance] The posted_balance is the sum of all posted entries.
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -96,10 +96,8 @@ module ModernTreasury
|
|
|
96
96
|
# https://docs.moderntreasury.com/docs/transaction-status-and-balances for more
|
|
97
97
|
# details.
|
|
98
98
|
#
|
|
99
|
-
# @return [ModernTreasury::Models::
|
|
100
|
-
required :resulting_ledger_account_balances,
|
|
101
|
-
-> { ModernTreasury::LedgerEntry::ResultingLedgerAccountBalances },
|
|
102
|
-
nil?: true
|
|
99
|
+
# @return [ModernTreasury::Models::LedgerBalances, nil]
|
|
100
|
+
required :resulting_ledger_account_balances, -> { ModernTreasury::LedgerBalances }, nil?: true
|
|
103
101
|
|
|
104
102
|
# @!attribute status
|
|
105
103
|
# Equal to the state of the ledger transaction when the ledger entry was created.
|
|
@@ -143,190 +141,12 @@ module ModernTreasury
|
|
|
143
141
|
#
|
|
144
142
|
# @param object [String]
|
|
145
143
|
#
|
|
146
|
-
# @param resulting_ledger_account_balances [ModernTreasury::Models::
|
|
144
|
+
# @param resulting_ledger_account_balances [ModernTreasury::Models::LedgerBalances, nil] The pending, posted, and available balances for this ledger entry's ledger accou
|
|
147
145
|
#
|
|
148
146
|
# @param status [Symbol, ModernTreasury::Models::LedgerEntry::Status] Equal to the state of the ledger transaction when the ledger entry was created.
|
|
149
147
|
#
|
|
150
148
|
# @param updated_at [Time]
|
|
151
149
|
|
|
152
|
-
# @see ModernTreasury::Models::LedgerEntry#resulting_ledger_account_balances
|
|
153
|
-
class ResultingLedgerAccountBalances < ModernTreasury::Internal::Type::BaseModel
|
|
154
|
-
# @!attribute available_balance
|
|
155
|
-
# The available_balance is the sum of all posted inbound entries and pending
|
|
156
|
-
# outbound entries. For credit normal, available_amount = posted_credits -
|
|
157
|
-
# pending_debits; for debit normal, available_amount = posted_debits -
|
|
158
|
-
# pending_credits.
|
|
159
|
-
#
|
|
160
|
-
# @return [ModernTreasury::Models::LedgerEntry::ResultingLedgerAccountBalances::AvailableBalance]
|
|
161
|
-
required :available_balance,
|
|
162
|
-
-> { ModernTreasury::LedgerEntry::ResultingLedgerAccountBalances::AvailableBalance }
|
|
163
|
-
|
|
164
|
-
# @!attribute pending_balance
|
|
165
|
-
# The pending_balance is the sum of all pending and posted entries.
|
|
166
|
-
#
|
|
167
|
-
# @return [ModernTreasury::Models::LedgerEntry::ResultingLedgerAccountBalances::PendingBalance]
|
|
168
|
-
required :pending_balance,
|
|
169
|
-
-> { ModernTreasury::LedgerEntry::ResultingLedgerAccountBalances::PendingBalance }
|
|
170
|
-
|
|
171
|
-
# @!attribute posted_balance
|
|
172
|
-
# The posted_balance is the sum of all posted entries.
|
|
173
|
-
#
|
|
174
|
-
# @return [ModernTreasury::Models::LedgerEntry::ResultingLedgerAccountBalances::PostedBalance]
|
|
175
|
-
required :posted_balance,
|
|
176
|
-
-> { ModernTreasury::LedgerEntry::ResultingLedgerAccountBalances::PostedBalance }
|
|
177
|
-
|
|
178
|
-
# @!method initialize(available_balance:, pending_balance:, posted_balance:)
|
|
179
|
-
# Some parameter documentations has been truncated, see
|
|
180
|
-
# {ModernTreasury::Models::LedgerEntry::ResultingLedgerAccountBalances} for more
|
|
181
|
-
# details.
|
|
182
|
-
#
|
|
183
|
-
# The pending, posted, and available balances for this ledger entry's ledger
|
|
184
|
-
# account. The posted balance is the sum of all posted entries on the account. The
|
|
185
|
-
# pending balance is the sum of all pending and posted entries on the account. The
|
|
186
|
-
# available balance is the posted incoming entries minus the sum of the pending
|
|
187
|
-
# and posted outgoing amounts. Please see
|
|
188
|
-
# https://docs.moderntreasury.com/docs/transaction-status-and-balances for more
|
|
189
|
-
# details.
|
|
190
|
-
#
|
|
191
|
-
# @param available_balance [ModernTreasury::Models::LedgerEntry::ResultingLedgerAccountBalances::AvailableBalance] The available_balance is the sum of all posted inbound entries and pending outbo
|
|
192
|
-
#
|
|
193
|
-
# @param pending_balance [ModernTreasury::Models::LedgerEntry::ResultingLedgerAccountBalances::PendingBalance] The pending_balance is the sum of all pending and posted entries.
|
|
194
|
-
#
|
|
195
|
-
# @param posted_balance [ModernTreasury::Models::LedgerEntry::ResultingLedgerAccountBalances::PostedBalance] The posted_balance is the sum of all posted entries.
|
|
196
|
-
|
|
197
|
-
# @see ModernTreasury::Models::LedgerEntry::ResultingLedgerAccountBalances#available_balance
|
|
198
|
-
class AvailableBalance < ModernTreasury::Internal::Type::BaseModel
|
|
199
|
-
# @!attribute amount
|
|
200
|
-
#
|
|
201
|
-
# @return [Integer]
|
|
202
|
-
required :amount, Integer
|
|
203
|
-
|
|
204
|
-
# @!attribute credits
|
|
205
|
-
#
|
|
206
|
-
# @return [Integer]
|
|
207
|
-
required :credits, Integer
|
|
208
|
-
|
|
209
|
-
# @!attribute currency
|
|
210
|
-
# The currency of the ledger account.
|
|
211
|
-
#
|
|
212
|
-
# @return [String]
|
|
213
|
-
required :currency, String
|
|
214
|
-
|
|
215
|
-
# @!attribute currency_exponent
|
|
216
|
-
# The currency exponent of the ledger account.
|
|
217
|
-
#
|
|
218
|
-
# @return [Integer]
|
|
219
|
-
required :currency_exponent, Integer
|
|
220
|
-
|
|
221
|
-
# @!attribute debits
|
|
222
|
-
#
|
|
223
|
-
# @return [Integer]
|
|
224
|
-
required :debits, Integer
|
|
225
|
-
|
|
226
|
-
# @!method initialize(amount:, credits:, currency:, currency_exponent:, debits:)
|
|
227
|
-
# The available_balance is the sum of all posted inbound entries and pending
|
|
228
|
-
# outbound entries. For credit normal, available_amount = posted_credits -
|
|
229
|
-
# pending_debits; for debit normal, available_amount = posted_debits -
|
|
230
|
-
# pending_credits.
|
|
231
|
-
#
|
|
232
|
-
# @param amount [Integer]
|
|
233
|
-
#
|
|
234
|
-
# @param credits [Integer]
|
|
235
|
-
#
|
|
236
|
-
# @param currency [String] The currency of the ledger account.
|
|
237
|
-
#
|
|
238
|
-
# @param currency_exponent [Integer] The currency exponent of the ledger account.
|
|
239
|
-
#
|
|
240
|
-
# @param debits [Integer]
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
# @see ModernTreasury::Models::LedgerEntry::ResultingLedgerAccountBalances#pending_balance
|
|
244
|
-
class PendingBalance < ModernTreasury::Internal::Type::BaseModel
|
|
245
|
-
# @!attribute amount
|
|
246
|
-
#
|
|
247
|
-
# @return [Integer]
|
|
248
|
-
required :amount, Integer
|
|
249
|
-
|
|
250
|
-
# @!attribute credits
|
|
251
|
-
#
|
|
252
|
-
# @return [Integer]
|
|
253
|
-
required :credits, Integer
|
|
254
|
-
|
|
255
|
-
# @!attribute currency
|
|
256
|
-
# The currency of the ledger account.
|
|
257
|
-
#
|
|
258
|
-
# @return [String]
|
|
259
|
-
required :currency, String
|
|
260
|
-
|
|
261
|
-
# @!attribute currency_exponent
|
|
262
|
-
# The currency exponent of the ledger account.
|
|
263
|
-
#
|
|
264
|
-
# @return [Integer]
|
|
265
|
-
required :currency_exponent, Integer
|
|
266
|
-
|
|
267
|
-
# @!attribute debits
|
|
268
|
-
#
|
|
269
|
-
# @return [Integer]
|
|
270
|
-
required :debits, Integer
|
|
271
|
-
|
|
272
|
-
# @!method initialize(amount:, credits:, currency:, currency_exponent:, debits:)
|
|
273
|
-
# The pending_balance is the sum of all pending and posted entries.
|
|
274
|
-
#
|
|
275
|
-
# @param amount [Integer]
|
|
276
|
-
#
|
|
277
|
-
# @param credits [Integer]
|
|
278
|
-
#
|
|
279
|
-
# @param currency [String] The currency of the ledger account.
|
|
280
|
-
#
|
|
281
|
-
# @param currency_exponent [Integer] The currency exponent of the ledger account.
|
|
282
|
-
#
|
|
283
|
-
# @param debits [Integer]
|
|
284
|
-
end
|
|
285
|
-
|
|
286
|
-
# @see ModernTreasury::Models::LedgerEntry::ResultingLedgerAccountBalances#posted_balance
|
|
287
|
-
class PostedBalance < ModernTreasury::Internal::Type::BaseModel
|
|
288
|
-
# @!attribute amount
|
|
289
|
-
#
|
|
290
|
-
# @return [Integer]
|
|
291
|
-
required :amount, Integer
|
|
292
|
-
|
|
293
|
-
# @!attribute credits
|
|
294
|
-
#
|
|
295
|
-
# @return [Integer]
|
|
296
|
-
required :credits, Integer
|
|
297
|
-
|
|
298
|
-
# @!attribute currency
|
|
299
|
-
# The currency of the ledger account.
|
|
300
|
-
#
|
|
301
|
-
# @return [String]
|
|
302
|
-
required :currency, String
|
|
303
|
-
|
|
304
|
-
# @!attribute currency_exponent
|
|
305
|
-
# The currency exponent of the ledger account.
|
|
306
|
-
#
|
|
307
|
-
# @return [Integer]
|
|
308
|
-
required :currency_exponent, Integer
|
|
309
|
-
|
|
310
|
-
# @!attribute debits
|
|
311
|
-
#
|
|
312
|
-
# @return [Integer]
|
|
313
|
-
required :debits, Integer
|
|
314
|
-
|
|
315
|
-
# @!method initialize(amount:, credits:, currency:, currency_exponent:, debits:)
|
|
316
|
-
# The posted_balance is the sum of all posted entries.
|
|
317
|
-
#
|
|
318
|
-
# @param amount [Integer]
|
|
319
|
-
#
|
|
320
|
-
# @param credits [Integer]
|
|
321
|
-
#
|
|
322
|
-
# @param currency [String] The currency of the ledger account.
|
|
323
|
-
#
|
|
324
|
-
# @param currency_exponent [Integer] The currency exponent of the ledger account.
|
|
325
|
-
#
|
|
326
|
-
# @param debits [Integer]
|
|
327
|
-
end
|
|
328
|
-
end
|
|
329
|
-
|
|
330
150
|
# Equal to the state of the ledger transaction when the ledger entry was created.
|
|
331
151
|
# One of `pending`, `posted`, or `archived`.
|
|
332
152
|
#
|