modern_treasury 0.1.0.pre.alpha.19 → 0.1.0.pre.alpha.21
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 +46 -0
- data/README.md +110 -61
- data/SECURITY.md +2 -2
- data/lib/modern_treasury/client.rb +9 -5
- data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +3 -1
- data/lib/modern_treasury/internal/type/array_of.rb +8 -0
- data/lib/modern_treasury/internal/type/base_model.rb +14 -0
- data/lib/modern_treasury/internal/type/boolean.rb +8 -0
- data/lib/modern_treasury/internal/type/enum.rb +15 -0
- data/lib/modern_treasury/internal/type/file_input.rb +7 -0
- data/lib/modern_treasury/internal/type/hash_of.rb +8 -0
- data/lib/modern_treasury/internal/type/union.rb +17 -0
- data/lib/modern_treasury/internal/type/unknown.rb +8 -0
- data/lib/modern_treasury/internal/util.rb +62 -10
- data/lib/modern_treasury/internal.rb +3 -0
- data/lib/modern_treasury/models/account_collection_flow.rb +8 -8
- data/lib/modern_treasury/models/account_collection_flow_create_params.rb +2 -2
- data/lib/modern_treasury/models/account_collection_flow_update_params.rb +2 -2
- data/lib/modern_treasury/models/account_detail.rb +8 -4
- data/lib/modern_treasury/models/account_detail_create_params.rb +8 -4
- data/lib/modern_treasury/models/account_detail_delete_params.rb +2 -2
- data/lib/modern_treasury/models/account_detail_list_params.rb +2 -2
- data/lib/modern_treasury/models/account_detail_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/bank_settings.rb +1 -1
- data/lib/modern_treasury/models/bulk_request.rb +11 -10
- data/lib/modern_treasury/models/bulk_request_create_params.rb +252 -247
- data/lib/modern_treasury/models/bulk_request_list_params.rb +7 -6
- data/lib/modern_treasury/models/bulk_result.rb +18 -29
- data/lib/modern_treasury/models/bulk_result_list_params.rb +7 -6
- data/lib/modern_treasury/models/connection.rb +1 -1
- data/lib/modern_treasury/models/connection_legal_entity.rb +4 -4
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +108 -72
- data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +2 -2
- data/lib/modern_treasury/models/connection_legal_entity_update_params.rb +2 -2
- data/lib/modern_treasury/models/counterparty.rb +32 -32
- data/lib/modern_treasury/models/counterparty_collect_account_params.rb +4 -4
- data/lib/modern_treasury/models/counterparty_collect_account_response.rb +1 -1
- data/lib/modern_treasury/models/counterparty_create_params.rb +166 -121
- data/lib/modern_treasury/models/currency.rb +7 -0
- data/lib/modern_treasury/models/document.rb +13 -13
- data/lib/modern_treasury/models/document_create_params.rb +6 -6
- data/lib/modern_treasury/models/document_list_params.rb +4 -4
- data/lib/modern_treasury/models/event.rb +2 -2
- data/lib/modern_treasury/models/expected_payment.rb +16 -16
- data/lib/modern_treasury/models/expected_payment_create_params.rb +27 -26
- data/lib/modern_treasury/models/expected_payment_list_params.rb +27 -7
- data/lib/modern_treasury/models/expected_payment_type.rb +4 -0
- data/lib/modern_treasury/models/expected_payment_update_params.rb +10 -10
- data/lib/modern_treasury/models/external_account.rb +26 -26
- data/lib/modern_treasury/models/external_account_create_params.rb +41 -32
- data/lib/modern_treasury/models/external_account_type.rb +5 -0
- data/lib/modern_treasury/models/external_account_update_params.rb +6 -6
- data/lib/modern_treasury/models/external_account_verify_params.rb +12 -8
- data/lib/modern_treasury/models/external_account_verify_response.rb +5 -10
- data/lib/modern_treasury/models/foreign_exchange_quote.rb +10 -9
- data/lib/modern_treasury/models/foreign_exchange_quote_create_params.rb +4 -4
- data/lib/modern_treasury/models/incoming_payment_detail.rb +23 -19
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +6 -6
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +6 -6
- data/lib/modern_treasury/models/internal_account.rb +24 -19
- data/lib/modern_treasury/models/internal_account_create_params.rb +37 -5
- data/lib/modern_treasury/models/internal_account_list_params.rb +10 -6
- data/lib/modern_treasury/models/internal_accounts/balance_report.rb +13 -12
- data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +9 -9
- data/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rb +2 -2
- data/lib/modern_treasury/models/invoice.rb +34 -34
- data/lib/modern_treasury/models/invoice_create_params.rb +21 -21
- data/lib/modern_treasury/models/invoice_list_params.rb +2 -2
- data/lib/modern_treasury/models/invoice_update_params.rb +21 -21
- data/lib/modern_treasury/models/invoices/invoice_line_item.rb +10 -2
- data/lib/modern_treasury/models/ledger.rb +2 -2
- data/lib/modern_treasury/models/ledger_account.rb +19 -19
- data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +23 -22
- data/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rb +4 -4
- data/lib/modern_treasury/models/ledger_account_category.rb +16 -16
- data/lib/modern_treasury/models/ledger_account_category_create_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_category_list_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_create_params.rb +4 -4
- data/lib/modern_treasury/models/ledger_account_list_params.rb +8 -8
- data/lib/modern_treasury/models/ledger_account_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_settlement.rb +4 -4
- data/lib/modern_treasury/models/ledger_account_settlement_create_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_settlement_update_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +2 -2
- data/lib/modern_treasury/models/ledger_entry.rb +20 -19
- data/lib/modern_treasury/models/ledger_entry_list_params.rb +12 -12
- data/lib/modern_treasury/models/ledger_event_handler.rb +12 -12
- data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +10 -10
- data/lib/modern_treasury/models/ledger_event_handler_variable.rb +4 -4
- data/lib/modern_treasury/models/ledger_transaction.rb +9 -9
- data/lib/modern_treasury/models/ledger_transaction_create_params.rb +10 -9
- data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +6 -6
- data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +4 -4
- data/lib/modern_treasury/models/ledger_transaction_list_params.rb +12 -12
- data/lib/modern_treasury/models/ledger_transaction_update_params.rb +10 -9
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +30 -29
- data/lib/modern_treasury/models/ledgerable_event.rb +1 -1
- data/lib/modern_treasury/models/legal_entity.rb +52 -34
- data/lib/modern_treasury/models/legal_entity_association.rb +59 -40
- data/lib/modern_treasury/models/legal_entity_association_create_params.rb +54 -36
- data/lib/modern_treasury/models/legal_entity_compliance_detail.rb +1 -1
- data/lib/modern_treasury/models/legal_entity_create_params.rb +102 -65
- data/lib/modern_treasury/models/legal_entity_industry_classification.rb +4 -4
- data/lib/modern_treasury/models/legal_entity_list_params.rb +2 -2
- data/lib/modern_treasury/models/legal_entity_update_params.rb +44 -25
- data/lib/modern_treasury/models/line_item.rb +9 -9
- data/lib/modern_treasury/models/line_item_list_params.rb +2 -2
- data/lib/modern_treasury/models/line_item_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/line_item_update_params.rb +2 -2
- data/lib/modern_treasury/models/paper_item.rb +16 -7
- data/lib/modern_treasury/models/payment_action_create_params.rb +59 -0
- data/lib/modern_treasury/models/payment_action_create_response.rb +100 -0
- data/lib/modern_treasury/models/payment_action_list_params.rb +157 -0
- data/lib/modern_treasury/models/payment_action_list_response.rb +100 -0
- data/lib/modern_treasury/models/payment_action_retrieve_params.rb +14 -0
- data/lib/modern_treasury/models/payment_action_retrieve_response.rb +100 -0
- data/lib/modern_treasury/models/payment_action_update_params.rb +44 -0
- data/lib/modern_treasury/models/payment_action_update_response.rb +100 -0
- data/lib/modern_treasury/models/payment_flow.rb +13 -13
- data/lib/modern_treasury/models/payment_flow_create_params.rb +2 -2
- data/lib/modern_treasury/models/payment_flow_update_params.rb +2 -2
- data/lib/modern_treasury/models/payment_order.rb +57 -86
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +86 -76
- data/lib/modern_treasury/models/payment_order_create_params.rb +95 -85
- data/lib/modern_treasury/models/payment_order_list_params.rb +12 -8
- data/lib/modern_treasury/models/payment_order_type.rb +4 -0
- data/lib/modern_treasury/models/payment_order_update_params.rb +72 -63
- data/lib/modern_treasury/models/payment_orders/reversal.rb +7 -7
- data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +17 -17
- data/lib/modern_treasury/models/payment_reference.rb +11 -7
- data/lib/modern_treasury/models/payment_reference_list_params.rb +2 -2
- data/lib/modern_treasury/models/reconciliation_rule.rb +13 -9
- data/lib/modern_treasury/models/return_create_params.rb +44 -4
- data/lib/modern_treasury/models/return_list_params.rb +2 -2
- data/lib/modern_treasury/models/return_object.rb +78 -27
- data/lib/modern_treasury/models/routing_detail.rb +15 -11
- data/lib/modern_treasury/models/routing_detail_create_params.rb +10 -6
- data/lib/modern_treasury/models/routing_detail_delete_params.rb +2 -2
- data/lib/modern_treasury/models/routing_detail_list_params.rb +2 -2
- data/lib/modern_treasury/models/routing_detail_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +13 -9
- data/lib/modern_treasury/models/transaction.rb +23 -17
- data/lib/modern_treasury/models/transaction_create_params.rb +6 -2
- data/lib/modern_treasury/models/transactions/line_item_list_params.rb +2 -2
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +7 -7
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +2 -2
- data/lib/modern_treasury/models/virtual_account.rb +5 -5
- data/lib/modern_treasury/models/virtual_account_create_params.rb +34 -23
- data/lib/modern_treasury/models/wealth_and_employment_details.rb +19 -19
- data/lib/modern_treasury/models.rb +38 -19
- data/lib/modern_treasury/resources/account_collection_flows.rb +6 -6
- data/lib/modern_treasury/resources/account_details.rb +8 -8
- data/lib/modern_treasury/resources/bulk_requests.rb +9 -9
- data/lib/modern_treasury/resources/bulk_results.rb +5 -5
- data/lib/modern_treasury/resources/connection_legal_entities.rb +7 -7
- data/lib/modern_treasury/resources/connections.rb +1 -1
- data/lib/modern_treasury/resources/counterparties.rb +12 -12
- data/lib/modern_treasury/resources/documents.rb +6 -6
- data/lib/modern_treasury/resources/events.rb +2 -2
- data/lib/modern_treasury/resources/expected_payments.rb +24 -20
- data/lib/modern_treasury/resources/external_accounts.rb +20 -20
- data/lib/modern_treasury/resources/foreign_exchange_quotes.rb +5 -5
- data/lib/modern_treasury/resources/incoming_payment_details.rb +10 -10
- data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +6 -6
- data/lib/modern_treasury/resources/internal_accounts.rb +12 -10
- data/lib/modern_treasury/resources/invoices/line_items.rb +5 -5
- data/lib/modern_treasury/resources/invoices.rb +21 -21
- data/lib/modern_treasury/resources/ledger_account_balance_monitors.rb +6 -6
- data/lib/modern_treasury/resources/ledger_account_categories.rb +8 -8
- data/lib/modern_treasury/resources/ledger_account_settlements.rb +6 -6
- data/lib/modern_treasury/resources/ledger_accounts.rb +12 -12
- data/lib/modern_treasury/resources/ledger_entries.rb +6 -6
- data/lib/modern_treasury/resources/ledger_event_handlers.rb +7 -7
- data/lib/modern_treasury/resources/ledger_transactions/versions.rb +1 -1
- data/lib/modern_treasury/resources/ledger_transactions.rb +18 -18
- data/lib/modern_treasury/resources/ledgerable_events.rb +2 -2
- data/lib/modern_treasury/resources/ledgers.rb +5 -5
- data/lib/modern_treasury/resources/legal_entities.rb +25 -25
- data/lib/modern_treasury/resources/legal_entity_associations.rb +3 -3
- data/lib/modern_treasury/resources/line_items.rb +6 -6
- data/lib/modern_treasury/resources/paper_items.rb +2 -2
- data/lib/modern_treasury/resources/payment_actions.rb +137 -0
- data/lib/modern_treasury/resources/payment_flows.rb +6 -6
- data/lib/modern_treasury/resources/payment_orders/reversals.rb +5 -5
- data/lib/modern_treasury/resources/payment_orders.rb +46 -46
- data/lib/modern_treasury/resources/payment_references.rb +3 -3
- data/lib/modern_treasury/resources/returns.rb +6 -6
- data/lib/modern_treasury/resources/routing_details.rb +9 -9
- data/lib/modern_treasury/resources/transactions/line_items.rb +4 -4
- data/lib/modern_treasury/resources/transactions.rb +5 -5
- data/lib/modern_treasury/resources/validations.rb +2 -2
- data/lib/modern_treasury/resources/virtual_accounts.rb +8 -8
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +12 -1
- data/rbi/modern_treasury/client.rbi +3 -0
- data/rbi/modern_treasury/internal/transport/pooled_net_requester.rbi +5 -1
- data/rbi/modern_treasury/internal/type/array_of.rbi +6 -0
- data/rbi/modern_treasury/internal/type/base_model.rbi +5 -0
- data/rbi/modern_treasury/internal/type/boolean.rbi +6 -0
- data/rbi/modern_treasury/internal/type/enum.rbi +5 -0
- data/rbi/modern_treasury/internal/type/file_input.rbi +5 -0
- data/rbi/modern_treasury/internal/type/hash_of.rbi +6 -0
- data/rbi/modern_treasury/internal/type/union.rbi +5 -0
- data/rbi/modern_treasury/internal/type/unknown.rbi +6 -0
- data/rbi/modern_treasury/internal/util.rbi +36 -0
- data/rbi/modern_treasury/internal.rbi +5 -0
- data/rbi/modern_treasury/models/account_detail.rbi +20 -0
- data/rbi/modern_treasury/models/account_detail_create_params.rbi +20 -0
- data/rbi/modern_treasury/models/bulk_request.rbi +5 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +105 -0
- data/rbi/modern_treasury/models/bulk_request_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/bulk_result.rbi +7 -19
- data/rbi/modern_treasury/models/bulk_result_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +52 -6
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +92 -6
- data/rbi/modern_treasury/models/currency.rbi +7 -0
- data/rbi/modern_treasury/models/document.rbi +9 -6
- data/rbi/modern_treasury/models/document_create_params.rbi +12 -12
- data/rbi/modern_treasury/models/document_list_params.rbi +9 -9
- data/rbi/modern_treasury/models/expected_payment_list_params.rbi +42 -0
- data/rbi/modern_treasury/models/expected_payment_type.rbi +6 -0
- data/rbi/modern_treasury/models/external_account_create_params.rbi +40 -0
- data/rbi/modern_treasury/models/external_account_type.rbi +16 -0
- data/rbi/modern_treasury/models/external_account_verify_params.rbi +20 -0
- data/rbi/modern_treasury/models/external_account_verify_response.rbi +20 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +20 -0
- data/rbi/modern_treasury/models/internal_account.rbi +25 -0
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +117 -0
- data/rbi/modern_treasury/models/internal_account_list_params.rbi +20 -0
- data/rbi/modern_treasury/models/invoice.rbi +2 -2
- data/rbi/modern_treasury/models/invoices/invoice_line_item.rbi +8 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +23 -0
- data/rbi/modern_treasury/models/legal_entity_association.rbi +23 -0
- data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +26 -3
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +52 -6
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +26 -3
- data/rbi/modern_treasury/models/paper_item.rbi +10 -0
- data/rbi/modern_treasury/models/payment_action_create_params.rbi +94 -0
- data/rbi/modern_treasury/models/payment_action_create_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_action_list_params.rbi +306 -0
- data/rbi/modern_treasury/models/payment_action_list_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_action_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/payment_action_retrieve_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_action_update_params.rbi +106 -0
- data/rbi/modern_treasury/models/payment_action_update_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_order.rbi +22 -38
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +40 -0
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +52 -12
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +20 -0
- data/rbi/modern_treasury/models/payment_order_type.rbi +5 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +40 -0
- data/rbi/modern_treasury/models/payment_reference.rbi +20 -0
- data/rbi/modern_treasury/models/reconciliation_rule.rbi +14 -0
- data/rbi/modern_treasury/models/return_create_params.rbi +80 -0
- data/rbi/modern_treasury/models/return_object.rbi +66 -0
- data/rbi/modern_treasury/models/routing_detail.rbi +17 -0
- data/rbi/modern_treasury/models/routing_detail_create_params.rbi +20 -0
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +20 -0
- data/rbi/modern_treasury/models/transaction.rbi +16 -0
- data/rbi/modern_treasury/models/transaction_create_params.rbi +20 -0
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +40 -0
- data/rbi/modern_treasury/models.rbi +9 -0
- data/rbi/modern_treasury/resources/documents.rbi +1 -1
- data/rbi/modern_treasury/resources/expected_payments.rbi +6 -0
- data/rbi/modern_treasury/resources/external_accounts.rbi +1 -4
- data/rbi/modern_treasury/resources/internal_accounts.rbi +5 -0
- data/rbi/modern_treasury/resources/payment_actions.rbi +119 -0
- data/sig/modern_treasury/client.rbs +2 -0
- data/sig/modern_treasury/internal/transport/pooled_net_requester.rbs +2 -0
- data/sig/modern_treasury/internal/type/array_of.rbs +3 -0
- data/sig/modern_treasury/internal/type/base_model.rbs +2 -0
- data/sig/modern_treasury/internal/type/boolean.rbs +3 -0
- data/sig/modern_treasury/internal/type/enum.rbs +2 -0
- data/sig/modern_treasury/internal/type/file_input.rbs +2 -0
- data/sig/modern_treasury/internal/type/hash_of.rbs +3 -0
- data/sig/modern_treasury/internal/type/union.rbs +2 -0
- data/sig/modern_treasury/internal/type/unknown.rbs +3 -0
- data/sig/modern_treasury/internal/util.rbs +12 -0
- data/sig/modern_treasury/internal.rbs +3 -0
- data/sig/modern_treasury/models/account_collection_flow.rbs +30 -16
- data/sig/modern_treasury/models/account_collection_flow_create_params.rbs +13 -6
- data/sig/modern_treasury/models/account_collection_flow_list_params.rbs +10 -0
- data/sig/modern_treasury/models/account_collection_flow_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/account_collection_flow_update_params.rbs +5 -0
- data/sig/modern_treasury/models/account_detail.rbs +24 -4
- data/sig/modern_treasury/models/account_detail_create_params.rbs +15 -0
- data/sig/modern_treasury/models/account_detail_delete_params.rbs +6 -0
- data/sig/modern_treasury/models/account_detail_list_params.rbs +7 -0
- data/sig/modern_treasury/models/account_detail_retrieve_params.rbs +6 -0
- data/sig/modern_treasury/models/async_response.rbs +2 -0
- data/sig/modern_treasury/models/bank_settings.rbs +13 -0
- data/sig/modern_treasury/models/bulk_request.rbs +29 -12
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +600 -188
- data/sig/modern_treasury/models/bulk_request_list_params.rbs +12 -0
- data/sig/modern_treasury/models/bulk_request_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/bulk_result.rbs +44 -16
- data/sig/modern_treasury/models/bulk_result_list_params.rbs +13 -0
- data/sig/modern_treasury/models/bulk_result_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/client_ping_params.rbs +2 -0
- data/sig/modern_treasury/models/connection.rbs +12 -0
- data/sig/modern_treasury/models/connection_legal_entity.rbs +17 -4
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +188 -56
- data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +9 -0
- data/sig/modern_treasury/models/connection_legal_entity_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/connection_legal_entity_update_params.rbs +5 -0
- data/sig/modern_treasury/models/connection_list_params.rbs +8 -0
- data/sig/modern_treasury/models/counterparty.rbs +84 -22
- data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +14 -6
- data/sig/modern_treasury/models/counterparty_collect_account_response.rbs +2 -0
- data/sig/modern_treasury/models/counterparty_create_params.rbs +307 -92
- data/sig/modern_treasury/models/counterparty_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/counterparty_list_params.rbs +12 -0
- data/sig/modern_treasury/models/counterparty_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/counterparty_update_params.rbs +10 -0
- data/sig/modern_treasury/models/currency.rbs +14 -0
- data/sig/modern_treasury/models/document.rbs +41 -9
- data/sig/modern_treasury/models/document_create_params.rbs +16 -8
- data/sig/modern_treasury/models/document_list_params.rbs +13 -5
- data/sig/modern_treasury/models/document_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/event.rbs +13 -0
- data/sig/modern_treasury/models/event_list_params.rbs +11 -0
- data/sig/modern_treasury/models/event_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/expected_payment.rbs +41 -12
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +66 -12
- data/sig/modern_treasury/models/expected_payment_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +37 -1
- data/sig/modern_treasury/models/expected_payment_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/expected_payment_type.rbs +8 -0
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +21 -0
- data/sig/modern_treasury/models/external_account.rbs +63 -16
- data/sig/modern_treasury/models/external_account_complete_verification_params.rbs +5 -0
- data/sig/modern_treasury/models/external_account_create_params.rbs +99 -28
- data/sig/modern_treasury/models/external_account_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/external_account_list_params.rbs +9 -0
- data/sig/modern_treasury/models/external_account_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/external_account_type.rbs +11 -1
- data/sig/modern_treasury/models/external_account_update_params.rbs +20 -0
- data/sig/modern_treasury/models/external_account_verify_params.rbs +17 -0
- data/sig/modern_treasury/models/external_account_verify_response.rbs +21 -0
- data/sig/modern_treasury/models/foreign_exchange_quote.rbs +25 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_create_params.rbs +10 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_list_params.rbs +13 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +52 -16
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +13 -0
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +13 -0
- data/sig/modern_treasury/models/incoming_payment_detail_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/incoming_payment_detail_update_params.rbs +5 -0
- data/sig/modern_treasury/models/internal_account.rbs +55 -9
- data/sig/modern_treasury/models/internal_account_create_params.rbs +66 -0
- data/sig/modern_treasury/models/internal_account_list_params.rbs +20 -0
- data/sig/modern_treasury/models/internal_account_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/internal_account_update_params.rbs +9 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +37 -8
- data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +19 -4
- data/sig/modern_treasury/models/internal_accounts/balance_report_delete_params.rbs +5 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_list_params.rbs +8 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/invoice.rbs +94 -16
- data/sig/modern_treasury/models/invoice_add_payment_order_params.rbs +5 -0
- data/sig/modern_treasury/models/invoice_create_params.rbs +81 -4
- data/sig/modern_treasury/models/invoice_list_params.rbs +15 -0
- data/sig/modern_treasury/models/invoice_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/invoice_update_params.rbs +81 -4
- data/sig/modern_treasury/models/invoices/invoice_line_item.rbs +21 -0
- data/sig/modern_treasury/models/invoices/line_item_create_params.rbs +11 -0
- data/sig/modern_treasury/models/invoices/line_item_delete_params.rbs +5 -0
- data/sig/modern_treasury/models/invoices/line_item_list_params.rbs +6 -0
- data/sig/modern_treasury/models/invoices/line_item_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/invoices/line_item_update_params.rbs +12 -0
- data/sig/modern_treasury/models/ledger.rbs +12 -0
- data/sig/modern_treasury/models/ledger_account.rbs +54 -4
- data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +52 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_create_params.rbs +10 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_list_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_update_params.rbs +6 -0
- data/sig/modern_treasury/models/ledger_account_category.rbs +45 -0
- data/sig/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_add_nested_category_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_create_params.rbs +12 -0
- data/sig/modern_treasury/models/ledger_account_category_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +16 -0
- data/sig/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_retrieve_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account_category_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account_create_params.rbs +14 -0
- data/sig/modern_treasury/models/ledger_account_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_list_params.rbs +52 -0
- data/sig/modern_treasury/models/ledger_account_retrieve_params.rbs +13 -0
- data/sig/modern_treasury/models/ledger_account_settlement.rbs +24 -4
- data/sig/modern_treasury/models/ledger_account_settlement_create_params.rbs +12 -0
- data/sig/modern_treasury/models/ledger_account_settlement_list_params.rbs +14 -0
- data/sig/modern_treasury/models/ledger_account_settlement_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +78 -0
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +78 -0
- data/sig/modern_treasury/models/ledger_account_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_create_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_entry.rbs +53 -4
- data/sig/modern_treasury/models/ledger_entry_list_params.rbs +41 -12
- data/sig/modern_treasury/models/ledger_entry_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_entry_update_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_event_handler.rbs +31 -0
- data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +26 -0
- data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +7 -0
- data/sig/modern_treasury/models/ledger_list_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_transaction.rbs +30 -8
- data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +25 -0
- data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +19 -4
- data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +11 -0
- data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +40 -12
- data/sig/modern_treasury/models/ledger_transaction_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +23 -0
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +82 -12
- data/sig/modern_treasury/models/ledger_transactions/version_list_params.rbs +10 -0
- data/sig/modern_treasury/models/ledger_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledgerable_event.rbs +13 -0
- data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +8 -0
- data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/legal_entity.rbs +96 -20
- data/sig/modern_treasury/models/legal_entity_association.rbs +113 -24
- data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +98 -30
- data/sig/modern_treasury/models/legal_entity_compliance_detail.rbs +15 -0
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +168 -42
- data/sig/modern_treasury/models/legal_entity_industry_classification.rbs +15 -4
- data/sig/modern_treasury/models/legal_entity_list_params.rbs +9 -0
- data/sig/modern_treasury/models/legal_entity_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +70 -12
- data/sig/modern_treasury/models/line_item.rbs +22 -4
- data/sig/modern_treasury/models/line_item_list_params.rbs +7 -0
- data/sig/modern_treasury/models/line_item_retrieve_params.rbs +6 -0
- data/sig/modern_treasury/models/line_item_update_params.rbs +7 -0
- data/sig/modern_treasury/models/paper_item.rbs +30 -4
- data/sig/modern_treasury/models/paper_item_list_params.rbs +9 -0
- data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_action_create_params.rbs +54 -0
- data/sig/modern_treasury/models/payment_action_create_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_action_list_params.rbs +149 -0
- data/sig/modern_treasury/models/payment_action_list_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_action_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/payment_action_retrieve_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_action_update_params.rbs +40 -0
- data/sig/modern_treasury/models/payment_action_update_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_flow.rbs +44 -22
- data/sig/modern_treasury/models/payment_flow_create_params.rbs +10 -0
- data/sig/modern_treasury/models/payment_flow_list_params.rbs +12 -0
- data/sig/modern_treasury/models/payment_flow_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_flow_update_params.rbs +5 -0
- data/sig/modern_treasury/models/payment_order.rbs +116 -48
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +185 -44
- data/sig/modern_treasury/models/payment_order_create_params.rbs +205 -56
- data/sig/modern_treasury/models/payment_order_list_params.rbs +29 -0
- data/sig/modern_treasury/models/payment_order_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_order_type.rbs +8 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +148 -32
- data/sig/modern_treasury/models/payment_orders/reversal.rbs +22 -8
- data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +43 -12
- data/sig/modern_treasury/models/payment_orders/reversal_list_params.rbs +6 -0
- data/sig/modern_treasury/models/payment_orders/reversal_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/payment_reference.rbs +28 -8
- data/sig/modern_treasury/models/payment_reference_list_params.rbs +9 -0
- data/sig/modern_treasury/models/payment_reference_retireve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_reference_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ping_response.rbs +2 -0
- data/sig/modern_treasury/models/reconciliation_rule.rbs +29 -8
- data/sig/modern_treasury/models/return_create_params.rbs +91 -0
- data/sig/modern_treasury/models/return_list_params.rbs +10 -0
- data/sig/modern_treasury/models/return_object.rbs +154 -24
- data/sig/modern_treasury/models/return_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/routing_detail.rbs +44 -8
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +16 -0
- data/sig/modern_treasury/models/routing_detail_delete_params.rbs +6 -0
- data/sig/modern_treasury/models/routing_detail_list_params.rbs +7 -0
- data/sig/modern_treasury/models/routing_detail_retrieve_params.rbs +6 -0
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +38 -12
- data/sig/modern_treasury/models/transaction.rbs +58 -8
- data/sig/modern_treasury/models/transaction_create_params.rbs +22 -0
- data/sig/modern_treasury/models/transaction_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/transaction_list_params.rbs +18 -0
- data/sig/modern_treasury/models/transaction_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/transaction_update_params.rbs +5 -0
- data/sig/modern_treasury/models/transactions/line_item_create_params.rbs +7 -0
- data/sig/modern_treasury/models/transactions/line_item_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/transactions/line_item_list_params.rbs +9 -0
- data/sig/modern_treasury/models/transactions/line_item_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +26 -8
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +6 -0
- data/sig/modern_treasury/models/virtual_account.rbs +19 -0
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +74 -20
- data/sig/modern_treasury/models/virtual_account_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account_list_params.rbs +9 -0
- data/sig/modern_treasury/models/virtual_account_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account_update_params.rbs +8 -0
- data/sig/modern_treasury/models/wealth_and_employment_details.rbs +45 -24
- data/sig/modern_treasury/models.rbs +8 -0
- data/sig/modern_treasury/resources/account_collection_flows.rbs +1 -1
- data/sig/modern_treasury/resources/bulk_requests.rbs +1 -1
- data/sig/modern_treasury/resources/counterparties.rbs +1 -1
- data/sig/modern_treasury/resources/documents.rbs +1 -1
- data/sig/modern_treasury/resources/expected_payments.rbs +2 -0
- data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
- data/sig/modern_treasury/resources/legal_entity_associations.rbs +1 -1
- data/sig/modern_treasury/resources/payment_actions.rbs +40 -0
- metadata +29 -2
@@ -27,7 +27,7 @@ module ModernTreasury
|
|
27
27
|
# `debit` pulls money from someone else's account to your own. Note that wire,
|
28
28
|
# rtp, and check payments will always be `credit`.
|
29
29
|
#
|
30
|
-
# @return [Symbol, ModernTreasury::TransactionDirection]
|
30
|
+
# @return [Symbol, ModernTreasury::Models::TransactionDirection]
|
31
31
|
required :direction, enum: -> { ModernTreasury::TransactionDirection }
|
32
32
|
|
33
33
|
# @!attribute discarded_at
|
@@ -96,7 +96,7 @@ module ModernTreasury
|
|
96
96
|
# https://docs.moderntreasury.com/docs/transaction-status-and-balances for more
|
97
97
|
# details.
|
98
98
|
#
|
99
|
-
# @return [ModernTreasury::LedgerEntry::ResultingLedgerAccountBalances, nil]
|
99
|
+
# @return [ModernTreasury::Models::LedgerEntry::ResultingLedgerAccountBalances, nil]
|
100
100
|
required :resulting_ledger_account_balances,
|
101
101
|
-> { ModernTreasury::LedgerEntry::ResultingLedgerAccountBalances },
|
102
102
|
nil?: true
|
@@ -105,7 +105,7 @@ module ModernTreasury
|
|
105
105
|
# Equal to the state of the ledger transaction when the ledger entry was created.
|
106
106
|
# One of `pending`, `posted`, or `archived`.
|
107
107
|
#
|
108
|
-
# @return [Symbol, ModernTreasury::LedgerEntry::Status]
|
108
|
+
# @return [Symbol, ModernTreasury::Models::LedgerEntry::Status]
|
109
109
|
required :status, enum: -> { ModernTreasury::LedgerEntry::Status }
|
110
110
|
|
111
111
|
# @!attribute updated_at
|
@@ -115,7 +115,7 @@ module ModernTreasury
|
|
115
115
|
|
116
116
|
# @!method initialize(id:, amount:, created_at:, direction:, discarded_at:, ledger_account_currency:, ledger_account_currency_exponent:, ledger_account_id:, ledger_account_lock_version:, ledger_transaction_id:, live_mode:, metadata:, object:, resulting_ledger_account_balances:, status:, updated_at:)
|
117
117
|
# Some parameter documentations has been truncated, see
|
118
|
-
# {ModernTreasury::LedgerEntry} for more details.
|
118
|
+
# {ModernTreasury::Models::LedgerEntry} for more details.
|
119
119
|
#
|
120
120
|
# @param id [String]
|
121
121
|
#
|
@@ -123,7 +123,7 @@ module ModernTreasury
|
|
123
123
|
#
|
124
124
|
# @param created_at [Time]
|
125
125
|
#
|
126
|
-
# @param direction [Symbol, ModernTreasury::TransactionDirection] One of `credit`, `debit`. Describes the direction money is flowing in the transa
|
126
|
+
# @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of `credit`, `debit`. Describes the direction money is flowing in the transa
|
127
127
|
#
|
128
128
|
# @param discarded_at [Time, nil]
|
129
129
|
#
|
@@ -143,13 +143,13 @@ module ModernTreasury
|
|
143
143
|
#
|
144
144
|
# @param object [String]
|
145
145
|
#
|
146
|
-
# @param resulting_ledger_account_balances [ModernTreasury::LedgerEntry::ResultingLedgerAccountBalances, nil] The pending, posted, and available balances for this ledger entry's ledger accou
|
146
|
+
# @param resulting_ledger_account_balances [ModernTreasury::Models::LedgerEntry::ResultingLedgerAccountBalances, nil] The pending, posted, and available balances for this ledger entry's ledger accou
|
147
147
|
#
|
148
|
-
# @param status [Symbol, ModernTreasury::LedgerEntry::Status] Equal to the state of the ledger transaction when the ledger entry was created.
|
148
|
+
# @param status [Symbol, ModernTreasury::Models::LedgerEntry::Status] Equal to the state of the ledger transaction when the ledger entry was created.
|
149
149
|
#
|
150
150
|
# @param updated_at [Time]
|
151
151
|
|
152
|
-
# @see ModernTreasury::LedgerEntry#resulting_ledger_account_balances
|
152
|
+
# @see ModernTreasury::Models::LedgerEntry#resulting_ledger_account_balances
|
153
153
|
class ResultingLedgerAccountBalances < ModernTreasury::Internal::Type::BaseModel
|
154
154
|
# @!attribute available_balance
|
155
155
|
# The available_balance is the sum of all posted inbound entries and pending
|
@@ -157,27 +157,28 @@ module ModernTreasury
|
|
157
157
|
# pending_debits; for debit normal, available_amount = posted_debits -
|
158
158
|
# pending_credits.
|
159
159
|
#
|
160
|
-
# @return [ModernTreasury::LedgerEntry::ResultingLedgerAccountBalances::AvailableBalance]
|
160
|
+
# @return [ModernTreasury::Models::LedgerEntry::ResultingLedgerAccountBalances::AvailableBalance]
|
161
161
|
required :available_balance,
|
162
162
|
-> { ModernTreasury::LedgerEntry::ResultingLedgerAccountBalances::AvailableBalance }
|
163
163
|
|
164
164
|
# @!attribute pending_balance
|
165
165
|
# The pending_balance is the sum of all pending and posted entries.
|
166
166
|
#
|
167
|
-
# @return [ModernTreasury::LedgerEntry::ResultingLedgerAccountBalances::PendingBalance]
|
167
|
+
# @return [ModernTreasury::Models::LedgerEntry::ResultingLedgerAccountBalances::PendingBalance]
|
168
168
|
required :pending_balance,
|
169
169
|
-> { ModernTreasury::LedgerEntry::ResultingLedgerAccountBalances::PendingBalance }
|
170
170
|
|
171
171
|
# @!attribute posted_balance
|
172
172
|
# The posted_balance is the sum of all posted entries.
|
173
173
|
#
|
174
|
-
# @return [ModernTreasury::LedgerEntry::ResultingLedgerAccountBalances::PostedBalance]
|
174
|
+
# @return [ModernTreasury::Models::LedgerEntry::ResultingLedgerAccountBalances::PostedBalance]
|
175
175
|
required :posted_balance,
|
176
176
|
-> { ModernTreasury::LedgerEntry::ResultingLedgerAccountBalances::PostedBalance }
|
177
177
|
|
178
178
|
# @!method initialize(available_balance:, pending_balance:, posted_balance:)
|
179
179
|
# Some parameter documentations has been truncated, see
|
180
|
-
# {ModernTreasury::LedgerEntry::ResultingLedgerAccountBalances} for more
|
180
|
+
# {ModernTreasury::Models::LedgerEntry::ResultingLedgerAccountBalances} for more
|
181
|
+
# details.
|
181
182
|
#
|
182
183
|
# The pending, posted, and available balances for this ledger entry's ledger
|
183
184
|
# account. The posted balance is the sum of all posted entries on the account. The
|
@@ -187,13 +188,13 @@ module ModernTreasury
|
|
187
188
|
# https://docs.moderntreasury.com/docs/transaction-status-and-balances for more
|
188
189
|
# details.
|
189
190
|
#
|
190
|
-
# @param available_balance [ModernTreasury::LedgerEntry::ResultingLedgerAccountBalances::AvailableBalance] The available_balance is the sum of all posted inbound entries and pending outbo
|
191
|
+
# @param available_balance [ModernTreasury::Models::LedgerEntry::ResultingLedgerAccountBalances::AvailableBalance] The available_balance is the sum of all posted inbound entries and pending outbo
|
191
192
|
#
|
192
|
-
# @param pending_balance [ModernTreasury::LedgerEntry::ResultingLedgerAccountBalances::PendingBalance] The pending_balance is the sum of all pending and posted entries.
|
193
|
+
# @param pending_balance [ModernTreasury::Models::LedgerEntry::ResultingLedgerAccountBalances::PendingBalance] The pending_balance is the sum of all pending and posted entries.
|
193
194
|
#
|
194
|
-
# @param posted_balance [ModernTreasury::LedgerEntry::ResultingLedgerAccountBalances::PostedBalance] The posted_balance is the sum of all posted entries.
|
195
|
+
# @param posted_balance [ModernTreasury::Models::LedgerEntry::ResultingLedgerAccountBalances::PostedBalance] The posted_balance is the sum of all posted entries.
|
195
196
|
|
196
|
-
# @see ModernTreasury::LedgerEntry::ResultingLedgerAccountBalances#available_balance
|
197
|
+
# @see ModernTreasury::Models::LedgerEntry::ResultingLedgerAccountBalances#available_balance
|
197
198
|
class AvailableBalance < ModernTreasury::Internal::Type::BaseModel
|
198
199
|
# @!attribute amount
|
199
200
|
#
|
@@ -239,7 +240,7 @@ module ModernTreasury
|
|
239
240
|
# @param debits [Integer]
|
240
241
|
end
|
241
242
|
|
242
|
-
# @see ModernTreasury::LedgerEntry::ResultingLedgerAccountBalances#pending_balance
|
243
|
+
# @see ModernTreasury::Models::LedgerEntry::ResultingLedgerAccountBalances#pending_balance
|
243
244
|
class PendingBalance < ModernTreasury::Internal::Type::BaseModel
|
244
245
|
# @!attribute amount
|
245
246
|
#
|
@@ -282,7 +283,7 @@ module ModernTreasury
|
|
282
283
|
# @param debits [Integer]
|
283
284
|
end
|
284
285
|
|
285
|
-
# @see ModernTreasury::LedgerEntry::ResultingLedgerAccountBalances#posted_balance
|
286
|
+
# @see ModernTreasury::Models::LedgerEntry::ResultingLedgerAccountBalances#posted_balance
|
286
287
|
class PostedBalance < ModernTreasury::Internal::Type::BaseModel
|
287
288
|
# @!attribute amount
|
288
289
|
#
|
@@ -329,7 +330,7 @@ module ModernTreasury
|
|
329
330
|
# Equal to the state of the ledger transaction when the ledger entry was created.
|
330
331
|
# One of `pending`, `posted`, or `archived`.
|
331
332
|
#
|
332
|
-
# @see ModernTreasury::LedgerEntry#status
|
333
|
+
# @see ModernTreasury::Models::LedgerEntry#status
|
333
334
|
module Status
|
334
335
|
extend ModernTreasury::Internal::Type::Enum
|
335
336
|
|
@@ -31,7 +31,7 @@ module ModernTreasury
|
|
31
31
|
# a ledger transaction to specify a new set of entries, the previous entries are
|
32
32
|
# deleted.
|
33
33
|
#
|
34
|
-
# @return [Symbol, ModernTreasury::TransactionDirection, nil]
|
34
|
+
# @return [Symbol, ModernTreasury::Models::TransactionDirection, nil]
|
35
35
|
optional :direction, enum: -> { ModernTreasury::TransactionDirection }
|
36
36
|
|
37
37
|
# @!attribute effective_at
|
@@ -103,7 +103,7 @@ module ModernTreasury
|
|
103
103
|
# to order by `effective_at asc`, use `order_by%5Beffective_at%5D=asc`. Ordering
|
104
104
|
# by only one field at a time is supported.
|
105
105
|
#
|
106
|
-
# @return [ModernTreasury::LedgerEntryListParams::OrderBy, nil]
|
106
|
+
# @return [ModernTreasury::Models::LedgerEntryListParams::OrderBy, nil]
|
107
107
|
optional :order_by, -> { ModernTreasury::LedgerEntryListParams::OrderBy }
|
108
108
|
|
109
109
|
# @!attribute per_page
|
@@ -130,7 +130,7 @@ module ModernTreasury
|
|
130
130
|
# Get all ledger entries that match the status specified. One of `pending`,
|
131
131
|
# `posted`, or `archived`.
|
132
132
|
#
|
133
|
-
# @return [Symbol, ModernTreasury::LedgerEntryListParams::Status, nil]
|
133
|
+
# @return [Symbol, ModernTreasury::Models::LedgerEntryListParams::Status, nil]
|
134
134
|
optional :status, enum: -> { ModernTreasury::LedgerEntryListParams::Status }
|
135
135
|
|
136
136
|
# @!attribute updated_at
|
@@ -151,7 +151,7 @@ module ModernTreasury
|
|
151
151
|
#
|
152
152
|
# @param as_of_lock_version [Integer] Shows all ledger entries that were present on a ledger account at a particular `
|
153
153
|
#
|
154
|
-
# @param direction [Symbol, ModernTreasury::TransactionDirection] If true, response will include ledger entries that were deleted. When you update
|
154
|
+
# @param direction [Symbol, ModernTreasury::Models::TransactionDirection] If true, response will include ledger entries that were deleted. When you update
|
155
155
|
#
|
156
156
|
# @param effective_at [Hash{Symbol=>Time}] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the tra
|
157
157
|
#
|
@@ -173,7 +173,7 @@ module ModernTreasury
|
|
173
173
|
#
|
174
174
|
# @param metadata [Hash{Symbol=>String}] For example, if you want to query for records with metadata key `Type` and value
|
175
175
|
#
|
176
|
-
# @param order_by [ModernTreasury::LedgerEntryListParams::OrderBy] Order by `created_at` or `effective_at` in `asc` or `desc` order. For example, t
|
176
|
+
# @param order_by [ModernTreasury::Models::LedgerEntryListParams::OrderBy] Order by `created_at` or `effective_at` in `asc` or `desc` order. For example, t
|
177
177
|
#
|
178
178
|
# @param per_page [Integer]
|
179
179
|
#
|
@@ -181,7 +181,7 @@ module ModernTreasury
|
|
181
181
|
#
|
182
182
|
# @param show_deleted [Boolean] If true, response will include ledger entries that were deleted. When you update
|
183
183
|
#
|
184
|
-
# @param status [Symbol, ModernTreasury::LedgerEntryListParams::Status] Get all ledger entries that match the status specified. One of `pending`, `poste
|
184
|
+
# @param status [Symbol, ModernTreasury::Models::LedgerEntryListParams::Status] Get all ledger entries that match the status specified. One of `pending`, `poste
|
185
185
|
#
|
186
186
|
# @param updated_at [Hash{Symbol=>Time}] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the pos
|
187
187
|
#
|
@@ -190,12 +190,12 @@ module ModernTreasury
|
|
190
190
|
class OrderBy < ModernTreasury::Internal::Type::BaseModel
|
191
191
|
# @!attribute created_at
|
192
192
|
#
|
193
|
-
# @return [Symbol, ModernTreasury::LedgerEntryListParams::OrderBy::CreatedAt, nil]
|
193
|
+
# @return [Symbol, ModernTreasury::Models::LedgerEntryListParams::OrderBy::CreatedAt, nil]
|
194
194
|
optional :created_at, enum: -> { ModernTreasury::LedgerEntryListParams::OrderBy::CreatedAt }
|
195
195
|
|
196
196
|
# @!attribute effective_at
|
197
197
|
#
|
198
|
-
# @return [Symbol, ModernTreasury::LedgerEntryListParams::OrderBy::EffectiveAt, nil]
|
198
|
+
# @return [Symbol, ModernTreasury::Models::LedgerEntryListParams::OrderBy::EffectiveAt, nil]
|
199
199
|
optional :effective_at, enum: -> { ModernTreasury::LedgerEntryListParams::OrderBy::EffectiveAt }
|
200
200
|
|
201
201
|
# @!method initialize(created_at: nil, effective_at: nil)
|
@@ -203,10 +203,10 @@ module ModernTreasury
|
|
203
203
|
# to order by `effective_at asc`, use `order_by%5Beffective_at%5D=asc`. Ordering
|
204
204
|
# by only one field at a time is supported.
|
205
205
|
#
|
206
|
-
# @param created_at [Symbol, ModernTreasury::LedgerEntryListParams::OrderBy::CreatedAt]
|
207
|
-
# @param effective_at [Symbol, ModernTreasury::LedgerEntryListParams::OrderBy::EffectiveAt]
|
206
|
+
# @param created_at [Symbol, ModernTreasury::Models::LedgerEntryListParams::OrderBy::CreatedAt]
|
207
|
+
# @param effective_at [Symbol, ModernTreasury::Models::LedgerEntryListParams::OrderBy::EffectiveAt]
|
208
208
|
|
209
|
-
# @see ModernTreasury::LedgerEntryListParams::OrderBy#created_at
|
209
|
+
# @see ModernTreasury::Models::LedgerEntryListParams::OrderBy#created_at
|
210
210
|
module CreatedAt
|
211
211
|
extend ModernTreasury::Internal::Type::Enum
|
212
212
|
|
@@ -217,7 +217,7 @@ module ModernTreasury
|
|
217
217
|
# @return [Array<Symbol>]
|
218
218
|
end
|
219
219
|
|
220
|
-
# @see ModernTreasury::LedgerEntryListParams::OrderBy#effective_at
|
220
|
+
# @see ModernTreasury::Models::LedgerEntryListParams::OrderBy#effective_at
|
221
221
|
module EffectiveAt
|
222
222
|
extend ModernTreasury::Internal::Type::Enum
|
223
223
|
|
@@ -14,7 +14,7 @@ module ModernTreasury
|
|
14
14
|
# @!attribute conditions
|
15
15
|
# @deprecated
|
16
16
|
#
|
17
|
-
# @return [ModernTreasury::LedgerEventHandler::Conditions, nil]
|
17
|
+
# @return [ModernTreasury::Models::LedgerEventHandler::Conditions, nil]
|
18
18
|
required :conditions, -> { ModernTreasury::LedgerEventHandler::Conditions }, nil?: true
|
19
19
|
|
20
20
|
# @!attribute created_at
|
@@ -42,7 +42,7 @@ module ModernTreasury
|
|
42
42
|
# @!attribute ledger_transaction_template
|
43
43
|
# @deprecated
|
44
44
|
#
|
45
|
-
# @return [ModernTreasury::LedgerEventHandler::LedgerTransactionTemplate]
|
45
|
+
# @return [ModernTreasury::Models::LedgerEventHandler::LedgerTransactionTemplate]
|
46
46
|
required :ledger_transaction_template,
|
47
47
|
-> { ModernTreasury::LedgerEventHandler::LedgerTransactionTemplate }
|
48
48
|
|
@@ -79,18 +79,18 @@ module ModernTreasury
|
|
79
79
|
# @!attribute variables
|
80
80
|
# @deprecated
|
81
81
|
#
|
82
|
-
# @return [Hash{Symbol=>ModernTreasury::LedgerEventHandlerVariable}, nil]
|
82
|
+
# @return [Hash{Symbol=>ModernTreasury::Models::LedgerEventHandlerVariable}, nil]
|
83
83
|
required :variables,
|
84
84
|
-> { ModernTreasury::Internal::Type::HashOf[ModernTreasury::LedgerEventHandlerVariable] },
|
85
85
|
nil?: true
|
86
86
|
|
87
87
|
# @!method initialize(id:, conditions:, created_at:, description:, discarded_at:, ledger_id:, ledger_transaction_template:, live_mode:, metadata:, name:, object:, updated_at:, variables:)
|
88
88
|
# Some parameter documentations has been truncated, see
|
89
|
-
# {ModernTreasury::LedgerEventHandler} for more details.
|
89
|
+
# {ModernTreasury::Models::LedgerEventHandler} for more details.
|
90
90
|
#
|
91
91
|
# @param id [String]
|
92
92
|
#
|
93
|
-
# @param conditions [ModernTreasury::LedgerEventHandler::Conditions, nil]
|
93
|
+
# @param conditions [ModernTreasury::Models::LedgerEventHandler::Conditions, nil]
|
94
94
|
#
|
95
95
|
# @param created_at [Time]
|
96
96
|
#
|
@@ -100,7 +100,7 @@ module ModernTreasury
|
|
100
100
|
#
|
101
101
|
# @param ledger_id [String, nil] The id of the ledger that this event handler belongs to.
|
102
102
|
#
|
103
|
-
# @param ledger_transaction_template [ModernTreasury::LedgerEventHandler::LedgerTransactionTemplate]
|
103
|
+
# @param ledger_transaction_template [ModernTreasury::Models::LedgerEventHandler::LedgerTransactionTemplate]
|
104
104
|
#
|
105
105
|
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
106
106
|
#
|
@@ -112,11 +112,11 @@ module ModernTreasury
|
|
112
112
|
#
|
113
113
|
# @param updated_at [Time]
|
114
114
|
#
|
115
|
-
# @param variables [Hash{Symbol=>ModernTreasury::LedgerEventHandlerVariable}, nil]
|
115
|
+
# @param variables [Hash{Symbol=>ModernTreasury::Models::LedgerEventHandlerVariable}, nil]
|
116
116
|
|
117
117
|
# @deprecated
|
118
118
|
#
|
119
|
-
# @see ModernTreasury::LedgerEventHandler#conditions
|
119
|
+
# @see ModernTreasury::Models::LedgerEventHandler#conditions
|
120
120
|
class Conditions < ModernTreasury::Internal::Type::BaseModel
|
121
121
|
# @!attribute field
|
122
122
|
# The LHS of the conditional.
|
@@ -146,7 +146,7 @@ module ModernTreasury
|
|
146
146
|
|
147
147
|
# @deprecated
|
148
148
|
#
|
149
|
-
# @see ModernTreasury::LedgerEventHandler#ledger_transaction_template
|
149
|
+
# @see ModernTreasury::Models::LedgerEventHandler#ledger_transaction_template
|
150
150
|
class LedgerTransactionTemplate < ModernTreasury::Internal::Type::BaseModel
|
151
151
|
# @!attribute description
|
152
152
|
# An optional description for internal use.
|
@@ -164,7 +164,7 @@ module ModernTreasury
|
|
164
164
|
# @!attribute ledger_entries
|
165
165
|
# An array of ledger entry objects.
|
166
166
|
#
|
167
|
-
# @return [Array<ModernTreasury::LedgerEventHandler::LedgerTransactionTemplate::LedgerEntry>]
|
167
|
+
# @return [Array<ModernTreasury::Models::LedgerEventHandler::LedgerTransactionTemplate::LedgerEntry>]
|
168
168
|
required :ledger_entries,
|
169
169
|
-> {
|
170
170
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LedgerEventHandler::LedgerTransactionTemplate::LedgerEntry]
|
@@ -178,14 +178,14 @@ module ModernTreasury
|
|
178
178
|
|
179
179
|
# @!method initialize(description:, effective_at:, ledger_entries:, status:)
|
180
180
|
# Some parameter documentations has been truncated, see
|
181
|
-
# {ModernTreasury::LedgerEventHandler::LedgerTransactionTemplate} for more
|
181
|
+
# {ModernTreasury::Models::LedgerEventHandler::LedgerTransactionTemplate} for more
|
182
182
|
# details.
|
183
183
|
#
|
184
184
|
# @param description [String, nil] An optional description for internal use.
|
185
185
|
#
|
186
186
|
# @param effective_at [String, nil] The timestamp (ISO8601 format) at which the ledger transaction happened for repo
|
187
187
|
#
|
188
|
-
# @param ledger_entries [Array<ModernTreasury::LedgerEventHandler::LedgerTransactionTemplate::LedgerEntry>] An array of ledger entry objects.
|
188
|
+
# @param ledger_entries [Array<ModernTreasury::Models::LedgerEventHandler::LedgerTransactionTemplate::LedgerEntry>] An array of ledger entry objects.
|
189
189
|
#
|
190
190
|
# @param status [String, nil] To post a ledger transaction at creation, use `posted`.
|
191
191
|
|
@@ -10,7 +10,7 @@ module ModernTreasury
|
|
10
10
|
# @!attribute ledger_transaction_template
|
11
11
|
# @deprecated
|
12
12
|
#
|
13
|
-
# @return [ModernTreasury::LedgerEventHandlerCreateParams::LedgerTransactionTemplate]
|
13
|
+
# @return [ModernTreasury::Models::LedgerEventHandlerCreateParams::LedgerTransactionTemplate]
|
14
14
|
required :ledger_transaction_template,
|
15
15
|
-> { ModernTreasury::LedgerEventHandlerCreateParams::LedgerTransactionTemplate }
|
16
16
|
|
@@ -23,7 +23,7 @@ module ModernTreasury
|
|
23
23
|
# @!attribute conditions
|
24
24
|
# @deprecated
|
25
25
|
#
|
26
|
-
# @return [ModernTreasury::LedgerEventHandlerCreateParams::Conditions, nil]
|
26
|
+
# @return [ModernTreasury::Models::LedgerEventHandlerCreateParams::Conditions, nil]
|
27
27
|
optional :conditions, -> { ModernTreasury::LedgerEventHandlerCreateParams::Conditions }, nil?: true
|
28
28
|
|
29
29
|
# @!attribute description
|
@@ -48,7 +48,7 @@ module ModernTreasury
|
|
48
48
|
# @!attribute variables
|
49
49
|
# @deprecated
|
50
50
|
#
|
51
|
-
# @return [Hash{Symbol=>ModernTreasury::LedgerEventHandlerVariable}, nil]
|
51
|
+
# @return [Hash{Symbol=>ModernTreasury::Models::LedgerEventHandlerVariable}, nil]
|
52
52
|
optional :variables,
|
53
53
|
-> { ModernTreasury::Internal::Type::HashOf[ModernTreasury::LedgerEventHandlerVariable] },
|
54
54
|
nil?: true
|
@@ -57,11 +57,11 @@ module ModernTreasury
|
|
57
57
|
# Some parameter documentations has been truncated, see
|
58
58
|
# {ModernTreasury::Models::LedgerEventHandlerCreateParams} for more details.
|
59
59
|
#
|
60
|
-
# @param ledger_transaction_template [ModernTreasury::LedgerEventHandlerCreateParams::LedgerTransactionTemplate]
|
60
|
+
# @param ledger_transaction_template [ModernTreasury::Models::LedgerEventHandlerCreateParams::LedgerTransactionTemplate]
|
61
61
|
#
|
62
62
|
# @param name [String] Name of the ledger event handler.
|
63
63
|
#
|
64
|
-
# @param conditions [ModernTreasury::LedgerEventHandlerCreateParams::Conditions, nil]
|
64
|
+
# @param conditions [ModernTreasury::Models::LedgerEventHandlerCreateParams::Conditions, nil]
|
65
65
|
#
|
66
66
|
# @param description [String, nil] An optional description.
|
67
67
|
#
|
@@ -69,7 +69,7 @@ module ModernTreasury
|
|
69
69
|
#
|
70
70
|
# @param metadata [Hash{Symbol=>String}, nil] Additional data represented as key-value pairs. Both the key and value must be s
|
71
71
|
#
|
72
|
-
# @param variables [Hash{Symbol=>ModernTreasury::LedgerEventHandlerVariable}, nil]
|
72
|
+
# @param variables [Hash{Symbol=>ModernTreasury::Models::LedgerEventHandlerVariable}, nil]
|
73
73
|
#
|
74
74
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
75
75
|
|
@@ -91,7 +91,7 @@ module ModernTreasury
|
|
91
91
|
# @!attribute ledger_entries
|
92
92
|
# An array of ledger entry objects.
|
93
93
|
#
|
94
|
-
# @return [Array<ModernTreasury::LedgerEventHandlerCreateParams::LedgerTransactionTemplate::LedgerEntry>]
|
94
|
+
# @return [Array<ModernTreasury::Models::LedgerEventHandlerCreateParams::LedgerTransactionTemplate::LedgerEntry>]
|
95
95
|
required :ledger_entries,
|
96
96
|
-> {
|
97
97
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LedgerEventHandlerCreateParams::LedgerTransactionTemplate::LedgerEntry]
|
@@ -105,14 +105,14 @@ module ModernTreasury
|
|
105
105
|
|
106
106
|
# @!method initialize(description:, effective_at:, ledger_entries:, status:)
|
107
107
|
# Some parameter documentations has been truncated, see
|
108
|
-
# {ModernTreasury::LedgerEventHandlerCreateParams::LedgerTransactionTemplate}
|
109
|
-
# more details.
|
108
|
+
# {ModernTreasury::Models::LedgerEventHandlerCreateParams::LedgerTransactionTemplate}
|
109
|
+
# for more details.
|
110
110
|
#
|
111
111
|
# @param description [String, nil] An optional description for internal use.
|
112
112
|
#
|
113
113
|
# @param effective_at [String, nil] The timestamp (ISO8601 format) at which the ledger transaction happened for repo
|
114
114
|
#
|
115
|
-
# @param ledger_entries [Array<ModernTreasury::LedgerEventHandlerCreateParams::LedgerTransactionTemplate::LedgerEntry>] An array of ledger entry objects.
|
115
|
+
# @param ledger_entries [Array<ModernTreasury::Models::LedgerEventHandlerCreateParams::LedgerTransactionTemplate::LedgerEntry>] An array of ledger entry objects.
|
116
116
|
#
|
117
117
|
# @param status [String, nil] To post a ledger transaction at creation, use `posted`.
|
118
118
|
|
@@ -7,7 +7,7 @@ module ModernTreasury
|
|
7
7
|
# @!attribute query
|
8
8
|
# @deprecated
|
9
9
|
#
|
10
|
-
# @return [ModernTreasury::LedgerEventHandlerVariable::Query]
|
10
|
+
# @return [ModernTreasury::Models::LedgerEventHandlerVariable::Query]
|
11
11
|
required :query, -> { ModernTreasury::LedgerEventHandlerVariable::Query }
|
12
12
|
|
13
13
|
# @!attribute type
|
@@ -19,15 +19,15 @@ module ModernTreasury
|
|
19
19
|
|
20
20
|
# @!method initialize(query:, type:)
|
21
21
|
# Some parameter documentations has been truncated, see
|
22
|
-
# {ModernTreasury::LedgerEventHandlerVariable} for more details.
|
22
|
+
# {ModernTreasury::Models::LedgerEventHandlerVariable} for more details.
|
23
23
|
#
|
24
|
-
# @param query [ModernTreasury::LedgerEventHandlerVariable::Query]
|
24
|
+
# @param query [ModernTreasury::Models::LedgerEventHandlerVariable::Query]
|
25
25
|
#
|
26
26
|
# @param type [String] The type of object this variable is. Currently, only "ledger_account" is support
|
27
27
|
|
28
28
|
# @deprecated
|
29
29
|
#
|
30
|
-
# @see ModernTreasury::LedgerEventHandlerVariable#query
|
30
|
+
# @see ModernTreasury::Models::LedgerEventHandlerVariable#query
|
31
31
|
class Query < ModernTreasury::Internal::Type::BaseModel
|
32
32
|
# @!attribute field
|
33
33
|
# The LHS of the conditional.
|
@@ -44,7 +44,7 @@ module ModernTreasury
|
|
44
44
|
# @!attribute ledger_entries
|
45
45
|
# An array of ledger entry objects.
|
46
46
|
#
|
47
|
-
# @return [Array<ModernTreasury::LedgerEntry>]
|
47
|
+
# @return [Array<ModernTreasury::Models::LedgerEntry>]
|
48
48
|
required :ledger_entries, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LedgerEntry] }
|
49
49
|
|
50
50
|
# @!attribute ledger_id
|
@@ -66,7 +66,7 @@ module ModernTreasury
|
|
66
66
|
# payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
|
67
67
|
# reversal.
|
68
68
|
#
|
69
|
-
# @return [Symbol, ModernTreasury::LedgerTransaction::LedgerableType, nil]
|
69
|
+
# @return [Symbol, ModernTreasury::Models::LedgerTransaction::LedgerableType, nil]
|
70
70
|
required :ledgerable_type, enum: -> { ModernTreasury::LedgerTransaction::LedgerableType }, nil?: true
|
71
71
|
|
72
72
|
# @!attribute live_mode
|
@@ -116,7 +116,7 @@ module ModernTreasury
|
|
116
116
|
# @!attribute status
|
117
117
|
# To post a ledger transaction at creation, use `posted`.
|
118
118
|
#
|
119
|
-
# @return [Symbol, ModernTreasury::LedgerTransaction::Status]
|
119
|
+
# @return [Symbol, ModernTreasury::Models::LedgerTransaction::Status]
|
120
120
|
required :status, enum: -> { ModernTreasury::LedgerTransaction::Status }
|
121
121
|
|
122
122
|
# @!attribute updated_at
|
@@ -126,7 +126,7 @@ module ModernTreasury
|
|
126
126
|
|
127
127
|
# @!method initialize(id:, created_at:, description:, effective_at:, effective_date:, external_id:, ledger_entries:, ledger_id:, ledgerable_id:, ledgerable_type:, live_mode:, metadata:, object:, partially_posts_ledger_transaction_id:, posted_at:, reversed_by_ledger_transaction_id:, reverses_ledger_transaction_id:, status:, updated_at:)
|
128
128
|
# Some parameter documentations has been truncated, see
|
129
|
-
# {ModernTreasury::LedgerTransaction} for more details.
|
129
|
+
# {ModernTreasury::Models::LedgerTransaction} for more details.
|
130
130
|
#
|
131
131
|
# @param id [String]
|
132
132
|
#
|
@@ -140,13 +140,13 @@ module ModernTreasury
|
|
140
140
|
#
|
141
141
|
# @param external_id [String, nil] A unique string to represent the ledger transaction. Only one pending or posted
|
142
142
|
#
|
143
|
-
# @param ledger_entries [Array<ModernTreasury::LedgerEntry>] An array of ledger entry objects.
|
143
|
+
# @param ledger_entries [Array<ModernTreasury::Models::LedgerEntry>] An array of ledger entry objects.
|
144
144
|
#
|
145
145
|
# @param ledger_id [String] The ID of the ledger this ledger transaction belongs to.
|
146
146
|
#
|
147
147
|
# @param ledgerable_id [String, nil] If the ledger transaction can be reconciled to another object in Modern Treasury
|
148
148
|
#
|
149
|
-
# @param ledgerable_type [Symbol, ModernTreasury::LedgerTransaction::LedgerableType, nil] If the ledger transaction can be reconciled to another object in Modern Treasury
|
149
|
+
# @param ledgerable_type [Symbol, ModernTreasury::Models::LedgerTransaction::LedgerableType, nil] If the ledger transaction can be reconciled to another object in Modern Treasury
|
150
150
|
#
|
151
151
|
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
152
152
|
#
|
@@ -162,7 +162,7 @@ module ModernTreasury
|
|
162
162
|
#
|
163
163
|
# @param reverses_ledger_transaction_id [String, nil] The ID of the original ledger transaction that this ledger transaction reverses.
|
164
164
|
#
|
165
|
-
# @param status [Symbol, ModernTreasury::LedgerTransaction::Status] To post a ledger transaction at creation, use `posted`.
|
165
|
+
# @param status [Symbol, ModernTreasury::Models::LedgerTransaction::Status] To post a ledger transaction at creation, use `posted`.
|
166
166
|
#
|
167
167
|
# @param updated_at [Time]
|
168
168
|
|
@@ -171,7 +171,7 @@ module ModernTreasury
|
|
171
171
|
# payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
|
172
172
|
# reversal.
|
173
173
|
#
|
174
|
-
# @see ModernTreasury::LedgerTransaction#ledgerable_type
|
174
|
+
# @see ModernTreasury::Models::LedgerTransaction#ledgerable_type
|
175
175
|
module LedgerableType
|
176
176
|
extend ModernTreasury::Internal::Type::Enum
|
177
177
|
|
@@ -188,7 +188,7 @@ module ModernTreasury
|
|
188
188
|
|
189
189
|
# To post a ledger transaction at creation, use `posted`.
|
190
190
|
#
|
191
|
-
# @see ModernTreasury::LedgerTransaction#status
|
191
|
+
# @see ModernTreasury::Models::LedgerTransaction#status
|
192
192
|
module Status
|
193
193
|
extend ModernTreasury::Internal::Type::Enum
|
194
194
|
|
@@ -10,7 +10,7 @@ module ModernTreasury
|
|
10
10
|
# @!attribute ledger_entries
|
11
11
|
# An array of ledger entry objects.
|
12
12
|
#
|
13
|
-
# @return [Array<ModernTreasury::LedgerTransactionCreateParams::LedgerEntry>]
|
13
|
+
# @return [Array<ModernTreasury::Models::LedgerTransactionCreateParams::LedgerEntry>]
|
14
14
|
required :ledger_entries,
|
15
15
|
-> {
|
16
16
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LedgerTransactionCreateParams::LedgerEntry]
|
@@ -56,7 +56,7 @@ module ModernTreasury
|
|
56
56
|
# payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
|
57
57
|
# reversal.
|
58
58
|
#
|
59
|
-
# @return [Symbol, ModernTreasury::LedgerTransactionCreateParams::LedgerableType, nil]
|
59
|
+
# @return [Symbol, ModernTreasury::Models::LedgerTransactionCreateParams::LedgerableType, nil]
|
60
60
|
optional :ledgerable_type, enum: -> { ModernTreasury::LedgerTransactionCreateParams::LedgerableType }
|
61
61
|
|
62
62
|
# @!attribute metadata
|
@@ -69,14 +69,14 @@ module ModernTreasury
|
|
69
69
|
# @!attribute status
|
70
70
|
# To post a ledger transaction at creation, use `posted`.
|
71
71
|
#
|
72
|
-
# @return [Symbol, ModernTreasury::LedgerTransactionCreateParams::Status, nil]
|
72
|
+
# @return [Symbol, ModernTreasury::Models::LedgerTransactionCreateParams::Status, nil]
|
73
73
|
optional :status, enum: -> { ModernTreasury::LedgerTransactionCreateParams::Status }
|
74
74
|
|
75
75
|
# @!method initialize(ledger_entries:, description: nil, effective_at: nil, effective_date: nil, external_id: nil, ledgerable_id: nil, ledgerable_type: nil, metadata: nil, status: nil, request_options: {})
|
76
76
|
# Some parameter documentations has been truncated, see
|
77
77
|
# {ModernTreasury::Models::LedgerTransactionCreateParams} for more details.
|
78
78
|
#
|
79
|
-
# @param ledger_entries [Array<ModernTreasury::LedgerTransactionCreateParams::LedgerEntry>] An array of ledger entry objects.
|
79
|
+
# @param ledger_entries [Array<ModernTreasury::Models::LedgerTransactionCreateParams::LedgerEntry>] An array of ledger entry objects.
|
80
80
|
#
|
81
81
|
# @param description [String, nil] An optional description for internal use.
|
82
82
|
#
|
@@ -88,11 +88,11 @@ module ModernTreasury
|
|
88
88
|
#
|
89
89
|
# @param ledgerable_id [String] If the ledger transaction can be reconciled to another object in Modern Treasury
|
90
90
|
#
|
91
|
-
# @param ledgerable_type [Symbol, ModernTreasury::LedgerTransactionCreateParams::LedgerableType] If the ledger transaction can be reconciled to another object in Modern Treasury
|
91
|
+
# @param ledgerable_type [Symbol, ModernTreasury::Models::LedgerTransactionCreateParams::LedgerableType] If the ledger transaction can be reconciled to another object in Modern Treasury
|
92
92
|
#
|
93
93
|
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
94
94
|
#
|
95
|
-
# @param status [Symbol, ModernTreasury::LedgerTransactionCreateParams::Status] To post a ledger transaction at creation, use `posted`.
|
95
|
+
# @param status [Symbol, ModernTreasury::Models::LedgerTransactionCreateParams::Status] To post a ledger transaction at creation, use `posted`.
|
96
96
|
#
|
97
97
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
98
98
|
|
@@ -110,7 +110,7 @@ module ModernTreasury
|
|
110
110
|
# `debit` pulls money from someone else's account to your own. Note that wire,
|
111
111
|
# rtp, and check payments will always be `credit`.
|
112
112
|
#
|
113
|
-
# @return [Symbol, ModernTreasury::TransactionDirection]
|
113
|
+
# @return [Symbol, ModernTreasury::Models::TransactionDirection]
|
114
114
|
required :direction, enum: -> { ModernTreasury::TransactionDirection }
|
115
115
|
|
116
116
|
# @!attribute ledger_account_id
|
@@ -168,11 +168,12 @@ module ModernTreasury
|
|
168
168
|
|
169
169
|
# @!method initialize(amount:, direction:, ledger_account_id:, available_balance_amount: nil, lock_version: nil, metadata: nil, pending_balance_amount: nil, posted_balance_amount: nil, show_resulting_ledger_account_balances: nil)
|
170
170
|
# Some parameter documentations has been truncated, see
|
171
|
-
# {ModernTreasury::LedgerTransactionCreateParams::LedgerEntry} for more
|
171
|
+
# {ModernTreasury::Models::LedgerTransactionCreateParams::LedgerEntry} for more
|
172
|
+
# details.
|
172
173
|
#
|
173
174
|
# @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
|
174
175
|
#
|
175
|
-
# @param direction [Symbol, ModernTreasury::TransactionDirection] One of `credit`, `debit`. Describes the direction money is flowing in the transa
|
176
|
+
# @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of `credit`, `debit`. Describes the direction money is flowing in the transa
|
176
177
|
#
|
177
178
|
# @param ledger_account_id [String] The ledger account that this ledger entry is associated with.
|
178
179
|
#
|
@@ -12,7 +12,7 @@ module ModernTreasury
|
|
12
12
|
# There must be one entry for each of the existing entries with a lesser amount
|
13
13
|
# than the existing entry.
|
14
14
|
#
|
15
|
-
# @return [Array<ModernTreasury::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry>]
|
15
|
+
# @return [Array<ModernTreasury::Models::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry>]
|
16
16
|
required :posted_ledger_entries,
|
17
17
|
-> {
|
18
18
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry]
|
@@ -44,7 +44,7 @@ module ModernTreasury
|
|
44
44
|
# {ModernTreasury::Models::LedgerTransactionCreatePartialPostParams} for more
|
45
45
|
# details.
|
46
46
|
#
|
47
|
-
# @param posted_ledger_entries [Array<ModernTreasury::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry>] An array of ledger entry objects to be set on the posted ledger transaction. The
|
47
|
+
# @param posted_ledger_entries [Array<ModernTreasury::Models::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry>] An array of ledger entry objects to be set on the posted ledger transaction. The
|
48
48
|
#
|
49
49
|
# @param description [String] An optional free-form description for the posted ledger transaction. Maximum of
|
50
50
|
#
|
@@ -68,7 +68,7 @@ module ModernTreasury
|
|
68
68
|
# `debit` pulls money from someone else's account to your own. Note that wire,
|
69
69
|
# rtp, and check payments will always be `credit`.
|
70
70
|
#
|
71
|
-
# @return [Symbol, ModernTreasury::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry::Direction]
|
71
|
+
# @return [Symbol, ModernTreasury::Models::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry::Direction]
|
72
72
|
required :direction,
|
73
73
|
enum: -> {
|
74
74
|
ModernTreasury::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry::Direction
|
@@ -89,12 +89,12 @@ module ModernTreasury
|
|
89
89
|
|
90
90
|
# @!method initialize(amount:, direction:, ledger_account_id:, metadata: nil)
|
91
91
|
# Some parameter documentations has been truncated, see
|
92
|
-
# {ModernTreasury::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry}
|
92
|
+
# {ModernTreasury::Models::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry}
|
93
93
|
# for more details.
|
94
94
|
#
|
95
95
|
# @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
|
96
96
|
#
|
97
|
-
# @param direction [Symbol, ModernTreasury::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry::Direction] One of `credit`, `debit`. Describes the direction money is flowing in the transa
|
97
|
+
# @param direction [Symbol, ModernTreasury::Models::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry::Direction] One of `credit`, `debit`. Describes the direction money is flowing in the transa
|
98
98
|
#
|
99
99
|
# @param ledger_account_id [String] The ledger account that this ledger entry is associated with.
|
100
100
|
#
|
@@ -105,7 +105,7 @@ module ModernTreasury
|
|
105
105
|
# `debit` pulls money from someone else's account to your own. Note that wire,
|
106
106
|
# rtp, and check payments will always be `credit`.
|
107
107
|
#
|
108
|
-
# @see ModernTreasury::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry#direction
|
108
|
+
# @see ModernTreasury::Models::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry#direction
|
109
109
|
module Direction
|
110
110
|
extend ModernTreasury::Internal::Type::Enum
|
111
111
|
|