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