modern_treasury 0.1.0.pre.alpha.19 → 0.1.0.pre.alpha.20
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 +31 -0
- data/README.md +108 -59
- 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 +12 -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 +12 -0
- data/lib/modern_treasury/internal/type/unknown.rb +8 -0
- data/lib/modern_treasury/internal/util.rb +50 -1
- 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 +9 -0
- 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 +34 -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
@@ -44,7 +44,7 @@ module ModernTreasury
|
|
44
44
|
# @!attribute currency
|
45
45
|
# Currency that this transaction is denominated in.
|
46
46
|
#
|
47
|
-
# @return [Symbol, ModernTreasury::Currency]
|
47
|
+
# @return [Symbol, ModernTreasury::Models::Currency]
|
48
48
|
required :currency, enum: -> { ModernTreasury::Currency }
|
49
49
|
|
50
50
|
# @!attribute custom_identifiers
|
@@ -68,7 +68,7 @@ module ModernTreasury
|
|
68
68
|
# @!attribute foreign_exchange_rate
|
69
69
|
# Associated serialized foreign exchange rate information.
|
70
70
|
#
|
71
|
-
# @return [ModernTreasury::Transaction::ForeignExchangeRate, nil]
|
71
|
+
# @return [ModernTreasury::Models::Transaction::ForeignExchangeRate, nil]
|
72
72
|
required :foreign_exchange_rate, -> { ModernTreasury::Transaction::ForeignExchangeRate }, nil?: true
|
73
73
|
|
74
74
|
# @!attribute internal_account_id
|
@@ -114,7 +114,7 @@ module ModernTreasury
|
|
114
114
|
# The type of the transaction. Examples could be
|
115
115
|
# `card, `ach`, `wire`, `check`, `rtp`, `book`, or `sen`.
|
116
116
|
#
|
117
|
-
# @return [Symbol, ModernTreasury::Transaction::Type]
|
117
|
+
# @return [Symbol, ModernTreasury::Models::Transaction::Type]
|
118
118
|
required :type, enum: -> { ModernTreasury::Transaction::Type }
|
119
119
|
|
120
120
|
# @!attribute updated_at
|
@@ -135,7 +135,7 @@ module ModernTreasury
|
|
135
135
|
# `evolve`, `goldman_sachs`, `iso20022`, `jpmc`, `mx`, `signet`, `silvergate`,
|
136
136
|
# `swift`, `us_bank`, or others.
|
137
137
|
#
|
138
|
-
# @return [Symbol, ModernTreasury::Transaction::VendorCodeType, nil]
|
138
|
+
# @return [Symbol, ModernTreasury::Models::Transaction::VendorCodeType, nil]
|
139
139
|
required :vendor_code_type, enum: -> { ModernTreasury::Transaction::VendorCodeType }, nil?: true
|
140
140
|
|
141
141
|
# @!attribute vendor_customer_id
|
@@ -171,7 +171,7 @@ module ModernTreasury
|
|
171
171
|
|
172
172
|
# @!method initialize(id:, amount:, as_of_date:, as_of_time:, as_of_timezone:, created_at:, currency:, custom_identifiers:, direction:, discarded_at:, foreign_exchange_rate:, internal_account_id:, live_mode:, metadata:, object:, posted:, reconciled:, type:, updated_at:, vendor_code:, vendor_code_type:, vendor_customer_id:, vendor_id:, details: nil, vendor_description: nil)
|
173
173
|
# Some parameter documentations has been truncated, see
|
174
|
-
# {ModernTreasury::Transaction} for more details.
|
174
|
+
# {ModernTreasury::Models::Transaction} for more details.
|
175
175
|
#
|
176
176
|
# @param id [String]
|
177
177
|
#
|
@@ -185,7 +185,7 @@ module ModernTreasury
|
|
185
185
|
#
|
186
186
|
# @param created_at [Time]
|
187
187
|
#
|
188
|
-
# @param currency [Symbol, ModernTreasury::Currency] Currency that this transaction is denominated in.
|
188
|
+
# @param currency [Symbol, ModernTreasury::Models::Currency] Currency that this transaction is denominated in.
|
189
189
|
#
|
190
190
|
# @param custom_identifiers [Hash{Symbol=>String}] An object containing key-value pairs, each with a custom identifier as the key a
|
191
191
|
#
|
@@ -193,7 +193,7 @@ module ModernTreasury
|
|
193
193
|
#
|
194
194
|
# @param discarded_at [Time, nil]
|
195
195
|
#
|
196
|
-
# @param foreign_exchange_rate [ModernTreasury::Transaction::ForeignExchangeRate, nil] Associated serialized foreign exchange rate information.
|
196
|
+
# @param foreign_exchange_rate [ModernTreasury::Models::Transaction::ForeignExchangeRate, nil] Associated serialized foreign exchange rate information.
|
197
197
|
#
|
198
198
|
# @param internal_account_id [String] The ID of the relevant Internal Account.
|
199
199
|
#
|
@@ -207,13 +207,13 @@ module ModernTreasury
|
|
207
207
|
#
|
208
208
|
# @param reconciled [Boolean] This field will be `true` if a transaction is reconciled by the Modern Treasury
|
209
209
|
#
|
210
|
-
# @param type [Symbol, ModernTreasury::Transaction::Type] The type of the transaction. Examples could be `card, `ach`, `wire`, `check`, `r
|
210
|
+
# @param type [Symbol, ModernTreasury::Models::Transaction::Type] The type of the transaction. Examples could be `card, `ach`, `wire`, `check`, `r
|
211
211
|
#
|
212
212
|
# @param updated_at [Time]
|
213
213
|
#
|
214
214
|
# @param vendor_code [String, nil] When applicable, the bank-given code that determines the transaction's category.
|
215
215
|
#
|
216
|
-
# @param vendor_code_type [Symbol, ModernTreasury::Transaction::VendorCodeType, nil] The type of `vendor_code` being reported. Can be one of `bai2`, `bankprov`, `bnk
|
216
|
+
# @param vendor_code_type [Symbol, ModernTreasury::Models::Transaction::VendorCodeType, nil] The type of `vendor_code` being reported. Can be one of `bai2`, `bankprov`, `bnk
|
217
217
|
#
|
218
218
|
# @param vendor_customer_id [String, nil] An identifier given to this transaction by the bank, often `null`.
|
219
219
|
#
|
@@ -223,7 +223,7 @@ module ModernTreasury
|
|
223
223
|
#
|
224
224
|
# @param vendor_description [String, nil] The transaction detail text that often appears in on your bank statement and in
|
225
225
|
|
226
|
-
# @see ModernTreasury::Transaction#foreign_exchange_rate
|
226
|
+
# @see ModernTreasury::Models::Transaction#foreign_exchange_rate
|
227
227
|
class ForeignExchangeRate < ModernTreasury::Internal::Type::BaseModel
|
228
228
|
# @!attribute base_amount
|
229
229
|
# Amount in the lowest denomination of the `base_currency` to convert, often
|
@@ -235,7 +235,7 @@ module ModernTreasury
|
|
235
235
|
# @!attribute base_currency
|
236
236
|
# Currency to convert, often called the "sell" currency.
|
237
237
|
#
|
238
|
-
# @return [Symbol, ModernTreasury::Currency]
|
238
|
+
# @return [Symbol, ModernTreasury::Models::Currency]
|
239
239
|
required :base_currency, enum: -> { ModernTreasury::Currency }
|
240
240
|
|
241
241
|
# @!attribute exponent
|
@@ -261,7 +261,7 @@ module ModernTreasury
|
|
261
261
|
# @!attribute target_currency
|
262
262
|
# Currency to convert the `base_currency` to, often called the "buy" currency.
|
263
263
|
#
|
264
|
-
# @return [Symbol, ModernTreasury::Currency]
|
264
|
+
# @return [Symbol, ModernTreasury::Models::Currency]
|
265
265
|
required :target_currency, enum: -> { ModernTreasury::Currency }
|
266
266
|
|
267
267
|
# @!attribute value
|
@@ -273,13 +273,13 @@ module ModernTreasury
|
|
273
273
|
|
274
274
|
# @!method initialize(base_amount:, base_currency:, exponent:, rate_string:, target_amount:, target_currency:, value:)
|
275
275
|
# Some parameter documentations has been truncated, see
|
276
|
-
# {ModernTreasury::Transaction::ForeignExchangeRate} for more details.
|
276
|
+
# {ModernTreasury::Models::Transaction::ForeignExchangeRate} for more details.
|
277
277
|
#
|
278
278
|
# Associated serialized foreign exchange rate information.
|
279
279
|
#
|
280
280
|
# @param base_amount [Integer] Amount in the lowest denomination of the `base_currency` to convert, often calle
|
281
281
|
#
|
282
|
-
# @param base_currency [Symbol, ModernTreasury::Currency] Currency to convert, often called the "sell" currency.
|
282
|
+
# @param base_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert, often called the "sell" currency.
|
283
283
|
#
|
284
284
|
# @param exponent [Integer] The exponent component of the rate. The decimal is calculated as `value` / (10 ^
|
285
285
|
#
|
@@ -287,7 +287,7 @@ module ModernTreasury
|
|
287
287
|
#
|
288
288
|
# @param target_amount [Integer] Amount in the lowest denomination of the `target_currency`, often called the "bu
|
289
289
|
#
|
290
|
-
# @param target_currency [Symbol, ModernTreasury::Currency] Currency to convert the `base_currency` to, often called the "buy" currency.
|
290
|
+
# @param target_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert the `base_currency` to, often called the "buy" currency.
|
291
291
|
#
|
292
292
|
# @param value [Integer] The whole number component of the rate. The decimal is calculated as `value` / (
|
293
293
|
end
|
@@ -295,13 +295,14 @@ module ModernTreasury
|
|
295
295
|
# The type of the transaction. Examples could be
|
296
296
|
# `card, `ach`, `wire`, `check`, `rtp`, `book`, or `sen`.
|
297
297
|
#
|
298
|
-
# @see ModernTreasury::Transaction#type
|
298
|
+
# @see ModernTreasury::Models::Transaction#type
|
299
299
|
module Type
|
300
300
|
extend ModernTreasury::Internal::Type::Enum
|
301
301
|
|
302
302
|
ACH = :ach
|
303
303
|
AU_BECS = :au_becs
|
304
304
|
BACS = :bacs
|
305
|
+
BASE = :base
|
305
306
|
BOOK = :book
|
306
307
|
CARD = :card
|
307
308
|
CHATS = :chats
|
@@ -309,6 +310,7 @@ module ModernTreasury
|
|
309
310
|
CROSS_BORDER = :cross_border
|
310
311
|
DK_NETS = :dk_nets
|
311
312
|
EFT = :eft
|
313
|
+
ETHEREUM = :ethereum
|
312
314
|
HU_ICS = :hu_ics
|
313
315
|
INTERAC = :interac
|
314
316
|
MASAV = :masav
|
@@ -317,6 +319,7 @@ module ModernTreasury
|
|
317
319
|
NICS = :nics
|
318
320
|
NZ_BECS = :nz_becs
|
319
321
|
PL_ELIXIR = :pl_elixir
|
322
|
+
POLYGON = :polygon
|
320
323
|
PROVXCHANGE = :provxchange
|
321
324
|
RO_SENT = :ro_sent
|
322
325
|
RTP = :rtp
|
@@ -327,6 +330,7 @@ module ModernTreasury
|
|
327
330
|
SIC = :sic
|
328
331
|
SIGNET = :signet
|
329
332
|
SKNBI = :sknbi
|
333
|
+
SOLANA = :solana
|
330
334
|
WIRE = :wire
|
331
335
|
ZENGIN = :zengin
|
332
336
|
OTHER = :other
|
@@ -340,7 +344,7 @@ module ModernTreasury
|
|
340
344
|
# `evolve`, `goldman_sachs`, `iso20022`, `jpmc`, `mx`, `signet`, `silvergate`,
|
341
345
|
# `swift`, `us_bank`, or others.
|
342
346
|
#
|
343
|
-
# @see ModernTreasury::Transaction#vendor_code_type
|
347
|
+
# @see ModernTreasury::Models::Transaction#vendor_code_type
|
344
348
|
module VendorCodeType
|
345
349
|
extend ModernTreasury::Internal::Type::Enum
|
346
350
|
|
@@ -348,6 +352,8 @@ module ModernTreasury
|
|
348
352
|
BANKING_CIRCLE = :banking_circle
|
349
353
|
BANKPROV = :bankprov
|
350
354
|
BNK_DEV = :bnk_dev
|
355
|
+
BRALE = :brale
|
356
|
+
BRIDGE = :bridge
|
351
357
|
CLEARTOUCH = :cleartouch
|
352
358
|
COLUMN = :column
|
353
359
|
CROSS_RIVER = :cross_river
|
@@ -65,7 +65,7 @@ module ModernTreasury
|
|
65
65
|
# The type of the transaction. Examples could be
|
66
66
|
# `card, `ach`, `wire`, `check`, `rtp`, `book`, or `sen`.
|
67
67
|
#
|
68
|
-
# @return [Symbol, ModernTreasury::TransactionCreateParams::Type, nil]
|
68
|
+
# @return [Symbol, ModernTreasury::Models::TransactionCreateParams::Type, nil]
|
69
69
|
optional :type, enum: -> { ModernTreasury::TransactionCreateParams::Type }, nil?: true
|
70
70
|
|
71
71
|
# @!attribute vendor_description
|
@@ -95,7 +95,7 @@ module ModernTreasury
|
|
95
95
|
#
|
96
96
|
# @param posted [Boolean] This field will be `true` if the transaction has posted to the account.
|
97
97
|
#
|
98
|
-
# @param type [Symbol, ModernTreasury::TransactionCreateParams::Type, nil] The type of the transaction. Examples could be `card, `ach`, `wire`, `check`, `r
|
98
|
+
# @param type [Symbol, ModernTreasury::Models::TransactionCreateParams::Type, nil] The type of the transaction. Examples could be `card, `ach`, `wire`, `check`, `r
|
99
99
|
#
|
100
100
|
# @param vendor_description [String, nil] The transaction detail text that often appears in on your bank statement and in
|
101
101
|
#
|
@@ -109,6 +109,7 @@ module ModernTreasury
|
|
109
109
|
ACH = :ach
|
110
110
|
AU_BECS = :au_becs
|
111
111
|
BACS = :bacs
|
112
|
+
BASE = :base
|
112
113
|
BOOK = :book
|
113
114
|
CARD = :card
|
114
115
|
CHATS = :chats
|
@@ -116,6 +117,7 @@ module ModernTreasury
|
|
116
117
|
CROSS_BORDER = :cross_border
|
117
118
|
DK_NETS = :dk_nets
|
118
119
|
EFT = :eft
|
120
|
+
ETHEREUM = :ethereum
|
119
121
|
HU_ICS = :hu_ics
|
120
122
|
INTERAC = :interac
|
121
123
|
MASAV = :masav
|
@@ -124,6 +126,7 @@ module ModernTreasury
|
|
124
126
|
NICS = :nics
|
125
127
|
NZ_BECS = :nz_becs
|
126
128
|
PL_ELIXIR = :pl_elixir
|
129
|
+
POLYGON = :polygon
|
127
130
|
PROVXCHANGE = :provxchange
|
128
131
|
RO_SENT = :ro_sent
|
129
132
|
RTP = :rtp
|
@@ -134,6 +137,7 @@ module ModernTreasury
|
|
134
137
|
SIC = :sic
|
135
138
|
SIGNET = :signet
|
136
139
|
SKNBI = :sknbi
|
140
|
+
SOLANA = :solana
|
137
141
|
WIRE = :wire
|
138
142
|
ZENGIN = :zengin
|
139
143
|
OTHER = :other
|
@@ -30,7 +30,7 @@ module ModernTreasury
|
|
30
30
|
|
31
31
|
# @!attribute type
|
32
32
|
#
|
33
|
-
# @return [Symbol, ModernTreasury::Transactions::LineItemListParams::Type, nil]
|
33
|
+
# @return [Symbol, ModernTreasury::Models::Transactions::LineItemListParams::Type, nil]
|
34
34
|
optional :type, enum: -> { ModernTreasury::Transactions::LineItemListParams::Type }, nil?: true
|
35
35
|
|
36
36
|
# @!method initialize(id: nil, after_cursor: nil, per_page: nil, transaction_id: nil, type: nil, request_options: {})
|
@@ -38,7 +38,7 @@ module ModernTreasury
|
|
38
38
|
# @param after_cursor [String, nil]
|
39
39
|
# @param per_page [Integer]
|
40
40
|
# @param transaction_id [String]
|
41
|
-
# @param type [Symbol, ModernTreasury::Transactions::LineItemListParams::Type, nil]
|
41
|
+
# @param type [Symbol, ModernTreasury::Models::Transactions::LineItemListParams::Type, nil]
|
42
42
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
43
43
|
|
44
44
|
module Type
|
@@ -79,7 +79,7 @@ module ModernTreasury
|
|
79
79
|
# If a matching object exists in Modern Treasury, the type will be populated here,
|
80
80
|
# otherwise `null`.
|
81
81
|
#
|
82
|
-
# @return [Symbol, ModernTreasury::Transactions::TransactionLineItem::TransactableType, nil]
|
82
|
+
# @return [Symbol, ModernTreasury::Models::Transactions::TransactionLineItem::TransactableType, nil]
|
83
83
|
required :transactable_type,
|
84
84
|
enum: -> { ModernTreasury::Transactions::TransactionLineItem::TransactableType },
|
85
85
|
nil?: true
|
@@ -94,7 +94,7 @@ module ModernTreasury
|
|
94
94
|
# Indicates whether the line item is `originating` or `receiving` (see
|
95
95
|
# https://www.moderntreasury.com/journal/beginners-guide-to-ach for more).
|
96
96
|
#
|
97
|
-
# @return [Symbol, ModernTreasury::Transactions::TransactionLineItem::Type]
|
97
|
+
# @return [Symbol, ModernTreasury::Models::Transactions::TransactionLineItem::Type]
|
98
98
|
required :type, enum: -> { ModernTreasury::Transactions::TransactionLineItem::Type }
|
99
99
|
|
100
100
|
# @!attribute updated_at
|
@@ -104,7 +104,7 @@ module ModernTreasury
|
|
104
104
|
|
105
105
|
# @!method initialize(id:, amount:, counterparty_id:, created_at:, description:, discarded_at:, expected_payment_id:, live_mode:, object:, reconcilable:, transactable_id:, transactable_type:, transaction_id:, type:, updated_at:)
|
106
106
|
# Some parameter documentations has been truncated, see
|
107
|
-
# {ModernTreasury::Transactions::TransactionLineItem} for more details.
|
107
|
+
# {ModernTreasury::Models::Transactions::TransactionLineItem} for more details.
|
108
108
|
#
|
109
109
|
# @param id [String]
|
110
110
|
#
|
@@ -128,18 +128,18 @@ module ModernTreasury
|
|
128
128
|
#
|
129
129
|
# @param transactable_id [String, nil] If a matching object exists in Modern Treasury, the ID will be populated here, o
|
130
130
|
#
|
131
|
-
# @param transactable_type [Symbol, ModernTreasury::Transactions::TransactionLineItem::TransactableType, nil] If a matching object exists in Modern Treasury, the type will be populated here,
|
131
|
+
# @param transactable_type [Symbol, ModernTreasury::Models::Transactions::TransactionLineItem::TransactableType, nil] If a matching object exists in Modern Treasury, the type will be populated here,
|
132
132
|
#
|
133
133
|
# @param transaction_id [String] The ID of the parent transaction.
|
134
134
|
#
|
135
|
-
# @param type [Symbol, ModernTreasury::Transactions::TransactionLineItem::Type] Indicates whether the line item is `originating` or `receiving` (see https://www
|
135
|
+
# @param type [Symbol, ModernTreasury::Models::Transactions::TransactionLineItem::Type] Indicates whether the line item is `originating` or `receiving` (see https://www
|
136
136
|
#
|
137
137
|
# @param updated_at [Time]
|
138
138
|
|
139
139
|
# If a matching object exists in Modern Treasury, the type will be populated here,
|
140
140
|
# otherwise `null`.
|
141
141
|
#
|
142
|
-
# @see ModernTreasury::Transactions::TransactionLineItem#transactable_type
|
142
|
+
# @see ModernTreasury::Models::Transactions::TransactionLineItem#transactable_type
|
143
143
|
module TransactableType
|
144
144
|
extend ModernTreasury::Internal::Type::Enum
|
145
145
|
|
@@ -157,7 +157,7 @@ module ModernTreasury
|
|
157
157
|
# Indicates whether the line item is `originating` or `receiving` (see
|
158
158
|
# https://www.moderntreasury.com/journal/beginners-guide-to-ach for more).
|
159
159
|
#
|
160
|
-
# @see ModernTreasury::Transactions::TransactionLineItem#type
|
160
|
+
# @see ModernTreasury::Models::Transactions::TransactionLineItem#type
|
161
161
|
module Type
|
162
162
|
extend ModernTreasury::Internal::Type::Enum
|
163
163
|
|
@@ -19,7 +19,7 @@ module ModernTreasury
|
|
19
19
|
# more details. In sandbox mode we currently only support `aba` and `swift` with
|
20
20
|
# routing numbers '123456789' and 'GRINUST0XXX' respectively.
|
21
21
|
#
|
22
|
-
# @return [Symbol, ModernTreasury::ValidationValidateRoutingNumberParams::RoutingNumberType]
|
22
|
+
# @return [Symbol, ModernTreasury::Models::ValidationValidateRoutingNumberParams::RoutingNumberType]
|
23
23
|
required :routing_number_type,
|
24
24
|
enum: -> { ModernTreasury::ValidationValidateRoutingNumberParams::RoutingNumberType }
|
25
25
|
|
@@ -30,7 +30,7 @@ module ModernTreasury
|
|
30
30
|
#
|
31
31
|
# @param routing_number [String] The routing number that is being validated.
|
32
32
|
#
|
33
|
-
# @param routing_number_type [Symbol, ModernTreasury::ValidationValidateRoutingNumberParams::RoutingNumberType] The type of routing number. See https://docs.moderntreasury.com/platform/referen
|
33
|
+
# @param routing_number_type [Symbol, ModernTreasury::Models::ValidationValidateRoutingNumberParams::RoutingNumberType] The type of routing number. See https://docs.moderntreasury.com/platform/referen
|
34
34
|
#
|
35
35
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
36
36
|
|
@@ -12,7 +12,7 @@ module ModernTreasury
|
|
12
12
|
# @!attribute account_details
|
13
13
|
# An array of account detail objects.
|
14
14
|
#
|
15
|
-
# @return [Array<ModernTreasury::AccountDetail>]
|
15
|
+
# @return [Array<ModernTreasury::Models::AccountDetail>]
|
16
16
|
required :account_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::AccountDetail] }
|
17
17
|
|
18
18
|
# @!attribute counterparty_id
|
@@ -95,7 +95,7 @@ module ModernTreasury
|
|
95
95
|
# An array of routing detail objects. These will be the routing details of the
|
96
96
|
# internal account.
|
97
97
|
#
|
98
|
-
# @return [Array<ModernTreasury::RoutingDetail>]
|
98
|
+
# @return [Array<ModernTreasury::Models::RoutingDetail>]
|
99
99
|
required :routing_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::RoutingDetail] }
|
100
100
|
|
101
101
|
# @!attribute updated_at
|
@@ -105,11 +105,11 @@ module ModernTreasury
|
|
105
105
|
|
106
106
|
# @!method initialize(id:, account_details:, counterparty_id:, created_at:, credit_ledger_account_id:, debit_ledger_account_id:, description:, discarded_at:, internal_account_id:, ledger_account_id:, live_mode:, metadata:, name:, object:, routing_details:, updated_at:)
|
107
107
|
# Some parameter documentations has been truncated, see
|
108
|
-
# {ModernTreasury::VirtualAccount} for more details.
|
108
|
+
# {ModernTreasury::Models::VirtualAccount} for more details.
|
109
109
|
#
|
110
110
|
# @param id [String]
|
111
111
|
#
|
112
|
-
# @param account_details [Array<ModernTreasury::AccountDetail>] An array of account detail objects.
|
112
|
+
# @param account_details [Array<ModernTreasury::Models::AccountDetail>] An array of account detail objects.
|
113
113
|
#
|
114
114
|
# @param counterparty_id [String, nil] The ID of a counterparty that the virtual account belongs to. Optional.
|
115
115
|
#
|
@@ -135,7 +135,7 @@ module ModernTreasury
|
|
135
135
|
#
|
136
136
|
# @param object [String]
|
137
137
|
#
|
138
|
-
# @param routing_details [Array<ModernTreasury::RoutingDetail>] An array of routing detail objects. These will be the routing details of the int
|
138
|
+
# @param routing_details [Array<ModernTreasury::Models::RoutingDetail>] An array of routing detail objects. These will be the routing details of the int
|
139
139
|
#
|
140
140
|
# @param updated_at [Time]
|
141
141
|
end
|
@@ -22,7 +22,7 @@ module ModernTreasury
|
|
22
22
|
# @!attribute account_details
|
23
23
|
# An array of account detail objects.
|
24
24
|
#
|
25
|
-
# @return [Array<ModernTreasury::VirtualAccountCreateParams::AccountDetail>, nil]
|
25
|
+
# @return [Array<ModernTreasury::Models::VirtualAccountCreateParams::AccountDetail>, nil]
|
26
26
|
optional :account_details,
|
27
27
|
-> {
|
28
28
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::VirtualAccountCreateParams::AccountDetail]
|
@@ -61,7 +61,7 @@ module ModernTreasury
|
|
61
61
|
# The resulting ledger account is linked to the virtual account for auto-ledgering
|
62
62
|
# IPDs.
|
63
63
|
#
|
64
|
-
# @return [ModernTreasury::VirtualAccountCreateParams::LedgerAccount, nil]
|
64
|
+
# @return [ModernTreasury::Models::VirtualAccountCreateParams::LedgerAccount, nil]
|
65
65
|
optional :ledger_account, -> { ModernTreasury::VirtualAccountCreateParams::LedgerAccount }
|
66
66
|
|
67
67
|
# @!attribute metadata
|
@@ -74,7 +74,7 @@ module ModernTreasury
|
|
74
74
|
# @!attribute routing_details
|
75
75
|
# An array of routing detail objects.
|
76
76
|
#
|
77
|
-
# @return [Array<ModernTreasury::VirtualAccountCreateParams::RoutingDetail>, nil]
|
77
|
+
# @return [Array<ModernTreasury::Models::VirtualAccountCreateParams::RoutingDetail>, nil]
|
78
78
|
optional :routing_details,
|
79
79
|
-> {
|
80
80
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::VirtualAccountCreateParams::RoutingDetail]
|
@@ -88,7 +88,7 @@ module ModernTreasury
|
|
88
88
|
#
|
89
89
|
# @param name [String] The name of the virtual account.
|
90
90
|
#
|
91
|
-
# @param account_details [Array<ModernTreasury::VirtualAccountCreateParams::AccountDetail>] An array of account detail objects.
|
91
|
+
# @param account_details [Array<ModernTreasury::Models::VirtualAccountCreateParams::AccountDetail>] An array of account detail objects.
|
92
92
|
#
|
93
93
|
# @param counterparty_id [String] The ID of the counterparty that the virtual account belongs to.
|
94
94
|
#
|
@@ -98,11 +98,11 @@ module ModernTreasury
|
|
98
98
|
#
|
99
99
|
# @param description [String] An optional description for internal use.
|
100
100
|
#
|
101
|
-
# @param ledger_account [ModernTreasury::VirtualAccountCreateParams::LedgerAccount] Specifies a ledger account object that will be created with the virtual account.
|
101
|
+
# @param ledger_account [ModernTreasury::Models::VirtualAccountCreateParams::LedgerAccount] Specifies a ledger account object that will be created with the virtual account.
|
102
102
|
#
|
103
103
|
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
104
104
|
#
|
105
|
-
# @param routing_details [Array<ModernTreasury::VirtualAccountCreateParams::RoutingDetail>] An array of routing detail objects.
|
105
|
+
# @param routing_details [Array<ModernTreasury::Models::VirtualAccountCreateParams::RoutingDetail>] An array of routing detail objects.
|
106
106
|
#
|
107
107
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
108
108
|
|
@@ -117,34 +117,39 @@ module ModernTreasury
|
|
117
117
|
# One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank
|
118
118
|
# account number is in a generic format.
|
119
119
|
#
|
120
|
-
# @return [Symbol, ModernTreasury::VirtualAccountCreateParams::AccountDetail::AccountNumberType, nil]
|
120
|
+
# @return [Symbol, ModernTreasury::Models::VirtualAccountCreateParams::AccountDetail::AccountNumberType, nil]
|
121
121
|
optional :account_number_type,
|
122
122
|
enum: -> { ModernTreasury::VirtualAccountCreateParams::AccountDetail::AccountNumberType }
|
123
123
|
|
124
124
|
# @!method initialize(account_number:, account_number_type: nil)
|
125
125
|
# Some parameter documentations has been truncated, see
|
126
|
-
# {ModernTreasury::VirtualAccountCreateParams::AccountDetail} for more
|
126
|
+
# {ModernTreasury::Models::VirtualAccountCreateParams::AccountDetail} for more
|
127
|
+
# details.
|
127
128
|
#
|
128
129
|
# @param account_number [String] The account number for the bank account.
|
129
130
|
#
|
130
|
-
# @param account_number_type [Symbol, ModernTreasury::VirtualAccountCreateParams::AccountDetail::AccountNumberType] One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank ac
|
131
|
+
# @param account_number_type [Symbol, ModernTreasury::Models::VirtualAccountCreateParams::AccountDetail::AccountNumberType] One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank ac
|
131
132
|
|
132
133
|
# One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank
|
133
134
|
# account number is in a generic format.
|
134
135
|
#
|
135
|
-
# @see ModernTreasury::VirtualAccountCreateParams::AccountDetail#account_number_type
|
136
|
+
# @see ModernTreasury::Models::VirtualAccountCreateParams::AccountDetail#account_number_type
|
136
137
|
module AccountNumberType
|
137
138
|
extend ModernTreasury::Internal::Type::Enum
|
138
139
|
|
139
140
|
AU_NUMBER = :au_number
|
141
|
+
BASE_ADDRESS = :base_address
|
140
142
|
CLABE = :clabe
|
143
|
+
ETHEREUM_ADDRESS = :ethereum_address
|
141
144
|
HK_NUMBER = :hk_number
|
142
145
|
IBAN = :iban
|
143
146
|
ID_NUMBER = :id_number
|
144
147
|
NZ_NUMBER = :nz_number
|
145
148
|
OTHER = :other
|
146
149
|
PAN = :pan
|
150
|
+
POLYGON_ADDRESS = :polygon_address
|
147
151
|
SG_NUMBER = :sg_number
|
152
|
+
SOLANA_ADDRESS = :solana_address
|
148
153
|
WALLET_ADDRESS = :wallet_address
|
149
154
|
|
150
155
|
# @!method self.values
|
@@ -174,7 +179,7 @@ module ModernTreasury
|
|
174
179
|
# @!attribute normal_balance
|
175
180
|
# The normal balance of the ledger account.
|
176
181
|
#
|
177
|
-
# @return [Symbol, ModernTreasury::TransactionDirection]
|
182
|
+
# @return [Symbol, ModernTreasury::Models::TransactionDirection]
|
178
183
|
required :normal_balance, enum: -> { ModernTreasury::TransactionDirection }
|
179
184
|
|
180
185
|
# @!attribute currency_exponent
|
@@ -208,7 +213,7 @@ module ModernTreasury
|
|
208
213
|
# be populated here, otherwise null. The value is one of internal_account or
|
209
214
|
# external_account.
|
210
215
|
#
|
211
|
-
# @return [Symbol, ModernTreasury::VirtualAccountCreateParams::LedgerAccount::LedgerableType, nil]
|
216
|
+
# @return [Symbol, ModernTreasury::Models::VirtualAccountCreateParams::LedgerAccount::LedgerableType, nil]
|
212
217
|
optional :ledgerable_type,
|
213
218
|
enum: -> { ModernTreasury::VirtualAccountCreateParams::LedgerAccount::LedgerableType }
|
214
219
|
|
@@ -221,7 +226,8 @@ module ModernTreasury
|
|
221
226
|
|
222
227
|
# @!method initialize(currency:, ledger_id:, name:, normal_balance:, currency_exponent: nil, description: nil, ledger_account_category_ids: nil, ledgerable_id: nil, ledgerable_type: nil, metadata: nil)
|
223
228
|
# Some parameter documentations has been truncated, see
|
224
|
-
# {ModernTreasury::VirtualAccountCreateParams::LedgerAccount} for more
|
229
|
+
# {ModernTreasury::Models::VirtualAccountCreateParams::LedgerAccount} for more
|
230
|
+
# details.
|
225
231
|
#
|
226
232
|
# Specifies a ledger account object that will be created with the virtual account.
|
227
233
|
# The resulting ledger account is linked to the virtual account for auto-ledgering
|
@@ -233,7 +239,7 @@ module ModernTreasury
|
|
233
239
|
#
|
234
240
|
# @param name [String] The name of the ledger account.
|
235
241
|
#
|
236
|
-
# @param normal_balance [Symbol, ModernTreasury::TransactionDirection] The normal balance of the ledger account.
|
242
|
+
# @param normal_balance [Symbol, ModernTreasury::Models::TransactionDirection] The normal balance of the ledger account.
|
237
243
|
#
|
238
244
|
# @param currency_exponent [Integer, nil] The currency exponent of the ledger account.
|
239
245
|
#
|
@@ -243,7 +249,7 @@ module ModernTreasury
|
|
243
249
|
#
|
244
250
|
# @param ledgerable_id [String] If the ledger account links to another object in Modern Treasury, the id will be
|
245
251
|
#
|
246
|
-
# @param ledgerable_type [Symbol, ModernTreasury::VirtualAccountCreateParams::LedgerAccount::LedgerableType] If the ledger account links to another object in Modern Treasury, the type will
|
252
|
+
# @param ledgerable_type [Symbol, ModernTreasury::Models::VirtualAccountCreateParams::LedgerAccount::LedgerableType] If the ledger account links to another object in Modern Treasury, the type will
|
247
253
|
#
|
248
254
|
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
249
255
|
|
@@ -251,7 +257,7 @@ module ModernTreasury
|
|
251
257
|
# be populated here, otherwise null. The value is one of internal_account or
|
252
258
|
# external_account.
|
253
259
|
#
|
254
|
-
# @see ModernTreasury::VirtualAccountCreateParams::LedgerAccount#ledgerable_type
|
260
|
+
# @see ModernTreasury::Models::VirtualAccountCreateParams::LedgerAccount#ledgerable_type
|
255
261
|
module LedgerableType
|
256
262
|
extend ModernTreasury::Internal::Type::Enum
|
257
263
|
|
@@ -277,7 +283,7 @@ module ModernTreasury
|
|
277
283
|
# https://docs.moderntreasury.com/platform/reference/routing-detail-object for
|
278
284
|
# more details.
|
279
285
|
#
|
280
|
-
# @return [Symbol, ModernTreasury::VirtualAccountCreateParams::RoutingDetail::RoutingNumberType]
|
286
|
+
# @return [Symbol, ModernTreasury::Models::VirtualAccountCreateParams::RoutingDetail::RoutingNumberType]
|
281
287
|
required :routing_number_type,
|
282
288
|
enum: -> { ModernTreasury::VirtualAccountCreateParams::RoutingDetail::RoutingNumberType }
|
283
289
|
|
@@ -285,26 +291,27 @@ module ModernTreasury
|
|
285
291
|
# If the routing detail is to be used for a specific payment type this field will
|
286
292
|
# be populated, otherwise null.
|
287
293
|
#
|
288
|
-
# @return [Symbol, ModernTreasury::VirtualAccountCreateParams::RoutingDetail::PaymentType, nil]
|
294
|
+
# @return [Symbol, ModernTreasury::Models::VirtualAccountCreateParams::RoutingDetail::PaymentType, nil]
|
289
295
|
optional :payment_type,
|
290
296
|
enum: -> { ModernTreasury::VirtualAccountCreateParams::RoutingDetail::PaymentType },
|
291
297
|
nil?: true
|
292
298
|
|
293
299
|
# @!method initialize(routing_number:, routing_number_type:, payment_type: nil)
|
294
300
|
# Some parameter documentations has been truncated, see
|
295
|
-
# {ModernTreasury::VirtualAccountCreateParams::RoutingDetail} for more
|
301
|
+
# {ModernTreasury::Models::VirtualAccountCreateParams::RoutingDetail} for more
|
302
|
+
# details.
|
296
303
|
#
|
297
304
|
# @param routing_number [String] The routing number of the bank.
|
298
305
|
#
|
299
|
-
# @param routing_number_type [Symbol, ModernTreasury::VirtualAccountCreateParams::RoutingDetail::RoutingNumberType] The type of routing number. See https://docs.moderntreasury.com/platform/referen
|
306
|
+
# @param routing_number_type [Symbol, ModernTreasury::Models::VirtualAccountCreateParams::RoutingDetail::RoutingNumberType] The type of routing number. See https://docs.moderntreasury.com/platform/referen
|
300
307
|
#
|
301
|
-
# @param payment_type [Symbol, ModernTreasury::VirtualAccountCreateParams::RoutingDetail::PaymentType, nil] If the routing detail is to be used for a specific payment type this field will
|
308
|
+
# @param payment_type [Symbol, ModernTreasury::Models::VirtualAccountCreateParams::RoutingDetail::PaymentType, nil] If the routing detail is to be used for a specific payment type this field will
|
302
309
|
|
303
310
|
# The type of routing number. See
|
304
311
|
# https://docs.moderntreasury.com/platform/reference/routing-detail-object for
|
305
312
|
# more details.
|
306
313
|
#
|
307
|
-
# @see ModernTreasury::VirtualAccountCreateParams::RoutingDetail#routing_number_type
|
314
|
+
# @see ModernTreasury::Models::VirtualAccountCreateParams::RoutingDetail#routing_number_type
|
308
315
|
module RoutingNumberType
|
309
316
|
extend ModernTreasury::Internal::Type::Enum
|
310
317
|
|
@@ -337,13 +344,14 @@ module ModernTreasury
|
|
337
344
|
# If the routing detail is to be used for a specific payment type this field will
|
338
345
|
# be populated, otherwise null.
|
339
346
|
#
|
340
|
-
# @see ModernTreasury::VirtualAccountCreateParams::RoutingDetail#payment_type
|
347
|
+
# @see ModernTreasury::Models::VirtualAccountCreateParams::RoutingDetail#payment_type
|
341
348
|
module PaymentType
|
342
349
|
extend ModernTreasury::Internal::Type::Enum
|
343
350
|
|
344
351
|
ACH = :ach
|
345
352
|
AU_BECS = :au_becs
|
346
353
|
BACS = :bacs
|
354
|
+
BASE = :base
|
347
355
|
BOOK = :book
|
348
356
|
CARD = :card
|
349
357
|
CHATS = :chats
|
@@ -351,6 +359,7 @@ module ModernTreasury
|
|
351
359
|
CROSS_BORDER = :cross_border
|
352
360
|
DK_NETS = :dk_nets
|
353
361
|
EFT = :eft
|
362
|
+
ETHEREUM = :ethereum
|
354
363
|
HU_ICS = :hu_ics
|
355
364
|
INTERAC = :interac
|
356
365
|
MASAV = :masav
|
@@ -359,6 +368,7 @@ module ModernTreasury
|
|
359
368
|
NICS = :nics
|
360
369
|
NZ_BECS = :nz_becs
|
361
370
|
PL_ELIXIR = :pl_elixir
|
371
|
+
POLYGON = :polygon
|
362
372
|
PROVXCHANGE = :provxchange
|
363
373
|
RO_SENT = :ro_sent
|
364
374
|
RTP = :rtp
|
@@ -369,6 +379,7 @@ module ModernTreasury
|
|
369
379
|
SIC = :sic
|
370
380
|
SIGNET = :signet
|
371
381
|
SKNBI = :sknbi
|
382
|
+
SOLANA = :solana
|
372
383
|
WIRE = :wire
|
373
384
|
ZENGIN = :zengin
|
374
385
|
|