modern_treasury 0.0.0 → 0.1.0.pre.alpha.16
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/README.md +168 -0
- data/lib/modern_treasury/base_client.rb +457 -0
- data/lib/modern_treasury/base_model.rb +1211 -0
- data/lib/modern_treasury/base_page.rb +59 -0
- data/lib/modern_treasury/client.rb +250 -0
- data/lib/modern_treasury/errors.rb +183 -0
- data/lib/modern_treasury/extern.rb +7 -0
- data/lib/modern_treasury/models/account_collection_flow.rb +199 -0
- data/lib/modern_treasury/models/account_collection_flow_create_params.rb +72 -0
- data/lib/modern_treasury/models/account_collection_flow_list_params.rb +85 -0
- data/lib/modern_treasury/models/account_collection_flow_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/account_collection_flow_update_params.rb +40 -0
- data/lib/modern_treasury/models/account_detail.rb +113 -0
- data/lib/modern_treasury/models/account_detail_create_params.rb +79 -0
- data/lib/modern_treasury/models/account_detail_delete_params.rb +42 -0
- data/lib/modern_treasury/models/account_detail_list_params.rb +40 -0
- data/lib/modern_treasury/models/account_detail_retrieve_params.rb +30 -0
- data/lib/modern_treasury/models/accounts_type.rb +18 -0
- data/lib/modern_treasury/models/async_response.rb +25 -0
- data/lib/modern_treasury/models/bank_settings.rb +97 -0
- data/lib/modern_treasury/models/bulk_request.rb +159 -0
- data/lib/modern_treasury/models/bulk_request_create_params.rb +4128 -0
- data/lib/modern_treasury/models/bulk_request_list_params.rb +137 -0
- data/lib/modern_treasury/models/bulk_request_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/bulk_result.rb +272 -0
- data/lib/modern_treasury/models/bulk_result_list_params.rb +151 -0
- data/lib/modern_treasury/models/bulk_result_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/client_ping_params.rb +18 -0
- data/lib/modern_treasury/models/connection.rb +85 -0
- data/lib/modern_treasury/models/connection_legal_entity.rb +109 -0
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +1024 -0
- data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +89 -0
- data/lib/modern_treasury/models/connection_legal_entity_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/connection_legal_entity_update_params.rb +42 -0
- data/lib/modern_treasury/models/connection_list_params.rb +56 -0
- data/lib/modern_treasury/models/counterparty.rb +561 -0
- data/lib/modern_treasury/models/counterparty_collect_account_params.rb +110 -0
- data/lib/modern_treasury/models/counterparty_collect_account_response.rb +38 -0
- data/lib/modern_treasury/models/counterparty_create_params.rb +1737 -0
- data/lib/modern_treasury/models/counterparty_delete_params.rb +18 -0
- data/lib/modern_treasury/models/counterparty_list_params.rb +117 -0
- data/lib/modern_treasury/models/counterparty_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/counterparty_update_params.rb +93 -0
- data/lib/modern_treasury/models/currency.rb +206 -0
- data/lib/modern_treasury/models/document.rb +247 -0
- data/lib/modern_treasury/models/document_create_params.rb +71 -0
- data/lib/modern_treasury/models/document_list_params.rb +84 -0
- data/lib/modern_treasury/models/document_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/event.rb +94 -0
- data/lib/modern_treasury/models/event_list_params.rb +98 -0
- data/lib/modern_treasury/models/event_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/expected_payment.rb +285 -0
- data/lib/modern_treasury/models/expected_payment_create_params.rb +537 -0
- data/lib/modern_treasury/models/expected_payment_delete_params.rb +18 -0
- data/lib/modern_treasury/models/expected_payment_list_params.rb +199 -0
- data/lib/modern_treasury/models/expected_payment_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/expected_payment_type.rb +48 -0
- data/lib/modern_treasury/models/expected_payment_update_params.rb +207 -0
- data/lib/modern_treasury/models/external_account.rb +389 -0
- data/lib/modern_treasury/models/external_account_complete_verification_params.rb +28 -0
- data/lib/modern_treasury/models/external_account_create_params.rb +570 -0
- data/lib/modern_treasury/models/external_account_delete_params.rb +18 -0
- data/lib/modern_treasury/models/external_account_list_params.rb +78 -0
- data/lib/modern_treasury/models/external_account_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/external_account_type.rb +25 -0
- data/lib/modern_treasury/models/external_account_update_params.rb +159 -0
- data/lib/modern_treasury/models/external_account_verify_params.rb +151 -0
- data/lib/modern_treasury/models/external_account_verify_response.rb +186 -0
- data/lib/modern_treasury/models/foreign_exchange_quote.rb +180 -0
- data/lib/modern_treasury/models/foreign_exchange_quote_create_params.rb +89 -0
- data/lib/modern_treasury/models/foreign_exchange_quote_list_params.rb +127 -0
- data/lib/modern_treasury/models/foreign_exchange_quote_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/incoming_payment_detail.rb +320 -0
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +141 -0
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +170 -0
- data/lib/modern_treasury/models/incoming_payment_detail_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/incoming_payment_detail_update_params.rb +30 -0
- data/lib/modern_treasury/models/internal_account.rb +299 -0
- data/lib/modern_treasury/models/internal_account_create_params.rb +186 -0
- data/lib/modern_treasury/models/internal_account_list_params.rb +157 -0
- data/lib/modern_treasury/models/internal_account_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/internal_account_update_params.rb +84 -0
- data/lib/modern_treasury/models/internal_accounts/balance_report.rb +260 -0
- data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +135 -0
- data/lib/modern_treasury/models/internal_accounts/balance_report_delete_params.rb +26 -0
- data/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rb +77 -0
- data/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb +26 -0
- data/lib/modern_treasury/models/invoice.rb +624 -0
- data/lib/modern_treasury/models/invoice_add_payment_order_params.rb +24 -0
- data/lib/modern_treasury/models/invoice_create_params.rb +649 -0
- data/lib/modern_treasury/models/invoice_list_params.rb +163 -0
- data/lib/modern_treasury/models/invoice_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/invoice_update_params.rb +665 -0
- data/lib/modern_treasury/models/invoices/invoice_line_item.rb +130 -0
- data/lib/modern_treasury/models/invoices/line_item_create_params.rb +108 -0
- data/lib/modern_treasury/models/invoices/line_item_delete_params.rb +26 -0
- data/lib/modern_treasury/models/invoices/line_item_list_params.rb +36 -0
- data/lib/modern_treasury/models/invoices/line_item_retrieve_params.rb +26 -0
- data/lib/modern_treasury/models/invoices/line_item_update_params.rb +123 -0
- data/lib/modern_treasury/models/ledger.rb +73 -0
- data/lib/modern_treasury/models/ledger_account.rb +351 -0
- data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +337 -0
- data/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rb +92 -0
- data/lib/modern_treasury/models/ledger_account_balance_monitor_delete_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_account_balance_monitor_list_params.rb +70 -0
- data/lib/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_account_balance_monitor_update_params.rb +41 -0
- data/lib/modern_treasury/models/ledger_account_category.rb +282 -0
- data/lib/modern_treasury/models/ledger_account_category_add_ledger_account_params.rb +24 -0
- data/lib/modern_treasury/models/ledger_account_category_add_nested_category_params.rb +24 -0
- data/lib/modern_treasury/models/ledger_account_category_create_params.rb +97 -0
- data/lib/modern_treasury/models/ledger_account_category_delete_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_account_category_list_params.rb +162 -0
- data/lib/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rb +24 -0
- data/lib/modern_treasury/models/ledger_account_category_remove_nested_category_params.rb +24 -0
- data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +63 -0
- data/lib/modern_treasury/models/ledger_account_category_update_params.rb +48 -0
- data/lib/modern_treasury/models/ledger_account_create_params.rb +142 -0
- data/lib/modern_treasury/models/ledger_account_delete_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_account_list_params.rb +467 -0
- data/lib/modern_treasury/models/ledger_account_retrieve_params.rb +108 -0
- data/lib/modern_treasury/models/ledger_account_settlement.rb +175 -0
- data/lib/modern_treasury/models/ledger_account_settlement_create_params.rb +117 -0
- data/lib/modern_treasury/models/ledger_account_settlement_list_params.rb +140 -0
- data/lib/modern_treasury/models/ledger_account_settlement_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_account_settlement_update_params.rb +64 -0
- data/lib/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rb +28 -0
- data/lib/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rb +28 -0
- data/lib/modern_treasury/models/ledger_account_statement_create_params.rb +71 -0
- data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +488 -0
- data/lib/modern_treasury/models/ledger_account_statement_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +488 -0
- data/lib/modern_treasury/models/ledger_account_update_params.rb +48 -0
- data/lib/modern_treasury/models/ledger_create_params.rb +44 -0
- data/lib/modern_treasury/models/ledger_delete_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_entry.rb +346 -0
- data/lib/modern_treasury/models/ledger_entry_list_params.rb +347 -0
- data/lib/modern_treasury/models/ledger_entry_retrieve_params.rb +30 -0
- data/lib/modern_treasury/models/ledger_entry_update_params.rb +30 -0
- data/lib/modern_treasury/models/ledger_event_handler.rb +218 -0
- data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +185 -0
- data/lib/modern_treasury/models/ledger_event_handler_delete_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_event_handler_list_params.rb +70 -0
- data/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_event_handler_variable.rb +58 -0
- data/lib/modern_treasury/models/ledger_list_params.rb +72 -0
- data/lib/modern_treasury/models/ledger_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_transaction.rb +213 -0
- data/lib/modern_treasury/models/ledger_transaction_create_params.rb +272 -0
- data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +127 -0
- data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +146 -0
- data/lib/modern_treasury/models/ledger_transaction_list_params.rb +339 -0
- data/lib/modern_treasury/models/ledger_transaction_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_transaction_update_params.rb +250 -0
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +555 -0
- data/lib/modern_treasury/models/ledger_transactions/version_list_params.rb +96 -0
- data/lib/modern_treasury/models/ledger_update_params.rb +48 -0
- data/lib/modern_treasury/models/ledgerable_event.rb +96 -0
- data/lib/modern_treasury/models/ledgerable_event_create_params.rb +51 -0
- data/lib/modern_treasury/models/ledgerable_event_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/legal_entity.rb +544 -0
- data/lib/modern_treasury/models/legal_entity_association.rb +655 -0
- data/lib/modern_treasury/models/legal_entity_association_create_params.rb +531 -0
- data/lib/modern_treasury/models/legal_entity_create_params.rb +964 -0
- data/lib/modern_treasury/models/legal_entity_list_params.rb +90 -0
- data/lib/modern_treasury/models/legal_entity_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/legal_entity_update_params.rb +417 -0
- data/lib/modern_treasury/models/line_item.rb +161 -0
- data/lib/modern_treasury/models/line_item_list_params.rb +53 -0
- data/lib/modern_treasury/models/line_item_retrieve_params.rb +43 -0
- data/lib/modern_treasury/models/line_item_update_params.rb +55 -0
- data/lib/modern_treasury/models/paper_item.rb +175 -0
- data/lib/modern_treasury/models/paper_item_list_params.rb +78 -0
- data/lib/modern_treasury/models/paper_item_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/payment_flow.rb +293 -0
- data/lib/modern_treasury/models/payment_flow_create_params.rb +95 -0
- data/lib/modern_treasury/models/payment_flow_list_params.rb +107 -0
- data/lib/modern_treasury/models/payment_flow_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/payment_flow_update_params.rb +40 -0
- data/lib/modern_treasury/models/payment_order.rb +824 -0
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +1387 -0
- data/lib/modern_treasury/models/payment_order_create_params.rb +1460 -0
- data/lib/modern_treasury/models/payment_order_list_params.rb +299 -0
- data/lib/modern_treasury/models/payment_order_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/payment_order_subtype.rb +49 -0
- data/lib/modern_treasury/models/payment_order_type.rb +49 -0
- data/lib/modern_treasury/models/payment_order_update_params.rb +1146 -0
- data/lib/modern_treasury/models/payment_orders/reversal.rb +139 -0
- data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +340 -0
- data/lib/modern_treasury/models/payment_orders/reversal_list_params.rb +36 -0
- data/lib/modern_treasury/models/payment_orders/reversal_retrieve_params.rb +26 -0
- data/lib/modern_treasury/models/payment_reference.rb +189 -0
- data/lib/modern_treasury/models/payment_reference_list_params.rb +96 -0
- data/lib/modern_treasury/models/payment_reference_retireve_params.rb +18 -0
- data/lib/modern_treasury/models/payment_reference_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/ping_response.rb +19 -0
- data/lib/modern_treasury/models/reconciliation_rule.rb +163 -0
- data/lib/modern_treasury/models/return_create_params.rb +154 -0
- data/lib/modern_treasury/models/return_list_params.rb +110 -0
- data/lib/modern_treasury/models/return_object.rb +485 -0
- data/lib/modern_treasury/models/return_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/routing_detail.rb +276 -0
- data/lib/modern_treasury/models/routing_detail_create_params.rb +141 -0
- data/lib/modern_treasury/models/routing_detail_delete_params.rb +42 -0
- data/lib/modern_treasury/models/routing_detail_list_params.rb +40 -0
- data/lib/modern_treasury/models/routing_detail_retrieve_params.rb +30 -0
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +211 -0
- data/lib/modern_treasury/models/transaction.rb +383 -0
- data/lib/modern_treasury/models/transaction_create_params.rb +163 -0
- data/lib/modern_treasury/models/transaction_delete_params.rb +18 -0
- data/lib/modern_treasury/models/transaction_direction.rb +18 -0
- data/lib/modern_treasury/models/transaction_list_params.rb +186 -0
- data/lib/modern_treasury/models/transaction_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/transaction_update_params.rb +30 -0
- data/lib/modern_treasury/models/transactions/line_item_create_params.rb +42 -0
- data/lib/modern_treasury/models/transactions/line_item_delete_params.rb +20 -0
- data/lib/modern_treasury/models/transactions/line_item_list_params.rb +75 -0
- data/lib/modern_treasury/models/transactions/line_item_retrieve_params.rb +20 -0
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +182 -0
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +72 -0
- data/lib/modern_treasury/models/virtual_account.rb +148 -0
- data/lib/modern_treasury/models/virtual_account_create_params.rb +444 -0
- data/lib/modern_treasury/models/virtual_account_delete_params.rb +18 -0
- data/lib/modern_treasury/models/virtual_account_list_params.rb +77 -0
- data/lib/modern_treasury/models/virtual_account_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/virtual_account_update_params.rb +55 -0
- data/lib/modern_treasury/models/wealth_and_employment_details.rb +324 -0
- data/lib/modern_treasury/page.rb +92 -0
- data/lib/modern_treasury/pooled_net_requester.rb +180 -0
- data/lib/modern_treasury/request_options.rb +108 -0
- data/lib/modern_treasury/resources/account_collection_flows.rb +108 -0
- data/lib/modern_treasury/resources/account_details.rb +136 -0
- data/lib/modern_treasury/resources/bulk_requests.rb +91 -0
- data/lib/modern_treasury/resources/bulk_results.rb +66 -0
- data/lib/modern_treasury/resources/connection_legal_entities.rb +105 -0
- data/lib/modern_treasury/resources/connections.rb +39 -0
- data/lib/modern_treasury/resources/counterparties.rb +203 -0
- data/lib/modern_treasury/resources/documents.rb +86 -0
- data/lib/modern_treasury/resources/events.rb +63 -0
- data/lib/modern_treasury/resources/expected_payments.rb +227 -0
- data/lib/modern_treasury/resources/external_accounts.rb +222 -0
- data/lib/modern_treasury/resources/foreign_exchange_quotes.rb +101 -0
- data/lib/modern_treasury/resources/incoming_payment_details.rb +133 -0
- data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +128 -0
- data/lib/modern_treasury/resources/internal_accounts.rb +140 -0
- data/lib/modern_treasury/resources/invoices/line_items.rb +177 -0
- data/lib/modern_treasury/resources/invoices.rb +286 -0
- data/lib/modern_treasury/resources/ledger_account_balance_monitors.rb +132 -0
- data/lib/modern_treasury/resources/ledger_account_categories.rb +266 -0
- data/lib/modern_treasury/resources/ledger_account_settlements/account_entries.rb +62 -0
- data/lib/modern_treasury/resources/ledger_account_settlements.rb +152 -0
- data/lib/modern_treasury/resources/ledger_account_statements.rb +62 -0
- data/lib/modern_treasury/resources/ledger_accounts.rb +189 -0
- data/lib/modern_treasury/resources/ledger_entries.rb +137 -0
- data/lib/modern_treasury/resources/ledger_event_handlers.rb +114 -0
- data/lib/modern_treasury/resources/ledger_transactions/versions.rb +50 -0
- data/lib/modern_treasury/resources/ledger_transactions.rb +262 -0
- data/lib/modern_treasury/resources/ledgerable_events.rb +57 -0
- data/lib/modern_treasury/resources/ledgers.rb +134 -0
- data/lib/modern_treasury/resources/legal_entities.rb +193 -0
- data/lib/modern_treasury/resources/legal_entity_associations.rb +43 -0
- data/lib/modern_treasury/resources/line_items.rb +109 -0
- data/lib/modern_treasury/resources/paper_items.rb +60 -0
- data/lib/modern_treasury/resources/payment_flows.rb +123 -0
- data/lib/modern_treasury/resources/payment_orders/reversals.rb +95 -0
- data/lib/modern_treasury/resources/payment_orders.rb +517 -0
- data/lib/modern_treasury/resources/payment_references.rb +66 -0
- data/lib/modern_treasury/resources/returns.rb +98 -0
- data/lib/modern_treasury/resources/routing_details.rb +140 -0
- data/lib/modern_treasury/resources/transactions/line_items.rb +104 -0
- data/lib/modern_treasury/resources/transactions.rb +174 -0
- data/lib/modern_treasury/resources/validations.rb +38 -0
- data/lib/modern_treasury/resources/virtual_accounts.rb +152 -0
- data/lib/modern_treasury/util.rb +728 -0
- data/lib/modern_treasury/version.rb +5 -0
- data/lib/modern_treasury.rb +310 -0
- data/manifest.yaml +14 -0
- data/rbi/lib/modern_treasury/base_client.rbi +197 -0
- data/rbi/lib/modern_treasury/base_model.rbi +645 -0
- data/rbi/lib/modern_treasury/base_page.rbi +36 -0
- data/rbi/lib/modern_treasury/client.rbi +174 -0
- data/rbi/lib/modern_treasury/errors.rbi +144 -0
- data/rbi/lib/modern_treasury/extern.rbi +7 -0
- data/rbi/lib/modern_treasury/models/account_collection_flow.rbi +203 -0
- data/rbi/lib/modern_treasury/models/account_collection_flow_create_params.rbi +114 -0
- data/rbi/lib/modern_treasury/models/account_collection_flow_list_params.rbi +83 -0
- data/rbi/lib/modern_treasury/models/account_collection_flow_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/account_collection_flow_update_params.rbi +57 -0
- data/rbi/lib/modern_treasury/models/account_detail.rbi +115 -0
- data/rbi/lib/modern_treasury/models/account_detail_create_params.rbi +107 -0
- data/rbi/lib/modern_treasury/models/account_detail_delete_params.rbi +56 -0
- data/rbi/lib/modern_treasury/models/account_detail_list_params.rbi +48 -0
- data/rbi/lib/modern_treasury/models/account_detail_retrieve_params.rbi +40 -0
- data/rbi/lib/modern_treasury/models/accounts_type.rbi +19 -0
- data/rbi/lib/modern_treasury/models/async_response.rbi +21 -0
- data/rbi/lib/modern_treasury/models/bank_settings.rbi +96 -0
- data/rbi/lib/modern_treasury/models/bulk_request.rbi +162 -0
- data/rbi/lib/modern_treasury/models/bulk_request_create_params.rbi +6311 -0
- data/rbi/lib/modern_treasury/models/bulk_request_list_params.rbi +146 -0
- data/rbi/lib/modern_treasury/models/bulk_request_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/bulk_result.rbi +286 -0
- data/rbi/lib/modern_treasury/models/bulk_result_list_params.rbi +157 -0
- data/rbi/lib/modern_treasury/models/bulk_result_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/client_ping_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/connection.rbi +85 -0
- data/rbi/lib/modern_treasury/models/connection_legal_entity.rbi +110 -0
- data/rbi/lib/modern_treasury/models/connection_legal_entity_create_params.rbi +1752 -0
- data/rbi/lib/modern_treasury/models/connection_legal_entity_list_params.rbi +94 -0
- data/rbi/lib/modern_treasury/models/connection_legal_entity_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/connection_legal_entity_update_params.rbi +58 -0
- data/rbi/lib/modern_treasury/models/connection_list_params.rbi +61 -0
- data/rbi/lib/modern_treasury/models/counterparty.rbi +607 -0
- data/rbi/lib/modern_treasury/models/counterparty_collect_account_params.rbi +161 -0
- data/rbi/lib/modern_treasury/models/counterparty_collect_account_response.rbi +31 -0
- data/rbi/lib/modern_treasury/models/counterparty_create_params.rbi +2867 -0
- data/rbi/lib/modern_treasury/models/counterparty_delete_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/counterparty_list_params.rbi +111 -0
- data/rbi/lib/modern_treasury/models/counterparty_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/counterparty_update_params.rbi +91 -0
- data/rbi/lib/modern_treasury/models/currency.rbi +207 -0
- data/rbi/lib/modern_treasury/models/document.rbi +243 -0
- data/rbi/lib/modern_treasury/models/document_create_params.rbi +95 -0
- data/rbi/lib/modern_treasury/models/document_list_params.rbi +105 -0
- data/rbi/lib/modern_treasury/models/document_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/event.rbi +82 -0
- data/rbi/lib/modern_treasury/models/event_list_params.rbi +94 -0
- data/rbi/lib/modern_treasury/models/event_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/expected_payment.rbi +272 -0
- data/rbi/lib/modern_treasury/models/expected_payment_create_params.rbi +616 -0
- data/rbi/lib/modern_treasury/models/expected_payment_delete_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/expected_payment_list_params.rbi +197 -0
- data/rbi/lib/modern_treasury/models/expected_payment_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/expected_payment_type.rbi +49 -0
- data/rbi/lib/modern_treasury/models/expected_payment_update_params.rbi +201 -0
- data/rbi/lib/modern_treasury/models/external_account.rbi +410 -0
- data/rbi/lib/modern_treasury/models/external_account_complete_verification_params.rbi +30 -0
- data/rbi/lib/modern_treasury/models/external_account_create_params.rbi +959 -0
- data/rbi/lib/modern_treasury/models/external_account_delete_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/external_account_list_params.rbi +78 -0
- data/rbi/lib/modern_treasury/models/external_account_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/external_account_type.rbi +26 -0
- data/rbi/lib/modern_treasury/models/external_account_update_params.rbi +170 -0
- data/rbi/lib/modern_treasury/models/external_account_verify_params.rbi +167 -0
- data/rbi/lib/modern_treasury/models/external_account_verify_response.rbi +395 -0
- data/rbi/lib/modern_treasury/models/foreign_exchange_quote.rbi +188 -0
- data/rbi/lib/modern_treasury/models/foreign_exchange_quote_create_params.rbi +88 -0
- data/rbi/lib/modern_treasury/models/foreign_exchange_quote_list_params.rbi +119 -0
- data/rbi/lib/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/incoming_payment_detail.rbi +427 -0
- data/rbi/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +153 -0
- data/rbi/lib/modern_treasury/models/incoming_payment_detail_list_params.rbi +170 -0
- data/rbi/lib/modern_treasury/models/incoming_payment_detail_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/incoming_payment_detail_update_params.rbi +34 -0
- data/rbi/lib/modern_treasury/models/internal_account.rbi +302 -0
- data/rbi/lib/modern_treasury/models/internal_account_create_params.rbi +193 -0
- data/rbi/lib/modern_treasury/models/internal_account_list_params.rbi +158 -0
- data/rbi/lib/modern_treasury/models/internal_account_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/internal_account_update_params.rbi +83 -0
- data/rbi/lib/modern_treasury/models/internal_accounts/balance_report.rbi +311 -0
- data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +235 -0
- data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_delete_params.rbi +31 -0
- data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rbi +119 -0
- data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbi +31 -0
- data/rbi/lib/modern_treasury/models/invoice.rbi +648 -0
- data/rbi/lib/modern_treasury/models/invoice_add_payment_order_params.rbi +30 -0
- data/rbi/lib/modern_treasury/models/invoice_create_params.rbi +707 -0
- data/rbi/lib/modern_treasury/models/invoice_list_params.rbi +154 -0
- data/rbi/lib/modern_treasury/models/invoice_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/invoice_update_params.rbi +719 -0
- data/rbi/lib/modern_treasury/models/invoices/invoice_line_item.rbi +126 -0
- data/rbi/lib/modern_treasury/models/invoices/line_item_create_params.rbi +105 -0
- data/rbi/lib/modern_treasury/models/invoices/line_item_delete_params.rbi +29 -0
- data/rbi/lib/modern_treasury/models/invoices/line_item_list_params.rbi +45 -0
- data/rbi/lib/modern_treasury/models/invoices/line_item_retrieve_params.rbi +29 -0
- data/rbi/lib/modern_treasury/models/invoices/line_item_update_params.rbi +117 -0
- data/rbi/lib/modern_treasury/models/ledger.rbi +76 -0
- data/rbi/lib/modern_treasury/models/ledger_account.rbi +401 -0
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor.rbi +447 -0
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rbi +103 -0
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_list_params.rbi +73 -0
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_update_params.rbi +49 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category.rbi +354 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbi +30 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_add_nested_category_params.rbi +30 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_create_params.rbi +96 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_delete_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_list_params.rbi +154 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbi +30 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbi +30 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_retrieve_params.rbi +77 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_update_params.rbi +55 -0
- data/rbi/lib/modern_treasury/models/ledger_account_create_params.rbi +146 -0
- data/rbi/lib/modern_treasury/models/ledger_account_delete_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ledger_account_list_params.rbi +454 -0
- data/rbi/lib/modern_treasury/models/ledger_account_retrieve_params.rbi +121 -0
- data/rbi/lib/modern_treasury/models/ledger_account_settlement.rbi +169 -0
- data/rbi/lib/modern_treasury/models/ledger_account_settlement_create_params.rbi +123 -0
- data/rbi/lib/modern_treasury/models/ledger_account_settlement_list_params.rbi +130 -0
- data/rbi/lib/modern_treasury/models/ledger_account_settlement_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ledger_account_settlement_update_params.rbi +79 -0
- data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbi +39 -0
- data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbi +37 -0
- data/rbi/lib/modern_treasury/models/ledger_account_statement_create_params.rbi +74 -0
- data/rbi/lib/modern_treasury/models/ledger_account_statement_create_response.rbi +638 -0
- data/rbi/lib/modern_treasury/models/ledger_account_statement_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rbi +638 -0
- data/rbi/lib/modern_treasury/models/ledger_account_update_params.rbi +55 -0
- data/rbi/lib/modern_treasury/models/ledger_create_params.rbi +52 -0
- data/rbi/lib/modern_treasury/models/ledger_delete_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ledger_entry.rbi +415 -0
- data/rbi/lib/modern_treasury/models/ledger_entry_list_params.rbi +342 -0
- data/rbi/lib/modern_treasury/models/ledger_entry_retrieve_params.rbi +32 -0
- data/rbi/lib/modern_treasury/models/ledger_entry_update_params.rbi +34 -0
- data/rbi/lib/modern_treasury/models/ledger_event_handler.rbi +231 -0
- data/rbi/lib/modern_treasury/models/ledger_event_handler_create_params.rbi +210 -0
- data/rbi/lib/modern_treasury/models/ledger_event_handler_delete_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ledger_event_handler_list_params.rbi +73 -0
- data/rbi/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ledger_event_handler_variable.rbi +59 -0
- data/rbi/lib/modern_treasury/models/ledger_list_params.rbi +75 -0
- data/rbi/lib/modern_treasury/models/ledger_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ledger_transaction.rbi +208 -0
- data/rbi/lib/modern_treasury/models/ledger_transaction_create_params.rbi +286 -0
- data/rbi/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rbi +171 -0
- data/rbi/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +191 -0
- data/rbi/lib/modern_treasury/models/ledger_transaction_list_params.rbi +360 -0
- data/rbi/lib/modern_treasury/models/ledger_transaction_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ledger_transaction_update_params.rbi +272 -0
- data/rbi/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +731 -0
- data/rbi/lib/modern_treasury/models/ledger_transactions/version_list_params.rbi +94 -0
- data/rbi/lib/modern_treasury/models/ledger_update_params.rbi +55 -0
- data/rbi/lib/modern_treasury/models/ledgerable_event.rbi +94 -0
- data/rbi/lib/modern_treasury/models/ledgerable_event_create_params.rbi +58 -0
- data/rbi/lib/modern_treasury/models/ledgerable_event_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/legal_entity.rbi +543 -0
- data/rbi/lib/modern_treasury/models/legal_entity_association.rbi +879 -0
- data/rbi/lib/modern_treasury/models/legal_entity_association_create_params.rbi +892 -0
- data/rbi/lib/modern_treasury/models/legal_entity_create_params.rbi +1421 -0
- data/rbi/lib/modern_treasury/models/legal_entity_list_params.rbi +94 -0
- data/rbi/lib/modern_treasury/models/legal_entity_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/legal_entity_update_params.rbi +487 -0
- data/rbi/lib/modern_treasury/models/line_item.rbi +158 -0
- data/rbi/lib/modern_treasury/models/line_item_list_params.rbi +65 -0
- data/rbi/lib/modern_treasury/models/line_item_retrieve_params.rbi +58 -0
- data/rbi/lib/modern_treasury/models/line_item_update_params.rbi +68 -0
- data/rbi/lib/modern_treasury/models/paper_item.rbi +167 -0
- data/rbi/lib/modern_treasury/models/paper_item_list_params.rbi +78 -0
- data/rbi/lib/modern_treasury/models/paper_item_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/payment_flow.rbi +285 -0
- data/rbi/lib/modern_treasury/models/payment_flow_create_params.rbi +99 -0
- data/rbi/lib/modern_treasury/models/payment_flow_list_params.rbi +101 -0
- data/rbi/lib/modern_treasury/models/payment_flow_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/payment_flow_update_params.rbi +53 -0
- data/rbi/lib/modern_treasury/models/payment_order.rbi +1115 -0
- data/rbi/lib/modern_treasury/models/payment_order_create_async_params.rbi +2008 -0
- data/rbi/lib/modern_treasury/models/payment_order_create_params.rbi +2083 -0
- data/rbi/lib/modern_treasury/models/payment_order_list_params.rbi +282 -0
- data/rbi/lib/modern_treasury/models/payment_order_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/payment_order_subtype.rbi +50 -0
- data/rbi/lib/modern_treasury/models/payment_order_type.rbi +50 -0
- data/rbi/lib/modern_treasury/models/payment_order_update_params.rbi +1651 -0
- data/rbi/lib/modern_treasury/models/payment_orders/reversal.rbi +145 -0
- data/rbi/lib/modern_treasury/models/payment_orders/reversal_create_params.rbi +465 -0
- data/rbi/lib/modern_treasury/models/payment_orders/reversal_list_params.rbi +45 -0
- data/rbi/lib/modern_treasury/models/payment_orders/reversal_retrieve_params.rbi +29 -0
- data/rbi/lib/modern_treasury/models/payment_reference.rbi +371 -0
- data/rbi/lib/modern_treasury/models/payment_reference_list_params.rbi +109 -0
- data/rbi/lib/modern_treasury/models/payment_reference_retireve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/payment_reference_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ping_response.rbi +18 -0
- data/rbi/lib/modern_treasury/models/reconciliation_rule.rbi +164 -0
- data/rbi/lib/modern_treasury/models/return_create_params.rbi +161 -0
- data/rbi/lib/modern_treasury/models/return_list_params.rbi +112 -0
- data/rbi/lib/modern_treasury/models/return_object.rbi +769 -0
- data/rbi/lib/modern_treasury/models/return_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/routing_detail.rbi +297 -0
- data/rbi/lib/modern_treasury/models/routing_detail_create_params.rbi +207 -0
- data/rbi/lib/modern_treasury/models/routing_detail_delete_params.rbi +56 -0
- data/rbi/lib/modern_treasury/models/routing_detail_list_params.rbi +48 -0
- data/rbi/lib/modern_treasury/models/routing_detail_retrieve_params.rbi +40 -0
- data/rbi/lib/modern_treasury/models/routing_number_lookup_request.rbi +291 -0
- data/rbi/lib/modern_treasury/models/transaction.rbi +380 -0
- data/rbi/lib/modern_treasury/models/transaction_create_params.rbi +162 -0
- data/rbi/lib/modern_treasury/models/transaction_delete_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/transaction_direction.rbi +19 -0
- data/rbi/lib/modern_treasury/models/transaction_list_params.rbi +168 -0
- data/rbi/lib/modern_treasury/models/transaction_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/transaction_update_params.rbi +34 -0
- data/rbi/lib/modern_treasury/models/transactions/line_item_create_params.rbi +51 -0
- data/rbi/lib/modern_treasury/models/transactions/line_item_delete_params.rbi +23 -0
- data/rbi/lib/modern_treasury/models/transactions/line_item_list_params.rbi +84 -0
- data/rbi/lib/modern_treasury/models/transactions/line_item_retrieve_params.rbi +23 -0
- data/rbi/lib/modern_treasury/models/transactions/transaction_line_item.rbi +212 -0
- data/rbi/lib/modern_treasury/models/validation_validate_routing_number_params.rbi +178 -0
- data/rbi/lib/modern_treasury/models/virtual_account.rbi +141 -0
- data/rbi/lib/modern_treasury/models/virtual_account_create_params.rbi +753 -0
- data/rbi/lib/modern_treasury/models/virtual_account_delete_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/virtual_account_list_params.rbi +77 -0
- data/rbi/lib/modern_treasury/models/virtual_account_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/virtual_account_update_params.rbi +60 -0
- data/rbi/lib/modern_treasury/models/wealth_and_employment_details.rbi +410 -0
- data/rbi/lib/modern_treasury/page.rbi +31 -0
- data/rbi/lib/modern_treasury/pooled_net_requester.rbi +62 -0
- data/rbi/lib/modern_treasury/request_options.rbi +63 -0
- data/rbi/lib/modern_treasury/resources/account_collection_flows.rbi +88 -0
- data/rbi/lib/modern_treasury/resources/account_details.rbi +100 -0
- data/rbi/lib/modern_treasury/resources/bulk_requests.rbi +95 -0
- data/rbi/lib/modern_treasury/resources/bulk_results.rbi +60 -0
- data/rbi/lib/modern_treasury/resources/connection_legal_entities.rbi +90 -0
- data/rbi/lib/modern_treasury/resources/connections.rbi +33 -0
- data/rbi/lib/modern_treasury/resources/counterparties.rbi +198 -0
- data/rbi/lib/modern_treasury/resources/documents.rbi +72 -0
- data/rbi/lib/modern_treasury/resources/events.rbi +54 -0
- data/rbi/lib/modern_treasury/resources/expected_payments.rbi +248 -0
- data/rbi/lib/modern_treasury/resources/external_accounts.rbi +212 -0
- data/rbi/lib/modern_treasury/resources/foreign_exchange_quotes.rbi +97 -0
- data/rbi/lib/modern_treasury/resources/incoming_payment_details.rbi +127 -0
- data/rbi/lib/modern_treasury/resources/internal_accounts/balance_reports.rbi +106 -0
- data/rbi/lib/modern_treasury/resources/internal_accounts.rbi +137 -0
- data/rbi/lib/modern_treasury/resources/invoices/line_items.rbi +157 -0
- data/rbi/lib/modern_treasury/resources/invoices.rbi +338 -0
- data/rbi/lib/modern_treasury/resources/ledger_account_balance_monitors.rbi +119 -0
- data/rbi/lib/modern_treasury/resources/ledger_account_categories.rbi +227 -0
- data/rbi/lib/modern_treasury/resources/ledger_account_settlements/account_entries.rbi +51 -0
- data/rbi/lib/modern_treasury/resources/ledger_account_settlements.rbi +143 -0
- data/rbi/lib/modern_treasury/resources/ledger_account_statements.rbi +57 -0
- data/rbi/lib/modern_treasury/resources/ledger_accounts.rbi +191 -0
- data/rbi/lib/modern_treasury/resources/ledger_entries.rbi +135 -0
- data/rbi/lib/modern_treasury/resources/ledger_event_handlers.rbi +107 -0
- data/rbi/lib/modern_treasury/resources/ledger_transactions/versions.rbi +46 -0
- data/rbi/lib/modern_treasury/resources/ledger_transactions.rbi +268 -0
- data/rbi/lib/modern_treasury/resources/ledgerable_events.rbi +51 -0
- data/rbi/lib/modern_treasury/resources/ledgers.rbi +118 -0
- data/rbi/lib/modern_treasury/resources/legal_entities.rbi +217 -0
- data/rbi/lib/modern_treasury/resources/legal_entity_associations.rbi +44 -0
- data/rbi/lib/modern_treasury/resources/line_items.rbi +81 -0
- data/rbi/lib/modern_treasury/resources/paper_items.rbi +52 -0
- data/rbi/lib/modern_treasury/resources/payment_flows.rbi +108 -0
- data/rbi/lib/modern_treasury/resources/payment_orders/reversals.rbi +82 -0
- data/rbi/lib/modern_treasury/resources/payment_orders.rbi +601 -0
- data/rbi/lib/modern_treasury/resources/payment_references.rbi +53 -0
- data/rbi/lib/modern_treasury/resources/returns.rbi +91 -0
- data/rbi/lib/modern_treasury/resources/routing_details.rbi +105 -0
- data/rbi/lib/modern_treasury/resources/transactions/line_items.rbi +87 -0
- data/rbi/lib/modern_treasury/resources/transactions.rbi +166 -0
- data/rbi/lib/modern_treasury/resources/validations.rbi +33 -0
- data/rbi/lib/modern_treasury/resources/virtual_accounts.rbi +139 -0
- data/rbi/lib/modern_treasury/util.rbi +281 -0
- data/rbi/lib/modern_treasury/version.rbi +5 -0
- data/sig/modern_treasury/base_client.rbs +108 -0
- data/sig/modern_treasury/base_model.rbs +262 -0
- data/sig/modern_treasury/base_page.rbs +20 -0
- data/sig/modern_treasury/client.rbs +106 -0
- data/sig/modern_treasury/errors.rbs +99 -0
- data/sig/modern_treasury/extern.rbs +4 -0
- data/sig/modern_treasury/models/account_collection_flow.rbs +147 -0
- data/sig/modern_treasury/models/account_collection_flow_create_params.rbs +80 -0
- data/sig/modern_treasury/models/account_collection_flow_list_params.rbs +53 -0
- data/sig/modern_treasury/models/account_collection_flow_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/account_collection_flow_update_params.rbs +33 -0
- data/sig/modern_treasury/models/account_detail.rbs +81 -0
- data/sig/modern_treasury/models/account_detail_create_params.rbs +74 -0
- data/sig/modern_treasury/models/account_detail_delete_params.rbs +37 -0
- data/sig/modern_treasury/models/account_detail_list_params.rbs +33 -0
- data/sig/modern_treasury/models/account_detail_retrieve_params.rbs +27 -0
- data/sig/modern_treasury/models/accounts_type.rbs +14 -0
- data/sig/modern_treasury/models/async_response.rbs +15 -0
- data/sig/modern_treasury/models/bank_settings.rbs +54 -0
- data/sig/modern_treasury/models/bulk_request.rbs +100 -0
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +2594 -0
- data/sig/modern_treasury/models/bulk_request_list_params.rbs +97 -0
- data/sig/modern_treasury/models/bulk_request_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/bulk_result.rbs +176 -0
- data/sig/modern_treasury/models/bulk_result_list_params.rbs +106 -0
- data/sig/modern_treasury/models/bulk_result_retrieve_params.rbs +14 -0
- data/sig/modern_treasury/models/client_ping_params.rbs +14 -0
- data/sig/modern_treasury/models/connection.rbs +50 -0
- data/sig/modern_treasury/models/connection_legal_entity.rbs +67 -0
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +711 -0
- data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +62 -0
- data/sig/modern_treasury/models/connection_legal_entity_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/connection_legal_entity_update_params.rbs +37 -0
- data/sig/modern_treasury/models/connection_list_params.rbs +41 -0
- data/sig/modern_treasury/models/counterparty.rbs +343 -0
- data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +110 -0
- data/sig/modern_treasury/models/counterparty_collect_account_response.rbs +18 -0
- data/sig/modern_treasury/models/counterparty_create_params.rbs +1265 -0
- data/sig/modern_treasury/models/counterparty_delete_params.rbs +14 -0
- data/sig/modern_treasury/models/counterparty_list_params.rbs +65 -0
- data/sig/modern_treasury/models/counterparty_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/counterparty_update_params.rbs +53 -0
- data/sig/modern_treasury/models/currency.rbs +390 -0
- data/sig/modern_treasury/models/document.rbs +162 -0
- data/sig/modern_treasury/models/document_create_params.rbs +70 -0
- data/sig/modern_treasury/models/document_list_params.rbs +76 -0
- data/sig/modern_treasury/models/document_retrieve_params.rbs +14 -0
- data/sig/modern_treasury/models/event.rbs +54 -0
- data/sig/modern_treasury/models/event_list_params.rbs +59 -0
- data/sig/modern_treasury/models/event_retrieve_params.rbs +14 -0
- data/sig/modern_treasury/models/expected_payment.rbs +154 -0
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +294 -0
- data/sig/modern_treasury/models/expected_payment_delete_params.rbs +15 -0
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +166 -0
- data/sig/modern_treasury/models/expected_payment_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/expected_payment_type.rbs +72 -0
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +110 -0
- data/sig/modern_treasury/models/external_account.rbs +235 -0
- data/sig/modern_treasury/models/external_account_complete_verification_params.rbs +22 -0
- data/sig/modern_treasury/models/external_account_create_params.rbs +463 -0
- data/sig/modern_treasury/models/external_account_delete_params.rbs +15 -0
- data/sig/modern_treasury/models/external_account_list_params.rbs +47 -0
- data/sig/modern_treasury/models/external_account_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/external_account_type.rbs +28 -0
- data/sig/modern_treasury/models/external_account_update_params.rbs +105 -0
- data/sig/modern_treasury/models/external_account_verify_params.rbs +141 -0
- data/sig/modern_treasury/models/external_account_verify_response.rbs +157 -0
- data/sig/modern_treasury/models/foreign_exchange_quote.rbs +103 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_create_params.rbs +53 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_list_params.rbs +71 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +225 -0
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +93 -0
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +108 -0
- data/sig/modern_treasury/models/incoming_payment_detail_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/incoming_payment_detail_update_params.rbs +22 -0
- data/sig/modern_treasury/models/internal_account.rbs +181 -0
- data/sig/modern_treasury/models/internal_account_create_params.rbs +115 -0
- data/sig/modern_treasury/models/internal_account_list_params.rbs +140 -0
- data/sig/modern_treasury/models/internal_account_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/internal_account_update_params.rbs +49 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +160 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +105 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_delete_params.rbs +22 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_list_params.rbs +59 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +22 -0
- data/sig/modern_treasury/models/invoice.rbs +367 -0
- data/sig/modern_treasury/models/invoice_add_payment_order_params.rbs +20 -0
- data/sig/modern_treasury/models/invoice_create_params.rbs +370 -0
- data/sig/modern_treasury/models/invoice_list_params.rbs +101 -0
- data/sig/modern_treasury/models/invoice_retrieve_params.rbs +14 -0
- data/sig/modern_treasury/models/invoice_update_params.rbs +378 -0
- data/sig/modern_treasury/models/invoices/invoice_line_item.rbs +70 -0
- data/sig/modern_treasury/models/invoices/line_item_create_params.rbs +59 -0
- data/sig/modern_treasury/models/invoices/line_item_delete_params.rbs +22 -0
- data/sig/modern_treasury/models/invoices/line_item_list_params.rbs +28 -0
- data/sig/modern_treasury/models/invoices/line_item_retrieve_params.rbs +22 -0
- data/sig/modern_treasury/models/invoices/line_item_update_params.rbs +67 -0
- data/sig/modern_treasury/models/ledger.rbs +50 -0
- data/sig/modern_treasury/models/ledger_account.rbs +212 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +215 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_create_params.rbs +57 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbs +15 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_list_params.rbs +47 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_update_params.rbs +28 -0
- data/sig/modern_treasury/models/ledger_account_category.rbs +178 -0
- data/sig/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbs +20 -0
- data/sig/modern_treasury/models/ledger_account_category_add_nested_category_params.rbs +20 -0
- data/sig/modern_treasury/models/ledger_account_category_create_params.rbs +55 -0
- data/sig/modern_treasury/models/ledger_account_category_delete_params.rbs +15 -0
- data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +91 -0
- data/sig/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbs +20 -0
- data/sig/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbs +20 -0
- data/sig/modern_treasury/models/ledger_account_category_retrieve_params.rbs +43 -0
- data/sig/modern_treasury/models/ledger_account_category_update_params.rbs +31 -0
- data/sig/modern_treasury/models/ledger_account_create_params.rbs +83 -0
- data/sig/modern_treasury/models/ledger_account_delete_params.rbs +15 -0
- data/sig/modern_treasury/models/ledger_account_list_params.rbs +285 -0
- data/sig/modern_treasury/models/ledger_account_retrieve_params.rbs +68 -0
- data/sig/modern_treasury/models/ledger_account_settlement.rbs +98 -0
- data/sig/modern_treasury/models/ledger_account_settlement_create_params.rbs +64 -0
- data/sig/modern_treasury/models/ledger_account_settlement_list_params.rbs +77 -0
- data/sig/modern_treasury/models/ledger_account_settlement_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +48 -0
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbs +22 -0
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbs +23 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_params.rbs +41 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +306 -0
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +306 -0
- data/sig/modern_treasury/models/ledger_account_update_params.rbs +31 -0
- data/sig/modern_treasury/models/ledger_create_params.rbs +29 -0
- data/sig/modern_treasury/models/ledger_delete_params.rbs +14 -0
- data/sig/modern_treasury/models/ledger_entry.rbs +206 -0
- data/sig/modern_treasury/models/ledger_entry_list_params.rbs +206 -0
- data/sig/modern_treasury/models/ledger_entry_retrieve_params.rbs +22 -0
- data/sig/modern_treasury/models/ledger_entry_update_params.rbs +22 -0
- data/sig/modern_treasury/models/ledger_event_handler.rbs +126 -0
- data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +109 -0
- data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +15 -0
- data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +47 -0
- data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +36 -0
- data/sig/modern_treasury/models/ledger_list_params.rbs +47 -0
- data/sig/modern_treasury/models/ledger_retrieve_params.rbs +14 -0
- data/sig/modern_treasury/models/ledger_transaction.rbs +123 -0
- data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +155 -0
- data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +81 -0
- data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +96 -0
- data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +219 -0
- data/sig/modern_treasury/models/ledger_transaction_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +147 -0
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +326 -0
- data/sig/modern_treasury/models/ledger_transactions/version_list_params.rbs +55 -0
- data/sig/modern_treasury/models/ledger_update_params.rbs +31 -0
- data/sig/modern_treasury/models/ledgerable_event.rbs +54 -0
- data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +37 -0
- data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/legal_entity.rbs +363 -0
- data/sig/modern_treasury/models/legal_entity_association.rbs +425 -0
- data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +371 -0
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +678 -0
- data/sig/modern_treasury/models/legal_entity_list_params.rbs +60 -0
- data/sig/modern_treasury/models/legal_entity_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +300 -0
- data/sig/modern_treasury/models/line_item.rbs +89 -0
- data/sig/modern_treasury/models/line_item_list_params.rbs +44 -0
- data/sig/modern_treasury/models/line_item_retrieve_params.rbs +38 -0
- data/sig/modern_treasury/models/line_item_update_params.rbs +44 -0
- data/sig/modern_treasury/models/paper_item.rbs +98 -0
- data/sig/modern_treasury/models/paper_item_list_params.rbs +47 -0
- data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +14 -0
- data/sig/modern_treasury/models/payment_flow.rbs +165 -0
- data/sig/modern_treasury/models/payment_flow_create_params.rbs +56 -0
- data/sig/modern_treasury/models/payment_flow_list_params.rbs +65 -0
- data/sig/modern_treasury/models/payment_flow_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/payment_flow_update_params.rbs +31 -0
- data/sig/modern_treasury/models/payment_order.rbs +564 -0
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +893 -0
- data/sig/modern_treasury/models/payment_order_create_params.rbs +963 -0
- data/sig/modern_treasury/models/payment_order_list_params.rbs +238 -0
- data/sig/modern_treasury/models/payment_order_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/payment_order_subtype.rbs +70 -0
- data/sig/modern_treasury/models/payment_order_type.rbs +72 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +781 -0
- data/sig/modern_treasury/models/payment_orders/reversal.rbs +95 -0
- data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +205 -0
- data/sig/modern_treasury/models/payment_orders/reversal_list_params.rbs +28 -0
- data/sig/modern_treasury/models/payment_orders/reversal_retrieve_params.rbs +22 -0
- data/sig/modern_treasury/models/payment_reference.rbs +213 -0
- data/sig/modern_treasury/models/payment_reference_list_params.rbs +61 -0
- data/sig/modern_treasury/models/payment_reference_retireve_params.rbs +15 -0
- data/sig/modern_treasury/models/payment_reference_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/ping_response.rbs +13 -0
- data/sig/modern_treasury/models/reconciliation_rule.rbs +138 -0
- data/sig/modern_treasury/models/return_create_params.rbs +168 -0
- data/sig/modern_treasury/models/return_list_params.rbs +74 -0
- data/sig/modern_treasury/models/return_object.rbs +492 -0
- data/sig/modern_treasury/models/return_retrieve_params.rbs +14 -0
- data/sig/modern_treasury/models/routing_detail.rbs +233 -0
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +165 -0
- data/sig/modern_treasury/models/routing_detail_delete_params.rbs +37 -0
- data/sig/modern_treasury/models/routing_detail_list_params.rbs +33 -0
- data/sig/modern_treasury/models/routing_detail_retrieve_params.rbs +27 -0
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +185 -0
- data/sig/modern_treasury/models/transaction.rbs +281 -0
- data/sig/modern_treasury/models/transaction_create_params.rbs +134 -0
- data/sig/modern_treasury/models/transaction_delete_params.rbs +14 -0
- data/sig/modern_treasury/models/transaction_direction.rbs +14 -0
- data/sig/modern_treasury/models/transaction_list_params.rbs +101 -0
- data/sig/modern_treasury/models/transaction_retrieve_params.rbs +14 -0
- data/sig/modern_treasury/models/transaction_update_params.rbs +22 -0
- data/sig/modern_treasury/models/transactions/line_item_create_params.rbs +29 -0
- data/sig/modern_treasury/models/transactions/line_item_delete_params.rbs +16 -0
- data/sig/modern_treasury/models/transactions/line_item_list_params.rbs +58 -0
- data/sig/modern_treasury/models/transactions/line_item_retrieve_params.rbs +16 -0
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +110 -0
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +78 -0
- data/sig/modern_treasury/models/virtual_account.rbs +78 -0
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +354 -0
- data/sig/modern_treasury/models/virtual_account_delete_params.rbs +15 -0
- data/sig/modern_treasury/models/virtual_account_list_params.rbs +47 -0
- data/sig/modern_treasury/models/virtual_account_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/virtual_account_update_params.rbs +41 -0
- data/sig/modern_treasury/models/wealth_and_employment_details.rbs +306 -0
- data/sig/modern_treasury/page.rbs +17 -0
- data/sig/modern_treasury/pooled_net_requester.rbs +37 -0
- data/sig/modern_treasury/request_options.rbs +46 -0
- data/sig/modern_treasury/resources/account_collection_flows.rbs +35 -0
- data/sig/modern_treasury/resources/account_details.rbs +37 -0
- data/sig/modern_treasury/resources/bulk_requests.rbs +30 -0
- data/sig/modern_treasury/resources/bulk_results.rbs +23 -0
- data/sig/modern_treasury/resources/connection_legal_entities.rbs +34 -0
- data/sig/modern_treasury/resources/connections.rbs +15 -0
- data/sig/modern_treasury/resources/counterparties.rbs +64 -0
- data/sig/modern_treasury/resources/documents.rbs +28 -0
- data/sig/modern_treasury/resources/events.rbs +23 -0
- data/sig/modern_treasury/resources/expected_payments.rbs +76 -0
- data/sig/modern_treasury/resources/external_accounts.rbs +71 -0
- data/sig/modern_treasury/resources/foreign_exchange_quotes.rbs +35 -0
- data/sig/modern_treasury/resources/incoming_payment_details.rbs +43 -0
- data/sig/modern_treasury/resources/internal_accounts/balance_reports.rbs +39 -0
- data/sig/modern_treasury/resources/internal_accounts.rbs +49 -0
- data/sig/modern_treasury/resources/invoices/line_items.rbs +53 -0
- data/sig/modern_treasury/resources/invoices.rbs +94 -0
- data/sig/modern_treasury/resources/ledger_account_balance_monitors.rbs +41 -0
- data/sig/modern_treasury/resources/ledger_account_categories.rbs +76 -0
- data/sig/modern_treasury/resources/ledger_account_settlements/account_entries.rbs +21 -0
- data/sig/modern_treasury/resources/ledger_account_settlements.rbs +48 -0
- data/sig/modern_treasury/resources/ledger_account_statements.rbs +21 -0
- data/sig/modern_treasury/resources/ledger_accounts.rbs +58 -0
- data/sig/modern_treasury/resources/ledger_entries.rbs +43 -0
- data/sig/modern_treasury/resources/ledger_event_handlers.rbs +37 -0
- data/sig/modern_treasury/resources/ledger_transactions/versions.rbs +19 -0
- data/sig/modern_treasury/resources/ledger_transactions.rbs +83 -0
- data/sig/modern_treasury/resources/ledgerable_events.rbs +20 -0
- data/sig/modern_treasury/resources/ledgers.rbs +41 -0
- data/sig/modern_treasury/resources/legal_entities.rbs +76 -0
- data/sig/modern_treasury/resources/legal_entity_associations.rbs +17 -0
- data/sig/modern_treasury/resources/line_items.rbs +30 -0
- data/sig/modern_treasury/resources/paper_items.rbs +21 -0
- data/sig/modern_treasury/resources/payment_flows.rbs +40 -0
- data/sig/modern_treasury/resources/payment_orders/reversals.rbs +30 -0
- data/sig/modern_treasury/resources/payment_orders.rbs +153 -0
- data/sig/modern_treasury/resources/payment_references.rbs +23 -0
- data/sig/modern_treasury/resources/returns.rbs +32 -0
- data/sig/modern_treasury/resources/routing_details.rbs +38 -0
- data/sig/modern_treasury/resources/transactions/line_items.rbs +35 -0
- data/sig/modern_treasury/resources/transactions.rbs +57 -0
- data/sig/modern_treasury/resources/validations.rbs +13 -0
- data/sig/modern_treasury/resources/virtual_accounts.rbs +49 -0
- data/sig/modern_treasury/util.rbs +136 -0
- data/sig/modern_treasury/version.rbs +3 -0
- metadata +861 -20
@@ -0,0 +1,517 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ModernTreasury
|
4
|
+
module Resources
|
5
|
+
class PaymentOrders
|
6
|
+
# @return [ModernTreasury::Resources::PaymentOrders::Reversals]
|
7
|
+
attr_reader :reversals
|
8
|
+
|
9
|
+
# Create a new Payment Order
|
10
|
+
#
|
11
|
+
# @param params [ModernTreasury::Models::PaymentOrderCreateParams, Hash{Symbol=>Object}] .
|
12
|
+
#
|
13
|
+
# @option params [Integer] :amount Value in specified currency's smallest unit. e.g. $10 would be represented as
|
14
|
+
# 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
|
15
|
+
#
|
16
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::Direction] :direction One of `credit`, `debit`. Describes the direction money is flowing in the
|
17
|
+
# transaction. A `credit` moves money from your account to someone else's. A
|
18
|
+
# `debit` pulls money from someone else's account to your own. Note that wire,
|
19
|
+
# rtp, and check payments will always be `credit`.
|
20
|
+
#
|
21
|
+
# @option params [String] :originating_account_id The ID of one of your organization's internal accounts.
|
22
|
+
#
|
23
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderType] :type One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`,
|
24
|
+
# `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
|
25
|
+
# `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
|
26
|
+
#
|
27
|
+
# @option params [ModernTreasury::Models::PaymentOrderCreateParams::Accounting] :accounting
|
28
|
+
#
|
29
|
+
# @option params [String, nil] :accounting_category_id The ID of one of your accounting categories. Note that these will only be
|
30
|
+
# accessible if your accounting system has been connected.
|
31
|
+
#
|
32
|
+
# @option params [String, nil] :accounting_ledger_class_id The ID of one of your accounting ledger classes. Note that these will only be
|
33
|
+
# accessible if your accounting system has been connected.
|
34
|
+
#
|
35
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ChargeBearer, nil] :charge_bearer The party that will pay the fees for the payment order. Only applies to wire
|
36
|
+
# payment orders. Can be one of shared, sender, or receiver, which correspond
|
37
|
+
# respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
|
38
|
+
#
|
39
|
+
# @option params [Symbol, ModernTreasury::Models::Currency] :currency Defaults to the currency of the originating account.
|
40
|
+
#
|
41
|
+
# @option params [String, nil] :description An optional description for internal use.
|
42
|
+
#
|
43
|
+
# @option params [Array<ModernTreasury::Models::PaymentOrderCreateParams::Document>] :documents An array of documents to be attached to the payment order. Note that if you
|
44
|
+
# attach documents, the request's content type must be `multipart/form-data`.
|
45
|
+
#
|
46
|
+
# @option params [Date] :effective_date Date transactions are to be posted to the participants' account. Defaults to the
|
47
|
+
# current business day or the next business day if the current day is a bank
|
48
|
+
# holiday or weekend. Format: yyyy-mm-dd.
|
49
|
+
#
|
50
|
+
# @option params [Time, nil] :expires_at RFP payments require an expires_at. This value must be past the effective_date.
|
51
|
+
#
|
52
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::FallbackType] :fallback_type A payment type to fallback to if the original type is not valid for the
|
53
|
+
# receiving account. Currently, this only supports falling back from RTP to ACH
|
54
|
+
# (type=rtp and fallback_type=ach)
|
55
|
+
#
|
56
|
+
# @option params [String, nil] :foreign_exchange_contract If present, indicates a specific foreign exchange contract number that has been
|
57
|
+
# generated by your financial institution.
|
58
|
+
#
|
59
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ForeignExchangeIndicator, nil] :foreign_exchange_indicator Indicates the type of FX transfer to initiate, can be either
|
60
|
+
# `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
|
61
|
+
# currency matches the originating account currency.
|
62
|
+
#
|
63
|
+
# @option params [ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction] :ledger_transaction Specifies a ledger transaction object that will be created with the payment
|
64
|
+
# order. If the ledger transaction cannot be created, then the payment order
|
65
|
+
# creation will fail. The resulting ledger transaction will mirror the status of
|
66
|
+
# the payment order.
|
67
|
+
#
|
68
|
+
# @option params [String] :ledger_transaction_id Either ledger_transaction or ledger_transaction_id can be provided. Only a
|
69
|
+
# pending ledger transaction can be attached upon payment order creation. Once the
|
70
|
+
# payment order is created, the status of the ledger transaction tracks the
|
71
|
+
# payment order automatically.
|
72
|
+
#
|
73
|
+
# @option params [Array<ModernTreasury::Models::PaymentOrderCreateParams::LineItem>] :line_items An array of line items that must sum up to the amount of the payment order.
|
74
|
+
#
|
75
|
+
# @option params [Hash{Symbol=>String}] :metadata Additional data represented as key-value pairs. Both the key and value must be
|
76
|
+
# strings.
|
77
|
+
#
|
78
|
+
# @option params [Boolean] :nsf_protected A boolean to determine if NSF Protection is enabled for this payment order. Note
|
79
|
+
# that this setting must also be turned on in your organization settings page.
|
80
|
+
#
|
81
|
+
# @option params [String, nil] :originating_party_name If present, this will replace your default company name on receiver's bank
|
82
|
+
# statement. This field can only be used for ACH payments currently. For ACH, only
|
83
|
+
# the first 16 characters of this string will be used. Any additional characters
|
84
|
+
# will be truncated.
|
85
|
+
#
|
86
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::Priority] :priority Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
87
|
+
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
88
|
+
# an overnight check rather than standard mail.
|
89
|
+
#
|
90
|
+
# @option params [Time, nil] :process_after If present, Modern Treasury will not process the payment until after this time.
|
91
|
+
# If `process_after` is past the cutoff for `effective_date`, `process_after` will
|
92
|
+
# take precedence and `effective_date` will automatically update to reflect the
|
93
|
+
# earliest possible sending date after `process_after`. Format is ISO8601
|
94
|
+
# timestamp.
|
95
|
+
#
|
96
|
+
# @option params [String, nil] :purpose For `wire`, this is usually the purpose which is transmitted via the
|
97
|
+
# "InstrForDbtrAgt" field in the ISO20022 file. For `eft`, this field is the 3
|
98
|
+
# digit CPA Code that will be attached to the payment.
|
99
|
+
#
|
100
|
+
# @option params [ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount] :receiving_account Either `receiving_account` or `receiving_account_id` must be present. When using
|
101
|
+
# `receiving_account_id`, you may pass the id of an external account or an
|
102
|
+
# internal account.
|
103
|
+
#
|
104
|
+
# @option params [String] :receiving_account_id Either `receiving_account` or `receiving_account_id` must be present. When using
|
105
|
+
# `receiving_account_id`, you may pass the id of an external account or an
|
106
|
+
# internal account.
|
107
|
+
#
|
108
|
+
# @option params [String, nil] :remittance_information For `ach`, this field will be passed through on an addenda record. For `wire`
|
109
|
+
# payments the field will be passed through as the "Originator to Beneficiary
|
110
|
+
# Information", also known as OBI or Fedwire tag 6000.
|
111
|
+
#
|
112
|
+
# @option params [Boolean, nil] :send_remittance_advice Send an email to the counterparty when the payment order is sent to the bank. If
|
113
|
+
# `null`, `send_remittance_advice` on the Counterparty is used.
|
114
|
+
#
|
115
|
+
# @option params [String, nil] :statement_descriptor An optional descriptor which will appear in the receiver's statement. For
|
116
|
+
# `check` payments this field will be used as the memo line. For `ach` the maximum
|
117
|
+
# length is 10 characters. Note that for ACH payments, the name on your bank
|
118
|
+
# account will be included automatically by the bank, so you can use the
|
119
|
+
# characters for other useful information. For `eft` the maximum length is 15
|
120
|
+
# characters.
|
121
|
+
#
|
122
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderSubtype, nil] :subtype An additional layer of classification for the type of payment order you are
|
123
|
+
# doing. This field is only used for `ach` payment orders currently. For `ach`
|
124
|
+
# payment orders, the `subtype` represents the SEC code. We currently support
|
125
|
+
# `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
|
126
|
+
#
|
127
|
+
# @option params [Boolean] :transaction_monitoring_enabled A flag that determines whether a payment order should go through transaction
|
128
|
+
# monitoring.
|
129
|
+
#
|
130
|
+
# @option params [String, nil] :ultimate_originating_party_identifier Identifier of the ultimate originator of the payment order.
|
131
|
+
#
|
132
|
+
# @option params [String, nil] :ultimate_originating_party_name Name of the ultimate originator of the payment order.
|
133
|
+
#
|
134
|
+
# @option params [String, nil] :ultimate_receiving_party_identifier Identifier of the ultimate funds recipient.
|
135
|
+
#
|
136
|
+
# @option params [String, nil] :ultimate_receiving_party_name Name of the ultimate funds recipient.
|
137
|
+
#
|
138
|
+
# @option params [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
|
139
|
+
#
|
140
|
+
# @return [ModernTreasury::Models::PaymentOrder]
|
141
|
+
def create(params)
|
142
|
+
parsed, options = ModernTreasury::Models::PaymentOrderCreateParams.dump_request(params)
|
143
|
+
@client.request(
|
144
|
+
method: :post,
|
145
|
+
path: "api/payment_orders",
|
146
|
+
body: parsed,
|
147
|
+
model: ModernTreasury::Models::PaymentOrder,
|
148
|
+
options: options
|
149
|
+
)
|
150
|
+
end
|
151
|
+
|
152
|
+
# Get details on a single payment order
|
153
|
+
#
|
154
|
+
# @param id [String]
|
155
|
+
#
|
156
|
+
# @param params [ModernTreasury::Models::PaymentOrderRetrieveParams, Hash{Symbol=>Object}] .
|
157
|
+
#
|
158
|
+
# @option params [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
|
159
|
+
#
|
160
|
+
# @return [ModernTreasury::Models::PaymentOrder]
|
161
|
+
def retrieve(id, params = {})
|
162
|
+
@client.request(
|
163
|
+
method: :get,
|
164
|
+
path: ["api/payment_orders/%0s", id],
|
165
|
+
model: ModernTreasury::Models::PaymentOrder,
|
166
|
+
options: params[:request_options]
|
167
|
+
)
|
168
|
+
end
|
169
|
+
|
170
|
+
# Update a payment order
|
171
|
+
#
|
172
|
+
# @param id [String]
|
173
|
+
#
|
174
|
+
# @param params [ModernTreasury::Models::PaymentOrderUpdateParams, Hash{Symbol=>Object}] .
|
175
|
+
#
|
176
|
+
# @option params [ModernTreasury::Models::PaymentOrderUpdateParams::Accounting] :accounting
|
177
|
+
#
|
178
|
+
# @option params [String, nil] :accounting_category_id The ID of one of your accounting categories. Note that these will only be
|
179
|
+
# accessible if your accounting system has been connected.
|
180
|
+
#
|
181
|
+
# @option params [String, nil] :accounting_ledger_class_id The ID of one of your accounting ledger classes. Note that these will only be
|
182
|
+
# accessible if your accounting system has been connected.
|
183
|
+
#
|
184
|
+
# @option params [Integer] :amount Value in specified currency's smallest unit. e.g. $10 would be represented as
|
185
|
+
# 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
|
186
|
+
#
|
187
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ChargeBearer, nil] :charge_bearer The party that will pay the fees for the payment order. Only applies to wire
|
188
|
+
# payment orders. Can be one of shared, sender, or receiver, which correspond
|
189
|
+
# respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
|
190
|
+
#
|
191
|
+
# @option params [String, nil] :counterparty_id Required when receiving_account_id is passed the ID of an external account.
|
192
|
+
#
|
193
|
+
# @option params [Symbol, ModernTreasury::Models::Currency] :currency Defaults to the currency of the originating account.
|
194
|
+
#
|
195
|
+
# @option params [String, nil] :description An optional description for internal use.
|
196
|
+
#
|
197
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::Direction] :direction One of `credit`, `debit`. Describes the direction money is flowing in the
|
198
|
+
# transaction. A `credit` moves money from your account to someone else's. A
|
199
|
+
# `debit` pulls money from someone else's account to your own. Note that wire,
|
200
|
+
# rtp, and check payments will always be `credit`.
|
201
|
+
#
|
202
|
+
# @option params [Date] :effective_date Date transactions are to be posted to the participants' account. Defaults to the
|
203
|
+
# current business day or the next business day if the current day is a bank
|
204
|
+
# holiday or weekend. Format: yyyy-mm-dd.
|
205
|
+
#
|
206
|
+
# @option params [Time, nil] :expires_at RFP payments require an expires_at. This value must be past the effective_date.
|
207
|
+
#
|
208
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::FallbackType] :fallback_type A payment type to fallback to if the original type is not valid for the
|
209
|
+
# receiving account. Currently, this only supports falling back from RTP to ACH
|
210
|
+
# (type=rtp and fallback_type=ach)
|
211
|
+
#
|
212
|
+
# @option params [String, nil] :foreign_exchange_contract If present, indicates a specific foreign exchange contract number that has been
|
213
|
+
# generated by your financial institution.
|
214
|
+
#
|
215
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ForeignExchangeIndicator, nil] :foreign_exchange_indicator Indicates the type of FX transfer to initiate, can be either
|
216
|
+
# `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
|
217
|
+
# currency matches the originating account currency.
|
218
|
+
#
|
219
|
+
# @option params [Array<ModernTreasury::Models::PaymentOrderUpdateParams::LineItem>] :line_items An array of line items that must sum up to the amount of the payment order.
|
220
|
+
#
|
221
|
+
# @option params [Hash{Symbol=>String}] :metadata Additional data represented as key-value pairs. Both the key and value must be
|
222
|
+
# strings.
|
223
|
+
#
|
224
|
+
# @option params [Boolean] :nsf_protected A boolean to determine if NSF Protection is enabled for this payment order. Note
|
225
|
+
# that this setting must also be turned on in your organization settings page.
|
226
|
+
#
|
227
|
+
# @option params [String] :originating_account_id The ID of one of your organization's internal accounts.
|
228
|
+
#
|
229
|
+
# @option params [String, nil] :originating_party_name If present, this will replace your default company name on receiver's bank
|
230
|
+
# statement. This field can only be used for ACH payments currently. For ACH, only
|
231
|
+
# the first 16 characters of this string will be used. Any additional characters
|
232
|
+
# will be truncated.
|
233
|
+
#
|
234
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::Priority] :priority Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
235
|
+
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
236
|
+
# an overnight check rather than standard mail.
|
237
|
+
#
|
238
|
+
# @option params [Time, nil] :process_after If present, Modern Treasury will not process the payment until after this time.
|
239
|
+
# If `process_after` is past the cutoff for `effective_date`, `process_after` will
|
240
|
+
# take precedence and `effective_date` will automatically update to reflect the
|
241
|
+
# earliest possible sending date after `process_after`. Format is ISO8601
|
242
|
+
# timestamp.
|
243
|
+
#
|
244
|
+
# @option params [String, nil] :purpose For `wire`, this is usually the purpose which is transmitted via the
|
245
|
+
# "InstrForDbtrAgt" field in the ISO20022 file. For `eft`, this field is the 3
|
246
|
+
# digit CPA Code that will be attached to the payment.
|
247
|
+
#
|
248
|
+
# @option params [ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount] :receiving_account Either `receiving_account` or `receiving_account_id` must be present. When using
|
249
|
+
# `receiving_account_id`, you may pass the id of an external account or an
|
250
|
+
# internal account.
|
251
|
+
#
|
252
|
+
# @option params [String] :receiving_account_id Either `receiving_account` or `receiving_account_id` must be present. When using
|
253
|
+
# `receiving_account_id`, you may pass the id of an external account or an
|
254
|
+
# internal account.
|
255
|
+
#
|
256
|
+
# @option params [String, nil] :remittance_information For `ach`, this field will be passed through on an addenda record. For `wire`
|
257
|
+
# payments the field will be passed through as the "Originator to Beneficiary
|
258
|
+
# Information", also known as OBI or Fedwire tag 6000.
|
259
|
+
#
|
260
|
+
# @option params [Boolean, nil] :send_remittance_advice Send an email to the counterparty when the payment order is sent to the bank. If
|
261
|
+
# `null`, `send_remittance_advice` on the Counterparty is used.
|
262
|
+
#
|
263
|
+
# @option params [String, nil] :statement_descriptor An optional descriptor which will appear in the receiver's statement. For
|
264
|
+
# `check` payments this field will be used as the memo line. For `ach` the maximum
|
265
|
+
# length is 10 characters. Note that for ACH payments, the name on your bank
|
266
|
+
# account will be included automatically by the bank, so you can use the
|
267
|
+
# characters for other useful information. For `eft` the maximum length is 15
|
268
|
+
# characters.
|
269
|
+
#
|
270
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::Status] :status To cancel a payment order, use `cancelled`. To redraft a returned payment order,
|
271
|
+
# use `approved`. To undo approval on a denied or approved payment order, use
|
272
|
+
# `needs_approval`.
|
273
|
+
#
|
274
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderSubtype, nil] :subtype An additional layer of classification for the type of payment order you are
|
275
|
+
# doing. This field is only used for `ach` payment orders currently. For `ach`
|
276
|
+
# payment orders, the `subtype` represents the SEC code. We currently support
|
277
|
+
# `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
|
278
|
+
#
|
279
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderType] :type One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`,
|
280
|
+
# `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
|
281
|
+
# `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
|
282
|
+
#
|
283
|
+
# @option params [String, nil] :ultimate_originating_party_identifier This represents the identifier by which the person is known to the receiver when
|
284
|
+
# using the CIE subtype for ACH payments. Only the first 22 characters of this
|
285
|
+
# string will be used. Any additional characters will be truncated.
|
286
|
+
#
|
287
|
+
# @option params [String, nil] :ultimate_originating_party_name This represents the name of the person that the payment is on behalf of when
|
288
|
+
# using the CIE subtype for ACH payments. Only the first 15 characters of this
|
289
|
+
# string will be used. Any additional characters will be truncated.
|
290
|
+
#
|
291
|
+
# @option params [String, nil] :ultimate_receiving_party_identifier This represents the name of the merchant that the payment is being sent to when
|
292
|
+
# using the CIE subtype for ACH payments. Only the first 22 characters of this
|
293
|
+
# string will be used. Any additional characters will be truncated.
|
294
|
+
#
|
295
|
+
# @option params [String, nil] :ultimate_receiving_party_name This represents the identifier by which the merchant is known to the person
|
296
|
+
# initiating an ACH payment with CIE subtype. Only the first 15 characters of this
|
297
|
+
# string will be used. Any additional characters will be truncated.
|
298
|
+
#
|
299
|
+
# @option params [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
|
300
|
+
#
|
301
|
+
# @return [ModernTreasury::Models::PaymentOrder]
|
302
|
+
def update(id, params = {})
|
303
|
+
parsed, options = ModernTreasury::Models::PaymentOrderUpdateParams.dump_request(params)
|
304
|
+
@client.request(
|
305
|
+
method: :patch,
|
306
|
+
path: ["api/payment_orders/%0s", id],
|
307
|
+
body: parsed,
|
308
|
+
model: ModernTreasury::Models::PaymentOrder,
|
309
|
+
options: options
|
310
|
+
)
|
311
|
+
end
|
312
|
+
|
313
|
+
# Get a list of all payment orders
|
314
|
+
#
|
315
|
+
# @param params [ModernTreasury::Models::PaymentOrderListParams, Hash{Symbol=>Object}] .
|
316
|
+
#
|
317
|
+
# @option params [String, nil] :after_cursor
|
318
|
+
#
|
319
|
+
# @option params [String] :counterparty_id
|
320
|
+
#
|
321
|
+
# @option params [Date] :created_at_end An inclusive upper bound for searching created_at
|
322
|
+
#
|
323
|
+
# @option params [Date] :created_at_start An inclusive lower bound for searching created_at
|
324
|
+
#
|
325
|
+
# @option params [Symbol, ModernTreasury::Models::TransactionDirection] :direction
|
326
|
+
#
|
327
|
+
# @option params [Date] :effective_date_end An inclusive upper bound for searching effective_date
|
328
|
+
#
|
329
|
+
# @option params [Date] :effective_date_start An inclusive lower bound for searching effective_date
|
330
|
+
#
|
331
|
+
# @option params [Hash{Symbol=>String}] :metadata For example, if you want to query for records with metadata key `Type` and value
|
332
|
+
# `Loan`, the query would be `metadata%5BType%5D=Loan`. This encodes the query
|
333
|
+
# parameters.
|
334
|
+
#
|
335
|
+
# @option params [String] :originating_account_id
|
336
|
+
#
|
337
|
+
# @option params [Integer] :per_page
|
338
|
+
#
|
339
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderListParams::Priority] :priority Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
340
|
+
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
341
|
+
# an overnight check rather than standard mail.
|
342
|
+
#
|
343
|
+
# @option params [Time] :process_after_end An inclusive upper bound for searching process_after
|
344
|
+
#
|
345
|
+
# @option params [Time] :process_after_start An inclusive lower bound for searching process_after
|
346
|
+
#
|
347
|
+
# @option params [String] :reference_number Query for records with the provided reference number
|
348
|
+
#
|
349
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderListParams::Status] :status
|
350
|
+
#
|
351
|
+
# @option params [String] :transaction_id The ID of a transaction that the payment order has been reconciled to.
|
352
|
+
#
|
353
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderListParams::Type] :type
|
354
|
+
#
|
355
|
+
# @option params [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
|
356
|
+
#
|
357
|
+
# @return [ModernTreasury::Page<ModernTreasury::Models::PaymentOrder>]
|
358
|
+
def list(params = {})
|
359
|
+
parsed, options = ModernTreasury::Models::PaymentOrderListParams.dump_request(params)
|
360
|
+
@client.request(
|
361
|
+
method: :get,
|
362
|
+
path: "api/payment_orders",
|
363
|
+
query: parsed,
|
364
|
+
page: ModernTreasury::Page,
|
365
|
+
model: ModernTreasury::Models::PaymentOrder,
|
366
|
+
options: options
|
367
|
+
)
|
368
|
+
end
|
369
|
+
|
370
|
+
# Create a new payment order asynchronously
|
371
|
+
#
|
372
|
+
# @param params [ModernTreasury::Models::PaymentOrderCreateAsyncParams, Hash{Symbol=>Object}] .
|
373
|
+
#
|
374
|
+
# @option params [Integer] :amount Value in specified currency's smallest unit. e.g. $10 would be represented as
|
375
|
+
# 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
|
376
|
+
#
|
377
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Direction] :direction One of `credit`, `debit`. Describes the direction money is flowing in the
|
378
|
+
# transaction. A `credit` moves money from your account to someone else's. A
|
379
|
+
# `debit` pulls money from someone else's account to your own. Note that wire,
|
380
|
+
# rtp, and check payments will always be `credit`.
|
381
|
+
#
|
382
|
+
# @option params [String] :originating_account_id The ID of one of your organization's internal accounts.
|
383
|
+
#
|
384
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderType] :type One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`,
|
385
|
+
# `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
|
386
|
+
# `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
|
387
|
+
#
|
388
|
+
# @option params [ModernTreasury::Models::PaymentOrderCreateAsyncParams::Accounting] :accounting
|
389
|
+
#
|
390
|
+
# @option params [String, nil] :accounting_category_id The ID of one of your accounting categories. Note that these will only be
|
391
|
+
# accessible if your accounting system has been connected.
|
392
|
+
#
|
393
|
+
# @option params [String, nil] :accounting_ledger_class_id The ID of one of your accounting ledger classes. Note that these will only be
|
394
|
+
# accessible if your accounting system has been connected.
|
395
|
+
#
|
396
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ChargeBearer, nil] :charge_bearer The party that will pay the fees for the payment order. Only applies to wire
|
397
|
+
# payment orders. Can be one of shared, sender, or receiver, which correspond
|
398
|
+
# respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
|
399
|
+
#
|
400
|
+
# @option params [Symbol, ModernTreasury::Models::Currency] :currency Defaults to the currency of the originating account.
|
401
|
+
#
|
402
|
+
# @option params [String, nil] :description An optional description for internal use.
|
403
|
+
#
|
404
|
+
# @option params [Date] :effective_date Date transactions are to be posted to the participants' account. Defaults to the
|
405
|
+
# current business day or the next business day if the current day is a bank
|
406
|
+
# holiday or weekend. Format: yyyy-mm-dd.
|
407
|
+
#
|
408
|
+
# @option params [Time, nil] :expires_at RFP payments require an expires_at. This value must be past the effective_date.
|
409
|
+
#
|
410
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::FallbackType] :fallback_type A payment type to fallback to if the original type is not valid for the
|
411
|
+
# receiving account. Currently, this only supports falling back from RTP to ACH
|
412
|
+
# (type=rtp and fallback_type=ach)
|
413
|
+
#
|
414
|
+
# @option params [String, nil] :foreign_exchange_contract If present, indicates a specific foreign exchange contract number that has been
|
415
|
+
# generated by your financial institution.
|
416
|
+
#
|
417
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator, nil] :foreign_exchange_indicator Indicates the type of FX transfer to initiate, can be either
|
418
|
+
# `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
|
419
|
+
# currency matches the originating account currency.
|
420
|
+
#
|
421
|
+
# @option params [ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction] :ledger_transaction Specifies a ledger transaction object that will be created with the payment
|
422
|
+
# order. If the ledger transaction cannot be created, then the payment order
|
423
|
+
# creation will fail. The resulting ledger transaction will mirror the status of
|
424
|
+
# the payment order.
|
425
|
+
#
|
426
|
+
# @option params [String] :ledger_transaction_id Either ledger_transaction or ledger_transaction_id can be provided. Only a
|
427
|
+
# pending ledger transaction can be attached upon payment order creation. Once the
|
428
|
+
# payment order is created, the status of the ledger transaction tracks the
|
429
|
+
# payment order automatically.
|
430
|
+
#
|
431
|
+
# @option params [Array<ModernTreasury::Models::PaymentOrderCreateAsyncParams::LineItem>] :line_items An array of line items that must sum up to the amount of the payment order.
|
432
|
+
#
|
433
|
+
# @option params [Hash{Symbol=>String}] :metadata Additional data represented as key-value pairs. Both the key and value must be
|
434
|
+
# strings.
|
435
|
+
#
|
436
|
+
# @option params [Boolean] :nsf_protected A boolean to determine if NSF Protection is enabled for this payment order. Note
|
437
|
+
# that this setting must also be turned on in your organization settings page.
|
438
|
+
#
|
439
|
+
# @option params [String, nil] :originating_party_name If present, this will replace your default company name on receiver's bank
|
440
|
+
# statement. This field can only be used for ACH payments currently. For ACH, only
|
441
|
+
# the first 16 characters of this string will be used. Any additional characters
|
442
|
+
# will be truncated.
|
443
|
+
#
|
444
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Priority] :priority Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
445
|
+
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
446
|
+
# an overnight check rather than standard mail.
|
447
|
+
#
|
448
|
+
# @option params [Time, nil] :process_after If present, Modern Treasury will not process the payment until after this time.
|
449
|
+
# If `process_after` is past the cutoff for `effective_date`, `process_after` will
|
450
|
+
# take precedence and `effective_date` will automatically update to reflect the
|
451
|
+
# earliest possible sending date after `process_after`. Format is ISO8601
|
452
|
+
# timestamp.
|
453
|
+
#
|
454
|
+
# @option params [String, nil] :purpose For `wire`, this is usually the purpose which is transmitted via the
|
455
|
+
# "InstrForDbtrAgt" field in the ISO20022 file. For `eft`, this field is the 3
|
456
|
+
# digit CPA Code that will be attached to the payment.
|
457
|
+
#
|
458
|
+
# @option params [ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount] :receiving_account Either `receiving_account` or `receiving_account_id` must be present. When using
|
459
|
+
# `receiving_account_id`, you may pass the id of an external account or an
|
460
|
+
# internal account.
|
461
|
+
#
|
462
|
+
# @option params [String] :receiving_account_id Either `receiving_account` or `receiving_account_id` must be present. When using
|
463
|
+
# `receiving_account_id`, you may pass the id of an external account or an
|
464
|
+
# internal account.
|
465
|
+
#
|
466
|
+
# @option params [String, nil] :remittance_information For `ach`, this field will be passed through on an addenda record. For `wire`
|
467
|
+
# payments the field will be passed through as the "Originator to Beneficiary
|
468
|
+
# Information", also known as OBI or Fedwire tag 6000.
|
469
|
+
#
|
470
|
+
# @option params [Boolean, nil] :send_remittance_advice Send an email to the counterparty when the payment order is sent to the bank. If
|
471
|
+
# `null`, `send_remittance_advice` on the Counterparty is used.
|
472
|
+
#
|
473
|
+
# @option params [String, nil] :statement_descriptor An optional descriptor which will appear in the receiver's statement. For
|
474
|
+
# `check` payments this field will be used as the memo line. For `ach` the maximum
|
475
|
+
# length is 10 characters. Note that for ACH payments, the name on your bank
|
476
|
+
# account will be included automatically by the bank, so you can use the
|
477
|
+
# characters for other useful information. For `eft` the maximum length is 15
|
478
|
+
# characters.
|
479
|
+
#
|
480
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentOrderSubtype, nil] :subtype An additional layer of classification for the type of payment order you are
|
481
|
+
# doing. This field is only used for `ach` payment orders currently. For `ach`
|
482
|
+
# payment orders, the `subtype` represents the SEC code. We currently support
|
483
|
+
# `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
|
484
|
+
#
|
485
|
+
# @option params [Boolean] :transaction_monitoring_enabled A flag that determines whether a payment order should go through transaction
|
486
|
+
# monitoring.
|
487
|
+
#
|
488
|
+
# @option params [String, nil] :ultimate_originating_party_identifier Identifier of the ultimate originator of the payment order.
|
489
|
+
#
|
490
|
+
# @option params [String, nil] :ultimate_originating_party_name Name of the ultimate originator of the payment order.
|
491
|
+
#
|
492
|
+
# @option params [String, nil] :ultimate_receiving_party_identifier Identifier of the ultimate funds recipient.
|
493
|
+
#
|
494
|
+
# @option params [String, nil] :ultimate_receiving_party_name Name of the ultimate funds recipient.
|
495
|
+
#
|
496
|
+
# @option params [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
|
497
|
+
#
|
498
|
+
# @return [ModernTreasury::Models::AsyncResponse]
|
499
|
+
def create_async(params)
|
500
|
+
parsed, options = ModernTreasury::Models::PaymentOrderCreateAsyncParams.dump_request(params)
|
501
|
+
@client.request(
|
502
|
+
method: :post,
|
503
|
+
path: "api/payment_orders/create_async",
|
504
|
+
body: parsed,
|
505
|
+
model: ModernTreasury::Models::AsyncResponse,
|
506
|
+
options: options
|
507
|
+
)
|
508
|
+
end
|
509
|
+
|
510
|
+
# @param client [ModernTreasury::Client]
|
511
|
+
def initialize(client:)
|
512
|
+
@client = client
|
513
|
+
@reversals = ModernTreasury::Resources::PaymentOrders::Reversals.new(client: client)
|
514
|
+
end
|
515
|
+
end
|
516
|
+
end
|
517
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ModernTreasury
|
4
|
+
module Resources
|
5
|
+
class PaymentReferences
|
6
|
+
# get payment_reference
|
7
|
+
#
|
8
|
+
# @param id [String] id
|
9
|
+
#
|
10
|
+
# @param params [ModernTreasury::Models::PaymentReferenceRetrieveParams, Hash{Symbol=>Object}] .
|
11
|
+
#
|
12
|
+
# @option params [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
|
13
|
+
#
|
14
|
+
# @return [ModernTreasury::Models::PaymentReference]
|
15
|
+
def retrieve(id, params = {})
|
16
|
+
@client.request(
|
17
|
+
method: :get,
|
18
|
+
path: ["api/payment_references/%0s", id],
|
19
|
+
model: ModernTreasury::Models::PaymentReference,
|
20
|
+
options: params[:request_options]
|
21
|
+
)
|
22
|
+
end
|
23
|
+
|
24
|
+
# list payment_references
|
25
|
+
#
|
26
|
+
# @param params [ModernTreasury::Models::PaymentReferenceListParams, Hash{Symbol=>Object}] .
|
27
|
+
#
|
28
|
+
# @option params [String, nil] :after_cursor
|
29
|
+
#
|
30
|
+
# @option params [Integer] :per_page
|
31
|
+
#
|
32
|
+
# @option params [String] :reference_number The actual reference number assigned by the bank.
|
33
|
+
#
|
34
|
+
# @option params [String] :referenceable_id The id of the referenceable to search for. Must be accompanied by the
|
35
|
+
# referenceable_type or will return an error.
|
36
|
+
#
|
37
|
+
# @option params [Symbol, ModernTreasury::Models::PaymentReferenceListParams::ReferenceableType] :referenceable_type One of the referenceable types. This must be accompanied by the id of the
|
38
|
+
# referenceable or will return an error.
|
39
|
+
#
|
40
|
+
# @option params [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
|
41
|
+
#
|
42
|
+
# @return [ModernTreasury::Page<ModernTreasury::Models::PaymentReference>]
|
43
|
+
def list(params = {})
|
44
|
+
parsed, options = ModernTreasury::Models::PaymentReferenceListParams.dump_request(params)
|
45
|
+
@client.request(
|
46
|
+
method: :get,
|
47
|
+
path: "api/payment_references",
|
48
|
+
query: parsed,
|
49
|
+
page: ModernTreasury::Page,
|
50
|
+
model: ModernTreasury::Models::PaymentReference,
|
51
|
+
options: options
|
52
|
+
)
|
53
|
+
end
|
54
|
+
|
55
|
+
# @deprecated use `retrieve` instead
|
56
|
+
#
|
57
|
+
# get payment_reference
|
58
|
+
alias_method :retireve, :retrieve
|
59
|
+
|
60
|
+
# @param client [ModernTreasury::Client]
|
61
|
+
def initialize(client:)
|
62
|
+
@client = client
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|