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
@@ -17,7 +17,7 @@ module ModernTreasury
|
|
17
17
|
# Either "USD" or "CAD". Internal accounts created at Increase only supports
|
18
18
|
# "USD".
|
19
19
|
#
|
20
|
-
# @return [Symbol, ModernTreasury::InternalAccountCreateParams::Currency]
|
20
|
+
# @return [Symbol, ModernTreasury::Models::InternalAccountCreateParams::Currency]
|
21
21
|
required :currency, enum: -> { ModernTreasury::InternalAccountCreateParams::Currency }
|
22
22
|
|
23
23
|
# @!attribute name
|
@@ -32,6 +32,13 @@ module ModernTreasury
|
|
32
32
|
# @return [String]
|
33
33
|
required :party_name, String
|
34
34
|
|
35
|
+
# @!attribute account_type
|
36
|
+
# The account type, used to provision the appropriate account at the financial
|
37
|
+
# institution.
|
38
|
+
#
|
39
|
+
# @return [Symbol, ModernTreasury::Models::InternalAccountCreateParams::AccountType, nil]
|
40
|
+
optional :account_type, enum: -> { ModernTreasury::InternalAccountCreateParams::AccountType }
|
41
|
+
|
35
42
|
# @!attribute counterparty_id
|
36
43
|
# The Counterparty associated to this account.
|
37
44
|
#
|
@@ -53,7 +60,7 @@ module ModernTreasury
|
|
53
60
|
# @!attribute party_address
|
54
61
|
# The address associated with the owner or null.
|
55
62
|
#
|
56
|
-
# @return [ModernTreasury::InternalAccountCreateParams::PartyAddress, nil]
|
63
|
+
# @return [ModernTreasury::Models::InternalAccountCreateParams::PartyAddress, nil]
|
57
64
|
optional :party_address, -> { ModernTreasury::InternalAccountCreateParams::PartyAddress }
|
58
65
|
|
59
66
|
# @!attribute vendor_attributes
|
@@ -63,25 +70,27 @@ module ModernTreasury
|
|
63
70
|
# @return [Hash{Symbol=>String}, nil]
|
64
71
|
optional :vendor_attributes, ModernTreasury::Internal::Type::HashOf[String]
|
65
72
|
|
66
|
-
# @!method initialize(connection_id:, currency:, name:, party_name:, counterparty_id: nil, legal_entity_id: nil, parent_account_id: nil, party_address: nil, vendor_attributes: nil, request_options: {})
|
73
|
+
# @!method initialize(connection_id:, currency:, name:, party_name:, account_type: nil, counterparty_id: nil, legal_entity_id: nil, parent_account_id: nil, party_address: nil, vendor_attributes: nil, request_options: {})
|
67
74
|
# Some parameter documentations has been truncated, see
|
68
75
|
# {ModernTreasury::Models::InternalAccountCreateParams} for more details.
|
69
76
|
#
|
70
77
|
# @param connection_id [String] The identifier of the financial institution the account belongs to.
|
71
78
|
#
|
72
|
-
# @param currency [Symbol, ModernTreasury::InternalAccountCreateParams::Currency] Either "USD" or "CAD". Internal accounts created at Increase only supports "USD"
|
79
|
+
# @param currency [Symbol, ModernTreasury::Models::InternalAccountCreateParams::Currency] Either "USD" or "CAD". Internal accounts created at Increase only supports "USD"
|
73
80
|
#
|
74
81
|
# @param name [String] The nickname of the account.
|
75
82
|
#
|
76
83
|
# @param party_name [String] The legal name of the entity which owns the account.
|
77
84
|
#
|
85
|
+
# @param account_type [Symbol, ModernTreasury::Models::InternalAccountCreateParams::AccountType] The account type, used to provision the appropriate account at the financial ins
|
86
|
+
#
|
78
87
|
# @param counterparty_id [String] The Counterparty associated to this account.
|
79
88
|
#
|
80
89
|
# @param legal_entity_id [String] The LegalEntity associated to this account.
|
81
90
|
#
|
82
91
|
# @param parent_account_id [String] The parent internal account of this new account.
|
83
92
|
#
|
84
|
-
# @param party_address [ModernTreasury::InternalAccountCreateParams::PartyAddress] The address associated with the owner or null.
|
93
|
+
# @param party_address [ModernTreasury::Models::InternalAccountCreateParams::PartyAddress] The address associated with the owner or null.
|
85
94
|
#
|
86
95
|
# @param vendor_attributes [Hash{Symbol=>String}] A hash of vendor specific attributes that will be used when creating the account
|
87
96
|
#
|
@@ -99,6 +108,29 @@ module ModernTreasury
|
|
99
108
|
# @return [Array<Symbol>]
|
100
109
|
end
|
101
110
|
|
111
|
+
# The account type, used to provision the appropriate account at the financial
|
112
|
+
# institution.
|
113
|
+
module AccountType
|
114
|
+
extend ModernTreasury::Internal::Type::Enum
|
115
|
+
|
116
|
+
BASE_WALLET = :base_wallet
|
117
|
+
CASH = :cash
|
118
|
+
CHECKING = :checking
|
119
|
+
CRYPTO_WALLET = :crypto_wallet
|
120
|
+
ETHEREUM_WALLET = :ethereum_wallet
|
121
|
+
GENERAL_LEDGER = :general_ledger
|
122
|
+
LOAN = :loan
|
123
|
+
NON_RESIDENT = :non_resident
|
124
|
+
OTHER = :other
|
125
|
+
OVERDRAFT = :overdraft
|
126
|
+
POLYGON_WALLET = :polygon_wallet
|
127
|
+
SAVINGS = :savings
|
128
|
+
SOLANA_WALLET = :solana_wallet
|
129
|
+
|
130
|
+
# @!method self.values
|
131
|
+
# @return [Array<Symbol>]
|
132
|
+
end
|
133
|
+
|
102
134
|
class PartyAddress < ModernTreasury::Internal::Type::BaseModel
|
103
135
|
# @!attribute country
|
104
136
|
# Country code conforms to [ISO 3166-1 alpha-2]
|
@@ -21,7 +21,7 @@ module ModernTreasury
|
|
21
21
|
# @!attribute currency
|
22
22
|
# Only return internal accounts with this currency.
|
23
23
|
#
|
24
|
-
# @return [Symbol, ModernTreasury::Currency, nil]
|
24
|
+
# @return [Symbol, ModernTreasury::Models::Currency, nil]
|
25
25
|
optional :currency, enum: -> { ModernTreasury::Currency }
|
26
26
|
|
27
27
|
# @!attribute legal_entity_id
|
@@ -41,13 +41,13 @@ module ModernTreasury
|
|
41
41
|
# @!attribute payment_direction
|
42
42
|
# Only return internal accounts that can originate payments with this direction.
|
43
43
|
#
|
44
|
-
# @return [Symbol, ModernTreasury::TransactionDirection, nil]
|
44
|
+
# @return [Symbol, ModernTreasury::Models::TransactionDirection, nil]
|
45
45
|
optional :payment_direction, enum: -> { ModernTreasury::TransactionDirection }
|
46
46
|
|
47
47
|
# @!attribute payment_type
|
48
48
|
# Only return internal accounts that can make this type of payment.
|
49
49
|
#
|
50
|
-
# @return [Symbol, ModernTreasury::InternalAccountListParams::PaymentType, nil]
|
50
|
+
# @return [Symbol, ModernTreasury::Models::InternalAccountListParams::PaymentType, nil]
|
51
51
|
optional :payment_type, enum: -> { ModernTreasury::InternalAccountListParams::PaymentType }
|
52
52
|
|
53
53
|
# @!attribute per_page
|
@@ -63,15 +63,15 @@ module ModernTreasury
|
|
63
63
|
#
|
64
64
|
# @param counterparty_id [String] Only return internal accounts associated with this counterparty.
|
65
65
|
#
|
66
|
-
# @param currency [Symbol, ModernTreasury::Currency] Only return internal accounts with this currency.
|
66
|
+
# @param currency [Symbol, ModernTreasury::Models::Currency] Only return internal accounts with this currency.
|
67
67
|
#
|
68
68
|
# @param legal_entity_id [String] Only return internal accounts associated with this legal entity.
|
69
69
|
#
|
70
70
|
# @param metadata [Hash{Symbol=>String}] For example, if you want to query for records with metadata key `Type` and value
|
71
71
|
#
|
72
|
-
# @param payment_direction [Symbol, ModernTreasury::TransactionDirection] Only return internal accounts that can originate payments with this direction.
|
72
|
+
# @param payment_direction [Symbol, ModernTreasury::Models::TransactionDirection] Only return internal accounts that can originate payments with this direction.
|
73
73
|
#
|
74
|
-
# @param payment_type [Symbol, ModernTreasury::InternalAccountListParams::PaymentType] Only return internal accounts that can make this type of payment.
|
74
|
+
# @param payment_type [Symbol, ModernTreasury::Models::InternalAccountListParams::PaymentType] Only return internal accounts that can make this type of payment.
|
75
75
|
#
|
76
76
|
# @param per_page [Integer]
|
77
77
|
#
|
@@ -84,6 +84,7 @@ module ModernTreasury
|
|
84
84
|
ACH = :ach
|
85
85
|
AU_BECS = :au_becs
|
86
86
|
BACS = :bacs
|
87
|
+
BASE = :base
|
87
88
|
BOOK = :book
|
88
89
|
CARD = :card
|
89
90
|
CHATS = :chats
|
@@ -91,6 +92,7 @@ module ModernTreasury
|
|
91
92
|
CROSS_BORDER = :cross_border
|
92
93
|
DK_NETS = :dk_nets
|
93
94
|
EFT = :eft
|
95
|
+
ETHEREUM = :ethereum
|
94
96
|
HU_ICS = :hu_ics
|
95
97
|
INTERAC = :interac
|
96
98
|
MASAV = :masav
|
@@ -99,6 +101,7 @@ module ModernTreasury
|
|
99
101
|
NICS = :nics
|
100
102
|
NZ_BECS = :nz_becs
|
101
103
|
PL_ELIXIR = :pl_elixir
|
104
|
+
POLYGON = :polygon
|
102
105
|
PROVXCHANGE = :provxchange
|
103
106
|
RO_SENT = :ro_sent
|
104
107
|
RTP = :rtp
|
@@ -109,6 +112,7 @@ module ModernTreasury
|
|
109
112
|
SIC = :sic
|
110
113
|
SIGNET = :signet
|
111
114
|
SKNBI = :sknbi
|
115
|
+
SOLANA = :solana
|
112
116
|
WIRE = :wire
|
113
117
|
ZENGIN = :zengin
|
114
118
|
|
@@ -26,14 +26,14 @@ module ModernTreasury
|
|
26
26
|
# The specific type of balance report. One of `intraday`, `previous_day`,
|
27
27
|
# `real_time`, or `other`.
|
28
28
|
#
|
29
|
-
# @return [Symbol, ModernTreasury::InternalAccounts::BalanceReport::BalanceReportType]
|
29
|
+
# @return [Symbol, ModernTreasury::Models::InternalAccounts::BalanceReport::BalanceReportType]
|
30
30
|
required :balance_report_type,
|
31
31
|
enum: -> { ModernTreasury::InternalAccounts::BalanceReport::BalanceReportType }
|
32
32
|
|
33
33
|
# @!attribute balances
|
34
34
|
# An array of `Balance` objects.
|
35
35
|
#
|
36
|
-
# @return [Array<ModernTreasury::InternalAccounts::BalanceReport::Balance>]
|
36
|
+
# @return [Array<ModernTreasury::Models::InternalAccounts::BalanceReport::Balance>]
|
37
37
|
required :balances,
|
38
38
|
-> {
|
39
39
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::InternalAccounts::BalanceReport::Balance]
|
@@ -69,7 +69,7 @@ module ModernTreasury
|
|
69
69
|
|
70
70
|
# @!method initialize(id:, as_of_date:, as_of_time:, balance_report_type:, balances:, created_at:, internal_account_id:, live_mode:, object:, updated_at:)
|
71
71
|
# Some parameter documentations has been truncated, see
|
72
|
-
# {ModernTreasury::InternalAccounts::BalanceReport} for more details.
|
72
|
+
# {ModernTreasury::Models::InternalAccounts::BalanceReport} for more details.
|
73
73
|
#
|
74
74
|
# @param id [String]
|
75
75
|
#
|
@@ -77,9 +77,9 @@ module ModernTreasury
|
|
77
77
|
#
|
78
78
|
# @param as_of_time [Time, nil] The time (24-hour clock) of the balance report in local time.
|
79
79
|
#
|
80
|
-
# @param balance_report_type [Symbol, ModernTreasury::InternalAccounts::BalanceReport::BalanceReportType] The specific type of balance report. One of `intraday`, `previous_day`, `real_ti
|
80
|
+
# @param balance_report_type [Symbol, ModernTreasury::Models::InternalAccounts::BalanceReport::BalanceReportType] The specific type of balance report. One of `intraday`, `previous_day`, `real_ti
|
81
81
|
#
|
82
|
-
# @param balances [Array<ModernTreasury::InternalAccounts::BalanceReport::Balance>] An array of `Balance` objects.
|
82
|
+
# @param balances [Array<ModernTreasury::Models::InternalAccounts::BalanceReport::Balance>] An array of `Balance` objects.
|
83
83
|
#
|
84
84
|
# @param created_at [Time]
|
85
85
|
#
|
@@ -94,7 +94,7 @@ module ModernTreasury
|
|
94
94
|
# The specific type of balance report. One of `intraday`, `previous_day`,
|
95
95
|
# `real_time`, or `other`.
|
96
96
|
#
|
97
|
-
# @see ModernTreasury::InternalAccounts::BalanceReport#balance_report_type
|
97
|
+
# @see ModernTreasury::Models::InternalAccounts::BalanceReport#balance_report_type
|
98
98
|
module BalanceReportType
|
99
99
|
extend ModernTreasury::Internal::Type::Enum
|
100
100
|
|
@@ -137,7 +137,7 @@ module ModernTreasury
|
|
137
137
|
# `opening_available_next_business_day`, `closing_available`, `current_available`,
|
138
138
|
# 'previously_closed_book', or `other`.
|
139
139
|
#
|
140
|
-
# @return [Symbol, ModernTreasury::InternalAccounts::BalanceReport::Balance::BalanceType]
|
140
|
+
# @return [Symbol, ModernTreasury::Models::InternalAccounts::BalanceReport::Balance::BalanceType]
|
141
141
|
required :balance_type,
|
142
142
|
enum: -> {
|
143
143
|
ModernTreasury::InternalAccounts::BalanceReport::Balance::BalanceType
|
@@ -151,7 +151,7 @@ module ModernTreasury
|
|
151
151
|
# @!attribute currency
|
152
152
|
# The currency of the balance.
|
153
153
|
#
|
154
|
-
# @return [Symbol, ModernTreasury::Currency]
|
154
|
+
# @return [Symbol, ModernTreasury::Models::Currency]
|
155
155
|
required :currency, enum: -> { ModernTreasury::Currency }
|
156
156
|
|
157
157
|
# @!attribute live_mode
|
@@ -194,7 +194,8 @@ module ModernTreasury
|
|
194
194
|
|
195
195
|
# @!method initialize(id:, amount:, as_of_date:, as_of_time:, balance_type:, created_at:, currency:, live_mode:, object:, updated_at:, value_date:, vendor_code:, vendor_code_type:)
|
196
196
|
# Some parameter documentations has been truncated, see
|
197
|
-
# {ModernTreasury::InternalAccounts::BalanceReport::Balance} for more
|
197
|
+
# {ModernTreasury::Models::InternalAccounts::BalanceReport::Balance} for more
|
198
|
+
# details.
|
198
199
|
#
|
199
200
|
# @param id [String]
|
200
201
|
#
|
@@ -204,11 +205,11 @@ module ModernTreasury
|
|
204
205
|
#
|
205
206
|
# @param as_of_time [Time, nil] The time on which the balance became true for the account.
|
206
207
|
#
|
207
|
-
# @param balance_type [Symbol, ModernTreasury::InternalAccounts::BalanceReport::Balance::BalanceType] The specific type of balance reported. One of `opening_ledger`, `closing_ledger`
|
208
|
+
# @param balance_type [Symbol, ModernTreasury::Models::InternalAccounts::BalanceReport::Balance::BalanceType] The specific type of balance reported. One of `opening_ledger`, `closing_ledger`
|
208
209
|
#
|
209
210
|
# @param created_at [Time]
|
210
211
|
#
|
211
|
-
# @param currency [Symbol, ModernTreasury::Currency] The currency of the balance.
|
212
|
+
# @param currency [Symbol, ModernTreasury::Models::Currency] The currency of the balance.
|
212
213
|
#
|
213
214
|
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
214
215
|
#
|
@@ -227,7 +228,7 @@ module ModernTreasury
|
|
227
228
|
# `opening_available_next_business_day`, `closing_available`, `current_available`,
|
228
229
|
# 'previously_closed_book', or `other`.
|
229
230
|
#
|
230
|
-
# @see ModernTreasury::InternalAccounts::BalanceReport::Balance#balance_type
|
231
|
+
# @see ModernTreasury::Models::InternalAccounts::BalanceReport::Balance#balance_type
|
231
232
|
module BalanceType
|
232
233
|
extend ModernTreasury::Internal::Type::Enum
|
233
234
|
|
@@ -24,14 +24,14 @@ module ModernTreasury
|
|
24
24
|
# The specific type of balance report. One of `intraday`, `previous_day`,
|
25
25
|
# `real_time`, or `other`.
|
26
26
|
#
|
27
|
-
# @return [Symbol, ModernTreasury::InternalAccounts::BalanceReportCreateParams::BalanceReportType]
|
27
|
+
# @return [Symbol, ModernTreasury::Models::InternalAccounts::BalanceReportCreateParams::BalanceReportType]
|
28
28
|
required :balance_report_type,
|
29
29
|
enum: -> { ModernTreasury::InternalAccounts::BalanceReportCreateParams::BalanceReportType }
|
30
30
|
|
31
31
|
# @!attribute balances
|
32
32
|
# An array of `Balance` objects.
|
33
33
|
#
|
34
|
-
# @return [Array<ModernTreasury::InternalAccounts::BalanceReportCreateParams::Balance>]
|
34
|
+
# @return [Array<ModernTreasury::Models::InternalAccounts::BalanceReportCreateParams::Balance>]
|
35
35
|
required :balances,
|
36
36
|
-> {
|
37
37
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::InternalAccounts::BalanceReportCreateParams::Balance]
|
@@ -46,9 +46,9 @@ module ModernTreasury
|
|
46
46
|
#
|
47
47
|
# @param as_of_time [String] The time (24-hour clock) of the balance report in local time.
|
48
48
|
#
|
49
|
-
# @param balance_report_type [Symbol, ModernTreasury::InternalAccounts::BalanceReportCreateParams::BalanceReportType] The specific type of balance report. One of `intraday`, `previous_day`, `real_ti
|
49
|
+
# @param balance_report_type [Symbol, ModernTreasury::Models::InternalAccounts::BalanceReportCreateParams::BalanceReportType] The specific type of balance report. One of `intraday`, `previous_day`, `real_ti
|
50
50
|
#
|
51
|
-
# @param balances [Array<ModernTreasury::InternalAccounts::BalanceReportCreateParams::Balance>] An array of `Balance` objects.
|
51
|
+
# @param balances [Array<ModernTreasury::Models::InternalAccounts::BalanceReportCreateParams::Balance>] An array of `Balance` objects.
|
52
52
|
#
|
53
53
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
54
54
|
|
@@ -79,7 +79,7 @@ module ModernTreasury
|
|
79
79
|
# `opening_available_next_business_day`, `closing_available`, `current_available`,
|
80
80
|
# 'previously_closed_book', or `other`.
|
81
81
|
#
|
82
|
-
# @return [Symbol, ModernTreasury::InternalAccounts::BalanceReportCreateParams::Balance::BalanceType]
|
82
|
+
# @return [Symbol, ModernTreasury::Models::InternalAccounts::BalanceReportCreateParams::Balance::BalanceType]
|
83
83
|
required :balance_type,
|
84
84
|
enum: -> {
|
85
85
|
ModernTreasury::InternalAccounts::BalanceReportCreateParams::Balance::BalanceType
|
@@ -102,12 +102,12 @@ module ModernTreasury
|
|
102
102
|
|
103
103
|
# @!method initialize(amount:, balance_type:, vendor_code:, vendor_code_type:)
|
104
104
|
# Some parameter documentations has been truncated, see
|
105
|
-
# {ModernTreasury::InternalAccounts::BalanceReportCreateParams::Balance}
|
106
|
-
# details.
|
105
|
+
# {ModernTreasury::Models::InternalAccounts::BalanceReportCreateParams::Balance}
|
106
|
+
# for more details.
|
107
107
|
#
|
108
108
|
# @param amount [Integer] The balance amount.
|
109
109
|
#
|
110
|
-
# @param balance_type [Symbol, ModernTreasury::InternalAccounts::BalanceReportCreateParams::Balance::BalanceType] The specific type of balance reported. One of `opening_ledger`, `closing_ledger`
|
110
|
+
# @param balance_type [Symbol, ModernTreasury::Models::InternalAccounts::BalanceReportCreateParams::Balance::BalanceType] The specific type of balance reported. One of `opening_ledger`, `closing_ledger`
|
111
111
|
#
|
112
112
|
# @param vendor_code [String] The code used by the bank when reporting this specific balance.
|
113
113
|
#
|
@@ -118,7 +118,7 @@ module ModernTreasury
|
|
118
118
|
# `opening_available_next_business_day`, `closing_available`, `current_available`,
|
119
119
|
# 'previously_closed_book', or `other`.
|
120
120
|
#
|
121
|
-
# @see ModernTreasury::InternalAccounts::BalanceReportCreateParams::Balance#balance_type
|
121
|
+
# @see ModernTreasury::Models::InternalAccounts::BalanceReportCreateParams::Balance#balance_type
|
122
122
|
module BalanceType
|
123
123
|
extend ModernTreasury::Internal::Type::Enum
|
124
124
|
|
@@ -23,7 +23,7 @@ module ModernTreasury
|
|
23
23
|
# The specific type of balance report. One of `intraday`, `previous_day`,
|
24
24
|
# `real_time`, or `other`.
|
25
25
|
#
|
26
|
-
# @return [Symbol, ModernTreasury::InternalAccounts::BalanceReportListParams::BalanceReportType, nil]
|
26
|
+
# @return [Symbol, ModernTreasury::Models::InternalAccounts::BalanceReportListParams::BalanceReportType, nil]
|
27
27
|
optional :balance_report_type,
|
28
28
|
enum: -> { ModernTreasury::InternalAccounts::BalanceReportListParams::BalanceReportType }
|
29
29
|
|
@@ -41,7 +41,7 @@ module ModernTreasury
|
|
41
41
|
#
|
42
42
|
# @param as_of_date [Date] The date of the balance report in local time.
|
43
43
|
#
|
44
|
-
# @param balance_report_type [Symbol, ModernTreasury::InternalAccounts::BalanceReportListParams::BalanceReportType] The specific type of balance report. One of `intraday`, `previous_day`, `real_ti
|
44
|
+
# @param balance_report_type [Symbol, ModernTreasury::Models::InternalAccounts::BalanceReportListParams::BalanceReportType] The specific type of balance report. One of `intraday`, `previous_day`, `real_ti
|
45
45
|
#
|
46
46
|
# @param per_page [Integer]
|
47
47
|
#
|
@@ -26,14 +26,14 @@ module ModernTreasury
|
|
26
26
|
# @!attribute contact_details
|
27
27
|
# The invoicer's contact details displayed at the top of the invoice.
|
28
28
|
#
|
29
|
-
# @return [Array<ModernTreasury::Invoice::ContactDetail>]
|
29
|
+
# @return [Array<ModernTreasury::Models::Invoice::ContactDetail>]
|
30
30
|
required :contact_details,
|
31
31
|
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Invoice::ContactDetail] }
|
32
32
|
|
33
33
|
# @!attribute counterparty_billing_address
|
34
34
|
# The counterparty's billing address.
|
35
35
|
#
|
36
|
-
# @return [ModernTreasury::Invoice::CounterpartyBillingAddress, nil]
|
36
|
+
# @return [ModernTreasury::Models::Invoice::CounterpartyBillingAddress, nil]
|
37
37
|
required :counterparty_billing_address,
|
38
38
|
-> { ModernTreasury::Invoice::CounterpartyBillingAddress },
|
39
39
|
nil?: true
|
@@ -47,7 +47,7 @@ module ModernTreasury
|
|
47
47
|
# @!attribute counterparty_shipping_address
|
48
48
|
# The counterparty's shipping address where physical goods should be delivered.
|
49
49
|
#
|
50
|
-
# @return [ModernTreasury::Invoice::CounterpartyShippingAddress, nil]
|
50
|
+
# @return [ModernTreasury::Models::Invoice::CounterpartyShippingAddress, nil]
|
51
51
|
required :counterparty_shipping_address,
|
52
52
|
-> { ModernTreasury::Invoice::CounterpartyShippingAddress },
|
53
53
|
nil?: true
|
@@ -60,11 +60,11 @@ module ModernTreasury
|
|
60
60
|
# @!attribute currency
|
61
61
|
# Currency that the invoice is denominated in. Defaults to `USD` if not provided.
|
62
62
|
#
|
63
|
-
# @return [Symbol, ModernTreasury::Currency]
|
63
|
+
# @return [Symbol, ModernTreasury::Models::Currency]
|
64
64
|
required :currency, enum: -> { ModernTreasury::Currency }
|
65
65
|
|
66
66
|
# @!attribute description
|
67
|
-
#
|
67
|
+
# An optional free-form description of the invoice.
|
68
68
|
#
|
69
69
|
# @return [String]
|
70
70
|
required :description, String
|
@@ -78,7 +78,7 @@ module ModernTreasury
|
|
78
78
|
# @!attribute expected_payments
|
79
79
|
# The expected payments created for an unpaid invoice.
|
80
80
|
#
|
81
|
-
# @return [Array<ModernTreasury::ExpectedPayment>]
|
81
|
+
# @return [Array<ModernTreasury::Models::ExpectedPayment>]
|
82
82
|
required :expected_payments,
|
83
83
|
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ExpectedPayment] }
|
84
84
|
|
@@ -98,7 +98,7 @@ module ModernTreasury
|
|
98
98
|
# @!attribute invoicer_address
|
99
99
|
# The invoice issuer's business address.
|
100
100
|
#
|
101
|
-
# @return [ModernTreasury::Invoice::InvoicerAddress, nil]
|
101
|
+
# @return [ModernTreasury::Models::Invoice::InvoicerAddress, nil]
|
102
102
|
required :invoicer_address, -> { ModernTreasury::Invoice::InvoicerAddress }, nil?: true
|
103
103
|
|
104
104
|
# @!attribute ledger_account_settlement_id
|
@@ -165,20 +165,20 @@ module ModernTreasury
|
|
165
165
|
# When opening an invoice, whether to show the embedded payment UI , automatically
|
166
166
|
# debit the recipient, or rely on manual payment from the recipient.
|
167
167
|
#
|
168
|
-
# @return [Symbol, ModernTreasury::Invoice::PaymentMethod, nil]
|
168
|
+
# @return [Symbol, ModernTreasury::Models::Invoice::PaymentMethod, nil]
|
169
169
|
required :payment_method, enum: -> { ModernTreasury::Invoice::PaymentMethod }, nil?: true
|
170
170
|
|
171
171
|
# @!attribute payment_orders
|
172
172
|
# The payment orders created for paying the invoice through the invoice payment
|
173
173
|
# UI.
|
174
174
|
#
|
175
|
-
# @return [Array<ModernTreasury::PaymentOrder>]
|
175
|
+
# @return [Array<ModernTreasury::Models::PaymentOrder>]
|
176
176
|
required :payment_orders, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrder] }
|
177
177
|
|
178
178
|
# @!attribute payment_type
|
179
179
|
# One of `ach` or `eft`.
|
180
180
|
#
|
181
|
-
# @return [Symbol, ModernTreasury::Invoice::PaymentType, nil]
|
181
|
+
# @return [Symbol, ModernTreasury::Models::Invoice::PaymentType, nil]
|
182
182
|
required :payment_type, enum: -> { ModernTreasury::Invoice::PaymentType }, nil?: true
|
183
183
|
|
184
184
|
# @!attribute pdf_url
|
@@ -217,7 +217,7 @@ module ModernTreasury
|
|
217
217
|
# @!attribute status
|
218
218
|
# The status of the invoice.
|
219
219
|
#
|
220
|
-
# @return [Symbol, ModernTreasury::Invoice::Status]
|
220
|
+
# @return [Symbol, ModernTreasury::Models::Invoice::Status]
|
221
221
|
required :status, enum: -> { ModernTreasury::Invoice::Status }
|
222
222
|
|
223
223
|
# @!attribute total_amount
|
@@ -245,8 +245,8 @@ module ModernTreasury
|
|
245
245
|
required :virtual_account_id, String, nil?: true
|
246
246
|
|
247
247
|
# @!method initialize(id:, amount_paid:, amount_remaining:, contact_details:, counterparty_billing_address:, counterparty_id:, counterparty_shipping_address:, created_at:, currency:, description:, due_date:, expected_payments:, fallback_payment_method:, hosted_url:, invoicer_address:, ledger_account_settlement_id:, live_mode:, metadata:, notification_email_addresses:, notifications_enabled:, number:, object:, originating_account_id:, payment_effective_date:, payment_method:, payment_orders:, payment_type:, pdf_url:, receiving_account_id:, recipient_email:, recipient_name:, remind_after_overdue_days:, status:, total_amount:, transaction_line_item_ids:, updated_at:, virtual_account_id:)
|
248
|
-
# Some parameter documentations has been truncated, see
|
249
|
-
# for more details.
|
248
|
+
# Some parameter documentations has been truncated, see
|
249
|
+
# {ModernTreasury::Models::Invoice} for more details.
|
250
250
|
#
|
251
251
|
# @param id [String]
|
252
252
|
#
|
@@ -254,29 +254,29 @@ module ModernTreasury
|
|
254
254
|
#
|
255
255
|
# @param amount_remaining [Integer] Amount remaining due on the invoice in specified currency's smallest unit, e.g.,
|
256
256
|
#
|
257
|
-
# @param contact_details [Array<ModernTreasury::Invoice::ContactDetail>] The invoicer's contact details displayed at the top of the invoice.
|
257
|
+
# @param contact_details [Array<ModernTreasury::Models::Invoice::ContactDetail>] The invoicer's contact details displayed at the top of the invoice.
|
258
258
|
#
|
259
|
-
# @param counterparty_billing_address [ModernTreasury::Invoice::CounterpartyBillingAddress, nil] The counterparty's billing address.
|
259
|
+
# @param counterparty_billing_address [ModernTreasury::Models::Invoice::CounterpartyBillingAddress, nil] The counterparty's billing address.
|
260
260
|
#
|
261
261
|
# @param counterparty_id [String] The ID of the counterparty receiving the invoice.
|
262
262
|
#
|
263
|
-
# @param counterparty_shipping_address [ModernTreasury::Invoice::CounterpartyShippingAddress, nil] The counterparty's shipping address where physical goods should be delivered.
|
263
|
+
# @param counterparty_shipping_address [ModernTreasury::Models::Invoice::CounterpartyShippingAddress, nil] The counterparty's shipping address where physical goods should be delivered.
|
264
264
|
#
|
265
265
|
# @param created_at [Time]
|
266
266
|
#
|
267
|
-
# @param currency [Symbol, ModernTreasury::Currency] Currency that the invoice is denominated in. Defaults to `USD` if not provided.
|
267
|
+
# @param currency [Symbol, ModernTreasury::Models::Currency] Currency that the invoice is denominated in. Defaults to `USD` if not provided.
|
268
268
|
#
|
269
|
-
# @param description [String]
|
269
|
+
# @param description [String] An optional free-form description of the invoice.
|
270
270
|
#
|
271
271
|
# @param due_date [Time] A future date by when the invoice needs to be paid.
|
272
272
|
#
|
273
|
-
# @param expected_payments [Array<ModernTreasury::ExpectedPayment>] The expected payments created for an unpaid invoice.
|
273
|
+
# @param expected_payments [Array<ModernTreasury::Models::ExpectedPayment>] The expected payments created for an unpaid invoice.
|
274
274
|
#
|
275
275
|
# @param fallback_payment_method [String, nil] When payment_method is automatic, the fallback payment method to use when an aut
|
276
276
|
#
|
277
277
|
# @param hosted_url [String] The URL of the hosted web UI where the invoice can be viewed.
|
278
278
|
#
|
279
|
-
# @param invoicer_address [ModernTreasury::Invoice::InvoicerAddress, nil] The invoice issuer's business address.
|
279
|
+
# @param invoicer_address [ModernTreasury::Models::Invoice::InvoicerAddress, nil] The invoice issuer's business address.
|
280
280
|
#
|
281
281
|
# @param ledger_account_settlement_id [String, nil] The ledger account settlement object linked to the invoice.
|
282
282
|
#
|
@@ -296,11 +296,11 @@ module ModernTreasury
|
|
296
296
|
#
|
297
297
|
# @param payment_effective_date [Date, nil] Date transactions are to be posted to the participants' account. Defaults to the
|
298
298
|
#
|
299
|
-
# @param payment_method [Symbol, ModernTreasury::Invoice::PaymentMethod, nil] When opening an invoice, whether to show the embedded payment UI , automatically
|
299
|
+
# @param payment_method [Symbol, ModernTreasury::Models::Invoice::PaymentMethod, nil] When opening an invoice, whether to show the embedded payment UI , automatically
|
300
300
|
#
|
301
|
-
# @param payment_orders [Array<ModernTreasury::PaymentOrder>] The payment orders created for paying the invoice through the invoice payment UI
|
301
|
+
# @param payment_orders [Array<ModernTreasury::Models::PaymentOrder>] The payment orders created for paying the invoice through the invoice payment UI
|
302
302
|
#
|
303
|
-
# @param payment_type [Symbol, ModernTreasury::Invoice::PaymentType, nil] One of `ach` or `eft`.
|
303
|
+
# @param payment_type [Symbol, ModernTreasury::Models::Invoice::PaymentType, nil] One of `ach` or `eft`.
|
304
304
|
#
|
305
305
|
# @param pdf_url [String, nil] The URL where the invoice PDF can be downloaded.
|
306
306
|
#
|
@@ -312,7 +312,7 @@ module ModernTreasury
|
|
312
312
|
#
|
313
313
|
# @param remind_after_overdue_days [Array<Integer>, nil] Number of days after due date when overdue reminder emails will be sent out to i
|
314
314
|
#
|
315
|
-
# @param status [Symbol, ModernTreasury::Invoice::Status] The status of the invoice.
|
315
|
+
# @param status [Symbol, ModernTreasury::Models::Invoice::Status] The status of the invoice.
|
316
316
|
#
|
317
317
|
# @param total_amount [Integer] Total amount due in specified currency's smallest unit, e.g., $10 USD would be r
|
318
318
|
#
|
@@ -335,7 +335,7 @@ module ModernTreasury
|
|
335
335
|
|
336
336
|
# @!attribute contact_identifier_type
|
337
337
|
#
|
338
|
-
# @return [Symbol, ModernTreasury::Invoice::ContactDetail::ContactIdentifierType]
|
338
|
+
# @return [Symbol, ModernTreasury::Models::Invoice::ContactDetail::ContactIdentifierType]
|
339
339
|
required :contact_identifier_type,
|
340
340
|
enum: -> { ModernTreasury::Invoice::ContactDetail::ContactIdentifierType }
|
341
341
|
|
@@ -368,13 +368,13 @@ module ModernTreasury
|
|
368
368
|
|
369
369
|
# @!method initialize(id:, contact_identifier:, contact_identifier_type:, created_at:, discarded_at:, live_mode:, object:, updated_at:)
|
370
370
|
# Some parameter documentations has been truncated, see
|
371
|
-
# {ModernTreasury::Invoice::ContactDetail} for more details.
|
371
|
+
# {ModernTreasury::Models::Invoice::ContactDetail} for more details.
|
372
372
|
#
|
373
373
|
# @param id [String]
|
374
374
|
#
|
375
375
|
# @param contact_identifier [String]
|
376
376
|
#
|
377
|
-
# @param contact_identifier_type [Symbol, ModernTreasury::Invoice::ContactDetail::ContactIdentifierType]
|
377
|
+
# @param contact_identifier_type [Symbol, ModernTreasury::Models::Invoice::ContactDetail::ContactIdentifierType]
|
378
378
|
#
|
379
379
|
# @param created_at [Time]
|
380
380
|
#
|
@@ -386,7 +386,7 @@ module ModernTreasury
|
|
386
386
|
#
|
387
387
|
# @param updated_at [Time]
|
388
388
|
|
389
|
-
# @see ModernTreasury::Invoice::ContactDetail#contact_identifier_type
|
389
|
+
# @see ModernTreasury::Models::Invoice::ContactDetail#contact_identifier_type
|
390
390
|
module ContactIdentifierType
|
391
391
|
extend ModernTreasury::Internal::Type::Enum
|
392
392
|
|
@@ -399,7 +399,7 @@ module ModernTreasury
|
|
399
399
|
end
|
400
400
|
end
|
401
401
|
|
402
|
-
# @see ModernTreasury::Invoice#counterparty_billing_address
|
402
|
+
# @see ModernTreasury::Models::Invoice#counterparty_billing_address
|
403
403
|
class CounterpartyBillingAddress < ModernTreasury::Internal::Type::BaseModel
|
404
404
|
# @!attribute country
|
405
405
|
# Country code conforms to [ISO 3166-1 alpha-2]
|
@@ -451,7 +451,7 @@ module ModernTreasury
|
|
451
451
|
# @param line2 [String]
|
452
452
|
end
|
453
453
|
|
454
|
-
# @see ModernTreasury::Invoice#counterparty_shipping_address
|
454
|
+
# @see ModernTreasury::Models::Invoice#counterparty_shipping_address
|
455
455
|
class CounterpartyShippingAddress < ModernTreasury::Internal::Type::BaseModel
|
456
456
|
# @!attribute country
|
457
457
|
# Country code conforms to [ISO 3166-1 alpha-2]
|
@@ -503,7 +503,7 @@ module ModernTreasury
|
|
503
503
|
# @param line2 [String]
|
504
504
|
end
|
505
505
|
|
506
|
-
# @see ModernTreasury::Invoice#invoicer_address
|
506
|
+
# @see ModernTreasury::Models::Invoice#invoicer_address
|
507
507
|
class InvoicerAddress < ModernTreasury::Internal::Type::BaseModel
|
508
508
|
# @!attribute country
|
509
509
|
# Country code conforms to [ISO 3166-1 alpha-2]
|
@@ -558,7 +558,7 @@ module ModernTreasury
|
|
558
558
|
# When opening an invoice, whether to show the embedded payment UI , automatically
|
559
559
|
# debit the recipient, or rely on manual payment from the recipient.
|
560
560
|
#
|
561
|
-
# @see ModernTreasury::Invoice#payment_method
|
561
|
+
# @see ModernTreasury::Models::Invoice#payment_method
|
562
562
|
module PaymentMethod
|
563
563
|
extend ModernTreasury::Internal::Type::Enum
|
564
564
|
|
@@ -572,7 +572,7 @@ module ModernTreasury
|
|
572
572
|
|
573
573
|
# One of `ach` or `eft`.
|
574
574
|
#
|
575
|
-
# @see ModernTreasury::Invoice#payment_type
|
575
|
+
# @see ModernTreasury::Models::Invoice#payment_type
|
576
576
|
module PaymentType
|
577
577
|
extend ModernTreasury::Internal::Type::Enum
|
578
578
|
|
@@ -585,7 +585,7 @@ module ModernTreasury
|
|
585
585
|
|
586
586
|
# The status of the invoice.
|
587
587
|
#
|
588
|
-
# @see ModernTreasury::Invoice#status
|
588
|
+
# @see ModernTreasury::Models::Invoice#status
|
589
589
|
module Status
|
590
590
|
extend ModernTreasury::Internal::Type::Enum
|
591
591
|
|