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
@@ -11,7 +11,7 @@ module ModernTreasury
|
|
11
11
|
|
12
12
|
# @!attribute accounting
|
13
13
|
#
|
14
|
-
# @return [ModernTreasury::PaymentOrder::Accounting]
|
14
|
+
# @return [ModernTreasury::Models::PaymentOrder::Accounting]
|
15
15
|
required :accounting, -> { ModernTreasury::PaymentOrder::Accounting }
|
16
16
|
|
17
17
|
# @!attribute accounting_category_id
|
@@ -44,18 +44,9 @@ module ModernTreasury
|
|
44
44
|
# payment orders. Can be one of shared, sender, or receiver, which correspond
|
45
45
|
# respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
|
46
46
|
#
|
47
|
-
# @return [Symbol, ModernTreasury::PaymentOrder::ChargeBearer, nil]
|
47
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrder::ChargeBearer, nil]
|
48
48
|
required :charge_bearer, enum: -> { ModernTreasury::PaymentOrder::ChargeBearer }, nil?: true
|
49
49
|
|
50
|
-
# @!attribute compliance_rule_metadata
|
51
|
-
# Custom key-value pair for usage in compliance rules. Please contact support
|
52
|
-
# before making changes to this field.
|
53
|
-
#
|
54
|
-
# @return [Hash{Symbol=>Object}, nil]
|
55
|
-
required :compliance_rule_metadata,
|
56
|
-
ModernTreasury::Internal::Type::HashOf[ModernTreasury::Internal::Type::Unknown],
|
57
|
-
nil?: true
|
58
|
-
|
59
50
|
# @!attribute counterparty_id
|
60
51
|
# If the payment order is tied to a specific Counterparty, their id will appear,
|
61
52
|
# otherwise `null`.
|
@@ -71,23 +62,16 @@ module ModernTreasury
|
|
71
62
|
# @!attribute currency
|
72
63
|
# Defaults to the currency of the originating account.
|
73
64
|
#
|
74
|
-
# @return [Symbol, ModernTreasury::Currency]
|
65
|
+
# @return [Symbol, ModernTreasury::Models::Currency]
|
75
66
|
required :currency, enum: -> { ModernTreasury::Currency }
|
76
67
|
|
77
68
|
# @!attribute current_return
|
78
69
|
# If the payment order's status is `returned`, this will include the return
|
79
70
|
# object's data.
|
80
71
|
#
|
81
|
-
# @return [ModernTreasury::ReturnObject, nil]
|
72
|
+
# @return [ModernTreasury::Models::ReturnObject, nil]
|
82
73
|
required :current_return, -> { ModernTreasury::ReturnObject }, nil?: true
|
83
74
|
|
84
|
-
# @!attribute decision_id
|
85
|
-
# The ID of the compliance decision for the payment order, if transaction
|
86
|
-
# monitoring is enabled.
|
87
|
-
#
|
88
|
-
# @return [String, nil]
|
89
|
-
required :decision_id, String, nil?: true
|
90
|
-
|
91
75
|
# @!attribute description
|
92
76
|
# An optional description for internal use.
|
93
77
|
#
|
@@ -100,7 +84,7 @@ module ModernTreasury
|
|
100
84
|
# `debit` pulls money from someone else's account to your own. Note that wire,
|
101
85
|
# rtp, and check payments will always be `credit`.
|
102
86
|
#
|
103
|
-
# @return [Symbol, ModernTreasury::PaymentOrder::Direction]
|
87
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrder::Direction]
|
104
88
|
required :direction, enum: -> { ModernTreasury::PaymentOrder::Direction }
|
105
89
|
|
106
90
|
# @!attribute effective_date
|
@@ -129,7 +113,7 @@ module ModernTreasury
|
|
129
113
|
# `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
|
130
114
|
# currency matches the originating account currency.
|
131
115
|
#
|
132
|
-
# @return [Symbol, ModernTreasury::PaymentOrder::ForeignExchangeIndicator, nil]
|
116
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrder::ForeignExchangeIndicator, nil]
|
133
117
|
required :foreign_exchange_indicator,
|
134
118
|
enum: -> { ModernTreasury::PaymentOrder::ForeignExchangeIndicator },
|
135
119
|
nil?: true
|
@@ -137,7 +121,7 @@ module ModernTreasury
|
|
137
121
|
# @!attribute foreign_exchange_rate
|
138
122
|
# Associated serialized foreign exchange rate information.
|
139
123
|
#
|
140
|
-
# @return [ModernTreasury::PaymentOrder::ForeignExchangeRate, nil]
|
124
|
+
# @return [ModernTreasury::Models::PaymentOrder::ForeignExchangeRate, nil]
|
141
125
|
required :foreign_exchange_rate, -> { ModernTreasury::PaymentOrder::ForeignExchangeRate }, nil?: true
|
142
126
|
|
143
127
|
# @!attribute ledger_transaction_id
|
@@ -192,7 +176,7 @@ module ModernTreasury
|
|
192
176
|
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
193
177
|
# an overnight check rather than standard mail.
|
194
178
|
#
|
195
|
-
# @return [Symbol, ModernTreasury::PaymentOrder::Priority]
|
179
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrder::Priority]
|
196
180
|
required :priority, enum: -> { ModernTreasury::PaymentOrder::Priority }
|
197
181
|
|
198
182
|
# @!attribute process_after
|
@@ -221,12 +205,12 @@ module ModernTreasury
|
|
221
205
|
|
222
206
|
# @!attribute receiving_account_type
|
223
207
|
#
|
224
|
-
# @return [Symbol, ModernTreasury::PaymentOrder::ReceivingAccountType]
|
208
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrder::ReceivingAccountType]
|
225
209
|
required :receiving_account_type, enum: -> { ModernTreasury::PaymentOrder::ReceivingAccountType }
|
226
210
|
|
227
211
|
# @!attribute reference_numbers
|
228
212
|
#
|
229
|
-
# @return [Array<ModernTreasury::PaymentOrder::ReferenceNumber>]
|
213
|
+
# @return [Array<ModernTreasury::Models::PaymentOrder::ReferenceNumber>]
|
230
214
|
required :reference_numbers,
|
231
215
|
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrder::ReferenceNumber] }
|
232
216
|
|
@@ -259,7 +243,7 @@ module ModernTreasury
|
|
259
243
|
# @!attribute status
|
260
244
|
# The current status of the payment order.
|
261
245
|
#
|
262
|
-
# @return [Symbol, ModernTreasury::PaymentOrder::Status]
|
246
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrder::Status]
|
263
247
|
required :status, enum: -> { ModernTreasury::PaymentOrder::Status }
|
264
248
|
|
265
249
|
# @!attribute subtype
|
@@ -268,7 +252,7 @@ module ModernTreasury
|
|
268
252
|
# payment orders, the `subtype` represents the SEC code. We currently support
|
269
253
|
# `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
|
270
254
|
#
|
271
|
-
# @return [Symbol, ModernTreasury::PaymentOrderSubtype, nil]
|
255
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderSubtype, nil]
|
272
256
|
required :subtype, enum: -> { ModernTreasury::PaymentOrderSubtype }, nil?: true
|
273
257
|
|
274
258
|
# @!attribute transaction_ids
|
@@ -280,26 +264,19 @@ module ModernTreasury
|
|
280
264
|
# @return [Array<String>]
|
281
265
|
required :transaction_ids, ModernTreasury::Internal::Type::ArrayOf[String]
|
282
266
|
|
283
|
-
# @!attribute transaction_monitoring_enabled
|
284
|
-
# A flag that determines whether a payment order should go through transaction
|
285
|
-
# monitoring.
|
286
|
-
#
|
287
|
-
# @return [Boolean]
|
288
|
-
required :transaction_monitoring_enabled, ModernTreasury::Internal::Type::Boolean
|
289
|
-
|
290
267
|
# @!attribute type
|
291
268
|
# One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`,
|
292
269
|
# `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
|
293
270
|
# `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
|
294
271
|
#
|
295
|
-
# @return [Symbol, ModernTreasury::PaymentOrderType]
|
272
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderType]
|
296
273
|
required :type, enum: -> { ModernTreasury::PaymentOrderType }
|
297
274
|
|
298
275
|
# @!attribute ultimate_originating_account
|
299
276
|
# The account to which the originating of this payment should be attributed to.
|
300
277
|
# Can be a `virtual_account` or `internal_account`.
|
301
278
|
#
|
302
|
-
# @return [ModernTreasury::VirtualAccount, ModernTreasury::InternalAccount, nil]
|
279
|
+
# @return [ModernTreasury::Models::VirtualAccount, ModernTreasury::Models::InternalAccount, nil]
|
303
280
|
required :ultimate_originating_account,
|
304
281
|
union: -> { ModernTreasury::PaymentOrder::UltimateOriginatingAccount },
|
305
282
|
nil?: true
|
@@ -313,7 +290,7 @@ module ModernTreasury
|
|
313
290
|
|
314
291
|
# @!attribute ultimate_originating_account_type
|
315
292
|
#
|
316
|
-
# @return [Symbol, ModernTreasury::PaymentOrder::UltimateOriginatingAccountType, nil]
|
293
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrder::UltimateOriginatingAccountType, nil]
|
317
294
|
required :ultimate_originating_account_type,
|
318
295
|
enum: -> { ModernTreasury::PaymentOrder::UltimateOriginatingAccountType },
|
319
296
|
nil?: true
|
@@ -359,13 +336,13 @@ module ModernTreasury
|
|
359
336
|
# @return [String, nil]
|
360
337
|
required :vendor_failure_reason, String, nil?: true
|
361
338
|
|
362
|
-
# @!method initialize(id:, accounting:, accounting_category_id:, accounting_ledger_class_id:, amount:, charge_bearer:,
|
339
|
+
# @!method initialize(id:, accounting:, accounting_category_id:, accounting_ledger_class_id:, amount:, charge_bearer:, counterparty_id:, created_at:, currency:, current_return:, description:, direction:, effective_date:, expires_at:, foreign_exchange_contract:, foreign_exchange_indicator:, foreign_exchange_rate:, ledger_transaction_id:, live_mode:, metadata:, nsf_protected:, object:, originating_account_id:, originating_party_name:, priority:, process_after:, purpose:, receiving_account_id:, receiving_account_type:, reference_numbers:, remittance_information:, send_remittance_advice:, statement_descriptor:, status:, subtype:, transaction_ids:, type:, ultimate_originating_account:, ultimate_originating_account_id:, ultimate_originating_account_type:, ultimate_originating_party_identifier:, ultimate_originating_party_name:, ultimate_receiving_party_identifier:, ultimate_receiving_party_name:, updated_at:, vendor_attributes:, vendor_failure_reason:)
|
363
340
|
# Some parameter documentations has been truncated, see
|
364
|
-
# {ModernTreasury::PaymentOrder} for more details.
|
341
|
+
# {ModernTreasury::Models::PaymentOrder} for more details.
|
365
342
|
#
|
366
343
|
# @param id [String]
|
367
344
|
#
|
368
|
-
# @param accounting [ModernTreasury::PaymentOrder::Accounting]
|
345
|
+
# @param accounting [ModernTreasury::Models::PaymentOrder::Accounting]
|
369
346
|
#
|
370
347
|
# @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
|
371
348
|
#
|
@@ -373,23 +350,19 @@ module ModernTreasury
|
|
373
350
|
#
|
374
351
|
# @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
|
375
352
|
#
|
376
|
-
# @param charge_bearer [Symbol, ModernTreasury::PaymentOrder::ChargeBearer, nil] The party that will pay the fees for the payment order. Only applies to wire pay
|
377
|
-
#
|
378
|
-
# @param compliance_rule_metadata [Hash{Symbol=>Object}, nil] Custom key-value pair for usage in compliance rules. Please contact support befo
|
353
|
+
# @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrder::ChargeBearer, nil] The party that will pay the fees for the payment order. Only applies to wire pay
|
379
354
|
#
|
380
355
|
# @param counterparty_id [String, nil] If the payment order is tied to a specific Counterparty, their id will appear, o
|
381
356
|
#
|
382
357
|
# @param created_at [Time]
|
383
358
|
#
|
384
|
-
# @param currency [Symbol, ModernTreasury::Currency] Defaults to the currency of the originating account.
|
385
|
-
#
|
386
|
-
# @param current_return [ModernTreasury::ReturnObject, nil] If the payment order's status is `returned`, this will include the return object
|
359
|
+
# @param currency [Symbol, ModernTreasury::Models::Currency] Defaults to the currency of the originating account.
|
387
360
|
#
|
388
|
-
# @param
|
361
|
+
# @param current_return [ModernTreasury::Models::ReturnObject, nil] If the payment order's status is `returned`, this will include the return object
|
389
362
|
#
|
390
363
|
# @param description [String, nil] An optional description for internal use.
|
391
364
|
#
|
392
|
-
# @param direction [Symbol, ModernTreasury::PaymentOrder::Direction] One of `credit`, `debit`. Describes the direction money is flowing in the transa
|
365
|
+
# @param direction [Symbol, ModernTreasury::Models::PaymentOrder::Direction] One of `credit`, `debit`. Describes the direction money is flowing in the transa
|
393
366
|
#
|
394
367
|
# @param effective_date [Date] Date transactions are to be posted to the participants' account. Defaults to the
|
395
368
|
#
|
@@ -397,9 +370,9 @@ module ModernTreasury
|
|
397
370
|
#
|
398
371
|
# @param foreign_exchange_contract [String, nil] If present, indicates a specific foreign exchange contract number that has been
|
399
372
|
#
|
400
|
-
# @param foreign_exchange_indicator [Symbol, ModernTreasury::PaymentOrder::ForeignExchangeIndicator, nil] Indicates the type of FX transfer to initiate, can be either `variable_to_fixed`
|
373
|
+
# @param foreign_exchange_indicator [Symbol, ModernTreasury::Models::PaymentOrder::ForeignExchangeIndicator, nil] Indicates the type of FX transfer to initiate, can be either `variable_to_fixed`
|
401
374
|
#
|
402
|
-
# @param foreign_exchange_rate [ModernTreasury::PaymentOrder::ForeignExchangeRate, nil] Associated serialized foreign exchange rate information.
|
375
|
+
# @param foreign_exchange_rate [ModernTreasury::Models::PaymentOrder::ForeignExchangeRate, nil] Associated serialized foreign exchange rate information.
|
403
376
|
#
|
404
377
|
# @param ledger_transaction_id [String, nil] The ID of the ledger transaction linked to the payment order.
|
405
378
|
#
|
@@ -415,7 +388,7 @@ module ModernTreasury
|
|
415
388
|
#
|
416
389
|
# @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
|
417
390
|
#
|
418
|
-
# @param priority [Symbol, ModernTreasury::PaymentOrder::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
|
391
|
+
# @param priority [Symbol, ModernTreasury::Models::PaymentOrder::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
|
419
392
|
#
|
420
393
|
# @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
|
421
394
|
#
|
@@ -423,9 +396,9 @@ module ModernTreasury
|
|
423
396
|
#
|
424
397
|
# @param receiving_account_id [String] The receiving account ID. Can be an `external_account` or `internal_account`.
|
425
398
|
#
|
426
|
-
# @param receiving_account_type [Symbol, ModernTreasury::PaymentOrder::ReceivingAccountType]
|
399
|
+
# @param receiving_account_type [Symbol, ModernTreasury::Models::PaymentOrder::ReceivingAccountType]
|
427
400
|
#
|
428
|
-
# @param reference_numbers [Array<ModernTreasury::PaymentOrder::ReferenceNumber>]
|
401
|
+
# @param reference_numbers [Array<ModernTreasury::Models::PaymentOrder::ReferenceNumber>]
|
429
402
|
#
|
430
403
|
# @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
|
431
404
|
#
|
@@ -433,21 +406,19 @@ module ModernTreasury
|
|
433
406
|
#
|
434
407
|
# @param statement_descriptor [String, nil] An optional descriptor which will appear in the receiver's statement. For `check
|
435
408
|
#
|
436
|
-
# @param status [Symbol, ModernTreasury::PaymentOrder::Status] The current status of the payment order.
|
409
|
+
# @param status [Symbol, ModernTreasury::Models::PaymentOrder::Status] The current status of the payment order.
|
437
410
|
#
|
438
|
-
# @param subtype [Symbol, ModernTreasury::PaymentOrderSubtype, nil] An additional layer of classification for the type of payment order you are doin
|
411
|
+
# @param subtype [Symbol, ModernTreasury::Models::PaymentOrderSubtype, nil] An additional layer of classification for the type of payment order you are doin
|
439
412
|
#
|
440
413
|
# @param transaction_ids [Array<String>] The IDs of all the transactions associated to this payment order. Usually, you w
|
441
414
|
#
|
442
|
-
# @param
|
415
|
+
# @param type [Symbol, ModernTreasury::Models::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sep
|
443
416
|
#
|
444
|
-
# @param
|
445
|
-
#
|
446
|
-
# @param ultimate_originating_account [ModernTreasury::VirtualAccount, ModernTreasury::InternalAccount, nil] The account to which the originating of this payment should be attributed to. Ca
|
417
|
+
# @param ultimate_originating_account [ModernTreasury::Models::VirtualAccount, ModernTreasury::Models::InternalAccount, nil] The account to which the originating of this payment should be attributed to. Ca
|
447
418
|
#
|
448
419
|
# @param ultimate_originating_account_id [String, nil] The ultimate originating account ID. Can be a `virtual_account` or `internal_acc
|
449
420
|
#
|
450
|
-
# @param ultimate_originating_account_type [Symbol, ModernTreasury::PaymentOrder::UltimateOriginatingAccountType, nil]
|
421
|
+
# @param ultimate_originating_account_type [Symbol, ModernTreasury::Models::PaymentOrder::UltimateOriginatingAccountType, nil]
|
451
422
|
#
|
452
423
|
# @param ultimate_originating_party_identifier [String, nil] Identifier of the ultimate originator of the payment order.
|
453
424
|
#
|
@@ -463,7 +434,7 @@ module ModernTreasury
|
|
463
434
|
#
|
464
435
|
# @param vendor_failure_reason [String, nil] This field will be populated if a vendor failure occurs. Logic shouldn't be buil
|
465
436
|
|
466
|
-
# @see ModernTreasury::PaymentOrder#accounting
|
437
|
+
# @see ModernTreasury::Models::PaymentOrder#accounting
|
467
438
|
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
468
439
|
# @!attribute account_id
|
469
440
|
# The ID of one of your accounting categories. Note that these will only be
|
@@ -482,7 +453,7 @@ module ModernTreasury
|
|
482
453
|
|
483
454
|
# @!method initialize(account_id: nil, class_id: nil)
|
484
455
|
# Some parameter documentations has been truncated, see
|
485
|
-
# {ModernTreasury::PaymentOrder::Accounting} for more details.
|
456
|
+
# {ModernTreasury::Models::PaymentOrder::Accounting} for more details.
|
486
457
|
#
|
487
458
|
# @param account_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
|
488
459
|
#
|
@@ -493,7 +464,7 @@ module ModernTreasury
|
|
493
464
|
# payment orders. Can be one of shared, sender, or receiver, which correspond
|
494
465
|
# respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
|
495
466
|
#
|
496
|
-
# @see ModernTreasury::PaymentOrder#charge_bearer
|
467
|
+
# @see ModernTreasury::Models::PaymentOrder#charge_bearer
|
497
468
|
module ChargeBearer
|
498
469
|
extend ModernTreasury::Internal::Type::Enum
|
499
470
|
|
@@ -510,7 +481,7 @@ module ModernTreasury
|
|
510
481
|
# `debit` pulls money from someone else's account to your own. Note that wire,
|
511
482
|
# rtp, and check payments will always be `credit`.
|
512
483
|
#
|
513
|
-
# @see ModernTreasury::PaymentOrder#direction
|
484
|
+
# @see ModernTreasury::Models::PaymentOrder#direction
|
514
485
|
module Direction
|
515
486
|
extend ModernTreasury::Internal::Type::Enum
|
516
487
|
|
@@ -525,7 +496,7 @@ module ModernTreasury
|
|
525
496
|
# `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
|
526
497
|
# currency matches the originating account currency.
|
527
498
|
#
|
528
|
-
# @see ModernTreasury::PaymentOrder#foreign_exchange_indicator
|
499
|
+
# @see ModernTreasury::Models::PaymentOrder#foreign_exchange_indicator
|
529
500
|
module ForeignExchangeIndicator
|
530
501
|
extend ModernTreasury::Internal::Type::Enum
|
531
502
|
|
@@ -536,7 +507,7 @@ module ModernTreasury
|
|
536
507
|
# @return [Array<Symbol>]
|
537
508
|
end
|
538
509
|
|
539
|
-
# @see ModernTreasury::PaymentOrder#foreign_exchange_rate
|
510
|
+
# @see ModernTreasury::Models::PaymentOrder#foreign_exchange_rate
|
540
511
|
class ForeignExchangeRate < ModernTreasury::Internal::Type::BaseModel
|
541
512
|
# @!attribute base_amount
|
542
513
|
# Amount in the lowest denomination of the `base_currency` to convert, often
|
@@ -548,7 +519,7 @@ module ModernTreasury
|
|
548
519
|
# @!attribute base_currency
|
549
520
|
# Currency to convert, often called the "sell" currency.
|
550
521
|
#
|
551
|
-
# @return [Symbol, ModernTreasury::Currency]
|
522
|
+
# @return [Symbol, ModernTreasury::Models::Currency]
|
552
523
|
required :base_currency, enum: -> { ModernTreasury::Currency }
|
553
524
|
|
554
525
|
# @!attribute exponent
|
@@ -574,7 +545,7 @@ module ModernTreasury
|
|
574
545
|
# @!attribute target_currency
|
575
546
|
# Currency to convert the `base_currency` to, often called the "buy" currency.
|
576
547
|
#
|
577
|
-
# @return [Symbol, ModernTreasury::Currency]
|
548
|
+
# @return [Symbol, ModernTreasury::Models::Currency]
|
578
549
|
required :target_currency, enum: -> { ModernTreasury::Currency }
|
579
550
|
|
580
551
|
# @!attribute value
|
@@ -586,13 +557,13 @@ module ModernTreasury
|
|
586
557
|
|
587
558
|
# @!method initialize(base_amount:, base_currency:, exponent:, rate_string:, target_amount:, target_currency:, value:)
|
588
559
|
# Some parameter documentations has been truncated, see
|
589
|
-
# {ModernTreasury::PaymentOrder::ForeignExchangeRate} for more details.
|
560
|
+
# {ModernTreasury::Models::PaymentOrder::ForeignExchangeRate} for more details.
|
590
561
|
#
|
591
562
|
# Associated serialized foreign exchange rate information.
|
592
563
|
#
|
593
564
|
# @param base_amount [Integer] Amount in the lowest denomination of the `base_currency` to convert, often calle
|
594
565
|
#
|
595
|
-
# @param base_currency [Symbol, ModernTreasury::Currency] Currency to convert, often called the "sell" currency.
|
566
|
+
# @param base_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert, often called the "sell" currency.
|
596
567
|
#
|
597
568
|
# @param exponent [Integer] The exponent component of the rate. The decimal is calculated as `value` / (10 ^
|
598
569
|
#
|
@@ -600,7 +571,7 @@ module ModernTreasury
|
|
600
571
|
#
|
601
572
|
# @param target_amount [Integer] Amount in the lowest denomination of the `target_currency`, often called the "bu
|
602
573
|
#
|
603
|
-
# @param target_currency [Symbol, ModernTreasury::Currency] Currency to convert the `base_currency` to, often called the "buy" currency.
|
574
|
+
# @param target_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert the `base_currency` to, often called the "buy" currency.
|
604
575
|
#
|
605
576
|
# @param value [Integer] The whole number component of the rate. The decimal is calculated as `value` / (
|
606
577
|
end
|
@@ -609,7 +580,7 @@ module ModernTreasury
|
|
609
580
|
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
610
581
|
# an overnight check rather than standard mail.
|
611
582
|
#
|
612
|
-
# @see ModernTreasury::PaymentOrder#priority
|
583
|
+
# @see ModernTreasury::Models::PaymentOrder#priority
|
613
584
|
module Priority
|
614
585
|
extend ModernTreasury::Internal::Type::Enum
|
615
586
|
|
@@ -620,7 +591,7 @@ module ModernTreasury
|
|
620
591
|
# @return [Array<Symbol>]
|
621
592
|
end
|
622
593
|
|
623
|
-
# @see ModernTreasury::PaymentOrder#receiving_account_type
|
594
|
+
# @see ModernTreasury::Models::PaymentOrder#receiving_account_type
|
624
595
|
module ReceivingAccountType
|
625
596
|
extend ModernTreasury::Internal::Type::Enum
|
626
597
|
|
@@ -663,7 +634,7 @@ module ModernTreasury
|
|
663
634
|
# @!attribute reference_number_type
|
664
635
|
# The type of the reference number. Referring to the vendor payment id.
|
665
636
|
#
|
666
|
-
# @return [Symbol, ModernTreasury::PaymentOrder::ReferenceNumber::ReferenceNumberType]
|
637
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrder::ReferenceNumber::ReferenceNumberType]
|
667
638
|
required :reference_number_type,
|
668
639
|
enum: -> { ModernTreasury::PaymentOrder::ReferenceNumber::ReferenceNumberType }
|
669
640
|
|
@@ -674,7 +645,7 @@ module ModernTreasury
|
|
674
645
|
|
675
646
|
# @!method initialize(id:, created_at:, live_mode:, object:, reference_number:, reference_number_type:, updated_at:)
|
676
647
|
# Some parameter documentations has been truncated, see
|
677
|
-
# {ModernTreasury::PaymentOrder::ReferenceNumber} for more details.
|
648
|
+
# {ModernTreasury::Models::PaymentOrder::ReferenceNumber} for more details.
|
678
649
|
#
|
679
650
|
# @param id [String]
|
680
651
|
#
|
@@ -686,13 +657,13 @@ module ModernTreasury
|
|
686
657
|
#
|
687
658
|
# @param reference_number [String] The vendor reference number.
|
688
659
|
#
|
689
|
-
# @param reference_number_type [Symbol, ModernTreasury::PaymentOrder::ReferenceNumber::ReferenceNumberType] The type of the reference number. Referring to the vendor payment id.
|
660
|
+
# @param reference_number_type [Symbol, ModernTreasury::Models::PaymentOrder::ReferenceNumber::ReferenceNumberType] The type of the reference number. Referring to the vendor payment id.
|
690
661
|
#
|
691
662
|
# @param updated_at [Time]
|
692
663
|
|
693
664
|
# The type of the reference number. Referring to the vendor payment id.
|
694
665
|
#
|
695
|
-
# @see ModernTreasury::PaymentOrder::ReferenceNumber#reference_number_type
|
666
|
+
# @see ModernTreasury::Models::PaymentOrder::ReferenceNumber#reference_number_type
|
696
667
|
module ReferenceNumberType
|
697
668
|
extend ModernTreasury::Internal::Type::Enum
|
698
669
|
|
@@ -704,6 +675,10 @@ module ModernTreasury
|
|
704
675
|
BNK_DEV_TRANSFER_ID = :bnk_dev_transfer_id
|
705
676
|
BOFA_END_TO_END_ID = :bofa_end_to_end_id
|
706
677
|
BOFA_TRANSACTION_ID = :bofa_transaction_id
|
678
|
+
BRALE_TRANSFER_ID = :brale_transfer_id
|
679
|
+
BRIDGE_DESTINATION_TRANSACTION_HASH = :bridge_destination_transaction_hash
|
680
|
+
BRIDGE_SOURCE_TRANSACTION_HASH = :bridge_source_transaction_hash
|
681
|
+
BRIDGE_TRANSFER_ID = :bridge_transfer_id
|
707
682
|
CHECK_NUMBER = :check_number
|
708
683
|
CITIBANK_REFERENCE_NUMBER = :citibank_reference_number
|
709
684
|
CITIBANK_WORLDLINK_CLEARING_SYSTEM_REFERENCE_NUMBER =
|
@@ -779,7 +754,7 @@ module ModernTreasury
|
|
779
754
|
|
780
755
|
# The current status of the payment order.
|
781
756
|
#
|
782
|
-
# @see ModernTreasury::PaymentOrder#status
|
757
|
+
# @see ModernTreasury::Models::PaymentOrder#status
|
783
758
|
module Status
|
784
759
|
extend ModernTreasury::Internal::Type::Enum
|
785
760
|
|
@@ -802,7 +777,7 @@ module ModernTreasury
|
|
802
777
|
# The account to which the originating of this payment should be attributed to.
|
803
778
|
# Can be a `virtual_account` or `internal_account`.
|
804
779
|
#
|
805
|
-
# @see ModernTreasury::PaymentOrder#ultimate_originating_account
|
780
|
+
# @see ModernTreasury::Models::PaymentOrder#ultimate_originating_account
|
806
781
|
module UltimateOriginatingAccount
|
807
782
|
extend ModernTreasury::Internal::Type::Union
|
808
783
|
|
@@ -811,14 +786,10 @@ module ModernTreasury
|
|
811
786
|
variant -> { ModernTreasury::InternalAccount }
|
812
787
|
|
813
788
|
# @!method self.variants
|
814
|
-
# @return [Array(ModernTreasury::VirtualAccount, ModernTreasury::InternalAccount)]
|
815
|
-
|
816
|
-
define_sorbet_constant!(:Variants) do
|
817
|
-
T.type_alias { T.any(ModernTreasury::VirtualAccount, ModernTreasury::InternalAccount) }
|
818
|
-
end
|
789
|
+
# @return [Array(ModernTreasury::Models::VirtualAccount, ModernTreasury::Models::InternalAccount)]
|
819
790
|
end
|
820
791
|
|
821
|
-
# @see ModernTreasury::PaymentOrder#ultimate_originating_account_type
|
792
|
+
# @see ModernTreasury::Models::PaymentOrder#ultimate_originating_account_type
|
822
793
|
module UltimateOriginatingAccountType
|
823
794
|
extend ModernTreasury::Internal::Type::Enum
|
824
795
|
|