modern_treasury 0.1.0.pre.alpha.22 → 0.2.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 +54 -0
- data/README.md +1 -1
- data/lib/modern_treasury/client.rb +0 -12
- data/lib/modern_treasury/internal/transport/base_client.rb +1 -1
- data/lib/modern_treasury/internal/type/array_of.rb +1 -0
- data/lib/modern_treasury/internal/type/base_model.rb +7 -5
- data/lib/modern_treasury/internal/type/converter.rb +27 -0
- data/lib/modern_treasury/internal/type/hash_of.rb +1 -0
- data/lib/modern_treasury/internal/type/union.rb +9 -7
- 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 +144 -1505
- 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 +37 -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 +18 -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/internal_account.rb +3 -95
- 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/invoice.rb +3 -81
- 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 +9 -141
- data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +3 -182
- data/lib/modern_treasury/models/ledger_account_category.rb +3 -175
- data/lib/modern_treasury/models/ledger_account_category_list_params.rb +9 -5
- 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_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 +8 -6
- 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 +2 -0
- data/lib/modern_treasury/models/payment_order.rb +13 -102
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +24 -477
- data/lib/modern_treasury/models/payment_order_create_params.rb +24 -479
- data/lib/modern_treasury/models/payment_order_update_params.rb +21 -248
- data/lib/modern_treasury/models/payment_orders/reversal.rb +3 -4
- data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +3 -232
- data/lib/modern_treasury/models/payment_reference.rb +7 -1
- data/lib/modern_treasury/models/return_list_params.rb +5 -6
- data/lib/modern_treasury/models/return_object.rb +7 -3
- data/lib/modern_treasury/models/routing_detail.rb +3 -93
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +3 -55
- data/lib/modern_treasury/models/transaction.rb +5 -73
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +0 -1
- data/lib/modern_treasury/models/virtual_account_create_params.rb +3 -117
- data/lib/modern_treasury/models.rb +31 -6
- 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.rb +34 -0
- data/lib/modern_treasury/resources/invoices.rb +2 -2
- data/lib/modern_treasury/resources/ledger_account_categories.rb +1 -1
- data/lib/modern_treasury/resources/ledger_accounts.rb +1 -1
- 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 +5 -5
- data/lib/modern_treasury/resources/returns.rb +1 -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 -6
- data/rbi/modern_treasury/client.rbi +0 -9
- data/rbi/modern_treasury/internal/transport/base_client.rbi +1 -1
- data/rbi/modern_treasury/internal/type/converter.rbi +58 -0
- data/rbi/modern_treasury/internal/type/union.rbi +11 -2
- 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 +701 -3140
- 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 +47 -1718
- 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 +20 -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/internal_account.rbi +4 -115
- 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/invoice.rbi +3 -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 +12 -218
- data/rbi/modern_treasury/models/ledger_account_balance_monitor.rbi +4 -303
- data/rbi/modern_treasury/models/ledger_account_category.rbi +4 -301
- data/rbi/modern_treasury/models/ledger_account_category_list_params.rbi +14 -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_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 +13 -8
- 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 +10 -0
- data/rbi/modern_treasury/models/payment_order.rbi +43 -159
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +28 -882
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +28 -887
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +24 -460
- data/rbi/modern_treasury/models/payment_orders/reversal.rbi +3 -3
- data/rbi/modern_treasury/models/payment_orders/reversal_create_params.rbi +4 -415
- data/rbi/modern_treasury/models/payment_reference.rbi +35 -5
- data/rbi/modern_treasury/models/return_list_params.rbi +6 -11
- data/rbi/modern_treasury/models/return_object.rbi +35 -12
- data/rbi/modern_treasury/models/routing_detail.rbi +4 -113
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +4 -87
- data/rbi/modern_treasury/models/transaction.rbi +14 -103
- data/rbi/modern_treasury/models/transactions/transaction_line_item.rbi +0 -5
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +4 -203
- data/rbi/modern_treasury/models.rbi +36 -6
- data/rbi/modern_treasury/resources/bulk_requests.rbi +2 -2
- 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.rbi +24 -0
- data/rbi/modern_treasury/resources/invoices.rbi +2 -8
- data/rbi/modern_treasury/resources/ledger_account_categories.rbi +7 -3
- data/rbi/modern_treasury/resources/ledger_accounts.rbi +1 -1
- data/rbi/modern_treasury/resources/ledger_entries.rbi +4 -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 +5 -8
- data/rbi/modern_treasury/resources/returns.rbi +2 -2
- data/rbi/modern_treasury/resources/virtual_accounts.rbi +1 -2
- data/sig/modern_treasury/client.rbs +0 -6
- data/sig/modern_treasury/internal/transport/base_client.rbs +1 -1
- data/sig/modern_treasury/internal/type/converter.rbs +17 -0
- data/sig/modern_treasury/internal/type/union.rbs +2 -2
- 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 +88 -1089
- 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 +49 -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 +23 -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/internal_account.rbs +4 -71
- 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/invoice.rbs +4 -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 +12 -123
- data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +4 -142
- data/sig/modern_treasury/models/ledger_account_category.rbs +4 -142
- data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +5 -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_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 +6 -6
- 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 +4 -1
- data/sig/modern_treasury/models/payment_order.rbs +22 -69
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +35 -380
- data/sig/modern_treasury/models/payment_order_create_params.rbs +35 -384
- data/sig/modern_treasury/models/payment_order_update_params.rbs +29 -207
- data/sig/modern_treasury/models/payment_orders/reversal.rbs +4 -4
- data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +6 -173
- data/sig/modern_treasury/models/payment_reference.rbs +14 -2
- data/sig/modern_treasury/models/return_list_params.rbs +1 -6
- data/sig/modern_treasury/models/return_object.rbs +15 -10
- data/sig/modern_treasury/models/routing_detail.rbs +4 -71
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +6 -48
- data/sig/modern_treasury/models/transaction.rbs +8 -53
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +0 -2
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +6 -95
- data/sig/modern_treasury/models.rbs +30 -6
- 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.rbs +7 -0
- data/sig/modern_treasury/resources/invoices.rbs +2 -2
- data/sig/modern_treasury/resources/ledger_account_categories.rbs +1 -1
- data/sig/modern_treasury/resources/ledger_accounts.rbs +1 -1
- data/sig/modern_treasury/resources/ledger_entries.rbs +1 -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 +5 -5
- data/sig/modern_treasury/resources/virtual_accounts.rbs +1 -1
- metadata +52 -22
- 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 -14
- data/lib/modern_treasury/resources/ledgerable_events.rb +0 -14
- data/lib/modern_treasury/resources/paper_items.rb +0 -68
- 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 -12
- data/rbi/modern_treasury/resources/ledgerable_events.rbi +0 -12
- data/rbi/modern_treasury/resources/paper_items.rbi +0 -51
- 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 -7
- data/sig/modern_treasury/resources/ledgerable_events.rbs +0 -7
- data/sig/modern_treasury/resources/paper_items.rbs +0 -21
|
@@ -14,17 +14,10 @@ module ModernTreasury
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
sig
|
|
18
|
-
returns(T.nilable(ModernTreasury::PaymentOrderUpdateParams::Accounting))
|
|
19
|
-
end
|
|
17
|
+
sig { returns(T.nilable(ModernTreasury::Accounting)) }
|
|
20
18
|
attr_reader :accounting
|
|
21
19
|
|
|
22
|
-
sig
|
|
23
|
-
params(
|
|
24
|
-
accounting:
|
|
25
|
-
ModernTreasury::PaymentOrderUpdateParams::Accounting::OrHash
|
|
26
|
-
).void
|
|
27
|
-
end
|
|
20
|
+
sig { params(accounting: ModernTreasury::Accounting::OrHash).void }
|
|
28
21
|
attr_writer :accounting
|
|
29
22
|
|
|
30
23
|
# The ID of one of your accounting categories. Note that these will only be
|
|
@@ -330,8 +323,7 @@ module ModernTreasury
|
|
|
330
323
|
|
|
331
324
|
sig do
|
|
332
325
|
params(
|
|
333
|
-
accounting:
|
|
334
|
-
ModernTreasury::PaymentOrderUpdateParams::Accounting::OrHash,
|
|
326
|
+
accounting: ModernTreasury::Accounting::OrHash,
|
|
335
327
|
accounting_category_id: T.nilable(String),
|
|
336
328
|
accounting_ledger_class_id: T.nilable(String),
|
|
337
329
|
amount: Integer,
|
|
@@ -511,7 +503,7 @@ module ModernTreasury
|
|
|
511
503
|
sig do
|
|
512
504
|
override.returns(
|
|
513
505
|
{
|
|
514
|
-
accounting: ModernTreasury::
|
|
506
|
+
accounting: ModernTreasury::Accounting,
|
|
515
507
|
accounting_category_id: T.nilable(String),
|
|
516
508
|
accounting_ledger_class_id: T.nilable(String),
|
|
517
509
|
amount: Integer,
|
|
@@ -563,52 +555,6 @@ module ModernTreasury
|
|
|
563
555
|
def to_hash
|
|
564
556
|
end
|
|
565
557
|
|
|
566
|
-
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
|
567
|
-
OrHash =
|
|
568
|
-
T.type_alias do
|
|
569
|
-
T.any(
|
|
570
|
-
ModernTreasury::PaymentOrderUpdateParams::Accounting,
|
|
571
|
-
ModernTreasury::Internal::AnyHash
|
|
572
|
-
)
|
|
573
|
-
end
|
|
574
|
-
|
|
575
|
-
# The ID of one of your accounting categories. Note that these will only be
|
|
576
|
-
# accessible if your accounting system has been connected.
|
|
577
|
-
sig { returns(T.nilable(String)) }
|
|
578
|
-
attr_accessor :account_id
|
|
579
|
-
|
|
580
|
-
# The ID of one of the class objects in your accounting system. Class objects
|
|
581
|
-
# track segments of your business independent of client or project. Note that
|
|
582
|
-
# these will only be accessible if your accounting system has been connected.
|
|
583
|
-
sig { returns(T.nilable(String)) }
|
|
584
|
-
attr_accessor :class_id
|
|
585
|
-
|
|
586
|
-
sig do
|
|
587
|
-
params(
|
|
588
|
-
account_id: T.nilable(String),
|
|
589
|
-
class_id: T.nilable(String)
|
|
590
|
-
).returns(T.attached_class)
|
|
591
|
-
end
|
|
592
|
-
def self.new(
|
|
593
|
-
# The ID of one of your accounting categories. Note that these will only be
|
|
594
|
-
# accessible if your accounting system has been connected.
|
|
595
|
-
account_id: nil,
|
|
596
|
-
# The ID of one of the class objects in your accounting system. Class objects
|
|
597
|
-
# track segments of your business independent of client or project. Note that
|
|
598
|
-
# these will only be accessible if your accounting system has been connected.
|
|
599
|
-
class_id: nil
|
|
600
|
-
)
|
|
601
|
-
end
|
|
602
|
-
|
|
603
|
-
sig do
|
|
604
|
-
override.returns(
|
|
605
|
-
{ account_id: T.nilable(String), class_id: T.nilable(String) }
|
|
606
|
-
)
|
|
607
|
-
end
|
|
608
|
-
def to_hash
|
|
609
|
-
end
|
|
610
|
-
end
|
|
611
|
-
|
|
612
558
|
# The party that will pay the fees for the payment order. See
|
|
613
559
|
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
|
614
560
|
# differences between the options.
|
|
@@ -902,11 +848,7 @@ module ModernTreasury
|
|
|
902
848
|
|
|
903
849
|
sig do
|
|
904
850
|
returns(
|
|
905
|
-
T.nilable(
|
|
906
|
-
T::Array[
|
|
907
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::ContactDetail
|
|
908
|
-
]
|
|
909
|
-
)
|
|
851
|
+
T.nilable(T::Array[ModernTreasury::ContactDetailCreateRequest])
|
|
910
852
|
)
|
|
911
853
|
end
|
|
912
854
|
attr_reader :contact_details
|
|
@@ -914,31 +856,26 @@ module ModernTreasury
|
|
|
914
856
|
sig do
|
|
915
857
|
params(
|
|
916
858
|
contact_details:
|
|
917
|
-
T::Array[
|
|
918
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::ContactDetail::OrHash
|
|
919
|
-
]
|
|
859
|
+
T::Array[ModernTreasury::ContactDetailCreateRequest::OrHash]
|
|
920
860
|
).void
|
|
921
861
|
end
|
|
922
862
|
attr_writer :contact_details
|
|
923
863
|
|
|
864
|
+
# An optional user-defined 180 character unique identifier.
|
|
865
|
+
sig { returns(T.nilable(String)) }
|
|
866
|
+
attr_accessor :external_id
|
|
867
|
+
|
|
924
868
|
# Specifies a ledger account object that will be created with the external
|
|
925
869
|
# account. The resulting ledger account is linked to the external account for
|
|
926
870
|
# auto-ledgering Payment objects. See
|
|
927
871
|
# https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
|
|
928
872
|
# for more details.
|
|
929
|
-
sig
|
|
930
|
-
returns(
|
|
931
|
-
T.nilable(
|
|
932
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount
|
|
933
|
-
)
|
|
934
|
-
)
|
|
935
|
-
end
|
|
873
|
+
sig { returns(T.nilable(ModernTreasury::LedgerAccountCreateRequest)) }
|
|
936
874
|
attr_reader :ledger_account
|
|
937
875
|
|
|
938
876
|
sig do
|
|
939
877
|
params(
|
|
940
|
-
ledger_account:
|
|
941
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount::OrHash
|
|
878
|
+
ledger_account: ModernTreasury::LedgerAccountCreateRequest::OrHash
|
|
942
879
|
).void
|
|
943
880
|
end
|
|
944
881
|
attr_writer :ledger_account
|
|
@@ -957,20 +894,11 @@ module ModernTreasury
|
|
|
957
894
|
attr_accessor :name
|
|
958
895
|
|
|
959
896
|
# Required if receiving wire payments.
|
|
960
|
-
sig
|
|
961
|
-
returns(
|
|
962
|
-
T.nilable(
|
|
963
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::PartyAddress
|
|
964
|
-
)
|
|
965
|
-
)
|
|
966
|
-
end
|
|
897
|
+
sig { returns(T.nilable(ModernTreasury::AddressRequest)) }
|
|
967
898
|
attr_reader :party_address
|
|
968
899
|
|
|
969
900
|
sig do
|
|
970
|
-
params(
|
|
971
|
-
party_address:
|
|
972
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::PartyAddress::OrHash
|
|
973
|
-
).void
|
|
901
|
+
params(party_address: ModernTreasury::AddressRequest::OrHash).void
|
|
974
902
|
end
|
|
975
903
|
attr_writer :party_address
|
|
976
904
|
|
|
@@ -1037,15 +965,12 @@ module ModernTreasury
|
|
|
1037
965
|
],
|
|
1038
966
|
account_type: ModernTreasury::ExternalAccountType::OrSymbol,
|
|
1039
967
|
contact_details:
|
|
1040
|
-
T::Array[
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
ledger_account:
|
|
1044
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount::OrHash,
|
|
968
|
+
T::Array[ModernTreasury::ContactDetailCreateRequest::OrHash],
|
|
969
|
+
external_id: T.nilable(String),
|
|
970
|
+
ledger_account: ModernTreasury::LedgerAccountCreateRequest::OrHash,
|
|
1045
971
|
metadata: T::Hash[Symbol, String],
|
|
1046
972
|
name: T.nilable(String),
|
|
1047
|
-
party_address:
|
|
1048
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::PartyAddress::OrHash,
|
|
973
|
+
party_address: ModernTreasury::AddressRequest::OrHash,
|
|
1049
974
|
party_identifier: String,
|
|
1050
975
|
party_name: String,
|
|
1051
976
|
party_type:
|
|
@@ -1064,6 +989,8 @@ module ModernTreasury
|
|
|
1064
989
|
# Can be `checking`, `savings` or `other`.
|
|
1065
990
|
account_type: nil,
|
|
1066
991
|
contact_details: nil,
|
|
992
|
+
# An optional user-defined 180 character unique identifier.
|
|
993
|
+
external_id: nil,
|
|
1067
994
|
# Specifies a ledger account object that will be created with the external
|
|
1068
995
|
# account. The resulting ledger account is linked to the external account for
|
|
1069
996
|
# auto-ledgering Payment objects. See
|
|
@@ -1099,15 +1026,12 @@ module ModernTreasury
|
|
|
1099
1026
|
],
|
|
1100
1027
|
account_type: ModernTreasury::ExternalAccountType::OrSymbol,
|
|
1101
1028
|
contact_details:
|
|
1102
|
-
T::Array[
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
ledger_account:
|
|
1106
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount,
|
|
1029
|
+
T::Array[ModernTreasury::ContactDetailCreateRequest],
|
|
1030
|
+
external_id: T.nilable(String),
|
|
1031
|
+
ledger_account: ModernTreasury::LedgerAccountCreateRequest,
|
|
1107
1032
|
metadata: T::Hash[Symbol, String],
|
|
1108
1033
|
name: T.nilable(String),
|
|
1109
|
-
party_address:
|
|
1110
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::PartyAddress,
|
|
1034
|
+
party_address: ModernTreasury::AddressRequest,
|
|
1111
1035
|
party_identifier: String,
|
|
1112
1036
|
party_name: String,
|
|
1113
1037
|
party_type:
|
|
@@ -1271,366 +1195,6 @@ module ModernTreasury
|
|
|
1271
1195
|
end
|
|
1272
1196
|
end
|
|
1273
1197
|
|
|
1274
|
-
class ContactDetail < ModernTreasury::Internal::Type::BaseModel
|
|
1275
|
-
OrHash =
|
|
1276
|
-
T.type_alias do
|
|
1277
|
-
T.any(
|
|
1278
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::ContactDetail,
|
|
1279
|
-
ModernTreasury::Internal::AnyHash
|
|
1280
|
-
)
|
|
1281
|
-
end
|
|
1282
|
-
|
|
1283
|
-
sig { returns(T.nilable(String)) }
|
|
1284
|
-
attr_reader :contact_identifier
|
|
1285
|
-
|
|
1286
|
-
sig { params(contact_identifier: String).void }
|
|
1287
|
-
attr_writer :contact_identifier
|
|
1288
|
-
|
|
1289
|
-
sig do
|
|
1290
|
-
returns(
|
|
1291
|
-
T.nilable(
|
|
1292
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::ContactDetail::ContactIdentifierType::OrSymbol
|
|
1293
|
-
)
|
|
1294
|
-
)
|
|
1295
|
-
end
|
|
1296
|
-
attr_reader :contact_identifier_type
|
|
1297
|
-
|
|
1298
|
-
sig do
|
|
1299
|
-
params(
|
|
1300
|
-
contact_identifier_type:
|
|
1301
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::ContactDetail::ContactIdentifierType::OrSymbol
|
|
1302
|
-
).void
|
|
1303
|
-
end
|
|
1304
|
-
attr_writer :contact_identifier_type
|
|
1305
|
-
|
|
1306
|
-
sig do
|
|
1307
|
-
params(
|
|
1308
|
-
contact_identifier: String,
|
|
1309
|
-
contact_identifier_type:
|
|
1310
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::ContactDetail::ContactIdentifierType::OrSymbol
|
|
1311
|
-
).returns(T.attached_class)
|
|
1312
|
-
end
|
|
1313
|
-
def self.new(contact_identifier: nil, contact_identifier_type: nil)
|
|
1314
|
-
end
|
|
1315
|
-
|
|
1316
|
-
sig do
|
|
1317
|
-
override.returns(
|
|
1318
|
-
{
|
|
1319
|
-
contact_identifier: String,
|
|
1320
|
-
contact_identifier_type:
|
|
1321
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::ContactDetail::ContactIdentifierType::OrSymbol
|
|
1322
|
-
}
|
|
1323
|
-
)
|
|
1324
|
-
end
|
|
1325
|
-
def to_hash
|
|
1326
|
-
end
|
|
1327
|
-
|
|
1328
|
-
module ContactIdentifierType
|
|
1329
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
1330
|
-
|
|
1331
|
-
TaggedSymbol =
|
|
1332
|
-
T.type_alias do
|
|
1333
|
-
T.all(
|
|
1334
|
-
Symbol,
|
|
1335
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::ContactDetail::ContactIdentifierType
|
|
1336
|
-
)
|
|
1337
|
-
end
|
|
1338
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1339
|
-
|
|
1340
|
-
EMAIL =
|
|
1341
|
-
T.let(
|
|
1342
|
-
:email,
|
|
1343
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::ContactDetail::ContactIdentifierType::TaggedSymbol
|
|
1344
|
-
)
|
|
1345
|
-
PHONE_NUMBER =
|
|
1346
|
-
T.let(
|
|
1347
|
-
:phone_number,
|
|
1348
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::ContactDetail::ContactIdentifierType::TaggedSymbol
|
|
1349
|
-
)
|
|
1350
|
-
WEBSITE =
|
|
1351
|
-
T.let(
|
|
1352
|
-
:website,
|
|
1353
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::ContactDetail::ContactIdentifierType::TaggedSymbol
|
|
1354
|
-
)
|
|
1355
|
-
|
|
1356
|
-
sig do
|
|
1357
|
-
override.returns(
|
|
1358
|
-
T::Array[
|
|
1359
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::ContactDetail::ContactIdentifierType::TaggedSymbol
|
|
1360
|
-
]
|
|
1361
|
-
)
|
|
1362
|
-
end
|
|
1363
|
-
def self.values
|
|
1364
|
-
end
|
|
1365
|
-
end
|
|
1366
|
-
end
|
|
1367
|
-
|
|
1368
|
-
class LedgerAccount < ModernTreasury::Internal::Type::BaseModel
|
|
1369
|
-
OrHash =
|
|
1370
|
-
T.type_alias do
|
|
1371
|
-
T.any(
|
|
1372
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount,
|
|
1373
|
-
ModernTreasury::Internal::AnyHash
|
|
1374
|
-
)
|
|
1375
|
-
end
|
|
1376
|
-
|
|
1377
|
-
# The currency of the ledger account.
|
|
1378
|
-
sig { returns(String) }
|
|
1379
|
-
attr_accessor :currency
|
|
1380
|
-
|
|
1381
|
-
# The id of the ledger that this account belongs to.
|
|
1382
|
-
sig { returns(String) }
|
|
1383
|
-
attr_accessor :ledger_id
|
|
1384
|
-
|
|
1385
|
-
# The name of the ledger account.
|
|
1386
|
-
sig { returns(String) }
|
|
1387
|
-
attr_accessor :name
|
|
1388
|
-
|
|
1389
|
-
# The normal balance of the ledger account.
|
|
1390
|
-
sig { returns(ModernTreasury::TransactionDirection::OrSymbol) }
|
|
1391
|
-
attr_accessor :normal_balance
|
|
1392
|
-
|
|
1393
|
-
# The currency exponent of the ledger account.
|
|
1394
|
-
sig { returns(T.nilable(Integer)) }
|
|
1395
|
-
attr_accessor :currency_exponent
|
|
1396
|
-
|
|
1397
|
-
# The description of the ledger account.
|
|
1398
|
-
sig { returns(T.nilable(String)) }
|
|
1399
|
-
attr_accessor :description
|
|
1400
|
-
|
|
1401
|
-
# The array of ledger account category ids that this ledger account should be a
|
|
1402
|
-
# child of.
|
|
1403
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
1404
|
-
attr_reader :ledger_account_category_ids
|
|
1405
|
-
|
|
1406
|
-
sig { params(ledger_account_category_ids: T::Array[String]).void }
|
|
1407
|
-
attr_writer :ledger_account_category_ids
|
|
1408
|
-
|
|
1409
|
-
# If the ledger account links to another object in Modern Treasury, the id will be
|
|
1410
|
-
# populated here, otherwise null.
|
|
1411
|
-
sig { returns(T.nilable(String)) }
|
|
1412
|
-
attr_reader :ledgerable_id
|
|
1413
|
-
|
|
1414
|
-
sig { params(ledgerable_id: String).void }
|
|
1415
|
-
attr_writer :ledgerable_id
|
|
1416
|
-
|
|
1417
|
-
# If the ledger account links to another object in Modern Treasury, the type will
|
|
1418
|
-
# be populated here, otherwise null. The value is one of internal_account or
|
|
1419
|
-
# external_account.
|
|
1420
|
-
sig do
|
|
1421
|
-
returns(
|
|
1422
|
-
T.nilable(
|
|
1423
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount::LedgerableType::OrSymbol
|
|
1424
|
-
)
|
|
1425
|
-
)
|
|
1426
|
-
end
|
|
1427
|
-
attr_reader :ledgerable_type
|
|
1428
|
-
|
|
1429
|
-
sig do
|
|
1430
|
-
params(
|
|
1431
|
-
ledgerable_type:
|
|
1432
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount::LedgerableType::OrSymbol
|
|
1433
|
-
).void
|
|
1434
|
-
end
|
|
1435
|
-
attr_writer :ledgerable_type
|
|
1436
|
-
|
|
1437
|
-
# Additional data represented as key-value pairs. Both the key and value must be
|
|
1438
|
-
# strings.
|
|
1439
|
-
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
1440
|
-
attr_reader :metadata
|
|
1441
|
-
|
|
1442
|
-
sig { params(metadata: T::Hash[Symbol, String]).void }
|
|
1443
|
-
attr_writer :metadata
|
|
1444
|
-
|
|
1445
|
-
# Specifies a ledger account object that will be created with the external
|
|
1446
|
-
# account. The resulting ledger account is linked to the external account for
|
|
1447
|
-
# auto-ledgering Payment objects. See
|
|
1448
|
-
# https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
|
|
1449
|
-
# for more details.
|
|
1450
|
-
sig do
|
|
1451
|
-
params(
|
|
1452
|
-
currency: String,
|
|
1453
|
-
ledger_id: String,
|
|
1454
|
-
name: String,
|
|
1455
|
-
normal_balance: ModernTreasury::TransactionDirection::OrSymbol,
|
|
1456
|
-
currency_exponent: T.nilable(Integer),
|
|
1457
|
-
description: T.nilable(String),
|
|
1458
|
-
ledger_account_category_ids: T::Array[String],
|
|
1459
|
-
ledgerable_id: String,
|
|
1460
|
-
ledgerable_type:
|
|
1461
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount::LedgerableType::OrSymbol,
|
|
1462
|
-
metadata: T::Hash[Symbol, String]
|
|
1463
|
-
).returns(T.attached_class)
|
|
1464
|
-
end
|
|
1465
|
-
def self.new(
|
|
1466
|
-
# The currency of the ledger account.
|
|
1467
|
-
currency:,
|
|
1468
|
-
# The id of the ledger that this account belongs to.
|
|
1469
|
-
ledger_id:,
|
|
1470
|
-
# The name of the ledger account.
|
|
1471
|
-
name:,
|
|
1472
|
-
# The normal balance of the ledger account.
|
|
1473
|
-
normal_balance:,
|
|
1474
|
-
# The currency exponent of the ledger account.
|
|
1475
|
-
currency_exponent: nil,
|
|
1476
|
-
# The description of the ledger account.
|
|
1477
|
-
description: nil,
|
|
1478
|
-
# The array of ledger account category ids that this ledger account should be a
|
|
1479
|
-
# child of.
|
|
1480
|
-
ledger_account_category_ids: nil,
|
|
1481
|
-
# If the ledger account links to another object in Modern Treasury, the id will be
|
|
1482
|
-
# populated here, otherwise null.
|
|
1483
|
-
ledgerable_id: nil,
|
|
1484
|
-
# If the ledger account links to another object in Modern Treasury, the type will
|
|
1485
|
-
# be populated here, otherwise null. The value is one of internal_account or
|
|
1486
|
-
# external_account.
|
|
1487
|
-
ledgerable_type: nil,
|
|
1488
|
-
# Additional data represented as key-value pairs. Both the key and value must be
|
|
1489
|
-
# strings.
|
|
1490
|
-
metadata: nil
|
|
1491
|
-
)
|
|
1492
|
-
end
|
|
1493
|
-
|
|
1494
|
-
sig do
|
|
1495
|
-
override.returns(
|
|
1496
|
-
{
|
|
1497
|
-
currency: String,
|
|
1498
|
-
ledger_id: String,
|
|
1499
|
-
name: String,
|
|
1500
|
-
normal_balance: ModernTreasury::TransactionDirection::OrSymbol,
|
|
1501
|
-
currency_exponent: T.nilable(Integer),
|
|
1502
|
-
description: T.nilable(String),
|
|
1503
|
-
ledger_account_category_ids: T::Array[String],
|
|
1504
|
-
ledgerable_id: String,
|
|
1505
|
-
ledgerable_type:
|
|
1506
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount::LedgerableType::OrSymbol,
|
|
1507
|
-
metadata: T::Hash[Symbol, String]
|
|
1508
|
-
}
|
|
1509
|
-
)
|
|
1510
|
-
end
|
|
1511
|
-
def to_hash
|
|
1512
|
-
end
|
|
1513
|
-
|
|
1514
|
-
# If the ledger account links to another object in Modern Treasury, the type will
|
|
1515
|
-
# be populated here, otherwise null. The value is one of internal_account or
|
|
1516
|
-
# external_account.
|
|
1517
|
-
module LedgerableType
|
|
1518
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
1519
|
-
|
|
1520
|
-
TaggedSymbol =
|
|
1521
|
-
T.type_alias do
|
|
1522
|
-
T.all(
|
|
1523
|
-
Symbol,
|
|
1524
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount::LedgerableType
|
|
1525
|
-
)
|
|
1526
|
-
end
|
|
1527
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1528
|
-
|
|
1529
|
-
COUNTERPARTY =
|
|
1530
|
-
T.let(
|
|
1531
|
-
:counterparty,
|
|
1532
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount::LedgerableType::TaggedSymbol
|
|
1533
|
-
)
|
|
1534
|
-
EXTERNAL_ACCOUNT =
|
|
1535
|
-
T.let(
|
|
1536
|
-
:external_account,
|
|
1537
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount::LedgerableType::TaggedSymbol
|
|
1538
|
-
)
|
|
1539
|
-
INTERNAL_ACCOUNT =
|
|
1540
|
-
T.let(
|
|
1541
|
-
:internal_account,
|
|
1542
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount::LedgerableType::TaggedSymbol
|
|
1543
|
-
)
|
|
1544
|
-
VIRTUAL_ACCOUNT =
|
|
1545
|
-
T.let(
|
|
1546
|
-
:virtual_account,
|
|
1547
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount::LedgerableType::TaggedSymbol
|
|
1548
|
-
)
|
|
1549
|
-
|
|
1550
|
-
sig do
|
|
1551
|
-
override.returns(
|
|
1552
|
-
T::Array[
|
|
1553
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::LedgerAccount::LedgerableType::TaggedSymbol
|
|
1554
|
-
]
|
|
1555
|
-
)
|
|
1556
|
-
end
|
|
1557
|
-
def self.values
|
|
1558
|
-
end
|
|
1559
|
-
end
|
|
1560
|
-
end
|
|
1561
|
-
|
|
1562
|
-
class PartyAddress < ModernTreasury::Internal::Type::BaseModel
|
|
1563
|
-
OrHash =
|
|
1564
|
-
T.type_alias do
|
|
1565
|
-
T.any(
|
|
1566
|
-
ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::PartyAddress,
|
|
1567
|
-
ModernTreasury::Internal::AnyHash
|
|
1568
|
-
)
|
|
1569
|
-
end
|
|
1570
|
-
|
|
1571
|
-
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
1572
|
-
sig { returns(T.nilable(String)) }
|
|
1573
|
-
attr_accessor :country
|
|
1574
|
-
|
|
1575
|
-
sig { returns(T.nilable(String)) }
|
|
1576
|
-
attr_accessor :line1
|
|
1577
|
-
|
|
1578
|
-
sig { returns(T.nilable(String)) }
|
|
1579
|
-
attr_accessor :line2
|
|
1580
|
-
|
|
1581
|
-
# Locality or City.
|
|
1582
|
-
sig { returns(T.nilable(String)) }
|
|
1583
|
-
attr_accessor :locality
|
|
1584
|
-
|
|
1585
|
-
# The postal code of the address.
|
|
1586
|
-
sig { returns(T.nilable(String)) }
|
|
1587
|
-
attr_accessor :postal_code
|
|
1588
|
-
|
|
1589
|
-
# Region or State.
|
|
1590
|
-
sig { returns(T.nilable(String)) }
|
|
1591
|
-
attr_accessor :region
|
|
1592
|
-
|
|
1593
|
-
# Required if receiving wire payments.
|
|
1594
|
-
sig do
|
|
1595
|
-
params(
|
|
1596
|
-
country: T.nilable(String),
|
|
1597
|
-
line1: T.nilable(String),
|
|
1598
|
-
line2: T.nilable(String),
|
|
1599
|
-
locality: T.nilable(String),
|
|
1600
|
-
postal_code: T.nilable(String),
|
|
1601
|
-
region: T.nilable(String)
|
|
1602
|
-
).returns(T.attached_class)
|
|
1603
|
-
end
|
|
1604
|
-
def self.new(
|
|
1605
|
-
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
1606
|
-
country: nil,
|
|
1607
|
-
line1: nil,
|
|
1608
|
-
line2: nil,
|
|
1609
|
-
# Locality or City.
|
|
1610
|
-
locality: nil,
|
|
1611
|
-
# The postal code of the address.
|
|
1612
|
-
postal_code: nil,
|
|
1613
|
-
# Region or State.
|
|
1614
|
-
region: nil
|
|
1615
|
-
)
|
|
1616
|
-
end
|
|
1617
|
-
|
|
1618
|
-
sig do
|
|
1619
|
-
override.returns(
|
|
1620
|
-
{
|
|
1621
|
-
country: T.nilable(String),
|
|
1622
|
-
line1: T.nilable(String),
|
|
1623
|
-
line2: T.nilable(String),
|
|
1624
|
-
locality: T.nilable(String),
|
|
1625
|
-
postal_code: T.nilable(String),
|
|
1626
|
-
region: T.nilable(String)
|
|
1627
|
-
}
|
|
1628
|
-
)
|
|
1629
|
-
end
|
|
1630
|
-
def to_hash
|
|
1631
|
-
end
|
|
1632
|
-
end
|
|
1633
|
-
|
|
1634
1198
|
# Either `individual` or `business`.
|
|
1635
1199
|
module PartyType
|
|
1636
1200
|
extend ModernTreasury::Internal::Type::Enum
|
|
@@ -51,7 +51,7 @@ module ModernTreasury
|
|
|
51
51
|
end
|
|
52
52
|
attr_accessor :status
|
|
53
53
|
|
|
54
|
-
sig { returns(T::Array[T.nilable(
|
|
54
|
+
sig { returns(T::Array[T.nilable(String)]) }
|
|
55
55
|
attr_accessor :transaction_ids
|
|
56
56
|
|
|
57
57
|
sig { returns(Time) }
|
|
@@ -68,7 +68,7 @@ module ModernTreasury
|
|
|
68
68
|
payment_order_id: T.nilable(String),
|
|
69
69
|
reason: ModernTreasury::PaymentOrders::Reversal::Reason::OrSymbol,
|
|
70
70
|
status: ModernTreasury::PaymentOrders::Reversal::Status::OrSymbol,
|
|
71
|
-
transaction_ids: T::Array[T.nilable(
|
|
71
|
+
transaction_ids: T::Array[T.nilable(String)],
|
|
72
72
|
updated_at: Time
|
|
73
73
|
).returns(T.attached_class)
|
|
74
74
|
end
|
|
@@ -109,7 +109,7 @@ module ModernTreasury
|
|
|
109
109
|
ModernTreasury::PaymentOrders::Reversal::Reason::TaggedSymbol,
|
|
110
110
|
status:
|
|
111
111
|
ModernTreasury::PaymentOrders::Reversal::Status::TaggedSymbol,
|
|
112
|
-
transaction_ids: T::Array[T.nilable(
|
|
112
|
+
transaction_ids: T::Array[T.nilable(String)],
|
|
113
113
|
updated_at: Time
|
|
114
114
|
}
|
|
115
115
|
)
|