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
|
@@ -32,6 +32,16 @@ module ModernTreasury
|
|
|
32
32
|
# @return [String]
|
|
33
33
|
required :party_name, String
|
|
34
34
|
|
|
35
|
+
# @!attribute account_capabilities
|
|
36
|
+
# An array of AccountCapability objects that list the originating abilities of the
|
|
37
|
+
# internal account and any relevant information for them.
|
|
38
|
+
#
|
|
39
|
+
# @return [Array<ModernTreasury::Models::InternalAccountCreateParams::AccountCapability>, nil]
|
|
40
|
+
optional :account_capabilities,
|
|
41
|
+
-> {
|
|
42
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::InternalAccountCreateParams::AccountCapability]
|
|
43
|
+
}
|
|
44
|
+
|
|
35
45
|
# @!attribute account_type
|
|
36
46
|
# The account type, used to provision the appropriate account at the financial
|
|
37
47
|
# institution.
|
|
@@ -70,7 +80,7 @@ module ModernTreasury
|
|
|
70
80
|
# @return [Hash{Symbol=>String}, nil]
|
|
71
81
|
optional :vendor_attributes, ModernTreasury::Internal::Type::HashOf[String]
|
|
72
82
|
|
|
73
|
-
# @!method initialize(connection_id:, currency:, name:, party_name:, account_type: nil, counterparty_id: nil, legal_entity_id: nil, parent_account_id: nil, party_address: nil, vendor_attributes: nil, request_options: {})
|
|
83
|
+
# @!method initialize(connection_id:, currency:, name:, party_name:, account_capabilities: nil, account_type: nil, counterparty_id: nil, legal_entity_id: nil, parent_account_id: nil, party_address: nil, vendor_attributes: nil, request_options: {})
|
|
74
84
|
# Some parameter documentations has been truncated, see
|
|
75
85
|
# {ModernTreasury::Models::InternalAccountCreateParams} for more details.
|
|
76
86
|
#
|
|
@@ -82,6 +92,8 @@ module ModernTreasury
|
|
|
82
92
|
#
|
|
83
93
|
# @param party_name [String] The legal name of the entity which owns the account.
|
|
84
94
|
#
|
|
95
|
+
# @param account_capabilities [Array<ModernTreasury::Models::InternalAccountCreateParams::AccountCapability>] An array of AccountCapability objects that list the originating abilities of the
|
|
96
|
+
#
|
|
85
97
|
# @param account_type [Symbol, ModernTreasury::Models::InternalAccountCreateParams::AccountType] The account type, used to provision the appropriate account at the financial ins
|
|
86
98
|
#
|
|
87
99
|
# @param counterparty_id [String] The Counterparty associated to this account.
|
|
@@ -108,6 +120,131 @@ module ModernTreasury
|
|
|
108
120
|
# @return [Array<Symbol>]
|
|
109
121
|
end
|
|
110
122
|
|
|
123
|
+
class AccountCapability < ModernTreasury::Internal::Type::BaseModel
|
|
124
|
+
# @!attribute id
|
|
125
|
+
#
|
|
126
|
+
# @return [String]
|
|
127
|
+
required :id, String
|
|
128
|
+
|
|
129
|
+
# @!attribute created_at
|
|
130
|
+
#
|
|
131
|
+
# @return [Time]
|
|
132
|
+
required :created_at, Time
|
|
133
|
+
|
|
134
|
+
# @!attribute direction
|
|
135
|
+
# One of `debit` or `credit`. Indicates the direction of money movement this
|
|
136
|
+
# capability is responsible for.
|
|
137
|
+
#
|
|
138
|
+
# @return [Symbol, ModernTreasury::Models::TransactionDirection]
|
|
139
|
+
required :direction, enum: -> { ModernTreasury::TransactionDirection }
|
|
140
|
+
|
|
141
|
+
# @!attribute discarded_at
|
|
142
|
+
#
|
|
143
|
+
# @return [Time, nil]
|
|
144
|
+
required :discarded_at, Time, nil?: true
|
|
145
|
+
|
|
146
|
+
# @!attribute identifier
|
|
147
|
+
# A unique reference assigned by your bank for tracking and recognizing payment
|
|
148
|
+
# files. It is important this is formatted exactly how the bank assigned it.
|
|
149
|
+
#
|
|
150
|
+
# @return [String, nil]
|
|
151
|
+
required :identifier, String, nil?: true
|
|
152
|
+
|
|
153
|
+
# @!attribute live_mode
|
|
154
|
+
# This field will be true if this object exists in the live environment or false
|
|
155
|
+
# if it exists in the test environment.
|
|
156
|
+
#
|
|
157
|
+
# @return [Boolean]
|
|
158
|
+
required :live_mode, ModernTreasury::Internal::Type::Boolean
|
|
159
|
+
|
|
160
|
+
# @!attribute object
|
|
161
|
+
#
|
|
162
|
+
# @return [String]
|
|
163
|
+
required :object, String
|
|
164
|
+
|
|
165
|
+
# @!attribute payment_type
|
|
166
|
+
# Indicates the the type of payment this capability is responsible for
|
|
167
|
+
# originating.
|
|
168
|
+
#
|
|
169
|
+
# @return [Symbol, ModernTreasury::Models::InternalAccountCreateParams::AccountCapability::PaymentType]
|
|
170
|
+
required :payment_type,
|
|
171
|
+
enum: -> { ModernTreasury::InternalAccountCreateParams::AccountCapability::PaymentType }
|
|
172
|
+
|
|
173
|
+
# @!attribute updated_at
|
|
174
|
+
#
|
|
175
|
+
# @return [Time]
|
|
176
|
+
required :updated_at, Time
|
|
177
|
+
|
|
178
|
+
# @!method initialize(id:, created_at:, direction:, discarded_at:, identifier:, live_mode:, object:, payment_type:, updated_at:)
|
|
179
|
+
# Some parameter documentations has been truncated, see
|
|
180
|
+
# {ModernTreasury::Models::InternalAccountCreateParams::AccountCapability} for
|
|
181
|
+
# more details.
|
|
182
|
+
#
|
|
183
|
+
# @param id [String]
|
|
184
|
+
#
|
|
185
|
+
# @param created_at [Time]
|
|
186
|
+
#
|
|
187
|
+
# @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of `debit` or `credit`. Indicates the direction of money movement this capab
|
|
188
|
+
#
|
|
189
|
+
# @param discarded_at [Time, nil]
|
|
190
|
+
#
|
|
191
|
+
# @param identifier [String, nil] A unique reference assigned by your bank for tracking and recognizing payment fi
|
|
192
|
+
#
|
|
193
|
+
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
|
194
|
+
#
|
|
195
|
+
# @param object [String]
|
|
196
|
+
#
|
|
197
|
+
# @param payment_type [Symbol, ModernTreasury::Models::InternalAccountCreateParams::AccountCapability::PaymentType] Indicates the the type of payment this capability is responsible for originating
|
|
198
|
+
#
|
|
199
|
+
# @param updated_at [Time]
|
|
200
|
+
|
|
201
|
+
# Indicates the the type of payment this capability is responsible for
|
|
202
|
+
# originating.
|
|
203
|
+
#
|
|
204
|
+
# @see ModernTreasury::Models::InternalAccountCreateParams::AccountCapability#payment_type
|
|
205
|
+
module PaymentType
|
|
206
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
207
|
+
|
|
208
|
+
ACH = :ach
|
|
209
|
+
AU_BECS = :au_becs
|
|
210
|
+
BACS = :bacs
|
|
211
|
+
BASE = :base
|
|
212
|
+
BOOK = :book
|
|
213
|
+
CARD = :card
|
|
214
|
+
CHATS = :chats
|
|
215
|
+
CHECK = :check
|
|
216
|
+
CROSS_BORDER = :cross_border
|
|
217
|
+
DK_NETS = :dk_nets
|
|
218
|
+
EFT = :eft
|
|
219
|
+
ETHEREUM = :ethereum
|
|
220
|
+
HU_ICS = :hu_ics
|
|
221
|
+
INTERAC = :interac
|
|
222
|
+
MASAV = :masav
|
|
223
|
+
MX_CCEN = :mx_ccen
|
|
224
|
+
NEFT = :neft
|
|
225
|
+
NICS = :nics
|
|
226
|
+
NZ_BECS = :nz_becs
|
|
227
|
+
PL_ELIXIR = :pl_elixir
|
|
228
|
+
POLYGON = :polygon
|
|
229
|
+
PROVXCHANGE = :provxchange
|
|
230
|
+
RO_SENT = :ro_sent
|
|
231
|
+
RTP = :rtp
|
|
232
|
+
SE_BANKGIROT = :se_bankgirot
|
|
233
|
+
SEN = :sen
|
|
234
|
+
SEPA = :sepa
|
|
235
|
+
SG_GIRO = :sg_giro
|
|
236
|
+
SIC = :sic
|
|
237
|
+
SIGNET = :signet
|
|
238
|
+
SKNBI = :sknbi
|
|
239
|
+
SOLANA = :solana
|
|
240
|
+
WIRE = :wire
|
|
241
|
+
ZENGIN = :zengin
|
|
242
|
+
|
|
243
|
+
# @!method self.values
|
|
244
|
+
# @return [Array<Symbol>]
|
|
245
|
+
end
|
|
246
|
+
end
|
|
247
|
+
|
|
111
248
|
# The account type, used to provision the appropriate account at the financial
|
|
112
249
|
# institution.
|
|
113
250
|
module AccountType
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ModernTreasury
|
|
4
|
+
module Models
|
|
5
|
+
# @see ModernTreasury::Resources::InternalAccounts#update_account_capability
|
|
6
|
+
class InternalAccountUpdateAccountCapabilityParams < ModernTreasury::Internal::Type::BaseModel
|
|
7
|
+
extend ModernTreasury::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include ModernTreasury::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute internal_account_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :internal_account_id, String
|
|
14
|
+
|
|
15
|
+
# @!attribute identifier
|
|
16
|
+
# A unique reference assigned by your bank for tracking and recognizing payment
|
|
17
|
+
# files. It is important this is formatted exactly how the bank assigned it.
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :identifier, String
|
|
21
|
+
|
|
22
|
+
# @!method initialize(internal_account_id:, identifier:, request_options: {})
|
|
23
|
+
# Some parameter documentations has been truncated, see
|
|
24
|
+
# {ModernTreasury::Models::InternalAccountUpdateAccountCapabilityParams} for more
|
|
25
|
+
# details.
|
|
26
|
+
#
|
|
27
|
+
# @param internal_account_id [String]
|
|
28
|
+
#
|
|
29
|
+
# @param identifier [String] A unique reference assigned by your bank for tracking and recognizing payment fi
|
|
30
|
+
#
|
|
31
|
+
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ModernTreasury
|
|
4
|
+
module Models
|
|
5
|
+
# @see ModernTreasury::Resources::InternalAccounts#update_account_capability
|
|
6
|
+
class InternalAccountUpdateAccountCapabilityResponse < ModernTreasury::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute created_at
|
|
13
|
+
#
|
|
14
|
+
# @return [Time]
|
|
15
|
+
required :created_at, Time
|
|
16
|
+
|
|
17
|
+
# @!attribute direction
|
|
18
|
+
# One of `debit` or `credit`. Indicates the direction of money movement this
|
|
19
|
+
# capability is responsible for.
|
|
20
|
+
#
|
|
21
|
+
# @return [Symbol, ModernTreasury::Models::TransactionDirection]
|
|
22
|
+
required :direction, enum: -> { ModernTreasury::TransactionDirection }
|
|
23
|
+
|
|
24
|
+
# @!attribute discarded_at
|
|
25
|
+
#
|
|
26
|
+
# @return [Time, nil]
|
|
27
|
+
required :discarded_at, Time, nil?: true
|
|
28
|
+
|
|
29
|
+
# @!attribute identifier
|
|
30
|
+
# A unique reference assigned by your bank for tracking and recognizing payment
|
|
31
|
+
# files. It is important this is formatted exactly how the bank assigned it.
|
|
32
|
+
#
|
|
33
|
+
# @return [String, nil]
|
|
34
|
+
required :identifier, String, nil?: true
|
|
35
|
+
|
|
36
|
+
# @!attribute live_mode
|
|
37
|
+
# This field will be true if this object exists in the live environment or false
|
|
38
|
+
# if it exists in the test environment.
|
|
39
|
+
#
|
|
40
|
+
# @return [Boolean]
|
|
41
|
+
required :live_mode, ModernTreasury::Internal::Type::Boolean
|
|
42
|
+
|
|
43
|
+
# @!attribute object
|
|
44
|
+
#
|
|
45
|
+
# @return [String]
|
|
46
|
+
required :object, String
|
|
47
|
+
|
|
48
|
+
# @!attribute payment_type
|
|
49
|
+
# Indicates the the type of payment this capability is responsible for
|
|
50
|
+
# originating.
|
|
51
|
+
#
|
|
52
|
+
# @return [Symbol, ModernTreasury::Models::InternalAccountUpdateAccountCapabilityResponse::PaymentType]
|
|
53
|
+
required :payment_type,
|
|
54
|
+
enum: -> { ModernTreasury::Models::InternalAccountUpdateAccountCapabilityResponse::PaymentType }
|
|
55
|
+
|
|
56
|
+
# @!attribute updated_at
|
|
57
|
+
#
|
|
58
|
+
# @return [Time]
|
|
59
|
+
required :updated_at, Time
|
|
60
|
+
|
|
61
|
+
# @!method initialize(id:, created_at:, direction:, discarded_at:, identifier:, live_mode:, object:, payment_type:, updated_at:)
|
|
62
|
+
# Some parameter documentations has been truncated, see
|
|
63
|
+
# {ModernTreasury::Models::InternalAccountUpdateAccountCapabilityResponse} for
|
|
64
|
+
# more details.
|
|
65
|
+
#
|
|
66
|
+
# @param id [String]
|
|
67
|
+
#
|
|
68
|
+
# @param created_at [Time]
|
|
69
|
+
#
|
|
70
|
+
# @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of `debit` or `credit`. Indicates the direction of money movement this capab
|
|
71
|
+
#
|
|
72
|
+
# @param discarded_at [Time, nil]
|
|
73
|
+
#
|
|
74
|
+
# @param identifier [String, nil] A unique reference assigned by your bank for tracking and recognizing payment fi
|
|
75
|
+
#
|
|
76
|
+
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
|
77
|
+
#
|
|
78
|
+
# @param object [String]
|
|
79
|
+
#
|
|
80
|
+
# @param payment_type [Symbol, ModernTreasury::Models::InternalAccountUpdateAccountCapabilityResponse::PaymentType] Indicates the the type of payment this capability is responsible for originating
|
|
81
|
+
#
|
|
82
|
+
# @param updated_at [Time]
|
|
83
|
+
|
|
84
|
+
# Indicates the the type of payment this capability is responsible for
|
|
85
|
+
# originating.
|
|
86
|
+
#
|
|
87
|
+
# @see ModernTreasury::Models::InternalAccountUpdateAccountCapabilityResponse#payment_type
|
|
88
|
+
module PaymentType
|
|
89
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
90
|
+
|
|
91
|
+
ACH = :ach
|
|
92
|
+
AU_BECS = :au_becs
|
|
93
|
+
BACS = :bacs
|
|
94
|
+
BASE = :base
|
|
95
|
+
BOOK = :book
|
|
96
|
+
CARD = :card
|
|
97
|
+
CHATS = :chats
|
|
98
|
+
CHECK = :check
|
|
99
|
+
CROSS_BORDER = :cross_border
|
|
100
|
+
DK_NETS = :dk_nets
|
|
101
|
+
EFT = :eft
|
|
102
|
+
ETHEREUM = :ethereum
|
|
103
|
+
HU_ICS = :hu_ics
|
|
104
|
+
INTERAC = :interac
|
|
105
|
+
MASAV = :masav
|
|
106
|
+
MX_CCEN = :mx_ccen
|
|
107
|
+
NEFT = :neft
|
|
108
|
+
NICS = :nics
|
|
109
|
+
NZ_BECS = :nz_becs
|
|
110
|
+
PL_ELIXIR = :pl_elixir
|
|
111
|
+
POLYGON = :polygon
|
|
112
|
+
PROVXCHANGE = :provxchange
|
|
113
|
+
RO_SENT = :ro_sent
|
|
114
|
+
RTP = :rtp
|
|
115
|
+
SE_BANKGIROT = :se_bankgirot
|
|
116
|
+
SEN = :sen
|
|
117
|
+
SEPA = :sepa
|
|
118
|
+
SG_GIRO = :sg_giro
|
|
119
|
+
SIC = :sic
|
|
120
|
+
SIGNET = :signet
|
|
121
|
+
SKNBI = :sknbi
|
|
122
|
+
SOLANA = :solana
|
|
123
|
+
WIRE = :wire
|
|
124
|
+
ZENGIN = :zengin
|
|
125
|
+
|
|
126
|
+
# @!method self.values
|
|
127
|
+
# @return [Array<Symbol>]
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
end
|
|
@@ -16,6 +16,29 @@ module ModernTreasury
|
|
|
16
16
|
# @!method initialize(internal_account_id:, request_options: {})
|
|
17
17
|
# @param internal_account_id [String]
|
|
18
18
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
|
19
|
+
|
|
20
|
+
module ID
|
|
21
|
+
extend ModernTreasury::Internal::Type::Union
|
|
22
|
+
|
|
23
|
+
variant String
|
|
24
|
+
|
|
25
|
+
variant const: -> { ModernTreasury::Models::InternalAccounts::BalanceReportRetrieveParams::ID::LATEST }
|
|
26
|
+
|
|
27
|
+
# @!method self.variants
|
|
28
|
+
# @return [Array(String, Symbol)]
|
|
29
|
+
|
|
30
|
+
define_sorbet_constant!(:Variants) do
|
|
31
|
+
T.type_alias do
|
|
32
|
+
T.any(String, ModernTreasury::InternalAccounts::BalanceReportRetrieveParams::ID::TaggedSymbol)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# @!group
|
|
37
|
+
|
|
38
|
+
LATEST = :latest
|
|
39
|
+
|
|
40
|
+
# @!endgroup
|
|
41
|
+
end
|
|
19
42
|
end
|
|
20
43
|
end
|
|
21
44
|
end
|
|
@@ -26,9 +26,8 @@ module ModernTreasury
|
|
|
26
26
|
# @!attribute contact_details
|
|
27
27
|
# The invoicer's contact details displayed at the top of the invoice.
|
|
28
28
|
#
|
|
29
|
-
# @return [Array<ModernTreasury::Models::
|
|
30
|
-
required :contact_details,
|
|
31
|
-
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Invoice::ContactDetail] }
|
|
29
|
+
# @return [Array<ModernTreasury::Models::ContactDetail>]
|
|
30
|
+
required :contact_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ContactDetail] }
|
|
32
31
|
|
|
33
32
|
# @!attribute counterparty_billing_address
|
|
34
33
|
# The counterparty's billing address.
|
|
@@ -101,6 +100,13 @@ module ModernTreasury
|
|
|
101
100
|
# @return [ModernTreasury::Models::Invoice::InvoicerAddress, nil]
|
|
102
101
|
required :invoicer_address, -> { ModernTreasury::Invoice::InvoicerAddress }, nil?: true
|
|
103
102
|
|
|
103
|
+
# @!attribute invoicer_name
|
|
104
|
+
# The name of the issuer for the invoice. Defaults to the name of the
|
|
105
|
+
# Organization.
|
|
106
|
+
#
|
|
107
|
+
# @return [String, nil]
|
|
108
|
+
required :invoicer_name, String, nil?: true
|
|
109
|
+
|
|
104
110
|
# @!attribute ledger_account_settlement_id
|
|
105
111
|
# The ledger account settlement object linked to the invoice.
|
|
106
112
|
#
|
|
@@ -244,7 +250,7 @@ module ModernTreasury
|
|
|
244
250
|
# @return [String, nil]
|
|
245
251
|
required :virtual_account_id, String, nil?: true
|
|
246
252
|
|
|
247
|
-
# @!method initialize(id:, amount_paid:, amount_remaining:, contact_details:, counterparty_billing_address:, counterparty_id:, counterparty_shipping_address:, created_at:, currency:, description:, due_date:, expected_payments:, fallback_payment_method:, hosted_url:, invoicer_address:, ledger_account_settlement_id:, live_mode:, metadata:, notification_email_addresses:, notifications_enabled:, number:, object:, originating_account_id:, payment_effective_date:, payment_method:, payment_orders:, payment_type:, pdf_url:, receiving_account_id:, recipient_email:, recipient_name:, remind_after_overdue_days:, status:, total_amount:, transaction_line_item_ids:, updated_at:, virtual_account_id:)
|
|
253
|
+
# @!method initialize(id:, amount_paid:, amount_remaining:, contact_details:, counterparty_billing_address:, counterparty_id:, counterparty_shipping_address:, created_at:, currency:, description:, due_date:, expected_payments:, fallback_payment_method:, hosted_url:, invoicer_address:, invoicer_name:, ledger_account_settlement_id:, live_mode:, metadata:, notification_email_addresses:, notifications_enabled:, number:, object:, originating_account_id:, payment_effective_date:, payment_method:, payment_orders:, payment_type:, pdf_url:, receiving_account_id:, recipient_email:, recipient_name:, remind_after_overdue_days:, status:, total_amount:, transaction_line_item_ids:, updated_at:, virtual_account_id:)
|
|
248
254
|
# Some parameter documentations has been truncated, see
|
|
249
255
|
# {ModernTreasury::Models::Invoice} for more details.
|
|
250
256
|
#
|
|
@@ -254,7 +260,7 @@ module ModernTreasury
|
|
|
254
260
|
#
|
|
255
261
|
# @param amount_remaining [Integer] Amount remaining due on the invoice in specified currency's smallest unit, e.g.,
|
|
256
262
|
#
|
|
257
|
-
# @param contact_details [Array<ModernTreasury::Models::
|
|
263
|
+
# @param contact_details [Array<ModernTreasury::Models::ContactDetail>] The invoicer's contact details displayed at the top of the invoice.
|
|
258
264
|
#
|
|
259
265
|
# @param counterparty_billing_address [ModernTreasury::Models::Invoice::CounterpartyBillingAddress, nil] The counterparty's billing address.
|
|
260
266
|
#
|
|
@@ -278,6 +284,8 @@ module ModernTreasury
|
|
|
278
284
|
#
|
|
279
285
|
# @param invoicer_address [ModernTreasury::Models::Invoice::InvoicerAddress, nil] The invoice issuer's business address.
|
|
280
286
|
#
|
|
287
|
+
# @param invoicer_name [String, nil] The name of the issuer for the invoice. Defaults to the name of the Organization
|
|
288
|
+
#
|
|
281
289
|
# @param ledger_account_settlement_id [String, nil] The ledger account settlement object linked to the invoice.
|
|
282
290
|
#
|
|
283
291
|
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
|
@@ -322,83 +330,6 @@ module ModernTreasury
|
|
|
322
330
|
#
|
|
323
331
|
# @param virtual_account_id [String, nil] The ID of the virtual account the invoice should be paid to.
|
|
324
332
|
|
|
325
|
-
class ContactDetail < ModernTreasury::Internal::Type::BaseModel
|
|
326
|
-
# @!attribute id
|
|
327
|
-
#
|
|
328
|
-
# @return [String]
|
|
329
|
-
required :id, String
|
|
330
|
-
|
|
331
|
-
# @!attribute contact_identifier
|
|
332
|
-
#
|
|
333
|
-
# @return [String]
|
|
334
|
-
required :contact_identifier, String
|
|
335
|
-
|
|
336
|
-
# @!attribute contact_identifier_type
|
|
337
|
-
#
|
|
338
|
-
# @return [Symbol, ModernTreasury::Models::Invoice::ContactDetail::ContactIdentifierType]
|
|
339
|
-
required :contact_identifier_type,
|
|
340
|
-
enum: -> { ModernTreasury::Invoice::ContactDetail::ContactIdentifierType }
|
|
341
|
-
|
|
342
|
-
# @!attribute created_at
|
|
343
|
-
#
|
|
344
|
-
# @return [Time]
|
|
345
|
-
required :created_at, Time
|
|
346
|
-
|
|
347
|
-
# @!attribute discarded_at
|
|
348
|
-
#
|
|
349
|
-
# @return [Time, nil]
|
|
350
|
-
required :discarded_at, Time, nil?: true
|
|
351
|
-
|
|
352
|
-
# @!attribute live_mode
|
|
353
|
-
# This field will be true if this object exists in the live environment or false
|
|
354
|
-
# if it exists in the test environment.
|
|
355
|
-
#
|
|
356
|
-
# @return [Boolean]
|
|
357
|
-
required :live_mode, ModernTreasury::Internal::Type::Boolean
|
|
358
|
-
|
|
359
|
-
# @!attribute object
|
|
360
|
-
#
|
|
361
|
-
# @return [String]
|
|
362
|
-
required :object, String
|
|
363
|
-
|
|
364
|
-
# @!attribute updated_at
|
|
365
|
-
#
|
|
366
|
-
# @return [Time]
|
|
367
|
-
required :updated_at, Time
|
|
368
|
-
|
|
369
|
-
# @!method initialize(id:, contact_identifier:, contact_identifier_type:, created_at:, discarded_at:, live_mode:, object:, updated_at:)
|
|
370
|
-
# Some parameter documentations has been truncated, see
|
|
371
|
-
# {ModernTreasury::Models::Invoice::ContactDetail} for more details.
|
|
372
|
-
#
|
|
373
|
-
# @param id [String]
|
|
374
|
-
#
|
|
375
|
-
# @param contact_identifier [String]
|
|
376
|
-
#
|
|
377
|
-
# @param contact_identifier_type [Symbol, ModernTreasury::Models::Invoice::ContactDetail::ContactIdentifierType]
|
|
378
|
-
#
|
|
379
|
-
# @param created_at [Time]
|
|
380
|
-
#
|
|
381
|
-
# @param discarded_at [Time, nil]
|
|
382
|
-
#
|
|
383
|
-
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
|
384
|
-
#
|
|
385
|
-
# @param object [String]
|
|
386
|
-
#
|
|
387
|
-
# @param updated_at [Time]
|
|
388
|
-
|
|
389
|
-
# @see ModernTreasury::Models::Invoice::ContactDetail#contact_identifier_type
|
|
390
|
-
module ContactIdentifierType
|
|
391
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
392
|
-
|
|
393
|
-
EMAIL = :email
|
|
394
|
-
PHONE_NUMBER = :phone_number
|
|
395
|
-
WEBSITE = :website
|
|
396
|
-
|
|
397
|
-
# @!method self.values
|
|
398
|
-
# @return [Array<Symbol>]
|
|
399
|
-
end
|
|
400
|
-
end
|
|
401
|
-
|
|
402
333
|
# @see ModernTreasury::Models::Invoice#counterparty_billing_address
|
|
403
334
|
class CounterpartyBillingAddress < ModernTreasury::Internal::Type::BaseModel
|
|
404
335
|
# @!attribute country
|
|
@@ -36,11 +36,8 @@ module ModernTreasury
|
|
|
36
36
|
# @!attribute contact_details
|
|
37
37
|
# The invoicer's contact details displayed at the top of the invoice.
|
|
38
38
|
#
|
|
39
|
-
# @return [Array<ModernTreasury::Models::
|
|
40
|
-
optional :contact_details,
|
|
41
|
-
-> {
|
|
42
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::InvoiceCreateParams::ContactDetail]
|
|
43
|
-
}
|
|
39
|
+
# @return [Array<ModernTreasury::Models::ContactDetail>, nil]
|
|
40
|
+
optional :contact_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ContactDetail] }
|
|
44
41
|
|
|
45
42
|
# @!attribute counterparty_billing_address
|
|
46
43
|
# The counterparty's billing address.
|
|
@@ -203,7 +200,7 @@ module ModernTreasury
|
|
|
203
200
|
#
|
|
204
201
|
# @param auto_advance [Boolean, nil] When true, the invoice will progress to unpaid automatically and cannot be edite
|
|
205
202
|
#
|
|
206
|
-
# @param contact_details [Array<ModernTreasury::Models::
|
|
203
|
+
# @param contact_details [Array<ModernTreasury::Models::ContactDetail>] The invoicer's contact details displayed at the top of the invoice.
|
|
207
204
|
#
|
|
208
205
|
# @param counterparty_billing_address [ModernTreasury::Models::InvoiceCreateParams::CounterpartyBillingAddress, nil] The counterparty's billing address.
|
|
209
206
|
#
|
|
@@ -247,83 +244,6 @@ module ModernTreasury
|
|
|
247
244
|
#
|
|
248
245
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
|
249
246
|
|
|
250
|
-
class ContactDetail < ModernTreasury::Internal::Type::BaseModel
|
|
251
|
-
# @!attribute id
|
|
252
|
-
#
|
|
253
|
-
# @return [String]
|
|
254
|
-
required :id, String
|
|
255
|
-
|
|
256
|
-
# @!attribute contact_identifier
|
|
257
|
-
#
|
|
258
|
-
# @return [String]
|
|
259
|
-
required :contact_identifier, String
|
|
260
|
-
|
|
261
|
-
# @!attribute contact_identifier_type
|
|
262
|
-
#
|
|
263
|
-
# @return [Symbol, ModernTreasury::Models::InvoiceCreateParams::ContactDetail::ContactIdentifierType]
|
|
264
|
-
required :contact_identifier_type,
|
|
265
|
-
enum: -> { ModernTreasury::InvoiceCreateParams::ContactDetail::ContactIdentifierType }
|
|
266
|
-
|
|
267
|
-
# @!attribute created_at
|
|
268
|
-
#
|
|
269
|
-
# @return [Time]
|
|
270
|
-
required :created_at, Time
|
|
271
|
-
|
|
272
|
-
# @!attribute discarded_at
|
|
273
|
-
#
|
|
274
|
-
# @return [Time, nil]
|
|
275
|
-
required :discarded_at, Time, nil?: true
|
|
276
|
-
|
|
277
|
-
# @!attribute live_mode
|
|
278
|
-
# This field will be true if this object exists in the live environment or false
|
|
279
|
-
# if it exists in the test environment.
|
|
280
|
-
#
|
|
281
|
-
# @return [Boolean]
|
|
282
|
-
required :live_mode, ModernTreasury::Internal::Type::Boolean
|
|
283
|
-
|
|
284
|
-
# @!attribute object
|
|
285
|
-
#
|
|
286
|
-
# @return [String]
|
|
287
|
-
required :object, String
|
|
288
|
-
|
|
289
|
-
# @!attribute updated_at
|
|
290
|
-
#
|
|
291
|
-
# @return [Time]
|
|
292
|
-
required :updated_at, Time
|
|
293
|
-
|
|
294
|
-
# @!method initialize(id:, contact_identifier:, contact_identifier_type:, created_at:, discarded_at:, live_mode:, object:, updated_at:)
|
|
295
|
-
# Some parameter documentations has been truncated, see
|
|
296
|
-
# {ModernTreasury::Models::InvoiceCreateParams::ContactDetail} for more details.
|
|
297
|
-
#
|
|
298
|
-
# @param id [String]
|
|
299
|
-
#
|
|
300
|
-
# @param contact_identifier [String]
|
|
301
|
-
#
|
|
302
|
-
# @param contact_identifier_type [Symbol, ModernTreasury::Models::InvoiceCreateParams::ContactDetail::ContactIdentifierType]
|
|
303
|
-
#
|
|
304
|
-
# @param created_at [Time]
|
|
305
|
-
#
|
|
306
|
-
# @param discarded_at [Time, nil]
|
|
307
|
-
#
|
|
308
|
-
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
|
309
|
-
#
|
|
310
|
-
# @param object [String]
|
|
311
|
-
#
|
|
312
|
-
# @param updated_at [Time]
|
|
313
|
-
|
|
314
|
-
# @see ModernTreasury::Models::InvoiceCreateParams::ContactDetail#contact_identifier_type
|
|
315
|
-
module ContactIdentifierType
|
|
316
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
317
|
-
|
|
318
|
-
EMAIL = :email
|
|
319
|
-
PHONE_NUMBER = :phone_number
|
|
320
|
-
WEBSITE = :website
|
|
321
|
-
|
|
322
|
-
# @!method self.values
|
|
323
|
-
# @return [Array<Symbol>]
|
|
324
|
-
end
|
|
325
|
-
end
|
|
326
|
-
|
|
327
247
|
class CounterpartyBillingAddress < ModernTreasury::Internal::Type::BaseModel
|
|
328
248
|
# @!attribute country
|
|
329
249
|
# Country code conforms to [ISO 3166-1 alpha-2]
|