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
@@ -45,7 +45,7 @@ module ModernTreasury
|
|
45
45
|
# @!attribute employment_status
|
46
46
|
# The employment status of the individual.
|
47
47
|
#
|
48
|
-
# @return [Symbol, ModernTreasury::WealthAndEmploymentDetails::EmploymentStatus, nil]
|
48
|
+
# @return [Symbol, ModernTreasury::Models::WealthAndEmploymentDetails::EmploymentStatus, nil]
|
49
49
|
required :employment_status,
|
50
50
|
enum: -> { ModernTreasury::WealthAndEmploymentDetails::EmploymentStatus },
|
51
51
|
nil?: true
|
@@ -59,7 +59,7 @@ module ModernTreasury
|
|
59
59
|
# @!attribute income_source
|
60
60
|
# The source of the individual's income.
|
61
61
|
#
|
62
|
-
# @return [Symbol, ModernTreasury::WealthAndEmploymentDetails::IncomeSource, nil]
|
62
|
+
# @return [Symbol, ModernTreasury::Models::WealthAndEmploymentDetails::IncomeSource, nil]
|
63
63
|
required :income_source,
|
64
64
|
enum: -> {
|
65
65
|
ModernTreasury::WealthAndEmploymentDetails::IncomeSource
|
@@ -75,7 +75,7 @@ module ModernTreasury
|
|
75
75
|
# @!attribute industry
|
76
76
|
# The industry of the individual.
|
77
77
|
#
|
78
|
-
# @return [Symbol, ModernTreasury::WealthAndEmploymentDetails::Industry, nil]
|
78
|
+
# @return [Symbol, ModernTreasury::Models::WealthAndEmploymentDetails::Industry, nil]
|
79
79
|
required :industry, enum: -> { ModernTreasury::WealthAndEmploymentDetails::Industry }, nil?: true
|
80
80
|
|
81
81
|
# @!attribute live_mode
|
@@ -93,13 +93,13 @@ module ModernTreasury
|
|
93
93
|
# @!attribute occupation
|
94
94
|
# The occupation of the individual.
|
95
95
|
#
|
96
|
-
# @return [Symbol, ModernTreasury::WealthAndEmploymentDetails::Occupation, nil]
|
96
|
+
# @return [Symbol, ModernTreasury::Models::WealthAndEmploymentDetails::Occupation, nil]
|
97
97
|
required :occupation, enum: -> { ModernTreasury::WealthAndEmploymentDetails::Occupation }, nil?: true
|
98
98
|
|
99
99
|
# @!attribute source_of_funds
|
100
100
|
# The source of the individual's funds.
|
101
101
|
#
|
102
|
-
# @return [Symbol, ModernTreasury::WealthAndEmploymentDetails::SourceOfFunds, nil]
|
102
|
+
# @return [Symbol, ModernTreasury::Models::WealthAndEmploymentDetails::SourceOfFunds, nil]
|
103
103
|
required :source_of_funds,
|
104
104
|
enum: -> { ModernTreasury::WealthAndEmploymentDetails::SourceOfFunds },
|
105
105
|
nil?: true
|
@@ -112,7 +112,7 @@ module ModernTreasury
|
|
112
112
|
# @!attribute wealth_source
|
113
113
|
# The source of the individual's wealth.
|
114
114
|
#
|
115
|
-
# @return [Symbol, ModernTreasury::WealthAndEmploymentDetails::WealthSource, nil]
|
115
|
+
# @return [Symbol, ModernTreasury::Models::WealthAndEmploymentDetails::WealthSource, nil]
|
116
116
|
required :wealth_source,
|
117
117
|
enum: -> {
|
118
118
|
ModernTreasury::WealthAndEmploymentDetails::WealthSource
|
@@ -121,7 +121,7 @@ module ModernTreasury
|
|
121
121
|
|
122
122
|
# @!method initialize(id:, annual_income:, created_at:, discarded_at:, employer_country:, employer_name:, employer_state:, employment_status:, income_country:, income_source:, income_state:, industry:, live_mode:, object:, occupation:, source_of_funds:, updated_at:, wealth_source:)
|
123
123
|
# Some parameter documentations has been truncated, see
|
124
|
-
# {ModernTreasury::WealthAndEmploymentDetails} for more details.
|
124
|
+
# {ModernTreasury::Models::WealthAndEmploymentDetails} for more details.
|
125
125
|
#
|
126
126
|
# @param id [String]
|
127
127
|
#
|
@@ -137,31 +137,31 @@ module ModernTreasury
|
|
137
137
|
#
|
138
138
|
# @param employer_state [String, nil] The state in which the employer is located.
|
139
139
|
#
|
140
|
-
# @param employment_status [Symbol, ModernTreasury::WealthAndEmploymentDetails::EmploymentStatus, nil] The employment status of the individual.
|
140
|
+
# @param employment_status [Symbol, ModernTreasury::Models::WealthAndEmploymentDetails::EmploymentStatus, nil] The employment status of the individual.
|
141
141
|
#
|
142
142
|
# @param income_country [String, nil] The country in which the individual's income is earned.
|
143
143
|
#
|
144
|
-
# @param income_source [Symbol, ModernTreasury::WealthAndEmploymentDetails::IncomeSource, nil] The source of the individual's income.
|
144
|
+
# @param income_source [Symbol, ModernTreasury::Models::WealthAndEmploymentDetails::IncomeSource, nil] The source of the individual's income.
|
145
145
|
#
|
146
146
|
# @param income_state [String, nil] The state in which the individual's income is earned.
|
147
147
|
#
|
148
|
-
# @param industry [Symbol, ModernTreasury::WealthAndEmploymentDetails::Industry, nil] The industry of the individual.
|
148
|
+
# @param industry [Symbol, ModernTreasury::Models::WealthAndEmploymentDetails::Industry, nil] The industry of the individual.
|
149
149
|
#
|
150
150
|
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
151
151
|
#
|
152
152
|
# @param object [String]
|
153
153
|
#
|
154
|
-
# @param occupation [Symbol, ModernTreasury::WealthAndEmploymentDetails::Occupation, nil] The occupation of the individual.
|
154
|
+
# @param occupation [Symbol, ModernTreasury::Models::WealthAndEmploymentDetails::Occupation, nil] The occupation of the individual.
|
155
155
|
#
|
156
|
-
# @param source_of_funds [Symbol, ModernTreasury::WealthAndEmploymentDetails::SourceOfFunds, nil] The source of the individual's funds.
|
156
|
+
# @param source_of_funds [Symbol, ModernTreasury::Models::WealthAndEmploymentDetails::SourceOfFunds, nil] The source of the individual's funds.
|
157
157
|
#
|
158
158
|
# @param updated_at [Time]
|
159
159
|
#
|
160
|
-
# @param wealth_source [Symbol, ModernTreasury::WealthAndEmploymentDetails::WealthSource, nil] The source of the individual's wealth.
|
160
|
+
# @param wealth_source [Symbol, ModernTreasury::Models::WealthAndEmploymentDetails::WealthSource, nil] The source of the individual's wealth.
|
161
161
|
|
162
162
|
# The employment status of the individual.
|
163
163
|
#
|
164
|
-
# @see ModernTreasury::WealthAndEmploymentDetails#employment_status
|
164
|
+
# @see ModernTreasury::Models::WealthAndEmploymentDetails#employment_status
|
165
165
|
module EmploymentStatus
|
166
166
|
extend ModernTreasury::Internal::Type::Enum
|
167
167
|
|
@@ -177,7 +177,7 @@ module ModernTreasury
|
|
177
177
|
|
178
178
|
# The source of the individual's income.
|
179
179
|
#
|
180
|
-
# @see ModernTreasury::WealthAndEmploymentDetails#income_source
|
180
|
+
# @see ModernTreasury::Models::WealthAndEmploymentDetails#income_source
|
181
181
|
module IncomeSource
|
182
182
|
extend ModernTreasury::Internal::Type::Enum
|
183
183
|
|
@@ -196,7 +196,7 @@ module ModernTreasury
|
|
196
196
|
|
197
197
|
# The industry of the individual.
|
198
198
|
#
|
199
|
-
# @see ModernTreasury::WealthAndEmploymentDetails#industry
|
199
|
+
# @see ModernTreasury::Models::WealthAndEmploymentDetails#industry
|
200
200
|
module Industry
|
201
201
|
extend ModernTreasury::Internal::Type::Enum
|
202
202
|
|
@@ -240,7 +240,7 @@ module ModernTreasury
|
|
240
240
|
|
241
241
|
# The occupation of the individual.
|
242
242
|
#
|
243
|
-
# @see ModernTreasury::WealthAndEmploymentDetails#occupation
|
243
|
+
# @see ModernTreasury::Models::WealthAndEmploymentDetails#occupation
|
244
244
|
module Occupation
|
245
245
|
extend ModernTreasury::Internal::Type::Enum
|
246
246
|
|
@@ -263,7 +263,7 @@ module ModernTreasury
|
|
263
263
|
|
264
264
|
# The source of the individual's funds.
|
265
265
|
#
|
266
|
-
# @see ModernTreasury::WealthAndEmploymentDetails#source_of_funds
|
266
|
+
# @see ModernTreasury::Models::WealthAndEmploymentDetails#source_of_funds
|
267
267
|
module SourceOfFunds
|
268
268
|
extend ModernTreasury::Internal::Type::Enum
|
269
269
|
|
@@ -291,7 +291,7 @@ module ModernTreasury
|
|
291
291
|
|
292
292
|
# The source of the individual's wealth.
|
293
293
|
#
|
294
|
-
# @see ModernTreasury::WealthAndEmploymentDetails#wealth_source
|
294
|
+
# @see ModernTreasury::Models::WealthAndEmploymentDetails#wealth_source
|
295
295
|
module WealthSource
|
296
296
|
extend ModernTreasury::Internal::Type::Enum
|
297
297
|
|
@@ -8,29 +8,40 @@ module ModernTreasury
|
|
8
8
|
cls.define_sorbet_constant!(:OrHash) { T.type_alias { T.any(cls, ModernTreasury::Internal::AnyHash) } }
|
9
9
|
end
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
11
|
+
ModernTreasury::Internal::Util.walk_namespaces(ModernTreasury::Models).each do |mod|
|
12
|
+
case mod
|
13
|
+
in ModernTreasury::Internal::Type::Enum | ModernTreasury::Internal::Type::Union
|
14
|
+
mod.constants.each do |name|
|
15
|
+
case mod.const_get(name)
|
16
|
+
in true | false
|
17
|
+
mod.define_sorbet_constant!(:TaggedBoolean) { T.type_alias { T.all(T::Boolean, mod) } }
|
18
|
+
mod.define_sorbet_constant!(:OrBoolean) { T.type_alias { T::Boolean } }
|
19
|
+
in Integer
|
20
|
+
mod.define_sorbet_constant!(:TaggedInteger) { T.type_alias { T.all(Integer, mod) } }
|
21
|
+
mod.define_sorbet_constant!(:OrInteger) { T.type_alias { Integer } }
|
22
|
+
in Float
|
23
|
+
mod.define_sorbet_constant!(:TaggedFloat) { T.type_alias { T.all(Float, mod) } }
|
24
|
+
mod.define_sorbet_constant!(:OrFloat) { T.type_alias { Float } }
|
25
|
+
in Symbol
|
26
|
+
mod.define_sorbet_constant!(:TaggedSymbol) { T.type_alias { T.all(Symbol, mod) } }
|
27
|
+
mod.define_sorbet_constant!(:OrSymbol) { T.type_alias { T.any(Symbol, String) } }
|
28
|
+
else
|
29
|
+
end
|
30
30
|
end
|
31
|
+
else
|
31
32
|
end
|
32
33
|
end
|
33
34
|
|
35
|
+
ModernTreasury::Internal::Util.walk_namespaces(ModernTreasury::Models)
|
36
|
+
.lazy
|
37
|
+
.grep(ModernTreasury::Internal::Type::Union)
|
38
|
+
.each do |mod|
|
39
|
+
const = :Variants
|
40
|
+
next if mod.sorbet_constant_defined?(const)
|
41
|
+
|
42
|
+
mod.define_sorbet_constant!(const) { T.type_alias { mod.to_sorbet_type } }
|
43
|
+
end
|
44
|
+
|
34
45
|
AccountCollectionFlow = ModernTreasury::Models::AccountCollectionFlow
|
35
46
|
|
36
47
|
AccountCollectionFlowCreateParams = ModernTreasury::Models::AccountCollectionFlowCreateParams
|
@@ -348,6 +359,14 @@ module ModernTreasury
|
|
348
359
|
|
349
360
|
PaperItemRetrieveParams = ModernTreasury::Models::PaperItemRetrieveParams
|
350
361
|
|
362
|
+
PaymentActionCreateParams = ModernTreasury::Models::PaymentActionCreateParams
|
363
|
+
|
364
|
+
PaymentActionListParams = ModernTreasury::Models::PaymentActionListParams
|
365
|
+
|
366
|
+
PaymentActionRetrieveParams = ModernTreasury::Models::PaymentActionRetrieveParams
|
367
|
+
|
368
|
+
PaymentActionUpdateParams = ModernTreasury::Models::PaymentActionUpdateParams
|
369
|
+
|
351
370
|
PaymentFlow = ModernTreasury::Models::PaymentFlow
|
352
371
|
|
353
372
|
PaymentFlowCreateParams = ModernTreasury::Models::PaymentFlowCreateParams
|
@@ -11,11 +11,11 @@ module ModernTreasury
|
|
11
11
|
#
|
12
12
|
# @param payment_types [Array<String>]
|
13
13
|
#
|
14
|
-
# @param receiving_countries [Array<Symbol, ModernTreasury::AccountCollectionFlowCreateParams::ReceivingCountry>]
|
14
|
+
# @param receiving_countries [Array<Symbol, ModernTreasury::Models::AccountCollectionFlowCreateParams::ReceivingCountry>]
|
15
15
|
#
|
16
16
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
17
17
|
#
|
18
|
-
# @return [ModernTreasury::AccountCollectionFlow]
|
18
|
+
# @return [ModernTreasury::Models::AccountCollectionFlow]
|
19
19
|
#
|
20
20
|
# @see ModernTreasury::Models::AccountCollectionFlowCreateParams
|
21
21
|
def create(params)
|
@@ -37,7 +37,7 @@ module ModernTreasury
|
|
37
37
|
#
|
38
38
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
39
39
|
#
|
40
|
-
# @return [ModernTreasury::AccountCollectionFlow]
|
40
|
+
# @return [ModernTreasury::Models::AccountCollectionFlow]
|
41
41
|
#
|
42
42
|
# @see ModernTreasury::Models::AccountCollectionFlowRetrieveParams
|
43
43
|
def retrieve(id, params = {})
|
@@ -58,11 +58,11 @@ module ModernTreasury
|
|
58
58
|
#
|
59
59
|
# @param id [String] id
|
60
60
|
#
|
61
|
-
# @param status [Symbol, ModernTreasury::AccountCollectionFlowUpdateParams::Status] Required. The updated status of the account collection flow. Can only be used to
|
61
|
+
# @param status [Symbol, ModernTreasury::Models::AccountCollectionFlowUpdateParams::Status] Required. The updated status of the account collection flow. Can only be used to
|
62
62
|
#
|
63
63
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
64
64
|
#
|
65
|
-
# @return [ModernTreasury::AccountCollectionFlow]
|
65
|
+
# @return [ModernTreasury::Models::AccountCollectionFlow]
|
66
66
|
#
|
67
67
|
# @see ModernTreasury::Models::AccountCollectionFlowUpdateParams
|
68
68
|
def update(id, params)
|
@@ -88,7 +88,7 @@ module ModernTreasury
|
|
88
88
|
# @param status [String]
|
89
89
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
90
90
|
#
|
91
|
-
# @return [ModernTreasury::Internal::Page<ModernTreasury::AccountCollectionFlow>]
|
91
|
+
# @return [ModernTreasury::Internal::Page<ModernTreasury::Models::AccountCollectionFlow>]
|
92
92
|
#
|
93
93
|
# @see ModernTreasury::Models::AccountCollectionFlowListParams
|
94
94
|
def list(params = {})
|
@@ -12,15 +12,15 @@ module ModernTreasury
|
|
12
12
|
#
|
13
13
|
# @param account_id [String] Path param: The ID of the account.
|
14
14
|
#
|
15
|
-
# @param accounts_type [Symbol, ModernTreasury::AccountDetailCreateParams::AccountsType] Path param:
|
15
|
+
# @param accounts_type [Symbol, ModernTreasury::Models::AccountDetailCreateParams::AccountsType] Path param:
|
16
16
|
#
|
17
17
|
# @param account_number [String] Body param: The account number for the bank account.
|
18
18
|
#
|
19
|
-
# @param account_number_type [Symbol, ModernTreasury::AccountDetailCreateParams::AccountNumberType] Body param: One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if
|
19
|
+
# @param account_number_type [Symbol, ModernTreasury::Models::AccountDetailCreateParams::AccountNumberType] Body param: One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if
|
20
20
|
#
|
21
21
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
22
22
|
#
|
23
|
-
# @return [ModernTreasury::AccountDetail]
|
23
|
+
# @return [ModernTreasury::Models::AccountDetail]
|
24
24
|
#
|
25
25
|
# @see ModernTreasury::Models::AccountDetailCreateParams
|
26
26
|
def create(account_id, params)
|
@@ -44,13 +44,13 @@ module ModernTreasury
|
|
44
44
|
#
|
45
45
|
# @param id [String] The ID of the account detail.
|
46
46
|
#
|
47
|
-
# @param accounts_type [Symbol, ModernTreasury::AccountsType]
|
47
|
+
# @param accounts_type [Symbol, ModernTreasury::Models::AccountsType]
|
48
48
|
#
|
49
49
|
# @param account_id [String] The ID of the account.
|
50
50
|
#
|
51
51
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
52
52
|
#
|
53
|
-
# @return [ModernTreasury::AccountDetail]
|
53
|
+
# @return [ModernTreasury::Models::AccountDetail]
|
54
54
|
#
|
55
55
|
# @see ModernTreasury::Models::AccountDetailRetrieveParams
|
56
56
|
def retrieve(id, params)
|
@@ -77,7 +77,7 @@ module ModernTreasury
|
|
77
77
|
#
|
78
78
|
# @param account_id [String] Path param: The ID of the account.
|
79
79
|
#
|
80
|
-
# @param accounts_type [Symbol, ModernTreasury::AccountsType] Path param:
|
80
|
+
# @param accounts_type [Symbol, ModernTreasury::Models::AccountsType] Path param:
|
81
81
|
#
|
82
82
|
# @param after_cursor [String, nil] Query param:
|
83
83
|
#
|
@@ -85,7 +85,7 @@ module ModernTreasury
|
|
85
85
|
#
|
86
86
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
87
87
|
#
|
88
|
-
# @return [ModernTreasury::Internal::Page<ModernTreasury::AccountDetail>]
|
88
|
+
# @return [ModernTreasury::Internal::Page<ModernTreasury::Models::AccountDetail>]
|
89
89
|
#
|
90
90
|
# @see ModernTreasury::Models::AccountDetailListParams
|
91
91
|
def list(account_id, params)
|
@@ -110,7 +110,7 @@ module ModernTreasury
|
|
110
110
|
#
|
111
111
|
# @param id [String] The ID of the account detail.
|
112
112
|
#
|
113
|
-
# @param accounts_type [Symbol, ModernTreasury::AccountDetailDeleteParams::AccountsType]
|
113
|
+
# @param accounts_type [Symbol, ModernTreasury::Models::AccountDetailDeleteParams::AccountsType]
|
114
114
|
#
|
115
115
|
# @param account_id [String] The ID of the account.
|
116
116
|
#
|
@@ -10,17 +10,17 @@ module ModernTreasury
|
|
10
10
|
#
|
11
11
|
# @overload create(action_type:, resource_type:, resources:, metadata: nil, request_options: {})
|
12
12
|
#
|
13
|
-
# @param action_type [Symbol, ModernTreasury::BulkRequestCreateParams::ActionType] One of create, or update.
|
13
|
+
# @param action_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::ActionType] One of create, or update.
|
14
14
|
#
|
15
|
-
# @param resource_type [Symbol, ModernTreasury::BulkRequestCreateParams::ResourceType] One of payment_order, expected_payment, or ledger_transaction.
|
15
|
+
# @param resource_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::ResourceType] One of payment_order, expected_payment, or ledger_transaction.
|
16
16
|
#
|
17
|
-
# @param resources [Array<ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest, ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest, ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest, ModernTreasury::BulkRequestCreateParams::Resource::TransactionCreateRequest, ModernTreasury::BulkRequestCreateParams::Resource::ID, ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID, ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID, ModernTreasury::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID, ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID>] An array of objects where each object contains the input params for a single `ac
|
17
|
+
# @param resources [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ID, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID>] An array of objects where each object contains the input params for a single `ac
|
18
18
|
#
|
19
19
|
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
20
20
|
#
|
21
21
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
22
22
|
#
|
23
|
-
# @return [ModernTreasury::BulkRequest]
|
23
|
+
# @return [ModernTreasury::Models::BulkRequest]
|
24
24
|
#
|
25
25
|
# @see ModernTreasury::Models::BulkRequestCreateParams
|
26
26
|
def create(params)
|
@@ -42,7 +42,7 @@ module ModernTreasury
|
|
42
42
|
#
|
43
43
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
44
44
|
#
|
45
|
-
# @return [ModernTreasury::BulkRequest]
|
45
|
+
# @return [ModernTreasury::Models::BulkRequest]
|
46
46
|
#
|
47
47
|
# @see ModernTreasury::Models::BulkRequestRetrieveParams
|
48
48
|
def retrieve(id, params = {})
|
@@ -61,7 +61,7 @@ module ModernTreasury
|
|
61
61
|
#
|
62
62
|
# @overload list(action_type: nil, after_cursor: nil, metadata: nil, per_page: nil, resource_type: nil, status: nil, request_options: {})
|
63
63
|
#
|
64
|
-
# @param action_type [Symbol, ModernTreasury::BulkRequestListParams::ActionType] One of create, or update.
|
64
|
+
# @param action_type [Symbol, ModernTreasury::Models::BulkRequestListParams::ActionType] One of create, or update.
|
65
65
|
#
|
66
66
|
# @param after_cursor [String, nil]
|
67
67
|
#
|
@@ -69,13 +69,13 @@ module ModernTreasury
|
|
69
69
|
#
|
70
70
|
# @param per_page [Integer]
|
71
71
|
#
|
72
|
-
# @param resource_type [Symbol, ModernTreasury::BulkRequestListParams::ResourceType] One of payment_order, expected_payment, or ledger_transaction.
|
72
|
+
# @param resource_type [Symbol, ModernTreasury::Models::BulkRequestListParams::ResourceType] One of payment_order, expected_payment, or ledger_transaction.
|
73
73
|
#
|
74
|
-
# @param status [Symbol, ModernTreasury::BulkRequestListParams::Status] One of pending, processing, or completed.
|
74
|
+
# @param status [Symbol, ModernTreasury::Models::BulkRequestListParams::Status] One of pending, processing, or completed.
|
75
75
|
#
|
76
76
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
77
77
|
#
|
78
|
-
# @return [ModernTreasury::Internal::Page<ModernTreasury::BulkRequest>]
|
78
|
+
# @return [ModernTreasury::Internal::Page<ModernTreasury::Models::BulkRequest>]
|
79
79
|
#
|
80
80
|
# @see ModernTreasury::Models::BulkRequestListParams
|
81
81
|
def list(params = {})
|
@@ -11,7 +11,7 @@ module ModernTreasury
|
|
11
11
|
#
|
12
12
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
13
13
|
#
|
14
|
-
# @return [ModernTreasury::BulkResult]
|
14
|
+
# @return [ModernTreasury::Models::BulkResult]
|
15
15
|
#
|
16
16
|
# @see ModernTreasury::Models::BulkResultRetrieveParams
|
17
17
|
def retrieve(id, params = {})
|
@@ -34,19 +34,19 @@ module ModernTreasury
|
|
34
34
|
#
|
35
35
|
# @param entity_id [String] Unique identifier for the result entity object.
|
36
36
|
#
|
37
|
-
# @param entity_type [Symbol, ModernTreasury::BulkResultListParams::EntityType] The type of the request that created this result. bulk_request is the only suppo
|
37
|
+
# @param entity_type [Symbol, ModernTreasury::Models::BulkResultListParams::EntityType] The type of the request that created this result. bulk_request is the only suppo
|
38
38
|
#
|
39
39
|
# @param per_page [Integer]
|
40
40
|
#
|
41
41
|
# @param request_id [String] Unique identifier for the request that created this bulk result. This is the ID
|
42
42
|
#
|
43
|
-
# @param request_type [Symbol, ModernTreasury::BulkResultListParams::RequestType] The type of the request that created this result. bulk_request is the only suppo
|
43
|
+
# @param request_type [Symbol, ModernTreasury::Models::BulkResultListParams::RequestType] The type of the request that created this result. bulk_request is the only suppo
|
44
44
|
#
|
45
|
-
# @param status [Symbol, ModernTreasury::BulkResultListParams::Status] One of successful or failed.
|
45
|
+
# @param status [Symbol, ModernTreasury::Models::BulkResultListParams::Status] One of successful or failed.
|
46
46
|
#
|
47
47
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
48
48
|
#
|
49
|
-
# @return [ModernTreasury::Internal::Page<ModernTreasury::BulkResult>]
|
49
|
+
# @return [ModernTreasury::Internal::Page<ModernTreasury::Models::BulkResult>]
|
50
50
|
#
|
51
51
|
# @see ModernTreasury::Models::BulkResultListParams
|
52
52
|
def list(params = {})
|
@@ -9,13 +9,13 @@ module ModernTreasury
|
|
9
9
|
#
|
10
10
|
# @param connection_id [String] The ID of the connection.
|
11
11
|
#
|
12
|
-
# @param legal_entity [ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity] The legal entity.
|
12
|
+
# @param legal_entity [ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity] The legal entity.
|
13
13
|
#
|
14
14
|
# @param legal_entity_id [String] The ID of the legal entity.
|
15
15
|
#
|
16
16
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
17
17
|
#
|
18
|
-
# @return [ModernTreasury::ConnectionLegalEntity]
|
18
|
+
# @return [ModernTreasury::Models::ConnectionLegalEntity]
|
19
19
|
#
|
20
20
|
# @see ModernTreasury::Models::ConnectionLegalEntityCreateParams
|
21
21
|
def create(params)
|
@@ -37,7 +37,7 @@ module ModernTreasury
|
|
37
37
|
#
|
38
38
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
39
39
|
#
|
40
|
-
# @return [ModernTreasury::ConnectionLegalEntity]
|
40
|
+
# @return [ModernTreasury::Models::ConnectionLegalEntity]
|
41
41
|
#
|
42
42
|
# @see ModernTreasury::Models::ConnectionLegalEntityRetrieveParams
|
43
43
|
def retrieve(id, params = {})
|
@@ -55,11 +55,11 @@ module ModernTreasury
|
|
55
55
|
#
|
56
56
|
# @param id [String] The id of an existing connection legal entity.
|
57
57
|
#
|
58
|
-
# @param status [Symbol, ModernTreasury::ConnectionLegalEntityUpdateParams::Status] The status of the connection legal entity.
|
58
|
+
# @param status [Symbol, ModernTreasury::Models::ConnectionLegalEntityUpdateParams::Status] The status of the connection legal entity.
|
59
59
|
#
|
60
60
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
61
61
|
#
|
62
|
-
# @return [ModernTreasury::ConnectionLegalEntity]
|
62
|
+
# @return [ModernTreasury::Models::ConnectionLegalEntity]
|
63
63
|
#
|
64
64
|
# @see ModernTreasury::Models::ConnectionLegalEntityUpdateParams
|
65
65
|
def update(id, params = {})
|
@@ -81,10 +81,10 @@ module ModernTreasury
|
|
81
81
|
# @param connection_id [String]
|
82
82
|
# @param legal_entity_id [String]
|
83
83
|
# @param per_page [Integer]
|
84
|
-
# @param status [Symbol, ModernTreasury::ConnectionLegalEntityListParams::Status]
|
84
|
+
# @param status [Symbol, ModernTreasury::Models::ConnectionLegalEntityListParams::Status]
|
85
85
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
86
86
|
#
|
87
|
-
# @return [ModernTreasury::Internal::Page<ModernTreasury::ConnectionLegalEntity>]
|
87
|
+
# @return [ModernTreasury::Internal::Page<ModernTreasury::Models::ConnectionLegalEntity>]
|
88
88
|
#
|
89
89
|
# @see ModernTreasury::Models::ConnectionLegalEntityListParams
|
90
90
|
def list(params = {})
|
@@ -17,7 +17,7 @@ module ModernTreasury
|
|
17
17
|
#
|
18
18
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
19
19
|
#
|
20
|
-
# @return [ModernTreasury::Internal::Page<ModernTreasury::Connection>]
|
20
|
+
# @return [ModernTreasury::Internal::Page<ModernTreasury::Models::Connection>]
|
21
21
|
#
|
22
22
|
# @see ModernTreasury::Models::ConnectionListParams
|
23
23
|
def list(params = {})
|
@@ -12,15 +12,15 @@ module ModernTreasury
|
|
12
12
|
#
|
13
13
|
# @param name [String, nil] A human friendly name for this counterparty.
|
14
14
|
#
|
15
|
-
# @param accounting [ModernTreasury::CounterpartyCreateParams::Accounting]
|
15
|
+
# @param accounting [ModernTreasury::Models::CounterpartyCreateParams::Accounting]
|
16
16
|
#
|
17
|
-
# @param accounts [Array<ModernTreasury::CounterpartyCreateParams::Account>] The accounts for this counterparty.
|
17
|
+
# @param accounts [Array<ModernTreasury::Models::CounterpartyCreateParams::Account>] The accounts for this counterparty.
|
18
18
|
#
|
19
19
|
# @param email [String, nil] The counterparty's email.
|
20
20
|
#
|
21
|
-
# @param ledger_type [Symbol, ModernTreasury::CounterpartyCreateParams::LedgerType] An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
21
|
+
# @param ledger_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LedgerType] An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
22
22
|
#
|
23
|
-
# @param legal_entity [ModernTreasury::CounterpartyCreateParams::LegalEntity]
|
23
|
+
# @param legal_entity [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity]
|
24
24
|
#
|
25
25
|
# @param legal_entity_id [String, nil] The id of the legal entity.
|
26
26
|
#
|
@@ -30,11 +30,11 @@ module ModernTreasury
|
|
30
30
|
#
|
31
31
|
# @param taxpayer_identifier [String] Either a valid SSN or EIN.
|
32
32
|
#
|
33
|
-
# @param verification_status [Symbol, ModernTreasury::CounterpartyCreateParams::VerificationStatus] The verification status of the counterparty.
|
33
|
+
# @param verification_status [Symbol, ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus] The verification status of the counterparty.
|
34
34
|
#
|
35
35
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
36
36
|
#
|
37
|
-
# @return [ModernTreasury::Counterparty]
|
37
|
+
# @return [ModernTreasury::Models::Counterparty]
|
38
38
|
#
|
39
39
|
# @see ModernTreasury::Models::CounterpartyCreateParams
|
40
40
|
def create(params)
|
@@ -56,7 +56,7 @@ module ModernTreasury
|
|
56
56
|
#
|
57
57
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
58
58
|
#
|
59
|
-
# @return [ModernTreasury::Counterparty]
|
59
|
+
# @return [ModernTreasury::Models::Counterparty]
|
60
60
|
#
|
61
61
|
# @see ModernTreasury::Models::CounterpartyRetrieveParams
|
62
62
|
def retrieve(id, params = {})
|
@@ -91,7 +91,7 @@ module ModernTreasury
|
|
91
91
|
#
|
92
92
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
93
93
|
#
|
94
|
-
# @return [ModernTreasury::Counterparty]
|
94
|
+
# @return [ModernTreasury::Models::Counterparty]
|
95
95
|
#
|
96
96
|
# @see ModernTreasury::Models::CounterpartyUpdateParams
|
97
97
|
def update(id, params = {})
|
@@ -130,7 +130,7 @@ module ModernTreasury
|
|
130
130
|
#
|
131
131
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
132
132
|
#
|
133
|
-
# @return [ModernTreasury::Internal::Page<ModernTreasury::Counterparty>]
|
133
|
+
# @return [ModernTreasury::Internal::Page<ModernTreasury::Models::Counterparty>]
|
134
134
|
#
|
135
135
|
# @see ModernTreasury::Models::CounterpartyListParams
|
136
136
|
def list(params = {})
|
@@ -174,17 +174,17 @@ module ModernTreasury
|
|
174
174
|
#
|
175
175
|
# @param id [String] counterparty id
|
176
176
|
#
|
177
|
-
# @param direction [Symbol, ModernTreasury::TransactionDirection] One of `credit` or `debit`. Use `credit` when you want to pay a counterparty. Us
|
177
|
+
# @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of `credit` or `debit`. Use `credit` when you want to pay a counterparty. Us
|
178
178
|
#
|
179
179
|
# @param custom_redirect [String] The URL you want your customer to visit upon filling out the form. By default, t
|
180
180
|
#
|
181
|
-
# @param fields [Array<Symbol, ModernTreasury::CounterpartyCollectAccountParams::Field>] The list of fields you want on the form. This field is optional and if it is not
|
181
|
+
# @param fields [Array<Symbol, ModernTreasury::Models::CounterpartyCollectAccountParams::Field>] The list of fields you want on the form. This field is optional and if it is not
|
182
182
|
#
|
183
183
|
# @param send_email [Boolean] By default, Modern Treasury will send an email to your counterparty that include
|
184
184
|
#
|
185
185
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
186
186
|
#
|
187
|
-
# @return [ModernTreasury::CounterpartyCollectAccountResponse]
|
187
|
+
# @return [ModernTreasury::Models::CounterpartyCollectAccountResponse]
|
188
188
|
#
|
189
189
|
# @see ModernTreasury::Models::CounterpartyCollectAccountParams
|
190
190
|
def collect_account(id, params)
|
@@ -9,15 +9,15 @@ module ModernTreasury
|
|
9
9
|
#
|
10
10
|
# @param documentable_id [String] The unique identifier for the associated object.
|
11
11
|
#
|
12
|
-
# @param documentable_type [Symbol, ModernTreasury::DocumentCreateParams::DocumentableType]
|
12
|
+
# @param documentable_type [Symbol, ModernTreasury::Models::DocumentCreateParams::DocumentableType]
|
13
13
|
#
|
14
|
-
# @param file [Pathname, StringIO, IO, ModernTreasury::FilePart]
|
14
|
+
# @param file [Pathname, StringIO, IO, String, ModernTreasury::FilePart]
|
15
15
|
#
|
16
16
|
# @param document_type [String] A category given to the document, can be `null`.
|
17
17
|
#
|
18
18
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
19
19
|
#
|
20
|
-
# @return [ModernTreasury::Document]
|
20
|
+
# @return [ModernTreasury::Models::Document]
|
21
21
|
#
|
22
22
|
# @see ModernTreasury::Models::DocumentCreateParams
|
23
23
|
def create(params)
|
@@ -40,7 +40,7 @@ module ModernTreasury
|
|
40
40
|
#
|
41
41
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
42
42
|
#
|
43
|
-
# @return [ModernTreasury::Document]
|
43
|
+
# @return [ModernTreasury::Models::Document]
|
44
44
|
#
|
45
45
|
# @see ModernTreasury::Models::DocumentRetrieveParams
|
46
46
|
def retrieve(id, params = {})
|
@@ -63,13 +63,13 @@ module ModernTreasury
|
|
63
63
|
#
|
64
64
|
# @param documentable_id [String] The unique identifier for the associated object.
|
65
65
|
#
|
66
|
-
# @param documentable_type [Symbol, ModernTreasury::DocumentListParams::DocumentableType] The type of the associated object. Currently can be one of `payment_order`, `tra
|
66
|
+
# @param documentable_type [Symbol, ModernTreasury::Models::DocumentListParams::DocumentableType] The type of the associated object. Currently can be one of `payment_order`, `tra
|
67
67
|
#
|
68
68
|
# @param per_page [Integer]
|
69
69
|
#
|
70
70
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
71
71
|
#
|
72
|
-
# @return [ModernTreasury::Internal::Page<ModernTreasury::Document>]
|
72
|
+
# @return [ModernTreasury::Internal::Page<ModernTreasury::Models::Document>]
|
73
73
|
#
|
74
74
|
# @see ModernTreasury::Models::DocumentListParams
|
75
75
|
def list(params = {})
|
@@ -11,7 +11,7 @@ module ModernTreasury
|
|
11
11
|
#
|
12
12
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
13
13
|
#
|
14
|
-
# @return [ModernTreasury::Event]
|
14
|
+
# @return [ModernTreasury::Models::Event]
|
15
15
|
#
|
16
16
|
# @see ModernTreasury::Models::EventRetrieveParams
|
17
17
|
def retrieve(id, params = {})
|
@@ -43,7 +43,7 @@ module ModernTreasury
|
|
43
43
|
#
|
44
44
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
45
45
|
#
|
46
|
-
# @return [ModernTreasury::Internal::Page<ModernTreasury::Event>]
|
46
|
+
# @return [ModernTreasury::Internal::Page<ModernTreasury::Models::Event>]
|
47
47
|
#
|
48
48
|
# @see ModernTreasury::Models::EventListParams
|
49
49
|
def list(params = {})
|