modern_treasury 0.1.0.pre.alpha.21 → 0.1.0
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 +1 -1
- data/lib/modern_treasury/client.rb +0 -12
- data/lib/modern_treasury/errors.rb +22 -0
- data/lib/modern_treasury/internal/transport/base_client.rb +11 -3
- data/lib/modern_treasury/internal/type/array_of.rb +6 -1
- data/lib/modern_treasury/internal/type/base_model.rb +81 -27
- data/lib/modern_treasury/internal/type/boolean.rb +7 -1
- data/lib/modern_treasury/internal/type/converter.rb +42 -34
- data/lib/modern_treasury/internal/type/enum.rb +10 -2
- data/lib/modern_treasury/internal/type/file_input.rb +6 -1
- data/lib/modern_treasury/internal/type/hash_of.rb +6 -1
- data/lib/modern_treasury/internal/type/union.rb +12 -7
- data/lib/modern_treasury/internal/type/unknown.rb +7 -1
- data/lib/modern_treasury/models/accounting.rb +30 -0
- data/lib/modern_treasury/models/address.rb +94 -0
- data/lib/modern_treasury/models/address_request.rb +54 -0
- data/lib/modern_treasury/models/bulk_request_create_params.rb +147 -1383
- data/lib/modern_treasury/models/bulk_result.rb +5 -3
- data/lib/modern_treasury/models/child_legal_entity_create.rb +275 -0
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +10 -627
- data/lib/modern_treasury/models/contact_detail.rb +81 -0
- data/lib/modern_treasury/models/contact_detail_create_request.rb +34 -0
- data/lib/modern_treasury/models/counterparty.rb +24 -177
- data/lib/modern_treasury/models/counterparty_create_params.rb +38 -838
- data/lib/modern_treasury/models/counterparty_list_params.rb +9 -1
- data/lib/modern_treasury/models/document.rb +4 -6
- data/lib/modern_treasury/models/document_create_params.rb +0 -2
- data/lib/modern_treasury/models/document_list_params.rb +4 -6
- data/lib/modern_treasury/models/expected_payment.rb +9 -1
- data/lib/modern_treasury/models/expected_payment_create_params.rb +12 -230
- data/lib/modern_treasury/models/expected_payment_list_params.rb +8 -1
- data/lib/modern_treasury/models/expected_payment_update_params.rb +9 -1
- data/lib/modern_treasury/models/external_account.rb +15 -177
- data/lib/modern_treasury/models/external_account_create_params.rb +19 -210
- data/lib/modern_treasury/models/external_account_list_params.rb +9 -1
- data/lib/modern_treasury/models/external_account_update_params.rb +3 -52
- data/lib/modern_treasury/models/foreign_exchange_quote.rb +3 -73
- data/lib/modern_treasury/models/foreign_exchange_rate.rb +71 -0
- data/lib/modern_treasury/models/identification_create_request.rb +86 -0
- data/lib/modern_treasury/models/incoming_payment_detail.rb +1 -0
- data/lib/modern_treasury/models/internal_account.rb +122 -71
- data/lib/modern_treasury/models/internal_account_create_params.rb +138 -1
- data/lib/modern_treasury/models/internal_account_update_account_capability_params.rb +34 -0
- data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +131 -0
- data/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb +23 -0
- data/lib/modern_treasury/models/invoice.rb +13 -82
- data/lib/modern_treasury/models/invoice_create_params.rb +3 -83
- data/lib/modern_treasury/models/invoice_update_params.rb +3 -83
- data/lib/modern_treasury/models/ledger_account.rb +18 -142
- data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +3 -182
- data/lib/modern_treasury/models/ledger_account_category.rb +12 -176
- data/lib/modern_treasury/models/ledger_account_category_list_params.rb +17 -6
- data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +4 -2
- data/lib/modern_treasury/models/ledger_account_create_params.rb +2 -105
- data/lib/modern_treasury/models/ledger_account_create_request.rb +113 -0
- data/lib/modern_treasury/models/ledger_account_list_params.rb +15 -1
- data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +6 -360
- data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +6 -360
- data/lib/modern_treasury/models/ledger_balance.rb +45 -0
- data/lib/modern_treasury/models/ledger_balances.rb +38 -0
- data/lib/modern_treasury/models/ledger_entry.rb +3 -183
- data/lib/modern_treasury/models/ledger_entry_create_request.rb +98 -0
- data/lib/modern_treasury/models/ledger_entry_list_params.rb +48 -8
- data/lib/modern_treasury/models/ledger_transaction.rb +14 -6
- data/lib/modern_treasury/models/ledger_transaction_create_params.rb +2 -212
- data/lib/modern_treasury/models/ledger_transaction_create_request.rb +123 -0
- data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +0 -1
- data/lib/modern_treasury/models/ledger_transaction_list_params.rb +44 -7
- data/lib/modern_treasury/models/ledger_transaction_update_params.rb +5 -104
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +15 -193
- data/lib/modern_treasury/models/legal_entity_address_create_request.rb +78 -0
- data/lib/modern_treasury/models/legal_entity_association.rb +1 -0
- data/lib/modern_treasury/models/legal_entity_association_create_params.rb +4 -448
- data/lib/modern_treasury/models/legal_entity_create_params.rb +10 -618
- data/lib/modern_treasury/models/legal_entity_update_params.rb +6 -165
- data/lib/modern_treasury/models/line_item.rb +3 -29
- data/lib/modern_treasury/models/payment_action_list_params.rb +1 -0
- data/lib/modern_treasury/models/payment_order.rb +34 -111
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +32 -484
- data/lib/modern_treasury/models/payment_order_create_params.rb +32 -486
- data/lib/modern_treasury/models/payment_order_list_params.rb +9 -1
- data/lib/modern_treasury/models/payment_order_update_params.rb +30 -255
- data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +3 -232
- data/lib/modern_treasury/models/payment_reference.rb +11 -2
- data/lib/modern_treasury/models/return_create_params.rb +75 -1
- data/lib/modern_treasury/models/return_list_params.rb +5 -6
- data/lib/modern_treasury/models/return_object.rb +87 -5
- data/lib/modern_treasury/models/routing_detail.rb +4 -93
- data/lib/modern_treasury/models/routing_detail_create_params.rb +1 -0
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +3 -55
- data/lib/modern_treasury/models/transaction.rb +6 -73
- data/lib/modern_treasury/models/transaction_create_params.rb +9 -1
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +9 -2
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +1 -0
- data/lib/modern_treasury/models/virtual_account_create_params.rb +4 -117
- data/lib/modern_treasury/models.rb +31 -24
- data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
- data/lib/modern_treasury/resources/counterparties.rb +20 -14
- data/lib/modern_treasury/resources/expected_payments.rb +10 -4
- data/lib/modern_treasury/resources/external_accounts.rb +23 -17
- data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +2 -2
- data/lib/modern_treasury/resources/internal_accounts.rb +37 -1
- data/lib/modern_treasury/resources/invoices.rb +2 -2
- data/lib/modern_treasury/resources/ledger_account_categories.rb +4 -2
- data/lib/modern_treasury/resources/ledger_accounts.rb +6 -2
- data/lib/modern_treasury/resources/ledger_entries.rb +1 -1
- data/lib/modern_treasury/resources/ledger_transactions.rb +5 -5
- data/lib/modern_treasury/resources/legal_entities.rb +4 -4
- data/lib/modern_treasury/resources/legal_entity_associations.rb +1 -1
- data/lib/modern_treasury/resources/payment_orders/reversals.rb +1 -1
- data/lib/modern_treasury/resources/payment_orders.rb +11 -9
- data/lib/modern_treasury/resources/returns.rb +4 -2
- data/lib/modern_treasury/resources/transactions.rb +3 -1
- data/lib/modern_treasury/resources/virtual_accounts.rb +1 -1
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +16 -15
- data/rbi/modern_treasury/client.rbi +0 -9
- data/rbi/modern_treasury/errors.rbi +16 -0
- data/rbi/modern_treasury/internal/transport/base_client.rbi +1 -1
- data/rbi/modern_treasury/internal/type/boolean.rbi +2 -0
- data/rbi/modern_treasury/internal/type/converter.rbi +15 -15
- data/rbi/modern_treasury/internal/type/union.rbi +5 -0
- data/rbi/modern_treasury/internal/type/unknown.rbi +2 -0
- data/rbi/modern_treasury/models/accounting.rbi +48 -0
- data/rbi/modern_treasury/models/address.rbi +107 -0
- data/rbi/modern_treasury/models/address_request.rbi +76 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +802 -3025
- data/rbi/modern_treasury/models/bulk_result.rbi +2 -0
- data/rbi/modern_treasury/models/child_legal_entity_create.rbi +511 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +17 -1314
- data/rbi/modern_treasury/models/contact_detail.rbi +124 -0
- data/rbi/modern_treasury/models/contact_detail_create_request.rbi +99 -0
- data/rbi/modern_treasury/models/counterparty.rbi +24 -264
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +60 -1726
- data/rbi/modern_treasury/models/counterparty_list_params.rbi +11 -0
- data/rbi/modern_treasury/models/document.rbi +6 -16
- data/rbi/modern_treasury/models/document_create_params.rbi +0 -10
- data/rbi/modern_treasury/models/document_list_params.rbi +6 -16
- data/rbi/modern_treasury/models/expected_payment.rbi +8 -0
- data/rbi/modern_treasury/models/expected_payment_create_params.rbi +12 -419
- data/rbi/modern_treasury/models/expected_payment_list_params.rbi +9 -0
- data/rbi/modern_treasury/models/expected_payment_update_params.rbi +8 -0
- data/rbi/modern_treasury/models/external_account.rbi +15 -244
- data/rbi/modern_treasury/models/external_account_create_params.rbi +25 -400
- data/rbi/modern_treasury/models/external_account_list_params.rbi +11 -0
- data/rbi/modern_treasury/models/external_account_update_params.rbi +4 -86
- data/rbi/modern_treasury/models/foreign_exchange_quote.rbi +4 -99
- data/rbi/modern_treasury/models/foreign_exchange_rate.rbi +96 -0
- data/rbi/modern_treasury/models/identification_create_request.rbi +212 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +5 -0
- data/rbi/modern_treasury/models/internal_account.rbi +332 -120
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +333 -0
- data/rbi/modern_treasury/models/internal_account_update_account_capability_params.rbi +54 -0
- data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +304 -0
- data/rbi/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbi +37 -0
- data/rbi/modern_treasury/models/invoice.rbi +13 -128
- data/rbi/modern_treasury/models/invoice_create_params.rbi +4 -139
- data/rbi/modern_treasury/models/invoice_update_params.rbi +4 -139
- data/rbi/modern_treasury/models/ledger_account.rbi +20 -218
- data/rbi/modern_treasury/models/ledger_account_balance_monitor.rbi +4 -303
- data/rbi/modern_treasury/models/ledger_account_category.rbi +12 -301
- data/rbi/modern_treasury/models/ledger_account_category_list_params.rbi +23 -7
- data/rbi/modern_treasury/models/ledger_account_category_retrieve_params.rbi +6 -3
- data/rbi/modern_treasury/models/ledger_account_create_params.rbi +5 -173
- data/rbi/modern_treasury/models/ledger_account_create_request.rbi +194 -0
- data/rbi/modern_treasury/models/ledger_account_list_params.rbi +22 -0
- data/rbi/modern_treasury/models/ledger_account_statement_create_response.rbi +8 -612
- data/rbi/modern_treasury/models/ledger_account_statement_retrieve_response.rbi +8 -612
- data/rbi/modern_treasury/models/ledger_balance.rbi +66 -0
- data/rbi/modern_treasury/models/ledger_balances.rbi +75 -0
- data/rbi/modern_treasury/models/ledger_entry.rbi +4 -309
- data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +137 -0
- data/rbi/modern_treasury/models/ledger_entry_list_params.rbi +99 -16
- data/rbi/modern_treasury/models/ledger_transaction.rbi +17 -11
- data/rbi/modern_treasury/models/ledger_transaction_create_params.rbi +5 -383
- data/rbi/modern_treasury/models/ledger_transaction_create_request.rbi +258 -0
- data/rbi/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +0 -5
- data/rbi/modern_treasury/models/ledger_transaction_list_params.rbi +93 -18
- data/rbi/modern_treasury/models/ledger_transaction_update_params.rbi +7 -158
- data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +18 -316
- data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +157 -0
- data/rbi/modern_treasury/models/legal_entity_association.rbi +5 -0
- data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +9 -917
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +17 -1297
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +8 -378
- data/rbi/modern_treasury/models/line_item.rbi +4 -52
- data/rbi/modern_treasury/models/payment_action_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/payment_order.rbi +81 -172
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +42 -891
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +42 -896
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +14 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +43 -469
- data/rbi/modern_treasury/models/payment_orders/reversal_create_params.rbi +4 -415
- data/rbi/modern_treasury/models/payment_reference.rbi +54 -9
- data/rbi/modern_treasury/models/return_create_params.rbi +114 -0
- data/rbi/modern_treasury/models/return_list_params.rbi +6 -11
- data/rbi/modern_treasury/models/return_object.rbi +165 -16
- data/rbi/modern_treasury/models/routing_detail.rbi +9 -113
- data/rbi/modern_treasury/models/routing_detail_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +4 -87
- data/rbi/modern_treasury/models/transaction.rbi +19 -103
- data/rbi/modern_treasury/models/transaction_create_params.rbi +8 -0
- data/rbi/modern_treasury/models/transactions/transaction_line_item.rbi +8 -5
- data/rbi/modern_treasury/models/validation_validate_routing_number_params.rbi +5 -0
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +9 -203
- data/rbi/modern_treasury/models.rbi +36 -31
- data/rbi/modern_treasury/resources/bulk_requests.rbi +2 -1
- data/rbi/modern_treasury/resources/counterparties.rbi +20 -12
- data/rbi/modern_treasury/resources/documents.rbi +2 -2
- data/rbi/modern_treasury/resources/expected_payments.rbi +9 -1
- data/rbi/modern_treasury/resources/external_accounts.rbi +29 -22
- data/rbi/modern_treasury/resources/internal_accounts/balance_reports.rbi +7 -3
- data/rbi/modern_treasury/resources/internal_accounts.rbi +31 -0
- data/rbi/modern_treasury/resources/invoices.rbi +2 -8
- data/rbi/modern_treasury/resources/ledger_account_categories.rbi +9 -3
- data/rbi/modern_treasury/resources/ledger_accounts.rbi +5 -1
- data/rbi/modern_treasury/resources/ledger_entries.rbi +9 -2
- data/rbi/modern_treasury/resources/ledger_transactions.rbi +13 -13
- data/rbi/modern_treasury/resources/legal_entities.rbi +4 -8
- data/rbi/modern_treasury/resources/legal_entity_associations.rbi +1 -2
- data/rbi/modern_treasury/resources/payment_orders/reversals.rbi +1 -1
- data/rbi/modern_treasury/resources/payment_orders.rbi +16 -17
- data/rbi/modern_treasury/resources/returns.rbi +8 -2
- data/rbi/modern_treasury/resources/transactions.rbi +3 -0
- data/rbi/modern_treasury/resources/virtual_accounts.rbi +1 -2
- data/sig/modern_treasury/client.rbs +0 -6
- data/sig/modern_treasury/errors.rbs +9 -0
- data/sig/modern_treasury/internal/transport/base_client.rbs +1 -1
- data/sig/modern_treasury/internal/type/converter.rbs +7 -1
- data/sig/modern_treasury/models/accounting.rbs +15 -0
- data/sig/modern_treasury/models/address.rbs +70 -0
- data/sig/modern_treasury/models/address_request.rbs +45 -0
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +99 -999
- data/sig/modern_treasury/models/bulk_result.rbs +1 -0
- data/sig/modern_treasury/models/child_legal_entity_create.rbs +220 -0
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +21 -548
- data/sig/modern_treasury/models/contact_detail.rbs +67 -0
- data/sig/modern_treasury/models/contact_detail_create_request.rbs +43 -0
- data/sig/modern_treasury/models/counterparty.rbs +20 -141
- data/sig/modern_treasury/models/counterparty_create_params.rbs +51 -737
- data/sig/modern_treasury/models/counterparty_list_params.rbs +7 -0
- data/sig/modern_treasury/models/document.rbs +0 -4
- data/sig/modern_treasury/models/document_create_params.rbs +0 -4
- data/sig/modern_treasury/models/document_list_params.rbs +0 -4
- data/sig/modern_treasury/models/expected_payment.rbs +5 -0
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +11 -173
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +7 -0
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +5 -0
- data/sig/modern_treasury/models/external_account.rbs +13 -139
- data/sig/modern_treasury/models/external_account_create_params.rbs +25 -189
- data/sig/modern_treasury/models/external_account_list_params.rbs +7 -0
- data/sig/modern_treasury/models/external_account_update_params.rbs +6 -48
- data/sig/modern_treasury/models/foreign_exchange_quote.rbs +4 -51
- data/sig/modern_treasury/models/foreign_exchange_rate.rbs +50 -0
- data/sig/modern_treasury/models/identification_create_request.rbs +93 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +2 -0
- data/sig/modern_treasury/models/internal_account.rbs +148 -71
- data/sig/modern_treasury/models/internal_account_create_params.rbs +143 -0
- data/sig/modern_treasury/models/internal_account_update_account_capability_params.rbs +28 -0
- data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +137 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +10 -0
- data/sig/modern_treasury/models/invoice.rbs +9 -68
- data/sig/modern_treasury/models/invoice_create_params.rbs +6 -70
- data/sig/modern_treasury/models/invoice_update_params.rbs +6 -70
- data/sig/modern_treasury/models/ledger_account.rbs +17 -123
- data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +4 -142
- data/sig/modern_treasury/models/ledger_account_category.rbs +9 -142
- data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +12 -5
- data/sig/modern_treasury/models/ledger_account_create_params.rbs +4 -84
- data/sig/modern_treasury/models/ledger_account_create_request.rbs +89 -0
- data/sig/modern_treasury/models/ledger_account_list_params.rbs +16 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +8 -284
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +8 -284
- data/sig/modern_treasury/models/ledger_balance.rbs +40 -0
- data/sig/modern_treasury/models/ledger_balances.rbs +30 -0
- data/sig/modern_treasury/models/ledger_entry.rbs +4 -142
- data/sig/modern_treasury/models/ledger_entry_create_request.rbs +62 -0
- data/sig/modern_treasury/models/ledger_entry_list_params.rbs +21 -3
- data/sig/modern_treasury/models/ledger_transaction.rbs +5 -2
- data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +4 -165
- data/sig/modern_treasury/models/ledger_transaction_create_request.rbs +109 -0
- data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +21 -5
- data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +6 -67
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +9 -144
- data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +68 -0
- data/sig/modern_treasury/models/legal_entity_association.rbs +3 -1
- data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +9 -380
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +21 -548
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +12 -168
- data/sig/modern_treasury/models/line_item.rbs +4 -16
- data/sig/modern_treasury/models/payment_action_list_params.rbs +2 -1
- data/sig/modern_treasury/models/payment_order.rbs +37 -71
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +37 -380
- data/sig/modern_treasury/models/payment_order_create_params.rbs +37 -384
- data/sig/modern_treasury/models/payment_order_list_params.rbs +9 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +33 -207
- data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +6 -173
- data/sig/modern_treasury/models/payment_reference.rbs +22 -4
- data/sig/modern_treasury/models/return_create_params.rbs +47 -0
- data/sig/modern_treasury/models/return_list_params.rbs +1 -6
- data/sig/modern_treasury/models/return_object.rbs +70 -12
- data/sig/modern_treasury/models/routing_detail.rbs +6 -71
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +2 -0
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +6 -48
- data/sig/modern_treasury/models/transaction.rbs +10 -53
- data/sig/modern_treasury/models/transaction_create_params.rbs +5 -0
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +5 -2
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +8 -95
- data/sig/modern_treasury/models.rbs +30 -24
- data/sig/modern_treasury/resources/counterparties.rbs +2 -0
- data/sig/modern_treasury/resources/expected_payments.rbs +4 -1
- data/sig/modern_treasury/resources/external_accounts.rbs +6 -4
- data/sig/modern_treasury/resources/internal_accounts/balance_reports.rbs +1 -1
- data/sig/modern_treasury/resources/internal_accounts.rbs +8 -0
- data/sig/modern_treasury/resources/invoices.rbs +2 -2
- data/sig/modern_treasury/resources/ledger_account_categories.rbs +2 -1
- data/sig/modern_treasury/resources/ledger_accounts.rbs +3 -1
- data/sig/modern_treasury/resources/ledger_transactions.rbs +4 -4
- data/sig/modern_treasury/resources/legal_entities.rbs +4 -4
- data/sig/modern_treasury/resources/legal_entity_associations.rbs +1 -1
- data/sig/modern_treasury/resources/payment_orders/reversals.rbs +1 -1
- data/sig/modern_treasury/resources/payment_orders.rbs +6 -5
- data/sig/modern_treasury/resources/returns.rbs +1 -0
- data/sig/modern_treasury/resources/transactions.rbs +1 -0
- data/sig/modern_treasury/resources/virtual_accounts.rbs +1 -1
- metadata +52 -49
- data/lib/modern_treasury/models/ledger_event_handler.rb +0 -222
- data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +0 -177
- data/lib/modern_treasury/models/ledger_event_handler_delete_params.rb +0 -14
- data/lib/modern_treasury/models/ledger_event_handler_list_params.rb +0 -58
- data/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rb +0 -14
- data/lib/modern_treasury/models/ledger_event_handler_variable.rb +0 -59
- data/lib/modern_treasury/models/ledgerable_event.rb +0 -92
- data/lib/modern_treasury/models/ledgerable_event_create_params.rb +0 -50
- data/lib/modern_treasury/models/ledgerable_event_retrieve_params.rb +0 -14
- data/lib/modern_treasury/models/paper_item.rb +0 -178
- data/lib/modern_treasury/models/paper_item_list_params.rb +0 -56
- data/lib/modern_treasury/models/paper_item_retrieve_params.rb +0 -14
- data/lib/modern_treasury/resources/ledger_event_handlers.rb +0 -125
- data/lib/modern_treasury/resources/ledgerable_events.rb +0 -65
- data/lib/modern_treasury/resources/paper_items.rb +0 -68
- data/rbi/modern_treasury/models/ledger_event_handler.rbi +0 -322
- data/rbi/modern_treasury/models/ledger_event_handler_create_params.rbi +0 -303
- data/rbi/modern_treasury/models/ledger_event_handler_delete_params.rbi +0 -32
- data/rbi/modern_treasury/models/ledger_event_handler_list_params.rbi +0 -92
- data/rbi/modern_treasury/models/ledger_event_handler_retrieve_params.rbi +0 -32
- data/rbi/modern_treasury/models/ledger_event_handler_variable.rbi +0 -98
- data/rbi/modern_treasury/models/ledgerable_event.rbi +0 -108
- data/rbi/modern_treasury/models/ledgerable_event_create_params.rbi +0 -75
- data/rbi/modern_treasury/models/ledgerable_event_retrieve_params.rbi +0 -32
- data/rbi/modern_treasury/models/paper_item.rbi +0 -204
- data/rbi/modern_treasury/models/paper_item_list_params.rbi +0 -88
- data/rbi/modern_treasury/models/paper_item_retrieve_params.rbi +0 -32
- data/rbi/modern_treasury/resources/ledger_event_handlers.rbi +0 -109
- data/rbi/modern_treasury/resources/ledgerable_events.rbi +0 -50
- data/rbi/modern_treasury/resources/paper_items.rbi +0 -51
- data/sig/modern_treasury/models/ledger_event_handler.rbs +0 -149
- data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +0 -127
- data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +0 -15
- data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +0 -54
- data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +0 -15
- data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +0 -36
- data/sig/modern_treasury/models/ledgerable_event.rbs +0 -65
- data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +0 -43
- data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +0 -15
- data/sig/modern_treasury/models/paper_item.rbs +0 -122
- data/sig/modern_treasury/models/paper_item_list_params.rbs +0 -54
- data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +0 -15
- data/sig/modern_treasury/resources/ledger_event_handlers.rbs +0 -37
- data/sig/modern_treasury/resources/ledgerable_events.rbs +0 -20
- data/sig/modern_treasury/resources/paper_items.rbs +0 -21
|
@@ -37,8 +37,8 @@ module ModernTreasury
|
|
|
37
37
|
# @!attribute foreign_exchange_rate
|
|
38
38
|
# The serialized rate information represented by this quote.
|
|
39
39
|
#
|
|
40
|
-
# @return [ModernTreasury::Models::
|
|
41
|
-
required :foreign_exchange_rate, -> { ModernTreasury::
|
|
40
|
+
# @return [ModernTreasury::Models::ForeignExchangeRate]
|
|
41
|
+
required :foreign_exchange_rate, -> { ModernTreasury::ForeignExchangeRate }
|
|
42
42
|
|
|
43
43
|
# @!attribute internal_account_id
|
|
44
44
|
# The ID for the `InternalAccount` this quote is associated with.
|
|
@@ -90,7 +90,7 @@ module ModernTreasury
|
|
|
90
90
|
#
|
|
91
91
|
# @param foreign_exchange_indicator [String] Either `fixed_to_variable` if the `base_amount` was specified, or `variable_to_f
|
|
92
92
|
#
|
|
93
|
-
# @param foreign_exchange_rate [ModernTreasury::Models::
|
|
93
|
+
# @param foreign_exchange_rate [ModernTreasury::Models::ForeignExchangeRate] The serialized rate information represented by this quote.
|
|
94
94
|
#
|
|
95
95
|
# @param internal_account_id [String] The ID for the `InternalAccount` this quote is associated with.
|
|
96
96
|
#
|
|
@@ -103,76 +103,6 @@ module ModernTreasury
|
|
|
103
103
|
# @param updated_at [Time]
|
|
104
104
|
#
|
|
105
105
|
# @param vendor_id [String] This vendor assigned ID for this quote.
|
|
106
|
-
|
|
107
|
-
# @see ModernTreasury::Models::ForeignExchangeQuote#foreign_exchange_rate
|
|
108
|
-
class ForeignExchangeRate < ModernTreasury::Internal::Type::BaseModel
|
|
109
|
-
# @!attribute base_amount
|
|
110
|
-
# Amount in the lowest denomination of the `base_currency` to convert, often
|
|
111
|
-
# called the "sell" amount.
|
|
112
|
-
#
|
|
113
|
-
# @return [Integer]
|
|
114
|
-
required :base_amount, Integer
|
|
115
|
-
|
|
116
|
-
# @!attribute base_currency
|
|
117
|
-
# Currency to convert, often called the "sell" currency.
|
|
118
|
-
#
|
|
119
|
-
# @return [Symbol, ModernTreasury::Models::Currency]
|
|
120
|
-
required :base_currency, enum: -> { ModernTreasury::Currency }
|
|
121
|
-
|
|
122
|
-
# @!attribute exponent
|
|
123
|
-
# The exponent component of the rate. The decimal is calculated as `value` / (10 ^
|
|
124
|
-
# `exponent`).
|
|
125
|
-
#
|
|
126
|
-
# @return [Integer]
|
|
127
|
-
required :exponent, Integer
|
|
128
|
-
|
|
129
|
-
# @!attribute rate_string
|
|
130
|
-
# A string representation of the rate.
|
|
131
|
-
#
|
|
132
|
-
# @return [String]
|
|
133
|
-
required :rate_string, String
|
|
134
|
-
|
|
135
|
-
# @!attribute target_amount
|
|
136
|
-
# Amount in the lowest denomination of the `target_currency`, often called the
|
|
137
|
-
# "buy" amount.
|
|
138
|
-
#
|
|
139
|
-
# @return [Integer]
|
|
140
|
-
required :target_amount, Integer
|
|
141
|
-
|
|
142
|
-
# @!attribute target_currency
|
|
143
|
-
# Currency to convert the `base_currency` to, often called the "buy" currency.
|
|
144
|
-
#
|
|
145
|
-
# @return [Symbol, ModernTreasury::Models::Currency]
|
|
146
|
-
required :target_currency, enum: -> { ModernTreasury::Currency }
|
|
147
|
-
|
|
148
|
-
# @!attribute value
|
|
149
|
-
# The whole number component of the rate. The decimal is calculated as `value` /
|
|
150
|
-
# (10 ^ `exponent`).
|
|
151
|
-
#
|
|
152
|
-
# @return [Integer]
|
|
153
|
-
required :value, Integer
|
|
154
|
-
|
|
155
|
-
# @!method initialize(base_amount:, base_currency:, exponent:, rate_string:, target_amount:, target_currency:, value:)
|
|
156
|
-
# Some parameter documentations has been truncated, see
|
|
157
|
-
# {ModernTreasury::Models::ForeignExchangeQuote::ForeignExchangeRate} for more
|
|
158
|
-
# details.
|
|
159
|
-
#
|
|
160
|
-
# The serialized rate information represented by this quote.
|
|
161
|
-
#
|
|
162
|
-
# @param base_amount [Integer] Amount in the lowest denomination of the `base_currency` to convert, often calle
|
|
163
|
-
#
|
|
164
|
-
# @param base_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert, often called the "sell" currency.
|
|
165
|
-
#
|
|
166
|
-
# @param exponent [Integer] The exponent component of the rate. The decimal is calculated as `value` / (10 ^
|
|
167
|
-
#
|
|
168
|
-
# @param rate_string [String] A string representation of the rate.
|
|
169
|
-
#
|
|
170
|
-
# @param target_amount [Integer] Amount in the lowest denomination of the `target_currency`, often called the "bu
|
|
171
|
-
#
|
|
172
|
-
# @param target_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert the `base_currency` to, often called the "buy" currency.
|
|
173
|
-
#
|
|
174
|
-
# @param value [Integer] The whole number component of the rate. The decimal is calculated as `value` / (
|
|
175
|
-
end
|
|
176
106
|
end
|
|
177
107
|
end
|
|
178
108
|
end
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ModernTreasury
|
|
4
|
+
module Models
|
|
5
|
+
class ForeignExchangeRate < ModernTreasury::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute base_amount
|
|
7
|
+
# Amount in the lowest denomination of the `base_currency` to convert, often
|
|
8
|
+
# called the "sell" amount.
|
|
9
|
+
#
|
|
10
|
+
# @return [Integer]
|
|
11
|
+
required :base_amount, Integer
|
|
12
|
+
|
|
13
|
+
# @!attribute base_currency
|
|
14
|
+
# Currency to convert, often called the "sell" currency.
|
|
15
|
+
#
|
|
16
|
+
# @return [Symbol, ModernTreasury::Models::Currency]
|
|
17
|
+
required :base_currency, enum: -> { ModernTreasury::Currency }
|
|
18
|
+
|
|
19
|
+
# @!attribute exponent
|
|
20
|
+
# The exponent component of the rate. The decimal is calculated as `value` / (10 ^
|
|
21
|
+
# `exponent`).
|
|
22
|
+
#
|
|
23
|
+
# @return [Integer]
|
|
24
|
+
required :exponent, Integer
|
|
25
|
+
|
|
26
|
+
# @!attribute rate_string
|
|
27
|
+
# A string representation of the rate.
|
|
28
|
+
#
|
|
29
|
+
# @return [String]
|
|
30
|
+
required :rate_string, String
|
|
31
|
+
|
|
32
|
+
# @!attribute target_amount
|
|
33
|
+
# Amount in the lowest denomination of the `target_currency`, often called the
|
|
34
|
+
# "buy" amount.
|
|
35
|
+
#
|
|
36
|
+
# @return [Integer]
|
|
37
|
+
required :target_amount, Integer
|
|
38
|
+
|
|
39
|
+
# @!attribute target_currency
|
|
40
|
+
# Currency to convert the `base_currency` to, often called the "buy" currency.
|
|
41
|
+
#
|
|
42
|
+
# @return [Symbol, ModernTreasury::Models::Currency]
|
|
43
|
+
required :target_currency, enum: -> { ModernTreasury::Currency }
|
|
44
|
+
|
|
45
|
+
# @!attribute value
|
|
46
|
+
# The whole number component of the rate. The decimal is calculated as `value` /
|
|
47
|
+
# (10 ^ `exponent`).
|
|
48
|
+
#
|
|
49
|
+
# @return [Integer]
|
|
50
|
+
required :value, Integer
|
|
51
|
+
|
|
52
|
+
# @!method initialize(base_amount:, base_currency:, exponent:, rate_string:, target_amount:, target_currency:, value:)
|
|
53
|
+
# Some parameter documentations has been truncated, see
|
|
54
|
+
# {ModernTreasury::Models::ForeignExchangeRate} for more details.
|
|
55
|
+
#
|
|
56
|
+
# @param base_amount [Integer] Amount in the lowest denomination of the `base_currency` to convert, often calle
|
|
57
|
+
#
|
|
58
|
+
# @param base_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert, often called the "sell" currency.
|
|
59
|
+
#
|
|
60
|
+
# @param exponent [Integer] The exponent component of the rate. The decimal is calculated as `value` / (10 ^
|
|
61
|
+
#
|
|
62
|
+
# @param rate_string [String] A string representation of the rate.
|
|
63
|
+
#
|
|
64
|
+
# @param target_amount [Integer] Amount in the lowest denomination of the `target_currency`, often called the "bu
|
|
65
|
+
#
|
|
66
|
+
# @param target_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert the `base_currency` to, often called the "buy" currency.
|
|
67
|
+
#
|
|
68
|
+
# @param value [Integer] The whole number component of the rate. The decimal is calculated as `value` / (
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ModernTreasury
|
|
4
|
+
module Models
|
|
5
|
+
class IdentificationCreateRequest < ModernTreasury::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id_number
|
|
7
|
+
# The ID number of identification document.
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :id_number, String
|
|
11
|
+
|
|
12
|
+
# @!attribute id_type
|
|
13
|
+
# The type of ID number.
|
|
14
|
+
#
|
|
15
|
+
# @return [Symbol, ModernTreasury::Models::IdentificationCreateRequest::IDType]
|
|
16
|
+
required :id_type, enum: -> { ModernTreasury::IdentificationCreateRequest::IDType }
|
|
17
|
+
|
|
18
|
+
# @!attribute expiration_date
|
|
19
|
+
# The date when the Identification is no longer considered valid by the issuing
|
|
20
|
+
# authority.
|
|
21
|
+
#
|
|
22
|
+
# @return [Date, nil]
|
|
23
|
+
optional :expiration_date, Date, nil?: true
|
|
24
|
+
|
|
25
|
+
# @!attribute issuing_country
|
|
26
|
+
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
|
27
|
+
# identification
|
|
28
|
+
#
|
|
29
|
+
# @return [String, nil]
|
|
30
|
+
optional :issuing_country, String, nil?: true
|
|
31
|
+
|
|
32
|
+
# @!attribute issuing_region
|
|
33
|
+
# The region in which the identifcation was issued.
|
|
34
|
+
#
|
|
35
|
+
# @return [String, nil]
|
|
36
|
+
optional :issuing_region, String, nil?: true
|
|
37
|
+
|
|
38
|
+
# @!method initialize(id_number:, id_type:, expiration_date: nil, issuing_country: nil, issuing_region: nil)
|
|
39
|
+
# Some parameter documentations has been truncated, see
|
|
40
|
+
# {ModernTreasury::Models::IdentificationCreateRequest} for more details.
|
|
41
|
+
#
|
|
42
|
+
# @param id_number [String] The ID number of identification document.
|
|
43
|
+
#
|
|
44
|
+
# @param id_type [Symbol, ModernTreasury::Models::IdentificationCreateRequest::IDType] The type of ID number.
|
|
45
|
+
#
|
|
46
|
+
# @param expiration_date [Date, nil] The date when the Identification is no longer considered valid by the issuing au
|
|
47
|
+
#
|
|
48
|
+
# @param issuing_country [String, nil] The ISO 3166-1 alpha-2 country code of the country that issued the identificatio
|
|
49
|
+
#
|
|
50
|
+
# @param issuing_region [String, nil] The region in which the identifcation was issued.
|
|
51
|
+
|
|
52
|
+
# The type of ID number.
|
|
53
|
+
#
|
|
54
|
+
# @see ModernTreasury::Models::IdentificationCreateRequest#id_type
|
|
55
|
+
module IDType
|
|
56
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
57
|
+
|
|
58
|
+
AR_CUIL = :ar_cuil
|
|
59
|
+
AR_CUIT = :ar_cuit
|
|
60
|
+
BR_CNPJ = :br_cnpj
|
|
61
|
+
BR_CPF = :br_cpf
|
|
62
|
+
CL_RUN = :cl_run
|
|
63
|
+
CL_RUT = :cl_rut
|
|
64
|
+
CO_CEDULAS = :co_cedulas
|
|
65
|
+
CO_NIT = :co_nit
|
|
66
|
+
DRIVERS_LICENSE = :drivers_license
|
|
67
|
+
HN_ID = :hn_id
|
|
68
|
+
HN_RTN = :hn_rtn
|
|
69
|
+
IN_LEI = :in_lei
|
|
70
|
+
KR_BRN = :kr_brn
|
|
71
|
+
KR_CRN = :kr_crn
|
|
72
|
+
KR_RRN = :kr_rrn
|
|
73
|
+
PASSPORT = :passport
|
|
74
|
+
SA_TIN = :sa_tin
|
|
75
|
+
SA_VAT = :sa_vat
|
|
76
|
+
US_EIN = :us_ein
|
|
77
|
+
US_ITIN = :us_itin
|
|
78
|
+
US_SSN = :us_ssn
|
|
79
|
+
VN_TIN = :vn_tin
|
|
80
|
+
|
|
81
|
+
# @!method self.values
|
|
82
|
+
# @return [Array<Symbol>]
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
@@ -260,6 +260,7 @@ module ModernTreasury
|
|
|
260
260
|
HK_INTERBANK_CLEARING_CODE = :hk_interbank_clearing_code
|
|
261
261
|
HU_INTERBANK_CLEARING_CODE = :hu_interbank_clearing_code
|
|
262
262
|
ID_SKNBI_CODE = :id_sknbi_code
|
|
263
|
+
IL_BANK_CODE = :il_bank_code
|
|
263
264
|
IN_IFSC = :in_ifsc
|
|
264
265
|
JP_ZENGIN_CODE = :jp_zengin_code
|
|
265
266
|
MX_BANK_IDENTIFIER = :mx_bank_identifier
|
|
@@ -9,6 +9,16 @@ module ModernTreasury
|
|
|
9
9
|
# @return [String]
|
|
10
10
|
required :id, String
|
|
11
11
|
|
|
12
|
+
# @!attribute account_capabilities
|
|
13
|
+
# An array of AccountCapability objects that list the originating abilities of the
|
|
14
|
+
# internal account and any relevant information for them.
|
|
15
|
+
#
|
|
16
|
+
# @return [Array<ModernTreasury::Models::InternalAccount::AccountCapability>]
|
|
17
|
+
required :account_capabilities,
|
|
18
|
+
-> {
|
|
19
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::InternalAccount::AccountCapability]
|
|
20
|
+
}
|
|
21
|
+
|
|
12
22
|
# @!attribute account_details
|
|
13
23
|
# An array of account detail objects.
|
|
14
24
|
#
|
|
@@ -52,7 +62,7 @@ module ModernTreasury
|
|
|
52
62
|
required :ledger_account_id, String, nil?: true
|
|
53
63
|
|
|
54
64
|
# @!attribute legal_entity_id
|
|
55
|
-
# The Legal Entity associated to this account
|
|
65
|
+
# The Legal Entity associated to this account.
|
|
56
66
|
#
|
|
57
67
|
# @return [String, nil]
|
|
58
68
|
required :legal_entity_id, String, nil?: true
|
|
@@ -91,8 +101,8 @@ module ModernTreasury
|
|
|
91
101
|
# @!attribute party_address
|
|
92
102
|
# The address associated with the owner or null.
|
|
93
103
|
#
|
|
94
|
-
# @return [ModernTreasury::Models::
|
|
95
|
-
required :party_address, -> { ModernTreasury::
|
|
104
|
+
# @return [ModernTreasury::Models::Address, nil]
|
|
105
|
+
required :party_address, -> { ModernTreasury::Address }, nil?: true
|
|
96
106
|
|
|
97
107
|
# @!attribute party_name
|
|
98
108
|
# The legal name of the entity which owns the account.
|
|
@@ -117,12 +127,20 @@ module ModernTreasury
|
|
|
117
127
|
# @return [Time]
|
|
118
128
|
required :updated_at, Time
|
|
119
129
|
|
|
120
|
-
# @!
|
|
130
|
+
# @!attribute vendor_id
|
|
131
|
+
# The vendor ID associated with this account.
|
|
132
|
+
#
|
|
133
|
+
# @return [String, nil]
|
|
134
|
+
required :vendor_id, String, nil?: true
|
|
135
|
+
|
|
136
|
+
# @!method initialize(id:, account_capabilities:, account_details:, account_type:, connection:, counterparty_id:, created_at:, currency:, ledger_account_id:, legal_entity_id:, live_mode:, metadata:, name:, object:, parent_account_id:, party_address:, party_name:, party_type:, routing_details:, updated_at:, vendor_id:)
|
|
121
137
|
# Some parameter documentations has been truncated, see
|
|
122
138
|
# {ModernTreasury::Models::InternalAccount} for more details.
|
|
123
139
|
#
|
|
124
140
|
# @param id [String]
|
|
125
141
|
#
|
|
142
|
+
# @param account_capabilities [Array<ModernTreasury::Models::InternalAccount::AccountCapability>] An array of AccountCapability objects that list the originating abilities of the
|
|
143
|
+
#
|
|
126
144
|
# @param account_details [Array<ModernTreasury::Models::AccountDetail>] An array of account detail objects.
|
|
127
145
|
#
|
|
128
146
|
# @param account_type [Symbol, ModernTreasury::Models::InternalAccount::AccountType, nil] Can be checking, savings or other.
|
|
@@ -137,7 +155,7 @@ module ModernTreasury
|
|
|
137
155
|
#
|
|
138
156
|
# @param ledger_account_id [String, nil] If the internal account links to a ledger account in Modern Treasury, the id of
|
|
139
157
|
#
|
|
140
|
-
# @param legal_entity_id [String, nil] The Legal Entity associated to this account
|
|
158
|
+
# @param legal_entity_id [String, nil] The Legal Entity associated to this account.
|
|
141
159
|
#
|
|
142
160
|
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
|
143
161
|
#
|
|
@@ -149,7 +167,7 @@ module ModernTreasury
|
|
|
149
167
|
#
|
|
150
168
|
# @param parent_account_id [String, nil] The parent InternalAccount of this account.
|
|
151
169
|
#
|
|
152
|
-
# @param party_address [ModernTreasury::Models::
|
|
170
|
+
# @param party_address [ModernTreasury::Models::Address, nil] The address associated with the owner or null.
|
|
153
171
|
#
|
|
154
172
|
# @param party_name [String] The legal name of the entity which owns the account.
|
|
155
173
|
#
|
|
@@ -158,58 +176,38 @@ module ModernTreasury
|
|
|
158
176
|
# @param routing_details [Array<ModernTreasury::Models::RoutingDetail>] An array of routing detail objects.
|
|
159
177
|
#
|
|
160
178
|
# @param updated_at [Time]
|
|
161
|
-
|
|
162
|
-
# Can be checking, savings or other.
|
|
163
179
|
#
|
|
164
|
-
#
|
|
165
|
-
module AccountType
|
|
166
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
180
|
+
# @param vendor_id [String, nil] The vendor ID associated with this account.
|
|
167
181
|
|
|
168
|
-
|
|
169
|
-
CASH = :cash
|
|
170
|
-
CHECKING = :checking
|
|
171
|
-
CRYPTO_WALLET = :crypto_wallet
|
|
172
|
-
ETHEREUM_WALLET = :ethereum_wallet
|
|
173
|
-
GENERAL_LEDGER = :general_ledger
|
|
174
|
-
LOAN = :loan
|
|
175
|
-
NON_RESIDENT = :non_resident
|
|
176
|
-
OTHER = :other
|
|
177
|
-
OVERDRAFT = :overdraft
|
|
178
|
-
POLYGON_WALLET = :polygon_wallet
|
|
179
|
-
SAVINGS = :savings
|
|
180
|
-
SOLANA_WALLET = :solana_wallet
|
|
181
|
-
|
|
182
|
-
# @!method self.values
|
|
183
|
-
# @return [Array<Symbol>]
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
# @see ModernTreasury::Models::InternalAccount#party_address
|
|
187
|
-
class PartyAddress < ModernTreasury::Internal::Type::BaseModel
|
|
182
|
+
class AccountCapability < ModernTreasury::Internal::Type::BaseModel
|
|
188
183
|
# @!attribute id
|
|
189
184
|
#
|
|
190
185
|
# @return [String]
|
|
191
186
|
required :id, String
|
|
192
187
|
|
|
193
|
-
# @!attribute country
|
|
194
|
-
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
195
|
-
#
|
|
196
|
-
# @return [String, nil]
|
|
197
|
-
required :country, String, nil?: true
|
|
198
|
-
|
|
199
188
|
# @!attribute created_at
|
|
200
189
|
#
|
|
201
190
|
# @return [Time]
|
|
202
191
|
required :created_at, Time
|
|
203
192
|
|
|
204
|
-
# @!attribute
|
|
193
|
+
# @!attribute direction
|
|
194
|
+
# One of `debit` or `credit`. Indicates the direction of money movement this
|
|
195
|
+
# capability is responsible for.
|
|
205
196
|
#
|
|
206
|
-
# @return [
|
|
207
|
-
required :
|
|
197
|
+
# @return [Symbol, ModernTreasury::Models::TransactionDirection]
|
|
198
|
+
required :direction, enum: -> { ModernTreasury::TransactionDirection }
|
|
208
199
|
|
|
209
|
-
# @!attribute
|
|
200
|
+
# @!attribute discarded_at
|
|
201
|
+
#
|
|
202
|
+
# @return [Time, nil]
|
|
203
|
+
required :discarded_at, Time, nil?: true
|
|
204
|
+
|
|
205
|
+
# @!attribute identifier
|
|
206
|
+
# A unique reference assigned by your bank for tracking and recognizing payment
|
|
207
|
+
# files. It is important this is formatted exactly how the bank assigned it.
|
|
210
208
|
#
|
|
211
209
|
# @return [String, nil]
|
|
212
|
-
required :
|
|
210
|
+
required :identifier, String, nil?: true
|
|
213
211
|
|
|
214
212
|
# @!attribute live_mode
|
|
215
213
|
# This field will be true if this object exists in the live environment or false
|
|
@@ -218,61 +216,114 @@ module ModernTreasury
|
|
|
218
216
|
# @return [Boolean]
|
|
219
217
|
required :live_mode, ModernTreasury::Internal::Type::Boolean
|
|
220
218
|
|
|
221
|
-
# @!attribute locality
|
|
222
|
-
# Locality or City.
|
|
223
|
-
#
|
|
224
|
-
# @return [String, nil]
|
|
225
|
-
required :locality, String, nil?: true
|
|
226
|
-
|
|
227
219
|
# @!attribute object
|
|
228
220
|
#
|
|
229
221
|
# @return [String]
|
|
230
222
|
required :object, String
|
|
231
223
|
|
|
232
|
-
# @!attribute
|
|
233
|
-
#
|
|
224
|
+
# @!attribute payment_type
|
|
225
|
+
# Indicates the the type of payment this capability is responsible for
|
|
226
|
+
# originating.
|
|
234
227
|
#
|
|
235
|
-
# @return [
|
|
236
|
-
required :
|
|
237
|
-
|
|
238
|
-
# @!attribute region
|
|
239
|
-
# Region or State.
|
|
240
|
-
#
|
|
241
|
-
# @return [String, nil]
|
|
242
|
-
required :region, String, nil?: true
|
|
228
|
+
# @return [Symbol, ModernTreasury::Models::InternalAccount::AccountCapability::PaymentType]
|
|
229
|
+
required :payment_type, enum: -> { ModernTreasury::InternalAccount::AccountCapability::PaymentType }
|
|
243
230
|
|
|
244
231
|
# @!attribute updated_at
|
|
245
232
|
#
|
|
246
233
|
# @return [Time]
|
|
247
234
|
required :updated_at, Time
|
|
248
235
|
|
|
249
|
-
# @!method initialize(id:,
|
|
236
|
+
# @!method initialize(id:, created_at:, direction:, discarded_at:, identifier:, live_mode:, object:, payment_type:, updated_at:)
|
|
250
237
|
# Some parameter documentations has been truncated, see
|
|
251
|
-
# {ModernTreasury::Models::InternalAccount::
|
|
252
|
-
#
|
|
253
|
-
# The address associated with the owner or null.
|
|
238
|
+
# {ModernTreasury::Models::InternalAccount::AccountCapability} for more details.
|
|
254
239
|
#
|
|
255
240
|
# @param id [String]
|
|
256
241
|
#
|
|
257
|
-
# @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
|
|
258
|
-
#
|
|
259
242
|
# @param created_at [Time]
|
|
260
243
|
#
|
|
261
|
-
# @param
|
|
244
|
+
# @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of `debit` or `credit`. Indicates the direction of money movement this capab
|
|
262
245
|
#
|
|
263
|
-
# @param
|
|
246
|
+
# @param discarded_at [Time, nil]
|
|
264
247
|
#
|
|
265
|
-
# @param
|
|
248
|
+
# @param identifier [String, nil] A unique reference assigned by your bank for tracking and recognizing payment fi
|
|
266
249
|
#
|
|
267
|
-
# @param
|
|
250
|
+
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
|
268
251
|
#
|
|
269
252
|
# @param object [String]
|
|
270
253
|
#
|
|
271
|
-
# @param
|
|
272
|
-
#
|
|
273
|
-
# @param region [String, nil] Region or State.
|
|
254
|
+
# @param payment_type [Symbol, ModernTreasury::Models::InternalAccount::AccountCapability::PaymentType] Indicates the the type of payment this capability is responsible for originating
|
|
274
255
|
#
|
|
275
256
|
# @param updated_at [Time]
|
|
257
|
+
|
|
258
|
+
# Indicates the the type of payment this capability is responsible for
|
|
259
|
+
# originating.
|
|
260
|
+
#
|
|
261
|
+
# @see ModernTreasury::Models::InternalAccount::AccountCapability#payment_type
|
|
262
|
+
module PaymentType
|
|
263
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
264
|
+
|
|
265
|
+
ACH = :ach
|
|
266
|
+
AU_BECS = :au_becs
|
|
267
|
+
BACS = :bacs
|
|
268
|
+
BASE = :base
|
|
269
|
+
BOOK = :book
|
|
270
|
+
CARD = :card
|
|
271
|
+
CHATS = :chats
|
|
272
|
+
CHECK = :check
|
|
273
|
+
CROSS_BORDER = :cross_border
|
|
274
|
+
DK_NETS = :dk_nets
|
|
275
|
+
EFT = :eft
|
|
276
|
+
ETHEREUM = :ethereum
|
|
277
|
+
HU_ICS = :hu_ics
|
|
278
|
+
INTERAC = :interac
|
|
279
|
+
MASAV = :masav
|
|
280
|
+
MX_CCEN = :mx_ccen
|
|
281
|
+
NEFT = :neft
|
|
282
|
+
NICS = :nics
|
|
283
|
+
NZ_BECS = :nz_becs
|
|
284
|
+
PL_ELIXIR = :pl_elixir
|
|
285
|
+
POLYGON = :polygon
|
|
286
|
+
PROVXCHANGE = :provxchange
|
|
287
|
+
RO_SENT = :ro_sent
|
|
288
|
+
RTP = :rtp
|
|
289
|
+
SE_BANKGIROT = :se_bankgirot
|
|
290
|
+
SEN = :sen
|
|
291
|
+
SEPA = :sepa
|
|
292
|
+
SG_GIRO = :sg_giro
|
|
293
|
+
SIC = :sic
|
|
294
|
+
SIGNET = :signet
|
|
295
|
+
SKNBI = :sknbi
|
|
296
|
+
SOLANA = :solana
|
|
297
|
+
WIRE = :wire
|
|
298
|
+
ZENGIN = :zengin
|
|
299
|
+
|
|
300
|
+
# @!method self.values
|
|
301
|
+
# @return [Array<Symbol>]
|
|
302
|
+
end
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
# Can be checking, savings or other.
|
|
306
|
+
#
|
|
307
|
+
# @see ModernTreasury::Models::InternalAccount#account_type
|
|
308
|
+
module AccountType
|
|
309
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
310
|
+
|
|
311
|
+
BASE_WALLET = :base_wallet
|
|
312
|
+
CASH = :cash
|
|
313
|
+
CHECKING = :checking
|
|
314
|
+
CRYPTO_WALLET = :crypto_wallet
|
|
315
|
+
ETHEREUM_WALLET = :ethereum_wallet
|
|
316
|
+
GENERAL_LEDGER = :general_ledger
|
|
317
|
+
LOAN = :loan
|
|
318
|
+
NON_RESIDENT = :non_resident
|
|
319
|
+
OTHER = :other
|
|
320
|
+
OVERDRAFT = :overdraft
|
|
321
|
+
POLYGON_WALLET = :polygon_wallet
|
|
322
|
+
SAVINGS = :savings
|
|
323
|
+
SOLANA_WALLET = :solana_wallet
|
|
324
|
+
|
|
325
|
+
# @!method self.values
|
|
326
|
+
# @return [Array<Symbol>]
|
|
276
327
|
end
|
|
277
328
|
|
|
278
329
|
# Either individual or business.
|