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