modern_treasury 0.1.0.pre.alpha.19 → 0.1.0.pre.alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +31 -0
- data/README.md +108 -59
- data/SECURITY.md +2 -2
- data/lib/modern_treasury/client.rb +9 -5
- data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +3 -1
- data/lib/modern_treasury/internal/type/array_of.rb +8 -0
- data/lib/modern_treasury/internal/type/base_model.rb +14 -0
- data/lib/modern_treasury/internal/type/boolean.rb +8 -0
- data/lib/modern_treasury/internal/type/enum.rb +12 -0
- data/lib/modern_treasury/internal/type/file_input.rb +7 -0
- data/lib/modern_treasury/internal/type/hash_of.rb +8 -0
- data/lib/modern_treasury/internal/type/union.rb +12 -0
- data/lib/modern_treasury/internal/type/unknown.rb +8 -0
- data/lib/modern_treasury/internal/util.rb +50 -1
- data/lib/modern_treasury/internal.rb +3 -0
- data/lib/modern_treasury/models/account_collection_flow.rb +8 -8
- data/lib/modern_treasury/models/account_collection_flow_create_params.rb +2 -2
- data/lib/modern_treasury/models/account_collection_flow_update_params.rb +2 -2
- data/lib/modern_treasury/models/account_detail.rb +8 -4
- data/lib/modern_treasury/models/account_detail_create_params.rb +8 -4
- data/lib/modern_treasury/models/account_detail_delete_params.rb +2 -2
- data/lib/modern_treasury/models/account_detail_list_params.rb +2 -2
- data/lib/modern_treasury/models/account_detail_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/bank_settings.rb +1 -1
- data/lib/modern_treasury/models/bulk_request.rb +11 -10
- data/lib/modern_treasury/models/bulk_request_create_params.rb +252 -247
- data/lib/modern_treasury/models/bulk_request_list_params.rb +7 -6
- data/lib/modern_treasury/models/bulk_result.rb +18 -29
- data/lib/modern_treasury/models/bulk_result_list_params.rb +7 -6
- data/lib/modern_treasury/models/connection.rb +1 -1
- data/lib/modern_treasury/models/connection_legal_entity.rb +4 -4
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +108 -72
- data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +2 -2
- data/lib/modern_treasury/models/connection_legal_entity_update_params.rb +2 -2
- data/lib/modern_treasury/models/counterparty.rb +32 -32
- data/lib/modern_treasury/models/counterparty_collect_account_params.rb +4 -4
- data/lib/modern_treasury/models/counterparty_collect_account_response.rb +1 -1
- data/lib/modern_treasury/models/counterparty_create_params.rb +166 -121
- data/lib/modern_treasury/models/currency.rb +7 -0
- data/lib/modern_treasury/models/document.rb +13 -13
- data/lib/modern_treasury/models/document_create_params.rb +6 -6
- data/lib/modern_treasury/models/document_list_params.rb +4 -4
- data/lib/modern_treasury/models/event.rb +2 -2
- data/lib/modern_treasury/models/expected_payment.rb +16 -16
- data/lib/modern_treasury/models/expected_payment_create_params.rb +27 -26
- data/lib/modern_treasury/models/expected_payment_list_params.rb +27 -7
- data/lib/modern_treasury/models/expected_payment_type.rb +4 -0
- data/lib/modern_treasury/models/expected_payment_update_params.rb +10 -10
- data/lib/modern_treasury/models/external_account.rb +26 -26
- data/lib/modern_treasury/models/external_account_create_params.rb +41 -32
- data/lib/modern_treasury/models/external_account_type.rb +5 -0
- data/lib/modern_treasury/models/external_account_update_params.rb +6 -6
- data/lib/modern_treasury/models/external_account_verify_params.rb +12 -8
- data/lib/modern_treasury/models/external_account_verify_response.rb +5 -10
- data/lib/modern_treasury/models/foreign_exchange_quote.rb +10 -9
- data/lib/modern_treasury/models/foreign_exchange_quote_create_params.rb +4 -4
- data/lib/modern_treasury/models/incoming_payment_detail.rb +23 -19
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +6 -6
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +6 -6
- data/lib/modern_treasury/models/internal_account.rb +24 -19
- data/lib/modern_treasury/models/internal_account_create_params.rb +37 -5
- data/lib/modern_treasury/models/internal_account_list_params.rb +10 -6
- data/lib/modern_treasury/models/internal_accounts/balance_report.rb +13 -12
- data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +9 -9
- data/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rb +2 -2
- data/lib/modern_treasury/models/invoice.rb +34 -34
- data/lib/modern_treasury/models/invoice_create_params.rb +21 -21
- data/lib/modern_treasury/models/invoice_list_params.rb +2 -2
- data/lib/modern_treasury/models/invoice_update_params.rb +21 -21
- data/lib/modern_treasury/models/invoices/invoice_line_item.rb +10 -2
- data/lib/modern_treasury/models/ledger.rb +2 -2
- data/lib/modern_treasury/models/ledger_account.rb +19 -19
- data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +23 -22
- data/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rb +4 -4
- data/lib/modern_treasury/models/ledger_account_category.rb +16 -16
- data/lib/modern_treasury/models/ledger_account_category_create_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_category_list_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_create_params.rb +4 -4
- data/lib/modern_treasury/models/ledger_account_list_params.rb +8 -8
- data/lib/modern_treasury/models/ledger_account_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_settlement.rb +4 -4
- data/lib/modern_treasury/models/ledger_account_settlement_create_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_settlement_update_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +2 -2
- data/lib/modern_treasury/models/ledger_entry.rb +20 -19
- data/lib/modern_treasury/models/ledger_entry_list_params.rb +12 -12
- data/lib/modern_treasury/models/ledger_event_handler.rb +12 -12
- data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +10 -10
- data/lib/modern_treasury/models/ledger_event_handler_variable.rb +4 -4
- data/lib/modern_treasury/models/ledger_transaction.rb +9 -9
- data/lib/modern_treasury/models/ledger_transaction_create_params.rb +10 -9
- data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +6 -6
- data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +4 -4
- data/lib/modern_treasury/models/ledger_transaction_list_params.rb +12 -12
- data/lib/modern_treasury/models/ledger_transaction_update_params.rb +10 -9
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +30 -29
- data/lib/modern_treasury/models/ledgerable_event.rb +1 -1
- data/lib/modern_treasury/models/legal_entity.rb +52 -34
- data/lib/modern_treasury/models/legal_entity_association.rb +59 -40
- data/lib/modern_treasury/models/legal_entity_association_create_params.rb +54 -36
- data/lib/modern_treasury/models/legal_entity_compliance_detail.rb +1 -1
- data/lib/modern_treasury/models/legal_entity_create_params.rb +102 -65
- data/lib/modern_treasury/models/legal_entity_industry_classification.rb +4 -4
- data/lib/modern_treasury/models/legal_entity_list_params.rb +2 -2
- data/lib/modern_treasury/models/legal_entity_update_params.rb +44 -25
- data/lib/modern_treasury/models/line_item.rb +9 -9
- data/lib/modern_treasury/models/line_item_list_params.rb +2 -2
- data/lib/modern_treasury/models/line_item_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/line_item_update_params.rb +2 -2
- data/lib/modern_treasury/models/paper_item.rb +16 -7
- data/lib/modern_treasury/models/payment_action_create_params.rb +59 -0
- data/lib/modern_treasury/models/payment_action_create_response.rb +100 -0
- data/lib/modern_treasury/models/payment_action_list_params.rb +157 -0
- data/lib/modern_treasury/models/payment_action_list_response.rb +100 -0
- data/lib/modern_treasury/models/payment_action_retrieve_params.rb +14 -0
- data/lib/modern_treasury/models/payment_action_retrieve_response.rb +100 -0
- data/lib/modern_treasury/models/payment_action_update_params.rb +44 -0
- data/lib/modern_treasury/models/payment_action_update_response.rb +100 -0
- data/lib/modern_treasury/models/payment_flow.rb +13 -13
- data/lib/modern_treasury/models/payment_flow_create_params.rb +2 -2
- data/lib/modern_treasury/models/payment_flow_update_params.rb +2 -2
- data/lib/modern_treasury/models/payment_order.rb +57 -86
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +86 -76
- data/lib/modern_treasury/models/payment_order_create_params.rb +95 -85
- data/lib/modern_treasury/models/payment_order_list_params.rb +12 -8
- data/lib/modern_treasury/models/payment_order_type.rb +4 -0
- data/lib/modern_treasury/models/payment_order_update_params.rb +72 -63
- data/lib/modern_treasury/models/payment_orders/reversal.rb +7 -7
- data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +17 -17
- data/lib/modern_treasury/models/payment_reference.rb +11 -7
- data/lib/modern_treasury/models/payment_reference_list_params.rb +2 -2
- data/lib/modern_treasury/models/reconciliation_rule.rb +13 -9
- data/lib/modern_treasury/models/return_create_params.rb +44 -4
- data/lib/modern_treasury/models/return_list_params.rb +2 -2
- data/lib/modern_treasury/models/return_object.rb +78 -27
- data/lib/modern_treasury/models/routing_detail.rb +15 -11
- data/lib/modern_treasury/models/routing_detail_create_params.rb +10 -6
- data/lib/modern_treasury/models/routing_detail_delete_params.rb +2 -2
- data/lib/modern_treasury/models/routing_detail_list_params.rb +2 -2
- data/lib/modern_treasury/models/routing_detail_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +13 -9
- data/lib/modern_treasury/models/transaction.rb +23 -17
- data/lib/modern_treasury/models/transaction_create_params.rb +6 -2
- data/lib/modern_treasury/models/transactions/line_item_list_params.rb +2 -2
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +7 -7
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +2 -2
- data/lib/modern_treasury/models/virtual_account.rb +5 -5
- data/lib/modern_treasury/models/virtual_account_create_params.rb +34 -23
- data/lib/modern_treasury/models/wealth_and_employment_details.rb +19 -19
- data/lib/modern_treasury/models.rb +38 -19
- data/lib/modern_treasury/resources/account_collection_flows.rb +6 -6
- data/lib/modern_treasury/resources/account_details.rb +8 -8
- data/lib/modern_treasury/resources/bulk_requests.rb +9 -9
- data/lib/modern_treasury/resources/bulk_results.rb +5 -5
- data/lib/modern_treasury/resources/connection_legal_entities.rb +7 -7
- data/lib/modern_treasury/resources/connections.rb +1 -1
- data/lib/modern_treasury/resources/counterparties.rb +12 -12
- data/lib/modern_treasury/resources/documents.rb +6 -6
- data/lib/modern_treasury/resources/events.rb +2 -2
- data/lib/modern_treasury/resources/expected_payments.rb +24 -20
- data/lib/modern_treasury/resources/external_accounts.rb +20 -20
- data/lib/modern_treasury/resources/foreign_exchange_quotes.rb +5 -5
- data/lib/modern_treasury/resources/incoming_payment_details.rb +10 -10
- data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +6 -6
- data/lib/modern_treasury/resources/internal_accounts.rb +12 -10
- data/lib/modern_treasury/resources/invoices/line_items.rb +5 -5
- data/lib/modern_treasury/resources/invoices.rb +21 -21
- data/lib/modern_treasury/resources/ledger_account_balance_monitors.rb +6 -6
- data/lib/modern_treasury/resources/ledger_account_categories.rb +8 -8
- data/lib/modern_treasury/resources/ledger_account_settlements.rb +6 -6
- data/lib/modern_treasury/resources/ledger_accounts.rb +12 -12
- data/lib/modern_treasury/resources/ledger_entries.rb +6 -6
- data/lib/modern_treasury/resources/ledger_event_handlers.rb +7 -7
- data/lib/modern_treasury/resources/ledger_transactions/versions.rb +1 -1
- data/lib/modern_treasury/resources/ledger_transactions.rb +18 -18
- data/lib/modern_treasury/resources/ledgerable_events.rb +2 -2
- data/lib/modern_treasury/resources/ledgers.rb +5 -5
- data/lib/modern_treasury/resources/legal_entities.rb +25 -25
- data/lib/modern_treasury/resources/legal_entity_associations.rb +3 -3
- data/lib/modern_treasury/resources/line_items.rb +6 -6
- data/lib/modern_treasury/resources/paper_items.rb +2 -2
- data/lib/modern_treasury/resources/payment_actions.rb +137 -0
- data/lib/modern_treasury/resources/payment_flows.rb +6 -6
- data/lib/modern_treasury/resources/payment_orders/reversals.rb +5 -5
- data/lib/modern_treasury/resources/payment_orders.rb +46 -46
- data/lib/modern_treasury/resources/payment_references.rb +3 -3
- data/lib/modern_treasury/resources/returns.rb +6 -6
- data/lib/modern_treasury/resources/routing_details.rb +9 -9
- data/lib/modern_treasury/resources/transactions/line_items.rb +4 -4
- data/lib/modern_treasury/resources/transactions.rb +5 -5
- data/lib/modern_treasury/resources/validations.rb +2 -2
- data/lib/modern_treasury/resources/virtual_accounts.rb +8 -8
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +9 -0
- data/rbi/modern_treasury/client.rbi +3 -0
- data/rbi/modern_treasury/internal/transport/pooled_net_requester.rbi +5 -1
- data/rbi/modern_treasury/internal/type/array_of.rbi +6 -0
- data/rbi/modern_treasury/internal/type/base_model.rbi +5 -0
- data/rbi/modern_treasury/internal/type/boolean.rbi +6 -0
- data/rbi/modern_treasury/internal/type/enum.rbi +5 -0
- data/rbi/modern_treasury/internal/type/file_input.rbi +5 -0
- data/rbi/modern_treasury/internal/type/hash_of.rbi +6 -0
- data/rbi/modern_treasury/internal/type/union.rbi +5 -0
- data/rbi/modern_treasury/internal/type/unknown.rbi +6 -0
- data/rbi/modern_treasury/internal/util.rbi +34 -0
- data/rbi/modern_treasury/internal.rbi +5 -0
- data/rbi/modern_treasury/models/account_detail.rbi +20 -0
- data/rbi/modern_treasury/models/account_detail_create_params.rbi +20 -0
- data/rbi/modern_treasury/models/bulk_request.rbi +5 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +105 -0
- data/rbi/modern_treasury/models/bulk_request_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/bulk_result.rbi +7 -19
- data/rbi/modern_treasury/models/bulk_result_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +52 -6
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +92 -6
- data/rbi/modern_treasury/models/currency.rbi +7 -0
- data/rbi/modern_treasury/models/document.rbi +9 -6
- data/rbi/modern_treasury/models/document_create_params.rbi +12 -12
- data/rbi/modern_treasury/models/document_list_params.rbi +9 -9
- data/rbi/modern_treasury/models/expected_payment_list_params.rbi +42 -0
- data/rbi/modern_treasury/models/expected_payment_type.rbi +6 -0
- data/rbi/modern_treasury/models/external_account_create_params.rbi +40 -0
- data/rbi/modern_treasury/models/external_account_type.rbi +16 -0
- data/rbi/modern_treasury/models/external_account_verify_params.rbi +20 -0
- data/rbi/modern_treasury/models/external_account_verify_response.rbi +20 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +20 -0
- data/rbi/modern_treasury/models/internal_account.rbi +25 -0
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +117 -0
- data/rbi/modern_treasury/models/internal_account_list_params.rbi +20 -0
- data/rbi/modern_treasury/models/invoice.rbi +2 -2
- data/rbi/modern_treasury/models/invoices/invoice_line_item.rbi +8 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +23 -0
- data/rbi/modern_treasury/models/legal_entity_association.rbi +23 -0
- data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +26 -3
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +52 -6
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +26 -3
- data/rbi/modern_treasury/models/paper_item.rbi +10 -0
- data/rbi/modern_treasury/models/payment_action_create_params.rbi +94 -0
- data/rbi/modern_treasury/models/payment_action_create_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_action_list_params.rbi +306 -0
- data/rbi/modern_treasury/models/payment_action_list_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_action_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/payment_action_retrieve_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_action_update_params.rbi +106 -0
- data/rbi/modern_treasury/models/payment_action_update_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_order.rbi +22 -38
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +40 -0
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +52 -12
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +20 -0
- data/rbi/modern_treasury/models/payment_order_type.rbi +5 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +40 -0
- data/rbi/modern_treasury/models/payment_reference.rbi +20 -0
- data/rbi/modern_treasury/models/reconciliation_rule.rbi +14 -0
- data/rbi/modern_treasury/models/return_create_params.rbi +80 -0
- data/rbi/modern_treasury/models/return_object.rbi +66 -0
- data/rbi/modern_treasury/models/routing_detail.rbi +17 -0
- data/rbi/modern_treasury/models/routing_detail_create_params.rbi +20 -0
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +20 -0
- data/rbi/modern_treasury/models/transaction.rbi +16 -0
- data/rbi/modern_treasury/models/transaction_create_params.rbi +20 -0
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +40 -0
- data/rbi/modern_treasury/models.rbi +9 -0
- data/rbi/modern_treasury/resources/documents.rbi +1 -1
- data/rbi/modern_treasury/resources/expected_payments.rbi +6 -0
- data/rbi/modern_treasury/resources/external_accounts.rbi +1 -4
- data/rbi/modern_treasury/resources/internal_accounts.rbi +5 -0
- data/rbi/modern_treasury/resources/payment_actions.rbi +119 -0
- data/sig/modern_treasury/client.rbs +2 -0
- data/sig/modern_treasury/internal/transport/pooled_net_requester.rbs +2 -0
- data/sig/modern_treasury/internal/type/array_of.rbs +3 -0
- data/sig/modern_treasury/internal/type/base_model.rbs +2 -0
- data/sig/modern_treasury/internal/type/boolean.rbs +3 -0
- data/sig/modern_treasury/internal/type/enum.rbs +2 -0
- data/sig/modern_treasury/internal/type/file_input.rbs +2 -0
- data/sig/modern_treasury/internal/type/hash_of.rbs +3 -0
- data/sig/modern_treasury/internal/type/union.rbs +2 -0
- data/sig/modern_treasury/internal/type/unknown.rbs +3 -0
- data/sig/modern_treasury/internal/util.rbs +12 -0
- data/sig/modern_treasury/internal.rbs +3 -0
- data/sig/modern_treasury/models/account_collection_flow.rbs +30 -16
- data/sig/modern_treasury/models/account_collection_flow_create_params.rbs +13 -6
- data/sig/modern_treasury/models/account_collection_flow_list_params.rbs +10 -0
- data/sig/modern_treasury/models/account_collection_flow_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/account_collection_flow_update_params.rbs +5 -0
- data/sig/modern_treasury/models/account_detail.rbs +24 -4
- data/sig/modern_treasury/models/account_detail_create_params.rbs +15 -0
- data/sig/modern_treasury/models/account_detail_delete_params.rbs +6 -0
- data/sig/modern_treasury/models/account_detail_list_params.rbs +7 -0
- data/sig/modern_treasury/models/account_detail_retrieve_params.rbs +6 -0
- data/sig/modern_treasury/models/async_response.rbs +2 -0
- data/sig/modern_treasury/models/bank_settings.rbs +13 -0
- data/sig/modern_treasury/models/bulk_request.rbs +29 -12
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +600 -188
- data/sig/modern_treasury/models/bulk_request_list_params.rbs +12 -0
- data/sig/modern_treasury/models/bulk_request_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/bulk_result.rbs +44 -16
- data/sig/modern_treasury/models/bulk_result_list_params.rbs +13 -0
- data/sig/modern_treasury/models/bulk_result_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/client_ping_params.rbs +2 -0
- data/sig/modern_treasury/models/connection.rbs +12 -0
- data/sig/modern_treasury/models/connection_legal_entity.rbs +17 -4
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +188 -56
- data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +9 -0
- data/sig/modern_treasury/models/connection_legal_entity_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/connection_legal_entity_update_params.rbs +5 -0
- data/sig/modern_treasury/models/connection_list_params.rbs +8 -0
- data/sig/modern_treasury/models/counterparty.rbs +84 -22
- data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +14 -6
- data/sig/modern_treasury/models/counterparty_collect_account_response.rbs +2 -0
- data/sig/modern_treasury/models/counterparty_create_params.rbs +307 -92
- data/sig/modern_treasury/models/counterparty_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/counterparty_list_params.rbs +12 -0
- data/sig/modern_treasury/models/counterparty_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/counterparty_update_params.rbs +10 -0
- data/sig/modern_treasury/models/currency.rbs +14 -0
- data/sig/modern_treasury/models/document.rbs +41 -9
- data/sig/modern_treasury/models/document_create_params.rbs +16 -8
- data/sig/modern_treasury/models/document_list_params.rbs +13 -5
- data/sig/modern_treasury/models/document_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/event.rbs +13 -0
- data/sig/modern_treasury/models/event_list_params.rbs +11 -0
- data/sig/modern_treasury/models/event_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/expected_payment.rbs +41 -12
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +66 -12
- data/sig/modern_treasury/models/expected_payment_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +37 -1
- data/sig/modern_treasury/models/expected_payment_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/expected_payment_type.rbs +8 -0
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +21 -0
- data/sig/modern_treasury/models/external_account.rbs +63 -16
- data/sig/modern_treasury/models/external_account_complete_verification_params.rbs +5 -0
- data/sig/modern_treasury/models/external_account_create_params.rbs +99 -28
- data/sig/modern_treasury/models/external_account_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/external_account_list_params.rbs +9 -0
- data/sig/modern_treasury/models/external_account_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/external_account_type.rbs +11 -1
- data/sig/modern_treasury/models/external_account_update_params.rbs +20 -0
- data/sig/modern_treasury/models/external_account_verify_params.rbs +17 -0
- data/sig/modern_treasury/models/external_account_verify_response.rbs +21 -0
- data/sig/modern_treasury/models/foreign_exchange_quote.rbs +25 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_create_params.rbs +10 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_list_params.rbs +13 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +52 -16
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +13 -0
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +13 -0
- data/sig/modern_treasury/models/incoming_payment_detail_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/incoming_payment_detail_update_params.rbs +5 -0
- data/sig/modern_treasury/models/internal_account.rbs +55 -9
- data/sig/modern_treasury/models/internal_account_create_params.rbs +66 -0
- data/sig/modern_treasury/models/internal_account_list_params.rbs +20 -0
- data/sig/modern_treasury/models/internal_account_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/internal_account_update_params.rbs +9 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +37 -8
- data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +19 -4
- data/sig/modern_treasury/models/internal_accounts/balance_report_delete_params.rbs +5 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_list_params.rbs +8 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/invoice.rbs +94 -16
- data/sig/modern_treasury/models/invoice_add_payment_order_params.rbs +5 -0
- data/sig/modern_treasury/models/invoice_create_params.rbs +81 -4
- data/sig/modern_treasury/models/invoice_list_params.rbs +15 -0
- data/sig/modern_treasury/models/invoice_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/invoice_update_params.rbs +81 -4
- data/sig/modern_treasury/models/invoices/invoice_line_item.rbs +21 -0
- data/sig/modern_treasury/models/invoices/line_item_create_params.rbs +11 -0
- data/sig/modern_treasury/models/invoices/line_item_delete_params.rbs +5 -0
- data/sig/modern_treasury/models/invoices/line_item_list_params.rbs +6 -0
- data/sig/modern_treasury/models/invoices/line_item_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/invoices/line_item_update_params.rbs +12 -0
- data/sig/modern_treasury/models/ledger.rbs +12 -0
- data/sig/modern_treasury/models/ledger_account.rbs +54 -4
- data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +52 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_create_params.rbs +10 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_list_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_update_params.rbs +6 -0
- data/sig/modern_treasury/models/ledger_account_category.rbs +45 -0
- data/sig/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_add_nested_category_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_create_params.rbs +12 -0
- data/sig/modern_treasury/models/ledger_account_category_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +16 -0
- data/sig/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_retrieve_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account_category_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account_create_params.rbs +14 -0
- data/sig/modern_treasury/models/ledger_account_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_list_params.rbs +52 -0
- data/sig/modern_treasury/models/ledger_account_retrieve_params.rbs +13 -0
- data/sig/modern_treasury/models/ledger_account_settlement.rbs +24 -4
- data/sig/modern_treasury/models/ledger_account_settlement_create_params.rbs +12 -0
- data/sig/modern_treasury/models/ledger_account_settlement_list_params.rbs +14 -0
- data/sig/modern_treasury/models/ledger_account_settlement_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +78 -0
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +78 -0
- data/sig/modern_treasury/models/ledger_account_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_create_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_entry.rbs +53 -4
- data/sig/modern_treasury/models/ledger_entry_list_params.rbs +41 -12
- data/sig/modern_treasury/models/ledger_entry_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_entry_update_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_event_handler.rbs +31 -0
- data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +26 -0
- data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +7 -0
- data/sig/modern_treasury/models/ledger_list_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_transaction.rbs +30 -8
- data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +25 -0
- data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +19 -4
- data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +11 -0
- data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +40 -12
- data/sig/modern_treasury/models/ledger_transaction_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +23 -0
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +82 -12
- data/sig/modern_treasury/models/ledger_transactions/version_list_params.rbs +10 -0
- data/sig/modern_treasury/models/ledger_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledgerable_event.rbs +13 -0
- data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +8 -0
- data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/legal_entity.rbs +96 -20
- data/sig/modern_treasury/models/legal_entity_association.rbs +113 -24
- data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +98 -30
- data/sig/modern_treasury/models/legal_entity_compliance_detail.rbs +15 -0
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +168 -42
- data/sig/modern_treasury/models/legal_entity_industry_classification.rbs +15 -4
- data/sig/modern_treasury/models/legal_entity_list_params.rbs +9 -0
- data/sig/modern_treasury/models/legal_entity_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +70 -12
- data/sig/modern_treasury/models/line_item.rbs +22 -4
- data/sig/modern_treasury/models/line_item_list_params.rbs +7 -0
- data/sig/modern_treasury/models/line_item_retrieve_params.rbs +6 -0
- data/sig/modern_treasury/models/line_item_update_params.rbs +7 -0
- data/sig/modern_treasury/models/paper_item.rbs +30 -4
- data/sig/modern_treasury/models/paper_item_list_params.rbs +9 -0
- data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_action_create_params.rbs +54 -0
- data/sig/modern_treasury/models/payment_action_create_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_action_list_params.rbs +149 -0
- data/sig/modern_treasury/models/payment_action_list_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_action_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/payment_action_retrieve_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_action_update_params.rbs +40 -0
- data/sig/modern_treasury/models/payment_action_update_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_flow.rbs +44 -22
- data/sig/modern_treasury/models/payment_flow_create_params.rbs +10 -0
- data/sig/modern_treasury/models/payment_flow_list_params.rbs +12 -0
- data/sig/modern_treasury/models/payment_flow_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_flow_update_params.rbs +5 -0
- data/sig/modern_treasury/models/payment_order.rbs +116 -48
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +185 -44
- data/sig/modern_treasury/models/payment_order_create_params.rbs +205 -56
- data/sig/modern_treasury/models/payment_order_list_params.rbs +29 -0
- data/sig/modern_treasury/models/payment_order_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_order_type.rbs +8 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +148 -32
- data/sig/modern_treasury/models/payment_orders/reversal.rbs +22 -8
- data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +43 -12
- data/sig/modern_treasury/models/payment_orders/reversal_list_params.rbs +6 -0
- data/sig/modern_treasury/models/payment_orders/reversal_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/payment_reference.rbs +28 -8
- data/sig/modern_treasury/models/payment_reference_list_params.rbs +9 -0
- data/sig/modern_treasury/models/payment_reference_retireve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_reference_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ping_response.rbs +2 -0
- data/sig/modern_treasury/models/reconciliation_rule.rbs +29 -8
- data/sig/modern_treasury/models/return_create_params.rbs +91 -0
- data/sig/modern_treasury/models/return_list_params.rbs +10 -0
- data/sig/modern_treasury/models/return_object.rbs +154 -24
- data/sig/modern_treasury/models/return_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/routing_detail.rbs +44 -8
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +16 -0
- data/sig/modern_treasury/models/routing_detail_delete_params.rbs +6 -0
- data/sig/modern_treasury/models/routing_detail_list_params.rbs +7 -0
- data/sig/modern_treasury/models/routing_detail_retrieve_params.rbs +6 -0
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +38 -12
- data/sig/modern_treasury/models/transaction.rbs +58 -8
- data/sig/modern_treasury/models/transaction_create_params.rbs +22 -0
- data/sig/modern_treasury/models/transaction_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/transaction_list_params.rbs +18 -0
- data/sig/modern_treasury/models/transaction_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/transaction_update_params.rbs +5 -0
- data/sig/modern_treasury/models/transactions/line_item_create_params.rbs +7 -0
- data/sig/modern_treasury/models/transactions/line_item_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/transactions/line_item_list_params.rbs +9 -0
- data/sig/modern_treasury/models/transactions/line_item_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +26 -8
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +6 -0
- data/sig/modern_treasury/models/virtual_account.rbs +19 -0
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +74 -20
- data/sig/modern_treasury/models/virtual_account_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account_list_params.rbs +9 -0
- data/sig/modern_treasury/models/virtual_account_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account_update_params.rbs +8 -0
- data/sig/modern_treasury/models/wealth_and_employment_details.rbs +45 -24
- data/sig/modern_treasury/models.rbs +8 -0
- data/sig/modern_treasury/resources/account_collection_flows.rbs +1 -1
- data/sig/modern_treasury/resources/bulk_requests.rbs +1 -1
- data/sig/modern_treasury/resources/counterparties.rbs +1 -1
- data/sig/modern_treasury/resources/documents.rbs +1 -1
- data/sig/modern_treasury/resources/expected_payments.rbs +2 -0
- data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
- data/sig/modern_treasury/resources/legal_entity_associations.rbs +1 -1
- data/sig/modern_treasury/resources/payment_actions.rbs +40 -0
- metadata +29 -2
@@ -204,6 +204,8 @@ module ModernTreasury
|
|
204
204
|
per_page: Integer,
|
205
205
|
status: ModernTreasury::ExpectedPaymentListParams::Status::OrSymbol,
|
206
206
|
type: ModernTreasury::ExpectedPaymentListParams::Type::OrSymbol,
|
207
|
+
updated_at_lower_bound: Time,
|
208
|
+
updated_at_upper_bound: Time,
|
207
209
|
request_options: ModernTreasury::RequestOptions::OrHash
|
208
210
|
).returns(
|
209
211
|
ModernTreasury::Internal::Page[ModernTreasury::ExpectedPayment]
|
@@ -231,6 +233,10 @@ module ModernTreasury
|
|
231
233
|
# One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp,sen,
|
232
234
|
# sepa, signet, wire
|
233
235
|
type: nil,
|
236
|
+
# Used to return expected payments updated after some datetime
|
237
|
+
updated_at_lower_bound: nil,
|
238
|
+
# Used to return expected payments updated before some datetime
|
239
|
+
updated_at_upper_bound: nil,
|
234
240
|
request_options: {}
|
235
241
|
)
|
236
242
|
end
|
@@ -193,10 +193,7 @@ module ModernTreasury
|
|
193
193
|
ModernTreasury::ExternalAccountVerifyParams::Priority::OrSymbol,
|
194
194
|
request_options: ModernTreasury::RequestOptions::OrHash
|
195
195
|
).returns(
|
196
|
-
|
197
|
-
ModernTreasury::ExternalAccount,
|
198
|
-
ModernTreasury::Models::ExternalAccountVerifyResponse::ExternalAccountVerificationAttempt
|
199
|
-
)
|
196
|
+
ModernTreasury::Models::ExternalAccountVerifyResponse::Variants
|
200
197
|
)
|
201
198
|
end
|
202
199
|
def verify(
|
@@ -16,6 +16,8 @@ module ModernTreasury
|
|
16
16
|
ModernTreasury::InternalAccountCreateParams::Currency::OrSymbol,
|
17
17
|
name: String,
|
18
18
|
party_name: String,
|
19
|
+
account_type:
|
20
|
+
ModernTreasury::InternalAccountCreateParams::AccountType::OrSymbol,
|
19
21
|
counterparty_id: String,
|
20
22
|
legal_entity_id: String,
|
21
23
|
parent_account_id: String,
|
@@ -35,6 +37,9 @@ module ModernTreasury
|
|
35
37
|
name:,
|
36
38
|
# The legal name of the entity which owns the account.
|
37
39
|
party_name:,
|
40
|
+
# The account type, used to provision the appropriate account at the financial
|
41
|
+
# institution.
|
42
|
+
account_type: nil,
|
38
43
|
# The Counterparty associated to this account.
|
39
44
|
counterparty_id: nil,
|
40
45
|
# The LegalEntity associated to this account.
|
@@ -0,0 +1,119 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module ModernTreasury
|
4
|
+
module Resources
|
5
|
+
class PaymentActions
|
6
|
+
# Create a payment action.
|
7
|
+
sig do
|
8
|
+
params(
|
9
|
+
type: String,
|
10
|
+
actionable_id: String,
|
11
|
+
actionable_type: String,
|
12
|
+
details: T.anything,
|
13
|
+
internal_account_id: String,
|
14
|
+
request_options: ModernTreasury::RequestOptions::OrHash
|
15
|
+
).returns(ModernTreasury::Models::PaymentActionCreateResponse)
|
16
|
+
end
|
17
|
+
def create(
|
18
|
+
# Required. The type of the payment action. Determines the action to be taken.
|
19
|
+
type:,
|
20
|
+
# Optional. The ID of the associated actionable object.
|
21
|
+
actionable_id: nil,
|
22
|
+
# Optional. The type of the associated actionable object. One of `payment_order`,
|
23
|
+
# `expected_payment`. Required if `actionable_id` is passed.
|
24
|
+
actionable_type: nil,
|
25
|
+
# Optional. The specifc details of the payment action based on type.
|
26
|
+
details: nil,
|
27
|
+
# Optional. The ID of one of your organization's internal accounts. Required if
|
28
|
+
# `actionable_id` is not passed.
|
29
|
+
internal_account_id: nil,
|
30
|
+
request_options: {}
|
31
|
+
)
|
32
|
+
end
|
33
|
+
|
34
|
+
# Get details on a single payment action.
|
35
|
+
sig do
|
36
|
+
params(
|
37
|
+
id: String,
|
38
|
+
request_options: ModernTreasury::RequestOptions::OrHash
|
39
|
+
).returns(ModernTreasury::Models::PaymentActionRetrieveResponse)
|
40
|
+
end
|
41
|
+
def retrieve(
|
42
|
+
# id
|
43
|
+
id,
|
44
|
+
request_options: {}
|
45
|
+
)
|
46
|
+
end
|
47
|
+
|
48
|
+
# Update a single payment action.
|
49
|
+
sig do
|
50
|
+
params(
|
51
|
+
id: String,
|
52
|
+
status: ModernTreasury::PaymentActionUpdateParams::Status::OrSymbol,
|
53
|
+
request_options: ModernTreasury::RequestOptions::OrHash
|
54
|
+
).returns(ModernTreasury::Models::PaymentActionUpdateResponse)
|
55
|
+
end
|
56
|
+
def update(
|
57
|
+
# id
|
58
|
+
id,
|
59
|
+
# Optional. Set the status of the payment action to `cancelled` to cancel the
|
60
|
+
# payment action. This will only work if the payment action is in a `pending`
|
61
|
+
# state.
|
62
|
+
status:,
|
63
|
+
request_options: {}
|
64
|
+
)
|
65
|
+
end
|
66
|
+
|
67
|
+
# Get a list of all payment actions.
|
68
|
+
sig do
|
69
|
+
params(
|
70
|
+
actionable_id: String,
|
71
|
+
actionable_type: String,
|
72
|
+
after_cursor: T.nilable(String),
|
73
|
+
created_at:
|
74
|
+
ModernTreasury::PaymentActionListParams::CreatedAt::OrHash,
|
75
|
+
internal_account_id: String,
|
76
|
+
metadata: T::Hash[Symbol, String],
|
77
|
+
per_page: Integer,
|
78
|
+
status: ModernTreasury::PaymentActionListParams::Status::OrSymbol,
|
79
|
+
type: ModernTreasury::PaymentActionListParams::Type::OrSymbol,
|
80
|
+
request_options: ModernTreasury::RequestOptions::OrHash
|
81
|
+
).returns(
|
82
|
+
ModernTreasury::Internal::Page[
|
83
|
+
ModernTreasury::Models::PaymentActionListResponse
|
84
|
+
]
|
85
|
+
)
|
86
|
+
end
|
87
|
+
def list(
|
88
|
+
# The ID of the associated actionable object.
|
89
|
+
actionable_id: nil,
|
90
|
+
# The type of the associated actionable object. One of `payment_order`,
|
91
|
+
# `expected_payment`.
|
92
|
+
actionable_type: nil,
|
93
|
+
after_cursor: nil,
|
94
|
+
# Filter by `created_at` using comparison operators like `gt` (>), `gte` (>=),
|
95
|
+
# `lt` (<), `lte` (<=), or `eq` (=) to filter by the created at timestamp. For
|
96
|
+
# example, `created_at[gte]=2024-01-01T00:00:00Z`
|
97
|
+
created_at: nil,
|
98
|
+
# The ID of one of your internal accounts.
|
99
|
+
internal_account_id: nil,
|
100
|
+
# For example, if you want to query for records with metadata key `Type` and value
|
101
|
+
# `Loan`, the query would be `metadata%5BType%5D=Loan`. This encodes the query
|
102
|
+
# parameters.
|
103
|
+
metadata: nil,
|
104
|
+
per_page: nil,
|
105
|
+
# Filter by payment actions of a specific status.
|
106
|
+
status: nil,
|
107
|
+
# The type of payment action.
|
108
|
+
type: nil,
|
109
|
+
request_options: {}
|
110
|
+
)
|
111
|
+
end
|
112
|
+
|
113
|
+
# @api private
|
114
|
+
sig { params(client: ModernTreasury::Client).returns(T.attached_class) }
|
115
|
+
def self.new(client:)
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
@@ -86,6 +86,8 @@ module ModernTreasury
|
|
86
86
|
|
87
87
|
attr_reader legal_entity_associations: ModernTreasury::Resources::LegalEntityAssociations
|
88
88
|
|
89
|
+
attr_reader payment_actions: ModernTreasury::Resources::PaymentActions
|
90
|
+
|
89
91
|
def ping: (
|
90
92
|
?request_options: ModernTreasury::request_opts
|
91
93
|
) -> ModernTreasury::PingResponse
|
@@ -3,6 +3,7 @@ module ModernTreasury
|
|
3
3
|
module Type
|
4
4
|
class ArrayOf[Elem]
|
5
5
|
include ModernTreasury::Internal::Type::Converter
|
6
|
+
include ModernTreasury::Internal::Util::SorbetRuntimeSupport
|
6
7
|
|
7
8
|
def self.[]: (
|
8
9
|
::Hash[Symbol, top]
|
@@ -27,6 +28,8 @@ module ModernTreasury
|
|
27
28
|
state: ModernTreasury::Internal::Type::Converter::dump_state
|
28
29
|
) -> (::Array[top] | top)
|
29
30
|
|
31
|
+
def to_sorbet_type: -> top
|
32
|
+
|
30
33
|
def item_type: -> Elem
|
31
34
|
|
32
35
|
def nilable?: -> bool
|
@@ -70,6 +70,8 @@ module ModernTreasury
|
|
70
70
|
state: ModernTreasury::Internal::Type::Converter::dump_state
|
71
71
|
) -> (::Hash[top, top] | top)
|
72
72
|
|
73
|
+
def self.to_sorbet_type: -> top
|
74
|
+
|
73
75
|
def self.recursively_to_h: (
|
74
76
|
ModernTreasury::Internal::Type::BaseModel model,
|
75
77
|
convert: bool
|
@@ -3,6 +3,7 @@ module ModernTreasury
|
|
3
3
|
module Type
|
4
4
|
class Boolean
|
5
5
|
extend ModernTreasury::Internal::Type::Converter
|
6
|
+
extend ModernTreasury::Internal::Util::SorbetRuntimeSupport
|
6
7
|
|
7
8
|
def self.===: (top other) -> bool
|
8
9
|
|
@@ -17,6 +18,8 @@ module ModernTreasury
|
|
17
18
|
bool | top value,
|
18
19
|
state: ModernTreasury::Internal::Type::Converter::dump_state
|
19
20
|
) -> (bool | top)
|
21
|
+
|
22
|
+
def self.to_sorbet_type: -> top
|
20
23
|
end
|
21
24
|
end
|
22
25
|
end
|
@@ -3,6 +3,7 @@ module ModernTreasury
|
|
3
3
|
module Type
|
4
4
|
class HashOf[Elem]
|
5
5
|
include ModernTreasury::Internal::Type::Converter
|
6
|
+
include ModernTreasury::Internal::Util::SorbetRuntimeSupport
|
6
7
|
|
7
8
|
def self.[]: (
|
8
9
|
::Hash[Symbol, top]
|
@@ -27,6 +28,8 @@ module ModernTreasury
|
|
27
28
|
state: ModernTreasury::Internal::Type::Converter::dump_state
|
28
29
|
) -> (::Hash[Symbol, top] | top)
|
29
30
|
|
31
|
+
def to_sorbet_type: -> top
|
32
|
+
|
30
33
|
def item_type: -> Elem
|
31
34
|
|
32
35
|
def nilable?: -> bool
|
@@ -3,6 +3,7 @@ module ModernTreasury
|
|
3
3
|
module Type
|
4
4
|
class Unknown
|
5
5
|
extend ModernTreasury::Internal::Type::Converter
|
6
|
+
extend ModernTreasury::Internal::Util::SorbetRuntimeSupport
|
6
7
|
|
7
8
|
def self.===: (top other) -> bool
|
8
9
|
|
@@ -17,6 +18,8 @@ module ModernTreasury
|
|
17
18
|
top value,
|
18
19
|
state: ModernTreasury::Internal::Type::Converter::dump_state
|
19
20
|
) -> top
|
21
|
+
|
22
|
+
def self.to_sorbet_type: -> top
|
20
23
|
end
|
21
24
|
end
|
22
25
|
end
|
@@ -5,6 +5,10 @@ module ModernTreasury
|
|
5
5
|
|
6
6
|
def self?.monotonic_secs: -> Float
|
7
7
|
|
8
|
+
def self?.walk_namespaces: (
|
9
|
+
Module | Class ns
|
10
|
+
) -> Enumerable[(Module | Class)]
|
11
|
+
|
8
12
|
def self?.arch: -> String
|
9
13
|
|
10
14
|
def self?.os: -> String
|
@@ -166,7 +170,15 @@ module ModernTreasury
|
|
166
170
|
|
167
171
|
def const_missing: (Symbol name) -> void
|
168
172
|
|
173
|
+
def sorbet_constant_defined?: (Symbol name) -> bool
|
174
|
+
|
169
175
|
def define_sorbet_constant!: (Symbol name) { -> top } -> void
|
176
|
+
|
177
|
+
def to_sorbet_type: -> top
|
178
|
+
|
179
|
+
def self.to_sorbet_type: (
|
180
|
+
ModernTreasury::Internal::Util::SorbetRuntimeSupport | top `type`
|
181
|
+
) -> top
|
170
182
|
end
|
171
183
|
end
|
172
184
|
end
|
@@ -3,22 +3,22 @@ module ModernTreasury
|
|
3
3
|
type account_collection_flow =
|
4
4
|
{
|
5
5
|
counterparty_id: String,
|
6
|
-
payment_types: ::Array[ModernTreasury::AccountCollectionFlow::payment_type],
|
6
|
+
payment_types: ::Array[ModernTreasury::Models::AccountCollectionFlow::payment_type],
|
7
7
|
id: String,
|
8
8
|
client_token: String,
|
9
9
|
created_at: Time,
|
10
10
|
external_account_id: String?,
|
11
11
|
live_mode: bool,
|
12
12
|
object: String,
|
13
|
-
receiving_countries: ::Array[ModernTreasury::AccountCollectionFlow::receiving_country],
|
14
|
-
status: ModernTreasury::AccountCollectionFlow::status,
|
13
|
+
receiving_countries: ::Array[ModernTreasury::Models::AccountCollectionFlow::receiving_country],
|
14
|
+
status: ModernTreasury::Models::AccountCollectionFlow::status,
|
15
15
|
updated_at: Time
|
16
16
|
}
|
17
17
|
|
18
18
|
class AccountCollectionFlow < ModernTreasury::Internal::Type::BaseModel
|
19
19
|
attr_accessor counterparty_id: String
|
20
20
|
|
21
|
-
attr_accessor payment_types: ::Array[ModernTreasury::AccountCollectionFlow::payment_type]
|
21
|
+
attr_accessor payment_types: ::Array[ModernTreasury::Models::AccountCollectionFlow::payment_type]
|
22
22
|
|
23
23
|
attr_reader id: String?
|
24
24
|
|
@@ -42,17 +42,17 @@ module ModernTreasury
|
|
42
42
|
|
43
43
|
def object=: (String) -> String
|
44
44
|
|
45
|
-
attr_reader receiving_countries: ::Array[ModernTreasury::AccountCollectionFlow::receiving_country]?
|
45
|
+
attr_reader receiving_countries: ::Array[ModernTreasury::Models::AccountCollectionFlow::receiving_country]?
|
46
46
|
|
47
47
|
def receiving_countries=: (
|
48
|
-
::Array[ModernTreasury::AccountCollectionFlow::receiving_country]
|
49
|
-
) -> ::Array[ModernTreasury::AccountCollectionFlow::receiving_country]
|
48
|
+
::Array[ModernTreasury::Models::AccountCollectionFlow::receiving_country]
|
49
|
+
) -> ::Array[ModernTreasury::Models::AccountCollectionFlow::receiving_country]
|
50
50
|
|
51
|
-
attr_reader status: ModernTreasury::AccountCollectionFlow::status?
|
51
|
+
attr_reader status: ModernTreasury::Models::AccountCollectionFlow::status?
|
52
52
|
|
53
53
|
def status=: (
|
54
|
-
ModernTreasury::AccountCollectionFlow::status
|
55
|
-
) -> ModernTreasury::AccountCollectionFlow::status
|
54
|
+
ModernTreasury::Models::AccountCollectionFlow::status
|
55
|
+
) -> ModernTreasury::Models::AccountCollectionFlow::status
|
56
56
|
|
57
57
|
attr_reader updated_at: Time?
|
58
58
|
|
@@ -60,18 +60,32 @@ module ModernTreasury
|
|
60
60
|
|
61
61
|
def initialize: (
|
62
62
|
counterparty_id: String,
|
63
|
-
payment_types: ::Array[ModernTreasury::AccountCollectionFlow::payment_type],
|
63
|
+
payment_types: ::Array[ModernTreasury::Models::AccountCollectionFlow::payment_type],
|
64
64
|
?id: String,
|
65
65
|
?client_token: String,
|
66
66
|
?created_at: Time,
|
67
67
|
?external_account_id: String?,
|
68
68
|
?live_mode: bool,
|
69
69
|
?object: String,
|
70
|
-
?receiving_countries: ::Array[ModernTreasury::AccountCollectionFlow::receiving_country],
|
71
|
-
?status: ModernTreasury::AccountCollectionFlow::status,
|
70
|
+
?receiving_countries: ::Array[ModernTreasury::Models::AccountCollectionFlow::receiving_country],
|
71
|
+
?status: ModernTreasury::Models::AccountCollectionFlow::status,
|
72
72
|
?updated_at: Time
|
73
73
|
) -> void
|
74
74
|
|
75
|
+
def to_hash: -> {
|
76
|
+
counterparty_id: String,
|
77
|
+
payment_types: ::Array[ModernTreasury::Models::AccountCollectionFlow::payment_type],
|
78
|
+
id: String,
|
79
|
+
client_token: String,
|
80
|
+
created_at: Time,
|
81
|
+
external_account_id: String?,
|
82
|
+
live_mode: bool,
|
83
|
+
object: String,
|
84
|
+
receiving_countries: ::Array[ModernTreasury::Models::AccountCollectionFlow::receiving_country],
|
85
|
+
status: ModernTreasury::Models::AccountCollectionFlow::status,
|
86
|
+
updated_at: Time
|
87
|
+
}
|
88
|
+
|
75
89
|
type payment_type = :ach | :wire
|
76
90
|
|
77
91
|
module PaymentType
|
@@ -80,7 +94,7 @@ module ModernTreasury
|
|
80
94
|
ACH: :ach
|
81
95
|
WIRE: :wire
|
82
96
|
|
83
|
-
def self?.values: -> ::Array[ModernTreasury::AccountCollectionFlow::payment_type]
|
97
|
+
def self?.values: -> ::Array[ModernTreasury::Models::AccountCollectionFlow::payment_type]
|
84
98
|
end
|
85
99
|
|
86
100
|
type receiving_country =
|
@@ -125,7 +139,7 @@ module ModernTreasury
|
|
125
139
|
ESP: :ESP
|
126
140
|
GBR: :GBR
|
127
141
|
|
128
|
-
def self?.values: -> ::Array[ModernTreasury::AccountCollectionFlow::receiving_country]
|
142
|
+
def self?.values: -> ::Array[ModernTreasury::Models::AccountCollectionFlow::receiving_country]
|
129
143
|
end
|
130
144
|
|
131
145
|
type status = :cancelled | :completed | :expired | :pending
|
@@ -138,7 +152,7 @@ module ModernTreasury
|
|
138
152
|
EXPIRED: :expired
|
139
153
|
PENDING: :pending
|
140
154
|
|
141
|
-
def self?.values: -> ::Array[ModernTreasury::AccountCollectionFlow::status]
|
155
|
+
def self?.values: -> ::Array[ModernTreasury::Models::AccountCollectionFlow::status]
|
142
156
|
end
|
143
157
|
end
|
144
158
|
end
|
@@ -4,7 +4,7 @@ module ModernTreasury
|
|
4
4
|
{
|
5
5
|
counterparty_id: String,
|
6
6
|
payment_types: ::Array[String],
|
7
|
-
receiving_countries: ::Array[ModernTreasury::AccountCollectionFlowCreateParams::receiving_country]
|
7
|
+
receiving_countries: ::Array[ModernTreasury::Models::AccountCollectionFlowCreateParams::receiving_country]
|
8
8
|
}
|
9
9
|
& ModernTreasury::Internal::Type::request_parameters
|
10
10
|
|
@@ -16,19 +16,26 @@ module ModernTreasury
|
|
16
16
|
|
17
17
|
attr_accessor payment_types: ::Array[String]
|
18
18
|
|
19
|
-
attr_reader receiving_countries: ::Array[ModernTreasury::AccountCollectionFlowCreateParams::receiving_country]?
|
19
|
+
attr_reader receiving_countries: ::Array[ModernTreasury::Models::AccountCollectionFlowCreateParams::receiving_country]?
|
20
20
|
|
21
21
|
def receiving_countries=: (
|
22
|
-
::Array[ModernTreasury::AccountCollectionFlowCreateParams::receiving_country]
|
23
|
-
) -> ::Array[ModernTreasury::AccountCollectionFlowCreateParams::receiving_country]
|
22
|
+
::Array[ModernTreasury::Models::AccountCollectionFlowCreateParams::receiving_country]
|
23
|
+
) -> ::Array[ModernTreasury::Models::AccountCollectionFlowCreateParams::receiving_country]
|
24
24
|
|
25
25
|
def initialize: (
|
26
26
|
counterparty_id: String,
|
27
27
|
payment_types: ::Array[String],
|
28
|
-
?receiving_countries: ::Array[ModernTreasury::AccountCollectionFlowCreateParams::receiving_country],
|
28
|
+
?receiving_countries: ::Array[ModernTreasury::Models::AccountCollectionFlowCreateParams::receiving_country],
|
29
29
|
?request_options: ModernTreasury::request_opts
|
30
30
|
) -> void
|
31
31
|
|
32
|
+
def to_hash: -> {
|
33
|
+
counterparty_id: String,
|
34
|
+
payment_types: ::Array[String],
|
35
|
+
receiving_countries: ::Array[ModernTreasury::Models::AccountCollectionFlowCreateParams::receiving_country],
|
36
|
+
request_options: ModernTreasury::RequestOptions
|
37
|
+
}
|
38
|
+
|
32
39
|
type receiving_country =
|
33
40
|
:USA
|
34
41
|
| :AUS
|
@@ -71,7 +78,7 @@ module ModernTreasury
|
|
71
78
|
ESP: :ESP
|
72
79
|
GBR: :GBR
|
73
80
|
|
74
|
-
def self?.values: -> ::Array[ModernTreasury::AccountCollectionFlowCreateParams::receiving_country]
|
81
|
+
def self?.values: -> ::Array[ModernTreasury::Models::AccountCollectionFlowCreateParams::receiving_country]
|
75
82
|
end
|
76
83
|
end
|
77
84
|
end
|
@@ -46,6 +46,16 @@ module ModernTreasury
|
|
46
46
|
?status: String,
|
47
47
|
?request_options: ModernTreasury::request_opts
|
48
48
|
) -> void
|
49
|
+
|
50
|
+
def to_hash: -> {
|
51
|
+
after_cursor: String?,
|
52
|
+
client_token: String,
|
53
|
+
counterparty_id: String,
|
54
|
+
external_account_id: String,
|
55
|
+
per_page: Integer,
|
56
|
+
status: String,
|
57
|
+
request_options: ModernTreasury::RequestOptions
|
58
|
+
}
|
49
59
|
end
|
50
60
|
end
|
51
61
|
end
|
@@ -17,6 +17,11 @@ module ModernTreasury
|
|
17
17
|
?request_options: ModernTreasury::request_opts
|
18
18
|
) -> void
|
19
19
|
|
20
|
+
def to_hash: -> {
|
21
|
+
status: ModernTreasury::Models::AccountCollectionFlowUpdateParams::status,
|
22
|
+
request_options: ModernTreasury::RequestOptions
|
23
|
+
}
|
24
|
+
|
20
25
|
type status = :cancelled
|
21
26
|
|
22
27
|
module Status
|
@@ -4,7 +4,7 @@ module ModernTreasury
|
|
4
4
|
{
|
5
5
|
id: String,
|
6
6
|
account_number_safe: String,
|
7
|
-
account_number_type: ModernTreasury::AccountDetail::account_number_type,
|
7
|
+
account_number_type: ModernTreasury::Models::AccountDetail::account_number_type,
|
8
8
|
created_at: Time,
|
9
9
|
discarded_at: Time?,
|
10
10
|
live_mode: bool,
|
@@ -18,7 +18,7 @@ module ModernTreasury
|
|
18
18
|
|
19
19
|
attr_accessor account_number_safe: String
|
20
20
|
|
21
|
-
attr_accessor account_number_type: ModernTreasury::AccountDetail::account_number_type
|
21
|
+
attr_accessor account_number_type: ModernTreasury::Models::AccountDetail::account_number_type
|
22
22
|
|
23
23
|
attr_accessor created_at: Time
|
24
24
|
|
@@ -37,7 +37,7 @@ module ModernTreasury
|
|
37
37
|
def initialize: (
|
38
38
|
id: String,
|
39
39
|
account_number_safe: String,
|
40
|
-
account_number_type: ModernTreasury::AccountDetail::account_number_type,
|
40
|
+
account_number_type: ModernTreasury::Models::AccountDetail::account_number_type,
|
41
41
|
created_at: Time,
|
42
42
|
discarded_at: Time?,
|
43
43
|
live_mode: bool,
|
@@ -46,33 +46,53 @@ module ModernTreasury
|
|
46
46
|
?account_number: String
|
47
47
|
) -> void
|
48
48
|
|
49
|
+
def to_hash: -> {
|
50
|
+
id: String,
|
51
|
+
account_number_safe: String,
|
52
|
+
account_number_type: ModernTreasury::Models::AccountDetail::account_number_type,
|
53
|
+
created_at: Time,
|
54
|
+
discarded_at: Time?,
|
55
|
+
live_mode: bool,
|
56
|
+
object: String,
|
57
|
+
updated_at: Time,
|
58
|
+
account_number: String
|
59
|
+
}
|
60
|
+
|
49
61
|
type account_number_type =
|
50
62
|
:au_number
|
63
|
+
| :base_address
|
51
64
|
| :clabe
|
65
|
+
| :ethereum_address
|
52
66
|
| :hk_number
|
53
67
|
| :iban
|
54
68
|
| :id_number
|
55
69
|
| :nz_number
|
56
70
|
| :other
|
57
71
|
| :pan
|
72
|
+
| :polygon_address
|
58
73
|
| :sg_number
|
74
|
+
| :solana_address
|
59
75
|
| :wallet_address
|
60
76
|
|
61
77
|
module AccountNumberType
|
62
78
|
extend ModernTreasury::Internal::Type::Enum
|
63
79
|
|
64
80
|
AU_NUMBER: :au_number
|
81
|
+
BASE_ADDRESS: :base_address
|
65
82
|
CLABE: :clabe
|
83
|
+
ETHEREUM_ADDRESS: :ethereum_address
|
66
84
|
HK_NUMBER: :hk_number
|
67
85
|
IBAN: :iban
|
68
86
|
ID_NUMBER: :id_number
|
69
87
|
NZ_NUMBER: :nz_number
|
70
88
|
OTHER: :other
|
71
89
|
PAN: :pan
|
90
|
+
POLYGON_ADDRESS: :polygon_address
|
72
91
|
SG_NUMBER: :sg_number
|
92
|
+
SOLANA_ADDRESS: :solana_address
|
73
93
|
WALLET_ADDRESS: :wallet_address
|
74
94
|
|
75
|
-
def self?.values: -> ::Array[ModernTreasury::AccountDetail::account_number_type]
|
95
|
+
def self?.values: -> ::Array[ModernTreasury::Models::AccountDetail::account_number_type]
|
76
96
|
end
|
77
97
|
end
|
78
98
|
end
|
@@ -29,6 +29,13 @@ module ModernTreasury
|
|
29
29
|
?request_options: ModernTreasury::request_opts
|
30
30
|
) -> void
|
31
31
|
|
32
|
+
def to_hash: -> {
|
33
|
+
accounts_type: ModernTreasury::Models::AccountDetailCreateParams::accounts_type,
|
34
|
+
account_number: String,
|
35
|
+
account_number_type: ModernTreasury::Models::AccountDetailCreateParams::account_number_type,
|
36
|
+
request_options: ModernTreasury::RequestOptions
|
37
|
+
}
|
38
|
+
|
32
39
|
type accounts_type = :external_accounts
|
33
40
|
|
34
41
|
module AccountsType
|
@@ -41,28 +48,36 @@ module ModernTreasury
|
|
41
48
|
|
42
49
|
type account_number_type =
|
43
50
|
:au_number
|
51
|
+
| :base_address
|
44
52
|
| :clabe
|
53
|
+
| :ethereum_address
|
45
54
|
| :hk_number
|
46
55
|
| :iban
|
47
56
|
| :id_number
|
48
57
|
| :nz_number
|
49
58
|
| :other
|
50
59
|
| :pan
|
60
|
+
| :polygon_address
|
51
61
|
| :sg_number
|
62
|
+
| :solana_address
|
52
63
|
| :wallet_address
|
53
64
|
|
54
65
|
module AccountNumberType
|
55
66
|
extend ModernTreasury::Internal::Type::Enum
|
56
67
|
|
57
68
|
AU_NUMBER: :au_number
|
69
|
+
BASE_ADDRESS: :base_address
|
58
70
|
CLABE: :clabe
|
71
|
+
ETHEREUM_ADDRESS: :ethereum_address
|
59
72
|
HK_NUMBER: :hk_number
|
60
73
|
IBAN: :iban
|
61
74
|
ID_NUMBER: :id_number
|
62
75
|
NZ_NUMBER: :nz_number
|
63
76
|
OTHER: :other
|
64
77
|
PAN: :pan
|
78
|
+
POLYGON_ADDRESS: :polygon_address
|
65
79
|
SG_NUMBER: :sg_number
|
80
|
+
SOLANA_ADDRESS: :solana_address
|
66
81
|
WALLET_ADDRESS: :wallet_address
|
67
82
|
|
68
83
|
def self?.values: -> ::Array[ModernTreasury::Models::AccountDetailCreateParams::account_number_type]
|