modern_treasury 0.1.0.pre.alpha.19 → 0.1.0.pre.alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +46 -0
- data/README.md +110 -61
- data/SECURITY.md +2 -2
- data/lib/modern_treasury/client.rb +9 -5
- data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +3 -1
- data/lib/modern_treasury/internal/type/array_of.rb +8 -0
- data/lib/modern_treasury/internal/type/base_model.rb +14 -0
- data/lib/modern_treasury/internal/type/boolean.rb +8 -0
- data/lib/modern_treasury/internal/type/enum.rb +15 -0
- data/lib/modern_treasury/internal/type/file_input.rb +7 -0
- data/lib/modern_treasury/internal/type/hash_of.rb +8 -0
- data/lib/modern_treasury/internal/type/union.rb +17 -0
- data/lib/modern_treasury/internal/type/unknown.rb +8 -0
- data/lib/modern_treasury/internal/util.rb +62 -10
- data/lib/modern_treasury/internal.rb +3 -0
- data/lib/modern_treasury/models/account_collection_flow.rb +8 -8
- data/lib/modern_treasury/models/account_collection_flow_create_params.rb +2 -2
- data/lib/modern_treasury/models/account_collection_flow_update_params.rb +2 -2
- data/lib/modern_treasury/models/account_detail.rb +8 -4
- data/lib/modern_treasury/models/account_detail_create_params.rb +8 -4
- data/lib/modern_treasury/models/account_detail_delete_params.rb +2 -2
- data/lib/modern_treasury/models/account_detail_list_params.rb +2 -2
- data/lib/modern_treasury/models/account_detail_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/bank_settings.rb +1 -1
- data/lib/modern_treasury/models/bulk_request.rb +11 -10
- data/lib/modern_treasury/models/bulk_request_create_params.rb +252 -247
- data/lib/modern_treasury/models/bulk_request_list_params.rb +7 -6
- data/lib/modern_treasury/models/bulk_result.rb +18 -29
- data/lib/modern_treasury/models/bulk_result_list_params.rb +7 -6
- data/lib/modern_treasury/models/connection.rb +1 -1
- data/lib/modern_treasury/models/connection_legal_entity.rb +4 -4
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +108 -72
- data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +2 -2
- data/lib/modern_treasury/models/connection_legal_entity_update_params.rb +2 -2
- data/lib/modern_treasury/models/counterparty.rb +32 -32
- data/lib/modern_treasury/models/counterparty_collect_account_params.rb +4 -4
- data/lib/modern_treasury/models/counterparty_collect_account_response.rb +1 -1
- data/lib/modern_treasury/models/counterparty_create_params.rb +166 -121
- data/lib/modern_treasury/models/currency.rb +7 -0
- data/lib/modern_treasury/models/document.rb +13 -13
- data/lib/modern_treasury/models/document_create_params.rb +6 -6
- data/lib/modern_treasury/models/document_list_params.rb +4 -4
- data/lib/modern_treasury/models/event.rb +2 -2
- data/lib/modern_treasury/models/expected_payment.rb +16 -16
- data/lib/modern_treasury/models/expected_payment_create_params.rb +27 -26
- data/lib/modern_treasury/models/expected_payment_list_params.rb +27 -7
- data/lib/modern_treasury/models/expected_payment_type.rb +4 -0
- data/lib/modern_treasury/models/expected_payment_update_params.rb +10 -10
- data/lib/modern_treasury/models/external_account.rb +26 -26
- data/lib/modern_treasury/models/external_account_create_params.rb +41 -32
- data/lib/modern_treasury/models/external_account_type.rb +5 -0
- data/lib/modern_treasury/models/external_account_update_params.rb +6 -6
- data/lib/modern_treasury/models/external_account_verify_params.rb +12 -8
- data/lib/modern_treasury/models/external_account_verify_response.rb +5 -10
- data/lib/modern_treasury/models/foreign_exchange_quote.rb +10 -9
- data/lib/modern_treasury/models/foreign_exchange_quote_create_params.rb +4 -4
- data/lib/modern_treasury/models/incoming_payment_detail.rb +23 -19
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +6 -6
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +6 -6
- data/lib/modern_treasury/models/internal_account.rb +24 -19
- data/lib/modern_treasury/models/internal_account_create_params.rb +37 -5
- data/lib/modern_treasury/models/internal_account_list_params.rb +10 -6
- data/lib/modern_treasury/models/internal_accounts/balance_report.rb +13 -12
- data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +9 -9
- data/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rb +2 -2
- data/lib/modern_treasury/models/invoice.rb +34 -34
- data/lib/modern_treasury/models/invoice_create_params.rb +21 -21
- data/lib/modern_treasury/models/invoice_list_params.rb +2 -2
- data/lib/modern_treasury/models/invoice_update_params.rb +21 -21
- data/lib/modern_treasury/models/invoices/invoice_line_item.rb +10 -2
- data/lib/modern_treasury/models/ledger.rb +2 -2
- data/lib/modern_treasury/models/ledger_account.rb +19 -19
- data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +23 -22
- data/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rb +4 -4
- data/lib/modern_treasury/models/ledger_account_category.rb +16 -16
- data/lib/modern_treasury/models/ledger_account_category_create_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_category_list_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_create_params.rb +4 -4
- data/lib/modern_treasury/models/ledger_account_list_params.rb +8 -8
- data/lib/modern_treasury/models/ledger_account_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_settlement.rb +4 -4
- data/lib/modern_treasury/models/ledger_account_settlement_create_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_settlement_update_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +2 -2
- data/lib/modern_treasury/models/ledger_entry.rb +20 -19
- data/lib/modern_treasury/models/ledger_entry_list_params.rb +12 -12
- data/lib/modern_treasury/models/ledger_event_handler.rb +12 -12
- data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +10 -10
- data/lib/modern_treasury/models/ledger_event_handler_variable.rb +4 -4
- data/lib/modern_treasury/models/ledger_transaction.rb +9 -9
- data/lib/modern_treasury/models/ledger_transaction_create_params.rb +10 -9
- data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +6 -6
- data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +4 -4
- data/lib/modern_treasury/models/ledger_transaction_list_params.rb +12 -12
- data/lib/modern_treasury/models/ledger_transaction_update_params.rb +10 -9
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +30 -29
- data/lib/modern_treasury/models/ledgerable_event.rb +1 -1
- data/lib/modern_treasury/models/legal_entity.rb +52 -34
- data/lib/modern_treasury/models/legal_entity_association.rb +59 -40
- data/lib/modern_treasury/models/legal_entity_association_create_params.rb +54 -36
- data/lib/modern_treasury/models/legal_entity_compliance_detail.rb +1 -1
- data/lib/modern_treasury/models/legal_entity_create_params.rb +102 -65
- data/lib/modern_treasury/models/legal_entity_industry_classification.rb +4 -4
- data/lib/modern_treasury/models/legal_entity_list_params.rb +2 -2
- data/lib/modern_treasury/models/legal_entity_update_params.rb +44 -25
- data/lib/modern_treasury/models/line_item.rb +9 -9
- data/lib/modern_treasury/models/line_item_list_params.rb +2 -2
- data/lib/modern_treasury/models/line_item_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/line_item_update_params.rb +2 -2
- data/lib/modern_treasury/models/paper_item.rb +16 -7
- data/lib/modern_treasury/models/payment_action_create_params.rb +59 -0
- data/lib/modern_treasury/models/payment_action_create_response.rb +100 -0
- data/lib/modern_treasury/models/payment_action_list_params.rb +157 -0
- data/lib/modern_treasury/models/payment_action_list_response.rb +100 -0
- data/lib/modern_treasury/models/payment_action_retrieve_params.rb +14 -0
- data/lib/modern_treasury/models/payment_action_retrieve_response.rb +100 -0
- data/lib/modern_treasury/models/payment_action_update_params.rb +44 -0
- data/lib/modern_treasury/models/payment_action_update_response.rb +100 -0
- data/lib/modern_treasury/models/payment_flow.rb +13 -13
- data/lib/modern_treasury/models/payment_flow_create_params.rb +2 -2
- data/lib/modern_treasury/models/payment_flow_update_params.rb +2 -2
- data/lib/modern_treasury/models/payment_order.rb +57 -86
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +86 -76
- data/lib/modern_treasury/models/payment_order_create_params.rb +95 -85
- data/lib/modern_treasury/models/payment_order_list_params.rb +12 -8
- data/lib/modern_treasury/models/payment_order_type.rb +4 -0
- data/lib/modern_treasury/models/payment_order_update_params.rb +72 -63
- data/lib/modern_treasury/models/payment_orders/reversal.rb +7 -7
- data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +17 -17
- data/lib/modern_treasury/models/payment_reference.rb +11 -7
- data/lib/modern_treasury/models/payment_reference_list_params.rb +2 -2
- data/lib/modern_treasury/models/reconciliation_rule.rb +13 -9
- data/lib/modern_treasury/models/return_create_params.rb +44 -4
- data/lib/modern_treasury/models/return_list_params.rb +2 -2
- data/lib/modern_treasury/models/return_object.rb +78 -27
- data/lib/modern_treasury/models/routing_detail.rb +15 -11
- data/lib/modern_treasury/models/routing_detail_create_params.rb +10 -6
- data/lib/modern_treasury/models/routing_detail_delete_params.rb +2 -2
- data/lib/modern_treasury/models/routing_detail_list_params.rb +2 -2
- data/lib/modern_treasury/models/routing_detail_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +13 -9
- data/lib/modern_treasury/models/transaction.rb +23 -17
- data/lib/modern_treasury/models/transaction_create_params.rb +6 -2
- data/lib/modern_treasury/models/transactions/line_item_list_params.rb +2 -2
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +7 -7
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +2 -2
- data/lib/modern_treasury/models/virtual_account.rb +5 -5
- data/lib/modern_treasury/models/virtual_account_create_params.rb +34 -23
- data/lib/modern_treasury/models/wealth_and_employment_details.rb +19 -19
- data/lib/modern_treasury/models.rb +38 -19
- data/lib/modern_treasury/resources/account_collection_flows.rb +6 -6
- data/lib/modern_treasury/resources/account_details.rb +8 -8
- data/lib/modern_treasury/resources/bulk_requests.rb +9 -9
- data/lib/modern_treasury/resources/bulk_results.rb +5 -5
- data/lib/modern_treasury/resources/connection_legal_entities.rb +7 -7
- data/lib/modern_treasury/resources/connections.rb +1 -1
- data/lib/modern_treasury/resources/counterparties.rb +12 -12
- data/lib/modern_treasury/resources/documents.rb +6 -6
- data/lib/modern_treasury/resources/events.rb +2 -2
- data/lib/modern_treasury/resources/expected_payments.rb +24 -20
- data/lib/modern_treasury/resources/external_accounts.rb +20 -20
- data/lib/modern_treasury/resources/foreign_exchange_quotes.rb +5 -5
- data/lib/modern_treasury/resources/incoming_payment_details.rb +10 -10
- data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +6 -6
- data/lib/modern_treasury/resources/internal_accounts.rb +12 -10
- data/lib/modern_treasury/resources/invoices/line_items.rb +5 -5
- data/lib/modern_treasury/resources/invoices.rb +21 -21
- data/lib/modern_treasury/resources/ledger_account_balance_monitors.rb +6 -6
- data/lib/modern_treasury/resources/ledger_account_categories.rb +8 -8
- data/lib/modern_treasury/resources/ledger_account_settlements.rb +6 -6
- data/lib/modern_treasury/resources/ledger_accounts.rb +12 -12
- data/lib/modern_treasury/resources/ledger_entries.rb +6 -6
- data/lib/modern_treasury/resources/ledger_event_handlers.rb +7 -7
- data/lib/modern_treasury/resources/ledger_transactions/versions.rb +1 -1
- data/lib/modern_treasury/resources/ledger_transactions.rb +18 -18
- data/lib/modern_treasury/resources/ledgerable_events.rb +2 -2
- data/lib/modern_treasury/resources/ledgers.rb +5 -5
- data/lib/modern_treasury/resources/legal_entities.rb +25 -25
- data/lib/modern_treasury/resources/legal_entity_associations.rb +3 -3
- data/lib/modern_treasury/resources/line_items.rb +6 -6
- data/lib/modern_treasury/resources/paper_items.rb +2 -2
- data/lib/modern_treasury/resources/payment_actions.rb +137 -0
- data/lib/modern_treasury/resources/payment_flows.rb +6 -6
- data/lib/modern_treasury/resources/payment_orders/reversals.rb +5 -5
- data/lib/modern_treasury/resources/payment_orders.rb +46 -46
- data/lib/modern_treasury/resources/payment_references.rb +3 -3
- data/lib/modern_treasury/resources/returns.rb +6 -6
- data/lib/modern_treasury/resources/routing_details.rb +9 -9
- data/lib/modern_treasury/resources/transactions/line_items.rb +4 -4
- data/lib/modern_treasury/resources/transactions.rb +5 -5
- data/lib/modern_treasury/resources/validations.rb +2 -2
- data/lib/modern_treasury/resources/virtual_accounts.rb +8 -8
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +12 -1
- data/rbi/modern_treasury/client.rbi +3 -0
- data/rbi/modern_treasury/internal/transport/pooled_net_requester.rbi +5 -1
- data/rbi/modern_treasury/internal/type/array_of.rbi +6 -0
- data/rbi/modern_treasury/internal/type/base_model.rbi +5 -0
- data/rbi/modern_treasury/internal/type/boolean.rbi +6 -0
- data/rbi/modern_treasury/internal/type/enum.rbi +5 -0
- data/rbi/modern_treasury/internal/type/file_input.rbi +5 -0
- data/rbi/modern_treasury/internal/type/hash_of.rbi +6 -0
- data/rbi/modern_treasury/internal/type/union.rbi +5 -0
- data/rbi/modern_treasury/internal/type/unknown.rbi +6 -0
- data/rbi/modern_treasury/internal/util.rbi +36 -0
- data/rbi/modern_treasury/internal.rbi +5 -0
- data/rbi/modern_treasury/models/account_detail.rbi +20 -0
- data/rbi/modern_treasury/models/account_detail_create_params.rbi +20 -0
- data/rbi/modern_treasury/models/bulk_request.rbi +5 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +105 -0
- data/rbi/modern_treasury/models/bulk_request_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/bulk_result.rbi +7 -19
- data/rbi/modern_treasury/models/bulk_result_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +52 -6
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +92 -6
- data/rbi/modern_treasury/models/currency.rbi +7 -0
- data/rbi/modern_treasury/models/document.rbi +9 -6
- data/rbi/modern_treasury/models/document_create_params.rbi +12 -12
- data/rbi/modern_treasury/models/document_list_params.rbi +9 -9
- data/rbi/modern_treasury/models/expected_payment_list_params.rbi +42 -0
- data/rbi/modern_treasury/models/expected_payment_type.rbi +6 -0
- data/rbi/modern_treasury/models/external_account_create_params.rbi +40 -0
- data/rbi/modern_treasury/models/external_account_type.rbi +16 -0
- data/rbi/modern_treasury/models/external_account_verify_params.rbi +20 -0
- data/rbi/modern_treasury/models/external_account_verify_response.rbi +20 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +20 -0
- data/rbi/modern_treasury/models/internal_account.rbi +25 -0
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +117 -0
- data/rbi/modern_treasury/models/internal_account_list_params.rbi +20 -0
- data/rbi/modern_treasury/models/invoice.rbi +2 -2
- data/rbi/modern_treasury/models/invoices/invoice_line_item.rbi +8 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +23 -0
- data/rbi/modern_treasury/models/legal_entity_association.rbi +23 -0
- data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +26 -3
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +52 -6
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +26 -3
- data/rbi/modern_treasury/models/paper_item.rbi +10 -0
- data/rbi/modern_treasury/models/payment_action_create_params.rbi +94 -0
- data/rbi/modern_treasury/models/payment_action_create_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_action_list_params.rbi +306 -0
- data/rbi/modern_treasury/models/payment_action_list_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_action_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/payment_action_retrieve_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_action_update_params.rbi +106 -0
- data/rbi/modern_treasury/models/payment_action_update_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_order.rbi +22 -38
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +40 -0
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +52 -12
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +20 -0
- data/rbi/modern_treasury/models/payment_order_type.rbi +5 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +40 -0
- data/rbi/modern_treasury/models/payment_reference.rbi +20 -0
- data/rbi/modern_treasury/models/reconciliation_rule.rbi +14 -0
- data/rbi/modern_treasury/models/return_create_params.rbi +80 -0
- data/rbi/modern_treasury/models/return_object.rbi +66 -0
- data/rbi/modern_treasury/models/routing_detail.rbi +17 -0
- data/rbi/modern_treasury/models/routing_detail_create_params.rbi +20 -0
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +20 -0
- data/rbi/modern_treasury/models/transaction.rbi +16 -0
- data/rbi/modern_treasury/models/transaction_create_params.rbi +20 -0
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +40 -0
- data/rbi/modern_treasury/models.rbi +9 -0
- data/rbi/modern_treasury/resources/documents.rbi +1 -1
- data/rbi/modern_treasury/resources/expected_payments.rbi +6 -0
- data/rbi/modern_treasury/resources/external_accounts.rbi +1 -4
- data/rbi/modern_treasury/resources/internal_accounts.rbi +5 -0
- data/rbi/modern_treasury/resources/payment_actions.rbi +119 -0
- data/sig/modern_treasury/client.rbs +2 -0
- data/sig/modern_treasury/internal/transport/pooled_net_requester.rbs +2 -0
- data/sig/modern_treasury/internal/type/array_of.rbs +3 -0
- data/sig/modern_treasury/internal/type/base_model.rbs +2 -0
- data/sig/modern_treasury/internal/type/boolean.rbs +3 -0
- data/sig/modern_treasury/internal/type/enum.rbs +2 -0
- data/sig/modern_treasury/internal/type/file_input.rbs +2 -0
- data/sig/modern_treasury/internal/type/hash_of.rbs +3 -0
- data/sig/modern_treasury/internal/type/union.rbs +2 -0
- data/sig/modern_treasury/internal/type/unknown.rbs +3 -0
- data/sig/modern_treasury/internal/util.rbs +12 -0
- data/sig/modern_treasury/internal.rbs +3 -0
- data/sig/modern_treasury/models/account_collection_flow.rbs +30 -16
- data/sig/modern_treasury/models/account_collection_flow_create_params.rbs +13 -6
- data/sig/modern_treasury/models/account_collection_flow_list_params.rbs +10 -0
- data/sig/modern_treasury/models/account_collection_flow_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/account_collection_flow_update_params.rbs +5 -0
- data/sig/modern_treasury/models/account_detail.rbs +24 -4
- data/sig/modern_treasury/models/account_detail_create_params.rbs +15 -0
- data/sig/modern_treasury/models/account_detail_delete_params.rbs +6 -0
- data/sig/modern_treasury/models/account_detail_list_params.rbs +7 -0
- data/sig/modern_treasury/models/account_detail_retrieve_params.rbs +6 -0
- data/sig/modern_treasury/models/async_response.rbs +2 -0
- data/sig/modern_treasury/models/bank_settings.rbs +13 -0
- data/sig/modern_treasury/models/bulk_request.rbs +29 -12
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +600 -188
- data/sig/modern_treasury/models/bulk_request_list_params.rbs +12 -0
- data/sig/modern_treasury/models/bulk_request_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/bulk_result.rbs +44 -16
- data/sig/modern_treasury/models/bulk_result_list_params.rbs +13 -0
- data/sig/modern_treasury/models/bulk_result_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/client_ping_params.rbs +2 -0
- data/sig/modern_treasury/models/connection.rbs +12 -0
- data/sig/modern_treasury/models/connection_legal_entity.rbs +17 -4
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +188 -56
- data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +9 -0
- data/sig/modern_treasury/models/connection_legal_entity_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/connection_legal_entity_update_params.rbs +5 -0
- data/sig/modern_treasury/models/connection_list_params.rbs +8 -0
- data/sig/modern_treasury/models/counterparty.rbs +84 -22
- data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +14 -6
- data/sig/modern_treasury/models/counterparty_collect_account_response.rbs +2 -0
- data/sig/modern_treasury/models/counterparty_create_params.rbs +307 -92
- data/sig/modern_treasury/models/counterparty_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/counterparty_list_params.rbs +12 -0
- data/sig/modern_treasury/models/counterparty_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/counterparty_update_params.rbs +10 -0
- data/sig/modern_treasury/models/currency.rbs +14 -0
- data/sig/modern_treasury/models/document.rbs +41 -9
- data/sig/modern_treasury/models/document_create_params.rbs +16 -8
- data/sig/modern_treasury/models/document_list_params.rbs +13 -5
- data/sig/modern_treasury/models/document_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/event.rbs +13 -0
- data/sig/modern_treasury/models/event_list_params.rbs +11 -0
- data/sig/modern_treasury/models/event_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/expected_payment.rbs +41 -12
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +66 -12
- data/sig/modern_treasury/models/expected_payment_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +37 -1
- data/sig/modern_treasury/models/expected_payment_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/expected_payment_type.rbs +8 -0
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +21 -0
- data/sig/modern_treasury/models/external_account.rbs +63 -16
- data/sig/modern_treasury/models/external_account_complete_verification_params.rbs +5 -0
- data/sig/modern_treasury/models/external_account_create_params.rbs +99 -28
- data/sig/modern_treasury/models/external_account_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/external_account_list_params.rbs +9 -0
- data/sig/modern_treasury/models/external_account_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/external_account_type.rbs +11 -1
- data/sig/modern_treasury/models/external_account_update_params.rbs +20 -0
- data/sig/modern_treasury/models/external_account_verify_params.rbs +17 -0
- data/sig/modern_treasury/models/external_account_verify_response.rbs +21 -0
- data/sig/modern_treasury/models/foreign_exchange_quote.rbs +25 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_create_params.rbs +10 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_list_params.rbs +13 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +52 -16
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +13 -0
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +13 -0
- data/sig/modern_treasury/models/incoming_payment_detail_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/incoming_payment_detail_update_params.rbs +5 -0
- data/sig/modern_treasury/models/internal_account.rbs +55 -9
- data/sig/modern_treasury/models/internal_account_create_params.rbs +66 -0
- data/sig/modern_treasury/models/internal_account_list_params.rbs +20 -0
- data/sig/modern_treasury/models/internal_account_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/internal_account_update_params.rbs +9 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +37 -8
- data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +19 -4
- data/sig/modern_treasury/models/internal_accounts/balance_report_delete_params.rbs +5 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_list_params.rbs +8 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/invoice.rbs +94 -16
- data/sig/modern_treasury/models/invoice_add_payment_order_params.rbs +5 -0
- data/sig/modern_treasury/models/invoice_create_params.rbs +81 -4
- data/sig/modern_treasury/models/invoice_list_params.rbs +15 -0
- data/sig/modern_treasury/models/invoice_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/invoice_update_params.rbs +81 -4
- data/sig/modern_treasury/models/invoices/invoice_line_item.rbs +21 -0
- data/sig/modern_treasury/models/invoices/line_item_create_params.rbs +11 -0
- data/sig/modern_treasury/models/invoices/line_item_delete_params.rbs +5 -0
- data/sig/modern_treasury/models/invoices/line_item_list_params.rbs +6 -0
- data/sig/modern_treasury/models/invoices/line_item_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/invoices/line_item_update_params.rbs +12 -0
- data/sig/modern_treasury/models/ledger.rbs +12 -0
- data/sig/modern_treasury/models/ledger_account.rbs +54 -4
- data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +52 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_create_params.rbs +10 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_list_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_update_params.rbs +6 -0
- data/sig/modern_treasury/models/ledger_account_category.rbs +45 -0
- data/sig/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_add_nested_category_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_create_params.rbs +12 -0
- data/sig/modern_treasury/models/ledger_account_category_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +16 -0
- data/sig/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_retrieve_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account_category_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account_create_params.rbs +14 -0
- data/sig/modern_treasury/models/ledger_account_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_list_params.rbs +52 -0
- data/sig/modern_treasury/models/ledger_account_retrieve_params.rbs +13 -0
- data/sig/modern_treasury/models/ledger_account_settlement.rbs +24 -4
- data/sig/modern_treasury/models/ledger_account_settlement_create_params.rbs +12 -0
- data/sig/modern_treasury/models/ledger_account_settlement_list_params.rbs +14 -0
- data/sig/modern_treasury/models/ledger_account_settlement_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +78 -0
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +78 -0
- data/sig/modern_treasury/models/ledger_account_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_create_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_entry.rbs +53 -4
- data/sig/modern_treasury/models/ledger_entry_list_params.rbs +41 -12
- data/sig/modern_treasury/models/ledger_entry_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_entry_update_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_event_handler.rbs +31 -0
- data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +26 -0
- data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +7 -0
- data/sig/modern_treasury/models/ledger_list_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_transaction.rbs +30 -8
- data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +25 -0
- data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +19 -4
- data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +11 -0
- data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +40 -12
- data/sig/modern_treasury/models/ledger_transaction_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +23 -0
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +82 -12
- data/sig/modern_treasury/models/ledger_transactions/version_list_params.rbs +10 -0
- data/sig/modern_treasury/models/ledger_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledgerable_event.rbs +13 -0
- data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +8 -0
- data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/legal_entity.rbs +96 -20
- data/sig/modern_treasury/models/legal_entity_association.rbs +113 -24
- data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +98 -30
- data/sig/modern_treasury/models/legal_entity_compliance_detail.rbs +15 -0
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +168 -42
- data/sig/modern_treasury/models/legal_entity_industry_classification.rbs +15 -4
- data/sig/modern_treasury/models/legal_entity_list_params.rbs +9 -0
- data/sig/modern_treasury/models/legal_entity_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +70 -12
- data/sig/modern_treasury/models/line_item.rbs +22 -4
- data/sig/modern_treasury/models/line_item_list_params.rbs +7 -0
- data/sig/modern_treasury/models/line_item_retrieve_params.rbs +6 -0
- data/sig/modern_treasury/models/line_item_update_params.rbs +7 -0
- data/sig/modern_treasury/models/paper_item.rbs +30 -4
- data/sig/modern_treasury/models/paper_item_list_params.rbs +9 -0
- data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_action_create_params.rbs +54 -0
- data/sig/modern_treasury/models/payment_action_create_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_action_list_params.rbs +149 -0
- data/sig/modern_treasury/models/payment_action_list_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_action_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/payment_action_retrieve_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_action_update_params.rbs +40 -0
- data/sig/modern_treasury/models/payment_action_update_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_flow.rbs +44 -22
- data/sig/modern_treasury/models/payment_flow_create_params.rbs +10 -0
- data/sig/modern_treasury/models/payment_flow_list_params.rbs +12 -0
- data/sig/modern_treasury/models/payment_flow_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_flow_update_params.rbs +5 -0
- data/sig/modern_treasury/models/payment_order.rbs +116 -48
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +185 -44
- data/sig/modern_treasury/models/payment_order_create_params.rbs +205 -56
- data/sig/modern_treasury/models/payment_order_list_params.rbs +29 -0
- data/sig/modern_treasury/models/payment_order_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_order_type.rbs +8 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +148 -32
- data/sig/modern_treasury/models/payment_orders/reversal.rbs +22 -8
- data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +43 -12
- data/sig/modern_treasury/models/payment_orders/reversal_list_params.rbs +6 -0
- data/sig/modern_treasury/models/payment_orders/reversal_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/payment_reference.rbs +28 -8
- data/sig/modern_treasury/models/payment_reference_list_params.rbs +9 -0
- data/sig/modern_treasury/models/payment_reference_retireve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_reference_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ping_response.rbs +2 -0
- data/sig/modern_treasury/models/reconciliation_rule.rbs +29 -8
- data/sig/modern_treasury/models/return_create_params.rbs +91 -0
- data/sig/modern_treasury/models/return_list_params.rbs +10 -0
- data/sig/modern_treasury/models/return_object.rbs +154 -24
- data/sig/modern_treasury/models/return_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/routing_detail.rbs +44 -8
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +16 -0
- data/sig/modern_treasury/models/routing_detail_delete_params.rbs +6 -0
- data/sig/modern_treasury/models/routing_detail_list_params.rbs +7 -0
- data/sig/modern_treasury/models/routing_detail_retrieve_params.rbs +6 -0
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +38 -12
- data/sig/modern_treasury/models/transaction.rbs +58 -8
- data/sig/modern_treasury/models/transaction_create_params.rbs +22 -0
- data/sig/modern_treasury/models/transaction_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/transaction_list_params.rbs +18 -0
- data/sig/modern_treasury/models/transaction_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/transaction_update_params.rbs +5 -0
- data/sig/modern_treasury/models/transactions/line_item_create_params.rbs +7 -0
- data/sig/modern_treasury/models/transactions/line_item_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/transactions/line_item_list_params.rbs +9 -0
- data/sig/modern_treasury/models/transactions/line_item_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +26 -8
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +6 -0
- data/sig/modern_treasury/models/virtual_account.rbs +19 -0
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +74 -20
- data/sig/modern_treasury/models/virtual_account_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account_list_params.rbs +9 -0
- data/sig/modern_treasury/models/virtual_account_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account_update_params.rbs +8 -0
- data/sig/modern_treasury/models/wealth_and_employment_details.rbs +45 -24
- data/sig/modern_treasury/models.rbs +8 -0
- data/sig/modern_treasury/resources/account_collection_flows.rbs +1 -1
- data/sig/modern_treasury/resources/bulk_requests.rbs +1 -1
- data/sig/modern_treasury/resources/counterparties.rbs +1 -1
- data/sig/modern_treasury/resources/documents.rbs +1 -1
- data/sig/modern_treasury/resources/expected_payments.rbs +2 -0
- data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
- data/sig/modern_treasury/resources/legal_entity_associations.rbs +1 -1
- data/sig/modern_treasury/resources/payment_actions.rbs +40 -0
- metadata +29 -2
@@ -9,6 +9,23 @@ module ModernTreasury
|
|
9
9
|
# @return [Float]
|
10
10
|
def self.monotonic_secs = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
11
11
|
|
12
|
+
# @api private
|
13
|
+
#
|
14
|
+
# @param ns [Module, Class]
|
15
|
+
#
|
16
|
+
# @return [Enumerable<Module, Class>]
|
17
|
+
def self.walk_namespaces(ns)
|
18
|
+
ns.constants(false).lazy.flat_map do
|
19
|
+
case (c = ns.const_get(_1, false))
|
20
|
+
in Module | Class
|
21
|
+
walk_namespaces(c)
|
22
|
+
else
|
23
|
+
[]
|
24
|
+
end
|
25
|
+
end
|
26
|
+
.chain([ns])
|
27
|
+
end
|
28
|
+
|
12
29
|
class << self
|
13
30
|
# @api private
|
14
31
|
#
|
@@ -480,7 +497,7 @@ module ModernTreasury
|
|
480
497
|
# @param closing [Array<Proc>]
|
481
498
|
# @param content_type [String, nil]
|
482
499
|
private def write_multipart_content(y, val:, closing:, content_type: nil)
|
483
|
-
|
500
|
+
content_line = "Content-Type: %s\r\n\r\n"
|
484
501
|
|
485
502
|
case val
|
486
503
|
in ModernTreasury::FilePart
|
@@ -491,24 +508,21 @@ module ModernTreasury
|
|
491
508
|
content_type: val.content_type
|
492
509
|
)
|
493
510
|
in Pathname
|
494
|
-
y <<
|
511
|
+
y << format(content_line, content_type || "application/octet-stream")
|
495
512
|
io = val.open(binmode: true)
|
496
513
|
closing << io.method(:close)
|
497
514
|
IO.copy_stream(io, y)
|
498
515
|
in IO
|
499
|
-
y <<
|
516
|
+
y << format(content_line, content_type || "application/octet-stream")
|
500
517
|
IO.copy_stream(val, y)
|
501
518
|
in StringIO
|
502
|
-
y <<
|
519
|
+
y << format(content_line, content_type || "application/octet-stream")
|
503
520
|
y << val.string
|
504
|
-
in String
|
505
|
-
y << "Content-Type: #{content_type}\r\n\r\n"
|
506
|
-
y << val.to_s
|
507
521
|
in -> { primitive?(_1) }
|
508
|
-
y << "
|
522
|
+
y << format(content_line, content_type || "text/plain")
|
509
523
|
y << val.to_s
|
510
524
|
else
|
511
|
-
y << "
|
525
|
+
y << format(content_line, content_type || "application/json")
|
512
526
|
y << JSON.generate(val)
|
513
527
|
end
|
514
528
|
y << "\r\n"
|
@@ -546,6 +560,8 @@ module ModernTreasury
|
|
546
560
|
|
547
561
|
# @api private
|
548
562
|
#
|
563
|
+
# https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#special-considerations-for-multipart-content
|
564
|
+
#
|
549
565
|
# @param body [Object]
|
550
566
|
#
|
551
567
|
# @return [Array(String, Enumerable<String>)]
|
@@ -583,11 +599,13 @@ module ModernTreasury
|
|
583
599
|
#
|
584
600
|
# @return [Object]
|
585
601
|
def encode_content(headers, body)
|
602
|
+
# rubocop:disable Style/CaseEquality
|
603
|
+
# rubocop:disable Layout/LineLength
|
586
604
|
content_type = headers["content-type"]
|
587
605
|
case [content_type, body]
|
588
606
|
in [ModernTreasury::Internal::Util::JSON_CONTENT, Hash | Array | -> { primitive?(_1) }]
|
589
607
|
[headers, JSON.generate(body)]
|
590
|
-
in [ModernTreasury::Internal::Util::JSONL_CONTENT, Enumerable] unless
|
608
|
+
in [ModernTreasury::Internal::Util::JSONL_CONTENT, Enumerable] unless ModernTreasury::Internal::Type::FileInput === body
|
591
609
|
[headers, body.lazy.map { JSON.generate(_1) }]
|
592
610
|
in [%r{^multipart/form-data}, Hash | ModernTreasury::Internal::Type::FileInput]
|
593
611
|
boundary, strio = encode_multipart_streaming(body)
|
@@ -602,6 +620,8 @@ module ModernTreasury
|
|
602
620
|
else
|
603
621
|
[headers, body]
|
604
622
|
end
|
623
|
+
# rubocop:enable Layout/LineLength
|
624
|
+
# rubocop:enable Style/CaseEquality
|
605
625
|
end
|
606
626
|
|
607
627
|
# @api private
|
@@ -826,11 +846,43 @@ module ModernTreasury
|
|
826
846
|
sorbet_runtime_constants.fetch(name).call
|
827
847
|
end
|
828
848
|
|
849
|
+
# @api private
|
850
|
+
#
|
851
|
+
# @param name [Symbol]
|
852
|
+
#
|
853
|
+
# @return [Boolean]
|
854
|
+
def sorbet_constant_defined?(name) = sorbet_runtime_constants.key?(name)
|
855
|
+
|
829
856
|
# @api private
|
830
857
|
#
|
831
858
|
# @param name [Symbol]
|
832
859
|
# @param blk [Proc]
|
833
860
|
def define_sorbet_constant!(name, &blk) = sorbet_runtime_constants.store(name, blk)
|
861
|
+
|
862
|
+
# @api private
|
863
|
+
#
|
864
|
+
# @return [Object]
|
865
|
+
def to_sorbet_type = raise NotImplementedError
|
866
|
+
|
867
|
+
class << self
|
868
|
+
# @api private
|
869
|
+
#
|
870
|
+
# @param type [ModernTreasury::Internal::Util::SorbetRuntimeSupport, Object]
|
871
|
+
#
|
872
|
+
# @return [Object]
|
873
|
+
def to_sorbet_type(type)
|
874
|
+
case type
|
875
|
+
in ModernTreasury::Internal::Util::SorbetRuntimeSupport
|
876
|
+
type.to_sorbet_type
|
877
|
+
in Class | Module
|
878
|
+
type
|
879
|
+
in true | false
|
880
|
+
T::Boolean
|
881
|
+
else
|
882
|
+
type.class
|
883
|
+
end
|
884
|
+
end
|
885
|
+
end
|
834
886
|
end
|
835
887
|
|
836
888
|
extend ModernTreasury::Internal::Util::SorbetRuntimeSupport
|
@@ -13,5 +13,8 @@ module ModernTreasury
|
|
13
13
|
define_sorbet_constant!(:AnyHash) do
|
14
14
|
T.type_alias { T::Hash[Symbol, T.anything] }
|
15
15
|
end
|
16
|
+
define_sorbet_constant!(:FileInput) do
|
17
|
+
T.type_alias { T.any(Pathname, StringIO, IO, String, ModernTreasury::FilePart) }
|
18
|
+
end
|
16
19
|
end
|
17
20
|
end
|
@@ -13,7 +13,7 @@ module ModernTreasury
|
|
13
13
|
|
14
14
|
# @!attribute payment_types
|
15
15
|
#
|
16
|
-
# @return [Array<Symbol, ModernTreasury::AccountCollectionFlow::PaymentType>]
|
16
|
+
# @return [Array<Symbol, ModernTreasury::Models::AccountCollectionFlow::PaymentType>]
|
17
17
|
required :payment_types,
|
18
18
|
-> {
|
19
19
|
ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::AccountCollectionFlow::PaymentType]
|
@@ -56,7 +56,7 @@ module ModernTreasury
|
|
56
56
|
|
57
57
|
# @!attribute receiving_countries
|
58
58
|
#
|
59
|
-
# @return [Array<Symbol, ModernTreasury::AccountCollectionFlow::ReceivingCountry>, nil]
|
59
|
+
# @return [Array<Symbol, ModernTreasury::Models::AccountCollectionFlow::ReceivingCountry>, nil]
|
60
60
|
optional :receiving_countries,
|
61
61
|
-> {
|
62
62
|
ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::AccountCollectionFlow::ReceivingCountry]
|
@@ -66,7 +66,7 @@ module ModernTreasury
|
|
66
66
|
# The current status of the account collection flow. One of `pending`,
|
67
67
|
# `completed`, `expired`, or `cancelled`.
|
68
68
|
#
|
69
|
-
# @return [Symbol, ModernTreasury::AccountCollectionFlow::Status, nil]
|
69
|
+
# @return [Symbol, ModernTreasury::Models::AccountCollectionFlow::Status, nil]
|
70
70
|
optional :status, enum: -> { ModernTreasury::AccountCollectionFlow::Status }
|
71
71
|
|
72
72
|
# @!attribute updated_at
|
@@ -76,11 +76,11 @@ module ModernTreasury
|
|
76
76
|
|
77
77
|
# @!method initialize(counterparty_id:, payment_types:, id: nil, client_token: nil, created_at: nil, external_account_id: nil, live_mode: nil, object: nil, receiving_countries: nil, status: nil, updated_at: nil)
|
78
78
|
# Some parameter documentations has been truncated, see
|
79
|
-
# {ModernTreasury::AccountCollectionFlow} for more details.
|
79
|
+
# {ModernTreasury::Models::AccountCollectionFlow} for more details.
|
80
80
|
#
|
81
81
|
# @param counterparty_id [String] The ID of a counterparty. An external account created with this flow will be ass
|
82
82
|
#
|
83
|
-
# @param payment_types [Array<Symbol, ModernTreasury::AccountCollectionFlow::PaymentType>]
|
83
|
+
# @param payment_types [Array<Symbol, ModernTreasury::Models::AccountCollectionFlow::PaymentType>]
|
84
84
|
#
|
85
85
|
# @param id [String]
|
86
86
|
#
|
@@ -94,9 +94,9 @@ module ModernTreasury
|
|
94
94
|
#
|
95
95
|
# @param object [String]
|
96
96
|
#
|
97
|
-
# @param receiving_countries [Array<Symbol, ModernTreasury::AccountCollectionFlow::ReceivingCountry>]
|
97
|
+
# @param receiving_countries [Array<Symbol, ModernTreasury::Models::AccountCollectionFlow::ReceivingCountry>]
|
98
98
|
#
|
99
|
-
# @param status [Symbol, ModernTreasury::AccountCollectionFlow::Status] The current status of the account collection flow. One of `pending`, `completed`
|
99
|
+
# @param status [Symbol, ModernTreasury::Models::AccountCollectionFlow::Status] The current status of the account collection flow. One of `pending`, `completed`
|
100
100
|
#
|
101
101
|
# @param updated_at [Time]
|
102
102
|
|
@@ -142,7 +142,7 @@ module ModernTreasury
|
|
142
142
|
# The current status of the account collection flow. One of `pending`,
|
143
143
|
# `completed`, `expired`, or `cancelled`.
|
144
144
|
#
|
145
|
-
# @see ModernTreasury::AccountCollectionFlow#status
|
145
|
+
# @see ModernTreasury::Models::AccountCollectionFlow#status
|
146
146
|
module Status
|
147
147
|
extend ModernTreasury::Internal::Type::Enum
|
148
148
|
|
@@ -20,7 +20,7 @@ module ModernTreasury
|
|
20
20
|
|
21
21
|
# @!attribute receiving_countries
|
22
22
|
#
|
23
|
-
# @return [Array<Symbol, ModernTreasury::AccountCollectionFlowCreateParams::ReceivingCountry>, nil]
|
23
|
+
# @return [Array<Symbol, ModernTreasury::Models::AccountCollectionFlowCreateParams::ReceivingCountry>, nil]
|
24
24
|
optional :receiving_countries,
|
25
25
|
-> {
|
26
26
|
ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::AccountCollectionFlowCreateParams::ReceivingCountry]
|
@@ -31,7 +31,7 @@ module ModernTreasury
|
|
31
31
|
#
|
32
32
|
# @param payment_types [Array<String>]
|
33
33
|
#
|
34
|
-
# @param receiving_countries [Array<Symbol, ModernTreasury::AccountCollectionFlowCreateParams::ReceivingCountry>]
|
34
|
+
# @param receiving_countries [Array<Symbol, ModernTreasury::Models::AccountCollectionFlowCreateParams::ReceivingCountry>]
|
35
35
|
#
|
36
36
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
37
37
|
|
@@ -11,14 +11,14 @@ module ModernTreasury
|
|
11
11
|
# Required. The updated status of the account collection flow. Can only be used to
|
12
12
|
# mark a flow as `cancelled`.
|
13
13
|
#
|
14
|
-
# @return [Symbol, ModernTreasury::AccountCollectionFlowUpdateParams::Status]
|
14
|
+
# @return [Symbol, ModernTreasury::Models::AccountCollectionFlowUpdateParams::Status]
|
15
15
|
required :status, enum: -> { ModernTreasury::AccountCollectionFlowUpdateParams::Status }
|
16
16
|
|
17
17
|
# @!method initialize(status:, request_options: {})
|
18
18
|
# Some parameter documentations has been truncated, see
|
19
19
|
# {ModernTreasury::Models::AccountCollectionFlowUpdateParams} for more details.
|
20
20
|
#
|
21
|
-
# @param status [Symbol, ModernTreasury::AccountCollectionFlowUpdateParams::Status] Required. The updated status of the account collection flow. Can only be used to
|
21
|
+
# @param status [Symbol, ModernTreasury::Models::AccountCollectionFlowUpdateParams::Status] Required. The updated status of the account collection flow. Can only be used to
|
22
22
|
#
|
23
23
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
24
24
|
|
@@ -19,7 +19,7 @@ module ModernTreasury
|
|
19
19
|
# One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank
|
20
20
|
# account number is in a generic format.
|
21
21
|
#
|
22
|
-
# @return [Symbol, ModernTreasury::AccountDetail::AccountNumberType]
|
22
|
+
# @return [Symbol, ModernTreasury::Models::AccountDetail::AccountNumberType]
|
23
23
|
required :account_number_type, enum: -> { ModernTreasury::AccountDetail::AccountNumberType }
|
24
24
|
|
25
25
|
# @!attribute created_at
|
@@ -57,13 +57,13 @@ module ModernTreasury
|
|
57
57
|
|
58
58
|
# @!method initialize(id:, account_number_safe:, account_number_type:, created_at:, discarded_at:, live_mode:, object:, updated_at:, account_number: nil)
|
59
59
|
# Some parameter documentations has been truncated, see
|
60
|
-
# {ModernTreasury::AccountDetail} for more details.
|
60
|
+
# {ModernTreasury::Models::AccountDetail} for more details.
|
61
61
|
#
|
62
62
|
# @param id [String]
|
63
63
|
#
|
64
64
|
# @param account_number_safe [String] The last 4 digits of the account_number.
|
65
65
|
#
|
66
|
-
# @param account_number_type [Symbol, ModernTreasury::AccountDetail::AccountNumberType] One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank ac
|
66
|
+
# @param account_number_type [Symbol, ModernTreasury::Models::AccountDetail::AccountNumberType] One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank ac
|
67
67
|
#
|
68
68
|
# @param created_at [Time]
|
69
69
|
#
|
@@ -80,19 +80,23 @@ module ModernTreasury
|
|
80
80
|
# One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank
|
81
81
|
# account number is in a generic format.
|
82
82
|
#
|
83
|
-
# @see ModernTreasury::AccountDetail#account_number_type
|
83
|
+
# @see ModernTreasury::Models::AccountDetail#account_number_type
|
84
84
|
module AccountNumberType
|
85
85
|
extend ModernTreasury::Internal::Type::Enum
|
86
86
|
|
87
87
|
AU_NUMBER = :au_number
|
88
|
+
BASE_ADDRESS = :base_address
|
88
89
|
CLABE = :clabe
|
90
|
+
ETHEREUM_ADDRESS = :ethereum_address
|
89
91
|
HK_NUMBER = :hk_number
|
90
92
|
IBAN = :iban
|
91
93
|
ID_NUMBER = :id_number
|
92
94
|
NZ_NUMBER = :nz_number
|
93
95
|
OTHER = :other
|
94
96
|
PAN = :pan
|
97
|
+
POLYGON_ADDRESS = :polygon_address
|
95
98
|
SG_NUMBER = :sg_number
|
99
|
+
SOLANA_ADDRESS = :solana_address
|
96
100
|
WALLET_ADDRESS = :wallet_address
|
97
101
|
|
98
102
|
# @!method self.values
|
@@ -9,7 +9,7 @@ module ModernTreasury
|
|
9
9
|
|
10
10
|
# @!attribute accounts_type
|
11
11
|
#
|
12
|
-
# @return [Symbol, ModernTreasury::AccountDetailCreateParams::AccountsType]
|
12
|
+
# @return [Symbol, ModernTreasury::Models::AccountDetailCreateParams::AccountsType]
|
13
13
|
required :accounts_type, enum: -> { ModernTreasury::AccountDetailCreateParams::AccountsType }
|
14
14
|
|
15
15
|
# @!attribute account_number
|
@@ -22,18 +22,18 @@ module ModernTreasury
|
|
22
22
|
# One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank
|
23
23
|
# account number is in a generic format.
|
24
24
|
#
|
25
|
-
# @return [Symbol, ModernTreasury::AccountDetailCreateParams::AccountNumberType, nil]
|
25
|
+
# @return [Symbol, ModernTreasury::Models::AccountDetailCreateParams::AccountNumberType, nil]
|
26
26
|
optional :account_number_type, enum: -> { ModernTreasury::AccountDetailCreateParams::AccountNumberType }
|
27
27
|
|
28
28
|
# @!method initialize(accounts_type:, account_number:, account_number_type: nil, request_options: {})
|
29
29
|
# Some parameter documentations has been truncated, see
|
30
30
|
# {ModernTreasury::Models::AccountDetailCreateParams} for more details.
|
31
31
|
#
|
32
|
-
# @param accounts_type [Symbol, ModernTreasury::AccountDetailCreateParams::AccountsType]
|
32
|
+
# @param accounts_type [Symbol, ModernTreasury::Models::AccountDetailCreateParams::AccountsType]
|
33
33
|
#
|
34
34
|
# @param account_number [String] The account number for the bank account.
|
35
35
|
#
|
36
|
-
# @param account_number_type [Symbol, ModernTreasury::AccountDetailCreateParams::AccountNumberType] One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank ac
|
36
|
+
# @param account_number_type [Symbol, ModernTreasury::Models::AccountDetailCreateParams::AccountNumberType] One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank ac
|
37
37
|
#
|
38
38
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
39
39
|
|
@@ -52,14 +52,18 @@ module ModernTreasury
|
|
52
52
|
extend ModernTreasury::Internal::Type::Enum
|
53
53
|
|
54
54
|
AU_NUMBER = :au_number
|
55
|
+
BASE_ADDRESS = :base_address
|
55
56
|
CLABE = :clabe
|
57
|
+
ETHEREUM_ADDRESS = :ethereum_address
|
56
58
|
HK_NUMBER = :hk_number
|
57
59
|
IBAN = :iban
|
58
60
|
ID_NUMBER = :id_number
|
59
61
|
NZ_NUMBER = :nz_number
|
60
62
|
OTHER = :other
|
61
63
|
PAN = :pan
|
64
|
+
POLYGON_ADDRESS = :polygon_address
|
62
65
|
SG_NUMBER = :sg_number
|
66
|
+
SOLANA_ADDRESS = :solana_address
|
63
67
|
WALLET_ADDRESS = :wallet_address
|
64
68
|
|
65
69
|
# @!method self.values
|
@@ -9,7 +9,7 @@ module ModernTreasury
|
|
9
9
|
|
10
10
|
# @!attribute accounts_type
|
11
11
|
#
|
12
|
-
# @return [Symbol, ModernTreasury::AccountDetailDeleteParams::AccountsType]
|
12
|
+
# @return [Symbol, ModernTreasury::Models::AccountDetailDeleteParams::AccountsType]
|
13
13
|
required :accounts_type, enum: -> { ModernTreasury::AccountDetailDeleteParams::AccountsType }
|
14
14
|
|
15
15
|
# @!attribute account_id
|
@@ -18,7 +18,7 @@ module ModernTreasury
|
|
18
18
|
required :account_id, String
|
19
19
|
|
20
20
|
# @!method initialize(accounts_type:, account_id:, request_options: {})
|
21
|
-
# @param accounts_type [Symbol, ModernTreasury::AccountDetailDeleteParams::AccountsType]
|
21
|
+
# @param accounts_type [Symbol, ModernTreasury::Models::AccountDetailDeleteParams::AccountsType]
|
22
22
|
# @param account_id [String]
|
23
23
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
24
24
|
|
@@ -9,7 +9,7 @@ module ModernTreasury
|
|
9
9
|
|
10
10
|
# @!attribute accounts_type
|
11
11
|
#
|
12
|
-
# @return [Symbol, ModernTreasury::AccountsType]
|
12
|
+
# @return [Symbol, ModernTreasury::Models::AccountsType]
|
13
13
|
required :accounts_type, enum: -> { ModernTreasury::AccountsType }
|
14
14
|
|
15
15
|
# @!attribute after_cursor
|
@@ -23,7 +23,7 @@ module ModernTreasury
|
|
23
23
|
optional :per_page, Integer
|
24
24
|
|
25
25
|
# @!method initialize(accounts_type:, after_cursor: nil, per_page: nil, request_options: {})
|
26
|
-
# @param accounts_type [Symbol, ModernTreasury::AccountsType]
|
26
|
+
# @param accounts_type [Symbol, ModernTreasury::Models::AccountsType]
|
27
27
|
# @param after_cursor [String, nil]
|
28
28
|
# @param per_page [Integer]
|
29
29
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
@@ -9,7 +9,7 @@ module ModernTreasury
|
|
9
9
|
|
10
10
|
# @!attribute accounts_type
|
11
11
|
#
|
12
|
-
# @return [Symbol, ModernTreasury::AccountsType]
|
12
|
+
# @return [Symbol, ModernTreasury::Models::AccountsType]
|
13
13
|
required :accounts_type, enum: -> { ModernTreasury::AccountsType }
|
14
14
|
|
15
15
|
# @!attribute account_id
|
@@ -18,7 +18,7 @@ module ModernTreasury
|
|
18
18
|
required :account_id, String
|
19
19
|
|
20
20
|
# @!method initialize(accounts_type:, account_id:, request_options: {})
|
21
|
-
# @param accounts_type [Symbol, ModernTreasury::AccountsType]
|
21
|
+
# @param accounts_type [Symbol, ModernTreasury::Models::AccountsType]
|
22
22
|
# @param account_id [String]
|
23
23
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
24
24
|
end
|
@@ -65,7 +65,7 @@ module ModernTreasury
|
|
65
65
|
|
66
66
|
# @!method initialize(id:, backup_withholding_percentage:, created_at:, discarded_at:, enable_backup_withholding:, live_mode:, object:, privacy_opt_out:, regulation_o:, updated_at:)
|
67
67
|
# Some parameter documentations has been truncated, see
|
68
|
-
# {ModernTreasury::BankSettings} for more details.
|
68
|
+
# {ModernTreasury::Models::BankSettings} for more details.
|
69
69
|
#
|
70
70
|
# @param id [String]
|
71
71
|
#
|
@@ -12,7 +12,7 @@ module ModernTreasury
|
|
12
12
|
# @!attribute action_type
|
13
13
|
# One of create, or update.
|
14
14
|
#
|
15
|
-
# @return [Symbol, ModernTreasury::BulkRequest::ActionType]
|
15
|
+
# @return [Symbol, ModernTreasury::Models::BulkRequest::ActionType]
|
16
16
|
required :action_type, enum: -> { ModernTreasury::BulkRequest::ActionType }
|
17
17
|
|
18
18
|
# @!attribute created_at
|
@@ -48,13 +48,13 @@ module ModernTreasury
|
|
48
48
|
# @!attribute resource_type
|
49
49
|
# One of payment_order, expected_payment, or ledger_transaction.
|
50
50
|
#
|
51
|
-
# @return [Symbol, ModernTreasury::BulkRequest::ResourceType]
|
51
|
+
# @return [Symbol, ModernTreasury::Models::BulkRequest::ResourceType]
|
52
52
|
required :resource_type, enum: -> { ModernTreasury::BulkRequest::ResourceType }
|
53
53
|
|
54
54
|
# @!attribute status
|
55
55
|
# One of pending, processing, or completed.
|
56
56
|
#
|
57
|
-
# @return [Symbol, ModernTreasury::BulkRequest::Status]
|
57
|
+
# @return [Symbol, ModernTreasury::Models::BulkRequest::Status]
|
58
58
|
required :status, enum: -> { ModernTreasury::BulkRequest::Status }
|
59
59
|
|
60
60
|
# @!attribute success_result_count
|
@@ -78,11 +78,11 @@ module ModernTreasury
|
|
78
78
|
|
79
79
|
# @!method initialize(id:, action_type:, created_at:, failed_result_count:, live_mode:, metadata:, object:, resource_type:, status:, success_result_count:, total_resource_count:, updated_at:)
|
80
80
|
# Some parameter documentations has been truncated, see
|
81
|
-
# {ModernTreasury::BulkRequest} for more details.
|
81
|
+
# {ModernTreasury::Models::BulkRequest} for more details.
|
82
82
|
#
|
83
83
|
# @param id [String]
|
84
84
|
#
|
85
|
-
# @param action_type [Symbol, ModernTreasury::BulkRequest::ActionType] One of create, or update.
|
85
|
+
# @param action_type [Symbol, ModernTreasury::Models::BulkRequest::ActionType] One of create, or update.
|
86
86
|
#
|
87
87
|
# @param created_at [Time]
|
88
88
|
#
|
@@ -94,9 +94,9 @@ module ModernTreasury
|
|
94
94
|
#
|
95
95
|
# @param object [String]
|
96
96
|
#
|
97
|
-
# @param resource_type [Symbol, ModernTreasury::BulkRequest::ResourceType] One of payment_order, expected_payment, or ledger_transaction.
|
97
|
+
# @param resource_type [Symbol, ModernTreasury::Models::BulkRequest::ResourceType] One of payment_order, expected_payment, or ledger_transaction.
|
98
98
|
#
|
99
|
-
# @param status [Symbol, ModernTreasury::BulkRequest::Status] One of pending, processing, or completed.
|
99
|
+
# @param status [Symbol, ModernTreasury::Models::BulkRequest::Status] One of pending, processing, or completed.
|
100
100
|
#
|
101
101
|
# @param success_result_count [Integer] Total number of successful bulk results so far for this request
|
102
102
|
#
|
@@ -106,7 +106,7 @@ module ModernTreasury
|
|
106
106
|
|
107
107
|
# One of create, or update.
|
108
108
|
#
|
109
|
-
# @see ModernTreasury::BulkRequest#action_type
|
109
|
+
# @see ModernTreasury::Models::BulkRequest#action_type
|
110
110
|
module ActionType
|
111
111
|
extend ModernTreasury::Internal::Type::Enum
|
112
112
|
|
@@ -120,7 +120,7 @@ module ModernTreasury
|
|
120
120
|
|
121
121
|
# One of payment_order, expected_payment, or ledger_transaction.
|
122
122
|
#
|
123
|
-
# @see ModernTreasury::BulkRequest#resource_type
|
123
|
+
# @see ModernTreasury::Models::BulkRequest#resource_type
|
124
124
|
module ResourceType
|
125
125
|
extend ModernTreasury::Internal::Type::Enum
|
126
126
|
|
@@ -129,6 +129,7 @@ module ModernTreasury
|
|
129
129
|
LEDGER_TRANSACTION = :ledger_transaction
|
130
130
|
EXPECTED_PAYMENT = :expected_payment
|
131
131
|
TRANSACTION = :transaction
|
132
|
+
TRANSACTION_LINE_ITEM = :transaction_line_item
|
132
133
|
ENTITY_LINK = :entity_link
|
133
134
|
|
134
135
|
# @!method self.values
|
@@ -137,7 +138,7 @@ module ModernTreasury
|
|
137
138
|
|
138
139
|
# One of pending, processing, or completed.
|
139
140
|
#
|
140
|
-
# @see ModernTreasury::BulkRequest#status
|
141
|
+
# @see ModernTreasury::Models::BulkRequest#status
|
141
142
|
module Status
|
142
143
|
extend ModernTreasury::Internal::Type::Enum
|
143
144
|
|