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
|
@@ -31,6 +31,12 @@ module ModernTreasury
|
|
|
31
31
|
# @return [String, nil]
|
|
32
32
|
optional :email, String
|
|
33
33
|
|
|
34
|
+
# @!attribute external_id
|
|
35
|
+
# An optional user-defined 180 character unique identifier.
|
|
36
|
+
#
|
|
37
|
+
# @return [String, nil]
|
|
38
|
+
optional :external_id, String
|
|
39
|
+
|
|
34
40
|
# @!attribute legal_entity_id
|
|
35
41
|
# Filters for counterparties with the given legal entity ID.
|
|
36
42
|
#
|
|
@@ -57,7 +63,7 @@ module ModernTreasury
|
|
|
57
63
|
# @return [Integer, nil]
|
|
58
64
|
optional :per_page, Integer
|
|
59
65
|
|
|
60
|
-
# @!method initialize(after_cursor: nil, created_at_lower_bound: nil, created_at_upper_bound: nil, email: nil, legal_entity_id: nil, metadata: nil, name: nil, per_page: nil, request_options: {})
|
|
66
|
+
# @!method initialize(after_cursor: nil, created_at_lower_bound: nil, created_at_upper_bound: nil, email: nil, external_id: nil, legal_entity_id: nil, metadata: nil, name: nil, per_page: nil, request_options: {})
|
|
61
67
|
# Some parameter documentations has been truncated, see
|
|
62
68
|
# {ModernTreasury::Models::CounterpartyListParams} for more details.
|
|
63
69
|
#
|
|
@@ -69,6 +75,8 @@ module ModernTreasury
|
|
|
69
75
|
#
|
|
70
76
|
# @param email [String] Performs a partial string match of the email field. This is also case insensitiv
|
|
71
77
|
#
|
|
78
|
+
# @param external_id [String] An optional user-defined 180 character unique identifier.
|
|
79
|
+
#
|
|
72
80
|
# @param legal_entity_id [String] Filters for counterparties with the given legal entity ID.
|
|
73
81
|
#
|
|
74
82
|
# @param metadata [Hash{Symbol=>String}] For example, if you want to query for records with metadata key `Type` and value
|
|
@@ -39,8 +39,8 @@ module ModernTreasury
|
|
|
39
39
|
|
|
40
40
|
# @!attribute documentable_type
|
|
41
41
|
# The type of the associated object. Currently can be one of `payment_order`,
|
|
42
|
-
# `transaction`, `
|
|
43
|
-
# `
|
|
42
|
+
# `transaction`, `expected_payment`, `counterparty`, `organization`, `case`,
|
|
43
|
+
# `internal_account`, `decision`, or `external_account`.
|
|
44
44
|
#
|
|
45
45
|
# @return [Symbol, ModernTreasury::Models::Document::DocumentableType]
|
|
46
46
|
required :documentable_type, enum: -> { ModernTreasury::Document::DocumentableType }
|
|
@@ -166,8 +166,8 @@ module ModernTreasury
|
|
|
166
166
|
end
|
|
167
167
|
|
|
168
168
|
# The type of the associated object. Currently can be one of `payment_order`,
|
|
169
|
-
# `transaction`, `
|
|
170
|
-
# `
|
|
169
|
+
# `transaction`, `expected_payment`, `counterparty`, `organization`, `case`,
|
|
170
|
+
# `internal_account`, `decision`, or `external_account`.
|
|
171
171
|
#
|
|
172
172
|
# @see ModernTreasury::Models::Document#documentable_type
|
|
173
173
|
module DocumentableType
|
|
@@ -180,11 +180,9 @@ module ModernTreasury
|
|
|
180
180
|
INCOMING_PAYMENT_DETAIL = :incoming_payment_detail
|
|
181
181
|
INTERNAL_ACCOUNT = :internal_account
|
|
182
182
|
ORGANIZATION = :organization
|
|
183
|
-
PAPER_ITEM = :paper_item
|
|
184
183
|
PAYMENT_ORDER = :payment_order
|
|
185
184
|
TRANSACTION = :transaction
|
|
186
185
|
CONNECTION = :connection
|
|
187
|
-
CONVERSATION = :conversation
|
|
188
186
|
|
|
189
187
|
# @!method self.values
|
|
190
188
|
# @return [Array<Symbol>]
|
|
@@ -50,11 +50,9 @@ module ModernTreasury
|
|
|
50
50
|
INCOMING_PAYMENT_DETAILS = :incoming_payment_details
|
|
51
51
|
INTERNAL_ACCOUNTS = :internal_accounts
|
|
52
52
|
ORGANIZATIONS = :organizations
|
|
53
|
-
PAPER_ITEMS = :paper_items
|
|
54
53
|
PAYMENT_ORDERS = :payment_orders
|
|
55
54
|
TRANSACTIONS = :transactions
|
|
56
55
|
CONNECTIONS = :connections
|
|
57
|
-
CONVERSATIONS = :conversations
|
|
58
56
|
|
|
59
57
|
# @!method self.values
|
|
60
58
|
# @return [Array<Symbol>]
|
|
@@ -20,8 +20,8 @@ module ModernTreasury
|
|
|
20
20
|
|
|
21
21
|
# @!attribute documentable_type
|
|
22
22
|
# The type of the associated object. Currently can be one of `payment_order`,
|
|
23
|
-
# `transaction`, `
|
|
24
|
-
# `
|
|
23
|
+
# `transaction`, `expected_payment`, `counterparty`, `organization`, `case`,
|
|
24
|
+
# `internal_account`, `decision`, or `external_account`.
|
|
25
25
|
#
|
|
26
26
|
# @return [Symbol, ModernTreasury::Models::DocumentListParams::DocumentableType, nil]
|
|
27
27
|
optional :documentable_type, enum: -> { ModernTreasury::DocumentListParams::DocumentableType }
|
|
@@ -46,8 +46,8 @@ module ModernTreasury
|
|
|
46
46
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
|
47
47
|
|
|
48
48
|
# The type of the associated object. Currently can be one of `payment_order`,
|
|
49
|
-
# `transaction`, `
|
|
50
|
-
# `
|
|
49
|
+
# `transaction`, `expected_payment`, `counterparty`, `organization`, `case`,
|
|
50
|
+
# `internal_account`, `decision`, or `external_account`.
|
|
51
51
|
module DocumentableType
|
|
52
52
|
extend ModernTreasury::Internal::Type::Enum
|
|
53
53
|
|
|
@@ -58,11 +58,9 @@ module ModernTreasury
|
|
|
58
58
|
INCOMING_PAYMENT_DETAILS = :incoming_payment_details
|
|
59
59
|
INTERNAL_ACCOUNTS = :internal_accounts
|
|
60
60
|
ORGANIZATIONS = :organizations
|
|
61
|
-
PAPER_ITEMS = :paper_items
|
|
62
61
|
PAYMENT_ORDERS = :payment_orders
|
|
63
62
|
TRANSACTIONS = :transactions
|
|
64
63
|
CONNECTIONS = :connections
|
|
65
|
-
CONVERSATIONS = :conversations
|
|
66
64
|
|
|
67
65
|
# @!method self.values
|
|
68
66
|
# @return [Array<Symbol>]
|
|
@@ -65,6 +65,12 @@ module ModernTreasury
|
|
|
65
65
|
# @return [Symbol, ModernTreasury::Models::ExpectedPayment::Direction, nil]
|
|
66
66
|
required :direction, enum: -> { ModernTreasury::ExpectedPayment::Direction }, nil?: true
|
|
67
67
|
|
|
68
|
+
# @!attribute external_id
|
|
69
|
+
# An optional user-defined 180 character unique identifier.
|
|
70
|
+
#
|
|
71
|
+
# @return [String, nil]
|
|
72
|
+
required :external_id, String, nil?: true
|
|
73
|
+
|
|
68
74
|
# @!attribute internal_account_id
|
|
69
75
|
# The ID of the Internal Account for the expected payment.
|
|
70
76
|
#
|
|
@@ -173,7 +179,7 @@ module ModernTreasury
|
|
|
173
179
|
# @return [Time]
|
|
174
180
|
required :updated_at, Time
|
|
175
181
|
|
|
176
|
-
# @!method initialize(id:, amount_lower_bound:, amount_upper_bound:, counterparty_id:, created_at:, currency:, date_lower_bound:, date_upper_bound:, description:, direction:, internal_account_id:, ledger_transaction_id:, live_mode:, metadata:, object:, reconciliation_filters:, reconciliation_groups:, reconciliation_method:, reconciliation_rule_variables:, remittance_information:, statement_descriptor:, status:, transaction_id:, transaction_line_item_id:, type:, updated_at:)
|
|
182
|
+
# @!method initialize(id:, amount_lower_bound:, amount_upper_bound:, counterparty_id:, created_at:, currency:, date_lower_bound:, date_upper_bound:, description:, direction:, external_id:, internal_account_id:, ledger_transaction_id:, live_mode:, metadata:, object:, reconciliation_filters:, reconciliation_groups:, reconciliation_method:, reconciliation_rule_variables:, remittance_information:, statement_descriptor:, status:, transaction_id:, transaction_line_item_id:, type:, updated_at:)
|
|
177
183
|
# Some parameter documentations has been truncated, see
|
|
178
184
|
# {ModernTreasury::Models::ExpectedPayment} for more details.
|
|
179
185
|
#
|
|
@@ -197,6 +203,8 @@ module ModernTreasury
|
|
|
197
203
|
#
|
|
198
204
|
# @param direction [Symbol, ModernTreasury::Models::ExpectedPayment::Direction, nil] One of credit or debit. When you are receiving money, use credit. When you are b
|
|
199
205
|
#
|
|
206
|
+
# @param external_id [String, nil] An optional user-defined 180 character unique identifier.
|
|
207
|
+
#
|
|
200
208
|
# @param internal_account_id [String, nil] The ID of the Internal Account for the expected payment.
|
|
201
209
|
#
|
|
202
210
|
# @param ledger_transaction_id [String, nil] The ID of the ledger transaction linked to the expected payment.
|
|
@@ -58,6 +58,12 @@ module ModernTreasury
|
|
|
58
58
|
# @return [Symbol, ModernTreasury::Models::ExpectedPaymentCreateParams::Direction, nil]
|
|
59
59
|
optional :direction, enum: -> { ModernTreasury::ExpectedPaymentCreateParams::Direction }, nil?: true
|
|
60
60
|
|
|
61
|
+
# @!attribute external_id
|
|
62
|
+
# An optional user-defined 180 character unique identifier.
|
|
63
|
+
#
|
|
64
|
+
# @return [String, nil]
|
|
65
|
+
optional :external_id, String, nil?: true
|
|
66
|
+
|
|
61
67
|
# @!attribute internal_account_id
|
|
62
68
|
# The ID of the Internal Account for the expected payment.
|
|
63
69
|
#
|
|
@@ -70,8 +76,8 @@ module ModernTreasury
|
|
|
70
76
|
# creation will fail. The resulting ledger transaction will mirror the status of
|
|
71
77
|
# the expected payment.
|
|
72
78
|
#
|
|
73
|
-
# @return [ModernTreasury::Models::
|
|
74
|
-
optional :ledger_transaction, -> { ModernTreasury::
|
|
79
|
+
# @return [ModernTreasury::Models::LedgerTransactionCreateRequest, nil]
|
|
80
|
+
optional :ledger_transaction, -> { ModernTreasury::LedgerTransactionCreateRequest }
|
|
75
81
|
|
|
76
82
|
# @!attribute ledger_transaction_id
|
|
77
83
|
# Either ledger_transaction or ledger_transaction_id can be provided. Only a
|
|
@@ -141,7 +147,7 @@ module ModernTreasury
|
|
|
141
147
|
# @return [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil]
|
|
142
148
|
optional :type, enum: -> { ModernTreasury::ExpectedPaymentType }, nil?: true
|
|
143
149
|
|
|
144
|
-
# @!method initialize(amount_lower_bound: nil, amount_upper_bound: nil, counterparty_id: nil, currency: nil, date_lower_bound: nil, date_upper_bound: nil, description: nil, direction: nil, internal_account_id: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, reconciliation_filters: nil, reconciliation_groups: nil, reconciliation_rule_variables: nil, remittance_information: nil, statement_descriptor: nil, type: nil, request_options: {})
|
|
150
|
+
# @!method initialize(amount_lower_bound: nil, amount_upper_bound: nil, counterparty_id: nil, currency: nil, date_lower_bound: nil, date_upper_bound: nil, description: nil, direction: nil, external_id: nil, internal_account_id: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, reconciliation_filters: nil, reconciliation_groups: nil, reconciliation_rule_variables: nil, remittance_information: nil, statement_descriptor: nil, type: nil, request_options: {})
|
|
145
151
|
# Some parameter documentations has been truncated, see
|
|
146
152
|
# {ModernTreasury::Models::ExpectedPaymentCreateParams} for more details.
|
|
147
153
|
#
|
|
@@ -161,9 +167,11 @@ module ModernTreasury
|
|
|
161
167
|
#
|
|
162
168
|
# @param direction [Symbol, ModernTreasury::Models::ExpectedPaymentCreateParams::Direction, nil] One of credit or debit. When you are receiving money, use credit. When you are b
|
|
163
169
|
#
|
|
170
|
+
# @param external_id [String, nil] An optional user-defined 180 character unique identifier.
|
|
171
|
+
#
|
|
164
172
|
# @param internal_account_id [String, nil] The ID of the Internal Account for the expected payment.
|
|
165
173
|
#
|
|
166
|
-
# @param ledger_transaction [ModernTreasury::Models::
|
|
174
|
+
# @param ledger_transaction [ModernTreasury::Models::LedgerTransactionCreateRequest] Specifies a ledger transaction object that will be created with the expected pay
|
|
167
175
|
#
|
|
168
176
|
# @param ledger_transaction_id [String] Either ledger_transaction or ledger_transaction_id can be provided. Only a pendi
|
|
169
177
|
#
|
|
@@ -197,232 +205,6 @@ module ModernTreasury
|
|
|
197
205
|
# @return [Array<Symbol>]
|
|
198
206
|
end
|
|
199
207
|
|
|
200
|
-
class LedgerTransaction < ModernTreasury::Internal::Type::BaseModel
|
|
201
|
-
# @!attribute ledger_entries
|
|
202
|
-
# An array of ledger entry objects.
|
|
203
|
-
#
|
|
204
|
-
# @return [Array<ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction::LedgerEntry>]
|
|
205
|
-
required :ledger_entries,
|
|
206
|
-
-> {
|
|
207
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ExpectedPaymentCreateParams::LedgerTransaction::LedgerEntry]
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
# @!attribute description
|
|
211
|
-
# An optional description for internal use.
|
|
212
|
-
#
|
|
213
|
-
# @return [String, nil]
|
|
214
|
-
optional :description, String, nil?: true
|
|
215
|
-
|
|
216
|
-
# @!attribute effective_at
|
|
217
|
-
# The timestamp (ISO8601 format) at which the ledger transaction happened for
|
|
218
|
-
# reporting purposes.
|
|
219
|
-
#
|
|
220
|
-
# @return [Time, nil]
|
|
221
|
-
optional :effective_at, Time
|
|
222
|
-
|
|
223
|
-
# @!attribute effective_date
|
|
224
|
-
# The date (YYYY-MM-DD) on which the ledger transaction happened for reporting
|
|
225
|
-
# purposes.
|
|
226
|
-
#
|
|
227
|
-
# @return [Date, nil]
|
|
228
|
-
optional :effective_date, Date
|
|
229
|
-
|
|
230
|
-
# @!attribute external_id
|
|
231
|
-
# A unique string to represent the ledger transaction. Only one pending or posted
|
|
232
|
-
# ledger transaction may have this ID in the ledger.
|
|
233
|
-
#
|
|
234
|
-
# @return [String, nil]
|
|
235
|
-
optional :external_id, String
|
|
236
|
-
|
|
237
|
-
# @!attribute ledgerable_id
|
|
238
|
-
# If the ledger transaction can be reconciled to another object in Modern
|
|
239
|
-
# Treasury, the id will be populated here, otherwise null.
|
|
240
|
-
#
|
|
241
|
-
# @return [String, nil]
|
|
242
|
-
optional :ledgerable_id, String
|
|
243
|
-
|
|
244
|
-
# @!attribute ledgerable_type
|
|
245
|
-
# If the ledger transaction can be reconciled to another object in Modern
|
|
246
|
-
# Treasury, the type will be populated here, otherwise null. This can be one of
|
|
247
|
-
# payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
|
|
248
|
-
# reversal.
|
|
249
|
-
#
|
|
250
|
-
# @return [Symbol, ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction::LedgerableType, nil]
|
|
251
|
-
optional :ledgerable_type,
|
|
252
|
-
enum: -> { ModernTreasury::ExpectedPaymentCreateParams::LedgerTransaction::LedgerableType }
|
|
253
|
-
|
|
254
|
-
# @!attribute metadata
|
|
255
|
-
# Additional data represented as key-value pairs. Both the key and value must be
|
|
256
|
-
# strings.
|
|
257
|
-
#
|
|
258
|
-
# @return [Hash{Symbol=>String}, nil]
|
|
259
|
-
optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
|
|
260
|
-
|
|
261
|
-
# @!attribute status
|
|
262
|
-
# To post a ledger transaction at creation, use `posted`.
|
|
263
|
-
#
|
|
264
|
-
# @return [Symbol, ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction::Status, nil]
|
|
265
|
-
optional :status, enum: -> { ModernTreasury::ExpectedPaymentCreateParams::LedgerTransaction::Status }
|
|
266
|
-
|
|
267
|
-
# @!method initialize(ledger_entries:, description: nil, effective_at: nil, effective_date: nil, external_id: nil, ledgerable_id: nil, ledgerable_type: nil, metadata: nil, status: nil)
|
|
268
|
-
# Some parameter documentations has been truncated, see
|
|
269
|
-
# {ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction} for
|
|
270
|
-
# more details.
|
|
271
|
-
#
|
|
272
|
-
# Specifies a ledger transaction object that will be created with the expected
|
|
273
|
-
# payment. If the ledger transaction cannot be created, then the expected payment
|
|
274
|
-
# creation will fail. The resulting ledger transaction will mirror the status of
|
|
275
|
-
# the expected payment.
|
|
276
|
-
#
|
|
277
|
-
# @param ledger_entries [Array<ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction::LedgerEntry>] An array of ledger entry objects.
|
|
278
|
-
#
|
|
279
|
-
# @param description [String, nil] An optional description for internal use.
|
|
280
|
-
#
|
|
281
|
-
# @param effective_at [Time] The timestamp (ISO8601 format) at which the ledger transaction happened for repo
|
|
282
|
-
#
|
|
283
|
-
# @param effective_date [Date] The date (YYYY-MM-DD) on which the ledger transaction happened for reporting pur
|
|
284
|
-
#
|
|
285
|
-
# @param external_id [String] A unique string to represent the ledger transaction. Only one pending or posted
|
|
286
|
-
#
|
|
287
|
-
# @param ledgerable_id [String] If the ledger transaction can be reconciled to another object in Modern Treasury
|
|
288
|
-
#
|
|
289
|
-
# @param ledgerable_type [Symbol, ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction::LedgerableType] If the ledger transaction can be reconciled to another object in Modern Treasury
|
|
290
|
-
#
|
|
291
|
-
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
|
292
|
-
#
|
|
293
|
-
# @param status [Symbol, ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction::Status] To post a ledger transaction at creation, use `posted`.
|
|
294
|
-
|
|
295
|
-
class LedgerEntry < ModernTreasury::Internal::Type::BaseModel
|
|
296
|
-
# @!attribute amount
|
|
297
|
-
# Value in specified currency's smallest unit. e.g. $10 would be represented
|
|
298
|
-
# as 1000. Can be any integer up to 36 digits.
|
|
299
|
-
#
|
|
300
|
-
# @return [Integer]
|
|
301
|
-
required :amount, Integer
|
|
302
|
-
|
|
303
|
-
# @!attribute direction
|
|
304
|
-
# One of `credit`, `debit`. Describes the direction money is flowing in the
|
|
305
|
-
# transaction. A `credit` moves money from your account to someone else's. A
|
|
306
|
-
# `debit` pulls money from someone else's account to your own. Note that wire,
|
|
307
|
-
# rtp, and check payments will always be `credit`.
|
|
308
|
-
#
|
|
309
|
-
# @return [Symbol, ModernTreasury::Models::TransactionDirection]
|
|
310
|
-
required :direction, enum: -> { ModernTreasury::TransactionDirection }
|
|
311
|
-
|
|
312
|
-
# @!attribute ledger_account_id
|
|
313
|
-
# The ledger account that this ledger entry is associated with.
|
|
314
|
-
#
|
|
315
|
-
# @return [String]
|
|
316
|
-
required :ledger_account_id, String
|
|
317
|
-
|
|
318
|
-
# @!attribute available_balance_amount
|
|
319
|
-
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
|
|
320
|
-
# account’s available balance. If any of these conditions would be false after the
|
|
321
|
-
# transaction is created, the entire call will fail with error code 422.
|
|
322
|
-
#
|
|
323
|
-
# @return [Hash{Symbol=>Integer}, nil]
|
|
324
|
-
optional :available_balance_amount, ModernTreasury::Internal::Type::HashOf[Integer], nil?: true
|
|
325
|
-
|
|
326
|
-
# @!attribute lock_version
|
|
327
|
-
# Lock version of the ledger account. This can be passed when creating a ledger
|
|
328
|
-
# transaction to only succeed if no ledger transactions have posted since the
|
|
329
|
-
# given version. See our post about Designing the Ledgers API with Optimistic
|
|
330
|
-
# Locking for more details.
|
|
331
|
-
#
|
|
332
|
-
# @return [Integer, nil]
|
|
333
|
-
optional :lock_version, Integer, nil?: true
|
|
334
|
-
|
|
335
|
-
# @!attribute metadata
|
|
336
|
-
# Additional data represented as key-value pairs. Both the key and value must be
|
|
337
|
-
# strings.
|
|
338
|
-
#
|
|
339
|
-
# @return [Hash{Symbol=>String}, nil]
|
|
340
|
-
optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
|
|
341
|
-
|
|
342
|
-
# @!attribute pending_balance_amount
|
|
343
|
-
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
|
|
344
|
-
# account’s pending balance. If any of these conditions would be false after the
|
|
345
|
-
# transaction is created, the entire call will fail with error code 422.
|
|
346
|
-
#
|
|
347
|
-
# @return [Hash{Symbol=>Integer}, nil]
|
|
348
|
-
optional :pending_balance_amount, ModernTreasury::Internal::Type::HashOf[Integer], nil?: true
|
|
349
|
-
|
|
350
|
-
# @!attribute posted_balance_amount
|
|
351
|
-
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
|
|
352
|
-
# account’s posted balance. If any of these conditions would be false after the
|
|
353
|
-
# transaction is created, the entire call will fail with error code 422.
|
|
354
|
-
#
|
|
355
|
-
# @return [Hash{Symbol=>Integer}, nil]
|
|
356
|
-
optional :posted_balance_amount, ModernTreasury::Internal::Type::HashOf[Integer], nil?: true
|
|
357
|
-
|
|
358
|
-
# @!attribute show_resulting_ledger_account_balances
|
|
359
|
-
# If true, response will include the balance of the associated ledger account for
|
|
360
|
-
# the entry.
|
|
361
|
-
#
|
|
362
|
-
# @return [Boolean, nil]
|
|
363
|
-
optional :show_resulting_ledger_account_balances,
|
|
364
|
-
ModernTreasury::Internal::Type::Boolean,
|
|
365
|
-
nil?: true
|
|
366
|
-
|
|
367
|
-
# @!method initialize(amount:, direction:, ledger_account_id:, available_balance_amount: nil, lock_version: nil, metadata: nil, pending_balance_amount: nil, posted_balance_amount: nil, show_resulting_ledger_account_balances: nil)
|
|
368
|
-
# Some parameter documentations has been truncated, see
|
|
369
|
-
# {ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction::LedgerEntry}
|
|
370
|
-
# for more details.
|
|
371
|
-
#
|
|
372
|
-
# @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
|
|
373
|
-
#
|
|
374
|
-
# @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of `credit`, `debit`. Describes the direction money is flowing in the transa
|
|
375
|
-
#
|
|
376
|
-
# @param ledger_account_id [String] The ledger account that this ledger entry is associated with.
|
|
377
|
-
#
|
|
378
|
-
# @param available_balance_amount [Hash{Symbol=>Integer}, nil] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the accou
|
|
379
|
-
#
|
|
380
|
-
# @param lock_version [Integer, nil] Lock version of the ledger account. This can be passed when creating a ledger tr
|
|
381
|
-
#
|
|
382
|
-
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
|
383
|
-
#
|
|
384
|
-
# @param pending_balance_amount [Hash{Symbol=>Integer}, nil] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the accou
|
|
385
|
-
#
|
|
386
|
-
# @param posted_balance_amount [Hash{Symbol=>Integer}, nil] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the accou
|
|
387
|
-
#
|
|
388
|
-
# @param show_resulting_ledger_account_balances [Boolean, nil] If true, response will include the balance of the associated ledger account for
|
|
389
|
-
end
|
|
390
|
-
|
|
391
|
-
# If the ledger transaction can be reconciled to another object in Modern
|
|
392
|
-
# Treasury, the type will be populated here, otherwise null. This can be one of
|
|
393
|
-
# payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
|
|
394
|
-
# reversal.
|
|
395
|
-
#
|
|
396
|
-
# @see ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction#ledgerable_type
|
|
397
|
-
module LedgerableType
|
|
398
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
399
|
-
|
|
400
|
-
EXPECTED_PAYMENT = :expected_payment
|
|
401
|
-
INCOMING_PAYMENT_DETAIL = :incoming_payment_detail
|
|
402
|
-
PAPER_ITEM = :paper_item
|
|
403
|
-
PAYMENT_ORDER = :payment_order
|
|
404
|
-
RETURN = :return
|
|
405
|
-
REVERSAL = :reversal
|
|
406
|
-
|
|
407
|
-
# @!method self.values
|
|
408
|
-
# @return [Array<Symbol>]
|
|
409
|
-
end
|
|
410
|
-
|
|
411
|
-
# To post a ledger transaction at creation, use `posted`.
|
|
412
|
-
#
|
|
413
|
-
# @see ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction#status
|
|
414
|
-
module Status
|
|
415
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
416
|
-
|
|
417
|
-
ARCHIVED = :archived
|
|
418
|
-
PENDING = :pending
|
|
419
|
-
POSTED = :posted
|
|
420
|
-
|
|
421
|
-
# @!method self.values
|
|
422
|
-
# @return [Array<Symbol>]
|
|
423
|
-
end
|
|
424
|
-
end
|
|
425
|
-
|
|
426
208
|
class LineItem < ModernTreasury::Internal::Type::BaseModel
|
|
427
209
|
# @!attribute amount
|
|
428
210
|
# Value in specified currency's smallest unit. e.g. $10 would be represented
|
|
@@ -36,6 +36,11 @@ module ModernTreasury
|
|
|
36
36
|
# @return [Symbol, ModernTreasury::Models::TransactionDirection, nil]
|
|
37
37
|
optional :direction, enum: -> { ModernTreasury::TransactionDirection }
|
|
38
38
|
|
|
39
|
+
# @!attribute external_id
|
|
40
|
+
#
|
|
41
|
+
# @return [String, nil]
|
|
42
|
+
optional :external_id, String
|
|
43
|
+
|
|
39
44
|
# @!attribute internal_account_id
|
|
40
45
|
# Specify internal_account_id to see expected_payments for a specific account.
|
|
41
46
|
#
|
|
@@ -80,7 +85,7 @@ module ModernTreasury
|
|
|
80
85
|
# @return [Time, nil]
|
|
81
86
|
optional :updated_at_upper_bound, Time
|
|
82
87
|
|
|
83
|
-
# @!method initialize(after_cursor: nil, counterparty_id: nil, created_at_lower_bound: nil, created_at_upper_bound: nil, direction: nil, internal_account_id: nil, metadata: nil, per_page: nil, status: nil, type: nil, updated_at_lower_bound: nil, updated_at_upper_bound: nil, request_options: {})
|
|
88
|
+
# @!method initialize(after_cursor: nil, counterparty_id: nil, created_at_lower_bound: nil, created_at_upper_bound: nil, direction: nil, external_id: nil, internal_account_id: nil, metadata: nil, per_page: nil, status: nil, type: nil, updated_at_lower_bound: nil, updated_at_upper_bound: nil, request_options: {})
|
|
84
89
|
# Some parameter documentations has been truncated, see
|
|
85
90
|
# {ModernTreasury::Models::ExpectedPaymentListParams} for more details.
|
|
86
91
|
#
|
|
@@ -94,6 +99,8 @@ module ModernTreasury
|
|
|
94
99
|
#
|
|
95
100
|
# @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of credit, debit
|
|
96
101
|
#
|
|
102
|
+
# @param external_id [String]
|
|
103
|
+
#
|
|
97
104
|
# @param internal_account_id [String] Specify internal_account_id to see expected_payments for a specific account.
|
|
98
105
|
#
|
|
99
106
|
# @param metadata [Hash{Symbol=>String}] For example, if you want to query for records with metadata key `Type` and value
|
|
@@ -58,6 +58,12 @@ module ModernTreasury
|
|
|
58
58
|
# @return [Symbol, ModernTreasury::Models::ExpectedPaymentUpdateParams::Direction, nil]
|
|
59
59
|
optional :direction, enum: -> { ModernTreasury::ExpectedPaymentUpdateParams::Direction }, nil?: true
|
|
60
60
|
|
|
61
|
+
# @!attribute external_id
|
|
62
|
+
# An optional user-defined 180 character unique identifier.
|
|
63
|
+
#
|
|
64
|
+
# @return [String, nil]
|
|
65
|
+
optional :external_id, String, nil?: true
|
|
66
|
+
|
|
61
67
|
# @!attribute internal_account_id
|
|
62
68
|
# The ID of the Internal Account for the expected payment.
|
|
63
69
|
#
|
|
@@ -122,7 +128,7 @@ module ModernTreasury
|
|
|
122
128
|
# @return [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil]
|
|
123
129
|
optional :type, enum: -> { ModernTreasury::ExpectedPaymentType }, nil?: true
|
|
124
130
|
|
|
125
|
-
# @!method initialize(amount_lower_bound: nil, amount_upper_bound: nil, counterparty_id: nil, currency: nil, date_lower_bound: nil, date_upper_bound: nil, description: nil, direction: nil, internal_account_id: nil, metadata: nil, reconciliation_filters: nil, reconciliation_groups: nil, reconciliation_rule_variables: nil, remittance_information: nil, statement_descriptor: nil, status: nil, type: nil, request_options: {})
|
|
131
|
+
# @!method initialize(amount_lower_bound: nil, amount_upper_bound: nil, counterparty_id: nil, currency: nil, date_lower_bound: nil, date_upper_bound: nil, description: nil, direction: nil, external_id: nil, internal_account_id: nil, metadata: nil, reconciliation_filters: nil, reconciliation_groups: nil, reconciliation_rule_variables: nil, remittance_information: nil, statement_descriptor: nil, status: nil, type: nil, request_options: {})
|
|
126
132
|
# Some parameter documentations has been truncated, see
|
|
127
133
|
# {ModernTreasury::Models::ExpectedPaymentUpdateParams} for more details.
|
|
128
134
|
#
|
|
@@ -142,6 +148,8 @@ module ModernTreasury
|
|
|
142
148
|
#
|
|
143
149
|
# @param direction [Symbol, ModernTreasury::Models::ExpectedPaymentUpdateParams::Direction, nil] One of credit or debit. When you are receiving money, use credit. When you are b
|
|
144
150
|
#
|
|
151
|
+
# @param external_id [String, nil] An optional user-defined 180 character unique identifier.
|
|
152
|
+
#
|
|
145
153
|
# @param internal_account_id [String, nil] The ID of the Internal Account for the expected payment.
|
|
146
154
|
#
|
|
147
155
|
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|