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
@@ -0,0 +1,2433 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module ModernTreasury
|
4
|
+
module Models
|
5
|
+
class PaymentOrderCreateAsyncParams < ModernTreasury::Internal::Type::BaseModel
|
6
|
+
extend ModernTreasury::Internal::Type::RequestParameters::Converter
|
7
|
+
include ModernTreasury::Internal::Type::RequestParameters
|
8
|
+
|
9
|
+
OrHash =
|
10
|
+
T.type_alias do
|
11
|
+
T.any(
|
12
|
+
ModernTreasury::PaymentOrderCreateAsyncParams,
|
13
|
+
ModernTreasury::Internal::AnyHash
|
14
|
+
)
|
15
|
+
end
|
16
|
+
|
17
|
+
# Value in specified currency's smallest unit. e.g. $10 would be represented as
|
18
|
+
# 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
|
19
|
+
sig { returns(Integer) }
|
20
|
+
attr_accessor :amount
|
21
|
+
|
22
|
+
# One of `credit`, `debit`. Describes the direction money is flowing in the
|
23
|
+
# transaction. A `credit` moves money from your account to someone else's. A
|
24
|
+
# `debit` pulls money from someone else's account to your own. Note that wire,
|
25
|
+
# rtp, and check payments will always be `credit`.
|
26
|
+
sig do
|
27
|
+
returns(
|
28
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Direction::OrSymbol
|
29
|
+
)
|
30
|
+
end
|
31
|
+
attr_accessor :direction
|
32
|
+
|
33
|
+
# The ID of one of your organization's internal accounts.
|
34
|
+
sig { returns(String) }
|
35
|
+
attr_accessor :originating_account_id
|
36
|
+
|
37
|
+
# One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`,
|
38
|
+
# `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
|
39
|
+
# `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
|
40
|
+
sig { returns(ModernTreasury::PaymentOrderType::OrSymbol) }
|
41
|
+
attr_accessor :type
|
42
|
+
|
43
|
+
sig do
|
44
|
+
returns(
|
45
|
+
T.nilable(ModernTreasury::PaymentOrderCreateAsyncParams::Accounting)
|
46
|
+
)
|
47
|
+
end
|
48
|
+
attr_reader :accounting
|
49
|
+
|
50
|
+
sig do
|
51
|
+
params(
|
52
|
+
accounting:
|
53
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Accounting::OrHash
|
54
|
+
).void
|
55
|
+
end
|
56
|
+
attr_writer :accounting
|
57
|
+
|
58
|
+
# The ID of one of your accounting categories. Note that these will only be
|
59
|
+
# accessible if your accounting system has been connected.
|
60
|
+
sig { returns(T.nilable(String)) }
|
61
|
+
attr_accessor :accounting_category_id
|
62
|
+
|
63
|
+
# The ID of one of your accounting ledger classes. Note that these will only be
|
64
|
+
# accessible if your accounting system has been connected.
|
65
|
+
sig { returns(T.nilable(String)) }
|
66
|
+
attr_accessor :accounting_ledger_class_id
|
67
|
+
|
68
|
+
# The party that will pay the fees for the payment order. Only applies to wire
|
69
|
+
# payment orders. Can be one of shared, sender, or receiver, which correspond
|
70
|
+
# respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
|
71
|
+
sig do
|
72
|
+
returns(
|
73
|
+
T.nilable(
|
74
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ChargeBearer::OrSymbol
|
75
|
+
)
|
76
|
+
)
|
77
|
+
end
|
78
|
+
attr_accessor :charge_bearer
|
79
|
+
|
80
|
+
# Defaults to the currency of the originating account.
|
81
|
+
sig { returns(T.nilable(ModernTreasury::Currency::OrSymbol)) }
|
82
|
+
attr_reader :currency
|
83
|
+
|
84
|
+
sig { params(currency: ModernTreasury::Currency::OrSymbol).void }
|
85
|
+
attr_writer :currency
|
86
|
+
|
87
|
+
# An optional description for internal use.
|
88
|
+
sig { returns(T.nilable(String)) }
|
89
|
+
attr_accessor :description
|
90
|
+
|
91
|
+
# Date transactions are to be posted to the participants' account. Defaults to the
|
92
|
+
# current business day or the next business day if the current day is a bank
|
93
|
+
# holiday or weekend. Format: yyyy-mm-dd.
|
94
|
+
sig { returns(T.nilable(Date)) }
|
95
|
+
attr_reader :effective_date
|
96
|
+
|
97
|
+
sig { params(effective_date: Date).void }
|
98
|
+
attr_writer :effective_date
|
99
|
+
|
100
|
+
# RFP payments require an expires_at. This value must be past the effective_date.
|
101
|
+
sig { returns(T.nilable(Time)) }
|
102
|
+
attr_accessor :expires_at
|
103
|
+
|
104
|
+
# A payment type to fallback to if the original type is not valid for the
|
105
|
+
# receiving account. Currently, this only supports falling back from RTP to ACH
|
106
|
+
# (type=rtp and fallback_type=ach)
|
107
|
+
sig do
|
108
|
+
returns(
|
109
|
+
T.nilable(
|
110
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::FallbackType::OrSymbol
|
111
|
+
)
|
112
|
+
)
|
113
|
+
end
|
114
|
+
attr_reader :fallback_type
|
115
|
+
|
116
|
+
sig do
|
117
|
+
params(
|
118
|
+
fallback_type:
|
119
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::FallbackType::OrSymbol
|
120
|
+
).void
|
121
|
+
end
|
122
|
+
attr_writer :fallback_type
|
123
|
+
|
124
|
+
# If present, indicates a specific foreign exchange contract number that has been
|
125
|
+
# generated by your financial institution.
|
126
|
+
sig { returns(T.nilable(String)) }
|
127
|
+
attr_accessor :foreign_exchange_contract
|
128
|
+
|
129
|
+
# Indicates the type of FX transfer to initiate, can be either
|
130
|
+
# `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
|
131
|
+
# currency matches the originating account currency.
|
132
|
+
sig do
|
133
|
+
returns(
|
134
|
+
T.nilable(
|
135
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator::OrSymbol
|
136
|
+
)
|
137
|
+
)
|
138
|
+
end
|
139
|
+
attr_accessor :foreign_exchange_indicator
|
140
|
+
|
141
|
+
# Specifies a ledger transaction object that will be created with the payment
|
142
|
+
# order. If the ledger transaction cannot be created, then the payment order
|
143
|
+
# creation will fail. The resulting ledger transaction will mirror the status of
|
144
|
+
# the payment order.
|
145
|
+
sig do
|
146
|
+
returns(
|
147
|
+
T.nilable(
|
148
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction
|
149
|
+
)
|
150
|
+
)
|
151
|
+
end
|
152
|
+
attr_reader :ledger_transaction
|
153
|
+
|
154
|
+
sig do
|
155
|
+
params(
|
156
|
+
ledger_transaction:
|
157
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::OrHash
|
158
|
+
).void
|
159
|
+
end
|
160
|
+
attr_writer :ledger_transaction
|
161
|
+
|
162
|
+
# Either ledger_transaction or ledger_transaction_id can be provided. Only a
|
163
|
+
# pending ledger transaction can be attached upon payment order creation. Once the
|
164
|
+
# payment order is created, the status of the ledger transaction tracks the
|
165
|
+
# payment order automatically.
|
166
|
+
sig { returns(T.nilable(String)) }
|
167
|
+
attr_reader :ledger_transaction_id
|
168
|
+
|
169
|
+
sig { params(ledger_transaction_id: String).void }
|
170
|
+
attr_writer :ledger_transaction_id
|
171
|
+
|
172
|
+
# An array of line items that must sum up to the amount of the payment order.
|
173
|
+
sig do
|
174
|
+
returns(
|
175
|
+
T.nilable(
|
176
|
+
T::Array[ModernTreasury::PaymentOrderCreateAsyncParams::LineItem]
|
177
|
+
)
|
178
|
+
)
|
179
|
+
end
|
180
|
+
attr_reader :line_items
|
181
|
+
|
182
|
+
sig do
|
183
|
+
params(
|
184
|
+
line_items:
|
185
|
+
T::Array[
|
186
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LineItem::OrHash
|
187
|
+
]
|
188
|
+
).void
|
189
|
+
end
|
190
|
+
attr_writer :line_items
|
191
|
+
|
192
|
+
# Additional data represented as key-value pairs. Both the key and value must be
|
193
|
+
# strings.
|
194
|
+
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
195
|
+
attr_reader :metadata
|
196
|
+
|
197
|
+
sig { params(metadata: T::Hash[Symbol, String]).void }
|
198
|
+
attr_writer :metadata
|
199
|
+
|
200
|
+
# A boolean to determine if NSF Protection is enabled for this payment order. Note
|
201
|
+
# that this setting must also be turned on in your organization settings page.
|
202
|
+
sig { returns(T.nilable(T::Boolean)) }
|
203
|
+
attr_reader :nsf_protected
|
204
|
+
|
205
|
+
sig { params(nsf_protected: T::Boolean).void }
|
206
|
+
attr_writer :nsf_protected
|
207
|
+
|
208
|
+
# If present, this will replace your default company name on receiver's bank
|
209
|
+
# statement. This field can only be used for ACH payments currently. For ACH, only
|
210
|
+
# the first 16 characters of this string will be used. Any additional characters
|
211
|
+
# will be truncated.
|
212
|
+
sig { returns(T.nilable(String)) }
|
213
|
+
attr_accessor :originating_party_name
|
214
|
+
|
215
|
+
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
216
|
+
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
217
|
+
# an overnight check rather than standard mail.
|
218
|
+
sig do
|
219
|
+
returns(
|
220
|
+
T.nilable(
|
221
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Priority::OrSymbol
|
222
|
+
)
|
223
|
+
)
|
224
|
+
end
|
225
|
+
attr_reader :priority
|
226
|
+
|
227
|
+
sig do
|
228
|
+
params(
|
229
|
+
priority:
|
230
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Priority::OrSymbol
|
231
|
+
).void
|
232
|
+
end
|
233
|
+
attr_writer :priority
|
234
|
+
|
235
|
+
# If present, Modern Treasury will not process the payment until after this time.
|
236
|
+
# If `process_after` is past the cutoff for `effective_date`, `process_after` will
|
237
|
+
# take precedence and `effective_date` will automatically update to reflect the
|
238
|
+
# earliest possible sending date after `process_after`. Format is ISO8601
|
239
|
+
# timestamp.
|
240
|
+
sig { returns(T.nilable(Time)) }
|
241
|
+
attr_accessor :process_after
|
242
|
+
|
243
|
+
# For `wire`, this is usually the purpose which is transmitted via the
|
244
|
+
# "InstrForDbtrAgt" field in the ISO20022 file. For `eft`, this field is the 3
|
245
|
+
# digit CPA Code that will be attached to the payment.
|
246
|
+
sig { returns(T.nilable(String)) }
|
247
|
+
attr_accessor :purpose
|
248
|
+
|
249
|
+
# Either `receiving_account` or `receiving_account_id` must be present. When using
|
250
|
+
# `receiving_account_id`, you may pass the id of an external account or an
|
251
|
+
# internal account.
|
252
|
+
sig do
|
253
|
+
returns(
|
254
|
+
T.nilable(
|
255
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount
|
256
|
+
)
|
257
|
+
)
|
258
|
+
end
|
259
|
+
attr_reader :receiving_account
|
260
|
+
|
261
|
+
sig do
|
262
|
+
params(
|
263
|
+
receiving_account:
|
264
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::OrHash
|
265
|
+
).void
|
266
|
+
end
|
267
|
+
attr_writer :receiving_account
|
268
|
+
|
269
|
+
# Either `receiving_account` or `receiving_account_id` must be present. When using
|
270
|
+
# `receiving_account_id`, you may pass the id of an external account or an
|
271
|
+
# internal account.
|
272
|
+
sig { returns(T.nilable(String)) }
|
273
|
+
attr_reader :receiving_account_id
|
274
|
+
|
275
|
+
sig { params(receiving_account_id: String).void }
|
276
|
+
attr_writer :receiving_account_id
|
277
|
+
|
278
|
+
# For `ach`, this field will be passed through on an addenda record. For `wire`
|
279
|
+
# payments the field will be passed through as the "Originator to Beneficiary
|
280
|
+
# Information", also known as OBI or Fedwire tag 6000.
|
281
|
+
sig { returns(T.nilable(String)) }
|
282
|
+
attr_accessor :remittance_information
|
283
|
+
|
284
|
+
# Send an email to the counterparty when the payment order is sent to the bank. If
|
285
|
+
# `null`, `send_remittance_advice` on the Counterparty is used.
|
286
|
+
sig { returns(T.nilable(T::Boolean)) }
|
287
|
+
attr_accessor :send_remittance_advice
|
288
|
+
|
289
|
+
# An optional descriptor which will appear in the receiver's statement. For
|
290
|
+
# `check` payments this field will be used as the memo line. For `ach` the maximum
|
291
|
+
# length is 10 characters. Note that for ACH payments, the name on your bank
|
292
|
+
# account will be included automatically by the bank, so you can use the
|
293
|
+
# characters for other useful information. For `eft` the maximum length is 15
|
294
|
+
# characters.
|
295
|
+
sig { returns(T.nilable(String)) }
|
296
|
+
attr_accessor :statement_descriptor
|
297
|
+
|
298
|
+
# An additional layer of classification for the type of payment order you are
|
299
|
+
# doing. This field is only used for `ach` payment orders currently. For `ach`
|
300
|
+
# payment orders, the `subtype` represents the SEC code. We currently support
|
301
|
+
# `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
|
302
|
+
sig { returns(T.nilable(ModernTreasury::PaymentOrderSubtype::OrSymbol)) }
|
303
|
+
attr_accessor :subtype
|
304
|
+
|
305
|
+
# A flag that determines whether a payment order should go through transaction
|
306
|
+
# monitoring.
|
307
|
+
sig { returns(T.nilable(T::Boolean)) }
|
308
|
+
attr_reader :transaction_monitoring_enabled
|
309
|
+
|
310
|
+
sig { params(transaction_monitoring_enabled: T::Boolean).void }
|
311
|
+
attr_writer :transaction_monitoring_enabled
|
312
|
+
|
313
|
+
# Identifier of the ultimate originator of the payment order.
|
314
|
+
sig { returns(T.nilable(String)) }
|
315
|
+
attr_accessor :ultimate_originating_party_identifier
|
316
|
+
|
317
|
+
# Name of the ultimate originator of the payment order.
|
318
|
+
sig { returns(T.nilable(String)) }
|
319
|
+
attr_accessor :ultimate_originating_party_name
|
320
|
+
|
321
|
+
# Identifier of the ultimate funds recipient.
|
322
|
+
sig { returns(T.nilable(String)) }
|
323
|
+
attr_accessor :ultimate_receiving_party_identifier
|
324
|
+
|
325
|
+
# Name of the ultimate funds recipient.
|
326
|
+
sig { returns(T.nilable(String)) }
|
327
|
+
attr_accessor :ultimate_receiving_party_name
|
328
|
+
|
329
|
+
sig do
|
330
|
+
params(
|
331
|
+
amount: Integer,
|
332
|
+
direction:
|
333
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Direction::OrSymbol,
|
334
|
+
originating_account_id: String,
|
335
|
+
type: ModernTreasury::PaymentOrderType::OrSymbol,
|
336
|
+
accounting:
|
337
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Accounting::OrHash,
|
338
|
+
accounting_category_id: T.nilable(String),
|
339
|
+
accounting_ledger_class_id: T.nilable(String),
|
340
|
+
charge_bearer:
|
341
|
+
T.nilable(
|
342
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ChargeBearer::OrSymbol
|
343
|
+
),
|
344
|
+
currency: ModernTreasury::Currency::OrSymbol,
|
345
|
+
description: T.nilable(String),
|
346
|
+
effective_date: Date,
|
347
|
+
expires_at: T.nilable(Time),
|
348
|
+
fallback_type:
|
349
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::FallbackType::OrSymbol,
|
350
|
+
foreign_exchange_contract: T.nilable(String),
|
351
|
+
foreign_exchange_indicator:
|
352
|
+
T.nilable(
|
353
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator::OrSymbol
|
354
|
+
),
|
355
|
+
ledger_transaction:
|
356
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::OrHash,
|
357
|
+
ledger_transaction_id: String,
|
358
|
+
line_items:
|
359
|
+
T::Array[
|
360
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LineItem::OrHash
|
361
|
+
],
|
362
|
+
metadata: T::Hash[Symbol, String],
|
363
|
+
nsf_protected: T::Boolean,
|
364
|
+
originating_party_name: T.nilable(String),
|
365
|
+
priority:
|
366
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Priority::OrSymbol,
|
367
|
+
process_after: T.nilable(Time),
|
368
|
+
purpose: T.nilable(String),
|
369
|
+
receiving_account:
|
370
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::OrHash,
|
371
|
+
receiving_account_id: String,
|
372
|
+
remittance_information: T.nilable(String),
|
373
|
+
send_remittance_advice: T.nilable(T::Boolean),
|
374
|
+
statement_descriptor: T.nilable(String),
|
375
|
+
subtype: T.nilable(ModernTreasury::PaymentOrderSubtype::OrSymbol),
|
376
|
+
transaction_monitoring_enabled: T::Boolean,
|
377
|
+
ultimate_originating_party_identifier: T.nilable(String),
|
378
|
+
ultimate_originating_party_name: T.nilable(String),
|
379
|
+
ultimate_receiving_party_identifier: T.nilable(String),
|
380
|
+
ultimate_receiving_party_name: T.nilable(String),
|
381
|
+
request_options: ModernTreasury::RequestOptions::OrHash
|
382
|
+
).returns(T.attached_class)
|
383
|
+
end
|
384
|
+
def self.new(
|
385
|
+
# Value in specified currency's smallest unit. e.g. $10 would be represented as
|
386
|
+
# 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
|
387
|
+
amount:,
|
388
|
+
# One of `credit`, `debit`. Describes the direction money is flowing in the
|
389
|
+
# transaction. A `credit` moves money from your account to someone else's. A
|
390
|
+
# `debit` pulls money from someone else's account to your own. Note that wire,
|
391
|
+
# rtp, and check payments will always be `credit`.
|
392
|
+
direction:,
|
393
|
+
# The ID of one of your organization's internal accounts.
|
394
|
+
originating_account_id:,
|
395
|
+
# One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`,
|
396
|
+
# `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
|
397
|
+
# `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
|
398
|
+
type:,
|
399
|
+
accounting: nil,
|
400
|
+
# The ID of one of your accounting categories. Note that these will only be
|
401
|
+
# accessible if your accounting system has been connected.
|
402
|
+
accounting_category_id: nil,
|
403
|
+
# The ID of one of your accounting ledger classes. Note that these will only be
|
404
|
+
# accessible if your accounting system has been connected.
|
405
|
+
accounting_ledger_class_id: nil,
|
406
|
+
# The party that will pay the fees for the payment order. Only applies to wire
|
407
|
+
# payment orders. Can be one of shared, sender, or receiver, which correspond
|
408
|
+
# respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
|
409
|
+
charge_bearer: nil,
|
410
|
+
# Defaults to the currency of the originating account.
|
411
|
+
currency: nil,
|
412
|
+
# An optional description for internal use.
|
413
|
+
description: nil,
|
414
|
+
# Date transactions are to be posted to the participants' account. Defaults to the
|
415
|
+
# current business day or the next business day if the current day is a bank
|
416
|
+
# holiday or weekend. Format: yyyy-mm-dd.
|
417
|
+
effective_date: nil,
|
418
|
+
# RFP payments require an expires_at. This value must be past the effective_date.
|
419
|
+
expires_at: nil,
|
420
|
+
# A payment type to fallback to if the original type is not valid for the
|
421
|
+
# receiving account. Currently, this only supports falling back from RTP to ACH
|
422
|
+
# (type=rtp and fallback_type=ach)
|
423
|
+
fallback_type: nil,
|
424
|
+
# If present, indicates a specific foreign exchange contract number that has been
|
425
|
+
# generated by your financial institution.
|
426
|
+
foreign_exchange_contract: nil,
|
427
|
+
# Indicates the type of FX transfer to initiate, can be either
|
428
|
+
# `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
|
429
|
+
# currency matches the originating account currency.
|
430
|
+
foreign_exchange_indicator: nil,
|
431
|
+
# Specifies a ledger transaction object that will be created with the payment
|
432
|
+
# order. If the ledger transaction cannot be created, then the payment order
|
433
|
+
# creation will fail. The resulting ledger transaction will mirror the status of
|
434
|
+
# the payment order.
|
435
|
+
ledger_transaction: nil,
|
436
|
+
# Either ledger_transaction or ledger_transaction_id can be provided. Only a
|
437
|
+
# pending ledger transaction can be attached upon payment order creation. Once the
|
438
|
+
# payment order is created, the status of the ledger transaction tracks the
|
439
|
+
# payment order automatically.
|
440
|
+
ledger_transaction_id: nil,
|
441
|
+
# An array of line items that must sum up to the amount of the payment order.
|
442
|
+
line_items: nil,
|
443
|
+
# Additional data represented as key-value pairs. Both the key and value must be
|
444
|
+
# strings.
|
445
|
+
metadata: nil,
|
446
|
+
# A boolean to determine if NSF Protection is enabled for this payment order. Note
|
447
|
+
# that this setting must also be turned on in your organization settings page.
|
448
|
+
nsf_protected: nil,
|
449
|
+
# If present, this will replace your default company name on receiver's bank
|
450
|
+
# statement. This field can only be used for ACH payments currently. For ACH, only
|
451
|
+
# the first 16 characters of this string will be used. Any additional characters
|
452
|
+
# will be truncated.
|
453
|
+
originating_party_name: nil,
|
454
|
+
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
455
|
+
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
456
|
+
# an overnight check rather than standard mail.
|
457
|
+
priority: nil,
|
458
|
+
# If present, Modern Treasury will not process the payment until after this time.
|
459
|
+
# If `process_after` is past the cutoff for `effective_date`, `process_after` will
|
460
|
+
# take precedence and `effective_date` will automatically update to reflect the
|
461
|
+
# earliest possible sending date after `process_after`. Format is ISO8601
|
462
|
+
# timestamp.
|
463
|
+
process_after: nil,
|
464
|
+
# For `wire`, this is usually the purpose which is transmitted via the
|
465
|
+
# "InstrForDbtrAgt" field in the ISO20022 file. For `eft`, this field is the 3
|
466
|
+
# digit CPA Code that will be attached to the payment.
|
467
|
+
purpose: nil,
|
468
|
+
# Either `receiving_account` or `receiving_account_id` must be present. When using
|
469
|
+
# `receiving_account_id`, you may pass the id of an external account or an
|
470
|
+
# internal account.
|
471
|
+
receiving_account: nil,
|
472
|
+
# Either `receiving_account` or `receiving_account_id` must be present. When using
|
473
|
+
# `receiving_account_id`, you may pass the id of an external account or an
|
474
|
+
# internal account.
|
475
|
+
receiving_account_id: nil,
|
476
|
+
# For `ach`, this field will be passed through on an addenda record. For `wire`
|
477
|
+
# payments the field will be passed through as the "Originator to Beneficiary
|
478
|
+
# Information", also known as OBI or Fedwire tag 6000.
|
479
|
+
remittance_information: nil,
|
480
|
+
# Send an email to the counterparty when the payment order is sent to the bank. If
|
481
|
+
# `null`, `send_remittance_advice` on the Counterparty is used.
|
482
|
+
send_remittance_advice: nil,
|
483
|
+
# An optional descriptor which will appear in the receiver's statement. For
|
484
|
+
# `check` payments this field will be used as the memo line. For `ach` the maximum
|
485
|
+
# length is 10 characters. Note that for ACH payments, the name on your bank
|
486
|
+
# account will be included automatically by the bank, so you can use the
|
487
|
+
# characters for other useful information. For `eft` the maximum length is 15
|
488
|
+
# characters.
|
489
|
+
statement_descriptor: nil,
|
490
|
+
# An additional layer of classification for the type of payment order you are
|
491
|
+
# doing. This field is only used for `ach` payment orders currently. For `ach`
|
492
|
+
# payment orders, the `subtype` represents the SEC code. We currently support
|
493
|
+
# `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
|
494
|
+
subtype: nil,
|
495
|
+
# A flag that determines whether a payment order should go through transaction
|
496
|
+
# monitoring.
|
497
|
+
transaction_monitoring_enabled: nil,
|
498
|
+
# Identifier of the ultimate originator of the payment order.
|
499
|
+
ultimate_originating_party_identifier: nil,
|
500
|
+
# Name of the ultimate originator of the payment order.
|
501
|
+
ultimate_originating_party_name: nil,
|
502
|
+
# Identifier of the ultimate funds recipient.
|
503
|
+
ultimate_receiving_party_identifier: nil,
|
504
|
+
# Name of the ultimate funds recipient.
|
505
|
+
ultimate_receiving_party_name: nil,
|
506
|
+
request_options: {}
|
507
|
+
)
|
508
|
+
end
|
509
|
+
|
510
|
+
sig do
|
511
|
+
override.returns(
|
512
|
+
{
|
513
|
+
amount: Integer,
|
514
|
+
direction:
|
515
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Direction::OrSymbol,
|
516
|
+
originating_account_id: String,
|
517
|
+
type: ModernTreasury::PaymentOrderType::OrSymbol,
|
518
|
+
accounting:
|
519
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Accounting,
|
520
|
+
accounting_category_id: T.nilable(String),
|
521
|
+
accounting_ledger_class_id: T.nilable(String),
|
522
|
+
charge_bearer:
|
523
|
+
T.nilable(
|
524
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ChargeBearer::OrSymbol
|
525
|
+
),
|
526
|
+
currency: ModernTreasury::Currency::OrSymbol,
|
527
|
+
description: T.nilable(String),
|
528
|
+
effective_date: Date,
|
529
|
+
expires_at: T.nilable(Time),
|
530
|
+
fallback_type:
|
531
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::FallbackType::OrSymbol,
|
532
|
+
foreign_exchange_contract: T.nilable(String),
|
533
|
+
foreign_exchange_indicator:
|
534
|
+
T.nilable(
|
535
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator::OrSymbol
|
536
|
+
),
|
537
|
+
ledger_transaction:
|
538
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction,
|
539
|
+
ledger_transaction_id: String,
|
540
|
+
line_items:
|
541
|
+
T::Array[ModernTreasury::PaymentOrderCreateAsyncParams::LineItem],
|
542
|
+
metadata: T::Hash[Symbol, String],
|
543
|
+
nsf_protected: T::Boolean,
|
544
|
+
originating_party_name: T.nilable(String),
|
545
|
+
priority:
|
546
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Priority::OrSymbol,
|
547
|
+
process_after: T.nilable(Time),
|
548
|
+
purpose: T.nilable(String),
|
549
|
+
receiving_account:
|
550
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount,
|
551
|
+
receiving_account_id: String,
|
552
|
+
remittance_information: T.nilable(String),
|
553
|
+
send_remittance_advice: T.nilable(T::Boolean),
|
554
|
+
statement_descriptor: T.nilable(String),
|
555
|
+
subtype: T.nilable(ModernTreasury::PaymentOrderSubtype::OrSymbol),
|
556
|
+
transaction_monitoring_enabled: T::Boolean,
|
557
|
+
ultimate_originating_party_identifier: T.nilable(String),
|
558
|
+
ultimate_originating_party_name: T.nilable(String),
|
559
|
+
ultimate_receiving_party_identifier: T.nilable(String),
|
560
|
+
ultimate_receiving_party_name: T.nilable(String),
|
561
|
+
request_options: ModernTreasury::RequestOptions
|
562
|
+
}
|
563
|
+
)
|
564
|
+
end
|
565
|
+
def to_hash
|
566
|
+
end
|
567
|
+
|
568
|
+
# One of `credit`, `debit`. Describes the direction money is flowing in the
|
569
|
+
# transaction. A `credit` moves money from your account to someone else's. A
|
570
|
+
# `debit` pulls money from someone else's account to your own. Note that wire,
|
571
|
+
# rtp, and check payments will always be `credit`.
|
572
|
+
module Direction
|
573
|
+
extend ModernTreasury::Internal::Type::Enum
|
574
|
+
|
575
|
+
TaggedSymbol =
|
576
|
+
T.type_alias do
|
577
|
+
T.all(
|
578
|
+
Symbol,
|
579
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Direction
|
580
|
+
)
|
581
|
+
end
|
582
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
583
|
+
|
584
|
+
CREDIT =
|
585
|
+
T.let(
|
586
|
+
:credit,
|
587
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Direction::TaggedSymbol
|
588
|
+
)
|
589
|
+
DEBIT =
|
590
|
+
T.let(
|
591
|
+
:debit,
|
592
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Direction::TaggedSymbol
|
593
|
+
)
|
594
|
+
|
595
|
+
sig do
|
596
|
+
override.returns(
|
597
|
+
T::Array[
|
598
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Direction::TaggedSymbol
|
599
|
+
]
|
600
|
+
)
|
601
|
+
end
|
602
|
+
def self.values
|
603
|
+
end
|
604
|
+
end
|
605
|
+
|
606
|
+
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
607
|
+
OrHash =
|
608
|
+
T.type_alias do
|
609
|
+
T.any(
|
610
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Accounting,
|
611
|
+
ModernTreasury::Internal::AnyHash
|
612
|
+
)
|
613
|
+
end
|
614
|
+
|
615
|
+
# The ID of one of your accounting categories. Note that these will only be
|
616
|
+
# accessible if your accounting system has been connected.
|
617
|
+
sig { returns(T.nilable(String)) }
|
618
|
+
attr_accessor :account_id
|
619
|
+
|
620
|
+
# The ID of one of the class objects in your accounting system. Class objects
|
621
|
+
# track segments of your business independent of client or project. Note that
|
622
|
+
# these will only be accessible if your accounting system has been connected.
|
623
|
+
sig { returns(T.nilable(String)) }
|
624
|
+
attr_accessor :class_id
|
625
|
+
|
626
|
+
sig do
|
627
|
+
params(
|
628
|
+
account_id: T.nilable(String),
|
629
|
+
class_id: T.nilable(String)
|
630
|
+
).returns(T.attached_class)
|
631
|
+
end
|
632
|
+
def self.new(
|
633
|
+
# The ID of one of your accounting categories. Note that these will only be
|
634
|
+
# accessible if your accounting system has been connected.
|
635
|
+
account_id: nil,
|
636
|
+
# The ID of one of the class objects in your accounting system. Class objects
|
637
|
+
# track segments of your business independent of client or project. Note that
|
638
|
+
# these will only be accessible if your accounting system has been connected.
|
639
|
+
class_id: nil
|
640
|
+
)
|
641
|
+
end
|
642
|
+
|
643
|
+
sig do
|
644
|
+
override.returns(
|
645
|
+
{ account_id: T.nilable(String), class_id: T.nilable(String) }
|
646
|
+
)
|
647
|
+
end
|
648
|
+
def to_hash
|
649
|
+
end
|
650
|
+
end
|
651
|
+
|
652
|
+
# The party that will pay the fees for the payment order. Only applies to wire
|
653
|
+
# payment orders. Can be one of shared, sender, or receiver, which correspond
|
654
|
+
# respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
|
655
|
+
module ChargeBearer
|
656
|
+
extend ModernTreasury::Internal::Type::Enum
|
657
|
+
|
658
|
+
TaggedSymbol =
|
659
|
+
T.type_alias do
|
660
|
+
T.all(
|
661
|
+
Symbol,
|
662
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ChargeBearer
|
663
|
+
)
|
664
|
+
end
|
665
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
666
|
+
|
667
|
+
SHARED =
|
668
|
+
T.let(
|
669
|
+
:shared,
|
670
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ChargeBearer::TaggedSymbol
|
671
|
+
)
|
672
|
+
SENDER =
|
673
|
+
T.let(
|
674
|
+
:sender,
|
675
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ChargeBearer::TaggedSymbol
|
676
|
+
)
|
677
|
+
RECEIVER =
|
678
|
+
T.let(
|
679
|
+
:receiver,
|
680
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ChargeBearer::TaggedSymbol
|
681
|
+
)
|
682
|
+
|
683
|
+
sig do
|
684
|
+
override.returns(
|
685
|
+
T::Array[
|
686
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ChargeBearer::TaggedSymbol
|
687
|
+
]
|
688
|
+
)
|
689
|
+
end
|
690
|
+
def self.values
|
691
|
+
end
|
692
|
+
end
|
693
|
+
|
694
|
+
# A payment type to fallback to if the original type is not valid for the
|
695
|
+
# receiving account. Currently, this only supports falling back from RTP to ACH
|
696
|
+
# (type=rtp and fallback_type=ach)
|
697
|
+
module FallbackType
|
698
|
+
extend ModernTreasury::Internal::Type::Enum
|
699
|
+
|
700
|
+
TaggedSymbol =
|
701
|
+
T.type_alias do
|
702
|
+
T.all(
|
703
|
+
Symbol,
|
704
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::FallbackType
|
705
|
+
)
|
706
|
+
end
|
707
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
708
|
+
|
709
|
+
ACH =
|
710
|
+
T.let(
|
711
|
+
:ach,
|
712
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::FallbackType::TaggedSymbol
|
713
|
+
)
|
714
|
+
|
715
|
+
sig do
|
716
|
+
override.returns(
|
717
|
+
T::Array[
|
718
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::FallbackType::TaggedSymbol
|
719
|
+
]
|
720
|
+
)
|
721
|
+
end
|
722
|
+
def self.values
|
723
|
+
end
|
724
|
+
end
|
725
|
+
|
726
|
+
# Indicates the type of FX transfer to initiate, can be either
|
727
|
+
# `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
|
728
|
+
# currency matches the originating account currency.
|
729
|
+
module ForeignExchangeIndicator
|
730
|
+
extend ModernTreasury::Internal::Type::Enum
|
731
|
+
|
732
|
+
TaggedSymbol =
|
733
|
+
T.type_alias do
|
734
|
+
T.all(
|
735
|
+
Symbol,
|
736
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator
|
737
|
+
)
|
738
|
+
end
|
739
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
740
|
+
|
741
|
+
FIXED_TO_VARIABLE =
|
742
|
+
T.let(
|
743
|
+
:fixed_to_variable,
|
744
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator::TaggedSymbol
|
745
|
+
)
|
746
|
+
VARIABLE_TO_FIXED =
|
747
|
+
T.let(
|
748
|
+
:variable_to_fixed,
|
749
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator::TaggedSymbol
|
750
|
+
)
|
751
|
+
|
752
|
+
sig do
|
753
|
+
override.returns(
|
754
|
+
T::Array[
|
755
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator::TaggedSymbol
|
756
|
+
]
|
757
|
+
)
|
758
|
+
end
|
759
|
+
def self.values
|
760
|
+
end
|
761
|
+
end
|
762
|
+
|
763
|
+
class LedgerTransaction < ModernTreasury::Internal::Type::BaseModel
|
764
|
+
OrHash =
|
765
|
+
T.type_alias do
|
766
|
+
T.any(
|
767
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction,
|
768
|
+
ModernTreasury::Internal::AnyHash
|
769
|
+
)
|
770
|
+
end
|
771
|
+
|
772
|
+
# An array of ledger entry objects.
|
773
|
+
sig do
|
774
|
+
returns(
|
775
|
+
T::Array[
|
776
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerEntry
|
777
|
+
]
|
778
|
+
)
|
779
|
+
end
|
780
|
+
attr_accessor :ledger_entries
|
781
|
+
|
782
|
+
# An optional description for internal use.
|
783
|
+
sig { returns(T.nilable(String)) }
|
784
|
+
attr_accessor :description
|
785
|
+
|
786
|
+
# The timestamp (ISO8601 format) at which the ledger transaction happened for
|
787
|
+
# reporting purposes.
|
788
|
+
sig { returns(T.nilable(Time)) }
|
789
|
+
attr_reader :effective_at
|
790
|
+
|
791
|
+
sig { params(effective_at: Time).void }
|
792
|
+
attr_writer :effective_at
|
793
|
+
|
794
|
+
# The date (YYYY-MM-DD) on which the ledger transaction happened for reporting
|
795
|
+
# purposes.
|
796
|
+
sig { returns(T.nilable(Date)) }
|
797
|
+
attr_reader :effective_date
|
798
|
+
|
799
|
+
sig { params(effective_date: Date).void }
|
800
|
+
attr_writer :effective_date
|
801
|
+
|
802
|
+
# A unique string to represent the ledger transaction. Only one pending or posted
|
803
|
+
# ledger transaction may have this ID in the ledger.
|
804
|
+
sig { returns(T.nilable(String)) }
|
805
|
+
attr_reader :external_id
|
806
|
+
|
807
|
+
sig { params(external_id: String).void }
|
808
|
+
attr_writer :external_id
|
809
|
+
|
810
|
+
# If the ledger transaction can be reconciled to another object in Modern
|
811
|
+
# Treasury, the id will be populated here, otherwise null.
|
812
|
+
sig { returns(T.nilable(String)) }
|
813
|
+
attr_reader :ledgerable_id
|
814
|
+
|
815
|
+
sig { params(ledgerable_id: String).void }
|
816
|
+
attr_writer :ledgerable_id
|
817
|
+
|
818
|
+
# If the ledger transaction can be reconciled to another object in Modern
|
819
|
+
# Treasury, the type will be populated here, otherwise null. This can be one of
|
820
|
+
# payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
|
821
|
+
# reversal.
|
822
|
+
sig do
|
823
|
+
returns(
|
824
|
+
T.nilable(
|
825
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::OrSymbol
|
826
|
+
)
|
827
|
+
)
|
828
|
+
end
|
829
|
+
attr_reader :ledgerable_type
|
830
|
+
|
831
|
+
sig do
|
832
|
+
params(
|
833
|
+
ledgerable_type:
|
834
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::OrSymbol
|
835
|
+
).void
|
836
|
+
end
|
837
|
+
attr_writer :ledgerable_type
|
838
|
+
|
839
|
+
# Additional data represented as key-value pairs. Both the key and value must be
|
840
|
+
# strings.
|
841
|
+
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
842
|
+
attr_reader :metadata
|
843
|
+
|
844
|
+
sig { params(metadata: T::Hash[Symbol, String]).void }
|
845
|
+
attr_writer :metadata
|
846
|
+
|
847
|
+
# To post a ledger transaction at creation, use `posted`.
|
848
|
+
sig do
|
849
|
+
returns(
|
850
|
+
T.nilable(
|
851
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::Status::OrSymbol
|
852
|
+
)
|
853
|
+
)
|
854
|
+
end
|
855
|
+
attr_reader :status
|
856
|
+
|
857
|
+
sig do
|
858
|
+
params(
|
859
|
+
status:
|
860
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::Status::OrSymbol
|
861
|
+
).void
|
862
|
+
end
|
863
|
+
attr_writer :status
|
864
|
+
|
865
|
+
# Specifies a ledger transaction object that will be created with the payment
|
866
|
+
# order. If the ledger transaction cannot be created, then the payment order
|
867
|
+
# creation will fail. The resulting ledger transaction will mirror the status of
|
868
|
+
# the payment order.
|
869
|
+
sig do
|
870
|
+
params(
|
871
|
+
ledger_entries:
|
872
|
+
T::Array[
|
873
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerEntry::OrHash
|
874
|
+
],
|
875
|
+
description: T.nilable(String),
|
876
|
+
effective_at: Time,
|
877
|
+
effective_date: Date,
|
878
|
+
external_id: String,
|
879
|
+
ledgerable_id: String,
|
880
|
+
ledgerable_type:
|
881
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::OrSymbol,
|
882
|
+
metadata: T::Hash[Symbol, String],
|
883
|
+
status:
|
884
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::Status::OrSymbol
|
885
|
+
).returns(T.attached_class)
|
886
|
+
end
|
887
|
+
def self.new(
|
888
|
+
# An array of ledger entry objects.
|
889
|
+
ledger_entries:,
|
890
|
+
# An optional description for internal use.
|
891
|
+
description: nil,
|
892
|
+
# The timestamp (ISO8601 format) at which the ledger transaction happened for
|
893
|
+
# reporting purposes.
|
894
|
+
effective_at: nil,
|
895
|
+
# The date (YYYY-MM-DD) on which the ledger transaction happened for reporting
|
896
|
+
# purposes.
|
897
|
+
effective_date: nil,
|
898
|
+
# A unique string to represent the ledger transaction. Only one pending or posted
|
899
|
+
# ledger transaction may have this ID in the ledger.
|
900
|
+
external_id: nil,
|
901
|
+
# If the ledger transaction can be reconciled to another object in Modern
|
902
|
+
# Treasury, the id will be populated here, otherwise null.
|
903
|
+
ledgerable_id: nil,
|
904
|
+
# If the ledger transaction can be reconciled to another object in Modern
|
905
|
+
# Treasury, the type will be populated here, otherwise null. This can be one of
|
906
|
+
# payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
|
907
|
+
# reversal.
|
908
|
+
ledgerable_type: nil,
|
909
|
+
# Additional data represented as key-value pairs. Both the key and value must be
|
910
|
+
# strings.
|
911
|
+
metadata: nil,
|
912
|
+
# To post a ledger transaction at creation, use `posted`.
|
913
|
+
status: nil
|
914
|
+
)
|
915
|
+
end
|
916
|
+
|
917
|
+
sig do
|
918
|
+
override.returns(
|
919
|
+
{
|
920
|
+
ledger_entries:
|
921
|
+
T::Array[
|
922
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerEntry
|
923
|
+
],
|
924
|
+
description: T.nilable(String),
|
925
|
+
effective_at: Time,
|
926
|
+
effective_date: Date,
|
927
|
+
external_id: String,
|
928
|
+
ledgerable_id: String,
|
929
|
+
ledgerable_type:
|
930
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::OrSymbol,
|
931
|
+
metadata: T::Hash[Symbol, String],
|
932
|
+
status:
|
933
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::Status::OrSymbol
|
934
|
+
}
|
935
|
+
)
|
936
|
+
end
|
937
|
+
def to_hash
|
938
|
+
end
|
939
|
+
|
940
|
+
class LedgerEntry < ModernTreasury::Internal::Type::BaseModel
|
941
|
+
OrHash =
|
942
|
+
T.type_alias do
|
943
|
+
T.any(
|
944
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerEntry,
|
945
|
+
ModernTreasury::Internal::AnyHash
|
946
|
+
)
|
947
|
+
end
|
948
|
+
|
949
|
+
# Value in specified currency's smallest unit. e.g. $10 would be represented
|
950
|
+
# as 1000. Can be any integer up to 36 digits.
|
951
|
+
sig { returns(Integer) }
|
952
|
+
attr_accessor :amount
|
953
|
+
|
954
|
+
# One of `credit`, `debit`. Describes the direction money is flowing in the
|
955
|
+
# transaction. A `credit` moves money from your account to someone else's. A
|
956
|
+
# `debit` pulls money from someone else's account to your own. Note that wire,
|
957
|
+
# rtp, and check payments will always be `credit`.
|
958
|
+
sig { returns(ModernTreasury::TransactionDirection::OrSymbol) }
|
959
|
+
attr_accessor :direction
|
960
|
+
|
961
|
+
# The ledger account that this ledger entry is associated with.
|
962
|
+
sig { returns(String) }
|
963
|
+
attr_accessor :ledger_account_id
|
964
|
+
|
965
|
+
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
|
966
|
+
# account’s available balance. If any of these conditions would be false after the
|
967
|
+
# transaction is created, the entire call will fail with error code 422.
|
968
|
+
sig { returns(T.nilable(T::Hash[Symbol, Integer])) }
|
969
|
+
attr_accessor :available_balance_amount
|
970
|
+
|
971
|
+
# Lock version of the ledger account. This can be passed when creating a ledger
|
972
|
+
# transaction to only succeed if no ledger transactions have posted since the
|
973
|
+
# given version. See our post about Designing the Ledgers API with Optimistic
|
974
|
+
# Locking for more details.
|
975
|
+
sig { returns(T.nilable(Integer)) }
|
976
|
+
attr_accessor :lock_version
|
977
|
+
|
978
|
+
# Additional data represented as key-value pairs. Both the key and value must be
|
979
|
+
# strings.
|
980
|
+
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
981
|
+
attr_reader :metadata
|
982
|
+
|
983
|
+
sig { params(metadata: T::Hash[Symbol, String]).void }
|
984
|
+
attr_writer :metadata
|
985
|
+
|
986
|
+
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
|
987
|
+
# account’s pending balance. If any of these conditions would be false after the
|
988
|
+
# transaction is created, the entire call will fail with error code 422.
|
989
|
+
sig { returns(T.nilable(T::Hash[Symbol, Integer])) }
|
990
|
+
attr_accessor :pending_balance_amount
|
991
|
+
|
992
|
+
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
|
993
|
+
# account’s posted balance. If any of these conditions would be false after the
|
994
|
+
# transaction is created, the entire call will fail with error code 422.
|
995
|
+
sig { returns(T.nilable(T::Hash[Symbol, Integer])) }
|
996
|
+
attr_accessor :posted_balance_amount
|
997
|
+
|
998
|
+
# If true, response will include the balance of the associated ledger account for
|
999
|
+
# the entry.
|
1000
|
+
sig { returns(T.nilable(T::Boolean)) }
|
1001
|
+
attr_accessor :show_resulting_ledger_account_balances
|
1002
|
+
|
1003
|
+
sig do
|
1004
|
+
params(
|
1005
|
+
amount: Integer,
|
1006
|
+
direction: ModernTreasury::TransactionDirection::OrSymbol,
|
1007
|
+
ledger_account_id: String,
|
1008
|
+
available_balance_amount: T.nilable(T::Hash[Symbol, Integer]),
|
1009
|
+
lock_version: T.nilable(Integer),
|
1010
|
+
metadata: T::Hash[Symbol, String],
|
1011
|
+
pending_balance_amount: T.nilable(T::Hash[Symbol, Integer]),
|
1012
|
+
posted_balance_amount: T.nilable(T::Hash[Symbol, Integer]),
|
1013
|
+
show_resulting_ledger_account_balances: T.nilable(T::Boolean)
|
1014
|
+
).returns(T.attached_class)
|
1015
|
+
end
|
1016
|
+
def self.new(
|
1017
|
+
# Value in specified currency's smallest unit. e.g. $10 would be represented
|
1018
|
+
# as 1000. Can be any integer up to 36 digits.
|
1019
|
+
amount:,
|
1020
|
+
# One of `credit`, `debit`. Describes the direction money is flowing in the
|
1021
|
+
# transaction. A `credit` moves money from your account to someone else's. A
|
1022
|
+
# `debit` pulls money from someone else's account to your own. Note that wire,
|
1023
|
+
# rtp, and check payments will always be `credit`.
|
1024
|
+
direction:,
|
1025
|
+
# The ledger account that this ledger entry is associated with.
|
1026
|
+
ledger_account_id:,
|
1027
|
+
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
|
1028
|
+
# account’s available balance. If any of these conditions would be false after the
|
1029
|
+
# transaction is created, the entire call will fail with error code 422.
|
1030
|
+
available_balance_amount: nil,
|
1031
|
+
# Lock version of the ledger account. This can be passed when creating a ledger
|
1032
|
+
# transaction to only succeed if no ledger transactions have posted since the
|
1033
|
+
# given version. See our post about Designing the Ledgers API with Optimistic
|
1034
|
+
# Locking for more details.
|
1035
|
+
lock_version: nil,
|
1036
|
+
# Additional data represented as key-value pairs. Both the key and value must be
|
1037
|
+
# strings.
|
1038
|
+
metadata: nil,
|
1039
|
+
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
|
1040
|
+
# account’s pending balance. If any of these conditions would be false after the
|
1041
|
+
# transaction is created, the entire call will fail with error code 422.
|
1042
|
+
pending_balance_amount: nil,
|
1043
|
+
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
|
1044
|
+
# account’s posted balance. If any of these conditions would be false after the
|
1045
|
+
# transaction is created, the entire call will fail with error code 422.
|
1046
|
+
posted_balance_amount: nil,
|
1047
|
+
# If true, response will include the balance of the associated ledger account for
|
1048
|
+
# the entry.
|
1049
|
+
show_resulting_ledger_account_balances: nil
|
1050
|
+
)
|
1051
|
+
end
|
1052
|
+
|
1053
|
+
sig do
|
1054
|
+
override.returns(
|
1055
|
+
{
|
1056
|
+
amount: Integer,
|
1057
|
+
direction: ModernTreasury::TransactionDirection::OrSymbol,
|
1058
|
+
ledger_account_id: String,
|
1059
|
+
available_balance_amount: T.nilable(T::Hash[Symbol, Integer]),
|
1060
|
+
lock_version: T.nilable(Integer),
|
1061
|
+
metadata: T::Hash[Symbol, String],
|
1062
|
+
pending_balance_amount: T.nilable(T::Hash[Symbol, Integer]),
|
1063
|
+
posted_balance_amount: T.nilable(T::Hash[Symbol, Integer]),
|
1064
|
+
show_resulting_ledger_account_balances: T.nilable(T::Boolean)
|
1065
|
+
}
|
1066
|
+
)
|
1067
|
+
end
|
1068
|
+
def to_hash
|
1069
|
+
end
|
1070
|
+
end
|
1071
|
+
|
1072
|
+
# If the ledger transaction can be reconciled to another object in Modern
|
1073
|
+
# Treasury, the type will be populated here, otherwise null. This can be one of
|
1074
|
+
# payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
|
1075
|
+
# reversal.
|
1076
|
+
module LedgerableType
|
1077
|
+
extend ModernTreasury::Internal::Type::Enum
|
1078
|
+
|
1079
|
+
TaggedSymbol =
|
1080
|
+
T.type_alias do
|
1081
|
+
T.all(
|
1082
|
+
Symbol,
|
1083
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType
|
1084
|
+
)
|
1085
|
+
end
|
1086
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1087
|
+
|
1088
|
+
EXPECTED_PAYMENT =
|
1089
|
+
T.let(
|
1090
|
+
:expected_payment,
|
1091
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::TaggedSymbol
|
1092
|
+
)
|
1093
|
+
INCOMING_PAYMENT_DETAIL =
|
1094
|
+
T.let(
|
1095
|
+
:incoming_payment_detail,
|
1096
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::TaggedSymbol
|
1097
|
+
)
|
1098
|
+
PAPER_ITEM =
|
1099
|
+
T.let(
|
1100
|
+
:paper_item,
|
1101
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::TaggedSymbol
|
1102
|
+
)
|
1103
|
+
PAYMENT_ORDER =
|
1104
|
+
T.let(
|
1105
|
+
:payment_order,
|
1106
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::TaggedSymbol
|
1107
|
+
)
|
1108
|
+
RETURN =
|
1109
|
+
T.let(
|
1110
|
+
:return,
|
1111
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::TaggedSymbol
|
1112
|
+
)
|
1113
|
+
REVERSAL =
|
1114
|
+
T.let(
|
1115
|
+
:reversal,
|
1116
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::TaggedSymbol
|
1117
|
+
)
|
1118
|
+
|
1119
|
+
sig do
|
1120
|
+
override.returns(
|
1121
|
+
T::Array[
|
1122
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::TaggedSymbol
|
1123
|
+
]
|
1124
|
+
)
|
1125
|
+
end
|
1126
|
+
def self.values
|
1127
|
+
end
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
# To post a ledger transaction at creation, use `posted`.
|
1131
|
+
module Status
|
1132
|
+
extend ModernTreasury::Internal::Type::Enum
|
1133
|
+
|
1134
|
+
TaggedSymbol =
|
1135
|
+
T.type_alias do
|
1136
|
+
T.all(
|
1137
|
+
Symbol,
|
1138
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::Status
|
1139
|
+
)
|
1140
|
+
end
|
1141
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1142
|
+
|
1143
|
+
ARCHIVED =
|
1144
|
+
T.let(
|
1145
|
+
:archived,
|
1146
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::Status::TaggedSymbol
|
1147
|
+
)
|
1148
|
+
PENDING =
|
1149
|
+
T.let(
|
1150
|
+
:pending,
|
1151
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::Status::TaggedSymbol
|
1152
|
+
)
|
1153
|
+
POSTED =
|
1154
|
+
T.let(
|
1155
|
+
:posted,
|
1156
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::Status::TaggedSymbol
|
1157
|
+
)
|
1158
|
+
|
1159
|
+
sig do
|
1160
|
+
override.returns(
|
1161
|
+
T::Array[
|
1162
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LedgerTransaction::Status::TaggedSymbol
|
1163
|
+
]
|
1164
|
+
)
|
1165
|
+
end
|
1166
|
+
def self.values
|
1167
|
+
end
|
1168
|
+
end
|
1169
|
+
end
|
1170
|
+
|
1171
|
+
class LineItem < ModernTreasury::Internal::Type::BaseModel
|
1172
|
+
OrHash =
|
1173
|
+
T.type_alias do
|
1174
|
+
T.any(
|
1175
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::LineItem,
|
1176
|
+
ModernTreasury::Internal::AnyHash
|
1177
|
+
)
|
1178
|
+
end
|
1179
|
+
|
1180
|
+
# Value in specified currency's smallest unit. e.g. $10 would be represented
|
1181
|
+
# as 1000.
|
1182
|
+
sig { returns(Integer) }
|
1183
|
+
attr_accessor :amount
|
1184
|
+
|
1185
|
+
# The ID of one of your accounting categories. Note that these will only be
|
1186
|
+
# accessible if your accounting system has been connected.
|
1187
|
+
sig { returns(T.nilable(String)) }
|
1188
|
+
attr_accessor :accounting_category_id
|
1189
|
+
|
1190
|
+
# A free-form description of the line item.
|
1191
|
+
sig { returns(T.nilable(String)) }
|
1192
|
+
attr_accessor :description
|
1193
|
+
|
1194
|
+
# Additional data represented as key-value pairs. Both the key and value must be
|
1195
|
+
# strings.
|
1196
|
+
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
1197
|
+
attr_reader :metadata
|
1198
|
+
|
1199
|
+
sig { params(metadata: T::Hash[Symbol, String]).void }
|
1200
|
+
attr_writer :metadata
|
1201
|
+
|
1202
|
+
sig do
|
1203
|
+
params(
|
1204
|
+
amount: Integer,
|
1205
|
+
accounting_category_id: T.nilable(String),
|
1206
|
+
description: T.nilable(String),
|
1207
|
+
metadata: T::Hash[Symbol, String]
|
1208
|
+
).returns(T.attached_class)
|
1209
|
+
end
|
1210
|
+
def self.new(
|
1211
|
+
# Value in specified currency's smallest unit. e.g. $10 would be represented
|
1212
|
+
# as 1000.
|
1213
|
+
amount:,
|
1214
|
+
# The ID of one of your accounting categories. Note that these will only be
|
1215
|
+
# accessible if your accounting system has been connected.
|
1216
|
+
accounting_category_id: nil,
|
1217
|
+
# A free-form description of the line item.
|
1218
|
+
description: nil,
|
1219
|
+
# Additional data represented as key-value pairs. Both the key and value must be
|
1220
|
+
# strings.
|
1221
|
+
metadata: nil
|
1222
|
+
)
|
1223
|
+
end
|
1224
|
+
|
1225
|
+
sig do
|
1226
|
+
override.returns(
|
1227
|
+
{
|
1228
|
+
amount: Integer,
|
1229
|
+
accounting_category_id: T.nilable(String),
|
1230
|
+
description: T.nilable(String),
|
1231
|
+
metadata: T::Hash[Symbol, String]
|
1232
|
+
}
|
1233
|
+
)
|
1234
|
+
end
|
1235
|
+
def to_hash
|
1236
|
+
end
|
1237
|
+
end
|
1238
|
+
|
1239
|
+
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
1240
|
+
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
1241
|
+
# an overnight check rather than standard mail.
|
1242
|
+
module Priority
|
1243
|
+
extend ModernTreasury::Internal::Type::Enum
|
1244
|
+
|
1245
|
+
TaggedSymbol =
|
1246
|
+
T.type_alias do
|
1247
|
+
T.all(
|
1248
|
+
Symbol,
|
1249
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Priority
|
1250
|
+
)
|
1251
|
+
end
|
1252
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1253
|
+
|
1254
|
+
HIGH =
|
1255
|
+
T.let(
|
1256
|
+
:high,
|
1257
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Priority::TaggedSymbol
|
1258
|
+
)
|
1259
|
+
NORMAL =
|
1260
|
+
T.let(
|
1261
|
+
:normal,
|
1262
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Priority::TaggedSymbol
|
1263
|
+
)
|
1264
|
+
|
1265
|
+
sig do
|
1266
|
+
override.returns(
|
1267
|
+
T::Array[
|
1268
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Priority::TaggedSymbol
|
1269
|
+
]
|
1270
|
+
)
|
1271
|
+
end
|
1272
|
+
def self.values
|
1273
|
+
end
|
1274
|
+
end
|
1275
|
+
|
1276
|
+
class ReceivingAccount < ModernTreasury::Internal::Type::BaseModel
|
1277
|
+
OrHash =
|
1278
|
+
T.type_alias do
|
1279
|
+
T.any(
|
1280
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount,
|
1281
|
+
ModernTreasury::Internal::AnyHash
|
1282
|
+
)
|
1283
|
+
end
|
1284
|
+
|
1285
|
+
sig do
|
1286
|
+
returns(
|
1287
|
+
T.nilable(
|
1288
|
+
T::Array[
|
1289
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail
|
1290
|
+
]
|
1291
|
+
)
|
1292
|
+
)
|
1293
|
+
end
|
1294
|
+
attr_reader :account_details
|
1295
|
+
|
1296
|
+
sig do
|
1297
|
+
params(
|
1298
|
+
account_details:
|
1299
|
+
T::Array[
|
1300
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::OrHash
|
1301
|
+
]
|
1302
|
+
).void
|
1303
|
+
end
|
1304
|
+
attr_writer :account_details
|
1305
|
+
|
1306
|
+
# Can be `checking`, `savings` or `other`.
|
1307
|
+
sig do
|
1308
|
+
returns(T.nilable(ModernTreasury::ExternalAccountType::OrSymbol))
|
1309
|
+
end
|
1310
|
+
attr_reader :account_type
|
1311
|
+
|
1312
|
+
sig do
|
1313
|
+
params(
|
1314
|
+
account_type: ModernTreasury::ExternalAccountType::OrSymbol
|
1315
|
+
).void
|
1316
|
+
end
|
1317
|
+
attr_writer :account_type
|
1318
|
+
|
1319
|
+
sig do
|
1320
|
+
returns(
|
1321
|
+
T.nilable(
|
1322
|
+
T::Array[
|
1323
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail
|
1324
|
+
]
|
1325
|
+
)
|
1326
|
+
)
|
1327
|
+
end
|
1328
|
+
attr_reader :contact_details
|
1329
|
+
|
1330
|
+
sig do
|
1331
|
+
params(
|
1332
|
+
contact_details:
|
1333
|
+
T::Array[
|
1334
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::OrHash
|
1335
|
+
]
|
1336
|
+
).void
|
1337
|
+
end
|
1338
|
+
attr_writer :contact_details
|
1339
|
+
|
1340
|
+
# Specifies a ledger account object that will be created with the external
|
1341
|
+
# account. The resulting ledger account is linked to the external account for
|
1342
|
+
# auto-ledgering Payment objects. See
|
1343
|
+
# https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
|
1344
|
+
# for more details.
|
1345
|
+
sig do
|
1346
|
+
returns(
|
1347
|
+
T.nilable(
|
1348
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount
|
1349
|
+
)
|
1350
|
+
)
|
1351
|
+
end
|
1352
|
+
attr_reader :ledger_account
|
1353
|
+
|
1354
|
+
sig do
|
1355
|
+
params(
|
1356
|
+
ledger_account:
|
1357
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::OrHash
|
1358
|
+
).void
|
1359
|
+
end
|
1360
|
+
attr_writer :ledger_account
|
1361
|
+
|
1362
|
+
# Additional data represented as key-value pairs. Both the key and value must be
|
1363
|
+
# strings.
|
1364
|
+
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
1365
|
+
attr_reader :metadata
|
1366
|
+
|
1367
|
+
sig { params(metadata: T::Hash[Symbol, String]).void }
|
1368
|
+
attr_writer :metadata
|
1369
|
+
|
1370
|
+
# A nickname for the external account. This is only for internal usage and won't
|
1371
|
+
# affect any payments
|
1372
|
+
sig { returns(T.nilable(String)) }
|
1373
|
+
attr_accessor :name
|
1374
|
+
|
1375
|
+
# Required if receiving wire payments.
|
1376
|
+
sig do
|
1377
|
+
returns(
|
1378
|
+
T.nilable(
|
1379
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyAddress
|
1380
|
+
)
|
1381
|
+
)
|
1382
|
+
end
|
1383
|
+
attr_reader :party_address
|
1384
|
+
|
1385
|
+
sig do
|
1386
|
+
params(
|
1387
|
+
party_address:
|
1388
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyAddress::OrHash
|
1389
|
+
).void
|
1390
|
+
end
|
1391
|
+
attr_writer :party_address
|
1392
|
+
|
1393
|
+
sig { returns(T.nilable(String)) }
|
1394
|
+
attr_reader :party_identifier
|
1395
|
+
|
1396
|
+
sig { params(party_identifier: String).void }
|
1397
|
+
attr_writer :party_identifier
|
1398
|
+
|
1399
|
+
# If this value isn't provided, it will be inherited from the counterparty's name.
|
1400
|
+
sig { returns(T.nilable(String)) }
|
1401
|
+
attr_reader :party_name
|
1402
|
+
|
1403
|
+
sig { params(party_name: String).void }
|
1404
|
+
attr_writer :party_name
|
1405
|
+
|
1406
|
+
# Either `individual` or `business`.
|
1407
|
+
sig do
|
1408
|
+
returns(
|
1409
|
+
T.nilable(
|
1410
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType::OrSymbol
|
1411
|
+
)
|
1412
|
+
)
|
1413
|
+
end
|
1414
|
+
attr_accessor :party_type
|
1415
|
+
|
1416
|
+
# If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
|
1417
|
+
# you can pass the processor token in this field.
|
1418
|
+
sig { returns(T.nilable(String)) }
|
1419
|
+
attr_reader :plaid_processor_token
|
1420
|
+
|
1421
|
+
sig { params(plaid_processor_token: String).void }
|
1422
|
+
attr_writer :plaid_processor_token
|
1423
|
+
|
1424
|
+
sig do
|
1425
|
+
returns(
|
1426
|
+
T.nilable(
|
1427
|
+
T::Array[
|
1428
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail
|
1429
|
+
]
|
1430
|
+
)
|
1431
|
+
)
|
1432
|
+
end
|
1433
|
+
attr_reader :routing_details
|
1434
|
+
|
1435
|
+
sig do
|
1436
|
+
params(
|
1437
|
+
routing_details:
|
1438
|
+
T::Array[
|
1439
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::OrHash
|
1440
|
+
]
|
1441
|
+
).void
|
1442
|
+
end
|
1443
|
+
attr_writer :routing_details
|
1444
|
+
|
1445
|
+
# Either `receiving_account` or `receiving_account_id` must be present. When using
|
1446
|
+
# `receiving_account_id`, you may pass the id of an external account or an
|
1447
|
+
# internal account.
|
1448
|
+
sig do
|
1449
|
+
params(
|
1450
|
+
account_details:
|
1451
|
+
T::Array[
|
1452
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::OrHash
|
1453
|
+
],
|
1454
|
+
account_type: ModernTreasury::ExternalAccountType::OrSymbol,
|
1455
|
+
contact_details:
|
1456
|
+
T::Array[
|
1457
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::OrHash
|
1458
|
+
],
|
1459
|
+
ledger_account:
|
1460
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::OrHash,
|
1461
|
+
metadata: T::Hash[Symbol, String],
|
1462
|
+
name: T.nilable(String),
|
1463
|
+
party_address:
|
1464
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyAddress::OrHash,
|
1465
|
+
party_identifier: String,
|
1466
|
+
party_name: String,
|
1467
|
+
party_type:
|
1468
|
+
T.nilable(
|
1469
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType::OrSymbol
|
1470
|
+
),
|
1471
|
+
plaid_processor_token: String,
|
1472
|
+
routing_details:
|
1473
|
+
T::Array[
|
1474
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::OrHash
|
1475
|
+
]
|
1476
|
+
).returns(T.attached_class)
|
1477
|
+
end
|
1478
|
+
def self.new(
|
1479
|
+
account_details: nil,
|
1480
|
+
# Can be `checking`, `savings` or `other`.
|
1481
|
+
account_type: nil,
|
1482
|
+
contact_details: nil,
|
1483
|
+
# Specifies a ledger account object that will be created with the external
|
1484
|
+
# account. The resulting ledger account is linked to the external account for
|
1485
|
+
# auto-ledgering Payment objects. See
|
1486
|
+
# https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
|
1487
|
+
# for more details.
|
1488
|
+
ledger_account: nil,
|
1489
|
+
# Additional data represented as key-value pairs. Both the key and value must be
|
1490
|
+
# strings.
|
1491
|
+
metadata: nil,
|
1492
|
+
# A nickname for the external account. This is only for internal usage and won't
|
1493
|
+
# affect any payments
|
1494
|
+
name: nil,
|
1495
|
+
# Required if receiving wire payments.
|
1496
|
+
party_address: nil,
|
1497
|
+
party_identifier: nil,
|
1498
|
+
# If this value isn't provided, it will be inherited from the counterparty's name.
|
1499
|
+
party_name: nil,
|
1500
|
+
# Either `individual` or `business`.
|
1501
|
+
party_type: nil,
|
1502
|
+
# If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
|
1503
|
+
# you can pass the processor token in this field.
|
1504
|
+
plaid_processor_token: nil,
|
1505
|
+
routing_details: nil
|
1506
|
+
)
|
1507
|
+
end
|
1508
|
+
|
1509
|
+
sig do
|
1510
|
+
override.returns(
|
1511
|
+
{
|
1512
|
+
account_details:
|
1513
|
+
T::Array[
|
1514
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail
|
1515
|
+
],
|
1516
|
+
account_type: ModernTreasury::ExternalAccountType::OrSymbol,
|
1517
|
+
contact_details:
|
1518
|
+
T::Array[
|
1519
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail
|
1520
|
+
],
|
1521
|
+
ledger_account:
|
1522
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount,
|
1523
|
+
metadata: T::Hash[Symbol, String],
|
1524
|
+
name: T.nilable(String),
|
1525
|
+
party_address:
|
1526
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyAddress,
|
1527
|
+
party_identifier: String,
|
1528
|
+
party_name: String,
|
1529
|
+
party_type:
|
1530
|
+
T.nilable(
|
1531
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType::OrSymbol
|
1532
|
+
),
|
1533
|
+
plaid_processor_token: String,
|
1534
|
+
routing_details:
|
1535
|
+
T::Array[
|
1536
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail
|
1537
|
+
]
|
1538
|
+
}
|
1539
|
+
)
|
1540
|
+
end
|
1541
|
+
def to_hash
|
1542
|
+
end
|
1543
|
+
|
1544
|
+
class AccountDetail < ModernTreasury::Internal::Type::BaseModel
|
1545
|
+
OrHash =
|
1546
|
+
T.type_alias do
|
1547
|
+
T.any(
|
1548
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail,
|
1549
|
+
ModernTreasury::Internal::AnyHash
|
1550
|
+
)
|
1551
|
+
end
|
1552
|
+
|
1553
|
+
sig { returns(String) }
|
1554
|
+
attr_accessor :account_number
|
1555
|
+
|
1556
|
+
sig do
|
1557
|
+
returns(
|
1558
|
+
T.nilable(
|
1559
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::OrSymbol
|
1560
|
+
)
|
1561
|
+
)
|
1562
|
+
end
|
1563
|
+
attr_reader :account_number_type
|
1564
|
+
|
1565
|
+
sig do
|
1566
|
+
params(
|
1567
|
+
account_number_type:
|
1568
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::OrSymbol
|
1569
|
+
).void
|
1570
|
+
end
|
1571
|
+
attr_writer :account_number_type
|
1572
|
+
|
1573
|
+
sig do
|
1574
|
+
params(
|
1575
|
+
account_number: String,
|
1576
|
+
account_number_type:
|
1577
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::OrSymbol
|
1578
|
+
).returns(T.attached_class)
|
1579
|
+
end
|
1580
|
+
def self.new(account_number:, account_number_type: nil)
|
1581
|
+
end
|
1582
|
+
|
1583
|
+
sig do
|
1584
|
+
override.returns(
|
1585
|
+
{
|
1586
|
+
account_number: String,
|
1587
|
+
account_number_type:
|
1588
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::OrSymbol
|
1589
|
+
}
|
1590
|
+
)
|
1591
|
+
end
|
1592
|
+
def to_hash
|
1593
|
+
end
|
1594
|
+
|
1595
|
+
module AccountNumberType
|
1596
|
+
extend ModernTreasury::Internal::Type::Enum
|
1597
|
+
|
1598
|
+
TaggedSymbol =
|
1599
|
+
T.type_alias do
|
1600
|
+
T.all(
|
1601
|
+
Symbol,
|
1602
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType
|
1603
|
+
)
|
1604
|
+
end
|
1605
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1606
|
+
|
1607
|
+
AU_NUMBER =
|
1608
|
+
T.let(
|
1609
|
+
:au_number,
|
1610
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
|
1611
|
+
)
|
1612
|
+
CLABE =
|
1613
|
+
T.let(
|
1614
|
+
:clabe,
|
1615
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
|
1616
|
+
)
|
1617
|
+
HK_NUMBER =
|
1618
|
+
T.let(
|
1619
|
+
:hk_number,
|
1620
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
|
1621
|
+
)
|
1622
|
+
IBAN =
|
1623
|
+
T.let(
|
1624
|
+
:iban,
|
1625
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
|
1626
|
+
)
|
1627
|
+
ID_NUMBER =
|
1628
|
+
T.let(
|
1629
|
+
:id_number,
|
1630
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
|
1631
|
+
)
|
1632
|
+
NZ_NUMBER =
|
1633
|
+
T.let(
|
1634
|
+
:nz_number,
|
1635
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
|
1636
|
+
)
|
1637
|
+
OTHER =
|
1638
|
+
T.let(
|
1639
|
+
:other,
|
1640
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
|
1641
|
+
)
|
1642
|
+
PAN =
|
1643
|
+
T.let(
|
1644
|
+
:pan,
|
1645
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
|
1646
|
+
)
|
1647
|
+
SG_NUMBER =
|
1648
|
+
T.let(
|
1649
|
+
:sg_number,
|
1650
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
|
1651
|
+
)
|
1652
|
+
WALLET_ADDRESS =
|
1653
|
+
T.let(
|
1654
|
+
:wallet_address,
|
1655
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
|
1656
|
+
)
|
1657
|
+
|
1658
|
+
sig do
|
1659
|
+
override.returns(
|
1660
|
+
T::Array[
|
1661
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
|
1662
|
+
]
|
1663
|
+
)
|
1664
|
+
end
|
1665
|
+
def self.values
|
1666
|
+
end
|
1667
|
+
end
|
1668
|
+
end
|
1669
|
+
|
1670
|
+
class ContactDetail < ModernTreasury::Internal::Type::BaseModel
|
1671
|
+
OrHash =
|
1672
|
+
T.type_alias do
|
1673
|
+
T.any(
|
1674
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail,
|
1675
|
+
ModernTreasury::Internal::AnyHash
|
1676
|
+
)
|
1677
|
+
end
|
1678
|
+
|
1679
|
+
sig { returns(T.nilable(String)) }
|
1680
|
+
attr_reader :contact_identifier
|
1681
|
+
|
1682
|
+
sig { params(contact_identifier: String).void }
|
1683
|
+
attr_writer :contact_identifier
|
1684
|
+
|
1685
|
+
sig do
|
1686
|
+
returns(
|
1687
|
+
T.nilable(
|
1688
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType::OrSymbol
|
1689
|
+
)
|
1690
|
+
)
|
1691
|
+
end
|
1692
|
+
attr_reader :contact_identifier_type
|
1693
|
+
|
1694
|
+
sig do
|
1695
|
+
params(
|
1696
|
+
contact_identifier_type:
|
1697
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType::OrSymbol
|
1698
|
+
).void
|
1699
|
+
end
|
1700
|
+
attr_writer :contact_identifier_type
|
1701
|
+
|
1702
|
+
sig do
|
1703
|
+
params(
|
1704
|
+
contact_identifier: String,
|
1705
|
+
contact_identifier_type:
|
1706
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType::OrSymbol
|
1707
|
+
).returns(T.attached_class)
|
1708
|
+
end
|
1709
|
+
def self.new(contact_identifier: nil, contact_identifier_type: nil)
|
1710
|
+
end
|
1711
|
+
|
1712
|
+
sig do
|
1713
|
+
override.returns(
|
1714
|
+
{
|
1715
|
+
contact_identifier: String,
|
1716
|
+
contact_identifier_type:
|
1717
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType::OrSymbol
|
1718
|
+
}
|
1719
|
+
)
|
1720
|
+
end
|
1721
|
+
def to_hash
|
1722
|
+
end
|
1723
|
+
|
1724
|
+
module ContactIdentifierType
|
1725
|
+
extend ModernTreasury::Internal::Type::Enum
|
1726
|
+
|
1727
|
+
TaggedSymbol =
|
1728
|
+
T.type_alias do
|
1729
|
+
T.all(
|
1730
|
+
Symbol,
|
1731
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType
|
1732
|
+
)
|
1733
|
+
end
|
1734
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1735
|
+
|
1736
|
+
EMAIL =
|
1737
|
+
T.let(
|
1738
|
+
:email,
|
1739
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType::TaggedSymbol
|
1740
|
+
)
|
1741
|
+
PHONE_NUMBER =
|
1742
|
+
T.let(
|
1743
|
+
:phone_number,
|
1744
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType::TaggedSymbol
|
1745
|
+
)
|
1746
|
+
WEBSITE =
|
1747
|
+
T.let(
|
1748
|
+
:website,
|
1749
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType::TaggedSymbol
|
1750
|
+
)
|
1751
|
+
|
1752
|
+
sig do
|
1753
|
+
override.returns(
|
1754
|
+
T::Array[
|
1755
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType::TaggedSymbol
|
1756
|
+
]
|
1757
|
+
)
|
1758
|
+
end
|
1759
|
+
def self.values
|
1760
|
+
end
|
1761
|
+
end
|
1762
|
+
end
|
1763
|
+
|
1764
|
+
class LedgerAccount < ModernTreasury::Internal::Type::BaseModel
|
1765
|
+
OrHash =
|
1766
|
+
T.type_alias do
|
1767
|
+
T.any(
|
1768
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount,
|
1769
|
+
ModernTreasury::Internal::AnyHash
|
1770
|
+
)
|
1771
|
+
end
|
1772
|
+
|
1773
|
+
# The currency of the ledger account.
|
1774
|
+
sig { returns(String) }
|
1775
|
+
attr_accessor :currency
|
1776
|
+
|
1777
|
+
# The id of the ledger that this account belongs to.
|
1778
|
+
sig { returns(String) }
|
1779
|
+
attr_accessor :ledger_id
|
1780
|
+
|
1781
|
+
# The name of the ledger account.
|
1782
|
+
sig { returns(String) }
|
1783
|
+
attr_accessor :name
|
1784
|
+
|
1785
|
+
# The normal balance of the ledger account.
|
1786
|
+
sig { returns(ModernTreasury::TransactionDirection::OrSymbol) }
|
1787
|
+
attr_accessor :normal_balance
|
1788
|
+
|
1789
|
+
# The currency exponent of the ledger account.
|
1790
|
+
sig { returns(T.nilable(Integer)) }
|
1791
|
+
attr_accessor :currency_exponent
|
1792
|
+
|
1793
|
+
# The description of the ledger account.
|
1794
|
+
sig { returns(T.nilable(String)) }
|
1795
|
+
attr_accessor :description
|
1796
|
+
|
1797
|
+
# The array of ledger account category ids that this ledger account should be a
|
1798
|
+
# child of.
|
1799
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1800
|
+
attr_reader :ledger_account_category_ids
|
1801
|
+
|
1802
|
+
sig { params(ledger_account_category_ids: T::Array[String]).void }
|
1803
|
+
attr_writer :ledger_account_category_ids
|
1804
|
+
|
1805
|
+
# If the ledger account links to another object in Modern Treasury, the id will be
|
1806
|
+
# populated here, otherwise null.
|
1807
|
+
sig { returns(T.nilable(String)) }
|
1808
|
+
attr_reader :ledgerable_id
|
1809
|
+
|
1810
|
+
sig { params(ledgerable_id: String).void }
|
1811
|
+
attr_writer :ledgerable_id
|
1812
|
+
|
1813
|
+
# If the ledger account links to another object in Modern Treasury, the type will
|
1814
|
+
# be populated here, otherwise null. The value is one of internal_account or
|
1815
|
+
# external_account.
|
1816
|
+
sig do
|
1817
|
+
returns(
|
1818
|
+
T.nilable(
|
1819
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType::OrSymbol
|
1820
|
+
)
|
1821
|
+
)
|
1822
|
+
end
|
1823
|
+
attr_reader :ledgerable_type
|
1824
|
+
|
1825
|
+
sig do
|
1826
|
+
params(
|
1827
|
+
ledgerable_type:
|
1828
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType::OrSymbol
|
1829
|
+
).void
|
1830
|
+
end
|
1831
|
+
attr_writer :ledgerable_type
|
1832
|
+
|
1833
|
+
# Additional data represented as key-value pairs. Both the key and value must be
|
1834
|
+
# strings.
|
1835
|
+
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
1836
|
+
attr_reader :metadata
|
1837
|
+
|
1838
|
+
sig { params(metadata: T::Hash[Symbol, String]).void }
|
1839
|
+
attr_writer :metadata
|
1840
|
+
|
1841
|
+
# Specifies a ledger account object that will be created with the external
|
1842
|
+
# account. The resulting ledger account is linked to the external account for
|
1843
|
+
# auto-ledgering Payment objects. See
|
1844
|
+
# https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
|
1845
|
+
# for more details.
|
1846
|
+
sig do
|
1847
|
+
params(
|
1848
|
+
currency: String,
|
1849
|
+
ledger_id: String,
|
1850
|
+
name: String,
|
1851
|
+
normal_balance: ModernTreasury::TransactionDirection::OrSymbol,
|
1852
|
+
currency_exponent: T.nilable(Integer),
|
1853
|
+
description: T.nilable(String),
|
1854
|
+
ledger_account_category_ids: T::Array[String],
|
1855
|
+
ledgerable_id: String,
|
1856
|
+
ledgerable_type:
|
1857
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType::OrSymbol,
|
1858
|
+
metadata: T::Hash[Symbol, String]
|
1859
|
+
).returns(T.attached_class)
|
1860
|
+
end
|
1861
|
+
def self.new(
|
1862
|
+
# The currency of the ledger account.
|
1863
|
+
currency:,
|
1864
|
+
# The id of the ledger that this account belongs to.
|
1865
|
+
ledger_id:,
|
1866
|
+
# The name of the ledger account.
|
1867
|
+
name:,
|
1868
|
+
# The normal balance of the ledger account.
|
1869
|
+
normal_balance:,
|
1870
|
+
# The currency exponent of the ledger account.
|
1871
|
+
currency_exponent: nil,
|
1872
|
+
# The description of the ledger account.
|
1873
|
+
description: nil,
|
1874
|
+
# The array of ledger account category ids that this ledger account should be a
|
1875
|
+
# child of.
|
1876
|
+
ledger_account_category_ids: nil,
|
1877
|
+
# If the ledger account links to another object in Modern Treasury, the id will be
|
1878
|
+
# populated here, otherwise null.
|
1879
|
+
ledgerable_id: nil,
|
1880
|
+
# If the ledger account links to another object in Modern Treasury, the type will
|
1881
|
+
# be populated here, otherwise null. The value is one of internal_account or
|
1882
|
+
# external_account.
|
1883
|
+
ledgerable_type: nil,
|
1884
|
+
# Additional data represented as key-value pairs. Both the key and value must be
|
1885
|
+
# strings.
|
1886
|
+
metadata: nil
|
1887
|
+
)
|
1888
|
+
end
|
1889
|
+
|
1890
|
+
sig do
|
1891
|
+
override.returns(
|
1892
|
+
{
|
1893
|
+
currency: String,
|
1894
|
+
ledger_id: String,
|
1895
|
+
name: String,
|
1896
|
+
normal_balance: ModernTreasury::TransactionDirection::OrSymbol,
|
1897
|
+
currency_exponent: T.nilable(Integer),
|
1898
|
+
description: T.nilable(String),
|
1899
|
+
ledger_account_category_ids: T::Array[String],
|
1900
|
+
ledgerable_id: String,
|
1901
|
+
ledgerable_type:
|
1902
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType::OrSymbol,
|
1903
|
+
metadata: T::Hash[Symbol, String]
|
1904
|
+
}
|
1905
|
+
)
|
1906
|
+
end
|
1907
|
+
def to_hash
|
1908
|
+
end
|
1909
|
+
|
1910
|
+
# If the ledger account links to another object in Modern Treasury, the type will
|
1911
|
+
# be populated here, otherwise null. The value is one of internal_account or
|
1912
|
+
# external_account.
|
1913
|
+
module LedgerableType
|
1914
|
+
extend ModernTreasury::Internal::Type::Enum
|
1915
|
+
|
1916
|
+
TaggedSymbol =
|
1917
|
+
T.type_alias do
|
1918
|
+
T.all(
|
1919
|
+
Symbol,
|
1920
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType
|
1921
|
+
)
|
1922
|
+
end
|
1923
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1924
|
+
|
1925
|
+
COUNTERPARTY =
|
1926
|
+
T.let(
|
1927
|
+
:counterparty,
|
1928
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType::TaggedSymbol
|
1929
|
+
)
|
1930
|
+
EXTERNAL_ACCOUNT =
|
1931
|
+
T.let(
|
1932
|
+
:external_account,
|
1933
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType::TaggedSymbol
|
1934
|
+
)
|
1935
|
+
INTERNAL_ACCOUNT =
|
1936
|
+
T.let(
|
1937
|
+
:internal_account,
|
1938
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType::TaggedSymbol
|
1939
|
+
)
|
1940
|
+
VIRTUAL_ACCOUNT =
|
1941
|
+
T.let(
|
1942
|
+
:virtual_account,
|
1943
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType::TaggedSymbol
|
1944
|
+
)
|
1945
|
+
|
1946
|
+
sig do
|
1947
|
+
override.returns(
|
1948
|
+
T::Array[
|
1949
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType::TaggedSymbol
|
1950
|
+
]
|
1951
|
+
)
|
1952
|
+
end
|
1953
|
+
def self.values
|
1954
|
+
end
|
1955
|
+
end
|
1956
|
+
end
|
1957
|
+
|
1958
|
+
class PartyAddress < ModernTreasury::Internal::Type::BaseModel
|
1959
|
+
OrHash =
|
1960
|
+
T.type_alias do
|
1961
|
+
T.any(
|
1962
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyAddress,
|
1963
|
+
ModernTreasury::Internal::AnyHash
|
1964
|
+
)
|
1965
|
+
end
|
1966
|
+
|
1967
|
+
# Country code conforms to [ISO 3166-1 alpha-2]
|
1968
|
+
sig { returns(T.nilable(String)) }
|
1969
|
+
attr_accessor :country
|
1970
|
+
|
1971
|
+
sig { returns(T.nilable(String)) }
|
1972
|
+
attr_accessor :line1
|
1973
|
+
|
1974
|
+
sig { returns(T.nilable(String)) }
|
1975
|
+
attr_accessor :line2
|
1976
|
+
|
1977
|
+
# Locality or City.
|
1978
|
+
sig { returns(T.nilable(String)) }
|
1979
|
+
attr_accessor :locality
|
1980
|
+
|
1981
|
+
# The postal code of the address.
|
1982
|
+
sig { returns(T.nilable(String)) }
|
1983
|
+
attr_accessor :postal_code
|
1984
|
+
|
1985
|
+
# Region or State.
|
1986
|
+
sig { returns(T.nilable(String)) }
|
1987
|
+
attr_accessor :region
|
1988
|
+
|
1989
|
+
# Required if receiving wire payments.
|
1990
|
+
sig do
|
1991
|
+
params(
|
1992
|
+
country: T.nilable(String),
|
1993
|
+
line1: T.nilable(String),
|
1994
|
+
line2: T.nilable(String),
|
1995
|
+
locality: T.nilable(String),
|
1996
|
+
postal_code: T.nilable(String),
|
1997
|
+
region: T.nilable(String)
|
1998
|
+
).returns(T.attached_class)
|
1999
|
+
end
|
2000
|
+
def self.new(
|
2001
|
+
# Country code conforms to [ISO 3166-1 alpha-2]
|
2002
|
+
country: nil,
|
2003
|
+
line1: nil,
|
2004
|
+
line2: nil,
|
2005
|
+
# Locality or City.
|
2006
|
+
locality: nil,
|
2007
|
+
# The postal code of the address.
|
2008
|
+
postal_code: nil,
|
2009
|
+
# Region or State.
|
2010
|
+
region: nil
|
2011
|
+
)
|
2012
|
+
end
|
2013
|
+
|
2014
|
+
sig do
|
2015
|
+
override.returns(
|
2016
|
+
{
|
2017
|
+
country: T.nilable(String),
|
2018
|
+
line1: T.nilable(String),
|
2019
|
+
line2: T.nilable(String),
|
2020
|
+
locality: T.nilable(String),
|
2021
|
+
postal_code: T.nilable(String),
|
2022
|
+
region: T.nilable(String)
|
2023
|
+
}
|
2024
|
+
)
|
2025
|
+
end
|
2026
|
+
def to_hash
|
2027
|
+
end
|
2028
|
+
end
|
2029
|
+
|
2030
|
+
# Either `individual` or `business`.
|
2031
|
+
module PartyType
|
2032
|
+
extend ModernTreasury::Internal::Type::Enum
|
2033
|
+
|
2034
|
+
TaggedSymbol =
|
2035
|
+
T.type_alias do
|
2036
|
+
T.all(
|
2037
|
+
Symbol,
|
2038
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType
|
2039
|
+
)
|
2040
|
+
end
|
2041
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
2042
|
+
|
2043
|
+
BUSINESS =
|
2044
|
+
T.let(
|
2045
|
+
:business,
|
2046
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType::TaggedSymbol
|
2047
|
+
)
|
2048
|
+
INDIVIDUAL =
|
2049
|
+
T.let(
|
2050
|
+
:individual,
|
2051
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType::TaggedSymbol
|
2052
|
+
)
|
2053
|
+
|
2054
|
+
sig do
|
2055
|
+
override.returns(
|
2056
|
+
T::Array[
|
2057
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType::TaggedSymbol
|
2058
|
+
]
|
2059
|
+
)
|
2060
|
+
end
|
2061
|
+
def self.values
|
2062
|
+
end
|
2063
|
+
end
|
2064
|
+
|
2065
|
+
class RoutingDetail < ModernTreasury::Internal::Type::BaseModel
|
2066
|
+
OrHash =
|
2067
|
+
T.type_alias do
|
2068
|
+
T.any(
|
2069
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail,
|
2070
|
+
ModernTreasury::Internal::AnyHash
|
2071
|
+
)
|
2072
|
+
end
|
2073
|
+
|
2074
|
+
sig { returns(String) }
|
2075
|
+
attr_accessor :routing_number
|
2076
|
+
|
2077
|
+
sig do
|
2078
|
+
returns(
|
2079
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::OrSymbol
|
2080
|
+
)
|
2081
|
+
end
|
2082
|
+
attr_accessor :routing_number_type
|
2083
|
+
|
2084
|
+
sig do
|
2085
|
+
returns(
|
2086
|
+
T.nilable(
|
2087
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::OrSymbol
|
2088
|
+
)
|
2089
|
+
)
|
2090
|
+
end
|
2091
|
+
attr_reader :payment_type
|
2092
|
+
|
2093
|
+
sig do
|
2094
|
+
params(
|
2095
|
+
payment_type:
|
2096
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::OrSymbol
|
2097
|
+
).void
|
2098
|
+
end
|
2099
|
+
attr_writer :payment_type
|
2100
|
+
|
2101
|
+
sig do
|
2102
|
+
params(
|
2103
|
+
routing_number: String,
|
2104
|
+
routing_number_type:
|
2105
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::OrSymbol,
|
2106
|
+
payment_type:
|
2107
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::OrSymbol
|
2108
|
+
).returns(T.attached_class)
|
2109
|
+
end
|
2110
|
+
def self.new(routing_number:, routing_number_type:, payment_type: nil)
|
2111
|
+
end
|
2112
|
+
|
2113
|
+
sig do
|
2114
|
+
override.returns(
|
2115
|
+
{
|
2116
|
+
routing_number: String,
|
2117
|
+
routing_number_type:
|
2118
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::OrSymbol,
|
2119
|
+
payment_type:
|
2120
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::OrSymbol
|
2121
|
+
}
|
2122
|
+
)
|
2123
|
+
end
|
2124
|
+
def to_hash
|
2125
|
+
end
|
2126
|
+
|
2127
|
+
module RoutingNumberType
|
2128
|
+
extend ModernTreasury::Internal::Type::Enum
|
2129
|
+
|
2130
|
+
TaggedSymbol =
|
2131
|
+
T.type_alias do
|
2132
|
+
T.all(
|
2133
|
+
Symbol,
|
2134
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType
|
2135
|
+
)
|
2136
|
+
end
|
2137
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
2138
|
+
|
2139
|
+
ABA =
|
2140
|
+
T.let(
|
2141
|
+
:aba,
|
2142
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
|
2143
|
+
)
|
2144
|
+
AU_BSB =
|
2145
|
+
T.let(
|
2146
|
+
:au_bsb,
|
2147
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
|
2148
|
+
)
|
2149
|
+
BR_CODIGO =
|
2150
|
+
T.let(
|
2151
|
+
:br_codigo,
|
2152
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
|
2153
|
+
)
|
2154
|
+
CA_CPA =
|
2155
|
+
T.let(
|
2156
|
+
:ca_cpa,
|
2157
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
|
2158
|
+
)
|
2159
|
+
CHIPS =
|
2160
|
+
T.let(
|
2161
|
+
:chips,
|
2162
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
|
2163
|
+
)
|
2164
|
+
CNAPS =
|
2165
|
+
T.let(
|
2166
|
+
:cnaps,
|
2167
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
|
2168
|
+
)
|
2169
|
+
DK_INTERBANK_CLEARING_CODE =
|
2170
|
+
T.let(
|
2171
|
+
:dk_interbank_clearing_code,
|
2172
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
|
2173
|
+
)
|
2174
|
+
GB_SORT_CODE =
|
2175
|
+
T.let(
|
2176
|
+
:gb_sort_code,
|
2177
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
|
2178
|
+
)
|
2179
|
+
HK_INTERBANK_CLEARING_CODE =
|
2180
|
+
T.let(
|
2181
|
+
:hk_interbank_clearing_code,
|
2182
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
|
2183
|
+
)
|
2184
|
+
HU_INTERBANK_CLEARING_CODE =
|
2185
|
+
T.let(
|
2186
|
+
:hu_interbank_clearing_code,
|
2187
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
|
2188
|
+
)
|
2189
|
+
ID_SKNBI_CODE =
|
2190
|
+
T.let(
|
2191
|
+
:id_sknbi_code,
|
2192
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
|
2193
|
+
)
|
2194
|
+
IN_IFSC =
|
2195
|
+
T.let(
|
2196
|
+
:in_ifsc,
|
2197
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
|
2198
|
+
)
|
2199
|
+
JP_ZENGIN_CODE =
|
2200
|
+
T.let(
|
2201
|
+
:jp_zengin_code,
|
2202
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
|
2203
|
+
)
|
2204
|
+
MY_BRANCH_CODE =
|
2205
|
+
T.let(
|
2206
|
+
:my_branch_code,
|
2207
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
|
2208
|
+
)
|
2209
|
+
MX_BANK_IDENTIFIER =
|
2210
|
+
T.let(
|
2211
|
+
:mx_bank_identifier,
|
2212
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
|
2213
|
+
)
|
2214
|
+
NZ_NATIONAL_CLEARING_CODE =
|
2215
|
+
T.let(
|
2216
|
+
:nz_national_clearing_code,
|
2217
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
|
2218
|
+
)
|
2219
|
+
PL_NATIONAL_CLEARING_CODE =
|
2220
|
+
T.let(
|
2221
|
+
:pl_national_clearing_code,
|
2222
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
|
2223
|
+
)
|
2224
|
+
SE_BANKGIRO_CLEARING_CODE =
|
2225
|
+
T.let(
|
2226
|
+
:se_bankgiro_clearing_code,
|
2227
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
|
2228
|
+
)
|
2229
|
+
SG_INTERBANK_CLEARING_CODE =
|
2230
|
+
T.let(
|
2231
|
+
:sg_interbank_clearing_code,
|
2232
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
|
2233
|
+
)
|
2234
|
+
SWIFT =
|
2235
|
+
T.let(
|
2236
|
+
:swift,
|
2237
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
|
2238
|
+
)
|
2239
|
+
ZA_NATIONAL_CLEARING_CODE =
|
2240
|
+
T.let(
|
2241
|
+
:za_national_clearing_code,
|
2242
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
|
2243
|
+
)
|
2244
|
+
|
2245
|
+
sig do
|
2246
|
+
override.returns(
|
2247
|
+
T::Array[
|
2248
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
|
2249
|
+
]
|
2250
|
+
)
|
2251
|
+
end
|
2252
|
+
def self.values
|
2253
|
+
end
|
2254
|
+
end
|
2255
|
+
|
2256
|
+
module PaymentType
|
2257
|
+
extend ModernTreasury::Internal::Type::Enum
|
2258
|
+
|
2259
|
+
TaggedSymbol =
|
2260
|
+
T.type_alias do
|
2261
|
+
T.all(
|
2262
|
+
Symbol,
|
2263
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType
|
2264
|
+
)
|
2265
|
+
end
|
2266
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
2267
|
+
|
2268
|
+
ACH =
|
2269
|
+
T.let(
|
2270
|
+
:ach,
|
2271
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2272
|
+
)
|
2273
|
+
AU_BECS =
|
2274
|
+
T.let(
|
2275
|
+
:au_becs,
|
2276
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2277
|
+
)
|
2278
|
+
BACS =
|
2279
|
+
T.let(
|
2280
|
+
:bacs,
|
2281
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2282
|
+
)
|
2283
|
+
BOOK =
|
2284
|
+
T.let(
|
2285
|
+
:book,
|
2286
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2287
|
+
)
|
2288
|
+
CARD =
|
2289
|
+
T.let(
|
2290
|
+
:card,
|
2291
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2292
|
+
)
|
2293
|
+
CHATS =
|
2294
|
+
T.let(
|
2295
|
+
:chats,
|
2296
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2297
|
+
)
|
2298
|
+
CHECK =
|
2299
|
+
T.let(
|
2300
|
+
:check,
|
2301
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2302
|
+
)
|
2303
|
+
CROSS_BORDER =
|
2304
|
+
T.let(
|
2305
|
+
:cross_border,
|
2306
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2307
|
+
)
|
2308
|
+
DK_NETS =
|
2309
|
+
T.let(
|
2310
|
+
:dk_nets,
|
2311
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2312
|
+
)
|
2313
|
+
EFT =
|
2314
|
+
T.let(
|
2315
|
+
:eft,
|
2316
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2317
|
+
)
|
2318
|
+
HU_ICS =
|
2319
|
+
T.let(
|
2320
|
+
:hu_ics,
|
2321
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2322
|
+
)
|
2323
|
+
INTERAC =
|
2324
|
+
T.let(
|
2325
|
+
:interac,
|
2326
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2327
|
+
)
|
2328
|
+
MASAV =
|
2329
|
+
T.let(
|
2330
|
+
:masav,
|
2331
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2332
|
+
)
|
2333
|
+
MX_CCEN =
|
2334
|
+
T.let(
|
2335
|
+
:mx_ccen,
|
2336
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2337
|
+
)
|
2338
|
+
NEFT =
|
2339
|
+
T.let(
|
2340
|
+
:neft,
|
2341
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2342
|
+
)
|
2343
|
+
NICS =
|
2344
|
+
T.let(
|
2345
|
+
:nics,
|
2346
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2347
|
+
)
|
2348
|
+
NZ_BECS =
|
2349
|
+
T.let(
|
2350
|
+
:nz_becs,
|
2351
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2352
|
+
)
|
2353
|
+
PL_ELIXIR =
|
2354
|
+
T.let(
|
2355
|
+
:pl_elixir,
|
2356
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2357
|
+
)
|
2358
|
+
PROVXCHANGE =
|
2359
|
+
T.let(
|
2360
|
+
:provxchange,
|
2361
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2362
|
+
)
|
2363
|
+
RO_SENT =
|
2364
|
+
T.let(
|
2365
|
+
:ro_sent,
|
2366
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2367
|
+
)
|
2368
|
+
RTP =
|
2369
|
+
T.let(
|
2370
|
+
:rtp,
|
2371
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2372
|
+
)
|
2373
|
+
SE_BANKGIROT =
|
2374
|
+
T.let(
|
2375
|
+
:se_bankgirot,
|
2376
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2377
|
+
)
|
2378
|
+
SEN =
|
2379
|
+
T.let(
|
2380
|
+
:sen,
|
2381
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2382
|
+
)
|
2383
|
+
SEPA =
|
2384
|
+
T.let(
|
2385
|
+
:sepa,
|
2386
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2387
|
+
)
|
2388
|
+
SG_GIRO =
|
2389
|
+
T.let(
|
2390
|
+
:sg_giro,
|
2391
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2392
|
+
)
|
2393
|
+
SIC =
|
2394
|
+
T.let(
|
2395
|
+
:sic,
|
2396
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2397
|
+
)
|
2398
|
+
SIGNET =
|
2399
|
+
T.let(
|
2400
|
+
:signet,
|
2401
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2402
|
+
)
|
2403
|
+
SKNBI =
|
2404
|
+
T.let(
|
2405
|
+
:sknbi,
|
2406
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2407
|
+
)
|
2408
|
+
WIRE =
|
2409
|
+
T.let(
|
2410
|
+
:wire,
|
2411
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2412
|
+
)
|
2413
|
+
ZENGIN =
|
2414
|
+
T.let(
|
2415
|
+
:zengin,
|
2416
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2417
|
+
)
|
2418
|
+
|
2419
|
+
sig do
|
2420
|
+
override.returns(
|
2421
|
+
T::Array[
|
2422
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
|
2423
|
+
]
|
2424
|
+
)
|
2425
|
+
end
|
2426
|
+
def self.values
|
2427
|
+
end
|
2428
|
+
end
|
2429
|
+
end
|
2430
|
+
end
|
2431
|
+
end
|
2432
|
+
end
|
2433
|
+
end
|