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
@@ -16,7 +16,7 @@ module ModernTreasury
|
|
16
16
|
#
|
17
17
|
# @param counterparty_id [String, nil] The ID of the counterparty you expect for this payment.
|
18
18
|
#
|
19
|
-
# @param currency [Symbol, ModernTreasury::Currency, nil] Must conform to ISO 4217. Defaults to the currency of the internal account.
|
19
|
+
# @param currency [Symbol, ModernTreasury::Models::Currency, nil] Must conform to ISO 4217. Defaults to the currency of the internal account.
|
20
20
|
#
|
21
21
|
# @param date_lower_bound [Date, nil] The earliest date the payment may come in. Format: yyyy-mm-dd
|
22
22
|
#
|
@@ -24,15 +24,15 @@ module ModernTreasury
|
|
24
24
|
#
|
25
25
|
# @param description [String, nil] An optional description for internal use.
|
26
26
|
#
|
27
|
-
# @param direction [Symbol, ModernTreasury::ExpectedPaymentCreateParams::Direction, nil] One of credit or debit. When you are receiving money, use credit. When you are b
|
27
|
+
# @param direction [Symbol, ModernTreasury::Models::ExpectedPaymentCreateParams::Direction, nil] One of credit or debit. When you are receiving money, use credit. When you are b
|
28
28
|
#
|
29
29
|
# @param internal_account_id [String, nil] The ID of the Internal Account for the expected payment.
|
30
30
|
#
|
31
|
-
# @param ledger_transaction [ModernTreasury::ExpectedPaymentCreateParams::LedgerTransaction] Specifies a ledger transaction object that will be created with the expected pay
|
31
|
+
# @param ledger_transaction [ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction] Specifies a ledger transaction object that will be created with the expected pay
|
32
32
|
#
|
33
33
|
# @param ledger_transaction_id [String] Either ledger_transaction or ledger_transaction_id can be provided. Only a pendi
|
34
34
|
#
|
35
|
-
# @param line_items [Array<ModernTreasury::ExpectedPaymentCreateParams::LineItem>]
|
35
|
+
# @param line_items [Array<ModernTreasury::Models::ExpectedPaymentCreateParams::LineItem>]
|
36
36
|
#
|
37
37
|
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
38
38
|
#
|
@@ -40,17 +40,17 @@ module ModernTreasury
|
|
40
40
|
#
|
41
41
|
# @param reconciliation_groups [Object, nil] The reconciliation groups you have for this payment.
|
42
42
|
#
|
43
|
-
# @param reconciliation_rule_variables [Array<ModernTreasury::ReconciliationRule>, nil] An array of reconciliation rule variables for this payment.
|
43
|
+
# @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>, nil] An array of reconciliation rule variables for this payment.
|
44
44
|
#
|
45
45
|
# @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
|
46
46
|
#
|
47
47
|
# @param statement_descriptor [String, nil] The statement description you expect to see on the transaction. For ACH payments
|
48
48
|
#
|
49
|
-
# @param type [Symbol, ModernTreasury::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, se
|
49
|
+
# @param type [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, se
|
50
50
|
#
|
51
51
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
52
52
|
#
|
53
|
-
# @return [ModernTreasury::ExpectedPayment]
|
53
|
+
# @return [ModernTreasury::Models::ExpectedPayment]
|
54
54
|
#
|
55
55
|
# @see ModernTreasury::Models::ExpectedPaymentCreateParams
|
56
56
|
def create(params = {})
|
@@ -72,7 +72,7 @@ module ModernTreasury
|
|
72
72
|
#
|
73
73
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
74
74
|
#
|
75
|
-
# @return [ModernTreasury::ExpectedPayment]
|
75
|
+
# @return [ModernTreasury::Models::ExpectedPayment]
|
76
76
|
#
|
77
77
|
# @see ModernTreasury::Models::ExpectedPaymentRetrieveParams
|
78
78
|
def retrieve(id, params = {})
|
@@ -99,7 +99,7 @@ module ModernTreasury
|
|
99
99
|
#
|
100
100
|
# @param counterparty_id [String, nil] The ID of the counterparty you expect for this payment.
|
101
101
|
#
|
102
|
-
# @param currency [Symbol, ModernTreasury::Currency, nil] Must conform to ISO 4217. Defaults to the currency of the internal account.
|
102
|
+
# @param currency [Symbol, ModernTreasury::Models::Currency, nil] Must conform to ISO 4217. Defaults to the currency of the internal account.
|
103
103
|
#
|
104
104
|
# @param date_lower_bound [Date, nil] The earliest date the payment may come in. Format: yyyy-mm-dd
|
105
105
|
#
|
@@ -107,7 +107,7 @@ module ModernTreasury
|
|
107
107
|
#
|
108
108
|
# @param description [String, nil] An optional description for internal use.
|
109
109
|
#
|
110
|
-
# @param direction [Symbol, ModernTreasury::ExpectedPaymentUpdateParams::Direction, nil] One of credit or debit. When you are receiving money, use credit. When you are b
|
110
|
+
# @param direction [Symbol, ModernTreasury::Models::ExpectedPaymentUpdateParams::Direction, nil] One of credit or debit. When you are receiving money, use credit. When you are b
|
111
111
|
#
|
112
112
|
# @param internal_account_id [String, nil] The ID of the Internal Account for the expected payment.
|
113
113
|
#
|
@@ -117,19 +117,19 @@ module ModernTreasury
|
|
117
117
|
#
|
118
118
|
# @param reconciliation_groups [Object, nil] The reconciliation groups you have for this payment.
|
119
119
|
#
|
120
|
-
# @param reconciliation_rule_variables [Array<ModernTreasury::ReconciliationRule>, nil] An array of reconciliation rule variables for this payment.
|
120
|
+
# @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>, nil] An array of reconciliation rule variables for this payment.
|
121
121
|
#
|
122
122
|
# @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
|
123
123
|
#
|
124
124
|
# @param statement_descriptor [String, nil] The statement description you expect to see on the transaction. For ACH payments
|
125
125
|
#
|
126
|
-
# @param status [Symbol, ModernTreasury::ExpectedPaymentUpdateParams::Status, nil] The Expected Payment's status can be updated from partially_reconciled to reconc
|
126
|
+
# @param status [Symbol, ModernTreasury::Models::ExpectedPaymentUpdateParams::Status, nil] The Expected Payment's status can be updated from partially_reconciled to reconc
|
127
127
|
#
|
128
|
-
# @param type [Symbol, ModernTreasury::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, se
|
128
|
+
# @param type [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, se
|
129
129
|
#
|
130
130
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
131
131
|
#
|
132
|
-
# @return [ModernTreasury::ExpectedPayment]
|
132
|
+
# @return [ModernTreasury::Models::ExpectedPayment]
|
133
133
|
#
|
134
134
|
# @see ModernTreasury::Models::ExpectedPaymentUpdateParams
|
135
135
|
def update(id, params = {})
|
@@ -148,7 +148,7 @@ module ModernTreasury
|
|
148
148
|
#
|
149
149
|
# list expected_payments
|
150
150
|
#
|
151
|
-
# @overload list(after_cursor: nil, counterparty_id: nil, created_at_lower_bound: nil, created_at_upper_bound: nil, direction: nil, internal_account_id: nil, metadata: nil, per_page: nil, status: nil, type: nil, request_options: {})
|
151
|
+
# @overload list(after_cursor: nil, counterparty_id: nil, created_at_lower_bound: nil, created_at_upper_bound: nil, direction: nil, internal_account_id: nil, metadata: nil, per_page: nil, status: nil, type: nil, updated_at_lower_bound: nil, updated_at_upper_bound: nil, request_options: {})
|
152
152
|
#
|
153
153
|
# @param after_cursor [String, nil]
|
154
154
|
#
|
@@ -158,7 +158,7 @@ module ModernTreasury
|
|
158
158
|
#
|
159
159
|
# @param created_at_upper_bound [Time] Used to return expected payments created before some datetime
|
160
160
|
#
|
161
|
-
# @param direction [Symbol, ModernTreasury::TransactionDirection] One of credit, debit
|
161
|
+
# @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of credit, debit
|
162
162
|
#
|
163
163
|
# @param internal_account_id [String] Specify internal_account_id to see expected_payments for a specific account.
|
164
164
|
#
|
@@ -166,13 +166,17 @@ module ModernTreasury
|
|
166
166
|
#
|
167
167
|
# @param per_page [Integer]
|
168
168
|
#
|
169
|
-
# @param status [Symbol, ModernTreasury::ExpectedPaymentListParams::Status] One of unreconciled, reconciled, or archived.
|
169
|
+
# @param status [Symbol, ModernTreasury::Models::ExpectedPaymentListParams::Status] One of unreconciled, reconciled, or archived.
|
170
170
|
#
|
171
|
-
# @param type [Symbol, ModernTreasury::ExpectedPaymentListParams::Type] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp,sen, sep
|
171
|
+
# @param type [Symbol, ModernTreasury::Models::ExpectedPaymentListParams::Type] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp,sen, sep
|
172
|
+
#
|
173
|
+
# @param updated_at_lower_bound [Time] Used to return expected payments updated after some datetime
|
174
|
+
#
|
175
|
+
# @param updated_at_upper_bound [Time] Used to return expected payments updated before some datetime
|
172
176
|
#
|
173
177
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
174
178
|
#
|
175
|
-
# @return [ModernTreasury::Internal::Page<ModernTreasury::ExpectedPayment>]
|
179
|
+
# @return [ModernTreasury::Internal::Page<ModernTreasury::Models::ExpectedPayment>]
|
176
180
|
#
|
177
181
|
# @see ModernTreasury::Models::ExpectedPaymentListParams
|
178
182
|
def list(params = {})
|
@@ -195,7 +199,7 @@ module ModernTreasury
|
|
195
199
|
#
|
196
200
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
197
201
|
#
|
198
|
-
# @return [ModernTreasury::ExpectedPayment]
|
202
|
+
# @return [ModernTreasury::Models::ExpectedPayment]
|
199
203
|
#
|
200
204
|
# @see ModernTreasury::Models::ExpectedPaymentDeleteParams
|
201
205
|
def delete(id, params = {})
|
@@ -12,33 +12,33 @@ module ModernTreasury
|
|
12
12
|
#
|
13
13
|
# @param counterparty_id [String, nil]
|
14
14
|
#
|
15
|
-
# @param account_details [Array<ModernTreasury::ExternalAccountCreateParams::AccountDetail>]
|
15
|
+
# @param account_details [Array<ModernTreasury::Models::ExternalAccountCreateParams::AccountDetail>]
|
16
16
|
#
|
17
|
-
# @param account_type [Symbol, ModernTreasury::ExternalAccountType] Can be `checking`, `savings` or `other`.
|
17
|
+
# @param account_type [Symbol, ModernTreasury::Models::ExternalAccountType] Can be `checking`, `savings` or `other`.
|
18
18
|
#
|
19
|
-
# @param contact_details [Array<ModernTreasury::ExternalAccountCreateParams::ContactDetail>]
|
19
|
+
# @param contact_details [Array<ModernTreasury::Models::ExternalAccountCreateParams::ContactDetail>]
|
20
20
|
#
|
21
|
-
# @param ledger_account [ModernTreasury::ExternalAccountCreateParams::LedgerAccount] Specifies a ledger account object that will be created with the external account
|
21
|
+
# @param ledger_account [ModernTreasury::Models::ExternalAccountCreateParams::LedgerAccount] Specifies a ledger account object that will be created with the external account
|
22
22
|
#
|
23
23
|
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
24
24
|
#
|
25
25
|
# @param name [String, nil] A nickname for the external account. This is only for internal usage and won't a
|
26
26
|
#
|
27
|
-
# @param party_address [ModernTreasury::ExternalAccountCreateParams::PartyAddress] Required if receiving wire payments.
|
27
|
+
# @param party_address [ModernTreasury::Models::ExternalAccountCreateParams::PartyAddress] Required if receiving wire payments.
|
28
28
|
#
|
29
29
|
# @param party_identifier [String]
|
30
30
|
#
|
31
31
|
# @param party_name [String] If this value isn't provided, it will be inherited from the counterparty's name.
|
32
32
|
#
|
33
|
-
# @param party_type [Symbol, ModernTreasury::ExternalAccountCreateParams::PartyType, nil] Either `individual` or `business`.
|
33
|
+
# @param party_type [Symbol, ModernTreasury::Models::ExternalAccountCreateParams::PartyType, nil] Either `individual` or `business`.
|
34
34
|
#
|
35
35
|
# @param plaid_processor_token [String] If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
|
36
36
|
#
|
37
|
-
# @param routing_details [Array<ModernTreasury::ExternalAccountCreateParams::RoutingDetail>]
|
37
|
+
# @param routing_details [Array<ModernTreasury::Models::ExternalAccountCreateParams::RoutingDetail>]
|
38
38
|
#
|
39
39
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
40
40
|
#
|
41
|
-
# @return [ModernTreasury::ExternalAccount]
|
41
|
+
# @return [ModernTreasury::Models::ExternalAccount]
|
42
42
|
#
|
43
43
|
# @see ModernTreasury::Models::ExternalAccountCreateParams
|
44
44
|
def create(params)
|
@@ -60,7 +60,7 @@ module ModernTreasury
|
|
60
60
|
#
|
61
61
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
62
62
|
#
|
63
|
-
# @return [ModernTreasury::ExternalAccount]
|
63
|
+
# @return [ModernTreasury::Models::ExternalAccount]
|
64
64
|
#
|
65
65
|
# @see ModernTreasury::Models::ExternalAccountRetrieveParams
|
66
66
|
def retrieve(id, params = {})
|
@@ -81,7 +81,7 @@ module ModernTreasury
|
|
81
81
|
#
|
82
82
|
# @param id [String] external account id
|
83
83
|
#
|
84
|
-
# @param account_type [Symbol, ModernTreasury::ExternalAccountType] Can be `checking`, `savings` or `other`.
|
84
|
+
# @param account_type [Symbol, ModernTreasury::Models::ExternalAccountType] Can be `checking`, `savings` or `other`.
|
85
85
|
#
|
86
86
|
# @param counterparty_id [String, nil]
|
87
87
|
#
|
@@ -89,15 +89,15 @@ module ModernTreasury
|
|
89
89
|
#
|
90
90
|
# @param name [String, nil] A nickname for the external account. This is only for internal usage and won't a
|
91
91
|
#
|
92
|
-
# @param party_address [ModernTreasury::ExternalAccountUpdateParams::PartyAddress]
|
92
|
+
# @param party_address [ModernTreasury::Models::ExternalAccountUpdateParams::PartyAddress]
|
93
93
|
#
|
94
94
|
# @param party_name [String] If this value isn't provided, it will be inherited from the counterparty's name.
|
95
95
|
#
|
96
|
-
# @param party_type [Symbol, ModernTreasury::ExternalAccountUpdateParams::PartyType, nil] Either `individual` or `business`.
|
96
|
+
# @param party_type [Symbol, ModernTreasury::Models::ExternalAccountUpdateParams::PartyType, nil] Either `individual` or `business`.
|
97
97
|
#
|
98
98
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
99
99
|
#
|
100
|
-
# @return [ModernTreasury::ExternalAccount]
|
100
|
+
# @return [ModernTreasury::Models::ExternalAccount]
|
101
101
|
#
|
102
102
|
# @see ModernTreasury::Models::ExternalAccountUpdateParams
|
103
103
|
def update(id, params = {})
|
@@ -130,7 +130,7 @@ module ModernTreasury
|
|
130
130
|
#
|
131
131
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
132
132
|
#
|
133
|
-
# @return [ModernTreasury::Internal::Page<ModernTreasury::ExternalAccount>]
|
133
|
+
# @return [ModernTreasury::Internal::Page<ModernTreasury::Models::ExternalAccount>]
|
134
134
|
#
|
135
135
|
# @see ModernTreasury::Models::ExternalAccountListParams
|
136
136
|
def list(params = {})
|
@@ -175,7 +175,7 @@ module ModernTreasury
|
|
175
175
|
#
|
176
176
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
177
177
|
#
|
178
|
-
# @return [ModernTreasury::ExternalAccount]
|
178
|
+
# @return [ModernTreasury::Models::ExternalAccount]
|
179
179
|
#
|
180
180
|
# @see ModernTreasury::Models::ExternalAccountCompleteVerificationParams
|
181
181
|
def complete_verification(id, params = {})
|
@@ -200,17 +200,17 @@ module ModernTreasury
|
|
200
200
|
#
|
201
201
|
# @param originating_account_id [String] The ID of the internal account where the micro-deposits originate from. Both cre
|
202
202
|
#
|
203
|
-
# @param payment_type [Symbol, ModernTreasury::ExternalAccountVerifyParams::PaymentType] Can be `ach`, `eft`, or `rtp`.
|
203
|
+
# @param payment_type [Symbol, ModernTreasury::Models::ExternalAccountVerifyParams::PaymentType] Can be `ach`, `eft`, or `rtp`.
|
204
204
|
#
|
205
|
-
# @param currency [Symbol, ModernTreasury::Currency] Defaults to the currency of the originating account.
|
205
|
+
# @param currency [Symbol, ModernTreasury::Models::Currency] Defaults to the currency of the originating account.
|
206
206
|
#
|
207
|
-
# @param fallback_type [Symbol, ModernTreasury::ExternalAccountVerifyParams::FallbackType] A payment type to fallback to if the original type is not valid for the receivin
|
207
|
+
# @param fallback_type [Symbol, ModernTreasury::Models::ExternalAccountVerifyParams::FallbackType] A payment type to fallback to if the original type is not valid for the receivin
|
208
208
|
#
|
209
|
-
# @param priority [Symbol, ModernTreasury::ExternalAccountVerifyParams::Priority] Either `normal` or `high`. For ACH payments, `high` represents a same-day ACH tr
|
209
|
+
# @param priority [Symbol, ModernTreasury::Models::ExternalAccountVerifyParams::Priority] Either `normal` or `high`. For ACH payments, `high` represents a same-day ACH tr
|
210
210
|
#
|
211
211
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
212
212
|
#
|
213
|
-
# @return [ModernTreasury::ExternalAccount, ModernTreasury::Models::ExternalAccountVerifyResponse::ExternalAccountVerificationAttempt]
|
213
|
+
# @return [ModernTreasury::Models::ExternalAccount, ModernTreasury::Models::ExternalAccountVerifyResponse::ExternalAccountVerificationAttempt]
|
214
214
|
#
|
215
215
|
# @see ModernTreasury::Models::ExternalAccountVerifyParams
|
216
216
|
def verify(id, params)
|
@@ -12,11 +12,11 @@ module ModernTreasury
|
|
12
12
|
#
|
13
13
|
# @param internal_account_id [String] The ID for the `InternalAccount` this quote is associated with.
|
14
14
|
#
|
15
|
-
# @param target_currency [Symbol, ModernTreasury::Currency] Currency to convert the `base_currency` to, often called the "buy" currency.
|
15
|
+
# @param target_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert the `base_currency` to, often called the "buy" currency.
|
16
16
|
#
|
17
17
|
# @param base_amount [Integer] Amount in the lowest denomination of the `base_currency` to convert, often calle
|
18
18
|
#
|
19
|
-
# @param base_currency [Symbol, ModernTreasury::Currency] Currency to convert, often called the "sell" currency.
|
19
|
+
# @param base_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert, often called the "sell" currency.
|
20
20
|
#
|
21
21
|
# @param effective_at [Time] The timestamp until when the quoted rate is valid.
|
22
22
|
#
|
@@ -24,7 +24,7 @@ module ModernTreasury
|
|
24
24
|
#
|
25
25
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
26
26
|
#
|
27
|
-
# @return [ModernTreasury::ForeignExchangeQuote]
|
27
|
+
# @return [ModernTreasury::Models::ForeignExchangeQuote]
|
28
28
|
#
|
29
29
|
# @see ModernTreasury::Models::ForeignExchangeQuoteCreateParams
|
30
30
|
def create(params)
|
@@ -46,7 +46,7 @@ module ModernTreasury
|
|
46
46
|
#
|
47
47
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
48
48
|
#
|
49
|
-
# @return [ModernTreasury::ForeignExchangeQuote]
|
49
|
+
# @return [ModernTreasury::Models::ForeignExchangeQuote]
|
50
50
|
#
|
51
51
|
# @see ModernTreasury::Models::ForeignExchangeQuoteRetrieveParams
|
52
52
|
def retrieve(id, params = {})
|
@@ -85,7 +85,7 @@ module ModernTreasury
|
|
85
85
|
#
|
86
86
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
87
87
|
#
|
88
|
-
# @return [ModernTreasury::Internal::Page<ModernTreasury::ForeignExchangeQuote>]
|
88
|
+
# @return [ModernTreasury::Internal::Page<ModernTreasury::Models::ForeignExchangeQuote>]
|
89
89
|
#
|
90
90
|
# @see ModernTreasury::Models::ForeignExchangeQuoteListParams
|
91
91
|
def list(params = {})
|
@@ -11,7 +11,7 @@ module ModernTreasury
|
|
11
11
|
#
|
12
12
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
13
13
|
#
|
14
|
-
# @return [ModernTreasury::IncomingPaymentDetail]
|
14
|
+
# @return [ModernTreasury::Models::IncomingPaymentDetail]
|
15
15
|
#
|
16
16
|
# @see ModernTreasury::Models::IncomingPaymentDetailRetrieveParams
|
17
17
|
def retrieve(id, params = {})
|
@@ -36,7 +36,7 @@ module ModernTreasury
|
|
36
36
|
#
|
37
37
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
38
38
|
#
|
39
|
-
# @return [ModernTreasury::IncomingPaymentDetail]
|
39
|
+
# @return [ModernTreasury::Models::IncomingPaymentDetail]
|
40
40
|
#
|
41
41
|
# @see ModernTreasury::Models::IncomingPaymentDetailUpdateParams
|
42
42
|
def update(id, params = {})
|
@@ -63,21 +63,21 @@ module ModernTreasury
|
|
63
63
|
#
|
64
64
|
# @param as_of_date_start [Date] Filters incoming payment details with an as_of_date starting on or after the spe
|
65
65
|
#
|
66
|
-
# @param direction [Symbol, ModernTreasury::TransactionDirection] One of `credit` or `debit`.
|
66
|
+
# @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of `credit` or `debit`.
|
67
67
|
#
|
68
68
|
# @param metadata [Hash{Symbol=>String}] For example, if you want to query for records with metadata key `Type` and value
|
69
69
|
#
|
70
70
|
# @param per_page [Integer]
|
71
71
|
#
|
72
|
-
# @param status [Symbol, ModernTreasury::IncomingPaymentDetailListParams::Status] The current status of the incoming payment order. One of `pending`, `completed`,
|
72
|
+
# @param status [Symbol, ModernTreasury::Models::IncomingPaymentDetailListParams::Status] The current status of the incoming payment order. One of `pending`, `completed`,
|
73
73
|
#
|
74
|
-
# @param type [Symbol, ModernTreasury::IncomingPaymentDetailListParams::Type] One of: `ach`, `book`, `check`, `eft`, `interac`, `rtp`, `sepa`, `signet`, or `w
|
74
|
+
# @param type [Symbol, ModernTreasury::Models::IncomingPaymentDetailListParams::Type] One of: `ach`, `book`, `check`, `eft`, `interac`, `rtp`, `sepa`, `signet`, or `w
|
75
75
|
#
|
76
76
|
# @param virtual_account_id [String] If the incoming payment detail is in a virtual account, the ID of the Virtual Ac
|
77
77
|
#
|
78
78
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
79
79
|
#
|
80
|
-
# @return [ModernTreasury::Internal::Page<ModernTreasury::IncomingPaymentDetail>]
|
80
|
+
# @return [ModernTreasury::Internal::Page<ModernTreasury::Models::IncomingPaymentDetail>]
|
81
81
|
#
|
82
82
|
# @see ModernTreasury::Models::IncomingPaymentDetailListParams
|
83
83
|
def list(params = {})
|
@@ -104,23 +104,23 @@ module ModernTreasury
|
|
104
104
|
#
|
105
105
|
# @param as_of_date [Date, nil] Defaults to today.
|
106
106
|
#
|
107
|
-
# @param currency [Symbol, ModernTreasury::Currency, nil] Defaults to the currency of the originating account.
|
107
|
+
# @param currency [Symbol, ModernTreasury::Models::Currency, nil] Defaults to the currency of the originating account.
|
108
108
|
#
|
109
109
|
# @param data [Object, nil] An object passed through to the simulated IPD that could reflect what a vendor w
|
110
110
|
#
|
111
111
|
# @param description [String, nil] Defaults to a random description.
|
112
112
|
#
|
113
|
-
# @param direction [Symbol, ModernTreasury::IncomingPaymentDetailCreateAsyncParams::Direction] One of `credit`, `debit`.
|
113
|
+
# @param direction [Symbol, ModernTreasury::Models::IncomingPaymentDetailCreateAsyncParams::Direction] One of `credit`, `debit`.
|
114
114
|
#
|
115
115
|
# @param internal_account_id [String] The ID of one of your internal accounts.
|
116
116
|
#
|
117
|
-
# @param type [Symbol, ModernTreasury::IncomingPaymentDetailCreateAsyncParams::Type] One of `ach`, `wire`, `check`.
|
117
|
+
# @param type [Symbol, ModernTreasury::Models::IncomingPaymentDetailCreateAsyncParams::Type] One of `ach`, `wire`, `check`.
|
118
118
|
#
|
119
119
|
# @param virtual_account_id [String, nil] An optional parameter to associate the incoming payment detail to a virtual acco
|
120
120
|
#
|
121
121
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
122
122
|
#
|
123
|
-
# @return [ModernTreasury::AsyncResponse]
|
123
|
+
# @return [ModernTreasury::Models::AsyncResponse]
|
124
124
|
#
|
125
125
|
# @see ModernTreasury::Models::IncomingPaymentDetailCreateAsyncParams
|
126
126
|
def create_async(params = {})
|
@@ -18,13 +18,13 @@ module ModernTreasury
|
|
18
18
|
#
|
19
19
|
# @param as_of_time [String] The time (24-hour clock) of the balance report in local time.
|
20
20
|
#
|
21
|
-
# @param balance_report_type [Symbol, ModernTreasury::InternalAccounts::BalanceReportCreateParams::BalanceReportType] The specific type of balance report. One of `intraday`, `previous_day`, `real_ti
|
21
|
+
# @param balance_report_type [Symbol, ModernTreasury::Models::InternalAccounts::BalanceReportCreateParams::BalanceReportType] The specific type of balance report. One of `intraday`, `previous_day`, `real_ti
|
22
22
|
#
|
23
|
-
# @param balances [Array<ModernTreasury::InternalAccounts::BalanceReportCreateParams::Balance>] An array of `Balance` objects.
|
23
|
+
# @param balances [Array<ModernTreasury::Models::InternalAccounts::BalanceReportCreateParams::Balance>] An array of `Balance` objects.
|
24
24
|
#
|
25
25
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
26
26
|
#
|
27
|
-
# @return [ModernTreasury::InternalAccounts::BalanceReport]
|
27
|
+
# @return [ModernTreasury::Models::InternalAccounts::BalanceReport]
|
28
28
|
#
|
29
29
|
# @see ModernTreasury::Models::InternalAccounts::BalanceReportCreateParams
|
30
30
|
def create(internal_account_id, params)
|
@@ -52,7 +52,7 @@ module ModernTreasury
|
|
52
52
|
#
|
53
53
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
54
54
|
#
|
55
|
-
# @return [ModernTreasury::InternalAccounts::BalanceReport]
|
55
|
+
# @return [ModernTreasury::Models::InternalAccounts::BalanceReport]
|
56
56
|
#
|
57
57
|
# @see ModernTreasury::Models::InternalAccounts::BalanceReportRetrieveParams
|
58
58
|
def retrieve(id, params)
|
@@ -83,13 +83,13 @@ module ModernTreasury
|
|
83
83
|
#
|
84
84
|
# @param as_of_date [Date] The date of the balance report in local time.
|
85
85
|
#
|
86
|
-
# @param balance_report_type [Symbol, ModernTreasury::InternalAccounts::BalanceReportListParams::BalanceReportType] The specific type of balance report. One of `intraday`, `previous_day`, `real_ti
|
86
|
+
# @param balance_report_type [Symbol, ModernTreasury::Models::InternalAccounts::BalanceReportListParams::BalanceReportType] The specific type of balance report. One of `intraday`, `previous_day`, `real_ti
|
87
87
|
#
|
88
88
|
# @param per_page [Integer]
|
89
89
|
#
|
90
90
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
91
91
|
#
|
92
|
-
# @return [ModernTreasury::Internal::Page<ModernTreasury::InternalAccounts::BalanceReport>]
|
92
|
+
# @return [ModernTreasury::Internal::Page<ModernTreasury::Models::InternalAccounts::BalanceReport>]
|
93
93
|
#
|
94
94
|
# @see ModernTreasury::Models::InternalAccounts::BalanceReportListParams
|
95
95
|
def list(internal_account_id, params = {})
|
@@ -11,29 +11,31 @@ module ModernTreasury
|
|
11
11
|
#
|
12
12
|
# create internal account
|
13
13
|
#
|
14
|
-
# @overload create(connection_id:, currency:, name:, party_name:, counterparty_id: nil, legal_entity_id: nil, parent_account_id: nil, party_address: nil, vendor_attributes: nil, request_options: {})
|
14
|
+
# @overload create(connection_id:, currency:, name:, party_name:, account_type: nil, counterparty_id: nil, legal_entity_id: nil, parent_account_id: nil, party_address: nil, vendor_attributes: nil, request_options: {})
|
15
15
|
#
|
16
16
|
# @param connection_id [String] The identifier of the financial institution the account belongs to.
|
17
17
|
#
|
18
|
-
# @param currency [Symbol, ModernTreasury::InternalAccountCreateParams::Currency] Either "USD" or "CAD". Internal accounts created at Increase only supports "USD"
|
18
|
+
# @param currency [Symbol, ModernTreasury::Models::InternalAccountCreateParams::Currency] Either "USD" or "CAD". Internal accounts created at Increase only supports "USD"
|
19
19
|
#
|
20
20
|
# @param name [String] The nickname of the account.
|
21
21
|
#
|
22
22
|
# @param party_name [String] The legal name of the entity which owns the account.
|
23
23
|
#
|
24
|
+
# @param account_type [Symbol, ModernTreasury::Models::InternalAccountCreateParams::AccountType] The account type, used to provision the appropriate account at the financial ins
|
25
|
+
#
|
24
26
|
# @param counterparty_id [String] The Counterparty associated to this account.
|
25
27
|
#
|
26
28
|
# @param legal_entity_id [String] The LegalEntity associated to this account.
|
27
29
|
#
|
28
30
|
# @param parent_account_id [String] The parent internal account of this new account.
|
29
31
|
#
|
30
|
-
# @param party_address [ModernTreasury::InternalAccountCreateParams::PartyAddress] The address associated with the owner or null.
|
32
|
+
# @param party_address [ModernTreasury::Models::InternalAccountCreateParams::PartyAddress] The address associated with the owner or null.
|
31
33
|
#
|
32
34
|
# @param vendor_attributes [Hash{Symbol=>String}] A hash of vendor specific attributes that will be used when creating the account
|
33
35
|
#
|
34
36
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
35
37
|
#
|
36
|
-
# @return [ModernTreasury::InternalAccount]
|
38
|
+
# @return [ModernTreasury::Models::InternalAccount]
|
37
39
|
#
|
38
40
|
# @see ModernTreasury::Models::InternalAccountCreateParams
|
39
41
|
def create(params)
|
@@ -55,7 +57,7 @@ module ModernTreasury
|
|
55
57
|
#
|
56
58
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
57
59
|
#
|
58
|
-
# @return [ModernTreasury::InternalAccount]
|
60
|
+
# @return [ModernTreasury::Models::InternalAccount]
|
59
61
|
#
|
60
62
|
# @see ModernTreasury::Models::InternalAccountRetrieveParams
|
61
63
|
def retrieve(id, params = {})
|
@@ -88,7 +90,7 @@ module ModernTreasury
|
|
88
90
|
#
|
89
91
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
90
92
|
#
|
91
|
-
# @return [ModernTreasury::InternalAccount]
|
93
|
+
# @return [ModernTreasury::Models::InternalAccount]
|
92
94
|
#
|
93
95
|
# @see ModernTreasury::Models::InternalAccountUpdateParams
|
94
96
|
def update(id, params = {})
|
@@ -113,21 +115,21 @@ module ModernTreasury
|
|
113
115
|
#
|
114
116
|
# @param counterparty_id [String] Only return internal accounts associated with this counterparty.
|
115
117
|
#
|
116
|
-
# @param currency [Symbol, ModernTreasury::Currency] Only return internal accounts with this currency.
|
118
|
+
# @param currency [Symbol, ModernTreasury::Models::Currency] Only return internal accounts with this currency.
|
117
119
|
#
|
118
120
|
# @param legal_entity_id [String] Only return internal accounts associated with this legal entity.
|
119
121
|
#
|
120
122
|
# @param metadata [Hash{Symbol=>String}] For example, if you want to query for records with metadata key `Type` and value
|
121
123
|
#
|
122
|
-
# @param payment_direction [Symbol, ModernTreasury::TransactionDirection] Only return internal accounts that can originate payments with this direction.
|
124
|
+
# @param payment_direction [Symbol, ModernTreasury::Models::TransactionDirection] Only return internal accounts that can originate payments with this direction.
|
123
125
|
#
|
124
|
-
# @param payment_type [Symbol, ModernTreasury::InternalAccountListParams::PaymentType] Only return internal accounts that can make this type of payment.
|
126
|
+
# @param payment_type [Symbol, ModernTreasury::Models::InternalAccountListParams::PaymentType] Only return internal accounts that can make this type of payment.
|
125
127
|
#
|
126
128
|
# @param per_page [Integer]
|
127
129
|
#
|
128
130
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
129
131
|
#
|
130
|
-
# @return [ModernTreasury::Internal::Page<ModernTreasury::InternalAccount>]
|
132
|
+
# @return [ModernTreasury::Internal::Page<ModernTreasury::Models::InternalAccount>]
|
131
133
|
#
|
132
134
|
# @see ModernTreasury::Models::InternalAccountListParams
|
133
135
|
def list(params = {})
|
@@ -29,7 +29,7 @@ module ModernTreasury
|
|
29
29
|
#
|
30
30
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
31
31
|
#
|
32
|
-
# @return [ModernTreasury::Invoices::InvoiceLineItem]
|
32
|
+
# @return [ModernTreasury::Models::Invoices::InvoiceLineItem]
|
33
33
|
#
|
34
34
|
# @see ModernTreasury::Models::Invoices::LineItemCreateParams
|
35
35
|
def create(invoice_id, params)
|
@@ -53,7 +53,7 @@ module ModernTreasury
|
|
53
53
|
#
|
54
54
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
55
55
|
#
|
56
|
-
# @return [ModernTreasury::Invoices::InvoiceLineItem]
|
56
|
+
# @return [ModernTreasury::Models::Invoices::InvoiceLineItem]
|
57
57
|
#
|
58
58
|
# @see ModernTreasury::Models::Invoices::LineItemRetrieveParams
|
59
59
|
def retrieve(id, params)
|
@@ -97,7 +97,7 @@ module ModernTreasury
|
|
97
97
|
#
|
98
98
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
99
99
|
#
|
100
|
-
# @return [ModernTreasury::Invoices::InvoiceLineItem]
|
100
|
+
# @return [ModernTreasury::Models::Invoices::InvoiceLineItem]
|
101
101
|
#
|
102
102
|
# @see ModernTreasury::Models::Invoices::LineItemUpdateParams
|
103
103
|
def update(id, params)
|
@@ -127,7 +127,7 @@ module ModernTreasury
|
|
127
127
|
#
|
128
128
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
129
129
|
#
|
130
|
-
# @return [ModernTreasury::Internal::Page<ModernTreasury::Invoices::InvoiceLineItem>]
|
130
|
+
# @return [ModernTreasury::Internal::Page<ModernTreasury::Models::Invoices::InvoiceLineItem>]
|
131
131
|
#
|
132
132
|
# @see ModernTreasury::Models::Invoices::LineItemListParams
|
133
133
|
def list(invoice_id, params = {})
|
@@ -152,7 +152,7 @@ module ModernTreasury
|
|
152
152
|
#
|
153
153
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
154
154
|
#
|
155
|
-
# @return [ModernTreasury::Invoices::InvoiceLineItem]
|
155
|
+
# @return [ModernTreasury::Models::Invoices::InvoiceLineItem]
|
156
156
|
#
|
157
157
|
# @see ModernTreasury::Models::Invoices::LineItemDeleteParams
|
158
158
|
def delete(id, params)
|