modern_treasury 0.0.0 → 0.1.0.pre.alpha.15
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 +125 -0
- data/lib/modern_treasury/base_client.rb +475 -0
- data/lib/modern_treasury/base_model.rb +1191 -0
- data/lib/modern_treasury/base_page.rb +40 -0
- data/lib/modern_treasury/client.rb +236 -0
- data/lib/modern_treasury/errors.rb +187 -0
- data/lib/modern_treasury/extern.rb +10 -0
- data/lib/modern_treasury/models/account_collection_flow.rb +244 -0
- data/lib/modern_treasury/models/account_collection_flow_create_params.rb +91 -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 +49 -0
- data/lib/modern_treasury/models/account_detail.rb +132 -0
- data/lib/modern_treasury/models/account_detail_create_params.rb +106 -0
- data/lib/modern_treasury/models/account_detail_delete_params.rb +50 -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 +28 -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 +200 -0
- data/lib/modern_treasury/models/bulk_request_create_params.rb +4666 -0
- data/lib/modern_treasury/models/bulk_request_list_params.rb +178 -0
- data/lib/modern_treasury/models/bulk_request_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/bulk_result.rb +323 -0
- data/lib/modern_treasury/models/bulk_result_list_params.rb +190 -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 +124 -0
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +1191 -0
- data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +103 -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 +51 -0
- data/lib/modern_treasury/models/connection_list_params.rb +56 -0
- data/lib/modern_treasury/models/counterparty.rb +623 -0
- data/lib/modern_treasury/models/counterparty_collect_account_params.rb +128 -0
- data/lib/modern_treasury/models/counterparty_collect_account_response.rb +38 -0
- data/lib/modern_treasury/models/counterparty_create_params.rb +2033 -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 +225 -0
- data/lib/modern_treasury/models/document.rb +266 -0
- data/lib/modern_treasury/models/document_create_params.rb +89 -0
- data/lib/modern_treasury/models/document_list_params.rb +103 -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 +322 -0
- data/lib/modern_treasury/models/expected_payment_create_params.rb +580 -0
- data/lib/modern_treasury/models/expected_payment_delete_params.rb +18 -0
- data/lib/modern_treasury/models/expected_payment_list_params.rb +233 -0
- data/lib/modern_treasury/models/expected_payment_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/expected_payment_type.rb +67 -0
- data/lib/modern_treasury/models/expected_payment_update_params.rb +227 -0
- data/lib/modern_treasury/models/external_account.rb +436 -0
- data/lib/modern_treasury/models/external_account_complete_verification_params.rb +28 -0
- data/lib/modern_treasury/models/external_account_create_params.rb +662 -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 +44 -0
- data/lib/modern_treasury/models/external_account_update_params.rb +170 -0
- data/lib/modern_treasury/models/external_account_verify_params.rb +190 -0
- data/lib/modern_treasury/models/external_account_verify_response.rb +236 -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 +390 -0
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +171 -0
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +202 -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 +329 -0
- data/lib/modern_treasury/models/internal_account_create_params.rb +197 -0
- data/lib/modern_treasury/models/internal_account_list_params.rb +176 -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 +294 -0
- data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +169 -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 +92 -0
- data/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb +26 -0
- data/lib/modern_treasury/models/invoice.rb +679 -0
- data/lib/modern_treasury/models/invoice_add_payment_order_params.rb +24 -0
- data/lib/modern_treasury/models/invoice_create_params.rb +674 -0
- data/lib/modern_treasury/models/invoice_list_params.rb +181 -0
- data/lib/modern_treasury/models/invoice_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/invoice_update_params.rb +690 -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 +366 -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 +157 -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 +194 -0
- data/lib/modern_treasury/models/ledger_account_settlement_create_params.rb +128 -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 +75 -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 +359 -0
- data/lib/modern_treasury/models/ledger_entry_list_params.rb +380 -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 +214 -0
- data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +182 -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 +56 -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 +245 -0
- data/lib/modern_treasury/models/ledger_transaction_create_params.rb +304 -0
- data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +138 -0
- data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +178 -0
- data/lib/modern_treasury/models/ledger_transaction_list_params.rb +389 -0
- data/lib/modern_treasury/models/ledger_transaction_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_transaction_update_params.rb +282 -0
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +600 -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 +95 -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 +624 -0
- data/lib/modern_treasury/models/legal_entity_association.rb +746 -0
- data/lib/modern_treasury/models/legal_entity_association_create_params.rb +620 -0
- data/lib/modern_treasury/models/legal_entity_create_params.rb +1131 -0
- data/lib/modern_treasury/models/legal_entity_list_params.rb +100 -0
- data/lib/modern_treasury/models/legal_entity_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/legal_entity_update_params.rb +484 -0
- data/lib/modern_treasury/models/line_item.rb +172 -0
- data/lib/modern_treasury/models/line_item_list_params.rb +63 -0
- data/lib/modern_treasury/models/line_item_retrieve_params.rb +53 -0
- data/lib/modern_treasury/models/line_item_update_params.rb +65 -0
- data/lib/modern_treasury/models/paper_item.rb +188 -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 +339 -0
- data/lib/modern_treasury/models/payment_flow_create_params.rb +106 -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 +49 -0
- data/lib/modern_treasury/models/payment_order.rb +933 -0
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +1566 -0
- data/lib/modern_treasury/models/payment_order_create_params.rb +1657 -0
- data/lib/modern_treasury/models/payment_order_list_params.rb +346 -0
- data/lib/modern_treasury/models/payment_order_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/payment_order_subtype.rb +68 -0
- data/lib/modern_treasury/models/payment_order_type.rb +68 -0
- data/lib/modern_treasury/models/payment_order_update_params.rb +1312 -0
- data/lib/modern_treasury/models/payment_orders/reversal.rb +175 -0
- data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +389 -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 +220 -0
- data/lib/modern_treasury/models/payment_reference_list_params.rb +109 -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 +193 -0
- data/lib/modern_treasury/models/return_create_params.rb +182 -0
- data/lib/modern_treasury/models/return_list_params.rb +127 -0
- data/lib/modern_treasury/models/return_object.rb +588 -0
- data/lib/modern_treasury/models/return_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/routing_detail.rb +314 -0
- data/lib/modern_treasury/models/routing_detail_create_params.rb +187 -0
- data/lib/modern_treasury/models/routing_detail_delete_params.rb +50 -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 +248 -0
- data/lib/modern_treasury/models/transaction.rb +421 -0
- data/lib/modern_treasury/models/transaction_create_params.rb +182 -0
- data/lib/modern_treasury/models/transaction_delete_params.rb +18 -0
- data/lib/modern_treasury/models/transaction_direction.rb +28 -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 +85 -0
- data/lib/modern_treasury/models/transactions/line_item_retrieve_params.rb +20 -0
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +212 -0
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +91 -0
- data/lib/modern_treasury/models/virtual_account.rb +148 -0
- data/lib/modern_treasury/models/virtual_account_create_params.rb +516 -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 +436 -0
- data/lib/modern_treasury/page.rb +94 -0
- data/lib/modern_treasury/pooled_net_requester.rb +163 -0
- data/lib/modern_treasury/request_options.rb +115 -0
- data/lib/modern_treasury/resources/account_collection_flows.rb +113 -0
- data/lib/modern_treasury/resources/account_details.rb +135 -0
- data/lib/modern_treasury/resources/bulk_requests.rb +95 -0
- data/lib/modern_treasury/resources/bulk_results.rb +69 -0
- data/lib/modern_treasury/resources/connection_legal_entities.rb +110 -0
- data/lib/modern_treasury/resources/connections.rb +41 -0
- data/lib/modern_treasury/resources/counterparties.rb +210 -0
- data/lib/modern_treasury/resources/documents.rb +90 -0
- data/lib/modern_treasury/resources/events.rb +66 -0
- data/lib/modern_treasury/resources/expected_payments.rb +233 -0
- data/lib/modern_treasury/resources/external_accounts.rb +230 -0
- data/lib/modern_treasury/resources/foreign_exchange_quotes.rb +105 -0
- data/lib/modern_treasury/resources/incoming_payment_details.rb +138 -0
- data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +128 -0
- data/lib/modern_treasury/resources/internal_accounts.rb +145 -0
- data/lib/modern_treasury/resources/invoices/line_items.rb +180 -0
- data/lib/modern_treasury/resources/invoices.rb +291 -0
- data/lib/modern_treasury/resources/ledger_account_balance_monitors.rb +138 -0
- data/lib/modern_treasury/resources/ledger_account_categories.rb +268 -0
- data/lib/modern_treasury/resources/ledger_account_settlements/account_entries.rb +63 -0
- data/lib/modern_treasury/resources/ledger_account_settlements.rb +156 -0
- data/lib/modern_treasury/resources/ledger_account_statements.rb +65 -0
- data/lib/modern_treasury/resources/ledger_accounts.rb +195 -0
- data/lib/modern_treasury/resources/ledger_entries.rb +141 -0
- data/lib/modern_treasury/resources/ledger_event_handlers.rb +119 -0
- data/lib/modern_treasury/resources/ledger_transactions/versions.rb +52 -0
- data/lib/modern_treasury/resources/ledger_transactions.rb +269 -0
- data/lib/modern_treasury/resources/ledgerable_events.rb +60 -0
- data/lib/modern_treasury/resources/ledgers.rb +140 -0
- data/lib/modern_treasury/resources/legal_entities.rb +198 -0
- data/lib/modern_treasury/resources/legal_entity_associations.rb +45 -0
- data/lib/modern_treasury/resources/line_items.rb +108 -0
- data/lib/modern_treasury/resources/paper_items.rb +63 -0
- data/lib/modern_treasury/resources/payment_flows.rb +128 -0
- data/lib/modern_treasury/resources/payment_orders/reversals.rb +98 -0
- data/lib/modern_treasury/resources/payment_orders.rb +523 -0
- data/lib/modern_treasury/resources/payment_references.rb +85 -0
- data/lib/modern_treasury/resources/returns.rb +102 -0
- data/lib/modern_treasury/resources/routing_details.rb +139 -0
- data/lib/modern_treasury/resources/transactions/line_items.rb +109 -0
- data/lib/modern_treasury/resources/transactions.rb +180 -0
- data/lib/modern_treasury/resources/validations.rb +40 -0
- data/lib/modern_treasury/resources/virtual_accounts.rb +158 -0
- data/lib/modern_treasury/util.rb +468 -0
- data/lib/modern_treasury/version.rb +5 -0
- data/lib/modern_treasury.rb +293 -0
- data/manifest.yaml +12 -0
- data/rbi/lib/modern_treasury/base_client.rbi +161 -0
- data/rbi/lib/modern_treasury/base_model.rbi +480 -0
- data/rbi/lib/modern_treasury/base_page.rbi +39 -0
- data/rbi/lib/modern_treasury/client.rbi +198 -0
- data/rbi/lib/modern_treasury/errors.rbi +145 -0
- data/rbi/lib/modern_treasury/extern.rbi +7 -0
- data/rbi/lib/modern_treasury/models/account_collection_flow.rbi +198 -0
- data/rbi/lib/modern_treasury/models/account_collection_flow_create_params.rbi +87 -0
- data/rbi/lib/modern_treasury/models/account_collection_flow_list_params.rbi +98 -0
- data/rbi/lib/modern_treasury/models/account_collection_flow_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/account_collection_flow_update_params.rbi +42 -0
- data/rbi/lib/modern_treasury/models/account_detail.rbi +144 -0
- data/rbi/lib/modern_treasury/models/account_detail_create_params.rbi +89 -0
- data/rbi/lib/modern_treasury/models/account_detail_delete_params.rbi +58 -0
- data/rbi/lib/modern_treasury/models/account_detail_list_params.rbi +60 -0
- data/rbi/lib/modern_treasury/models/account_detail_retrieve_params.rbi +48 -0
- data/rbi/lib/modern_treasury/models/accounts_type.rbi +16 -0
- data/rbi/lib/modern_treasury/models/async_response.rbi +31 -0
- data/rbi/lib/modern_treasury/models/bank_settings.rbi +136 -0
- data/rbi/lib/modern_treasury/models/bulk_request.rbi +195 -0
- data/rbi/lib/modern_treasury/models/bulk_request_create_params.rbi +4685 -0
- data/rbi/lib/modern_treasury/models/bulk_request_list_params.rbi +135 -0
- data/rbi/lib/modern_treasury/models/bulk_request_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/bulk_result.rbi +365 -0
- data/rbi/lib/modern_treasury/models/bulk_result_list_params.rbi +145 -0
- data/rbi/lib/modern_treasury/models/bulk_result_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/client_ping_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/connection.rbi +125 -0
- data/rbi/lib/modern_treasury/models/connection_legal_entity.rbi +149 -0
- data/rbi/lib/modern_treasury/models/connection_legal_entity_create_params.rbi +1307 -0
- data/rbi/lib/modern_treasury/models/connection_legal_entity_list_params.rbi +100 -0
- data/rbi/lib/modern_treasury/models/connection_legal_entity_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/connection_legal_entity_update_params.rbi +42 -0
- data/rbi/lib/modern_treasury/models/connection_list_params.rbi +76 -0
- data/rbi/lib/modern_treasury/models/counterparty.rbi +714 -0
- data/rbi/lib/modern_treasury/models/counterparty_collect_account_params.rbi +108 -0
- data/rbi/lib/modern_treasury/models/counterparty_collect_account_response.rbi +39 -0
- data/rbi/lib/modern_treasury/models/counterparty_create_params.rbi +2028 -0
- data/rbi/lib/modern_treasury/models/counterparty_delete_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/counterparty_list_params.rbi +120 -0
- data/rbi/lib/modern_treasury/models/counterparty_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/counterparty_update_params.rbi +98 -0
- data/rbi/lib/modern_treasury/models/currency.rbi +203 -0
- data/rbi/lib/modern_treasury/models/document.rbi +325 -0
- data/rbi/lib/modern_treasury/models/document_create_params.rbi +91 -0
- data/rbi/lib/modern_treasury/models/document_list_params.rbi +97 -0
- data/rbi/lib/modern_treasury/models/document_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/event.rbi +136 -0
- data/rbi/lib/modern_treasury/models/event_list_params.rbi +109 -0
- data/rbi/lib/modern_treasury/models/event_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/expected_payment.rbi +350 -0
- data/rbi/lib/modern_treasury/models/expected_payment_create_params.rbi +591 -0
- data/rbi/lib/modern_treasury/models/expected_payment_delete_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/expected_payment_list_params.rbi +194 -0
- data/rbi/lib/modern_treasury/models/expected_payment_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/expected_payment_type.rbi +44 -0
- data/rbi/lib/modern_treasury/models/expected_payment_update_params.rbi +243 -0
- data/rbi/lib/modern_treasury/models/external_account.rbi +545 -0
- data/rbi/lib/modern_treasury/models/external_account_complete_verification_params.rbi +32 -0
- data/rbi/lib/modern_treasury/models/external_account_create_params.rbi +611 -0
- data/rbi/lib/modern_treasury/models/external_account_delete_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/external_account_list_params.rbi +87 -0
- data/rbi/lib/modern_treasury/models/external_account_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/external_account_type.rbi +22 -0
- data/rbi/lib/modern_treasury/models/external_account_update_params.rbi +203 -0
- data/rbi/lib/modern_treasury/models/external_account_verify_params.rbi +147 -0
- data/rbi/lib/modern_treasury/models/external_account_verify_response.rbi +212 -0
- data/rbi/lib/modern_treasury/models/foreign_exchange_quote.rbi +259 -0
- data/rbi/lib/modern_treasury/models/foreign_exchange_quote_create_params.rbi +98 -0
- data/rbi/lib/modern_treasury/models/foreign_exchange_quote_list_params.rbi +131 -0
- data/rbi/lib/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/incoming_payment_detail.rbi +383 -0
- data/rbi/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +149 -0
- data/rbi/lib/modern_treasury/models/incoming_payment_detail_list_params.rbi +161 -0
- data/rbi/lib/modern_treasury/models/incoming_payment_detail_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/incoming_payment_detail_update_params.rbi +34 -0
- data/rbi/lib/modern_treasury/models/internal_account.rbi +414 -0
- data/rbi/lib/modern_treasury/models/internal_account_create_params.rbi +225 -0
- data/rbi/lib/modern_treasury/models/internal_account_list_params.rbi +159 -0
- data/rbi/lib/modern_treasury/models/internal_account_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/internal_account_update_params.rbi +87 -0
- data/rbi/lib/modern_treasury/models/internal_accounts/balance_report.rbi +336 -0
- data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +164 -0
- data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_delete_params.rbi +36 -0
- data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rbi +91 -0
- data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbi +36 -0
- data/rbi/lib/modern_treasury/models/invoice.rbi +850 -0
- data/rbi/lib/modern_treasury/models/invoice_add_payment_order_params.rbi +35 -0
- data/rbi/lib/modern_treasury/models/invoice_create_params.rbi +793 -0
- data/rbi/lib/modern_treasury/models/invoice_list_params.rbi +168 -0
- data/rbi/lib/modern_treasury/models/invoice_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/invoice_update_params.rbi +793 -0
- data/rbi/lib/modern_treasury/models/invoices/invoice_line_item.rbi +173 -0
- data/rbi/lib/modern_treasury/models/invoices/line_item_create_params.rbi +111 -0
- data/rbi/lib/modern_treasury/models/invoices/line_item_delete_params.rbi +34 -0
- data/rbi/lib/modern_treasury/models/invoices/line_item_list_params.rbi +52 -0
- data/rbi/lib/modern_treasury/models/invoices/line_item_retrieve_params.rbi +34 -0
- data/rbi/lib/modern_treasury/models/invoices/line_item_update_params.rbi +122 -0
- data/rbi/lib/modern_treasury/models/ledger.rbi +125 -0
- data/rbi/lib/modern_treasury/models/ledger_account.rbi +502 -0
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor.rbi +533 -0
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rbi +113 -0
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_list_params.rbi +87 -0
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_update_params.rbi +50 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category.rbi +430 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbi +35 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_add_nested_category_params.rbi +35 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_create_params.rbi +120 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_delete_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_list_params.rbi +163 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbi +35 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbi +35 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_retrieve_params.rbi +69 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_update_params.rbi +60 -0
- data/rbi/lib/modern_treasury/models/ledger_account_create_params.rbi +155 -0
- data/rbi/lib/modern_treasury/models/ledger_account_delete_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/ledger_account_list_params.rbi +476 -0
- data/rbi/lib/modern_treasury/models/ledger_account_retrieve_params.rbi +119 -0
- data/rbi/lib/modern_treasury/models/ledger_account_settlement.rbi +228 -0
- data/rbi/lib/modern_treasury/models/ledger_account_settlement_create_params.rbi +131 -0
- data/rbi/lib/modern_treasury/models/ledger_account_settlement_list_params.rbi +142 -0
- data/rbi/lib/modern_treasury/models/ledger_account_settlement_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/ledger_account_settlement_update_params.rbi +71 -0
- data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbi +42 -0
- data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbi +40 -0
- data/rbi/lib/modern_treasury/models/ledger_account_statement_create_params.rbi +87 -0
- data/rbi/lib/modern_treasury/models/ledger_account_statement_create_response.rbi +735 -0
- data/rbi/lib/modern_treasury/models/ledger_account_statement_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rbi +737 -0
- data/rbi/lib/modern_treasury/models/ledger_account_update_params.rbi +60 -0
- data/rbi/lib/modern_treasury/models/ledger_create_params.rbi +60 -0
- data/rbi/lib/modern_treasury/models/ledger_delete_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/ledger_entry.rbi +486 -0
- data/rbi/lib/modern_treasury/models/ledger_entry_list_params.rbi +315 -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 +309 -0
- data/rbi/lib/modern_treasury/models/ledger_event_handler_create_params.rbi +257 -0
- data/rbi/lib/modern_treasury/models/ledger_event_handler_delete_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/ledger_event_handler_list_params.rbi +87 -0
- data/rbi/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/ledger_event_handler_variable.rbi +68 -0
- data/rbi/lib/modern_treasury/models/ledger_list_params.rbi +87 -0
- data/rbi/lib/modern_treasury/models/ledger_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/ledger_transaction.rbi +265 -0
- data/rbi/lib/modern_treasury/models/ledger_transaction_create_params.rbi +281 -0
- data/rbi/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rbi +150 -0
- data/rbi/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +136 -0
- data/rbi/lib/modern_treasury/models/ledger_transaction_list_params.rbi +319 -0
- data/rbi/lib/modern_treasury/models/ledger_transaction_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/ledger_transaction_update_params.rbi +259 -0
- data/rbi/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +781 -0
- data/rbi/lib/modern_treasury/models/ledger_transactions/version_list_params.rbi +100 -0
- data/rbi/lib/modern_treasury/models/ledger_update_params.rbi +60 -0
- data/rbi/lib/modern_treasury/models/ledgerable_event.rbi +136 -0
- data/rbi/lib/modern_treasury/models/ledgerable_event_create_params.rbi +70 -0
- data/rbi/lib/modern_treasury/models/ledgerable_event_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/legal_entity.rbi +748 -0
- data/rbi/lib/modern_treasury/models/legal_entity_association.rbi +890 -0
- data/rbi/lib/modern_treasury/models/legal_entity_association_create_params.rbi +649 -0
- data/rbi/lib/modern_treasury/models/legal_entity_create_params.rbi +1175 -0
- data/rbi/lib/modern_treasury/models/legal_entity_list_params.rbi +98 -0
- data/rbi/lib/modern_treasury/models/legal_entity_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/legal_entity_update_params.rbi +502 -0
- data/rbi/lib/modern_treasury/models/line_item.rbi +209 -0
- data/rbi/lib/modern_treasury/models/line_item_list_params.rbi +71 -0
- data/rbi/lib/modern_treasury/models/line_item_retrieve_params.rbi +59 -0
- data/rbi/lib/modern_treasury/models/line_item_update_params.rbi +71 -0
- data/rbi/lib/modern_treasury/models/paper_item.rbi +236 -0
- data/rbi/lib/modern_treasury/models/paper_item_list_params.rbi +87 -0
- data/rbi/lib/modern_treasury/models/paper_item_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/payment_flow.rbi +280 -0
- data/rbi/lib/modern_treasury/models/payment_flow_create_params.rbi +109 -0
- data/rbi/lib/modern_treasury/models/payment_flow_list_params.rbi +120 -0
- data/rbi/lib/modern_treasury/models/payment_flow_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/payment_flow_update_params.rbi +42 -0
- data/rbi/lib/modern_treasury/models/payment_order.rbi +997 -0
- data/rbi/lib/modern_treasury/models/payment_order_create_async_params.rbi +1455 -0
- data/rbi/lib/modern_treasury/models/payment_order_create_params.rbi +1538 -0
- data/rbi/lib/modern_treasury/models/payment_order_list_params.rbi +289 -0
- data/rbi/lib/modern_treasury/models/payment_order_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/payment_order_subtype.rbi +43 -0
- data/rbi/lib/modern_treasury/models/payment_order_type.rbi +44 -0
- data/rbi/lib/modern_treasury/models/payment_order_update_params.rbi +1179 -0
- data/rbi/lib/modern_treasury/models/payment_orders/reversal.rbi +178 -0
- data/rbi/lib/modern_treasury/models/payment_orders/reversal_create_params.rbi +363 -0
- data/rbi/lib/modern_treasury/models/payment_orders/reversal_list_params.rbi +52 -0
- data/rbi/lib/modern_treasury/models/payment_orders/reversal_retrieve_params.rbi +34 -0
- data/rbi/lib/modern_treasury/models/payment_reference.rbi +217 -0
- data/rbi/lib/modern_treasury/models/payment_reference_list_params.rbi +99 -0
- data/rbi/lib/modern_treasury/models/payment_reference_retireve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/payment_reference_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/ping_response.rbi +23 -0
- data/rbi/lib/modern_treasury/models/reconciliation_rule.rbi +186 -0
- data/rbi/lib/modern_treasury/models/return_create_params.rbi +170 -0
- data/rbi/lib/modern_treasury/models/return_list_params.rbi +112 -0
- data/rbi/lib/modern_treasury/models/return_object.rbi +587 -0
- data/rbi/lib/modern_treasury/models/return_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/routing_detail.rbi +361 -0
- data/rbi/lib/modern_treasury/models/routing_detail_create_params.rbi +155 -0
- data/rbi/lib/modern_treasury/models/routing_detail_delete_params.rbi +58 -0
- data/rbi/lib/modern_treasury/models/routing_detail_list_params.rbi +60 -0
- data/rbi/lib/modern_treasury/models/routing_detail_retrieve_params.rbi +48 -0
- data/rbi/lib/modern_treasury/models/routing_number_lookup_request.rbi +231 -0
- data/rbi/lib/modern_treasury/models/transaction.rbi +474 -0
- data/rbi/lib/modern_treasury/models/transaction_create_params.rbi +182 -0
- data/rbi/lib/modern_treasury/models/transaction_delete_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/transaction_direction.rbi +16 -0
- data/rbi/lib/modern_treasury/models/transaction_list_params.rbi +186 -0
- data/rbi/lib/modern_treasury/models/transaction_retrieve_params.rbi +18 -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 +62 -0
- data/rbi/lib/modern_treasury/models/transactions/line_item_delete_params.rbi +22 -0
- data/rbi/lib/modern_treasury/models/transactions/line_item_list_params.rbi +100 -0
- data/rbi/lib/modern_treasury/models/transactions/line_item_retrieve_params.rbi +22 -0
- data/rbi/lib/modern_treasury/models/transactions/transaction_line_item.rbi +221 -0
- data/rbi/lib/modern_treasury/models/validation_validate_routing_number_params.rbi +80 -0
- data/rbi/lib/modern_treasury/models/virtual_account.rbi +208 -0
- data/rbi/lib/modern_treasury/models/virtual_account_create_params.rbi +453 -0
- data/rbi/lib/modern_treasury/models/virtual_account_delete_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/virtual_account_list_params.rbi +87 -0
- data/rbi/lib/modern_treasury/models/virtual_account_retrieve_params.rbi +18 -0
- data/rbi/lib/modern_treasury/models/virtual_account_update_params.rbi +76 -0
- data/rbi/lib/modern_treasury/models/wealth_and_employment_details.rbi +363 -0
- data/rbi/lib/modern_treasury/page.rbi +49 -0
- data/rbi/lib/modern_treasury/pooled_net_requester.rbi +59 -0
- data/rbi/lib/modern_treasury/request_options.rbi +84 -0
- data/rbi/lib/modern_treasury/resources/account_collection_flows.rbi +67 -0
- data/rbi/lib/modern_treasury/resources/account_details.rbi +61 -0
- data/rbi/lib/modern_treasury/resources/bulk_requests.rbi +69 -0
- data/rbi/lib/modern_treasury/resources/bulk_results.rbi +46 -0
- data/rbi/lib/modern_treasury/resources/connection_legal_entities.rbi +65 -0
- data/rbi/lib/modern_treasury/resources/connections.rbi +24 -0
- data/rbi/lib/modern_treasury/resources/counterparties.rbi +137 -0
- data/rbi/lib/modern_treasury/resources/documents.rbi +53 -0
- data/rbi/lib/modern_treasury/resources/events.rbi +46 -0
- data/rbi/lib/modern_treasury/resources/expected_payments.rbi +158 -0
- data/rbi/lib/modern_treasury/resources/external_accounts.rbi +155 -0
- data/rbi/lib/modern_treasury/resources/foreign_exchange_quotes.rbi +73 -0
- data/rbi/lib/modern_treasury/resources/incoming_payment_details.rbi +88 -0
- data/rbi/lib/modern_treasury/resources/internal_accounts/balance_reports.rbi +77 -0
- data/rbi/lib/modern_treasury/resources/internal_accounts.rbi +104 -0
- data/rbi/lib/modern_treasury/resources/invoices/line_items.rbi +103 -0
- data/rbi/lib/modern_treasury/resources/invoices.rbi +193 -0
- data/rbi/lib/modern_treasury/resources/ledger_account_balance_monitors.rbi +77 -0
- data/rbi/lib/modern_treasury/resources/ledger_account_categories.rbi +147 -0
- data/rbi/lib/modern_treasury/resources/ledger_account_settlements/account_entries.rbi +35 -0
- data/rbi/lib/modern_treasury/resources/ledger_account_settlements.rbi +96 -0
- data/rbi/lib/modern_treasury/resources/ledger_account_statements.rbi +42 -0
- data/rbi/lib/modern_treasury/resources/ledger_accounts.rbi +115 -0
- data/rbi/lib/modern_treasury/resources/ledger_entries.rbi +84 -0
- data/rbi/lib/modern_treasury/resources/ledger_event_handlers.rbi +77 -0
- data/rbi/lib/modern_treasury/resources/ledger_transactions/versions.rbi +36 -0
- data/rbi/lib/modern_treasury/resources/ledger_transactions.rbi +178 -0
- data/rbi/lib/modern_treasury/resources/ledgerable_events.rbi +34 -0
- data/rbi/lib/modern_treasury/resources/ledgers.rbi +70 -0
- data/rbi/lib/modern_treasury/resources/legal_entities.rbi +158 -0
- data/rbi/lib/modern_treasury/resources/legal_entity_associations.rbi +34 -0
- data/rbi/lib/modern_treasury/resources/line_items.rbi +49 -0
- data/rbi/lib/modern_treasury/resources/paper_items.rbi +42 -0
- data/rbi/lib/modern_treasury/resources/payment_flows.rbi +82 -0
- data/rbi/lib/modern_treasury/resources/payment_orders/reversals.rbi +49 -0
- data/rbi/lib/modern_treasury/resources/payment_orders.rbi +315 -0
- data/rbi/lib/modern_treasury/resources/payment_references.rbi +52 -0
- data/rbi/lib/modern_treasury/resources/returns.rbi +67 -0
- data/rbi/lib/modern_treasury/resources/routing_details.rbi +69 -0
- data/rbi/lib/modern_treasury/resources/transactions/line_items.rbi +66 -0
- data/rbi/lib/modern_treasury/resources/transactions.rbi +116 -0
- data/rbi/lib/modern_treasury/resources/validations.rbi +22 -0
- data/rbi/lib/modern_treasury/resources/virtual_accounts.rbi +104 -0
- data/rbi/lib/modern_treasury/util.rbi +135 -0
- data/rbi/lib/modern_treasury/version.rbi +5 -0
- data/sig/modern_treasury/base_client.rbs +100 -0
- data/sig/modern_treasury/base_model.rbs +246 -0
- data/sig/modern_treasury/base_page.rbs +20 -0
- data/sig/modern_treasury/client.rbs +102 -0
- data/sig/modern_treasury/errors.rbs +98 -0
- data/sig/modern_treasury/extern.rbs +4 -0
- data/sig/modern_treasury/models/account_collection_flow.rbs +146 -0
- data/sig/modern_treasury/models/account_collection_flow_create_params.rbs +83 -0
- data/sig/modern_treasury/models/account_collection_flow_list_params.rbs +58 -0
- data/sig/modern_treasury/models/account_collection_flow_retrieve_params.rbs +20 -0
- data/sig/modern_treasury/models/account_collection_flow_update_params.rbs +36 -0
- data/sig/modern_treasury/models/account_detail.rbs +84 -0
- data/sig/modern_treasury/models/account_detail_create_params.rbs +75 -0
- data/sig/modern_treasury/models/account_detail_delete_params.rbs +40 -0
- data/sig/modern_treasury/models/account_detail_list_params.rbs +38 -0
- data/sig/modern_treasury/models/account_detail_retrieve_params.rbs +32 -0
- data/sig/modern_treasury/models/accounts_type.rbs +12 -0
- data/sig/modern_treasury/models/async_response.rbs +20 -0
- data/sig/modern_treasury/models/bank_settings.rbs +59 -0
- data/sig/modern_treasury/models/bulk_request.rbs +98 -0
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +2680 -0
- data/sig/modern_treasury/models/bulk_request_list_params.rbs +96 -0
- data/sig/modern_treasury/models/bulk_request_retrieve_params.rbs +20 -0
- data/sig/modern_treasury/models/bulk_result.rbs +178 -0
- data/sig/modern_treasury/models/bulk_result_list_params.rbs +105 -0
- data/sig/modern_treasury/models/bulk_result_retrieve_params.rbs +19 -0
- data/sig/modern_treasury/models/client_ping_params.rbs +19 -0
- data/sig/modern_treasury/models/connection.rbs +54 -0
- data/sig/modern_treasury/models/connection_legal_entity.rbs +70 -0
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +739 -0
- data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +65 -0
- data/sig/modern_treasury/models/connection_legal_entity_retrieve_params.rbs +20 -0
- data/sig/modern_treasury/models/connection_legal_entity_update_params.rbs +40 -0
- data/sig/modern_treasury/models/connection_list_params.rbs +46 -0
- data/sig/modern_treasury/models/counterparty.rbs +352 -0
- data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +113 -0
- data/sig/modern_treasury/models/counterparty_collect_account_response.rbs +23 -0
- data/sig/modern_treasury/models/counterparty_create_params.rbs +1310 -0
- data/sig/modern_treasury/models/counterparty_delete_params.rbs +19 -0
- data/sig/modern_treasury/models/counterparty_list_params.rbs +70 -0
- data/sig/modern_treasury/models/counterparty_retrieve_params.rbs +20 -0
- data/sig/modern_treasury/models/counterparty_update_params.rbs +58 -0
- data/sig/modern_treasury/models/currency.rbs +388 -0
- data/sig/modern_treasury/models/document.rbs +170 -0
- data/sig/modern_treasury/models/document_create_params.rbs +73 -0
- data/sig/modern_treasury/models/document_list_params.rbs +79 -0
- data/sig/modern_treasury/models/document_retrieve_params.rbs +19 -0
- data/sig/modern_treasury/models/event.rbs +58 -0
- data/sig/modern_treasury/models/event_list_params.rbs +64 -0
- data/sig/modern_treasury/models/event_retrieve_params.rbs +19 -0
- data/sig/modern_treasury/models/expected_payment.rbs +153 -0
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +308 -0
- data/sig/modern_treasury/models/expected_payment_delete_params.rbs +20 -0
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +167 -0
- data/sig/modern_treasury/models/expected_payment_retrieve_params.rbs +20 -0
- data/sig/modern_treasury/models/expected_payment_type.rbs +70 -0
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +111 -0
- data/sig/modern_treasury/models/external_account.rbs +242 -0
- data/sig/modern_treasury/models/external_account_complete_verification_params.rbs +27 -0
- data/sig/modern_treasury/models/external_account_create_params.rbs +481 -0
- data/sig/modern_treasury/models/external_account_delete_params.rbs +20 -0
- data/sig/modern_treasury/models/external_account_list_params.rbs +52 -0
- data/sig/modern_treasury/models/external_account_retrieve_params.rbs +20 -0
- data/sig/modern_treasury/models/external_account_type.rbs +26 -0
- data/sig/modern_treasury/models/external_account_update_params.rbs +113 -0
- data/sig/modern_treasury/models/external_account_verify_params.rbs +140 -0
- data/sig/modern_treasury/models/external_account_verify_response.rbs +154 -0
- data/sig/modern_treasury/models/foreign_exchange_quote.rbs +113 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_create_params.rbs +58 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_list_params.rbs +76 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbs +20 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +222 -0
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +94 -0
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +109 -0
- data/sig/modern_treasury/models/incoming_payment_detail_retrieve_params.rbs +20 -0
- data/sig/modern_treasury/models/incoming_payment_detail_update_params.rbs +27 -0
- data/sig/modern_treasury/models/internal_account.rbs +187 -0
- data/sig/modern_treasury/models/internal_account_create_params.rbs +123 -0
- data/sig/modern_treasury/models/internal_account_list_params.rbs +143 -0
- data/sig/modern_treasury/models/internal_account_retrieve_params.rbs +20 -0
- data/sig/modern_treasury/models/internal_account_update_params.rbs +54 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +166 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +111 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_delete_params.rbs +27 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_list_params.rbs +62 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +27 -0
- data/sig/modern_treasury/models/invoice.rbs +383 -0
- data/sig/modern_treasury/models/invoice_add_payment_order_params.rbs +22 -0
- data/sig/modern_treasury/models/invoice_create_params.rbs +396 -0
- data/sig/modern_treasury/models/invoice_list_params.rbs +104 -0
- data/sig/modern_treasury/models/invoice_retrieve_params.rbs +19 -0
- data/sig/modern_treasury/models/invoice_update_params.rbs +404 -0
- data/sig/modern_treasury/models/invoices/invoice_line_item.rbs +76 -0
- data/sig/modern_treasury/models/invoices/line_item_create_params.rbs +64 -0
- data/sig/modern_treasury/models/invoices/line_item_delete_params.rbs +27 -0
- data/sig/modern_treasury/models/invoices/line_item_list_params.rbs +33 -0
- data/sig/modern_treasury/models/invoices/line_item_retrieve_params.rbs +27 -0
- data/sig/modern_treasury/models/invoices/line_item_update_params.rbs +72 -0
- data/sig/modern_treasury/models/ledger.rbs +54 -0
- data/sig/modern_treasury/models/ledger_account.rbs +235 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +246 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_create_params.rbs +63 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbs +20 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_list_params.rbs +52 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbs +20 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_update_params.rbs +33 -0
- data/sig/modern_treasury/models/ledger_account_category.rbs +203 -0
- data/sig/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbs +22 -0
- data/sig/modern_treasury/models/ledger_account_category_add_nested_category_params.rbs +22 -0
- data/sig/modern_treasury/models/ledger_account_category_create_params.rbs +60 -0
- data/sig/modern_treasury/models/ledger_account_category_delete_params.rbs +20 -0
- data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +101 -0
- data/sig/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbs +22 -0
- data/sig/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbs +22 -0
- data/sig/modern_treasury/models/ledger_account_category_retrieve_params.rbs +53 -0
- data/sig/modern_treasury/models/ledger_account_category_update_params.rbs +36 -0
- data/sig/modern_treasury/models/ledger_account_create_params.rbs +86 -0
- data/sig/modern_treasury/models/ledger_account_delete_params.rbs +20 -0
- data/sig/modern_treasury/models/ledger_account_list_params.rbs +310 -0
- data/sig/modern_treasury/models/ledger_account_retrieve_params.rbs +78 -0
- data/sig/modern_treasury/models/ledger_account_settlement.rbs +101 -0
- data/sig/modern_treasury/models/ledger_account_settlement_create_params.rbs +67 -0
- data/sig/modern_treasury/models/ledger_account_settlement_list_params.rbs +82 -0
- data/sig/modern_treasury/models/ledger_account_settlement_retrieve_params.rbs +20 -0
- data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +51 -0
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbs +27 -0
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbs +28 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_params.rbs +46 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +351 -0
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_params.rbs +20 -0
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +351 -0
- data/sig/modern_treasury/models/ledger_account_update_params.rbs +36 -0
- data/sig/modern_treasury/models/ledger_create_params.rbs +34 -0
- data/sig/modern_treasury/models/ledger_delete_params.rbs +19 -0
- data/sig/modern_treasury/models/ledger_entry.rbs +228 -0
- data/sig/modern_treasury/models/ledger_entry_list_params.rbs +210 -0
- data/sig/modern_treasury/models/ledger_entry_retrieve_params.rbs +27 -0
- data/sig/modern_treasury/models/ledger_entry_update_params.rbs +27 -0
- data/sig/modern_treasury/models/ledger_event_handler.rbs +146 -0
- data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +129 -0
- data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +20 -0
- data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +52 -0
- data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +20 -0
- data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +46 -0
- data/sig/modern_treasury/models/ledger_list_params.rbs +52 -0
- data/sig/modern_treasury/models/ledger_retrieve_params.rbs +19 -0
- data/sig/modern_treasury/models/ledger_transaction.rbs +124 -0
- data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +161 -0
- data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +89 -0
- data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +97 -0
- data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +221 -0
- data/sig/modern_treasury/models/ledger_transaction_retrieve_params.rbs +20 -0
- data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +153 -0
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +351 -0
- data/sig/modern_treasury/models/ledger_transactions/version_list_params.rbs +60 -0
- data/sig/modern_treasury/models/ledger_update_params.rbs +36 -0
- data/sig/modern_treasury/models/ledgerable_event.rbs +59 -0
- data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +42 -0
- data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +20 -0
- data/sig/modern_treasury/models/legal_entity.rbs +372 -0
- data/sig/modern_treasury/models/legal_entity_association.rbs +438 -0
- data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +384 -0
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +701 -0
- data/sig/modern_treasury/models/legal_entity_list_params.rbs +63 -0
- data/sig/modern_treasury/models/legal_entity_retrieve_params.rbs +20 -0
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +312 -0
- data/sig/modern_treasury/models/line_item.rbs +96 -0
- data/sig/modern_treasury/models/line_item_list_params.rbs +47 -0
- data/sig/modern_treasury/models/line_item_retrieve_params.rbs +41 -0
- data/sig/modern_treasury/models/line_item_update_params.rbs +47 -0
- data/sig/modern_treasury/models/paper_item.rbs +100 -0
- data/sig/modern_treasury/models/paper_item_list_params.rbs +52 -0
- data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +19 -0
- data/sig/modern_treasury/models/payment_flow.rbs +161 -0
- data/sig/modern_treasury/models/payment_flow_create_params.rbs +59 -0
- data/sig/modern_treasury/models/payment_flow_list_params.rbs +70 -0
- data/sig/modern_treasury/models/payment_flow_retrieve_params.rbs +20 -0
- data/sig/modern_treasury/models/payment_flow_update_params.rbs +34 -0
- data/sig/modern_treasury/models/payment_order.rbs +566 -0
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +922 -0
- data/sig/modern_treasury/models/payment_order_create_params.rbs +995 -0
- data/sig/modern_treasury/models/payment_order_list_params.rbs +237 -0
- data/sig/modern_treasury/models/payment_order_retrieve_params.rbs +20 -0
- data/sig/modern_treasury/models/payment_order_subtype.rbs +68 -0
- data/sig/modern_treasury/models/payment_order_type.rbs +70 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +802 -0
- data/sig/modern_treasury/models/payment_orders/reversal.rbs +96 -0
- data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +214 -0
- data/sig/modern_treasury/models/payment_orders/reversal_list_params.rbs +33 -0
- data/sig/modern_treasury/models/payment_orders/reversal_retrieve_params.rbs +27 -0
- data/sig/modern_treasury/models/payment_reference.rbs +214 -0
- data/sig/modern_treasury/models/payment_reference_list_params.rbs +64 -0
- data/sig/modern_treasury/models/payment_reference_retireve_params.rbs +20 -0
- data/sig/modern_treasury/models/payment_reference_retrieve_params.rbs +20 -0
- data/sig/modern_treasury/models/ping_response.rbs +18 -0
- data/sig/modern_treasury/models/reconciliation_rule.rbs +139 -0
- data/sig/modern_treasury/models/return_create_params.rbs +169 -0
- data/sig/modern_treasury/models/return_list_params.rbs +77 -0
- data/sig/modern_treasury/models/return_object.rbs +490 -0
- data/sig/modern_treasury/models/return_retrieve_params.rbs +19 -0
- data/sig/modern_treasury/models/routing_detail.rbs +239 -0
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +164 -0
- data/sig/modern_treasury/models/routing_detail_delete_params.rbs +40 -0
- data/sig/modern_treasury/models/routing_detail_list_params.rbs +38 -0
- data/sig/modern_treasury/models/routing_detail_retrieve_params.rbs +32 -0
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +191 -0
- data/sig/modern_treasury/models/transaction.rbs +286 -0
- data/sig/modern_treasury/models/transaction_create_params.rbs +137 -0
- data/sig/modern_treasury/models/transaction_delete_params.rbs +19 -0
- data/sig/modern_treasury/models/transaction_direction.rbs +12 -0
- data/sig/modern_treasury/models/transaction_list_params.rbs +106 -0
- data/sig/modern_treasury/models/transaction_retrieve_params.rbs +19 -0
- data/sig/modern_treasury/models/transaction_update_params.rbs +27 -0
- data/sig/modern_treasury/models/transactions/line_item_create_params.rbs +34 -0
- data/sig/modern_treasury/models/transactions/line_item_delete_params.rbs +21 -0
- data/sig/modern_treasury/models/transactions/line_item_list_params.rbs +61 -0
- data/sig/modern_treasury/models/transactions/line_item_retrieve_params.rbs +21 -0
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +112 -0
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +81 -0
- data/sig/modern_treasury/models/virtual_account.rbs +83 -0
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +366 -0
- data/sig/modern_treasury/models/virtual_account_delete_params.rbs +20 -0
- data/sig/modern_treasury/models/virtual_account_list_params.rbs +52 -0
- data/sig/modern_treasury/models/virtual_account_retrieve_params.rbs +20 -0
- data/sig/modern_treasury/models/virtual_account_update_params.rbs +46 -0
- data/sig/modern_treasury/models/wealth_and_employment_details.rbs +299 -0
- data/sig/modern_treasury/page.rbs +22 -0
- data/sig/modern_treasury/pooled_net_requester.rbs +42 -0
- data/sig/modern_treasury/request_options.rbs +42 -0
- data/sig/modern_treasury/resources/account_collection_flows.rbs +57 -0
- data/sig/modern_treasury/resources/account_details.rbs +61 -0
- data/sig/modern_treasury/resources/bulk_requests.rbs +46 -0
- data/sig/modern_treasury/resources/bulk_results.rbs +34 -0
- data/sig/modern_treasury/resources/connection_legal_entities.rbs +56 -0
- data/sig/modern_treasury/resources/connections.rbs +20 -0
- data/sig/modern_treasury/resources/counterparties.rbs +95 -0
- data/sig/modern_treasury/resources/documents.rbs +44 -0
- data/sig/modern_treasury/resources/events.rbs +33 -0
- data/sig/modern_treasury/resources/expected_payments.rbs +104 -0
- data/sig/modern_treasury/resources/external_accounts.rbs +108 -0
- data/sig/modern_treasury/resources/foreign_exchange_quotes.rbs +51 -0
- data/sig/modern_treasury/resources/incoming_payment_details.rbs +65 -0
- data/sig/modern_treasury/resources/internal_accounts/balance_reports.rbs +63 -0
- data/sig/modern_treasury/resources/internal_accounts.rbs +71 -0
- data/sig/modern_treasury/resources/invoices/line_items.rbs +83 -0
- data/sig/modern_treasury/resources/invoices.rbs +122 -0
- data/sig/modern_treasury/resources/ledger_account_balance_monitors.rbs +69 -0
- data/sig/modern_treasury/resources/ledger_account_categories.rbs +128 -0
- data/sig/modern_treasury/resources/ledger_account_settlements/account_entries.rbs +33 -0
- data/sig/modern_treasury/resources/ledger_account_settlements.rbs +70 -0
- data/sig/modern_treasury/resources/ledger_account_statements.rbs +32 -0
- data/sig/modern_treasury/resources/ledger_accounts.rbs +86 -0
- data/sig/modern_treasury/resources/ledger_entries.rbs +60 -0
- data/sig/modern_treasury/resources/ledger_event_handlers.rbs +59 -0
- data/sig/modern_treasury/resources/ledger_transactions/versions.rbs +24 -0
- data/sig/modern_treasury/resources/ledger_transactions.rbs +117 -0
- data/sig/modern_treasury/resources/ledgerable_events.rbs +31 -0
- data/sig/modern_treasury/resources/ledgers.rbs +68 -0
- data/sig/modern_treasury/resources/legal_entities.rbs +98 -0
- data/sig/modern_treasury/resources/legal_entity_associations.rbs +22 -0
- data/sig/modern_treasury/resources/line_items.rbs +48 -0
- data/sig/modern_treasury/resources/paper_items.rbs +32 -0
- data/sig/modern_treasury/resources/payment_flows.rbs +62 -0
- data/sig/modern_treasury/resources/payment_orders/reversals.rbs +48 -0
- data/sig/modern_treasury/resources/payment_orders.rbs +180 -0
- data/sig/modern_treasury/resources/payment_references.rbs +43 -0
- data/sig/modern_treasury/resources/returns.rbs +47 -0
- data/sig/modern_treasury/resources/routing_details.rbs +62 -0
- data/sig/modern_treasury/resources/transactions/line_items.rbs +54 -0
- data/sig/modern_treasury/resources/transactions.rbs +82 -0
- data/sig/modern_treasury/resources/validations.rbs +18 -0
- data/sig/modern_treasury/resources/virtual_accounts.rbs +77 -0
- data/sig/modern_treasury/util.rbs +91 -0
- data/sig/modern_treasury/version.rbs +3 -0
- metadata +861 -20
@@ -0,0 +1,1312 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ModernTreasury
|
4
|
+
module Models
|
5
|
+
class PaymentOrderUpdateParams < ModernTreasury::BaseModel
|
6
|
+
# @!parse
|
7
|
+
# extend ModernTreasury::RequestParameters::Converter
|
8
|
+
include ModernTreasury::RequestParameters
|
9
|
+
|
10
|
+
# @!attribute [r] accounting
|
11
|
+
#
|
12
|
+
# @return [ModernTreasury::Models::PaymentOrderUpdateParams::Accounting, nil]
|
13
|
+
optional :accounting, -> { ModernTreasury::Models::PaymentOrderUpdateParams::Accounting }
|
14
|
+
|
15
|
+
# @!parse
|
16
|
+
# # @return [ModernTreasury::Models::PaymentOrderUpdateParams::Accounting]
|
17
|
+
# attr_writer :accounting
|
18
|
+
|
19
|
+
# @!attribute accounting_category_id
|
20
|
+
# The ID of one of your accounting categories. Note that these will only be
|
21
|
+
# accessible if your accounting system has been connected.
|
22
|
+
#
|
23
|
+
# @return [String, nil]
|
24
|
+
optional :accounting_category_id, String, nil?: true
|
25
|
+
|
26
|
+
# @!attribute accounting_ledger_class_id
|
27
|
+
# The ID of one of your accounting ledger classes. Note that these will only be
|
28
|
+
# accessible if your accounting system has been connected.
|
29
|
+
#
|
30
|
+
# @return [String, nil]
|
31
|
+
optional :accounting_ledger_class_id, String, nil?: true
|
32
|
+
|
33
|
+
# @!attribute [r] amount
|
34
|
+
# Value in specified currency's smallest unit. e.g. $10 would be represented as
|
35
|
+
# 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
|
36
|
+
#
|
37
|
+
# @return [Integer, nil]
|
38
|
+
optional :amount, Integer
|
39
|
+
|
40
|
+
# @!parse
|
41
|
+
# # @return [Integer]
|
42
|
+
# attr_writer :amount
|
43
|
+
|
44
|
+
# @!attribute charge_bearer
|
45
|
+
# The party that will pay the fees for the payment order. Only applies to wire
|
46
|
+
# payment orders. Can be one of shared, sender, or receiver, which correspond
|
47
|
+
# respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
|
48
|
+
#
|
49
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ChargeBearer, nil]
|
50
|
+
optional :charge_bearer,
|
51
|
+
enum: -> { ModernTreasury::Models::PaymentOrderUpdateParams::ChargeBearer },
|
52
|
+
nil?: true
|
53
|
+
|
54
|
+
# @!attribute counterparty_id
|
55
|
+
# Required when receiving_account_id is passed the ID of an external account.
|
56
|
+
#
|
57
|
+
# @return [String, nil]
|
58
|
+
optional :counterparty_id, String, nil?: true
|
59
|
+
|
60
|
+
# @!attribute [r] currency
|
61
|
+
# Defaults to the currency of the originating account.
|
62
|
+
#
|
63
|
+
# @return [Symbol, ModernTreasury::Models::Currency, nil]
|
64
|
+
optional :currency, enum: -> { ModernTreasury::Models::Currency }
|
65
|
+
|
66
|
+
# @!parse
|
67
|
+
# # @return [Symbol, ModernTreasury::Models::Currency]
|
68
|
+
# attr_writer :currency
|
69
|
+
|
70
|
+
# @!attribute description
|
71
|
+
# An optional description for internal use.
|
72
|
+
#
|
73
|
+
# @return [String, nil]
|
74
|
+
optional :description, String, nil?: true
|
75
|
+
|
76
|
+
# @!attribute [r] direction
|
77
|
+
# One of `credit`, `debit`. Describes the direction money is flowing in the
|
78
|
+
# transaction. A `credit` moves money from your account to someone else's. A
|
79
|
+
# `debit` pulls money from someone else's account to your own. Note that wire,
|
80
|
+
# rtp, and check payments will always be `credit`.
|
81
|
+
#
|
82
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::Direction, nil]
|
83
|
+
optional :direction, enum: -> { ModernTreasury::Models::PaymentOrderUpdateParams::Direction }
|
84
|
+
|
85
|
+
# @!parse
|
86
|
+
# # @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::Direction]
|
87
|
+
# attr_writer :direction
|
88
|
+
|
89
|
+
# @!attribute [r] effective_date
|
90
|
+
# Date transactions are to be posted to the participants' account. Defaults to the
|
91
|
+
# current business day or the next business day if the current day is a bank
|
92
|
+
# holiday or weekend. Format: yyyy-mm-dd.
|
93
|
+
#
|
94
|
+
# @return [Date, nil]
|
95
|
+
optional :effective_date, Date
|
96
|
+
|
97
|
+
# @!parse
|
98
|
+
# # @return [Date]
|
99
|
+
# attr_writer :effective_date
|
100
|
+
|
101
|
+
# @!attribute expires_at
|
102
|
+
# RFP payments require an expires_at. This value must be past the effective_date.
|
103
|
+
#
|
104
|
+
# @return [Time, nil]
|
105
|
+
optional :expires_at, Time, nil?: true
|
106
|
+
|
107
|
+
# @!attribute [r] fallback_type
|
108
|
+
# A payment type to fallback to if the original type is not valid for the
|
109
|
+
# receiving account. Currently, this only supports falling back from RTP to ACH
|
110
|
+
# (type=rtp and fallback_type=ach)
|
111
|
+
#
|
112
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::FallbackType, nil]
|
113
|
+
optional :fallback_type, enum: -> { ModernTreasury::Models::PaymentOrderUpdateParams::FallbackType }
|
114
|
+
|
115
|
+
# @!parse
|
116
|
+
# # @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::FallbackType]
|
117
|
+
# attr_writer :fallback_type
|
118
|
+
|
119
|
+
# @!attribute foreign_exchange_contract
|
120
|
+
# If present, indicates a specific foreign exchange contract number that has been
|
121
|
+
# generated by your financial institution.
|
122
|
+
#
|
123
|
+
# @return [String, nil]
|
124
|
+
optional :foreign_exchange_contract, String, nil?: true
|
125
|
+
|
126
|
+
# @!attribute foreign_exchange_indicator
|
127
|
+
# Indicates the type of FX transfer to initiate, can be either
|
128
|
+
# `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
|
129
|
+
# currency matches the originating account currency.
|
130
|
+
#
|
131
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ForeignExchangeIndicator, nil]
|
132
|
+
optional :foreign_exchange_indicator,
|
133
|
+
enum: -> { ModernTreasury::Models::PaymentOrderUpdateParams::ForeignExchangeIndicator },
|
134
|
+
nil?: true
|
135
|
+
|
136
|
+
# @!attribute [r] line_items
|
137
|
+
# An array of line items that must sum up to the amount of the payment order.
|
138
|
+
#
|
139
|
+
# @return [Array<ModernTreasury::Models::PaymentOrderUpdateParams::LineItem>, nil]
|
140
|
+
optional :line_items,
|
141
|
+
-> { ModernTreasury::ArrayOf[ModernTreasury::Models::PaymentOrderUpdateParams::LineItem] }
|
142
|
+
|
143
|
+
# @!parse
|
144
|
+
# # @return [Array<ModernTreasury::Models::PaymentOrderUpdateParams::LineItem>]
|
145
|
+
# attr_writer :line_items
|
146
|
+
|
147
|
+
# @!attribute [r] metadata
|
148
|
+
# Additional data represented as key-value pairs. Both the key and value must be
|
149
|
+
# strings.
|
150
|
+
#
|
151
|
+
# @return [Hash{Symbol=>String}, nil]
|
152
|
+
optional :metadata, ModernTreasury::HashOf[String]
|
153
|
+
|
154
|
+
# @!parse
|
155
|
+
# # @return [Hash{Symbol=>String}]
|
156
|
+
# attr_writer :metadata
|
157
|
+
|
158
|
+
# @!attribute [r] nsf_protected
|
159
|
+
# A boolean to determine if NSF Protection is enabled for this payment order. Note
|
160
|
+
# that this setting must also be turned on in your organization settings page.
|
161
|
+
#
|
162
|
+
# @return [Boolean, nil]
|
163
|
+
optional :nsf_protected, ModernTreasury::BooleanModel
|
164
|
+
|
165
|
+
# @!parse
|
166
|
+
# # @return [Boolean]
|
167
|
+
# attr_writer :nsf_protected
|
168
|
+
|
169
|
+
# @!attribute [r] originating_account_id
|
170
|
+
# The ID of one of your organization's internal accounts.
|
171
|
+
#
|
172
|
+
# @return [String, nil]
|
173
|
+
optional :originating_account_id, String
|
174
|
+
|
175
|
+
# @!parse
|
176
|
+
# # @return [String]
|
177
|
+
# attr_writer :originating_account_id
|
178
|
+
|
179
|
+
# @!attribute originating_party_name
|
180
|
+
# If present, this will replace your default company name on receiver's bank
|
181
|
+
# statement. This field can only be used for ACH payments currently. For ACH, only
|
182
|
+
# the first 16 characters of this string will be used. Any additional characters
|
183
|
+
# will be truncated.
|
184
|
+
#
|
185
|
+
# @return [String, nil]
|
186
|
+
optional :originating_party_name, String, nil?: true
|
187
|
+
|
188
|
+
# @!attribute [r] priority
|
189
|
+
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
190
|
+
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
191
|
+
# an overnight check rather than standard mail.
|
192
|
+
#
|
193
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::Priority, nil]
|
194
|
+
optional :priority, enum: -> { ModernTreasury::Models::PaymentOrderUpdateParams::Priority }
|
195
|
+
|
196
|
+
# @!parse
|
197
|
+
# # @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::Priority]
|
198
|
+
# attr_writer :priority
|
199
|
+
|
200
|
+
# @!attribute process_after
|
201
|
+
# If present, Modern Treasury will not process the payment until after this time.
|
202
|
+
# If `process_after` is past the cutoff for `effective_date`, `process_after` will
|
203
|
+
# take precedence and `effective_date` will automatically update to reflect the
|
204
|
+
# earliest possible sending date after `process_after`. Format is ISO8601
|
205
|
+
# timestamp.
|
206
|
+
#
|
207
|
+
# @return [Time, nil]
|
208
|
+
optional :process_after, Time, nil?: true
|
209
|
+
|
210
|
+
# @!attribute purpose
|
211
|
+
# For `wire`, this is usually the purpose which is transmitted via the
|
212
|
+
# "InstrForDbtrAgt" field in the ISO20022 file. For `eft`, this field is the 3
|
213
|
+
# digit CPA Code that will be attached to the payment.
|
214
|
+
#
|
215
|
+
# @return [String, nil]
|
216
|
+
optional :purpose, String, nil?: true
|
217
|
+
|
218
|
+
# @!attribute [r] receiving_account
|
219
|
+
# Either `receiving_account` or `receiving_account_id` must be present. When using
|
220
|
+
# `receiving_account_id`, you may pass the id of an external account or an
|
221
|
+
# internal account.
|
222
|
+
#
|
223
|
+
# @return [ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount, nil]
|
224
|
+
optional :receiving_account, -> { ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount }
|
225
|
+
|
226
|
+
# @!parse
|
227
|
+
# # @return [ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount]
|
228
|
+
# attr_writer :receiving_account
|
229
|
+
|
230
|
+
# @!attribute [r] receiving_account_id
|
231
|
+
# Either `receiving_account` or `receiving_account_id` must be present. When using
|
232
|
+
# `receiving_account_id`, you may pass the id of an external account or an
|
233
|
+
# internal account.
|
234
|
+
#
|
235
|
+
# @return [String, nil]
|
236
|
+
optional :receiving_account_id, String
|
237
|
+
|
238
|
+
# @!parse
|
239
|
+
# # @return [String]
|
240
|
+
# attr_writer :receiving_account_id
|
241
|
+
|
242
|
+
# @!attribute remittance_information
|
243
|
+
# For `ach`, this field will be passed through on an addenda record. For `wire`
|
244
|
+
# payments the field will be passed through as the "Originator to Beneficiary
|
245
|
+
# Information", also known as OBI or Fedwire tag 6000.
|
246
|
+
#
|
247
|
+
# @return [String, nil]
|
248
|
+
optional :remittance_information, String, nil?: true
|
249
|
+
|
250
|
+
# @!attribute send_remittance_advice
|
251
|
+
# Send an email to the counterparty when the payment order is sent to the bank. If
|
252
|
+
# `null`, `send_remittance_advice` on the Counterparty is used.
|
253
|
+
#
|
254
|
+
# @return [Boolean, nil]
|
255
|
+
optional :send_remittance_advice, ModernTreasury::BooleanModel, nil?: true
|
256
|
+
|
257
|
+
# @!attribute statement_descriptor
|
258
|
+
# An optional descriptor which will appear in the receiver's statement. For
|
259
|
+
# `check` payments this field will be used as the memo line. For `ach` the maximum
|
260
|
+
# length is 10 characters. Note that for ACH payments, the name on your bank
|
261
|
+
# account will be included automatically by the bank, so you can use the
|
262
|
+
# characters for other useful information. For `eft` the maximum length is 15
|
263
|
+
# characters.
|
264
|
+
#
|
265
|
+
# @return [String, nil]
|
266
|
+
optional :statement_descriptor, String, nil?: true
|
267
|
+
|
268
|
+
# @!attribute [r] status
|
269
|
+
# To cancel a payment order, use `cancelled`. To redraft a returned payment order,
|
270
|
+
# use `approved`. To undo approval on a denied or approved payment order, use
|
271
|
+
# `needs_approval`.
|
272
|
+
#
|
273
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::Status, nil]
|
274
|
+
optional :status, enum: -> { ModernTreasury::Models::PaymentOrderUpdateParams::Status }
|
275
|
+
|
276
|
+
# @!parse
|
277
|
+
# # @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::Status]
|
278
|
+
# attr_writer :status
|
279
|
+
|
280
|
+
# @!attribute subtype
|
281
|
+
# An additional layer of classification for the type of payment order you are
|
282
|
+
# doing. This field is only used for `ach` payment orders currently. For `ach`
|
283
|
+
# payment orders, the `subtype` represents the SEC code. We currently support
|
284
|
+
# `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
|
285
|
+
#
|
286
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderSubtype, nil]
|
287
|
+
optional :subtype, enum: -> { ModernTreasury::Models::PaymentOrderSubtype }, nil?: true
|
288
|
+
|
289
|
+
# @!attribute [r] type
|
290
|
+
# One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`,
|
291
|
+
# `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
|
292
|
+
# `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
|
293
|
+
#
|
294
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderType, nil]
|
295
|
+
optional :type, enum: -> { ModernTreasury::Models::PaymentOrderType }
|
296
|
+
|
297
|
+
# @!parse
|
298
|
+
# # @return [Symbol, ModernTreasury::Models::PaymentOrderType]
|
299
|
+
# attr_writer :type
|
300
|
+
|
301
|
+
# @!attribute ultimate_originating_party_identifier
|
302
|
+
# This represents the identifier by which the person is known to the receiver when
|
303
|
+
# using the CIE subtype for ACH payments. Only the first 22 characters of this
|
304
|
+
# string will be used. Any additional characters will be truncated.
|
305
|
+
#
|
306
|
+
# @return [String, nil]
|
307
|
+
optional :ultimate_originating_party_identifier, String, nil?: true
|
308
|
+
|
309
|
+
# @!attribute ultimate_originating_party_name
|
310
|
+
# This represents the name of the person that the payment is on behalf of when
|
311
|
+
# using the CIE subtype for ACH payments. Only the first 15 characters of this
|
312
|
+
# string will be used. Any additional characters will be truncated.
|
313
|
+
#
|
314
|
+
# @return [String, nil]
|
315
|
+
optional :ultimate_originating_party_name, String, nil?: true
|
316
|
+
|
317
|
+
# @!attribute ultimate_receiving_party_identifier
|
318
|
+
# This represents the name of the merchant that the payment is being sent to when
|
319
|
+
# using the CIE subtype for ACH payments. Only the first 22 characters of this
|
320
|
+
# string will be used. Any additional characters will be truncated.
|
321
|
+
#
|
322
|
+
# @return [String, nil]
|
323
|
+
optional :ultimate_receiving_party_identifier, String, nil?: true
|
324
|
+
|
325
|
+
# @!attribute ultimate_receiving_party_name
|
326
|
+
# This represents the identifier by which the merchant is known to the person
|
327
|
+
# initiating an ACH payment with CIE subtype. Only the first 15 characters of this
|
328
|
+
# string will be used. Any additional characters will be truncated.
|
329
|
+
#
|
330
|
+
# @return [String, nil]
|
331
|
+
optional :ultimate_receiving_party_name, String, nil?: true
|
332
|
+
|
333
|
+
# @!parse
|
334
|
+
# # @param accounting [ModernTreasury::Models::PaymentOrderUpdateParams::Accounting]
|
335
|
+
# # @param accounting_category_id [String, nil]
|
336
|
+
# # @param accounting_ledger_class_id [String, nil]
|
337
|
+
# # @param amount [Integer]
|
338
|
+
# # @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ChargeBearer, nil]
|
339
|
+
# # @param counterparty_id [String, nil]
|
340
|
+
# # @param currency [Symbol, ModernTreasury::Models::Currency]
|
341
|
+
# # @param description [String, nil]
|
342
|
+
# # @param direction [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::Direction]
|
343
|
+
# # @param effective_date [Date]
|
344
|
+
# # @param expires_at [Time, nil]
|
345
|
+
# # @param fallback_type [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::FallbackType]
|
346
|
+
# # @param foreign_exchange_contract [String, nil]
|
347
|
+
# # @param foreign_exchange_indicator [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ForeignExchangeIndicator, nil]
|
348
|
+
# # @param line_items [Array<ModernTreasury::Models::PaymentOrderUpdateParams::LineItem>]
|
349
|
+
# # @param metadata [Hash{Symbol=>String}]
|
350
|
+
# # @param nsf_protected [Boolean]
|
351
|
+
# # @param originating_account_id [String]
|
352
|
+
# # @param originating_party_name [String, nil]
|
353
|
+
# # @param priority [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::Priority]
|
354
|
+
# # @param process_after [Time, nil]
|
355
|
+
# # @param purpose [String, nil]
|
356
|
+
# # @param receiving_account [ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount]
|
357
|
+
# # @param receiving_account_id [String]
|
358
|
+
# # @param remittance_information [String, nil]
|
359
|
+
# # @param send_remittance_advice [Boolean, nil]
|
360
|
+
# # @param statement_descriptor [String, nil]
|
361
|
+
# # @param status [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::Status]
|
362
|
+
# # @param subtype [Symbol, ModernTreasury::Models::PaymentOrderSubtype, nil]
|
363
|
+
# # @param type [Symbol, ModernTreasury::Models::PaymentOrderType]
|
364
|
+
# # @param ultimate_originating_party_identifier [String, nil]
|
365
|
+
# # @param ultimate_originating_party_name [String, nil]
|
366
|
+
# # @param ultimate_receiving_party_identifier [String, nil]
|
367
|
+
# # @param ultimate_receiving_party_name [String, nil]
|
368
|
+
# # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
369
|
+
# #
|
370
|
+
# def initialize(
|
371
|
+
# accounting: nil,
|
372
|
+
# accounting_category_id: nil,
|
373
|
+
# accounting_ledger_class_id: nil,
|
374
|
+
# amount: nil,
|
375
|
+
# charge_bearer: nil,
|
376
|
+
# counterparty_id: nil,
|
377
|
+
# currency: nil,
|
378
|
+
# description: nil,
|
379
|
+
# direction: nil,
|
380
|
+
# effective_date: nil,
|
381
|
+
# expires_at: nil,
|
382
|
+
# fallback_type: nil,
|
383
|
+
# foreign_exchange_contract: nil,
|
384
|
+
# foreign_exchange_indicator: nil,
|
385
|
+
# line_items: nil,
|
386
|
+
# metadata: nil,
|
387
|
+
# nsf_protected: nil,
|
388
|
+
# originating_account_id: nil,
|
389
|
+
# originating_party_name: nil,
|
390
|
+
# priority: nil,
|
391
|
+
# process_after: nil,
|
392
|
+
# purpose: nil,
|
393
|
+
# receiving_account: nil,
|
394
|
+
# receiving_account_id: nil,
|
395
|
+
# remittance_information: nil,
|
396
|
+
# send_remittance_advice: nil,
|
397
|
+
# statement_descriptor: nil,
|
398
|
+
# status: nil,
|
399
|
+
# subtype: nil,
|
400
|
+
# type: nil,
|
401
|
+
# ultimate_originating_party_identifier: nil,
|
402
|
+
# ultimate_originating_party_name: nil,
|
403
|
+
# ultimate_receiving_party_identifier: nil,
|
404
|
+
# ultimate_receiving_party_name: nil,
|
405
|
+
# request_options: {},
|
406
|
+
# **
|
407
|
+
# )
|
408
|
+
# super
|
409
|
+
# end
|
410
|
+
|
411
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
412
|
+
|
413
|
+
class Accounting < ModernTreasury::BaseModel
|
414
|
+
# @!attribute account_id
|
415
|
+
# The ID of one of your accounting categories. Note that these will only be
|
416
|
+
# accessible if your accounting system has been connected.
|
417
|
+
#
|
418
|
+
# @return [String, nil]
|
419
|
+
optional :account_id, String, nil?: true
|
420
|
+
|
421
|
+
# @!attribute class_id
|
422
|
+
# The ID of one of the class objects in your accounting system. Class objects
|
423
|
+
# track segments of your business independent of client or project. Note that
|
424
|
+
# these will only be accessible if your accounting system has been connected.
|
425
|
+
#
|
426
|
+
# @return [String, nil]
|
427
|
+
optional :class_id, String, nil?: true
|
428
|
+
|
429
|
+
# @!parse
|
430
|
+
# # @param account_id [String, nil]
|
431
|
+
# # @param class_id [String, nil]
|
432
|
+
# #
|
433
|
+
# def initialize(account_id: nil, class_id: nil, **) = super
|
434
|
+
|
435
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
436
|
+
end
|
437
|
+
|
438
|
+
# @abstract
|
439
|
+
#
|
440
|
+
# The party that will pay the fees for the payment order. Only applies to wire
|
441
|
+
# payment orders. Can be one of shared, sender, or receiver, which correspond
|
442
|
+
# respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
|
443
|
+
#
|
444
|
+
# @example
|
445
|
+
# ```ruby
|
446
|
+
# case charge_bearer
|
447
|
+
# in :shared
|
448
|
+
# # ...
|
449
|
+
# in :sender
|
450
|
+
# # ...
|
451
|
+
# in :receiver
|
452
|
+
# # ...
|
453
|
+
# end
|
454
|
+
# ```
|
455
|
+
class ChargeBearer < ModernTreasury::Enum
|
456
|
+
SHARED = :shared
|
457
|
+
SENDER = :sender
|
458
|
+
RECEIVER = :receiver
|
459
|
+
|
460
|
+
finalize!
|
461
|
+
|
462
|
+
# @!parse
|
463
|
+
# # @return [Array<Symbol>]
|
464
|
+
# #
|
465
|
+
# def self.values; end
|
466
|
+
end
|
467
|
+
|
468
|
+
# @abstract
|
469
|
+
#
|
470
|
+
# One of `credit`, `debit`. Describes the direction money is flowing in the
|
471
|
+
# transaction. A `credit` moves money from your account to someone else's. A
|
472
|
+
# `debit` pulls money from someone else's account to your own. Note that wire,
|
473
|
+
# rtp, and check payments will always be `credit`.
|
474
|
+
#
|
475
|
+
# @example
|
476
|
+
# ```ruby
|
477
|
+
# case direction
|
478
|
+
# in :credit
|
479
|
+
# # ...
|
480
|
+
# in :debit
|
481
|
+
# # ...
|
482
|
+
# end
|
483
|
+
# ```
|
484
|
+
class Direction < ModernTreasury::Enum
|
485
|
+
CREDIT = :credit
|
486
|
+
DEBIT = :debit
|
487
|
+
|
488
|
+
finalize!
|
489
|
+
|
490
|
+
# @!parse
|
491
|
+
# # @return [Array<Symbol>]
|
492
|
+
# #
|
493
|
+
# def self.values; end
|
494
|
+
end
|
495
|
+
|
496
|
+
# @abstract
|
497
|
+
#
|
498
|
+
# A payment type to fallback to if the original type is not valid for the
|
499
|
+
# receiving account. Currently, this only supports falling back from RTP to ACH
|
500
|
+
# (type=rtp and fallback_type=ach)
|
501
|
+
#
|
502
|
+
# @example
|
503
|
+
# ```ruby
|
504
|
+
# case fallback_type
|
505
|
+
# in :ach
|
506
|
+
# # ...
|
507
|
+
# end
|
508
|
+
# ```
|
509
|
+
class FallbackType < ModernTreasury::Enum
|
510
|
+
ACH = :ach
|
511
|
+
|
512
|
+
finalize!
|
513
|
+
|
514
|
+
# @!parse
|
515
|
+
# # @return [Array<Symbol>]
|
516
|
+
# #
|
517
|
+
# def self.values; end
|
518
|
+
end
|
519
|
+
|
520
|
+
# @abstract
|
521
|
+
#
|
522
|
+
# Indicates the type of FX transfer to initiate, can be either
|
523
|
+
# `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
|
524
|
+
# currency matches the originating account currency.
|
525
|
+
#
|
526
|
+
# @example
|
527
|
+
# ```ruby
|
528
|
+
# case foreign_exchange_indicator
|
529
|
+
# in :fixed_to_variable
|
530
|
+
# # ...
|
531
|
+
# in :variable_to_fixed
|
532
|
+
# # ...
|
533
|
+
# end
|
534
|
+
# ```
|
535
|
+
class ForeignExchangeIndicator < ModernTreasury::Enum
|
536
|
+
FIXED_TO_VARIABLE = :fixed_to_variable
|
537
|
+
VARIABLE_TO_FIXED = :variable_to_fixed
|
538
|
+
|
539
|
+
finalize!
|
540
|
+
|
541
|
+
# @!parse
|
542
|
+
# # @return [Array<Symbol>]
|
543
|
+
# #
|
544
|
+
# def self.values; end
|
545
|
+
end
|
546
|
+
|
547
|
+
class LineItem < ModernTreasury::BaseModel
|
548
|
+
# @!attribute amount
|
549
|
+
# Value in specified currency's smallest unit. e.g. $10 would be represented
|
550
|
+
# as 1000.
|
551
|
+
#
|
552
|
+
# @return [Integer]
|
553
|
+
required :amount, Integer
|
554
|
+
|
555
|
+
# @!attribute accounting_category_id
|
556
|
+
# The ID of one of your accounting categories. Note that these will only be
|
557
|
+
# accessible if your accounting system has been connected.
|
558
|
+
#
|
559
|
+
# @return [String, nil]
|
560
|
+
optional :accounting_category_id, String, nil?: true
|
561
|
+
|
562
|
+
# @!attribute description
|
563
|
+
# A free-form description of the line item.
|
564
|
+
#
|
565
|
+
# @return [String, nil]
|
566
|
+
optional :description, String, nil?: true
|
567
|
+
|
568
|
+
# @!attribute [r] metadata
|
569
|
+
# Additional data represented as key-value pairs. Both the key and value must be
|
570
|
+
# strings.
|
571
|
+
#
|
572
|
+
# @return [Hash{Symbol=>String}, nil]
|
573
|
+
optional :metadata, ModernTreasury::HashOf[String]
|
574
|
+
|
575
|
+
# @!parse
|
576
|
+
# # @return [Hash{Symbol=>String}]
|
577
|
+
# attr_writer :metadata
|
578
|
+
|
579
|
+
# @!parse
|
580
|
+
# # @param amount [Integer]
|
581
|
+
# # @param accounting_category_id [String, nil]
|
582
|
+
# # @param description [String, nil]
|
583
|
+
# # @param metadata [Hash{Symbol=>String}]
|
584
|
+
# #
|
585
|
+
# def initialize(amount:, accounting_category_id: nil, description: nil, metadata: nil, **) = super
|
586
|
+
|
587
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
588
|
+
end
|
589
|
+
|
590
|
+
# @abstract
|
591
|
+
#
|
592
|
+
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
593
|
+
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
594
|
+
# an overnight check rather than standard mail.
|
595
|
+
#
|
596
|
+
# @example
|
597
|
+
# ```ruby
|
598
|
+
# case priority
|
599
|
+
# in :high
|
600
|
+
# # ...
|
601
|
+
# in :normal
|
602
|
+
# # ...
|
603
|
+
# end
|
604
|
+
# ```
|
605
|
+
class Priority < ModernTreasury::Enum
|
606
|
+
HIGH = :high
|
607
|
+
NORMAL = :normal
|
608
|
+
|
609
|
+
finalize!
|
610
|
+
|
611
|
+
# @!parse
|
612
|
+
# # @return [Array<Symbol>]
|
613
|
+
# #
|
614
|
+
# def self.values; end
|
615
|
+
end
|
616
|
+
|
617
|
+
class ReceivingAccount < ModernTreasury::BaseModel
|
618
|
+
# @!attribute [r] account_details
|
619
|
+
#
|
620
|
+
# @return [Array<ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::AccountDetail>, nil]
|
621
|
+
optional :account_details,
|
622
|
+
-> { ModernTreasury::ArrayOf[ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::AccountDetail] }
|
623
|
+
|
624
|
+
# @!parse
|
625
|
+
# # @return [Array<ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::AccountDetail>]
|
626
|
+
# attr_writer :account_details
|
627
|
+
|
628
|
+
# @!attribute [r] account_type
|
629
|
+
# Can be `checking`, `savings` or `other`.
|
630
|
+
#
|
631
|
+
# @return [Symbol, ModernTreasury::Models::ExternalAccountType, nil]
|
632
|
+
optional :account_type, enum: -> { ModernTreasury::Models::ExternalAccountType }
|
633
|
+
|
634
|
+
# @!parse
|
635
|
+
# # @return [Symbol, ModernTreasury::Models::ExternalAccountType]
|
636
|
+
# attr_writer :account_type
|
637
|
+
|
638
|
+
# @!attribute [r] contact_details
|
639
|
+
#
|
640
|
+
# @return [Array<ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::ContactDetail>, nil]
|
641
|
+
optional :contact_details,
|
642
|
+
-> { ModernTreasury::ArrayOf[ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::ContactDetail] }
|
643
|
+
|
644
|
+
# @!parse
|
645
|
+
# # @return [Array<ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::ContactDetail>]
|
646
|
+
# attr_writer :contact_details
|
647
|
+
|
648
|
+
# @!attribute [r] ledger_account
|
649
|
+
# Specifies a ledger account object that will be created with the external
|
650
|
+
# account. The resulting ledger account is linked to the external account for
|
651
|
+
# auto-ledgering Payment objects. See
|
652
|
+
# https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
|
653
|
+
# for more details.
|
654
|
+
#
|
655
|
+
# @return [ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount, nil]
|
656
|
+
optional :ledger_account,
|
657
|
+
-> { ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount }
|
658
|
+
|
659
|
+
# @!parse
|
660
|
+
# # @return [ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount]
|
661
|
+
# attr_writer :ledger_account
|
662
|
+
|
663
|
+
# @!attribute [r] metadata
|
664
|
+
# Additional data represented as key-value pairs. Both the key and value must be
|
665
|
+
# strings.
|
666
|
+
#
|
667
|
+
# @return [Hash{Symbol=>String}, nil]
|
668
|
+
optional :metadata, ModernTreasury::HashOf[String]
|
669
|
+
|
670
|
+
# @!parse
|
671
|
+
# # @return [Hash{Symbol=>String}]
|
672
|
+
# attr_writer :metadata
|
673
|
+
|
674
|
+
# @!attribute name
|
675
|
+
# A nickname for the external account. This is only for internal usage and won't
|
676
|
+
# affect any payments
|
677
|
+
#
|
678
|
+
# @return [String, nil]
|
679
|
+
optional :name, String, nil?: true
|
680
|
+
|
681
|
+
# @!attribute [r] party_address
|
682
|
+
# Required if receiving wire payments.
|
683
|
+
#
|
684
|
+
# @return [ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::PartyAddress, nil]
|
685
|
+
optional :party_address,
|
686
|
+
-> { ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::PartyAddress }
|
687
|
+
|
688
|
+
# @!parse
|
689
|
+
# # @return [ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::PartyAddress]
|
690
|
+
# attr_writer :party_address
|
691
|
+
|
692
|
+
# @!attribute [r] party_identifier
|
693
|
+
#
|
694
|
+
# @return [String, nil]
|
695
|
+
optional :party_identifier, String
|
696
|
+
|
697
|
+
# @!parse
|
698
|
+
# # @return [String]
|
699
|
+
# attr_writer :party_identifier
|
700
|
+
|
701
|
+
# @!attribute [r] party_name
|
702
|
+
# If this value isn't provided, it will be inherited from the counterparty's name.
|
703
|
+
#
|
704
|
+
# @return [String, nil]
|
705
|
+
optional :party_name, String
|
706
|
+
|
707
|
+
# @!parse
|
708
|
+
# # @return [String]
|
709
|
+
# attr_writer :party_name
|
710
|
+
|
711
|
+
# @!attribute party_type
|
712
|
+
# Either `individual` or `business`.
|
713
|
+
#
|
714
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::PartyType, nil]
|
715
|
+
optional :party_type,
|
716
|
+
enum: -> { ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::PartyType },
|
717
|
+
nil?: true
|
718
|
+
|
719
|
+
# @!attribute [r] plaid_processor_token
|
720
|
+
# If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
|
721
|
+
# you can pass the processor token in this field.
|
722
|
+
#
|
723
|
+
# @return [String, nil]
|
724
|
+
optional :plaid_processor_token, String
|
725
|
+
|
726
|
+
# @!parse
|
727
|
+
# # @return [String]
|
728
|
+
# attr_writer :plaid_processor_token
|
729
|
+
|
730
|
+
# @!attribute [r] routing_details
|
731
|
+
#
|
732
|
+
# @return [Array<ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::RoutingDetail>, nil]
|
733
|
+
optional :routing_details,
|
734
|
+
-> { ModernTreasury::ArrayOf[ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::RoutingDetail] }
|
735
|
+
|
736
|
+
# @!parse
|
737
|
+
# # @return [Array<ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::RoutingDetail>]
|
738
|
+
# attr_writer :routing_details
|
739
|
+
|
740
|
+
# @!parse
|
741
|
+
# # Either `receiving_account` or `receiving_account_id` must be present. When using
|
742
|
+
# # `receiving_account_id`, you may pass the id of an external account or an
|
743
|
+
# # internal account.
|
744
|
+
# #
|
745
|
+
# # @param account_details [Array<ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::AccountDetail>]
|
746
|
+
# # @param account_type [Symbol, ModernTreasury::Models::ExternalAccountType]
|
747
|
+
# # @param contact_details [Array<ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::ContactDetail>]
|
748
|
+
# # @param ledger_account [ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount]
|
749
|
+
# # @param metadata [Hash{Symbol=>String}]
|
750
|
+
# # @param name [String, nil]
|
751
|
+
# # @param party_address [ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::PartyAddress]
|
752
|
+
# # @param party_identifier [String]
|
753
|
+
# # @param party_name [String]
|
754
|
+
# # @param party_type [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::PartyType, nil]
|
755
|
+
# # @param plaid_processor_token [String]
|
756
|
+
# # @param routing_details [Array<ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::RoutingDetail>]
|
757
|
+
# #
|
758
|
+
# def initialize(
|
759
|
+
# account_details: nil,
|
760
|
+
# account_type: nil,
|
761
|
+
# contact_details: nil,
|
762
|
+
# ledger_account: nil,
|
763
|
+
# metadata: nil,
|
764
|
+
# name: nil,
|
765
|
+
# party_address: nil,
|
766
|
+
# party_identifier: nil,
|
767
|
+
# party_name: nil,
|
768
|
+
# party_type: nil,
|
769
|
+
# plaid_processor_token: nil,
|
770
|
+
# routing_details: nil,
|
771
|
+
# **
|
772
|
+
# )
|
773
|
+
# super
|
774
|
+
# end
|
775
|
+
|
776
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
777
|
+
|
778
|
+
class AccountDetail < ModernTreasury::BaseModel
|
779
|
+
# @!attribute account_number
|
780
|
+
#
|
781
|
+
# @return [String]
|
782
|
+
required :account_number, String
|
783
|
+
|
784
|
+
# @!attribute [r] account_number_type
|
785
|
+
#
|
786
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::AccountDetail::AccountNumberType, nil]
|
787
|
+
optional :account_number_type,
|
788
|
+
enum: -> { ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::AccountDetail::AccountNumberType }
|
789
|
+
|
790
|
+
# @!parse
|
791
|
+
# # @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::AccountDetail::AccountNumberType]
|
792
|
+
# attr_writer :account_number_type
|
793
|
+
|
794
|
+
# @!parse
|
795
|
+
# # @param account_number [String]
|
796
|
+
# # @param account_number_type [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::AccountDetail::AccountNumberType]
|
797
|
+
# #
|
798
|
+
# def initialize(account_number:, account_number_type: nil, **) = super
|
799
|
+
|
800
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
801
|
+
|
802
|
+
# @abstract
|
803
|
+
#
|
804
|
+
# @example
|
805
|
+
# ```ruby
|
806
|
+
# case account_number_type
|
807
|
+
# in :au_number
|
808
|
+
# # ...
|
809
|
+
# in :clabe
|
810
|
+
# # ...
|
811
|
+
# in :hk_number
|
812
|
+
# # ...
|
813
|
+
# in :iban
|
814
|
+
# # ...
|
815
|
+
# in :id_number
|
816
|
+
# # ...
|
817
|
+
# in ...
|
818
|
+
# #...
|
819
|
+
# end
|
820
|
+
# ```
|
821
|
+
class AccountNumberType < ModernTreasury::Enum
|
822
|
+
AU_NUMBER = :au_number
|
823
|
+
CLABE = :clabe
|
824
|
+
HK_NUMBER = :hk_number
|
825
|
+
IBAN = :iban
|
826
|
+
ID_NUMBER = :id_number
|
827
|
+
NZ_NUMBER = :nz_number
|
828
|
+
OTHER = :other
|
829
|
+
PAN = :pan
|
830
|
+
SG_NUMBER = :sg_number
|
831
|
+
WALLET_ADDRESS = :wallet_address
|
832
|
+
|
833
|
+
finalize!
|
834
|
+
|
835
|
+
# @!parse
|
836
|
+
# # @return [Array<Symbol>]
|
837
|
+
# #
|
838
|
+
# def self.values; end
|
839
|
+
end
|
840
|
+
end
|
841
|
+
|
842
|
+
class ContactDetail < ModernTreasury::BaseModel
|
843
|
+
# @!attribute [r] contact_identifier
|
844
|
+
#
|
845
|
+
# @return [String, nil]
|
846
|
+
optional :contact_identifier, String
|
847
|
+
|
848
|
+
# @!parse
|
849
|
+
# # @return [String]
|
850
|
+
# attr_writer :contact_identifier
|
851
|
+
|
852
|
+
# @!attribute [r] contact_identifier_type
|
853
|
+
#
|
854
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::ContactDetail::ContactIdentifierType, nil]
|
855
|
+
optional :contact_identifier_type,
|
856
|
+
enum: -> { ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::ContactDetail::ContactIdentifierType }
|
857
|
+
|
858
|
+
# @!parse
|
859
|
+
# # @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::ContactDetail::ContactIdentifierType]
|
860
|
+
# attr_writer :contact_identifier_type
|
861
|
+
|
862
|
+
# @!parse
|
863
|
+
# # @param contact_identifier [String]
|
864
|
+
# # @param contact_identifier_type [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::ContactDetail::ContactIdentifierType]
|
865
|
+
# #
|
866
|
+
# def initialize(contact_identifier: nil, contact_identifier_type: nil, **) = super
|
867
|
+
|
868
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
869
|
+
|
870
|
+
# @abstract
|
871
|
+
#
|
872
|
+
# @example
|
873
|
+
# ```ruby
|
874
|
+
# case contact_identifier_type
|
875
|
+
# in :email
|
876
|
+
# # ...
|
877
|
+
# in :phone_number
|
878
|
+
# # ...
|
879
|
+
# in :website
|
880
|
+
# # ...
|
881
|
+
# end
|
882
|
+
# ```
|
883
|
+
class ContactIdentifierType < ModernTreasury::Enum
|
884
|
+
EMAIL = :email
|
885
|
+
PHONE_NUMBER = :phone_number
|
886
|
+
WEBSITE = :website
|
887
|
+
|
888
|
+
finalize!
|
889
|
+
|
890
|
+
# @!parse
|
891
|
+
# # @return [Array<Symbol>]
|
892
|
+
# #
|
893
|
+
# def self.values; end
|
894
|
+
end
|
895
|
+
end
|
896
|
+
|
897
|
+
class LedgerAccount < ModernTreasury::BaseModel
|
898
|
+
# @!attribute currency
|
899
|
+
# The currency of the ledger account.
|
900
|
+
#
|
901
|
+
# @return [String]
|
902
|
+
required :currency, String
|
903
|
+
|
904
|
+
# @!attribute ledger_id
|
905
|
+
# The id of the ledger that this account belongs to.
|
906
|
+
#
|
907
|
+
# @return [String]
|
908
|
+
required :ledger_id, String
|
909
|
+
|
910
|
+
# @!attribute name
|
911
|
+
# The name of the ledger account.
|
912
|
+
#
|
913
|
+
# @return [String]
|
914
|
+
required :name, String
|
915
|
+
|
916
|
+
# @!attribute normal_balance
|
917
|
+
# The normal balance of the ledger account.
|
918
|
+
#
|
919
|
+
# @return [Symbol, ModernTreasury::Models::TransactionDirection]
|
920
|
+
required :normal_balance, enum: -> { ModernTreasury::Models::TransactionDirection }
|
921
|
+
|
922
|
+
# @!attribute currency_exponent
|
923
|
+
# The currency exponent of the ledger account.
|
924
|
+
#
|
925
|
+
# @return [Integer, nil]
|
926
|
+
optional :currency_exponent, Integer, nil?: true
|
927
|
+
|
928
|
+
# @!attribute description
|
929
|
+
# The description of the ledger account.
|
930
|
+
#
|
931
|
+
# @return [String, nil]
|
932
|
+
optional :description, String, nil?: true
|
933
|
+
|
934
|
+
# @!attribute [r] ledger_account_category_ids
|
935
|
+
# The array of ledger account category ids that this ledger account should be a
|
936
|
+
# child of.
|
937
|
+
#
|
938
|
+
# @return [Array<String>, nil]
|
939
|
+
optional :ledger_account_category_ids, ModernTreasury::ArrayOf[String]
|
940
|
+
|
941
|
+
# @!parse
|
942
|
+
# # @return [Array<String>]
|
943
|
+
# attr_writer :ledger_account_category_ids
|
944
|
+
|
945
|
+
# @!attribute [r] ledgerable_id
|
946
|
+
# If the ledger account links to another object in Modern Treasury, the id will be
|
947
|
+
# populated here, otherwise null.
|
948
|
+
#
|
949
|
+
# @return [String, nil]
|
950
|
+
optional :ledgerable_id, String
|
951
|
+
|
952
|
+
# @!parse
|
953
|
+
# # @return [String]
|
954
|
+
# attr_writer :ledgerable_id
|
955
|
+
|
956
|
+
# @!attribute [r] ledgerable_type
|
957
|
+
# If the ledger account links to another object in Modern Treasury, the type will
|
958
|
+
# be populated here, otherwise null. The value is one of internal_account or
|
959
|
+
# external_account.
|
960
|
+
#
|
961
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount::LedgerableType, nil]
|
962
|
+
optional :ledgerable_type,
|
963
|
+
enum: -> { ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount::LedgerableType }
|
964
|
+
|
965
|
+
# @!parse
|
966
|
+
# # @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount::LedgerableType]
|
967
|
+
# attr_writer :ledgerable_type
|
968
|
+
|
969
|
+
# @!attribute [r] metadata
|
970
|
+
# Additional data represented as key-value pairs. Both the key and value must be
|
971
|
+
# strings.
|
972
|
+
#
|
973
|
+
# @return [Hash{Symbol=>String}, nil]
|
974
|
+
optional :metadata, ModernTreasury::HashOf[String]
|
975
|
+
|
976
|
+
# @!parse
|
977
|
+
# # @return [Hash{Symbol=>String}]
|
978
|
+
# attr_writer :metadata
|
979
|
+
|
980
|
+
# @!parse
|
981
|
+
# # Specifies a ledger account object that will be created with the external
|
982
|
+
# # account. The resulting ledger account is linked to the external account for
|
983
|
+
# # auto-ledgering Payment objects. See
|
984
|
+
# # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
|
985
|
+
# # for more details.
|
986
|
+
# #
|
987
|
+
# # @param currency [String]
|
988
|
+
# # @param ledger_id [String]
|
989
|
+
# # @param name [String]
|
990
|
+
# # @param normal_balance [Symbol, ModernTreasury::Models::TransactionDirection]
|
991
|
+
# # @param currency_exponent [Integer, nil]
|
992
|
+
# # @param description [String, nil]
|
993
|
+
# # @param ledger_account_category_ids [Array<String>]
|
994
|
+
# # @param ledgerable_id [String]
|
995
|
+
# # @param ledgerable_type [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount::LedgerableType]
|
996
|
+
# # @param metadata [Hash{Symbol=>String}]
|
997
|
+
# #
|
998
|
+
# def initialize(
|
999
|
+
# currency:,
|
1000
|
+
# ledger_id:,
|
1001
|
+
# name:,
|
1002
|
+
# normal_balance:,
|
1003
|
+
# currency_exponent: nil,
|
1004
|
+
# description: nil,
|
1005
|
+
# ledger_account_category_ids: nil,
|
1006
|
+
# ledgerable_id: nil,
|
1007
|
+
# ledgerable_type: nil,
|
1008
|
+
# metadata: nil,
|
1009
|
+
# **
|
1010
|
+
# )
|
1011
|
+
# super
|
1012
|
+
# end
|
1013
|
+
|
1014
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
1015
|
+
|
1016
|
+
# @abstract
|
1017
|
+
#
|
1018
|
+
# If the ledger account links to another object in Modern Treasury, the type will
|
1019
|
+
# be populated here, otherwise null. The value is one of internal_account or
|
1020
|
+
# external_account.
|
1021
|
+
#
|
1022
|
+
# @example
|
1023
|
+
# ```ruby
|
1024
|
+
# case ledgerable_type
|
1025
|
+
# in :counterparty
|
1026
|
+
# # ...
|
1027
|
+
# in :external_account
|
1028
|
+
# # ...
|
1029
|
+
# in :internal_account
|
1030
|
+
# # ...
|
1031
|
+
# in :virtual_account
|
1032
|
+
# # ...
|
1033
|
+
# end
|
1034
|
+
# ```
|
1035
|
+
class LedgerableType < ModernTreasury::Enum
|
1036
|
+
COUNTERPARTY = :counterparty
|
1037
|
+
EXTERNAL_ACCOUNT = :external_account
|
1038
|
+
INTERNAL_ACCOUNT = :internal_account
|
1039
|
+
VIRTUAL_ACCOUNT = :virtual_account
|
1040
|
+
|
1041
|
+
finalize!
|
1042
|
+
|
1043
|
+
# @!parse
|
1044
|
+
# # @return [Array<Symbol>]
|
1045
|
+
# #
|
1046
|
+
# def self.values; end
|
1047
|
+
end
|
1048
|
+
end
|
1049
|
+
|
1050
|
+
class PartyAddress < ModernTreasury::BaseModel
|
1051
|
+
# @!attribute country
|
1052
|
+
# Country code conforms to [ISO 3166-1 alpha-2]
|
1053
|
+
#
|
1054
|
+
# @return [String, nil]
|
1055
|
+
optional :country, String, nil?: true
|
1056
|
+
|
1057
|
+
# @!attribute line1
|
1058
|
+
#
|
1059
|
+
# @return [String, nil]
|
1060
|
+
optional :line1, String, nil?: true
|
1061
|
+
|
1062
|
+
# @!attribute line2
|
1063
|
+
#
|
1064
|
+
# @return [String, nil]
|
1065
|
+
optional :line2, String, nil?: true
|
1066
|
+
|
1067
|
+
# @!attribute locality
|
1068
|
+
# Locality or City.
|
1069
|
+
#
|
1070
|
+
# @return [String, nil]
|
1071
|
+
optional :locality, String, nil?: true
|
1072
|
+
|
1073
|
+
# @!attribute postal_code
|
1074
|
+
# The postal code of the address.
|
1075
|
+
#
|
1076
|
+
# @return [String, nil]
|
1077
|
+
optional :postal_code, String, nil?: true
|
1078
|
+
|
1079
|
+
# @!attribute region
|
1080
|
+
# Region or State.
|
1081
|
+
#
|
1082
|
+
# @return [String, nil]
|
1083
|
+
optional :region, String, nil?: true
|
1084
|
+
|
1085
|
+
# @!parse
|
1086
|
+
# # Required if receiving wire payments.
|
1087
|
+
# #
|
1088
|
+
# # @param country [String, nil]
|
1089
|
+
# # @param line1 [String, nil]
|
1090
|
+
# # @param line2 [String, nil]
|
1091
|
+
# # @param locality [String, nil]
|
1092
|
+
# # @param postal_code [String, nil]
|
1093
|
+
# # @param region [String, nil]
|
1094
|
+
# #
|
1095
|
+
# def initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil, **) = super
|
1096
|
+
|
1097
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
1098
|
+
end
|
1099
|
+
|
1100
|
+
# @abstract
|
1101
|
+
#
|
1102
|
+
# Either `individual` or `business`.
|
1103
|
+
#
|
1104
|
+
# @example
|
1105
|
+
# ```ruby
|
1106
|
+
# case party_type
|
1107
|
+
# in :business
|
1108
|
+
# # ...
|
1109
|
+
# in :individual
|
1110
|
+
# # ...
|
1111
|
+
# end
|
1112
|
+
# ```
|
1113
|
+
class PartyType < ModernTreasury::Enum
|
1114
|
+
BUSINESS = :business
|
1115
|
+
INDIVIDUAL = :individual
|
1116
|
+
|
1117
|
+
finalize!
|
1118
|
+
|
1119
|
+
# @!parse
|
1120
|
+
# # @return [Array<Symbol>]
|
1121
|
+
# #
|
1122
|
+
# def self.values; end
|
1123
|
+
end
|
1124
|
+
|
1125
|
+
class RoutingDetail < ModernTreasury::BaseModel
|
1126
|
+
# @!attribute routing_number
|
1127
|
+
#
|
1128
|
+
# @return [String]
|
1129
|
+
required :routing_number, String
|
1130
|
+
|
1131
|
+
# @!attribute routing_number_type
|
1132
|
+
#
|
1133
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::RoutingDetail::RoutingNumberType]
|
1134
|
+
required :routing_number_type,
|
1135
|
+
enum: -> { ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::RoutingDetail::RoutingNumberType }
|
1136
|
+
|
1137
|
+
# @!attribute [r] payment_type
|
1138
|
+
#
|
1139
|
+
# @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::RoutingDetail::PaymentType, nil]
|
1140
|
+
optional :payment_type,
|
1141
|
+
enum: -> { ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::RoutingDetail::PaymentType }
|
1142
|
+
|
1143
|
+
# @!parse
|
1144
|
+
# # @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::RoutingDetail::PaymentType]
|
1145
|
+
# attr_writer :payment_type
|
1146
|
+
|
1147
|
+
# @!parse
|
1148
|
+
# # @param routing_number [String]
|
1149
|
+
# # @param routing_number_type [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::RoutingDetail::RoutingNumberType]
|
1150
|
+
# # @param payment_type [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::RoutingDetail::PaymentType]
|
1151
|
+
# #
|
1152
|
+
# def initialize(routing_number:, routing_number_type:, payment_type: nil, **) = super
|
1153
|
+
|
1154
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
1155
|
+
|
1156
|
+
# @abstract
|
1157
|
+
#
|
1158
|
+
# @example
|
1159
|
+
# ```ruby
|
1160
|
+
# case routing_number_type
|
1161
|
+
# in :aba
|
1162
|
+
# # ...
|
1163
|
+
# in :au_bsb
|
1164
|
+
# # ...
|
1165
|
+
# in :br_codigo
|
1166
|
+
# # ...
|
1167
|
+
# in :ca_cpa
|
1168
|
+
# # ...
|
1169
|
+
# in :chips
|
1170
|
+
# # ...
|
1171
|
+
# in ...
|
1172
|
+
# #...
|
1173
|
+
# end
|
1174
|
+
# ```
|
1175
|
+
class RoutingNumberType < ModernTreasury::Enum
|
1176
|
+
ABA = :aba
|
1177
|
+
AU_BSB = :au_bsb
|
1178
|
+
BR_CODIGO = :br_codigo
|
1179
|
+
CA_CPA = :ca_cpa
|
1180
|
+
CHIPS = :chips
|
1181
|
+
CNAPS = :cnaps
|
1182
|
+
DK_INTERBANK_CLEARING_CODE = :dk_interbank_clearing_code
|
1183
|
+
GB_SORT_CODE = :gb_sort_code
|
1184
|
+
HK_INTERBANK_CLEARING_CODE = :hk_interbank_clearing_code
|
1185
|
+
HU_INTERBANK_CLEARING_CODE = :hu_interbank_clearing_code
|
1186
|
+
ID_SKNBI_CODE = :id_sknbi_code
|
1187
|
+
IN_IFSC = :in_ifsc
|
1188
|
+
JP_ZENGIN_CODE = :jp_zengin_code
|
1189
|
+
MY_BRANCH_CODE = :my_branch_code
|
1190
|
+
MX_BANK_IDENTIFIER = :mx_bank_identifier
|
1191
|
+
NZ_NATIONAL_CLEARING_CODE = :nz_national_clearing_code
|
1192
|
+
PL_NATIONAL_CLEARING_CODE = :pl_national_clearing_code
|
1193
|
+
SE_BANKGIRO_CLEARING_CODE = :se_bankgiro_clearing_code
|
1194
|
+
SG_INTERBANK_CLEARING_CODE = :sg_interbank_clearing_code
|
1195
|
+
SWIFT = :swift
|
1196
|
+
ZA_NATIONAL_CLEARING_CODE = :za_national_clearing_code
|
1197
|
+
|
1198
|
+
finalize!
|
1199
|
+
|
1200
|
+
# @!parse
|
1201
|
+
# # @return [Array<Symbol>]
|
1202
|
+
# #
|
1203
|
+
# def self.values; end
|
1204
|
+
end
|
1205
|
+
|
1206
|
+
# @abstract
|
1207
|
+
#
|
1208
|
+
# @example
|
1209
|
+
# ```ruby
|
1210
|
+
# case payment_type
|
1211
|
+
# in :ach
|
1212
|
+
# # ...
|
1213
|
+
# in :au_becs
|
1214
|
+
# # ...
|
1215
|
+
# in :bacs
|
1216
|
+
# # ...
|
1217
|
+
# in :book
|
1218
|
+
# # ...
|
1219
|
+
# in :card
|
1220
|
+
# # ...
|
1221
|
+
# in ...
|
1222
|
+
# #...
|
1223
|
+
# end
|
1224
|
+
# ```
|
1225
|
+
class PaymentType < ModernTreasury::Enum
|
1226
|
+
ACH = :ach
|
1227
|
+
AU_BECS = :au_becs
|
1228
|
+
BACS = :bacs
|
1229
|
+
BOOK = :book
|
1230
|
+
CARD = :card
|
1231
|
+
CHATS = :chats
|
1232
|
+
CHECK = :check
|
1233
|
+
CROSS_BORDER = :cross_border
|
1234
|
+
DK_NETS = :dk_nets
|
1235
|
+
EFT = :eft
|
1236
|
+
HU_ICS = :hu_ics
|
1237
|
+
INTERAC = :interac
|
1238
|
+
MASAV = :masav
|
1239
|
+
MX_CCEN = :mx_ccen
|
1240
|
+
NEFT = :neft
|
1241
|
+
NICS = :nics
|
1242
|
+
NZ_BECS = :nz_becs
|
1243
|
+
PL_ELIXIR = :pl_elixir
|
1244
|
+
PROVXCHANGE = :provxchange
|
1245
|
+
RO_SENT = :ro_sent
|
1246
|
+
RTP = :rtp
|
1247
|
+
SE_BANKGIROT = :se_bankgirot
|
1248
|
+
SEN = :sen
|
1249
|
+
SEPA = :sepa
|
1250
|
+
SG_GIRO = :sg_giro
|
1251
|
+
SIC = :sic
|
1252
|
+
SIGNET = :signet
|
1253
|
+
SKNBI = :sknbi
|
1254
|
+
WIRE = :wire
|
1255
|
+
ZENGIN = :zengin
|
1256
|
+
|
1257
|
+
finalize!
|
1258
|
+
|
1259
|
+
# @!parse
|
1260
|
+
# # @return [Array<Symbol>]
|
1261
|
+
# #
|
1262
|
+
# def self.values; end
|
1263
|
+
end
|
1264
|
+
end
|
1265
|
+
end
|
1266
|
+
|
1267
|
+
# @abstract
|
1268
|
+
#
|
1269
|
+
# To cancel a payment order, use `cancelled`. To redraft a returned payment order,
|
1270
|
+
# use `approved`. To undo approval on a denied or approved payment order, use
|
1271
|
+
# `needs_approval`.
|
1272
|
+
#
|
1273
|
+
# @example
|
1274
|
+
# ```ruby
|
1275
|
+
# case status
|
1276
|
+
# in :approved
|
1277
|
+
# # ...
|
1278
|
+
# in :cancelled
|
1279
|
+
# # ...
|
1280
|
+
# in :completed
|
1281
|
+
# # ...
|
1282
|
+
# in :denied
|
1283
|
+
# # ...
|
1284
|
+
# in :failed
|
1285
|
+
# # ...
|
1286
|
+
# in ...
|
1287
|
+
# #...
|
1288
|
+
# end
|
1289
|
+
# ```
|
1290
|
+
class Status < ModernTreasury::Enum
|
1291
|
+
APPROVED = :approved
|
1292
|
+
CANCELLED = :cancelled
|
1293
|
+
COMPLETED = :completed
|
1294
|
+
DENIED = :denied
|
1295
|
+
FAILED = :failed
|
1296
|
+
NEEDS_APPROVAL = :needs_approval
|
1297
|
+
PENDING = :pending
|
1298
|
+
PROCESSING = :processing
|
1299
|
+
RETURNED = :returned
|
1300
|
+
REVERSED = :reversed
|
1301
|
+
SENT = :sent
|
1302
|
+
|
1303
|
+
finalize!
|
1304
|
+
|
1305
|
+
# @!parse
|
1306
|
+
# # @return [Array<Symbol>]
|
1307
|
+
# #
|
1308
|
+
# def self.values; end
|
1309
|
+
end
|
1310
|
+
end
|
1311
|
+
end
|
1312
|
+
end
|