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
|
6
6
|
class PaymentOrderCreateParams < 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::PaymentOrderCreateParams::Direction]
|
25
|
-
required :direction, enum: -> { ModernTreasury::
|
24
|
+
required :direction, enum: -> { ModernTreasury::PaymentOrderCreateParams::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::PaymentOrderCreateParams::Accounting, nil]
|
44
|
-
optional :accounting, -> { ModernTreasury::
|
45
|
-
|
46
|
-
# @!parse
|
47
|
-
# # @return [ModernTreasury::Models::PaymentOrderCreateParams::Accounting]
|
48
|
-
# attr_writer :accounting
|
43
|
+
optional :accounting, -> { ModernTreasury::PaymentOrderCreateParams::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
|
#
|
@@ -67,19 +66,13 @@ module ModernTreasury
|
|
67
66
|
# respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
|
68
67
|
#
|
69
68
|
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ChargeBearer, nil]
|
70
|
-
optional :charge_bearer,
|
71
|
-
enum: -> { ModernTreasury::Models::PaymentOrderCreateParams::ChargeBearer },
|
72
|
-
nil?: true
|
69
|
+
optional :charge_bearer, enum: -> { ModernTreasury::PaymentOrderCreateParams::ChargeBearer }, nil?: true
|
73
70
|
|
74
|
-
# @!attribute
|
71
|
+
# @!attribute currency
|
75
72
|
# Defaults to the currency of the originating account.
|
76
73
|
#
|
77
74
|
# @return [Symbol, ModernTreasury::Models::Currency, nil]
|
78
|
-
optional :currency, enum: -> { ModernTreasury::
|
79
|
-
|
80
|
-
# @!parse
|
81
|
-
# # @return [Symbol, ModernTreasury::Models::Currency]
|
82
|
-
# attr_writer :currency
|
75
|
+
optional :currency, enum: -> { ModernTreasury::Currency }
|
83
76
|
|
84
77
|
# @!attribute description
|
85
78
|
# An optional description for internal use.
|
@@ -87,19 +80,17 @@ module ModernTreasury
|
|
87
80
|
# @return [String, nil]
|
88
81
|
optional :description, String, nil?: true
|
89
82
|
|
90
|
-
# @!attribute
|
83
|
+
# @!attribute documents
|
91
84
|
# An array of documents to be attached to the payment order. Note that if you
|
92
85
|
# attach documents, the request's content type must be `multipart/form-data`.
|
93
86
|
#
|
94
87
|
# @return [Array<ModernTreasury::Models::PaymentOrderCreateParams::Document>, nil]
|
95
88
|
optional :documents,
|
96
|
-
-> {
|
89
|
+
-> {
|
90
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateParams::Document]
|
91
|
+
}
|
97
92
|
|
98
|
-
# @!
|
99
|
-
# # @return [Array<ModernTreasury::Models::PaymentOrderCreateParams::Document>]
|
100
|
-
# attr_writer :documents
|
101
|
-
|
102
|
-
# @!attribute [r] effective_date
|
93
|
+
# @!attribute effective_date
|
103
94
|
# Date transactions are to be posted to the participants' account. Defaults to the
|
104
95
|
# current business day or the next business day if the current day is a bank
|
105
96
|
# holiday or weekend. Format: yyyy-mm-dd.
|
@@ -107,27 +98,19 @@ module ModernTreasury
|
|
107
98
|
# @return [Date, nil]
|
108
99
|
optional :effective_date, Date
|
109
100
|
|
110
|
-
# @!parse
|
111
|
-
# # @return [Date]
|
112
|
-
# attr_writer :effective_date
|
113
|
-
|
114
101
|
# @!attribute expires_at
|
115
102
|
# RFP payments require an expires_at. This value must be past the effective_date.
|
116
103
|
#
|
117
104
|
# @return [Time, nil]
|
118
105
|
optional :expires_at, Time, nil?: true
|
119
106
|
|
120
|
-
# @!attribute
|
107
|
+
# @!attribute fallback_type
|
121
108
|
# A payment type to fallback to if the original type is not valid for the
|
122
109
|
# receiving account. Currently, this only supports falling back from RTP to ACH
|
123
110
|
# (type=rtp and fallback_type=ach)
|
124
111
|
#
|
125
112
|
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::FallbackType, nil]
|
126
|
-
optional :fallback_type, enum: -> { ModernTreasury::
|
127
|
-
|
128
|
-
# @!parse
|
129
|
-
# # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::FallbackType]
|
130
|
-
# attr_writer :fallback_type
|
113
|
+
optional :fallback_type, enum: -> { ModernTreasury::PaymentOrderCreateParams::FallbackType }
|
131
114
|
|
132
115
|
# @!attribute foreign_exchange_contract
|
133
116
|
# If present, indicates a specific foreign exchange contract number that has been
|
@@ -143,23 +126,19 @@ module ModernTreasury
|
|
143
126
|
#
|
144
127
|
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ForeignExchangeIndicator, nil]
|
145
128
|
optional :foreign_exchange_indicator,
|
146
|
-
enum: -> { ModernTreasury::
|
129
|
+
enum: -> { ModernTreasury::PaymentOrderCreateParams::ForeignExchangeIndicator },
|
147
130
|
nil?: true
|
148
131
|
|
149
|
-
# @!attribute
|
132
|
+
# @!attribute ledger_transaction
|
150
133
|
# Specifies a ledger transaction object that will be created with the payment
|
151
134
|
# order. If the ledger transaction cannot be created, then the payment order
|
152
135
|
# creation will fail. The resulting ledger transaction will mirror the status of
|
153
136
|
# the payment order.
|
154
137
|
#
|
155
138
|
# @return [ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction, nil]
|
156
|
-
optional :ledger_transaction, -> { ModernTreasury::
|
139
|
+
optional :ledger_transaction, -> { ModernTreasury::PaymentOrderCreateParams::LedgerTransaction }
|
157
140
|
|
158
|
-
# @!
|
159
|
-
# # @return [ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction]
|
160
|
-
# attr_writer :ledger_transaction
|
161
|
-
|
162
|
-
# @!attribute [r] ledger_transaction_id
|
141
|
+
# @!attribute ledger_transaction_id
|
163
142
|
# Either ledger_transaction or ledger_transaction_id can be provided. Only a
|
164
143
|
# pending ledger transaction can be attached upon payment order creation. Once the
|
165
144
|
# payment order is created, the status of the ledger transaction tracks the
|
@@ -168,43 +147,29 @@ module ModernTreasury
|
|
168
147
|
# @return [String, nil]
|
169
148
|
optional :ledger_transaction_id, String
|
170
149
|
|
171
|
-
# @!
|
172
|
-
# # @return [String]
|
173
|
-
# attr_writer :ledger_transaction_id
|
174
|
-
|
175
|
-
# @!attribute [r] line_items
|
150
|
+
# @!attribute line_items
|
176
151
|
# An array of line items that must sum up to the amount of the payment order.
|
177
152
|
#
|
178
153
|
# @return [Array<ModernTreasury::Models::PaymentOrderCreateParams::LineItem>, nil]
|
179
154
|
optional :line_items,
|
180
|
-
-> {
|
155
|
+
-> {
|
156
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateParams::LineItem]
|
157
|
+
}
|
181
158
|
|
182
|
-
# @!
|
183
|
-
# # @return [Array<ModernTreasury::Models::PaymentOrderCreateParams::LineItem>]
|
184
|
-
# attr_writer :line_items
|
185
|
-
|
186
|
-
# @!attribute [r] metadata
|
159
|
+
# @!attribute metadata
|
187
160
|
# Additional data represented as key-value pairs. Both the key and value must be
|
188
161
|
# strings.
|
189
162
|
#
|
190
163
|
# @return [Hash{Symbol=>String}, nil]
|
191
164
|
optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
|
192
165
|
|
193
|
-
# @!
|
194
|
-
# # @return [Hash{Symbol=>String}]
|
195
|
-
# attr_writer :metadata
|
196
|
-
|
197
|
-
# @!attribute [r] nsf_protected
|
166
|
+
# @!attribute nsf_protected
|
198
167
|
# A boolean to determine if NSF Protection is enabled for this payment order. Note
|
199
168
|
# that this setting must also be turned on in your organization settings page.
|
200
169
|
#
|
201
170
|
# @return [Boolean, nil]
|
202
171
|
optional :nsf_protected, ModernTreasury::Internal::Type::Boolean
|
203
172
|
|
204
|
-
# @!parse
|
205
|
-
# # @return [Boolean]
|
206
|
-
# attr_writer :nsf_protected
|
207
|
-
|
208
173
|
# @!attribute originating_party_name
|
209
174
|
# If present, this will replace your default company name on receiver's bank
|
210
175
|
# statement. This field can only be used for ACH payments currently. For ACH, only
|
@@ -214,17 +179,13 @@ module ModernTreasury
|
|
214
179
|
# @return [String, nil]
|
215
180
|
optional :originating_party_name, String, nil?: true
|
216
181
|
|
217
|
-
# @!attribute
|
182
|
+
# @!attribute priority
|
218
183
|
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
219
184
|
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
220
185
|
# an overnight check rather than standard mail.
|
221
186
|
#
|
222
187
|
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::Priority, nil]
|
223
|
-
optional :priority, enum: -> { ModernTreasury::
|
224
|
-
|
225
|
-
# @!parse
|
226
|
-
# # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::Priority]
|
227
|
-
# attr_writer :priority
|
188
|
+
optional :priority, enum: -> { ModernTreasury::PaymentOrderCreateParams::Priority }
|
228
189
|
|
229
190
|
# @!attribute process_after
|
230
191
|
# If present, Modern Treasury will not process the payment until after this time.
|
@@ -244,19 +205,15 @@ module ModernTreasury
|
|
244
205
|
# @return [String, nil]
|
245
206
|
optional :purpose, String, nil?: true
|
246
207
|
|
247
|
-
# @!attribute
|
208
|
+
# @!attribute receiving_account
|
248
209
|
# Either `receiving_account` or `receiving_account_id` must be present. When using
|
249
210
|
# `receiving_account_id`, you may pass the id of an external account or an
|
250
211
|
# internal account.
|
251
212
|
#
|
252
213
|
# @return [ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount, nil]
|
253
|
-
optional :receiving_account, -> { ModernTreasury::
|
254
|
-
|
255
|
-
# @!parse
|
256
|
-
# # @return [ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount]
|
257
|
-
# attr_writer :receiving_account
|
214
|
+
optional :receiving_account, -> { ModernTreasury::PaymentOrderCreateParams::ReceivingAccount }
|
258
215
|
|
259
|
-
# @!attribute
|
216
|
+
# @!attribute receiving_account_id
|
260
217
|
# Either `receiving_account` or `receiving_account_id` must be present. When using
|
261
218
|
# `receiving_account_id`, you may pass the id of an external account or an
|
262
219
|
# internal account.
|
@@ -264,10 +221,6 @@ module ModernTreasury
|
|
264
221
|
# @return [String, nil]
|
265
222
|
optional :receiving_account_id, String
|
266
223
|
|
267
|
-
# @!parse
|
268
|
-
# # @return [String]
|
269
|
-
# attr_writer :receiving_account_id
|
270
|
-
|
271
224
|
# @!attribute remittance_information
|
272
225
|
# For `ach`, this field will be passed through on an addenda record. For `wire`
|
273
226
|
# payments the field will be passed through as the "Originator to Beneficiary
|
@@ -301,19 +254,15 @@ module ModernTreasury
|
|
301
254
|
# `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
|
302
255
|
#
|
303
256
|
# @return [Symbol, ModernTreasury::Models::PaymentOrderSubtype, nil]
|
304
|
-
optional :subtype, enum: -> { ModernTreasury::
|
257
|
+
optional :subtype, enum: -> { ModernTreasury::PaymentOrderSubtype }, nil?: true
|
305
258
|
|
306
|
-
# @!attribute
|
259
|
+
# @!attribute transaction_monitoring_enabled
|
307
260
|
# A flag that determines whether a payment order should go through transaction
|
308
261
|
# monitoring.
|
309
262
|
#
|
310
263
|
# @return [Boolean, nil]
|
311
264
|
optional :transaction_monitoring_enabled, ModernTreasury::Internal::Type::Boolean
|
312
265
|
|
313
|
-
# @!parse
|
314
|
-
# # @return [Boolean]
|
315
|
-
# attr_writer :transaction_monitoring_enabled
|
316
|
-
|
317
266
|
# @!attribute ultimate_originating_party_identifier
|
318
267
|
# Identifier of the ultimate originator of the payment order.
|
319
268
|
#
|
@@ -338,89 +287,83 @@ module ModernTreasury
|
|
338
287
|
# @return [String, nil]
|
339
288
|
optional :ultimate_receiving_party_name, String, nil?: true
|
340
289
|
|
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
|
-
#
|
409
|
-
#
|
410
|
-
#
|
411
|
-
#
|
412
|
-
#
|
413
|
-
#
|
414
|
-
#
|
415
|
-
#
|
416
|
-
#
|
417
|
-
#
|
418
|
-
# **
|
419
|
-
# )
|
420
|
-
# super
|
421
|
-
# end
|
422
|
-
|
423
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
290
|
+
# @!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, documents: 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: {})
|
291
|
+
# Some parameter documentations has been truncated, see
|
292
|
+
# {ModernTreasury::Models::PaymentOrderCreateParams} for more details.
|
293
|
+
#
|
294
|
+
# @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
|
295
|
+
#
|
296
|
+
# @param direction [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::Direction] One of `credit`, `debit`. Describes the direction money is flowing in the transa
|
297
|
+
#
|
298
|
+
# @param originating_account_id [String] The ID of one of your organization's internal accounts.
|
299
|
+
#
|
300
|
+
# @param type [Symbol, ModernTreasury::Models::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sep
|
301
|
+
#
|
302
|
+
# @param accounting [ModernTreasury::Models::PaymentOrderCreateParams::Accounting]
|
303
|
+
#
|
304
|
+
# @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
|
305
|
+
#
|
306
|
+
# @param accounting_ledger_class_id [String, nil] The ID of one of your accounting ledger classes. Note that these will only be ac
|
307
|
+
#
|
308
|
+
# @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ChargeBearer, nil] The party that will pay the fees for the payment order. Only applies to wire pay
|
309
|
+
#
|
310
|
+
# @param currency [Symbol, ModernTreasury::Models::Currency] Defaults to the currency of the originating account.
|
311
|
+
#
|
312
|
+
# @param description [String, nil] An optional description for internal use.
|
313
|
+
#
|
314
|
+
# @param documents [Array<ModernTreasury::Models::PaymentOrderCreateParams::Document>] An array of documents to be attached to the payment order. Note that if you atta
|
315
|
+
#
|
316
|
+
# @param effective_date [Date] Date transactions are to be posted to the participants' account. Defaults to the
|
317
|
+
#
|
318
|
+
# @param expires_at [Time, nil] RFP payments require an expires_at. This value must be past the effective_date.
|
319
|
+
#
|
320
|
+
# @param fallback_type [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::FallbackType] A payment type to fallback to if the original type is not valid for the receivin
|
321
|
+
#
|
322
|
+
# @param foreign_exchange_contract [String, nil] If present, indicates a specific foreign exchange contract number that has been
|
323
|
+
#
|
324
|
+
# @param foreign_exchange_indicator [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ForeignExchangeIndicator, nil] Indicates the type of FX transfer to initiate, can be either `variable_to_fixed`
|
325
|
+
#
|
326
|
+
# @param ledger_transaction [ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction] Specifies a ledger transaction object that will be created with the payment orde
|
327
|
+
#
|
328
|
+
# @param ledger_transaction_id [String] Either ledger_transaction or ledger_transaction_id can be provided. Only a pendi
|
329
|
+
#
|
330
|
+
# @param line_items [Array<ModernTreasury::Models::PaymentOrderCreateParams::LineItem>] An array of line items that must sum up to the amount of the payment order.
|
331
|
+
#
|
332
|
+
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
333
|
+
#
|
334
|
+
# @param nsf_protected [Boolean] A boolean to determine if NSF Protection is enabled for this payment order. Note
|
335
|
+
#
|
336
|
+
# @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
|
337
|
+
#
|
338
|
+
# @param priority [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
|
339
|
+
#
|
340
|
+
# @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
|
341
|
+
#
|
342
|
+
# @param purpose [String, nil] For `wire`, this is usually the purpose which is transmitted via the "InstrForDb
|
343
|
+
#
|
344
|
+
# @param receiving_account [ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount] Either `receiving_account` or `receiving_account_id` must be present. When using
|
345
|
+
#
|
346
|
+
# @param receiving_account_id [String] Either `receiving_account` or `receiving_account_id` must be present. When using
|
347
|
+
#
|
348
|
+
# @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
|
349
|
+
#
|
350
|
+
# @param send_remittance_advice [Boolean, nil] Send an email to the counterparty when the payment order is sent to the bank. If
|
351
|
+
#
|
352
|
+
# @param statement_descriptor [String, nil] An optional descriptor which will appear in the receiver's statement. For `check
|
353
|
+
#
|
354
|
+
# @param subtype [Symbol, ModernTreasury::Models::PaymentOrderSubtype, nil] An additional layer of classification for the type of payment order you are doin
|
355
|
+
#
|
356
|
+
# @param transaction_monitoring_enabled [Boolean] A flag that determines whether a payment order should go through transaction mon
|
357
|
+
#
|
358
|
+
# @param ultimate_originating_party_identifier [String, nil] Identifier of the ultimate originator of the payment order.
|
359
|
+
#
|
360
|
+
# @param ultimate_originating_party_name [String, nil] Name of the ultimate originator of the payment order.
|
361
|
+
#
|
362
|
+
# @param ultimate_receiving_party_identifier [String, nil] Identifier of the ultimate funds recipient.
|
363
|
+
#
|
364
|
+
# @param ultimate_receiving_party_name [String, nil] Name of the ultimate funds recipient.
|
365
|
+
#
|
366
|
+
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
424
367
|
|
425
368
|
# One of `credit`, `debit`. Describes the direction money is flowing in the
|
426
369
|
# transaction. A `credit` moves money from your account to someone else's. A
|
@@ -432,11 +375,8 @@ module ModernTreasury
|
|
432
375
|
CREDIT = :credit
|
433
376
|
DEBIT = :debit
|
434
377
|
|
435
|
-
|
436
|
-
|
437
|
-
# @!parse
|
438
|
-
# # @return [Array<Symbol>]
|
439
|
-
# def self.values; end
|
378
|
+
# @!method self.values
|
379
|
+
# @return [Array<Symbol>]
|
440
380
|
end
|
441
381
|
|
442
382
|
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
@@ -455,13 +395,13 @@ module ModernTreasury
|
|
455
395
|
# @return [String, nil]
|
456
396
|
optional :class_id, String, nil?: true
|
457
397
|
|
458
|
-
# @!
|
459
|
-
#
|
460
|
-
#
|
461
|
-
#
|
462
|
-
#
|
463
|
-
|
464
|
-
#
|
398
|
+
# @!method initialize(account_id: nil, class_id: nil)
|
399
|
+
# Some parameter documentations has been truncated, see
|
400
|
+
# {ModernTreasury::Models::PaymentOrderCreateParams::Accounting} for more details.
|
401
|
+
#
|
402
|
+
# @param account_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
|
403
|
+
#
|
404
|
+
# @param class_id [String, nil] The ID of one of the class objects in your accounting system. Class objects trac
|
465
405
|
end
|
466
406
|
|
467
407
|
# The party that will pay the fees for the payment order. Only applies to wire
|
@@ -474,11 +414,8 @@ module ModernTreasury
|
|
474
414
|
SENDER = :sender
|
475
415
|
RECEIVER = :receiver
|
476
416
|
|
477
|
-
|
478
|
-
|
479
|
-
# @!parse
|
480
|
-
# # @return [Array<Symbol>]
|
481
|
-
# def self.values; end
|
417
|
+
# @!method self.values
|
418
|
+
# @return [Array<Symbol>]
|
482
419
|
end
|
483
420
|
|
484
421
|
class Document < ModernTreasury::Internal::Type::BaseModel
|
@@ -492,55 +429,47 @@ module ModernTreasury
|
|
492
429
|
#
|
493
430
|
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::Document::DocumentableType]
|
494
431
|
required :documentable_type,
|
495
|
-
enum: -> { ModernTreasury::
|
432
|
+
enum: -> { ModernTreasury::PaymentOrderCreateParams::Document::DocumentableType }
|
496
433
|
|
497
434
|
# @!attribute file
|
498
435
|
#
|
499
|
-
# @return [Pathname, StringIO]
|
500
|
-
required :file, ModernTreasury::Internal::Type::
|
436
|
+
# @return [Pathname, StringIO, IO, String, ModernTreasury::FilePart]
|
437
|
+
required :file, ModernTreasury::Internal::Type::FileInput
|
501
438
|
|
502
|
-
# @!attribute
|
439
|
+
# @!attribute document_type
|
503
440
|
# A category given to the document, can be `null`.
|
504
441
|
#
|
505
442
|
# @return [String, nil]
|
506
443
|
optional :document_type, String
|
507
444
|
|
508
|
-
# @!
|
509
|
-
#
|
510
|
-
#
|
511
|
-
|
512
|
-
#
|
513
|
-
#
|
514
|
-
#
|
515
|
-
#
|
516
|
-
# # @param document_type [String]
|
517
|
-
# #
|
518
|
-
# def initialize(documentable_id:, documentable_type:, file:, document_type: nil, **) = super
|
519
|
-
|
520
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
445
|
+
# @!method initialize(documentable_id:, documentable_type:, file:, document_type: nil)
|
446
|
+
# @param documentable_id [String] The unique identifier for the associated object.
|
447
|
+
#
|
448
|
+
# @param documentable_type [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::Document::DocumentableType]
|
449
|
+
#
|
450
|
+
# @param file [Pathname, StringIO, IO, String, ModernTreasury::FilePart]
|
451
|
+
#
|
452
|
+
# @param document_type [String] A category given to the document, can be `null`.
|
521
453
|
|
522
454
|
# @see ModernTreasury::Models::PaymentOrderCreateParams::Document#documentable_type
|
523
455
|
module DocumentableType
|
524
456
|
extend ModernTreasury::Internal::Type::Enum
|
525
457
|
|
526
|
-
CASES = :cases
|
527
458
|
COUNTERPARTIES = :counterparties
|
528
459
|
EXPECTED_PAYMENTS = :expected_payments
|
529
460
|
EXTERNAL_ACCOUNTS = :external_accounts
|
461
|
+
IDENTIFICATIONS = :identifications
|
530
462
|
INCOMING_PAYMENT_DETAILS = :incoming_payment_details
|
531
463
|
INTERNAL_ACCOUNTS = :internal_accounts
|
532
464
|
ORGANIZATIONS = :organizations
|
533
465
|
PAPER_ITEMS = :paper_items
|
534
466
|
PAYMENT_ORDERS = :payment_orders
|
535
467
|
TRANSACTIONS = :transactions
|
536
|
-
DECISIONS = :decisions
|
537
468
|
CONNECTIONS = :connections
|
469
|
+
CONVERSATIONS = :conversations
|
538
470
|
|
539
|
-
|
540
|
-
|
541
|
-
# @!parse
|
542
|
-
# # @return [Array<Symbol>]
|
543
|
-
# def self.values; end
|
471
|
+
# @!method self.values
|
472
|
+
# @return [Array<Symbol>]
|
544
473
|
end
|
545
474
|
end
|
546
475
|
|
@@ -552,11 +481,8 @@ module ModernTreasury
|
|
552
481
|
|
553
482
|
ACH = :ach
|
554
483
|
|
555
|
-
|
556
|
-
|
557
|
-
# @!parse
|
558
|
-
# # @return [Array<Symbol>]
|
559
|
-
# def self.values; end
|
484
|
+
# @!method self.values
|
485
|
+
# @return [Array<Symbol>]
|
560
486
|
end
|
561
487
|
|
562
488
|
# Indicates the type of FX transfer to initiate, can be either
|
@@ -568,11 +494,8 @@ module ModernTreasury
|
|
568
494
|
FIXED_TO_VARIABLE = :fixed_to_variable
|
569
495
|
VARIABLE_TO_FIXED = :variable_to_fixed
|
570
496
|
|
571
|
-
|
572
|
-
|
573
|
-
# @!parse
|
574
|
-
# # @return [Array<Symbol>]
|
575
|
-
# def self.values; end
|
497
|
+
# @!method self.values
|
498
|
+
# @return [Array<Symbol>]
|
576
499
|
end
|
577
500
|
|
578
501
|
class LedgerTransaction < ModernTreasury::Internal::Type::BaseModel
|
@@ -581,7 +504,9 @@ module ModernTreasury
|
|
581
504
|
#
|
582
505
|
# @return [Array<ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction::LedgerEntry>]
|
583
506
|
required :ledger_entries,
|
584
|
-
-> {
|
507
|
+
-> {
|
508
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateParams::LedgerTransaction::LedgerEntry]
|
509
|
+
}
|
585
510
|
|
586
511
|
# @!attribute description
|
587
512
|
# An optional description for internal use.
|
@@ -589,51 +514,35 @@ module ModernTreasury
|
|
589
514
|
# @return [String, nil]
|
590
515
|
optional :description, String, nil?: true
|
591
516
|
|
592
|
-
# @!attribute
|
517
|
+
# @!attribute effective_at
|
593
518
|
# The timestamp (ISO8601 format) at which the ledger transaction happened for
|
594
519
|
# reporting purposes.
|
595
520
|
#
|
596
521
|
# @return [Time, nil]
|
597
522
|
optional :effective_at, Time
|
598
523
|
|
599
|
-
# @!
|
600
|
-
# # @return [Time]
|
601
|
-
# attr_writer :effective_at
|
602
|
-
|
603
|
-
# @!attribute [r] effective_date
|
524
|
+
# @!attribute effective_date
|
604
525
|
# The date (YYYY-MM-DD) on which the ledger transaction happened for reporting
|
605
526
|
# purposes.
|
606
527
|
#
|
607
528
|
# @return [Date, nil]
|
608
529
|
optional :effective_date, Date
|
609
530
|
|
610
|
-
# @!
|
611
|
-
# # @return [Date]
|
612
|
-
# attr_writer :effective_date
|
613
|
-
|
614
|
-
# @!attribute [r] external_id
|
531
|
+
# @!attribute external_id
|
615
532
|
# A unique string to represent the ledger transaction. Only one pending or posted
|
616
533
|
# ledger transaction may have this ID in the ledger.
|
617
534
|
#
|
618
535
|
# @return [String, nil]
|
619
536
|
optional :external_id, String
|
620
537
|
|
621
|
-
# @!
|
622
|
-
# # @return [String]
|
623
|
-
# attr_writer :external_id
|
624
|
-
|
625
|
-
# @!attribute [r] ledgerable_id
|
538
|
+
# @!attribute ledgerable_id
|
626
539
|
# If the ledger transaction can be reconciled to another object in Modern
|
627
540
|
# Treasury, the id will be populated here, otherwise null.
|
628
541
|
#
|
629
542
|
# @return [String, nil]
|
630
543
|
optional :ledgerable_id, String
|
631
544
|
|
632
|
-
# @!
|
633
|
-
# # @return [String]
|
634
|
-
# attr_writer :ledgerable_id
|
635
|
-
|
636
|
-
# @!attribute [r] ledgerable_type
|
545
|
+
# @!attribute ledgerable_type
|
637
546
|
# If the ledger transaction can be reconciled to another object in Modern
|
638
547
|
# Treasury, the type will be populated here, otherwise null. This can be one of
|
639
548
|
# payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
|
@@ -641,65 +550,48 @@ module ModernTreasury
|
|
641
550
|
#
|
642
551
|
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction::LedgerableType, nil]
|
643
552
|
optional :ledgerable_type,
|
644
|
-
enum: -> { ModernTreasury::
|
645
|
-
|
646
|
-
# @!parse
|
647
|
-
# # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction::LedgerableType]
|
648
|
-
# attr_writer :ledgerable_type
|
553
|
+
enum: -> { ModernTreasury::PaymentOrderCreateParams::LedgerTransaction::LedgerableType }
|
649
554
|
|
650
|
-
# @!attribute
|
555
|
+
# @!attribute metadata
|
651
556
|
# Additional data represented as key-value pairs. Both the key and value must be
|
652
557
|
# strings.
|
653
558
|
#
|
654
559
|
# @return [Hash{Symbol=>String}, nil]
|
655
560
|
optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
|
656
561
|
|
657
|
-
# @!
|
658
|
-
# # @return [Hash{Symbol=>String}]
|
659
|
-
# attr_writer :metadata
|
660
|
-
|
661
|
-
# @!attribute [r] status
|
562
|
+
# @!attribute status
|
662
563
|
# To post a ledger transaction at creation, use `posted`.
|
663
564
|
#
|
664
565
|
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction::Status, nil]
|
665
|
-
optional :status, enum: -> { ModernTreasury::
|
666
|
-
|
667
|
-
# @!
|
668
|
-
#
|
669
|
-
#
|
670
|
-
|
671
|
-
#
|
672
|
-
#
|
673
|
-
#
|
674
|
-
#
|
675
|
-
#
|
676
|
-
#
|
677
|
-
#
|
678
|
-
#
|
679
|
-
#
|
680
|
-
#
|
681
|
-
#
|
682
|
-
#
|
683
|
-
#
|
684
|
-
#
|
685
|
-
#
|
686
|
-
#
|
687
|
-
#
|
688
|
-
#
|
689
|
-
#
|
690
|
-
#
|
691
|
-
#
|
692
|
-
#
|
693
|
-
#
|
694
|
-
# ledgerable_type: nil,
|
695
|
-
# metadata: nil,
|
696
|
-
# status: nil,
|
697
|
-
# **
|
698
|
-
# )
|
699
|
-
# super
|
700
|
-
# end
|
701
|
-
|
702
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
566
|
+
optional :status, enum: -> { ModernTreasury::PaymentOrderCreateParams::LedgerTransaction::Status }
|
567
|
+
|
568
|
+
# @!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)
|
569
|
+
# Some parameter documentations has been truncated, see
|
570
|
+
# {ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction} for more
|
571
|
+
# details.
|
572
|
+
#
|
573
|
+
# Specifies a ledger transaction object that will be created with the payment
|
574
|
+
# order. If the ledger transaction cannot be created, then the payment order
|
575
|
+
# creation will fail. The resulting ledger transaction will mirror the status of
|
576
|
+
# the payment order.
|
577
|
+
#
|
578
|
+
# @param ledger_entries [Array<ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction::LedgerEntry>] An array of ledger entry objects.
|
579
|
+
#
|
580
|
+
# @param description [String, nil] An optional description for internal use.
|
581
|
+
#
|
582
|
+
# @param effective_at [Time] The timestamp (ISO8601 format) at which the ledger transaction happened for repo
|
583
|
+
#
|
584
|
+
# @param effective_date [Date] The date (YYYY-MM-DD) on which the ledger transaction happened for reporting pur
|
585
|
+
#
|
586
|
+
# @param external_id [String] A unique string to represent the ledger transaction. Only one pending or posted
|
587
|
+
#
|
588
|
+
# @param ledgerable_id [String] If the ledger transaction can be reconciled to another object in Modern Treasury
|
589
|
+
#
|
590
|
+
# @param ledgerable_type [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction::LedgerableType] If the ledger transaction can be reconciled to another object in Modern Treasury
|
591
|
+
#
|
592
|
+
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
593
|
+
#
|
594
|
+
# @param status [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction::Status] To post a ledger transaction at creation, use `posted`.
|
703
595
|
|
704
596
|
class LedgerEntry < ModernTreasury::Internal::Type::BaseModel
|
705
597
|
# @!attribute amount
|
@@ -716,7 +608,7 @@ module ModernTreasury
|
|
716
608
|
# rtp, and check payments will always be `credit`.
|
717
609
|
#
|
718
610
|
# @return [Symbol, ModernTreasury::Models::TransactionDirection]
|
719
|
-
required :direction, enum: -> { ModernTreasury::
|
611
|
+
required :direction, enum: -> { ModernTreasury::TransactionDirection }
|
720
612
|
|
721
613
|
# @!attribute ledger_account_id
|
722
614
|
# The ledger account that this ledger entry is associated with.
|
@@ -741,17 +633,13 @@ module ModernTreasury
|
|
741
633
|
# @return [Integer, nil]
|
742
634
|
optional :lock_version, Integer, nil?: true
|
743
635
|
|
744
|
-
# @!attribute
|
636
|
+
# @!attribute metadata
|
745
637
|
# Additional data represented as key-value pairs. Both the key and value must be
|
746
638
|
# strings.
|
747
639
|
#
|
748
640
|
# @return [Hash{Symbol=>String}, nil]
|
749
641
|
optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
|
750
642
|
|
751
|
-
# @!parse
|
752
|
-
# # @return [Hash{Symbol=>String}]
|
753
|
-
# attr_writer :metadata
|
754
|
-
|
755
643
|
# @!attribute pending_balance_amount
|
756
644
|
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
|
757
645
|
# account’s pending balance. If any of these conditions would be false after the
|
@@ -777,33 +665,28 @@ module ModernTreasury
|
|
777
665
|
ModernTreasury::Internal::Type::Boolean,
|
778
666
|
nil?: true
|
779
667
|
|
780
|
-
# @!
|
781
|
-
#
|
782
|
-
#
|
783
|
-
#
|
784
|
-
#
|
785
|
-
#
|
786
|
-
#
|
787
|
-
#
|
788
|
-
#
|
789
|
-
#
|
790
|
-
#
|
791
|
-
#
|
792
|
-
#
|
793
|
-
#
|
794
|
-
#
|
795
|
-
#
|
796
|
-
#
|
797
|
-
#
|
798
|
-
#
|
799
|
-
#
|
800
|
-
#
|
801
|
-
#
|
802
|
-
# )
|
803
|
-
# super
|
804
|
-
# end
|
805
|
-
|
806
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
668
|
+
# @!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)
|
669
|
+
# Some parameter documentations has been truncated, see
|
670
|
+
# {ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction::LedgerEntry}
|
671
|
+
# for more details.
|
672
|
+
#
|
673
|
+
# @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
|
674
|
+
#
|
675
|
+
# @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of `credit`, `debit`. Describes the direction money is flowing in the transa
|
676
|
+
#
|
677
|
+
# @param ledger_account_id [String] The ledger account that this ledger entry is associated with.
|
678
|
+
#
|
679
|
+
# @param available_balance_amount [Hash{Symbol=>Integer}, nil] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the accou
|
680
|
+
#
|
681
|
+
# @param lock_version [Integer, nil] Lock version of the ledger account. This can be passed when creating a ledger tr
|
682
|
+
#
|
683
|
+
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
684
|
+
#
|
685
|
+
# @param pending_balance_amount [Hash{Symbol=>Integer}, nil] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the accou
|
686
|
+
#
|
687
|
+
# @param posted_balance_amount [Hash{Symbol=>Integer}, nil] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the accou
|
688
|
+
#
|
689
|
+
# @param show_resulting_ledger_account_balances [Boolean, nil] If true, response will include the balance of the associated ledger account for
|
807
690
|
end
|
808
691
|
|
809
692
|
# If the ledger transaction can be reconciled to another object in Modern
|
@@ -822,11 +705,8 @@ module ModernTreasury
|
|
822
705
|
RETURN = :return
|
823
706
|
REVERSAL = :reversal
|
824
707
|
|
825
|
-
|
826
|
-
|
827
|
-
# @!parse
|
828
|
-
# # @return [Array<Symbol>]
|
829
|
-
# def self.values; end
|
708
|
+
# @!method self.values
|
709
|
+
# @return [Array<Symbol>]
|
830
710
|
end
|
831
711
|
|
832
712
|
# To post a ledger transaction at creation, use `posted`.
|
@@ -839,11 +719,8 @@ module ModernTreasury
|
|
839
719
|
PENDING = :pending
|
840
720
|
POSTED = :posted
|
841
721
|
|
842
|
-
|
843
|
-
|
844
|
-
# @!parse
|
845
|
-
# # @return [Array<Symbol>]
|
846
|
-
# def self.values; end
|
722
|
+
# @!method self.values
|
723
|
+
# @return [Array<Symbol>]
|
847
724
|
end
|
848
725
|
end
|
849
726
|
|
@@ -868,26 +745,24 @@ module ModernTreasury
|
|
868
745
|
# @return [String, nil]
|
869
746
|
optional :description, String, nil?: true
|
870
747
|
|
871
|
-
# @!attribute
|
748
|
+
# @!attribute metadata
|
872
749
|
# Additional data represented as key-value pairs. Both the key and value must be
|
873
750
|
# strings.
|
874
751
|
#
|
875
752
|
# @return [Hash{Symbol=>String}, nil]
|
876
753
|
optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
|
877
754
|
|
878
|
-
# @!
|
879
|
-
#
|
880
|
-
#
|
881
|
-
|
882
|
-
#
|
883
|
-
#
|
884
|
-
#
|
885
|
-
#
|
886
|
-
#
|
887
|
-
#
|
888
|
-
#
|
889
|
-
|
890
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
755
|
+
# @!method initialize(amount:, accounting_category_id: nil, description: nil, metadata: nil)
|
756
|
+
# Some parameter documentations has been truncated, see
|
757
|
+
# {ModernTreasury::Models::PaymentOrderCreateParams::LineItem} for more details.
|
758
|
+
#
|
759
|
+
# @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
|
760
|
+
#
|
761
|
+
# @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
|
762
|
+
#
|
763
|
+
# @param description [String, nil] A free-form description of the line item.
|
764
|
+
#
|
765
|
+
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
891
766
|
end
|
892
767
|
|
893
768
|
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
@@ -899,45 +774,34 @@ module ModernTreasury
|
|
899
774
|
HIGH = :high
|
900
775
|
NORMAL = :normal
|
901
776
|
|
902
|
-
|
903
|
-
|
904
|
-
# @!parse
|
905
|
-
# # @return [Array<Symbol>]
|
906
|
-
# def self.values; end
|
777
|
+
# @!method self.values
|
778
|
+
# @return [Array<Symbol>]
|
907
779
|
end
|
908
780
|
|
909
781
|
class ReceivingAccount < ModernTreasury::Internal::Type::BaseModel
|
910
|
-
# @!attribute
|
782
|
+
# @!attribute account_details
|
911
783
|
#
|
912
784
|
# @return [Array<ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::AccountDetail>, nil]
|
913
785
|
optional :account_details,
|
914
|
-
-> {
|
915
|
-
|
916
|
-
|
917
|
-
# # @return [Array<ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::AccountDetail>]
|
918
|
-
# attr_writer :account_details
|
786
|
+
-> {
|
787
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::AccountDetail]
|
788
|
+
}
|
919
789
|
|
920
|
-
# @!attribute
|
790
|
+
# @!attribute account_type
|
921
791
|
# Can be `checking`, `savings` or `other`.
|
922
792
|
#
|
923
793
|
# @return [Symbol, ModernTreasury::Models::ExternalAccountType, nil]
|
924
|
-
optional :account_type, enum: -> { ModernTreasury::
|
794
|
+
optional :account_type, enum: -> { ModernTreasury::ExternalAccountType }
|
925
795
|
|
926
|
-
# @!
|
927
|
-
# # @return [Symbol, ModernTreasury::Models::ExternalAccountType]
|
928
|
-
# attr_writer :account_type
|
929
|
-
|
930
|
-
# @!attribute [r] contact_details
|
796
|
+
# @!attribute contact_details
|
931
797
|
#
|
932
798
|
# @return [Array<ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::ContactDetail>, nil]
|
933
799
|
optional :contact_details,
|
934
|
-
-> {
|
935
|
-
|
936
|
-
|
937
|
-
# # @return [Array<ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::ContactDetail>]
|
938
|
-
# attr_writer :contact_details
|
800
|
+
-> {
|
801
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::ContactDetail]
|
802
|
+
}
|
939
803
|
|
940
|
-
# @!attribute
|
804
|
+
# @!attribute ledger_account
|
941
805
|
# Specifies a ledger account object that will be created with the external
|
942
806
|
# account. The resulting ledger account is linked to the external account for
|
943
807
|
# auto-ledgering Payment objects. See
|
@@ -946,23 +810,17 @@ module ModernTreasury
|
|
946
810
|
#
|
947
811
|
# @return [ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount, nil]
|
948
812
|
optional :ledger_account,
|
949
|
-
-> {
|
950
|
-
|
951
|
-
|
952
|
-
# # @return [ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount]
|
953
|
-
# attr_writer :ledger_account
|
813
|
+
-> {
|
814
|
+
ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount
|
815
|
+
}
|
954
816
|
|
955
|
-
# @!attribute
|
817
|
+
# @!attribute metadata
|
956
818
|
# Additional data represented as key-value pairs. Both the key and value must be
|
957
819
|
# strings.
|
958
820
|
#
|
959
821
|
# @return [Hash{Symbol=>String}, nil]
|
960
822
|
optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
|
961
823
|
|
962
|
-
# @!parse
|
963
|
-
# # @return [Hash{Symbol=>String}]
|
964
|
-
# attr_writer :metadata
|
965
|
-
|
966
824
|
# @!attribute name
|
967
825
|
# A nickname for the external account. This is only for internal usage and won't
|
968
826
|
# affect any payments
|
@@ -970,102 +828,81 @@ module ModernTreasury
|
|
970
828
|
# @return [String, nil]
|
971
829
|
optional :name, String, nil?: true
|
972
830
|
|
973
|
-
# @!attribute
|
831
|
+
# @!attribute party_address
|
974
832
|
# Required if receiving wire payments.
|
975
833
|
#
|
976
834
|
# @return [ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::PartyAddress, nil]
|
977
835
|
optional :party_address,
|
978
|
-
-> {
|
979
|
-
|
980
|
-
|
981
|
-
# # @return [ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::PartyAddress]
|
982
|
-
# attr_writer :party_address
|
836
|
+
-> {
|
837
|
+
ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::PartyAddress
|
838
|
+
}
|
983
839
|
|
984
|
-
# @!attribute
|
840
|
+
# @!attribute party_identifier
|
985
841
|
#
|
986
842
|
# @return [String, nil]
|
987
843
|
optional :party_identifier, String
|
988
844
|
|
989
|
-
# @!
|
990
|
-
# # @return [String]
|
991
|
-
# attr_writer :party_identifier
|
992
|
-
|
993
|
-
# @!attribute [r] party_name
|
845
|
+
# @!attribute party_name
|
994
846
|
# If this value isn't provided, it will be inherited from the counterparty's name.
|
995
847
|
#
|
996
848
|
# @return [String, nil]
|
997
849
|
optional :party_name, String
|
998
850
|
|
999
|
-
# @!parse
|
1000
|
-
# # @return [String]
|
1001
|
-
# attr_writer :party_name
|
1002
|
-
|
1003
851
|
# @!attribute party_type
|
1004
852
|
# Either `individual` or `business`.
|
1005
853
|
#
|
1006
854
|
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::PartyType, nil]
|
1007
855
|
optional :party_type,
|
1008
|
-
enum: -> { ModernTreasury::
|
856
|
+
enum: -> { ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::PartyType },
|
1009
857
|
nil?: true
|
1010
858
|
|
1011
|
-
# @!attribute
|
859
|
+
# @!attribute plaid_processor_token
|
1012
860
|
# If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
|
1013
861
|
# you can pass the processor token in this field.
|
1014
862
|
#
|
1015
863
|
# @return [String, nil]
|
1016
864
|
optional :plaid_processor_token, String
|
1017
865
|
|
1018
|
-
# @!
|
1019
|
-
# # @return [String]
|
1020
|
-
# attr_writer :plaid_processor_token
|
1021
|
-
|
1022
|
-
# @!attribute [r] routing_details
|
866
|
+
# @!attribute routing_details
|
1023
867
|
#
|
1024
868
|
# @return [Array<ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail>, nil]
|
1025
869
|
optional :routing_details,
|
1026
|
-
-> {
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
#
|
1031
|
-
|
1032
|
-
#
|
1033
|
-
#
|
1034
|
-
#
|
1035
|
-
#
|
1036
|
-
#
|
1037
|
-
#
|
1038
|
-
#
|
1039
|
-
#
|
1040
|
-
#
|
1041
|
-
#
|
1042
|
-
#
|
1043
|
-
#
|
1044
|
-
#
|
1045
|
-
#
|
1046
|
-
#
|
1047
|
-
#
|
1048
|
-
#
|
1049
|
-
#
|
1050
|
-
#
|
1051
|
-
#
|
1052
|
-
#
|
1053
|
-
#
|
1054
|
-
#
|
1055
|
-
#
|
1056
|
-
#
|
1057
|
-
#
|
1058
|
-
#
|
1059
|
-
#
|
1060
|
-
#
|
1061
|
-
#
|
1062
|
-
# routing_details: nil,
|
1063
|
-
# **
|
1064
|
-
# )
|
1065
|
-
# super
|
1066
|
-
# end
|
1067
|
-
|
1068
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
870
|
+
-> {
|
871
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail]
|
872
|
+
}
|
873
|
+
|
874
|
+
# @!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)
|
875
|
+
# Some parameter documentations has been truncated, see
|
876
|
+
# {ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount} for more
|
877
|
+
# details.
|
878
|
+
#
|
879
|
+
# Either `receiving_account` or `receiving_account_id` must be present. When using
|
880
|
+
# `receiving_account_id`, you may pass the id of an external account or an
|
881
|
+
# internal account.
|
882
|
+
#
|
883
|
+
# @param account_details [Array<ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::AccountDetail>]
|
884
|
+
#
|
885
|
+
# @param account_type [Symbol, ModernTreasury::Models::ExternalAccountType] Can be `checking`, `savings` or `other`.
|
886
|
+
#
|
887
|
+
# @param contact_details [Array<ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::ContactDetail>]
|
888
|
+
#
|
889
|
+
# @param ledger_account [ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount] Specifies a ledger account object that will be created with the external account
|
890
|
+
#
|
891
|
+
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
892
|
+
#
|
893
|
+
# @param name [String, nil] A nickname for the external account. This is only for internal usage and won't a
|
894
|
+
#
|
895
|
+
# @param party_address [ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::PartyAddress] Required if receiving wire payments.
|
896
|
+
#
|
897
|
+
# @param party_identifier [String]
|
898
|
+
#
|
899
|
+
# @param party_name [String] If this value isn't provided, it will be inherited from the counterparty's name.
|
900
|
+
#
|
901
|
+
# @param party_type [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::PartyType, nil] Either `individual` or `business`.
|
902
|
+
#
|
903
|
+
# @param plaid_processor_token [String] If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
|
904
|
+
#
|
905
|
+
# @param routing_details [Array<ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail>]
|
1069
906
|
|
1070
907
|
class AccountDetail < ModernTreasury::Internal::Type::BaseModel
|
1071
908
|
# @!attribute account_number
|
@@ -1073,74 +910,59 @@ module ModernTreasury
|
|
1073
910
|
# @return [String]
|
1074
911
|
required :account_number, String
|
1075
912
|
|
1076
|
-
# @!attribute
|
913
|
+
# @!attribute account_number_type
|
1077
914
|
#
|
1078
915
|
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::AccountDetail::AccountNumberType, nil]
|
1079
916
|
optional :account_number_type,
|
1080
|
-
enum: -> {
|
1081
|
-
|
1082
|
-
|
1083
|
-
# # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::AccountDetail::AccountNumberType]
|
1084
|
-
# attr_writer :account_number_type
|
1085
|
-
|
1086
|
-
# @!parse
|
1087
|
-
# # @param account_number [String]
|
1088
|
-
# # @param account_number_type [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::AccountDetail::AccountNumberType]
|
1089
|
-
# #
|
1090
|
-
# def initialize(account_number:, account_number_type: nil, **) = super
|
917
|
+
enum: -> {
|
918
|
+
ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::AccountDetail::AccountNumberType
|
919
|
+
}
|
1091
920
|
|
1092
|
-
#
|
921
|
+
# @!method initialize(account_number:, account_number_type: nil)
|
922
|
+
# @param account_number [String]
|
923
|
+
# @param account_number_type [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::AccountDetail::AccountNumberType]
|
1093
924
|
|
1094
925
|
# @see ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::AccountDetail#account_number_type
|
1095
926
|
module AccountNumberType
|
1096
927
|
extend ModernTreasury::Internal::Type::Enum
|
1097
928
|
|
1098
929
|
AU_NUMBER = :au_number
|
930
|
+
BASE_ADDRESS = :base_address
|
1099
931
|
CLABE = :clabe
|
932
|
+
ETHEREUM_ADDRESS = :ethereum_address
|
1100
933
|
HK_NUMBER = :hk_number
|
1101
934
|
IBAN = :iban
|
1102
935
|
ID_NUMBER = :id_number
|
1103
936
|
NZ_NUMBER = :nz_number
|
1104
937
|
OTHER = :other
|
1105
938
|
PAN = :pan
|
939
|
+
POLYGON_ADDRESS = :polygon_address
|
1106
940
|
SG_NUMBER = :sg_number
|
941
|
+
SOLANA_ADDRESS = :solana_address
|
1107
942
|
WALLET_ADDRESS = :wallet_address
|
1108
943
|
|
1109
|
-
|
1110
|
-
|
1111
|
-
# @!parse
|
1112
|
-
# # @return [Array<Symbol>]
|
1113
|
-
# def self.values; end
|
944
|
+
# @!method self.values
|
945
|
+
# @return [Array<Symbol>]
|
1114
946
|
end
|
1115
947
|
end
|
1116
948
|
|
1117
949
|
class ContactDetail < ModernTreasury::Internal::Type::BaseModel
|
1118
|
-
# @!attribute
|
950
|
+
# @!attribute contact_identifier
|
1119
951
|
#
|
1120
952
|
# @return [String, nil]
|
1121
953
|
optional :contact_identifier, String
|
1122
954
|
|
1123
|
-
# @!
|
1124
|
-
# # @return [String]
|
1125
|
-
# attr_writer :contact_identifier
|
1126
|
-
|
1127
|
-
# @!attribute [r] contact_identifier_type
|
955
|
+
# @!attribute contact_identifier_type
|
1128
956
|
#
|
1129
957
|
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::ContactDetail::ContactIdentifierType, nil]
|
1130
958
|
optional :contact_identifier_type,
|
1131
|
-
enum: -> {
|
959
|
+
enum: -> {
|
960
|
+
ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::ContactDetail::ContactIdentifierType
|
961
|
+
}
|
1132
962
|
|
1133
|
-
# @!
|
1134
|
-
#
|
1135
|
-
#
|
1136
|
-
|
1137
|
-
# @!parse
|
1138
|
-
# # @param contact_identifier [String]
|
1139
|
-
# # @param contact_identifier_type [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::ContactDetail::ContactIdentifierType]
|
1140
|
-
# #
|
1141
|
-
# def initialize(contact_identifier: nil, contact_identifier_type: nil, **) = super
|
1142
|
-
|
1143
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
963
|
+
# @!method initialize(contact_identifier: nil, contact_identifier_type: nil)
|
964
|
+
# @param contact_identifier [String]
|
965
|
+
# @param contact_identifier_type [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::ContactDetail::ContactIdentifierType]
|
1144
966
|
|
1145
967
|
# @see ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::ContactDetail#contact_identifier_type
|
1146
968
|
module ContactIdentifierType
|
@@ -1150,11 +972,8 @@ module ModernTreasury
|
|
1150
972
|
PHONE_NUMBER = :phone_number
|
1151
973
|
WEBSITE = :website
|
1152
974
|
|
1153
|
-
|
1154
|
-
|
1155
|
-
# @!parse
|
1156
|
-
# # @return [Array<Symbol>]
|
1157
|
-
# def self.values; end
|
975
|
+
# @!method self.values
|
976
|
+
# @return [Array<Symbol>]
|
1158
977
|
end
|
1159
978
|
end
|
1160
979
|
|
@@ -1182,7 +1001,7 @@ module ModernTreasury
|
|
1182
1001
|
# The normal balance of the ledger account.
|
1183
1002
|
#
|
1184
1003
|
# @return [Symbol, ModernTreasury::Models::TransactionDirection]
|
1185
|
-
required :normal_balance, enum: -> { ModernTreasury::
|
1004
|
+
required :normal_balance, enum: -> { ModernTreasury::TransactionDirection }
|
1186
1005
|
|
1187
1006
|
# @!attribute currency_exponent
|
1188
1007
|
# The currency exponent of the ledger account.
|
@@ -1196,87 +1015,68 @@ module ModernTreasury
|
|
1196
1015
|
# @return [String, nil]
|
1197
1016
|
optional :description, String, nil?: true
|
1198
1017
|
|
1199
|
-
# @!attribute
|
1018
|
+
# @!attribute ledger_account_category_ids
|
1200
1019
|
# The array of ledger account category ids that this ledger account should be a
|
1201
1020
|
# child of.
|
1202
1021
|
#
|
1203
1022
|
# @return [Array<String>, nil]
|
1204
1023
|
optional :ledger_account_category_ids, ModernTreasury::Internal::Type::ArrayOf[String]
|
1205
1024
|
|
1206
|
-
# @!
|
1207
|
-
# # @return [Array<String>]
|
1208
|
-
# attr_writer :ledger_account_category_ids
|
1209
|
-
|
1210
|
-
# @!attribute [r] ledgerable_id
|
1025
|
+
# @!attribute ledgerable_id
|
1211
1026
|
# If the ledger account links to another object in Modern Treasury, the id will be
|
1212
1027
|
# populated here, otherwise null.
|
1213
1028
|
#
|
1214
1029
|
# @return [String, nil]
|
1215
1030
|
optional :ledgerable_id, String
|
1216
1031
|
|
1217
|
-
# @!
|
1218
|
-
# # @return [String]
|
1219
|
-
# attr_writer :ledgerable_id
|
1220
|
-
|
1221
|
-
# @!attribute [r] ledgerable_type
|
1032
|
+
# @!attribute ledgerable_type
|
1222
1033
|
# If the ledger account links to another object in Modern Treasury, the type will
|
1223
1034
|
# be populated here, otherwise null. The value is one of internal_account or
|
1224
1035
|
# external_account.
|
1225
1036
|
#
|
1226
1037
|
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount::LedgerableType, nil]
|
1227
1038
|
optional :ledgerable_type,
|
1228
|
-
enum: -> {
|
1039
|
+
enum: -> {
|
1040
|
+
ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount::LedgerableType
|
1041
|
+
}
|
1229
1042
|
|
1230
|
-
# @!
|
1231
|
-
# # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount::LedgerableType]
|
1232
|
-
# attr_writer :ledgerable_type
|
1233
|
-
|
1234
|
-
# @!attribute [r] metadata
|
1043
|
+
# @!attribute metadata
|
1235
1044
|
# Additional data represented as key-value pairs. Both the key and value must be
|
1236
1045
|
# strings.
|
1237
1046
|
#
|
1238
1047
|
# @return [Hash{Symbol=>String}, nil]
|
1239
1048
|
optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
|
1240
1049
|
|
1241
|
-
# @!
|
1242
|
-
#
|
1243
|
-
#
|
1244
|
-
|
1245
|
-
#
|
1246
|
-
#
|
1247
|
-
#
|
1248
|
-
#
|
1249
|
-
#
|
1250
|
-
#
|
1251
|
-
#
|
1252
|
-
#
|
1253
|
-
#
|
1254
|
-
#
|
1255
|
-
#
|
1256
|
-
#
|
1257
|
-
#
|
1258
|
-
#
|
1259
|
-
#
|
1260
|
-
#
|
1261
|
-
#
|
1262
|
-
#
|
1263
|
-
#
|
1264
|
-
#
|
1265
|
-
#
|
1266
|
-
#
|
1267
|
-
#
|
1268
|
-
#
|
1269
|
-
#
|
1270
|
-
#
|
1271
|
-
# ledgerable_id: nil,
|
1272
|
-
# ledgerable_type: nil,
|
1273
|
-
# metadata: nil,
|
1274
|
-
# **
|
1275
|
-
# )
|
1276
|
-
# super
|
1277
|
-
# end
|
1278
|
-
|
1279
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
1050
|
+
# @!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)
|
1051
|
+
# Some parameter documentations has been truncated, see
|
1052
|
+
# {ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount}
|
1053
|
+
# for more details.
|
1054
|
+
#
|
1055
|
+
# Specifies a ledger account object that will be created with the external
|
1056
|
+
# account. The resulting ledger account is linked to the external account for
|
1057
|
+
# auto-ledgering Payment objects. See
|
1058
|
+
# https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
|
1059
|
+
# for more details.
|
1060
|
+
#
|
1061
|
+
# @param currency [String] The currency of the ledger account.
|
1062
|
+
#
|
1063
|
+
# @param ledger_id [String] The id of the ledger that this account belongs to.
|
1064
|
+
#
|
1065
|
+
# @param name [String] The name of the ledger account.
|
1066
|
+
#
|
1067
|
+
# @param normal_balance [Symbol, ModernTreasury::Models::TransactionDirection] The normal balance of the ledger account.
|
1068
|
+
#
|
1069
|
+
# @param currency_exponent [Integer, nil] The currency exponent of the ledger account.
|
1070
|
+
#
|
1071
|
+
# @param description [String, nil] The description of the ledger account.
|
1072
|
+
#
|
1073
|
+
# @param ledger_account_category_ids [Array<String>] The array of ledger account category ids that this ledger account should be a ch
|
1074
|
+
#
|
1075
|
+
# @param ledgerable_id [String] If the ledger account links to another object in Modern Treasury, the id will be
|
1076
|
+
#
|
1077
|
+
# @param ledgerable_type [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount::LedgerableType] If the ledger account links to another object in Modern Treasury, the type will
|
1078
|
+
#
|
1079
|
+
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
1280
1080
|
|
1281
1081
|
# If the ledger account links to another object in Modern Treasury, the type will
|
1282
1082
|
# be populated here, otherwise null. The value is one of internal_account or
|
@@ -1291,11 +1091,8 @@ module ModernTreasury
|
|
1291
1091
|
INTERNAL_ACCOUNT = :internal_account
|
1292
1092
|
VIRTUAL_ACCOUNT = :virtual_account
|
1293
1093
|
|
1294
|
-
|
1295
|
-
|
1296
|
-
# @!parse
|
1297
|
-
# # @return [Array<Symbol>]
|
1298
|
-
# def self.values; end
|
1094
|
+
# @!method self.values
|
1095
|
+
# @return [Array<Symbol>]
|
1299
1096
|
end
|
1300
1097
|
end
|
1301
1098
|
|
@@ -1335,19 +1132,20 @@ module ModernTreasury
|
|
1335
1132
|
# @return [String, nil]
|
1336
1133
|
optional :region, String, nil?: true
|
1337
1134
|
|
1338
|
-
# @!
|
1339
|
-
#
|
1340
|
-
#
|
1341
|
-
#
|
1342
|
-
#
|
1343
|
-
#
|
1344
|
-
#
|
1345
|
-
#
|
1346
|
-
#
|
1347
|
-
#
|
1348
|
-
#
|
1349
|
-
|
1350
|
-
#
|
1135
|
+
# @!method initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil)
|
1136
|
+
# Required if receiving wire payments.
|
1137
|
+
#
|
1138
|
+
# @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
|
1139
|
+
#
|
1140
|
+
# @param line1 [String, nil]
|
1141
|
+
#
|
1142
|
+
# @param line2 [String, nil]
|
1143
|
+
#
|
1144
|
+
# @param locality [String, nil] Locality or City.
|
1145
|
+
#
|
1146
|
+
# @param postal_code [String, nil] The postal code of the address.
|
1147
|
+
#
|
1148
|
+
# @param region [String, nil] Region or State.
|
1351
1149
|
end
|
1352
1150
|
|
1353
1151
|
# Either `individual` or `business`.
|
@@ -1359,11 +1157,8 @@ module ModernTreasury
|
|
1359
1157
|
BUSINESS = :business
|
1360
1158
|
INDIVIDUAL = :individual
|
1361
1159
|
|
1362
|
-
|
1363
|
-
|
1364
|
-
# @!parse
|
1365
|
-
# # @return [Array<Symbol>]
|
1366
|
-
# def self.values; end
|
1160
|
+
# @!method self.values
|
1161
|
+
# @return [Array<Symbol>]
|
1367
1162
|
end
|
1368
1163
|
|
1369
1164
|
class RoutingDetail < ModernTreasury::Internal::Type::BaseModel
|
@@ -1376,26 +1171,22 @@ module ModernTreasury
|
|
1376
1171
|
#
|
1377
1172
|
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::RoutingNumberType]
|
1378
1173
|
required :routing_number_type,
|
1379
|
-
enum: -> {
|
1174
|
+
enum: -> {
|
1175
|
+
ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::RoutingNumberType
|
1176
|
+
}
|
1380
1177
|
|
1381
|
-
# @!attribute
|
1178
|
+
# @!attribute payment_type
|
1382
1179
|
#
|
1383
1180
|
# @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::PaymentType, nil]
|
1384
1181
|
optional :payment_type,
|
1385
|
-
enum: -> {
|
1182
|
+
enum: -> {
|
1183
|
+
ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::PaymentType
|
1184
|
+
}
|
1386
1185
|
|
1387
|
-
# @!
|
1388
|
-
#
|
1389
|
-
#
|
1390
|
-
|
1391
|
-
# @!parse
|
1392
|
-
# # @param routing_number [String]
|
1393
|
-
# # @param routing_number_type [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::RoutingNumberType]
|
1394
|
-
# # @param payment_type [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::PaymentType]
|
1395
|
-
# #
|
1396
|
-
# def initialize(routing_number:, routing_number_type:, payment_type: nil, **) = super
|
1397
|
-
|
1398
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
1186
|
+
# @!method initialize(routing_number:, routing_number_type:, payment_type: nil)
|
1187
|
+
# @param routing_number [String]
|
1188
|
+
# @param routing_number_type [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::RoutingNumberType]
|
1189
|
+
# @param payment_type [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::PaymentType]
|
1399
1190
|
|
1400
1191
|
# @see ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail#routing_number_type
|
1401
1192
|
module RoutingNumberType
|
@@ -1423,11 +1214,8 @@ module ModernTreasury
|
|
1423
1214
|
SWIFT = :swift
|
1424
1215
|
ZA_NATIONAL_CLEARING_CODE = :za_national_clearing_code
|
1425
1216
|
|
1426
|
-
|
1427
|
-
|
1428
|
-
# @!parse
|
1429
|
-
# # @return [Array<Symbol>]
|
1430
|
-
# def self.values; end
|
1217
|
+
# @!method self.values
|
1218
|
+
# @return [Array<Symbol>]
|
1431
1219
|
end
|
1432
1220
|
|
1433
1221
|
# @see ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail#payment_type
|
@@ -1437,6 +1225,7 @@ module ModernTreasury
|
|
1437
1225
|
ACH = :ach
|
1438
1226
|
AU_BECS = :au_becs
|
1439
1227
|
BACS = :bacs
|
1228
|
+
BASE = :base
|
1440
1229
|
BOOK = :book
|
1441
1230
|
CARD = :card
|
1442
1231
|
CHATS = :chats
|
@@ -1444,6 +1233,7 @@ module ModernTreasury
|
|
1444
1233
|
CROSS_BORDER = :cross_border
|
1445
1234
|
DK_NETS = :dk_nets
|
1446
1235
|
EFT = :eft
|
1236
|
+
ETHEREUM = :ethereum
|
1447
1237
|
HU_ICS = :hu_ics
|
1448
1238
|
INTERAC = :interac
|
1449
1239
|
MASAV = :masav
|
@@ -1452,6 +1242,7 @@ module ModernTreasury
|
|
1452
1242
|
NICS = :nics
|
1453
1243
|
NZ_BECS = :nz_becs
|
1454
1244
|
PL_ELIXIR = :pl_elixir
|
1245
|
+
POLYGON = :polygon
|
1455
1246
|
PROVXCHANGE = :provxchange
|
1456
1247
|
RO_SENT = :ro_sent
|
1457
1248
|
RTP = :rtp
|
@@ -1462,14 +1253,12 @@ module ModernTreasury
|
|
1462
1253
|
SIC = :sic
|
1463
1254
|
SIGNET = :signet
|
1464
1255
|
SKNBI = :sknbi
|
1256
|
+
SOLANA = :solana
|
1465
1257
|
WIRE = :wire
|
1466
1258
|
ZENGIN = :zengin
|
1467
1259
|
|
1468
|
-
|
1469
|
-
|
1470
|
-
# @!parse
|
1471
|
-
# # @return [Array<Symbol>]
|
1472
|
-
# def self.values; end
|
1260
|
+
# @!method self.values
|
1261
|
+
# @return [Array<Symbol>]
|
1473
1262
|
end
|
1474
1263
|
end
|
1475
1264
|
end
|