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
@@ -20,7 +20,7 @@ module ModernTreasury
|
|
20
20
|
# `debit` pulls money from someone else's account to your own. Note that wire,
|
21
21
|
# rtp, and check payments will always be `credit`.
|
22
22
|
#
|
23
|
-
# @return [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::Direction]
|
23
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Direction]
|
24
24
|
required :direction, enum: -> { ModernTreasury::PaymentOrderCreateAsyncParams::Direction }
|
25
25
|
|
26
26
|
# @!attribute originating_account_id
|
@@ -34,12 +34,12 @@ module ModernTreasury
|
|
34
34
|
# `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
|
35
35
|
# `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
|
36
36
|
#
|
37
|
-
# @return [Symbol, ModernTreasury::PaymentOrderType]
|
37
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderType]
|
38
38
|
required :type, enum: -> { ModernTreasury::PaymentOrderType }
|
39
39
|
|
40
40
|
# @!attribute accounting
|
41
41
|
#
|
42
|
-
# @return [ModernTreasury::PaymentOrderCreateAsyncParams::Accounting, nil]
|
42
|
+
# @return [ModernTreasury::Models::PaymentOrderCreateAsyncParams::Accounting, nil]
|
43
43
|
optional :accounting, -> { ModernTreasury::PaymentOrderCreateAsyncParams::Accounting }
|
44
44
|
|
45
45
|
# @!attribute accounting_category_id
|
@@ -65,7 +65,7 @@ module ModernTreasury
|
|
65
65
|
# payment orders. Can be one of shared, sender, or receiver, which correspond
|
66
66
|
# respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
|
67
67
|
#
|
68
|
-
# @return [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::ChargeBearer, nil]
|
68
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ChargeBearer, nil]
|
69
69
|
optional :charge_bearer,
|
70
70
|
enum: -> { ModernTreasury::PaymentOrderCreateAsyncParams::ChargeBearer },
|
71
71
|
nil?: true
|
@@ -73,7 +73,7 @@ module ModernTreasury
|
|
73
73
|
# @!attribute currency
|
74
74
|
# Defaults to the currency of the originating account.
|
75
75
|
#
|
76
|
-
# @return [Symbol, ModernTreasury::Currency, nil]
|
76
|
+
# @return [Symbol, ModernTreasury::Models::Currency, nil]
|
77
77
|
optional :currency, enum: -> { ModernTreasury::Currency }
|
78
78
|
|
79
79
|
# @!attribute description
|
@@ -101,7 +101,7 @@ module ModernTreasury
|
|
101
101
|
# receiving account. Currently, this only supports falling back from RTP to ACH
|
102
102
|
# (type=rtp and fallback_type=ach)
|
103
103
|
#
|
104
|
-
# @return [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::FallbackType, nil]
|
104
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::FallbackType, nil]
|
105
105
|
optional :fallback_type, enum: -> { ModernTreasury::PaymentOrderCreateAsyncParams::FallbackType }
|
106
106
|
|
107
107
|
# @!attribute foreign_exchange_contract
|
@@ -116,7 +116,7 @@ module ModernTreasury
|
|
116
116
|
# `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
|
117
117
|
# currency matches the originating account currency.
|
118
118
|
#
|
119
|
-
# @return [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator, nil]
|
119
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator, nil]
|
120
120
|
optional :foreign_exchange_indicator,
|
121
121
|
enum: -> { ModernTreasury::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator },
|
122
122
|
nil?: true
|
@@ -127,7 +127,7 @@ module ModernTreasury
|
|
127
127
|
# creation will fail. The resulting ledger transaction will mirror the status of
|
128
128
|
# the payment order.
|
129
129
|
#
|
130
|
-
# @return [ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction, nil]
|
130
|
+
# @return [ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction, nil]
|
131
131
|
optional :ledger_transaction, -> { ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction }
|
132
132
|
|
133
133
|
# @!attribute ledger_transaction_id
|
@@ -142,7 +142,7 @@ module ModernTreasury
|
|
142
142
|
# @!attribute line_items
|
143
143
|
# An array of line items that must sum up to the amount of the payment order.
|
144
144
|
#
|
145
|
-
# @return [Array<ModernTreasury::PaymentOrderCreateAsyncParams::LineItem>, nil]
|
145
|
+
# @return [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::LineItem>, nil]
|
146
146
|
optional :line_items,
|
147
147
|
-> {
|
148
148
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateAsyncParams::LineItem]
|
@@ -176,7 +176,7 @@ module ModernTreasury
|
|
176
176
|
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
177
177
|
# an overnight check rather than standard mail.
|
178
178
|
#
|
179
|
-
# @return [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::Priority, nil]
|
179
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Priority, nil]
|
180
180
|
optional :priority, enum: -> { ModernTreasury::PaymentOrderCreateAsyncParams::Priority }
|
181
181
|
|
182
182
|
# @!attribute process_after
|
@@ -202,7 +202,7 @@ module ModernTreasury
|
|
202
202
|
# `receiving_account_id`, you may pass the id of an external account or an
|
203
203
|
# internal account.
|
204
204
|
#
|
205
|
-
# @return [ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount, nil]
|
205
|
+
# @return [ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount, nil]
|
206
206
|
optional :receiving_account, -> { ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount }
|
207
207
|
|
208
208
|
# @!attribute receiving_account_id
|
@@ -245,7 +245,7 @@ module ModernTreasury
|
|
245
245
|
# payment orders, the `subtype` represents the SEC code. We currently support
|
246
246
|
# `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
|
247
247
|
#
|
248
|
-
# @return [Symbol, ModernTreasury::PaymentOrderSubtype, nil]
|
248
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderSubtype, nil]
|
249
249
|
optional :subtype, enum: -> { ModernTreasury::PaymentOrderSubtype }, nil?: true
|
250
250
|
|
251
251
|
# @!attribute transaction_monitoring_enabled
|
@@ -285,21 +285,21 @@ module ModernTreasury
|
|
285
285
|
#
|
286
286
|
# @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
|
287
287
|
#
|
288
|
-
# @param direction [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::Direction] One of `credit`, `debit`. Describes the direction money is flowing in the transa
|
288
|
+
# @param direction [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Direction] One of `credit`, `debit`. Describes the direction money is flowing in the transa
|
289
289
|
#
|
290
290
|
# @param originating_account_id [String] The ID of one of your organization's internal accounts.
|
291
291
|
#
|
292
|
-
# @param type [Symbol, ModernTreasury::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sep
|
292
|
+
# @param type [Symbol, ModernTreasury::Models::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sep
|
293
293
|
#
|
294
|
-
# @param accounting [ModernTreasury::PaymentOrderCreateAsyncParams::Accounting]
|
294
|
+
# @param accounting [ModernTreasury::Models::PaymentOrderCreateAsyncParams::Accounting]
|
295
295
|
#
|
296
296
|
# @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
|
297
297
|
#
|
298
298
|
# @param accounting_ledger_class_id [String, nil] The ID of one of your accounting ledger classes. Note that these will only be ac
|
299
299
|
#
|
300
|
-
# @param charge_bearer [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::ChargeBearer, nil] The party that will pay the fees for the payment order. Only applies to wire pay
|
300
|
+
# @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ChargeBearer, nil] The party that will pay the fees for the payment order. Only applies to wire pay
|
301
301
|
#
|
302
|
-
# @param currency [Symbol, ModernTreasury::Currency] Defaults to the currency of the originating account.
|
302
|
+
# @param currency [Symbol, ModernTreasury::Models::Currency] Defaults to the currency of the originating account.
|
303
303
|
#
|
304
304
|
# @param description [String, nil] An optional description for internal use.
|
305
305
|
#
|
@@ -307,17 +307,17 @@ module ModernTreasury
|
|
307
307
|
#
|
308
308
|
# @param expires_at [Time, nil] RFP payments require an expires_at. This value must be past the effective_date.
|
309
309
|
#
|
310
|
-
# @param fallback_type [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::FallbackType] A payment type to fallback to if the original type is not valid for the receivin
|
310
|
+
# @param fallback_type [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::FallbackType] A payment type to fallback to if the original type is not valid for the receivin
|
311
311
|
#
|
312
312
|
# @param foreign_exchange_contract [String, nil] If present, indicates a specific foreign exchange contract number that has been
|
313
313
|
#
|
314
|
-
# @param foreign_exchange_indicator [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator, nil] Indicates the type of FX transfer to initiate, can be either `variable_to_fixed`
|
314
|
+
# @param foreign_exchange_indicator [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator, nil] Indicates the type of FX transfer to initiate, can be either `variable_to_fixed`
|
315
315
|
#
|
316
|
-
# @param ledger_transaction [ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction] Specifies a ledger transaction object that will be created with the payment orde
|
316
|
+
# @param ledger_transaction [ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction] Specifies a ledger transaction object that will be created with the payment orde
|
317
317
|
#
|
318
318
|
# @param ledger_transaction_id [String] Either ledger_transaction or ledger_transaction_id can be provided. Only a pendi
|
319
319
|
#
|
320
|
-
# @param line_items [Array<ModernTreasury::PaymentOrderCreateAsyncParams::LineItem>] An array of line items that must sum up to the amount of the payment order.
|
320
|
+
# @param line_items [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::LineItem>] An array of line items that must sum up to the amount of the payment order.
|
321
321
|
#
|
322
322
|
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
323
323
|
#
|
@@ -325,13 +325,13 @@ module ModernTreasury
|
|
325
325
|
#
|
326
326
|
# @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
|
327
327
|
#
|
328
|
-
# @param priority [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
|
328
|
+
# @param priority [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
|
329
329
|
#
|
330
330
|
# @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
|
331
331
|
#
|
332
332
|
# @param purpose [String, nil] For `wire`, this is usually the purpose which is transmitted via the "InstrForDb
|
333
333
|
#
|
334
|
-
# @param receiving_account [ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount] Either `receiving_account` or `receiving_account_id` must be present. When using
|
334
|
+
# @param receiving_account [ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount] Either `receiving_account` or `receiving_account_id` must be present. When using
|
335
335
|
#
|
336
336
|
# @param receiving_account_id [String] Either `receiving_account` or `receiving_account_id` must be present. When using
|
337
337
|
#
|
@@ -341,7 +341,7 @@ module ModernTreasury
|
|
341
341
|
#
|
342
342
|
# @param statement_descriptor [String, nil] An optional descriptor which will appear in the receiver's statement. For `check
|
343
343
|
#
|
344
|
-
# @param subtype [Symbol, ModernTreasury::PaymentOrderSubtype, nil] An additional layer of classification for the type of payment order you are doin
|
344
|
+
# @param subtype [Symbol, ModernTreasury::Models::PaymentOrderSubtype, nil] An additional layer of classification for the type of payment order you are doin
|
345
345
|
#
|
346
346
|
# @param transaction_monitoring_enabled [Boolean] A flag that determines whether a payment order should go through transaction mon
|
347
347
|
#
|
@@ -387,7 +387,8 @@ module ModernTreasury
|
|
387
387
|
|
388
388
|
# @!method initialize(account_id: nil, class_id: nil)
|
389
389
|
# Some parameter documentations has been truncated, see
|
390
|
-
# {ModernTreasury::PaymentOrderCreateAsyncParams::Accounting} for more
|
390
|
+
# {ModernTreasury::Models::PaymentOrderCreateAsyncParams::Accounting} for more
|
391
|
+
# details.
|
391
392
|
#
|
392
393
|
# @param account_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
|
393
394
|
#
|
@@ -437,7 +438,7 @@ module ModernTreasury
|
|
437
438
|
# @!attribute ledger_entries
|
438
439
|
# An array of ledger entry objects.
|
439
440
|
#
|
440
|
-
# @return [Array<ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerEntry>]
|
441
|
+
# @return [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerEntry>]
|
441
442
|
required :ledger_entries,
|
442
443
|
-> {
|
443
444
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerEntry]
|
@@ -483,7 +484,7 @@ module ModernTreasury
|
|
483
484
|
# payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
|
484
485
|
# reversal.
|
485
486
|
#
|
486
|
-
# @return [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType, nil]
|
487
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType, nil]
|
487
488
|
optional :ledgerable_type,
|
488
489
|
enum: -> { ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType }
|
489
490
|
|
@@ -497,7 +498,7 @@ module ModernTreasury
|
|
497
498
|
# @!attribute status
|
498
499
|
# To post a ledger transaction at creation, use `posted`.
|
499
500
|
#
|
500
|
-
# @return [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::Status, nil]
|
501
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::Status, nil]
|
501
502
|
optional :status,
|
502
503
|
enum: -> {
|
503
504
|
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::Status
|
@@ -505,15 +506,15 @@ module ModernTreasury
|
|
505
506
|
|
506
507
|
# @!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)
|
507
508
|
# Some parameter documentations has been truncated, see
|
508
|
-
# {ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction} for
|
509
|
-
# details.
|
509
|
+
# {ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction} for
|
510
|
+
# more details.
|
510
511
|
#
|
511
512
|
# Specifies a ledger transaction object that will be created with the payment
|
512
513
|
# order. If the ledger transaction cannot be created, then the payment order
|
513
514
|
# creation will fail. The resulting ledger transaction will mirror the status of
|
514
515
|
# the payment order.
|
515
516
|
#
|
516
|
-
# @param ledger_entries [Array<ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerEntry>] An array of ledger entry objects.
|
517
|
+
# @param ledger_entries [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerEntry>] An array of ledger entry objects.
|
517
518
|
#
|
518
519
|
# @param description [String, nil] An optional description for internal use.
|
519
520
|
#
|
@@ -525,11 +526,11 @@ module ModernTreasury
|
|
525
526
|
#
|
526
527
|
# @param ledgerable_id [String] If the ledger transaction can be reconciled to another object in Modern Treasury
|
527
528
|
#
|
528
|
-
# @param ledgerable_type [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType] If the ledger transaction can be reconciled to another object in Modern Treasury
|
529
|
+
# @param ledgerable_type [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType] If the ledger transaction can be reconciled to another object in Modern Treasury
|
529
530
|
#
|
530
531
|
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
531
532
|
#
|
532
|
-
# @param status [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::Status] To post a ledger transaction at creation, use `posted`.
|
533
|
+
# @param status [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::Status] To post a ledger transaction at creation, use `posted`.
|
533
534
|
|
534
535
|
class LedgerEntry < ModernTreasury::Internal::Type::BaseModel
|
535
536
|
# @!attribute amount
|
@@ -545,7 +546,7 @@ module ModernTreasury
|
|
545
546
|
# `debit` pulls money from someone else's account to your own. Note that wire,
|
546
547
|
# rtp, and check payments will always be `credit`.
|
547
548
|
#
|
548
|
-
# @return [Symbol, ModernTreasury::TransactionDirection]
|
549
|
+
# @return [Symbol, ModernTreasury::Models::TransactionDirection]
|
549
550
|
required :direction, enum: -> { ModernTreasury::TransactionDirection }
|
550
551
|
|
551
552
|
# @!attribute ledger_account_id
|
@@ -605,12 +606,12 @@ module ModernTreasury
|
|
605
606
|
|
606
607
|
# @!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)
|
607
608
|
# Some parameter documentations has been truncated, see
|
608
|
-
# {ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerEntry}
|
609
|
+
# {ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerEntry}
|
609
610
|
# for more details.
|
610
611
|
#
|
611
612
|
# @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
|
612
613
|
#
|
613
|
-
# @param direction [Symbol, ModernTreasury::TransactionDirection] One of `credit`, `debit`. Describes the direction money is flowing in the transa
|
614
|
+
# @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of `credit`, `debit`. Describes the direction money is flowing in the transa
|
614
615
|
#
|
615
616
|
# @param ledger_account_id [String] The ledger account that this ledger entry is associated with.
|
616
617
|
#
|
@@ -632,7 +633,7 @@ module ModernTreasury
|
|
632
633
|
# payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
|
633
634
|
# reversal.
|
634
635
|
#
|
635
|
-
# @see ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction#ledgerable_type
|
636
|
+
# @see ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction#ledgerable_type
|
636
637
|
module LedgerableType
|
637
638
|
extend ModernTreasury::Internal::Type::Enum
|
638
639
|
|
@@ -649,7 +650,7 @@ module ModernTreasury
|
|
649
650
|
|
650
651
|
# To post a ledger transaction at creation, use `posted`.
|
651
652
|
#
|
652
|
-
# @see ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction#status
|
653
|
+
# @see ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction#status
|
653
654
|
module Status
|
654
655
|
extend ModernTreasury::Internal::Type::Enum
|
655
656
|
|
@@ -692,7 +693,8 @@ module ModernTreasury
|
|
692
693
|
|
693
694
|
# @!method initialize(amount:, accounting_category_id: nil, description: nil, metadata: nil)
|
694
695
|
# Some parameter documentations has been truncated, see
|
695
|
-
# {ModernTreasury::PaymentOrderCreateAsyncParams::LineItem} for more
|
696
|
+
# {ModernTreasury::Models::PaymentOrderCreateAsyncParams::LineItem} for more
|
697
|
+
# details.
|
696
698
|
#
|
697
699
|
# @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
|
698
700
|
#
|
@@ -719,7 +721,7 @@ module ModernTreasury
|
|
719
721
|
class ReceivingAccount < ModernTreasury::Internal::Type::BaseModel
|
720
722
|
# @!attribute account_details
|
721
723
|
#
|
722
|
-
# @return [Array<ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail>, nil]
|
724
|
+
# @return [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail>, nil]
|
723
725
|
optional :account_details,
|
724
726
|
-> {
|
725
727
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail]
|
@@ -728,12 +730,12 @@ module ModernTreasury
|
|
728
730
|
# @!attribute account_type
|
729
731
|
# Can be `checking`, `savings` or `other`.
|
730
732
|
#
|
731
|
-
# @return [Symbol, ModernTreasury::ExternalAccountType, nil]
|
733
|
+
# @return [Symbol, ModernTreasury::Models::ExternalAccountType, nil]
|
732
734
|
optional :account_type, enum: -> { ModernTreasury::ExternalAccountType }
|
733
735
|
|
734
736
|
# @!attribute contact_details
|
735
737
|
#
|
736
|
-
# @return [Array<ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail>, nil]
|
738
|
+
# @return [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail>, nil]
|
737
739
|
optional :contact_details,
|
738
740
|
-> {
|
739
741
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail]
|
@@ -746,7 +748,7 @@ module ModernTreasury
|
|
746
748
|
# https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
|
747
749
|
# for more details.
|
748
750
|
#
|
749
|
-
# @return [ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount, nil]
|
751
|
+
# @return [ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount, nil]
|
750
752
|
optional :ledger_account,
|
751
753
|
-> { ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount }
|
752
754
|
|
@@ -767,7 +769,7 @@ module ModernTreasury
|
|
767
769
|
# @!attribute party_address
|
768
770
|
# Required if receiving wire payments.
|
769
771
|
#
|
770
|
-
# @return [ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyAddress, nil]
|
772
|
+
# @return [ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyAddress, nil]
|
771
773
|
optional :party_address,
|
772
774
|
-> { ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyAddress }
|
773
775
|
|
@@ -785,7 +787,7 @@ module ModernTreasury
|
|
785
787
|
# @!attribute party_type
|
786
788
|
# Either `individual` or `business`.
|
787
789
|
#
|
788
|
-
# @return [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType, nil]
|
790
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType, nil]
|
789
791
|
optional :party_type,
|
790
792
|
enum: -> { ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType },
|
791
793
|
nil?: true
|
@@ -799,7 +801,7 @@ module ModernTreasury
|
|
799
801
|
|
800
802
|
# @!attribute routing_details
|
801
803
|
#
|
802
|
-
# @return [Array<ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail>, nil]
|
804
|
+
# @return [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail>, nil]
|
803
805
|
optional :routing_details,
|
804
806
|
-> {
|
805
807
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail]
|
@@ -807,36 +809,36 @@ module ModernTreasury
|
|
807
809
|
|
808
810
|
# @!method initialize(account_details: nil, account_type: nil, contact_details: nil, ledger_account: nil, metadata: nil, name: nil, party_address: nil, party_identifier: nil, party_name: nil, party_type: nil, plaid_processor_token: nil, routing_details: nil)
|
809
811
|
# Some parameter documentations has been truncated, see
|
810
|
-
# {ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount} for
|
811
|
-
# details.
|
812
|
+
# {ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount} for
|
813
|
+
# more details.
|
812
814
|
#
|
813
815
|
# Either `receiving_account` or `receiving_account_id` must be present. When using
|
814
816
|
# `receiving_account_id`, you may pass the id of an external account or an
|
815
817
|
# internal account.
|
816
818
|
#
|
817
|
-
# @param account_details [Array<ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail>]
|
819
|
+
# @param account_details [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail>]
|
818
820
|
#
|
819
|
-
# @param account_type [Symbol, ModernTreasury::ExternalAccountType] Can be `checking`, `savings` or `other`.
|
821
|
+
# @param account_type [Symbol, ModernTreasury::Models::ExternalAccountType] Can be `checking`, `savings` or `other`.
|
820
822
|
#
|
821
|
-
# @param contact_details [Array<ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail>]
|
823
|
+
# @param contact_details [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail>]
|
822
824
|
#
|
823
|
-
# @param ledger_account [ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount] Specifies a ledger account object that will be created with the external account
|
825
|
+
# @param ledger_account [ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount] Specifies a ledger account object that will be created with the external account
|
824
826
|
#
|
825
827
|
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
826
828
|
#
|
827
829
|
# @param name [String, nil] A nickname for the external account. This is only for internal usage and won't a
|
828
830
|
#
|
829
|
-
# @param party_address [ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyAddress] Required if receiving wire payments.
|
831
|
+
# @param party_address [ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyAddress] Required if receiving wire payments.
|
830
832
|
#
|
831
833
|
# @param party_identifier [String]
|
832
834
|
#
|
833
835
|
# @param party_name [String] If this value isn't provided, it will be inherited from the counterparty's name.
|
834
836
|
#
|
835
|
-
# @param party_type [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType, nil] Either `individual` or `business`.
|
837
|
+
# @param party_type [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType, nil] Either `individual` or `business`.
|
836
838
|
#
|
837
839
|
# @param plaid_processor_token [String] If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
|
838
840
|
#
|
839
|
-
# @param routing_details [Array<ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail>]
|
841
|
+
# @param routing_details [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail>]
|
840
842
|
|
841
843
|
class AccountDetail < ModernTreasury::Internal::Type::BaseModel
|
842
844
|
# @!attribute account_number
|
@@ -846,7 +848,7 @@ module ModernTreasury
|
|
846
848
|
|
847
849
|
# @!attribute account_number_type
|
848
850
|
#
|
849
|
-
# @return [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType, nil]
|
851
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType, nil]
|
850
852
|
optional :account_number_type,
|
851
853
|
enum: -> {
|
852
854
|
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType
|
@@ -854,21 +856,25 @@ module ModernTreasury
|
|
854
856
|
|
855
857
|
# @!method initialize(account_number:, account_number_type: nil)
|
856
858
|
# @param account_number [String]
|
857
|
-
# @param account_number_type [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType]
|
859
|
+
# @param account_number_type [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType]
|
858
860
|
|
859
|
-
# @see ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail#account_number_type
|
861
|
+
# @see ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail#account_number_type
|
860
862
|
module AccountNumberType
|
861
863
|
extend ModernTreasury::Internal::Type::Enum
|
862
864
|
|
863
865
|
AU_NUMBER = :au_number
|
866
|
+
BASE_ADDRESS = :base_address
|
864
867
|
CLABE = :clabe
|
868
|
+
ETHEREUM_ADDRESS = :ethereum_address
|
865
869
|
HK_NUMBER = :hk_number
|
866
870
|
IBAN = :iban
|
867
871
|
ID_NUMBER = :id_number
|
868
872
|
NZ_NUMBER = :nz_number
|
869
873
|
OTHER = :other
|
870
874
|
PAN = :pan
|
875
|
+
POLYGON_ADDRESS = :polygon_address
|
871
876
|
SG_NUMBER = :sg_number
|
877
|
+
SOLANA_ADDRESS = :solana_address
|
872
878
|
WALLET_ADDRESS = :wallet_address
|
873
879
|
|
874
880
|
# @!method self.values
|
@@ -884,7 +890,7 @@ module ModernTreasury
|
|
884
890
|
|
885
891
|
# @!attribute contact_identifier_type
|
886
892
|
#
|
887
|
-
# @return [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType, nil]
|
893
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType, nil]
|
888
894
|
optional :contact_identifier_type,
|
889
895
|
enum: -> {
|
890
896
|
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType
|
@@ -892,9 +898,9 @@ module ModernTreasury
|
|
892
898
|
|
893
899
|
# @!method initialize(contact_identifier: nil, contact_identifier_type: nil)
|
894
900
|
# @param contact_identifier [String]
|
895
|
-
# @param contact_identifier_type [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType]
|
901
|
+
# @param contact_identifier_type [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType]
|
896
902
|
|
897
|
-
# @see ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail#contact_identifier_type
|
903
|
+
# @see ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail#contact_identifier_type
|
898
904
|
module ContactIdentifierType
|
899
905
|
extend ModernTreasury::Internal::Type::Enum
|
900
906
|
|
@@ -907,7 +913,7 @@ module ModernTreasury
|
|
907
913
|
end
|
908
914
|
end
|
909
915
|
|
910
|
-
# @see ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount#ledger_account
|
916
|
+
# @see ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount#ledger_account
|
911
917
|
class LedgerAccount < ModernTreasury::Internal::Type::BaseModel
|
912
918
|
# @!attribute currency
|
913
919
|
# The currency of the ledger account.
|
@@ -930,7 +936,7 @@ module ModernTreasury
|
|
930
936
|
# @!attribute normal_balance
|
931
937
|
# The normal balance of the ledger account.
|
932
938
|
#
|
933
|
-
# @return [Symbol, ModernTreasury::TransactionDirection]
|
939
|
+
# @return [Symbol, ModernTreasury::Models::TransactionDirection]
|
934
940
|
required :normal_balance, enum: -> { ModernTreasury::TransactionDirection }
|
935
941
|
|
936
942
|
# @!attribute currency_exponent
|
@@ -964,7 +970,7 @@ module ModernTreasury
|
|
964
970
|
# be populated here, otherwise null. The value is one of internal_account or
|
965
971
|
# external_account.
|
966
972
|
#
|
967
|
-
# @return [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType, nil]
|
973
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType, nil]
|
968
974
|
optional :ledgerable_type,
|
969
975
|
enum: -> {
|
970
976
|
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType
|
@@ -979,7 +985,7 @@ module ModernTreasury
|
|
979
985
|
|
980
986
|
# @!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)
|
981
987
|
# Some parameter documentations has been truncated, see
|
982
|
-
# {ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount}
|
988
|
+
# {ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount}
|
983
989
|
# for more details.
|
984
990
|
#
|
985
991
|
# Specifies a ledger account object that will be created with the external
|
@@ -994,7 +1000,7 @@ module ModernTreasury
|
|
994
1000
|
#
|
995
1001
|
# @param name [String] The name of the ledger account.
|
996
1002
|
#
|
997
|
-
# @param normal_balance [Symbol, ModernTreasury::TransactionDirection] The normal balance of the ledger account.
|
1003
|
+
# @param normal_balance [Symbol, ModernTreasury::Models::TransactionDirection] The normal balance of the ledger account.
|
998
1004
|
#
|
999
1005
|
# @param currency_exponent [Integer, nil] The currency exponent of the ledger account.
|
1000
1006
|
#
|
@@ -1004,7 +1010,7 @@ module ModernTreasury
|
|
1004
1010
|
#
|
1005
1011
|
# @param ledgerable_id [String] If the ledger account links to another object in Modern Treasury, the id will be
|
1006
1012
|
#
|
1007
|
-
# @param ledgerable_type [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType] If the ledger account links to another object in Modern Treasury, the type will
|
1013
|
+
# @param ledgerable_type [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType] If the ledger account links to another object in Modern Treasury, the type will
|
1008
1014
|
#
|
1009
1015
|
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
1010
1016
|
|
@@ -1012,7 +1018,7 @@ module ModernTreasury
|
|
1012
1018
|
# be populated here, otherwise null. The value is one of internal_account or
|
1013
1019
|
# external_account.
|
1014
1020
|
#
|
1015
|
-
# @see ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount#ledgerable_type
|
1021
|
+
# @see ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount#ledgerable_type
|
1016
1022
|
module LedgerableType
|
1017
1023
|
extend ModernTreasury::Internal::Type::Enum
|
1018
1024
|
|
@@ -1026,7 +1032,7 @@ module ModernTreasury
|
|
1026
1032
|
end
|
1027
1033
|
end
|
1028
1034
|
|
1029
|
-
# @see ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount#party_address
|
1035
|
+
# @see ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount#party_address
|
1030
1036
|
class PartyAddress < ModernTreasury::Internal::Type::BaseModel
|
1031
1037
|
# @!attribute country
|
1032
1038
|
# Country code conforms to [ISO 3166-1 alpha-2]
|
@@ -1080,7 +1086,7 @@ module ModernTreasury
|
|
1080
1086
|
|
1081
1087
|
# Either `individual` or `business`.
|
1082
1088
|
#
|
1083
|
-
# @see ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount#party_type
|
1089
|
+
# @see ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount#party_type
|
1084
1090
|
module PartyType
|
1085
1091
|
extend ModernTreasury::Internal::Type::Enum
|
1086
1092
|
|
@@ -1099,7 +1105,7 @@ module ModernTreasury
|
|
1099
1105
|
|
1100
1106
|
# @!attribute routing_number_type
|
1101
1107
|
#
|
1102
|
-
# @return [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType]
|
1108
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType]
|
1103
1109
|
required :routing_number_type,
|
1104
1110
|
enum: -> {
|
1105
1111
|
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType
|
@@ -1107,7 +1113,7 @@ module ModernTreasury
|
|
1107
1113
|
|
1108
1114
|
# @!attribute payment_type
|
1109
1115
|
#
|
1110
|
-
# @return [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType, nil]
|
1116
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType, nil]
|
1111
1117
|
optional :payment_type,
|
1112
1118
|
enum: -> {
|
1113
1119
|
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType
|
@@ -1115,10 +1121,10 @@ module ModernTreasury
|
|
1115
1121
|
|
1116
1122
|
# @!method initialize(routing_number:, routing_number_type:, payment_type: nil)
|
1117
1123
|
# @param routing_number [String]
|
1118
|
-
# @param routing_number_type [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType]
|
1119
|
-
# @param payment_type [Symbol, ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType]
|
1124
|
+
# @param routing_number_type [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType]
|
1125
|
+
# @param payment_type [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType]
|
1120
1126
|
|
1121
|
-
# @see ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail#routing_number_type
|
1127
|
+
# @see ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail#routing_number_type
|
1122
1128
|
module RoutingNumberType
|
1123
1129
|
extend ModernTreasury::Internal::Type::Enum
|
1124
1130
|
|
@@ -1148,13 +1154,14 @@ module ModernTreasury
|
|
1148
1154
|
# @return [Array<Symbol>]
|
1149
1155
|
end
|
1150
1156
|
|
1151
|
-
# @see ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail#payment_type
|
1157
|
+
# @see ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail#payment_type
|
1152
1158
|
module PaymentType
|
1153
1159
|
extend ModernTreasury::Internal::Type::Enum
|
1154
1160
|
|
1155
1161
|
ACH = :ach
|
1156
1162
|
AU_BECS = :au_becs
|
1157
1163
|
BACS = :bacs
|
1164
|
+
BASE = :base
|
1158
1165
|
BOOK = :book
|
1159
1166
|
CARD = :card
|
1160
1167
|
CHATS = :chats
|
@@ -1162,6 +1169,7 @@ module ModernTreasury
|
|
1162
1169
|
CROSS_BORDER = :cross_border
|
1163
1170
|
DK_NETS = :dk_nets
|
1164
1171
|
EFT = :eft
|
1172
|
+
ETHEREUM = :ethereum
|
1165
1173
|
HU_ICS = :hu_ics
|
1166
1174
|
INTERAC = :interac
|
1167
1175
|
MASAV = :masav
|
@@ -1170,6 +1178,7 @@ module ModernTreasury
|
|
1170
1178
|
NICS = :nics
|
1171
1179
|
NZ_BECS = :nz_becs
|
1172
1180
|
PL_ELIXIR = :pl_elixir
|
1181
|
+
POLYGON = :polygon
|
1173
1182
|
PROVXCHANGE = :provxchange
|
1174
1183
|
RO_SENT = :ro_sent
|
1175
1184
|
RTP = :rtp
|
@@ -1180,6 +1189,7 @@ module ModernTreasury
|
|
1180
1189
|
SIC = :sic
|
1181
1190
|
SIGNET = :signet
|
1182
1191
|
SKNBI = :sknbi
|
1192
|
+
SOLANA = :solana
|
1183
1193
|
WIRE = :wire
|
1184
1194
|
ZENGIN = :zengin
|
1185
1195
|
|