modern_treasury 0.1.0.pre.alpha.22 → 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 +38 -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/base_model.rb +4 -4
- 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 +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 +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_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/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 +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 +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_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 +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 +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/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 +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 +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_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_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
|
@@ -3,13 +3,14 @@ module ModernTreasury
|
|
|
3
3
|
type external_account_create_params =
|
|
4
4
|
{
|
|
5
5
|
counterparty_id: String?,
|
|
6
|
+
body_external_id: String?,
|
|
6
7
|
account_details: ::Array[ModernTreasury::ExternalAccountCreateParams::AccountDetail],
|
|
7
8
|
account_type: ModernTreasury::Models::external_account_type,
|
|
8
|
-
contact_details: ::Array[ModernTreasury::
|
|
9
|
-
ledger_account: ModernTreasury::
|
|
9
|
+
contact_details: ::Array[ModernTreasury::ContactDetailCreateRequest],
|
|
10
|
+
ledger_account: ModernTreasury::LedgerAccountCreateRequest,
|
|
10
11
|
metadata: ::Hash[Symbol, String],
|
|
11
12
|
name: String?,
|
|
12
|
-
party_address: ModernTreasury::
|
|
13
|
+
party_address: ModernTreasury::AddressRequest,
|
|
13
14
|
party_identifier: String,
|
|
14
15
|
party_name: String,
|
|
15
16
|
party_type: ModernTreasury::Models::ExternalAccountCreateParams::party_type?,
|
|
@@ -24,6 +25,8 @@ module ModernTreasury
|
|
|
24
25
|
|
|
25
26
|
attr_accessor counterparty_id: String?
|
|
26
27
|
|
|
28
|
+
attr_accessor body_external_id: String?
|
|
29
|
+
|
|
27
30
|
attr_reader account_details: ::Array[ModernTreasury::ExternalAccountCreateParams::AccountDetail]?
|
|
28
31
|
|
|
29
32
|
def account_details=: (
|
|
@@ -36,17 +39,17 @@ module ModernTreasury
|
|
|
36
39
|
ModernTreasury::Models::external_account_type
|
|
37
40
|
) -> ModernTreasury::Models::external_account_type
|
|
38
41
|
|
|
39
|
-
attr_reader contact_details: ::Array[ModernTreasury::
|
|
42
|
+
attr_reader contact_details: ::Array[ModernTreasury::ContactDetailCreateRequest]?
|
|
40
43
|
|
|
41
44
|
def contact_details=: (
|
|
42
|
-
::Array[ModernTreasury::
|
|
43
|
-
) -> ::Array[ModernTreasury::
|
|
45
|
+
::Array[ModernTreasury::ContactDetailCreateRequest]
|
|
46
|
+
) -> ::Array[ModernTreasury::ContactDetailCreateRequest]
|
|
44
47
|
|
|
45
|
-
attr_reader ledger_account: ModernTreasury::
|
|
48
|
+
attr_reader ledger_account: ModernTreasury::LedgerAccountCreateRequest?
|
|
46
49
|
|
|
47
50
|
def ledger_account=: (
|
|
48
|
-
ModernTreasury::
|
|
49
|
-
) -> ModernTreasury::
|
|
51
|
+
ModernTreasury::LedgerAccountCreateRequest
|
|
52
|
+
) -> ModernTreasury::LedgerAccountCreateRequest
|
|
50
53
|
|
|
51
54
|
attr_reader metadata: ::Hash[Symbol, String]?
|
|
52
55
|
|
|
@@ -54,11 +57,11 @@ module ModernTreasury
|
|
|
54
57
|
|
|
55
58
|
attr_accessor name: String?
|
|
56
59
|
|
|
57
|
-
attr_reader party_address: ModernTreasury::
|
|
60
|
+
attr_reader party_address: ModernTreasury::AddressRequest?
|
|
58
61
|
|
|
59
62
|
def party_address=: (
|
|
60
|
-
ModernTreasury::
|
|
61
|
-
) -> ModernTreasury::
|
|
63
|
+
ModernTreasury::AddressRequest
|
|
64
|
+
) -> ModernTreasury::AddressRequest
|
|
62
65
|
|
|
63
66
|
attr_reader party_identifier: String?
|
|
64
67
|
|
|
@@ -82,13 +85,14 @@ module ModernTreasury
|
|
|
82
85
|
|
|
83
86
|
def initialize: (
|
|
84
87
|
counterparty_id: String?,
|
|
88
|
+
?body_external_id: String?,
|
|
85
89
|
?account_details: ::Array[ModernTreasury::ExternalAccountCreateParams::AccountDetail],
|
|
86
90
|
?account_type: ModernTreasury::Models::external_account_type,
|
|
87
|
-
?contact_details: ::Array[ModernTreasury::
|
|
88
|
-
?ledger_account: ModernTreasury::
|
|
91
|
+
?contact_details: ::Array[ModernTreasury::ContactDetailCreateRequest],
|
|
92
|
+
?ledger_account: ModernTreasury::LedgerAccountCreateRequest,
|
|
89
93
|
?metadata: ::Hash[Symbol, String],
|
|
90
94
|
?name: String?,
|
|
91
|
-
?party_address: ModernTreasury::
|
|
95
|
+
?party_address: ModernTreasury::AddressRequest,
|
|
92
96
|
?party_identifier: String,
|
|
93
97
|
?party_name: String,
|
|
94
98
|
?party_type: ModernTreasury::Models::ExternalAccountCreateParams::party_type?,
|
|
@@ -99,13 +103,14 @@ module ModernTreasury
|
|
|
99
103
|
|
|
100
104
|
def to_hash: -> {
|
|
101
105
|
counterparty_id: String?,
|
|
106
|
+
body_external_id: String?,
|
|
102
107
|
account_details: ::Array[ModernTreasury::ExternalAccountCreateParams::AccountDetail],
|
|
103
108
|
account_type: ModernTreasury::Models::external_account_type,
|
|
104
|
-
contact_details: ::Array[ModernTreasury::
|
|
105
|
-
ledger_account: ModernTreasury::
|
|
109
|
+
contact_details: ::Array[ModernTreasury::ContactDetailCreateRequest],
|
|
110
|
+
ledger_account: ModernTreasury::LedgerAccountCreateRequest,
|
|
106
111
|
metadata: ::Hash[Symbol, String],
|
|
107
112
|
name: String?,
|
|
108
|
-
party_address: ModernTreasury::
|
|
113
|
+
party_address: ModernTreasury::AddressRequest,
|
|
109
114
|
party_identifier: String,
|
|
110
115
|
party_name: String,
|
|
111
116
|
party_type: ModernTreasury::Models::ExternalAccountCreateParams::party_type?,
|
|
@@ -177,177 +182,6 @@ module ModernTreasury
|
|
|
177
182
|
end
|
|
178
183
|
end
|
|
179
184
|
|
|
180
|
-
type contact_detail =
|
|
181
|
-
{
|
|
182
|
-
contact_identifier: String,
|
|
183
|
-
contact_identifier_type: ModernTreasury::Models::ExternalAccountCreateParams::ContactDetail::contact_identifier_type
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
class ContactDetail < ModernTreasury::Internal::Type::BaseModel
|
|
187
|
-
attr_reader contact_identifier: String?
|
|
188
|
-
|
|
189
|
-
def contact_identifier=: (String) -> String
|
|
190
|
-
|
|
191
|
-
attr_reader contact_identifier_type: ModernTreasury::Models::ExternalAccountCreateParams::ContactDetail::contact_identifier_type?
|
|
192
|
-
|
|
193
|
-
def contact_identifier_type=: (
|
|
194
|
-
ModernTreasury::Models::ExternalAccountCreateParams::ContactDetail::contact_identifier_type
|
|
195
|
-
) -> ModernTreasury::Models::ExternalAccountCreateParams::ContactDetail::contact_identifier_type
|
|
196
|
-
|
|
197
|
-
def initialize: (
|
|
198
|
-
?contact_identifier: String,
|
|
199
|
-
?contact_identifier_type: ModernTreasury::Models::ExternalAccountCreateParams::ContactDetail::contact_identifier_type
|
|
200
|
-
) -> void
|
|
201
|
-
|
|
202
|
-
def to_hash: -> {
|
|
203
|
-
contact_identifier: String,
|
|
204
|
-
contact_identifier_type: ModernTreasury::Models::ExternalAccountCreateParams::ContactDetail::contact_identifier_type
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
type contact_identifier_type = :email | :phone_number | :website
|
|
208
|
-
|
|
209
|
-
module ContactIdentifierType
|
|
210
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
211
|
-
|
|
212
|
-
EMAIL: :email
|
|
213
|
-
PHONE_NUMBER: :phone_number
|
|
214
|
-
WEBSITE: :website
|
|
215
|
-
|
|
216
|
-
def self?.values: -> ::Array[ModernTreasury::Models::ExternalAccountCreateParams::ContactDetail::contact_identifier_type]
|
|
217
|
-
end
|
|
218
|
-
end
|
|
219
|
-
|
|
220
|
-
type ledger_account =
|
|
221
|
-
{
|
|
222
|
-
currency: String,
|
|
223
|
-
ledger_id: String,
|
|
224
|
-
name: String,
|
|
225
|
-
normal_balance: ModernTreasury::Models::transaction_direction,
|
|
226
|
-
currency_exponent: Integer?,
|
|
227
|
-
description: String?,
|
|
228
|
-
ledger_account_category_ids: ::Array[String],
|
|
229
|
-
ledgerable_id: String,
|
|
230
|
-
ledgerable_type: ModernTreasury::Models::ExternalAccountCreateParams::LedgerAccount::ledgerable_type,
|
|
231
|
-
metadata: ::Hash[Symbol, String]
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
class LedgerAccount < ModernTreasury::Internal::Type::BaseModel
|
|
235
|
-
attr_accessor currency: String
|
|
236
|
-
|
|
237
|
-
attr_accessor ledger_id: String
|
|
238
|
-
|
|
239
|
-
attr_accessor name: String
|
|
240
|
-
|
|
241
|
-
attr_accessor normal_balance: ModernTreasury::Models::transaction_direction
|
|
242
|
-
|
|
243
|
-
attr_accessor currency_exponent: Integer?
|
|
244
|
-
|
|
245
|
-
attr_accessor description: String?
|
|
246
|
-
|
|
247
|
-
attr_reader ledger_account_category_ids: ::Array[String]?
|
|
248
|
-
|
|
249
|
-
def ledger_account_category_ids=: (::Array[String]) -> ::Array[String]
|
|
250
|
-
|
|
251
|
-
attr_reader ledgerable_id: String?
|
|
252
|
-
|
|
253
|
-
def ledgerable_id=: (String) -> String
|
|
254
|
-
|
|
255
|
-
attr_reader ledgerable_type: ModernTreasury::Models::ExternalAccountCreateParams::LedgerAccount::ledgerable_type?
|
|
256
|
-
|
|
257
|
-
def ledgerable_type=: (
|
|
258
|
-
ModernTreasury::Models::ExternalAccountCreateParams::LedgerAccount::ledgerable_type
|
|
259
|
-
) -> ModernTreasury::Models::ExternalAccountCreateParams::LedgerAccount::ledgerable_type
|
|
260
|
-
|
|
261
|
-
attr_reader metadata: ::Hash[Symbol, String]?
|
|
262
|
-
|
|
263
|
-
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
264
|
-
|
|
265
|
-
def initialize: (
|
|
266
|
-
currency: String,
|
|
267
|
-
ledger_id: String,
|
|
268
|
-
name: String,
|
|
269
|
-
normal_balance: ModernTreasury::Models::transaction_direction,
|
|
270
|
-
?currency_exponent: Integer?,
|
|
271
|
-
?description: String?,
|
|
272
|
-
?ledger_account_category_ids: ::Array[String],
|
|
273
|
-
?ledgerable_id: String,
|
|
274
|
-
?ledgerable_type: ModernTreasury::Models::ExternalAccountCreateParams::LedgerAccount::ledgerable_type,
|
|
275
|
-
?metadata: ::Hash[Symbol, String]
|
|
276
|
-
) -> void
|
|
277
|
-
|
|
278
|
-
def to_hash: -> {
|
|
279
|
-
currency: String,
|
|
280
|
-
ledger_id: String,
|
|
281
|
-
name: String,
|
|
282
|
-
normal_balance: ModernTreasury::Models::transaction_direction,
|
|
283
|
-
currency_exponent: Integer?,
|
|
284
|
-
description: String?,
|
|
285
|
-
ledger_account_category_ids: ::Array[String],
|
|
286
|
-
ledgerable_id: String,
|
|
287
|
-
ledgerable_type: ModernTreasury::Models::ExternalAccountCreateParams::LedgerAccount::ledgerable_type,
|
|
288
|
-
metadata: ::Hash[Symbol, String]
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
type ledgerable_type =
|
|
292
|
-
:counterparty
|
|
293
|
-
| :external_account
|
|
294
|
-
| :internal_account
|
|
295
|
-
| :virtual_account
|
|
296
|
-
|
|
297
|
-
module LedgerableType
|
|
298
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
299
|
-
|
|
300
|
-
COUNTERPARTY: :counterparty
|
|
301
|
-
EXTERNAL_ACCOUNT: :external_account
|
|
302
|
-
INTERNAL_ACCOUNT: :internal_account
|
|
303
|
-
VIRTUAL_ACCOUNT: :virtual_account
|
|
304
|
-
|
|
305
|
-
def self?.values: -> ::Array[ModernTreasury::Models::ExternalAccountCreateParams::LedgerAccount::ledgerable_type]
|
|
306
|
-
end
|
|
307
|
-
end
|
|
308
|
-
|
|
309
|
-
type party_address =
|
|
310
|
-
{
|
|
311
|
-
country: String?,
|
|
312
|
-
:line1 => String?,
|
|
313
|
-
:line2 => String?,
|
|
314
|
-
locality: String?,
|
|
315
|
-
postal_code: String?,
|
|
316
|
-
region: String?
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
class PartyAddress < ModernTreasury::Internal::Type::BaseModel
|
|
320
|
-
attr_accessor country: String?
|
|
321
|
-
|
|
322
|
-
attr_accessor line1: String?
|
|
323
|
-
|
|
324
|
-
attr_accessor line2: String?
|
|
325
|
-
|
|
326
|
-
attr_accessor locality: String?
|
|
327
|
-
|
|
328
|
-
attr_accessor postal_code: String?
|
|
329
|
-
|
|
330
|
-
attr_accessor region: String?
|
|
331
|
-
|
|
332
|
-
def initialize: (
|
|
333
|
-
?country: String?,
|
|
334
|
-
?line1: String?,
|
|
335
|
-
?line2: String?,
|
|
336
|
-
?locality: String?,
|
|
337
|
-
?postal_code: String?,
|
|
338
|
-
?region: String?
|
|
339
|
-
) -> void
|
|
340
|
-
|
|
341
|
-
def to_hash: -> {
|
|
342
|
-
country: String?,
|
|
343
|
-
:line1 => String?,
|
|
344
|
-
:line2 => String?,
|
|
345
|
-
locality: String?,
|
|
346
|
-
postal_code: String?,
|
|
347
|
-
region: String?
|
|
348
|
-
}
|
|
349
|
-
end
|
|
350
|
-
|
|
351
185
|
type party_type = :business | :individual
|
|
352
186
|
|
|
353
187
|
module PartyType
|
|
@@ -4,6 +4,7 @@ module ModernTreasury
|
|
|
4
4
|
{
|
|
5
5
|
after_cursor: String?,
|
|
6
6
|
counterparty_id: String,
|
|
7
|
+
external_id: String,
|
|
7
8
|
metadata: ::Hash[Symbol, String],
|
|
8
9
|
party_name: String,
|
|
9
10
|
per_page: Integer
|
|
@@ -20,6 +21,10 @@ module ModernTreasury
|
|
|
20
21
|
|
|
21
22
|
def counterparty_id=: (String) -> String
|
|
22
23
|
|
|
24
|
+
attr_reader external_id: String?
|
|
25
|
+
|
|
26
|
+
def external_id=: (String) -> String
|
|
27
|
+
|
|
23
28
|
attr_reader metadata: ::Hash[Symbol, String]?
|
|
24
29
|
|
|
25
30
|
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
@@ -35,6 +40,7 @@ module ModernTreasury
|
|
|
35
40
|
def initialize: (
|
|
36
41
|
?after_cursor: String?,
|
|
37
42
|
?counterparty_id: String,
|
|
43
|
+
?external_id: String,
|
|
38
44
|
?metadata: ::Hash[Symbol, String],
|
|
39
45
|
?party_name: String,
|
|
40
46
|
?per_page: Integer,
|
|
@@ -44,6 +50,7 @@ module ModernTreasury
|
|
|
44
50
|
def to_hash: -> {
|
|
45
51
|
after_cursor: String?,
|
|
46
52
|
counterparty_id: String,
|
|
53
|
+
external_id: String,
|
|
47
54
|
metadata: ::Hash[Symbol, String],
|
|
48
55
|
party_name: String,
|
|
49
56
|
per_page: Integer,
|
|
@@ -6,7 +6,7 @@ module ModernTreasury
|
|
|
6
6
|
counterparty_id: String?,
|
|
7
7
|
metadata: ::Hash[Symbol, String],
|
|
8
8
|
name: String?,
|
|
9
|
-
party_address: ModernTreasury::
|
|
9
|
+
party_address: ModernTreasury::AddressRequest,
|
|
10
10
|
party_name: String,
|
|
11
11
|
party_type: ModernTreasury::Models::ExternalAccountUpdateParams::party_type?
|
|
12
12
|
}
|
|
@@ -30,11 +30,11 @@ module ModernTreasury
|
|
|
30
30
|
|
|
31
31
|
attr_accessor name: String?
|
|
32
32
|
|
|
33
|
-
attr_reader party_address: ModernTreasury::
|
|
33
|
+
attr_reader party_address: ModernTreasury::AddressRequest?
|
|
34
34
|
|
|
35
35
|
def party_address=: (
|
|
36
|
-
ModernTreasury::
|
|
37
|
-
) -> ModernTreasury::
|
|
36
|
+
ModernTreasury::AddressRequest
|
|
37
|
+
) -> ModernTreasury::AddressRequest
|
|
38
38
|
|
|
39
39
|
attr_reader party_name: String?
|
|
40
40
|
|
|
@@ -47,7 +47,7 @@ module ModernTreasury
|
|
|
47
47
|
?counterparty_id: String?,
|
|
48
48
|
?metadata: ::Hash[Symbol, String],
|
|
49
49
|
?name: String?,
|
|
50
|
-
?party_address: ModernTreasury::
|
|
50
|
+
?party_address: ModernTreasury::AddressRequest,
|
|
51
51
|
?party_name: String,
|
|
52
52
|
?party_type: ModernTreasury::Models::ExternalAccountUpdateParams::party_type?,
|
|
53
53
|
?request_options: ModernTreasury::request_opts
|
|
@@ -58,54 +58,12 @@ module ModernTreasury
|
|
|
58
58
|
counterparty_id: String?,
|
|
59
59
|
metadata: ::Hash[Symbol, String],
|
|
60
60
|
name: String?,
|
|
61
|
-
party_address: ModernTreasury::
|
|
61
|
+
party_address: ModernTreasury::AddressRequest,
|
|
62
62
|
party_name: String,
|
|
63
63
|
party_type: ModernTreasury::Models::ExternalAccountUpdateParams::party_type?,
|
|
64
64
|
request_options: ModernTreasury::RequestOptions
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
type party_address =
|
|
68
|
-
{
|
|
69
|
-
country: String?,
|
|
70
|
-
:line1 => String?,
|
|
71
|
-
:line2 => String?,
|
|
72
|
-
locality: String?,
|
|
73
|
-
postal_code: String?,
|
|
74
|
-
region: String?
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
class PartyAddress < ModernTreasury::Internal::Type::BaseModel
|
|
78
|
-
attr_accessor country: String?
|
|
79
|
-
|
|
80
|
-
attr_accessor line1: String?
|
|
81
|
-
|
|
82
|
-
attr_accessor line2: String?
|
|
83
|
-
|
|
84
|
-
attr_accessor locality: String?
|
|
85
|
-
|
|
86
|
-
attr_accessor postal_code: String?
|
|
87
|
-
|
|
88
|
-
attr_accessor region: String?
|
|
89
|
-
|
|
90
|
-
def initialize: (
|
|
91
|
-
?country: String?,
|
|
92
|
-
?line1: String?,
|
|
93
|
-
?line2: String?,
|
|
94
|
-
?locality: String?,
|
|
95
|
-
?postal_code: String?,
|
|
96
|
-
?region: String?
|
|
97
|
-
) -> void
|
|
98
|
-
|
|
99
|
-
def to_hash: -> {
|
|
100
|
-
country: String?,
|
|
101
|
-
:line1 => String?,
|
|
102
|
-
:line2 => String?,
|
|
103
|
-
locality: String?,
|
|
104
|
-
postal_code: String?,
|
|
105
|
-
region: String?
|
|
106
|
-
}
|
|
107
|
-
end
|
|
108
|
-
|
|
109
67
|
type party_type = :business | :individual
|
|
110
68
|
|
|
111
69
|
module PartyType
|
|
@@ -7,7 +7,7 @@ module ModernTreasury
|
|
|
7
7
|
effective_at: Time,
|
|
8
8
|
expires_at: Time,
|
|
9
9
|
foreign_exchange_indicator: String,
|
|
10
|
-
foreign_exchange_rate: ModernTreasury::
|
|
10
|
+
foreign_exchange_rate: ModernTreasury::ForeignExchangeRate,
|
|
11
11
|
internal_account_id: String,
|
|
12
12
|
live_mode: bool,
|
|
13
13
|
metadata: ::Hash[Symbol, String],
|
|
@@ -27,7 +27,7 @@ module ModernTreasury
|
|
|
27
27
|
|
|
28
28
|
attr_accessor foreign_exchange_indicator: String
|
|
29
29
|
|
|
30
|
-
attr_accessor foreign_exchange_rate: ModernTreasury::
|
|
30
|
+
attr_accessor foreign_exchange_rate: ModernTreasury::ForeignExchangeRate
|
|
31
31
|
|
|
32
32
|
attr_accessor internal_account_id: String
|
|
33
33
|
|
|
@@ -49,7 +49,7 @@ module ModernTreasury
|
|
|
49
49
|
effective_at: Time,
|
|
50
50
|
expires_at: Time,
|
|
51
51
|
foreign_exchange_indicator: String,
|
|
52
|
-
foreign_exchange_rate: ModernTreasury::
|
|
52
|
+
foreign_exchange_rate: ModernTreasury::ForeignExchangeRate,
|
|
53
53
|
internal_account_id: String,
|
|
54
54
|
live_mode: bool,
|
|
55
55
|
metadata: ::Hash[Symbol, String],
|
|
@@ -64,7 +64,7 @@ module ModernTreasury
|
|
|
64
64
|
effective_at: Time,
|
|
65
65
|
expires_at: Time,
|
|
66
66
|
foreign_exchange_indicator: String,
|
|
67
|
-
foreign_exchange_rate: ModernTreasury::
|
|
67
|
+
foreign_exchange_rate: ModernTreasury::ForeignExchangeRate,
|
|
68
68
|
internal_account_id: String,
|
|
69
69
|
live_mode: bool,
|
|
70
70
|
metadata: ::Hash[Symbol, String],
|
|
@@ -72,53 +72,6 @@ module ModernTreasury
|
|
|
72
72
|
updated_at: Time,
|
|
73
73
|
vendor_id: String
|
|
74
74
|
}
|
|
75
|
-
|
|
76
|
-
type foreign_exchange_rate =
|
|
77
|
-
{
|
|
78
|
-
base_amount: Integer,
|
|
79
|
-
base_currency: ModernTreasury::Models::currency,
|
|
80
|
-
exponent: Integer,
|
|
81
|
-
rate_string: String,
|
|
82
|
-
target_amount: Integer,
|
|
83
|
-
target_currency: ModernTreasury::Models::currency,
|
|
84
|
-
value: Integer
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
class ForeignExchangeRate < ModernTreasury::Internal::Type::BaseModel
|
|
88
|
-
attr_accessor base_amount: Integer
|
|
89
|
-
|
|
90
|
-
attr_accessor base_currency: ModernTreasury::Models::currency
|
|
91
|
-
|
|
92
|
-
attr_accessor exponent: Integer
|
|
93
|
-
|
|
94
|
-
attr_accessor rate_string: String
|
|
95
|
-
|
|
96
|
-
attr_accessor target_amount: Integer
|
|
97
|
-
|
|
98
|
-
attr_accessor target_currency: ModernTreasury::Models::currency
|
|
99
|
-
|
|
100
|
-
attr_accessor value: Integer
|
|
101
|
-
|
|
102
|
-
def initialize: (
|
|
103
|
-
base_amount: Integer,
|
|
104
|
-
base_currency: ModernTreasury::Models::currency,
|
|
105
|
-
exponent: Integer,
|
|
106
|
-
rate_string: String,
|
|
107
|
-
target_amount: Integer,
|
|
108
|
-
target_currency: ModernTreasury::Models::currency,
|
|
109
|
-
value: Integer
|
|
110
|
-
) -> void
|
|
111
|
-
|
|
112
|
-
def to_hash: -> {
|
|
113
|
-
base_amount: Integer,
|
|
114
|
-
base_currency: ModernTreasury::Models::currency,
|
|
115
|
-
exponent: Integer,
|
|
116
|
-
rate_string: String,
|
|
117
|
-
target_amount: Integer,
|
|
118
|
-
target_currency: ModernTreasury::Models::currency,
|
|
119
|
-
value: Integer
|
|
120
|
-
}
|
|
121
|
-
end
|
|
122
75
|
end
|
|
123
76
|
end
|
|
124
77
|
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
module ModernTreasury
|
|
2
|
+
module Models
|
|
3
|
+
type foreign_exchange_rate =
|
|
4
|
+
{
|
|
5
|
+
base_amount: Integer,
|
|
6
|
+
base_currency: ModernTreasury::Models::currency,
|
|
7
|
+
exponent: Integer,
|
|
8
|
+
rate_string: String,
|
|
9
|
+
target_amount: Integer,
|
|
10
|
+
target_currency: ModernTreasury::Models::currency,
|
|
11
|
+
value: Integer
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class ForeignExchangeRate < ModernTreasury::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor base_amount: Integer
|
|
16
|
+
|
|
17
|
+
attr_accessor base_currency: ModernTreasury::Models::currency
|
|
18
|
+
|
|
19
|
+
attr_accessor exponent: Integer
|
|
20
|
+
|
|
21
|
+
attr_accessor rate_string: String
|
|
22
|
+
|
|
23
|
+
attr_accessor target_amount: Integer
|
|
24
|
+
|
|
25
|
+
attr_accessor target_currency: ModernTreasury::Models::currency
|
|
26
|
+
|
|
27
|
+
attr_accessor value: Integer
|
|
28
|
+
|
|
29
|
+
def initialize: (
|
|
30
|
+
base_amount: Integer,
|
|
31
|
+
base_currency: ModernTreasury::Models::currency,
|
|
32
|
+
exponent: Integer,
|
|
33
|
+
rate_string: String,
|
|
34
|
+
target_amount: Integer,
|
|
35
|
+
target_currency: ModernTreasury::Models::currency,
|
|
36
|
+
value: Integer
|
|
37
|
+
) -> void
|
|
38
|
+
|
|
39
|
+
def to_hash: -> {
|
|
40
|
+
base_amount: Integer,
|
|
41
|
+
base_currency: ModernTreasury::Models::currency,
|
|
42
|
+
exponent: Integer,
|
|
43
|
+
rate_string: String,
|
|
44
|
+
target_amount: Integer,
|
|
45
|
+
target_currency: ModernTreasury::Models::currency,
|
|
46
|
+
value: Integer
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
module ModernTreasury
|
|
2
|
+
module Models
|
|
3
|
+
type identification_create_request =
|
|
4
|
+
{
|
|
5
|
+
id_number: String,
|
|
6
|
+
id_type: ModernTreasury::Models::IdentificationCreateRequest::id_type,
|
|
7
|
+
expiration_date: Date?,
|
|
8
|
+
issuing_country: String?,
|
|
9
|
+
issuing_region: String?
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class IdentificationCreateRequest < ModernTreasury::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor id_number: String
|
|
14
|
+
|
|
15
|
+
attr_accessor id_type: ModernTreasury::Models::IdentificationCreateRequest::id_type
|
|
16
|
+
|
|
17
|
+
attr_accessor expiration_date: Date?
|
|
18
|
+
|
|
19
|
+
attr_accessor issuing_country: String?
|
|
20
|
+
|
|
21
|
+
attr_accessor issuing_region: String?
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
id_number: String,
|
|
25
|
+
id_type: ModernTreasury::Models::IdentificationCreateRequest::id_type,
|
|
26
|
+
?expiration_date: Date?,
|
|
27
|
+
?issuing_country: String?,
|
|
28
|
+
?issuing_region: String?
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
id_number: String,
|
|
33
|
+
id_type: ModernTreasury::Models::IdentificationCreateRequest::id_type,
|
|
34
|
+
expiration_date: Date?,
|
|
35
|
+
issuing_country: String?,
|
|
36
|
+
issuing_region: String?
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
type id_type =
|
|
40
|
+
:ar_cuil
|
|
41
|
+
| :ar_cuit
|
|
42
|
+
| :br_cnpj
|
|
43
|
+
| :br_cpf
|
|
44
|
+
| :cl_run
|
|
45
|
+
| :cl_rut
|
|
46
|
+
| :co_cedulas
|
|
47
|
+
| :co_nit
|
|
48
|
+
| :drivers_license
|
|
49
|
+
| :hn_id
|
|
50
|
+
| :hn_rtn
|
|
51
|
+
| :in_lei
|
|
52
|
+
| :kr_brn
|
|
53
|
+
| :kr_crn
|
|
54
|
+
| :kr_rrn
|
|
55
|
+
| :passport
|
|
56
|
+
| :sa_tin
|
|
57
|
+
| :sa_vat
|
|
58
|
+
| :us_ein
|
|
59
|
+
| :us_itin
|
|
60
|
+
| :us_ssn
|
|
61
|
+
| :vn_tin
|
|
62
|
+
|
|
63
|
+
module IDType
|
|
64
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
65
|
+
|
|
66
|
+
AR_CUIL: :ar_cuil
|
|
67
|
+
AR_CUIT: :ar_cuit
|
|
68
|
+
BR_CNPJ: :br_cnpj
|
|
69
|
+
BR_CPF: :br_cpf
|
|
70
|
+
CL_RUN: :cl_run
|
|
71
|
+
CL_RUT: :cl_rut
|
|
72
|
+
CO_CEDULAS: :co_cedulas
|
|
73
|
+
CO_NIT: :co_nit
|
|
74
|
+
DRIVERS_LICENSE: :drivers_license
|
|
75
|
+
HN_ID: :hn_id
|
|
76
|
+
HN_RTN: :hn_rtn
|
|
77
|
+
IN_LEI: :in_lei
|
|
78
|
+
KR_BRN: :kr_brn
|
|
79
|
+
KR_CRN: :kr_crn
|
|
80
|
+
KR_RRN: :kr_rrn
|
|
81
|
+
PASSPORT: :passport
|
|
82
|
+
SA_TIN: :sa_tin
|
|
83
|
+
SA_VAT: :sa_vat
|
|
84
|
+
US_EIN: :us_ein
|
|
85
|
+
US_ITIN: :us_itin
|
|
86
|
+
US_SSN: :us_ssn
|
|
87
|
+
VN_TIN: :vn_tin
|
|
88
|
+
|
|
89
|
+
def self?.values: -> ::Array[ModernTreasury::Models::IdentificationCreateRequest::id_type]
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|