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
|
@@ -26,8 +26,14 @@ module ModernTreasury
|
|
|
26
26
|
AccountDetailRetrieveParams =
|
|
27
27
|
ModernTreasury::Models::AccountDetailRetrieveParams
|
|
28
28
|
|
|
29
|
+
Accounting = ModernTreasury::Models::Accounting
|
|
30
|
+
|
|
29
31
|
AccountsType = ModernTreasury::Models::AccountsType
|
|
30
32
|
|
|
33
|
+
Address = ModernTreasury::Models::Address
|
|
34
|
+
|
|
35
|
+
AddressRequest = ModernTreasury::Models::AddressRequest
|
|
36
|
+
|
|
31
37
|
AsyncResponse = ModernTreasury::Models::AsyncResponse
|
|
32
38
|
|
|
33
39
|
BankSettings = ModernTreasury::Models::BankSettings
|
|
@@ -46,6 +52,8 @@ module ModernTreasury
|
|
|
46
52
|
|
|
47
53
|
BulkResultRetrieveParams = ModernTreasury::Models::BulkResultRetrieveParams
|
|
48
54
|
|
|
55
|
+
ChildLegalEntityCreate = ModernTreasury::Models::ChildLegalEntityCreate
|
|
56
|
+
|
|
49
57
|
ClientPingParams = ModernTreasury::Models::ClientPingParams
|
|
50
58
|
|
|
51
59
|
Connection = ModernTreasury::Models::Connection
|
|
@@ -66,6 +74,11 @@ module ModernTreasury
|
|
|
66
74
|
|
|
67
75
|
ConnectionListParams = ModernTreasury::Models::ConnectionListParams
|
|
68
76
|
|
|
77
|
+
ContactDetail = ModernTreasury::Models::ContactDetail
|
|
78
|
+
|
|
79
|
+
ContactDetailCreateRequest =
|
|
80
|
+
ModernTreasury::Models::ContactDetailCreateRequest
|
|
81
|
+
|
|
69
82
|
Counterparty = ModernTreasury::Models::Counterparty
|
|
70
83
|
|
|
71
84
|
CounterpartyCollectAccountParams =
|
|
@@ -154,6 +167,11 @@ module ModernTreasury
|
|
|
154
167
|
ForeignExchangeQuoteRetrieveParams =
|
|
155
168
|
ModernTreasury::Models::ForeignExchangeQuoteRetrieveParams
|
|
156
169
|
|
|
170
|
+
ForeignExchangeRate = ModernTreasury::Models::ForeignExchangeRate
|
|
171
|
+
|
|
172
|
+
IdentificationCreateRequest =
|
|
173
|
+
ModernTreasury::Models::IdentificationCreateRequest
|
|
174
|
+
|
|
157
175
|
IncomingPaymentDetail = ModernTreasury::Models::IncomingPaymentDetail
|
|
158
176
|
|
|
159
177
|
IncomingPaymentDetailCreateAsyncParams =
|
|
@@ -180,6 +198,9 @@ module ModernTreasury
|
|
|
180
198
|
|
|
181
199
|
InternalAccounts = ModernTreasury::Models::InternalAccounts
|
|
182
200
|
|
|
201
|
+
InternalAccountUpdateAccountCapabilityParams =
|
|
202
|
+
ModernTreasury::Models::InternalAccountUpdateAccountCapabilityParams
|
|
203
|
+
|
|
183
204
|
InternalAccountUpdateParams =
|
|
184
205
|
ModernTreasury::Models::InternalAccountUpdateParams
|
|
185
206
|
|
|
@@ -251,6 +272,9 @@ module ModernTreasury
|
|
|
251
272
|
|
|
252
273
|
LedgerAccountCreateParams = ModernTreasury::Models::LedgerAccountCreateParams
|
|
253
274
|
|
|
275
|
+
LedgerAccountCreateRequest =
|
|
276
|
+
ModernTreasury::Models::LedgerAccountCreateRequest
|
|
277
|
+
|
|
254
278
|
LedgerAccountDeleteParams = ModernTreasury::Models::LedgerAccountDeleteParams
|
|
255
279
|
|
|
256
280
|
LedgerAccountListParams = ModernTreasury::Models::LedgerAccountListParams
|
|
@@ -282,12 +306,18 @@ module ModernTreasury
|
|
|
282
306
|
|
|
283
307
|
LedgerAccountUpdateParams = ModernTreasury::Models::LedgerAccountUpdateParams
|
|
284
308
|
|
|
309
|
+
LedgerBalance = ModernTreasury::Models::LedgerBalance
|
|
310
|
+
|
|
311
|
+
LedgerBalances = ModernTreasury::Models::LedgerBalances
|
|
312
|
+
|
|
285
313
|
LedgerCreateParams = ModernTreasury::Models::LedgerCreateParams
|
|
286
314
|
|
|
287
315
|
LedgerDeleteParams = ModernTreasury::Models::LedgerDeleteParams
|
|
288
316
|
|
|
289
317
|
LedgerEntry = ModernTreasury::Models::LedgerEntry
|
|
290
318
|
|
|
319
|
+
LedgerEntryCreateRequest = ModernTreasury::Models::LedgerEntryCreateRequest
|
|
320
|
+
|
|
291
321
|
LedgerEntryListParams = ModernTreasury::Models::LedgerEntryListParams
|
|
292
322
|
|
|
293
323
|
LedgerEntryRetrieveParams = ModernTreasury::Models::LedgerEntryRetrieveParams
|
|
@@ -306,6 +336,9 @@ module ModernTreasury
|
|
|
306
336
|
LedgerTransactionCreatePartialPostParams =
|
|
307
337
|
ModernTreasury::Models::LedgerTransactionCreatePartialPostParams
|
|
308
338
|
|
|
339
|
+
LedgerTransactionCreateRequest =
|
|
340
|
+
ModernTreasury::Models::LedgerTransactionCreateRequest
|
|
341
|
+
|
|
309
342
|
LedgerTransactionCreateReversalParams =
|
|
310
343
|
ModernTreasury::Models::LedgerTransactionCreateReversalParams
|
|
311
344
|
|
|
@@ -324,6 +357,9 @@ module ModernTreasury
|
|
|
324
357
|
|
|
325
358
|
LegalEntity = ModernTreasury::Models::LegalEntity
|
|
326
359
|
|
|
360
|
+
LegalEntityAddressCreateRequest =
|
|
361
|
+
ModernTreasury::Models::LegalEntityAddressCreateRequest
|
|
362
|
+
|
|
327
363
|
LegalEntityAssociation = ModernTreasury::Models::LegalEntityAssociation
|
|
328
364
|
|
|
329
365
|
LegalEntityAssociationCreateParams =
|
|
@@ -351,12 +387,6 @@ module ModernTreasury
|
|
|
351
387
|
|
|
352
388
|
LineItemUpdateParams = ModernTreasury::Models::LineItemUpdateParams
|
|
353
389
|
|
|
354
|
-
PaperItem = ModernTreasury::Models::PaperItem
|
|
355
|
-
|
|
356
|
-
PaperItemListParams = ModernTreasury::Models::PaperItemListParams
|
|
357
|
-
|
|
358
|
-
PaperItemRetrieveParams = ModernTreasury::Models::PaperItemRetrieveParams
|
|
359
|
-
|
|
360
390
|
PaymentActionCreateParams = ModernTreasury::Models::PaymentActionCreateParams
|
|
361
391
|
|
|
362
392
|
PaymentActionListParams = ModernTreasury::Models::PaymentActionListParams
|
|
@@ -15,8 +15,8 @@ module ModernTreasury
|
|
|
15
15
|
T.any(
|
|
16
16
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::OrHash,
|
|
17
17
|
ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::OrHash,
|
|
18
|
-
ModernTreasury::
|
|
19
|
-
ModernTreasury::
|
|
18
|
+
ModernTreasury::LedgerTransactionCreateRequest::OrHash,
|
|
19
|
+
ModernTreasury::LedgerAccountCreateRequest::OrHash,
|
|
20
20
|
ModernTreasury::BulkRequestCreateParams::Resource::TransactionCreateRequest::OrHash,
|
|
21
21
|
ModernTreasury::BulkRequestCreateParams::Resource::ID::OrHash,
|
|
22
22
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::OrHash,
|
|
@@ -7,6 +7,7 @@ module ModernTreasury
|
|
|
7
7
|
sig do
|
|
8
8
|
params(
|
|
9
9
|
name: T.nilable(String),
|
|
10
|
+
body_external_id: T.nilable(String),
|
|
10
11
|
accounting:
|
|
11
12
|
ModernTreasury::CounterpartyCreateParams::Accounting::OrHash,
|
|
12
13
|
accounts:
|
|
@@ -26,28 +27,32 @@ module ModernTreasury
|
|
|
26
27
|
).returns(ModernTreasury::Counterparty)
|
|
27
28
|
end
|
|
28
29
|
def create(
|
|
29
|
-
# A human friendly name for this counterparty.
|
|
30
|
+
# Body param: A human friendly name for this counterparty.
|
|
30
31
|
name:,
|
|
32
|
+
# Body param: An optional user-defined 180 character unique identifier.
|
|
33
|
+
body_external_id: nil,
|
|
34
|
+
# Body param:
|
|
31
35
|
accounting: nil,
|
|
32
|
-
# The accounts for this counterparty.
|
|
36
|
+
# Body param: The accounts for this counterparty.
|
|
33
37
|
accounts: nil,
|
|
34
|
-
# The counterparty's email.
|
|
38
|
+
# Body param: The counterparty's email.
|
|
35
39
|
email: nil,
|
|
36
|
-
# An optional type to auto-sync the counterparty to your ledger.
|
|
37
|
-
# or `vendor`.
|
|
40
|
+
# Body param: An optional type to auto-sync the counterparty to your ledger.
|
|
41
|
+
# Either `customer` or `vendor`.
|
|
38
42
|
ledger_type: nil,
|
|
43
|
+
# Body param:
|
|
39
44
|
legal_entity: nil,
|
|
40
|
-
# The id of the legal entity.
|
|
45
|
+
# Body param: The id of the legal entity.
|
|
41
46
|
legal_entity_id: nil,
|
|
42
|
-
# Additional data represented as key-value pairs. Both the key and
|
|
43
|
-
# strings.
|
|
47
|
+
# Body param: Additional data represented as key-value pairs. Both the key and
|
|
48
|
+
# value must be strings.
|
|
44
49
|
metadata: nil,
|
|
45
|
-
# Send an email to the counterparty whenever an associated payment
|
|
46
|
-
# to the bank.
|
|
50
|
+
# Body param: Send an email to the counterparty whenever an associated payment
|
|
51
|
+
# order is sent to the bank.
|
|
47
52
|
send_remittance_advice: nil,
|
|
48
|
-
# Either a valid SSN or EIN.
|
|
53
|
+
# Body param: Either a valid SSN or EIN.
|
|
49
54
|
taxpayer_identifier: nil,
|
|
50
|
-
# The verification status of the counterparty.
|
|
55
|
+
# Body param: The verification status of the counterparty.
|
|
51
56
|
verification_status: nil,
|
|
52
57
|
request_options: {}
|
|
53
58
|
)
|
|
@@ -108,6 +113,7 @@ module ModernTreasury
|
|
|
108
113
|
created_at_lower_bound: Time,
|
|
109
114
|
created_at_upper_bound: Time,
|
|
110
115
|
email: String,
|
|
116
|
+
external_id: String,
|
|
111
117
|
legal_entity_id: String,
|
|
112
118
|
metadata: T::Hash[Symbol, String],
|
|
113
119
|
name: String,
|
|
@@ -124,6 +130,8 @@ module ModernTreasury
|
|
|
124
130
|
# Performs a partial string match of the email field. This is also case
|
|
125
131
|
# insensitive.
|
|
126
132
|
email: nil,
|
|
133
|
+
# An optional user-defined 180 character unique identifier.
|
|
134
|
+
external_id: nil,
|
|
127
135
|
# Filters for counterparties with the given legal entity ID.
|
|
128
136
|
legal_entity_id: nil,
|
|
129
137
|
# For example, if you want to query for records with metadata key `Type` and value
|
|
@@ -55,8 +55,8 @@ module ModernTreasury
|
|
|
55
55
|
# The unique identifier for the associated object.
|
|
56
56
|
documentable_id: nil,
|
|
57
57
|
# The type of the associated object. Currently can be one of `payment_order`,
|
|
58
|
-
# `transaction`, `
|
|
59
|
-
# `
|
|
58
|
+
# `transaction`, `expected_payment`, `counterparty`, `organization`, `case`,
|
|
59
|
+
# `internal_account`, `decision`, or `external_account`.
|
|
60
60
|
documentable_type: nil,
|
|
61
61
|
per_page: nil,
|
|
62
62
|
request_options: {}
|
|
@@ -17,9 +17,10 @@ module ModernTreasury
|
|
|
17
17
|
T.nilable(
|
|
18
18
|
ModernTreasury::ExpectedPaymentCreateParams::Direction::OrSymbol
|
|
19
19
|
),
|
|
20
|
+
external_id: T.nilable(String),
|
|
20
21
|
internal_account_id: T.nilable(String),
|
|
21
22
|
ledger_transaction:
|
|
22
|
-
ModernTreasury::
|
|
23
|
+
ModernTreasury::LedgerTransactionCreateRequest::OrHash,
|
|
23
24
|
ledger_transaction_id: String,
|
|
24
25
|
line_items:
|
|
25
26
|
T::Array[
|
|
@@ -56,6 +57,8 @@ module ModernTreasury
|
|
|
56
57
|
# One of credit or debit. When you are receiving money, use credit. When you are
|
|
57
58
|
# being charged, use debit.
|
|
58
59
|
direction: nil,
|
|
60
|
+
# An optional user-defined 180 character unique identifier.
|
|
61
|
+
external_id: nil,
|
|
59
62
|
# The ID of the Internal Account for the expected payment.
|
|
60
63
|
internal_account_id: nil,
|
|
61
64
|
# Specifies a ledger transaction object that will be created with the expected
|
|
@@ -123,6 +126,7 @@ module ModernTreasury
|
|
|
123
126
|
T.nilable(
|
|
124
127
|
ModernTreasury::ExpectedPaymentUpdateParams::Direction::OrSymbol
|
|
125
128
|
),
|
|
129
|
+
external_id: T.nilable(String),
|
|
126
130
|
internal_account_id: T.nilable(String),
|
|
127
131
|
metadata: T::Hash[Symbol, String],
|
|
128
132
|
reconciliation_filters: T.nilable(T.anything),
|
|
@@ -161,6 +165,8 @@ module ModernTreasury
|
|
|
161
165
|
# One of credit or debit. When you are receiving money, use credit. When you are
|
|
162
166
|
# being charged, use debit.
|
|
163
167
|
direction: nil,
|
|
168
|
+
# An optional user-defined 180 character unique identifier.
|
|
169
|
+
external_id: nil,
|
|
164
170
|
# The ID of the Internal Account for the expected payment.
|
|
165
171
|
internal_account_id: nil,
|
|
166
172
|
# Additional data represented as key-value pairs. Both the key and value must be
|
|
@@ -199,6 +205,7 @@ module ModernTreasury
|
|
|
199
205
|
created_at_lower_bound: Time,
|
|
200
206
|
created_at_upper_bound: Time,
|
|
201
207
|
direction: ModernTreasury::TransactionDirection::OrSymbol,
|
|
208
|
+
external_id: String,
|
|
202
209
|
internal_account_id: String,
|
|
203
210
|
metadata: T::Hash[Symbol, String],
|
|
204
211
|
per_page: Integer,
|
|
@@ -221,6 +228,7 @@ module ModernTreasury
|
|
|
221
228
|
created_at_upper_bound: nil,
|
|
222
229
|
# One of credit, debit
|
|
223
230
|
direction: nil,
|
|
231
|
+
external_id: nil,
|
|
224
232
|
# Specify internal_account_id to see expected_payments for a specific account.
|
|
225
233
|
internal_account_id: nil,
|
|
226
234
|
# For example, if you want to query for records with metadata key `Type` and value
|
|
@@ -7,21 +7,18 @@ module ModernTreasury
|
|
|
7
7
|
sig do
|
|
8
8
|
params(
|
|
9
9
|
counterparty_id: T.nilable(String),
|
|
10
|
+
body_external_id: T.nilable(String),
|
|
10
11
|
account_details:
|
|
11
12
|
T::Array[
|
|
12
13
|
ModernTreasury::ExternalAccountCreateParams::AccountDetail::OrHash
|
|
13
14
|
],
|
|
14
15
|
account_type: ModernTreasury::ExternalAccountType::OrSymbol,
|
|
15
16
|
contact_details:
|
|
16
|
-
T::Array[
|
|
17
|
-
|
|
18
|
-
],
|
|
19
|
-
ledger_account:
|
|
20
|
-
ModernTreasury::ExternalAccountCreateParams::LedgerAccount::OrHash,
|
|
17
|
+
T::Array[ModernTreasury::ContactDetailCreateRequest::OrHash],
|
|
18
|
+
ledger_account: ModernTreasury::LedgerAccountCreateRequest::OrHash,
|
|
21
19
|
metadata: T::Hash[Symbol, String],
|
|
22
20
|
name: T.nilable(String),
|
|
23
|
-
party_address:
|
|
24
|
-
ModernTreasury::ExternalAccountCreateParams::PartyAddress::OrHash,
|
|
21
|
+
party_address: ModernTreasury::AddressRequest::OrHash,
|
|
25
22
|
party_identifier: String,
|
|
26
23
|
party_name: String,
|
|
27
24
|
party_type:
|
|
@@ -37,33 +34,41 @@ module ModernTreasury
|
|
|
37
34
|
).returns(ModernTreasury::ExternalAccount)
|
|
38
35
|
end
|
|
39
36
|
def create(
|
|
37
|
+
# Body param:
|
|
40
38
|
counterparty_id:,
|
|
39
|
+
# Body param: An optional user-defined 180 character unique identifier.
|
|
40
|
+
body_external_id: nil,
|
|
41
|
+
# Body param:
|
|
41
42
|
account_details: nil,
|
|
42
|
-
# Can be `checking`, `savings` or `other`.
|
|
43
|
+
# Body param: Can be `checking`, `savings` or `other`.
|
|
43
44
|
account_type: nil,
|
|
45
|
+
# Body param:
|
|
44
46
|
contact_details: nil,
|
|
45
|
-
# Specifies a ledger account object that will be created with the
|
|
46
|
-
# account. The resulting ledger account is linked to the external account
|
|
47
|
-
# auto-ledgering Payment objects. See
|
|
47
|
+
# Body param: Specifies a ledger account object that will be created with the
|
|
48
|
+
# external account. The resulting ledger account is linked to the external account
|
|
49
|
+
# for auto-ledgering Payment objects. See
|
|
48
50
|
# https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
|
|
49
51
|
# for more details.
|
|
50
52
|
ledger_account: nil,
|
|
51
|
-
# Additional data represented as key-value pairs. Both the key and
|
|
52
|
-
# strings.
|
|
53
|
+
# Body param: Additional data represented as key-value pairs. Both the key and
|
|
54
|
+
# value must be strings.
|
|
53
55
|
metadata: nil,
|
|
54
|
-
# A nickname for the external account. This is only for internal usage
|
|
55
|
-
# affect any payments
|
|
56
|
+
# Body param: A nickname for the external account. This is only for internal usage
|
|
57
|
+
# and won't affect any payments
|
|
56
58
|
name: nil,
|
|
57
|
-
# Required if receiving wire payments.
|
|
59
|
+
# Body param: Required if receiving wire payments.
|
|
58
60
|
party_address: nil,
|
|
61
|
+
# Body param:
|
|
59
62
|
party_identifier: nil,
|
|
60
|
-
# If this value isn't provided, it will be inherited from the
|
|
63
|
+
# Body param: If this value isn't provided, it will be inherited from the
|
|
64
|
+
# counterparty's name.
|
|
61
65
|
party_name: nil,
|
|
62
|
-
# Either `individual` or `business`.
|
|
66
|
+
# Body param: Either `individual` or `business`.
|
|
63
67
|
party_type: nil,
|
|
64
|
-
# If you've enabled the Modern Treasury + Plaid integration in your
|
|
65
|
-
# you can pass the processor token in this field.
|
|
68
|
+
# Body param: If you've enabled the Modern Treasury + Plaid integration in your
|
|
69
|
+
# Plaid account, you can pass the processor token in this field.
|
|
66
70
|
plaid_processor_token: nil,
|
|
71
|
+
# Body param:
|
|
67
72
|
routing_details: nil,
|
|
68
73
|
request_options: {}
|
|
69
74
|
)
|
|
@@ -91,8 +96,7 @@ module ModernTreasury
|
|
|
91
96
|
counterparty_id: T.nilable(String),
|
|
92
97
|
metadata: T::Hash[Symbol, String],
|
|
93
98
|
name: T.nilable(String),
|
|
94
|
-
party_address:
|
|
95
|
-
ModernTreasury::ExternalAccountUpdateParams::PartyAddress::OrHash,
|
|
99
|
+
party_address: ModernTreasury::AddressRequest::OrHash,
|
|
96
100
|
party_name: String,
|
|
97
101
|
party_type:
|
|
98
102
|
T.nilable(
|
|
@@ -127,6 +131,7 @@ module ModernTreasury
|
|
|
127
131
|
params(
|
|
128
132
|
after_cursor: T.nilable(String),
|
|
129
133
|
counterparty_id: String,
|
|
134
|
+
external_id: String,
|
|
130
135
|
metadata: T::Hash[Symbol, String],
|
|
131
136
|
party_name: String,
|
|
132
137
|
per_page: Integer,
|
|
@@ -138,6 +143,8 @@ module ModernTreasury
|
|
|
138
143
|
def list(
|
|
139
144
|
after_cursor: nil,
|
|
140
145
|
counterparty_id: nil,
|
|
146
|
+
# An optional user-defined 180 character unique identifier.
|
|
147
|
+
external_id: nil,
|
|
141
148
|
# For example, if you want to query for records with metadata key `Type` and value
|
|
142
149
|
# `Loan`, the query would be `metadata%5BType%5D=Loan`. This encodes the query
|
|
143
150
|
# parameters.
|
|
@@ -144,6 +144,30 @@ module ModernTreasury
|
|
|
144
144
|
)
|
|
145
145
|
end
|
|
146
146
|
|
|
147
|
+
# update account_capability
|
|
148
|
+
sig do
|
|
149
|
+
params(
|
|
150
|
+
id: String,
|
|
151
|
+
internal_account_id: String,
|
|
152
|
+
identifier: String,
|
|
153
|
+
request_options: ModernTreasury::RequestOptions::OrHash
|
|
154
|
+
).returns(
|
|
155
|
+
ModernTreasury::Models::InternalAccountUpdateAccountCapabilityResponse
|
|
156
|
+
)
|
|
157
|
+
end
|
|
158
|
+
def update_account_capability(
|
|
159
|
+
# Path param: Unique identifier for the account capability.
|
|
160
|
+
id,
|
|
161
|
+
# Path param: Unique identifier for the internal account.
|
|
162
|
+
internal_account_id:,
|
|
163
|
+
# Body param: A unique reference assigned by your bank for tracking and
|
|
164
|
+
# recognizing payment files. It is important this is formatted exactly how the
|
|
165
|
+
# bank assigned it.
|
|
166
|
+
identifier:,
|
|
167
|
+
request_options: {}
|
|
168
|
+
)
|
|
169
|
+
end
|
|
170
|
+
|
|
147
171
|
# @api private
|
|
148
172
|
sig { params(client: ModernTreasury::Client).returns(T.attached_class) }
|
|
149
173
|
def self.new(client:)
|
|
@@ -13,10 +13,7 @@ module ModernTreasury
|
|
|
13
13
|
due_date: Time,
|
|
14
14
|
originating_account_id: String,
|
|
15
15
|
auto_advance: T.nilable(T::Boolean),
|
|
16
|
-
contact_details:
|
|
17
|
-
T::Array[
|
|
18
|
-
ModernTreasury::InvoiceCreateParams::ContactDetail::OrHash
|
|
19
|
-
],
|
|
16
|
+
contact_details: T::Array[ModernTreasury::ContactDetail::OrHash],
|
|
20
17
|
counterparty_billing_address:
|
|
21
18
|
T.nilable(
|
|
22
19
|
ModernTreasury::InvoiceCreateParams::CounterpartyBillingAddress::OrHash
|
|
@@ -151,10 +148,7 @@ module ModernTreasury
|
|
|
151
148
|
sig do
|
|
152
149
|
params(
|
|
153
150
|
id: String,
|
|
154
|
-
contact_details:
|
|
155
|
-
T::Array[
|
|
156
|
-
ModernTreasury::InvoiceUpdateParams::ContactDetail::OrHash
|
|
157
|
-
],
|
|
151
|
+
contact_details: T::Array[ModernTreasury::ContactDetail::OrHash],
|
|
158
152
|
counterparty_billing_address:
|
|
159
153
|
T.nilable(
|
|
160
154
|
ModernTreasury::InvoiceUpdateParams::CounterpartyBillingAddress::OrHash
|
|
@@ -54,7 +54,8 @@ module ModernTreasury
|
|
|
54
54
|
id,
|
|
55
55
|
# For example, if you want the balances as of a particular time (ISO8601), the
|
|
56
56
|
# encoded query string would be `balances%5Beffective_at%5D=2000-12-31T12:00:00Z`.
|
|
57
|
-
# The balances as of a time are inclusive of entries with that exact time
|
|
57
|
+
# The balances as of a time are inclusive of entries with that exact time, but
|
|
58
|
+
# with respect to the ledger accounts that are currently present in the category.
|
|
58
59
|
balances: nil,
|
|
59
60
|
request_options: {}
|
|
60
61
|
)
|
|
@@ -96,7 +97,7 @@ module ModernTreasury
|
|
|
96
97
|
ledger_account_id: String,
|
|
97
98
|
ledger_id: String,
|
|
98
99
|
metadata: T::Hash[Symbol, String],
|
|
99
|
-
name: String,
|
|
100
|
+
name: T::Array[String],
|
|
100
101
|
parent_ledger_account_category_id: String,
|
|
101
102
|
per_page: Integer,
|
|
102
103
|
request_options: ModernTreasury::RequestOptions::OrHash
|
|
@@ -111,7 +112,8 @@ module ModernTreasury
|
|
|
111
112
|
after_cursor: nil,
|
|
112
113
|
# For example, if you want the balances as of a particular time (ISO8601), the
|
|
113
114
|
# encoded query string would be `balances%5Beffective_at%5D=2000-12-31T12:00:00Z`.
|
|
114
|
-
# The balances as of a time are inclusive of entries with that exact time
|
|
115
|
+
# The balances as of a time are inclusive of entries with that exact time, but
|
|
116
|
+
# with respect to the ledger accounts that are currently present in the category.
|
|
115
117
|
balances: nil,
|
|
116
118
|
currency: nil,
|
|
117
119
|
external_id: nil,
|
|
@@ -123,6 +125,8 @@ module ModernTreasury
|
|
|
123
125
|
# `Loan`, the query would be `metadata%5BType%5D=Loan`. This encodes the query
|
|
124
126
|
# parameters.
|
|
125
127
|
metadata: nil,
|
|
128
|
+
# If you have specific names to retrieve in bulk, you can pass them as query
|
|
129
|
+
# parameters delimited with `name[]=`, for example `?name[]=123&name[]=abc`.
|
|
126
130
|
name: nil,
|
|
127
131
|
# Query categories that are nested underneath a parent category
|
|
128
132
|
parent_ledger_account_category_id: nil,
|
|
@@ -15,7 +15,7 @@ module ModernTreasury
|
|
|
15
15
|
ledger_account_category_ids: T::Array[String],
|
|
16
16
|
ledgerable_id: String,
|
|
17
17
|
ledgerable_type:
|
|
18
|
-
ModernTreasury::
|
|
18
|
+
ModernTreasury::LedgerAccountCreateRequest::LedgerableType::OrSymbol,
|
|
19
19
|
metadata: T::Hash[Symbol, String],
|
|
20
20
|
request_options: ModernTreasury::RequestOptions::OrHash
|
|
21
21
|
).returns(ModernTreasury::LedgerAccount)
|
|
@@ -60,7 +60,13 @@ module ModernTreasury
|
|
|
60
60
|
per_page: Integer,
|
|
61
61
|
show_balances: T::Boolean,
|
|
62
62
|
show_deleted: T::Boolean,
|
|
63
|
-
status:
|
|
63
|
+
status:
|
|
64
|
+
T.any(
|
|
65
|
+
ModernTreasury::LedgerEntryListParams::Status::OrSymbol,
|
|
66
|
+
T::Array[
|
|
67
|
+
ModernTreasury::LedgerEntryListParams::Status::UnionMember1::OrSymbol
|
|
68
|
+
]
|
|
69
|
+
),
|
|
64
70
|
updated_at: T::Hash[Symbol, Time],
|
|
65
71
|
request_options: ModernTreasury::RequestOptions::OrHash
|
|
66
72
|
).returns(ModernTreasury::Internal::Page[ModernTreasury::LedgerEntry])
|
|
@@ -114,7 +120,8 @@ module ModernTreasury
|
|
|
114
120
|
# deleted.
|
|
115
121
|
show_deleted: nil,
|
|
116
122
|
# Get all ledger entries that match the status specified. One of `pending`,
|
|
117
|
-
# `posted`, or `archived`.
|
|
123
|
+
# `posted`, or `archived`. For multiple statuses, use
|
|
124
|
+
# `status[]=pending&status[]=posted`.
|
|
118
125
|
status: nil,
|
|
119
126
|
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the
|
|
120
127
|
# posted at timestamp. For example, for all times after Jan 1 2000 12:00 UTC, use
|
|
@@ -10,19 +10,17 @@ module ModernTreasury
|
|
|
10
10
|
sig do
|
|
11
11
|
params(
|
|
12
12
|
ledger_entries:
|
|
13
|
-
T::Array[
|
|
14
|
-
ModernTreasury::LedgerTransactionCreateParams::LedgerEntry::OrHash
|
|
15
|
-
],
|
|
13
|
+
T::Array[ModernTreasury::LedgerEntryCreateRequest::OrHash],
|
|
16
14
|
description: T.nilable(String),
|
|
17
15
|
effective_at: Time,
|
|
18
16
|
effective_date: Date,
|
|
19
17
|
external_id: String,
|
|
20
18
|
ledgerable_id: String,
|
|
21
19
|
ledgerable_type:
|
|
22
|
-
ModernTreasury::
|
|
20
|
+
ModernTreasury::LedgerTransactionCreateRequest::LedgerableType::OrSymbol,
|
|
23
21
|
metadata: T::Hash[Symbol, String],
|
|
24
22
|
status:
|
|
25
|
-
ModernTreasury::
|
|
23
|
+
ModernTreasury::LedgerTransactionCreateRequest::Status::OrSymbol,
|
|
26
24
|
request_options: ModernTreasury::RequestOptions::OrHash
|
|
27
25
|
).returns(ModernTreasury::LedgerTransaction)
|
|
28
26
|
end
|
|
@@ -45,8 +43,7 @@ module ModernTreasury
|
|
|
45
43
|
ledgerable_id: nil,
|
|
46
44
|
# If the ledger transaction can be reconciled to another object in Modern
|
|
47
45
|
# Treasury, the type will be populated here, otherwise null. This can be one of
|
|
48
|
-
# payment_order, incoming_payment_detail, expected_payment, return,
|
|
49
|
-
# reversal.
|
|
46
|
+
# payment_order, incoming_payment_detail, expected_payment, return, or reversal.
|
|
50
47
|
ledgerable_type: nil,
|
|
51
48
|
# Additional data represented as key-value pairs. Both the key and value must be
|
|
52
49
|
# strings.
|
|
@@ -78,9 +75,7 @@ module ModernTreasury
|
|
|
78
75
|
description: T.nilable(String),
|
|
79
76
|
effective_at: Time,
|
|
80
77
|
ledger_entries:
|
|
81
|
-
T::Array[
|
|
82
|
-
ModernTreasury::LedgerTransactionUpdateParams::LedgerEntry::OrHash
|
|
83
|
-
],
|
|
78
|
+
T::Array[ModernTreasury::LedgerEntryCreateRequest::OrHash],
|
|
84
79
|
ledgerable_id: String,
|
|
85
80
|
ledgerable_type:
|
|
86
81
|
ModernTreasury::LedgerTransactionUpdateParams::LedgerableType::OrSymbol,
|
|
@@ -105,8 +100,7 @@ module ModernTreasury
|
|
|
105
100
|
ledgerable_id: nil,
|
|
106
101
|
# If the ledger transaction can be reconciled to another object in Modern
|
|
107
102
|
# Treasury, the type will be populated here, otherwise null. This can be one of
|
|
108
|
-
# payment_order, incoming_payment_detail, expected_payment, return,
|
|
109
|
-
# reversal.
|
|
103
|
+
# payment_order, incoming_payment_detail, expected_payment, return, or reversal.
|
|
110
104
|
ledgerable_type: nil,
|
|
111
105
|
# Additional data represented as key-value pairs. Both the key and value must be
|
|
112
106
|
# strings.
|
|
@@ -139,7 +133,13 @@ module ModernTreasury
|
|
|
139
133
|
per_page: Integer,
|
|
140
134
|
posted_at: T::Hash[Symbol, Time],
|
|
141
135
|
reverses_ledger_transaction_id: String,
|
|
142
|
-
status:
|
|
136
|
+
status:
|
|
137
|
+
T.any(
|
|
138
|
+
ModernTreasury::LedgerTransactionListParams::Status::OrSymbol,
|
|
139
|
+
T::Array[
|
|
140
|
+
ModernTreasury::LedgerTransactionListParams::Status::UnionMember1::OrSymbol
|
|
141
|
+
]
|
|
142
|
+
),
|
|
143
143
|
updated_at: T::Hash[Symbol, Time],
|
|
144
144
|
request_options: ModernTreasury::RequestOptions::OrHash
|
|
145
145
|
).returns(
|
|
@@ -9,7 +9,7 @@ module ModernTreasury
|
|
|
9
9
|
legal_entity_type:
|
|
10
10
|
ModernTreasury::LegalEntityCreateParams::LegalEntityType::OrSymbol,
|
|
11
11
|
addresses:
|
|
12
|
-
T::Array[ModernTreasury::
|
|
12
|
+
T::Array[ModernTreasury::LegalEntityAddressCreateRequest::OrHash],
|
|
13
13
|
bank_settings: T.nilable(ModernTreasury::BankSettings::OrHash),
|
|
14
14
|
business_name: T.nilable(String),
|
|
15
15
|
citizenship_country: T.nilable(String),
|
|
@@ -21,9 +21,7 @@ module ModernTreasury
|
|
|
21
21
|
email: T.nilable(String),
|
|
22
22
|
first_name: T.nilable(String),
|
|
23
23
|
identifications:
|
|
24
|
-
T::Array[
|
|
25
|
-
ModernTreasury::LegalEntityCreateParams::Identification::OrHash
|
|
26
|
-
],
|
|
24
|
+
T::Array[ModernTreasury::IdentificationCreateRequest::OrHash],
|
|
27
25
|
industry_classifications:
|
|
28
26
|
T::Array[ModernTreasury::LegalEntityIndustryClassification::OrHash],
|
|
29
27
|
last_name: T.nilable(String),
|
|
@@ -129,7 +127,7 @@ module ModernTreasury
|
|
|
129
127
|
params(
|
|
130
128
|
id: String,
|
|
131
129
|
addresses:
|
|
132
|
-
T::Array[ModernTreasury::
|
|
130
|
+
T::Array[ModernTreasury::LegalEntityAddressCreateRequest::OrHash],
|
|
133
131
|
bank_settings: T.nilable(ModernTreasury::BankSettings::OrHash),
|
|
134
132
|
business_name: T.nilable(String),
|
|
135
133
|
citizenship_country: T.nilable(String),
|
|
@@ -141,9 +139,7 @@ module ModernTreasury
|
|
|
141
139
|
email: T.nilable(String),
|
|
142
140
|
first_name: T.nilable(String),
|
|
143
141
|
identifications:
|
|
144
|
-
T::Array[
|
|
145
|
-
ModernTreasury::LegalEntityUpdateParams::Identification::OrHash
|
|
146
|
-
],
|
|
142
|
+
T::Array[ModernTreasury::IdentificationCreateRequest::OrHash],
|
|
147
143
|
industry_classifications:
|
|
148
144
|
T::Array[ModernTreasury::LegalEntityIndustryClassification::OrHash],
|
|
149
145
|
last_name: T.nilable(String),
|
|
@@ -11,8 +11,7 @@ module ModernTreasury
|
|
|
11
11
|
T::Array[
|
|
12
12
|
ModernTreasury::LegalEntityAssociationCreateParams::RelationshipType::OrSymbol
|
|
13
13
|
],
|
|
14
|
-
child_legal_entity:
|
|
15
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::OrHash,
|
|
14
|
+
child_legal_entity: ModernTreasury::ChildLegalEntityCreate::OrHash,
|
|
16
15
|
child_legal_entity_id: String,
|
|
17
16
|
ownership_percentage: T.nilable(Integer),
|
|
18
17
|
title: T.nilable(String),
|
|
@@ -11,7 +11,7 @@ module ModernTreasury
|
|
|
11
11
|
reason:
|
|
12
12
|
ModernTreasury::PaymentOrders::ReversalCreateParams::Reason::OrSymbol,
|
|
13
13
|
ledger_transaction:
|
|
14
|
-
ModernTreasury::
|
|
14
|
+
ModernTreasury::LedgerTransactionCreateRequest::OrHash,
|
|
15
15
|
metadata: T::Hash[Symbol, String],
|
|
16
16
|
request_options: ModernTreasury::RequestOptions::OrHash
|
|
17
17
|
).returns(ModernTreasury::PaymentOrders::Reversal)
|