modern_treasury 0.31.0 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +54 -0
- data/README.md +1 -1
- data/lib/modern_treasury/client.rb +4 -0
- data/lib/modern_treasury/models/account_collection_flow.rb +2 -0
- data/lib/modern_treasury/models/account_detail.rb +1 -1
- data/lib/modern_treasury/models/account_detail_create_params.rb +1 -1
- data/lib/modern_treasury/models/bulk_request_create_params.rb +52 -11
- data/lib/modern_treasury/models/case_.rb +4 -2
- data/lib/modern_treasury/models/child_legal_entity.rb +8 -5
- data/lib/modern_treasury/models/child_legal_entity_create.rb +4 -0
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +4 -0
- data/lib/modern_treasury/models/counterparty_collect_account_params.rb +0 -1
- data/lib/modern_treasury/models/counterparty_create_params.rb +30 -66
- data/lib/modern_treasury/models/currency.rb +1 -0
- data/lib/modern_treasury/models/embeddable_flow.rb +298 -0
- data/lib/modern_treasury/models/embeddable_flow_create_params.rb +219 -0
- data/lib/modern_treasury/models/embeddable_flow_list_params.rb +49 -0
- data/lib/modern_treasury/models/{hold_retrieve_params.rb → embeddable_flow_retrieve_params.rb} +2 -2
- data/lib/modern_treasury/models/embeddable_flow_update_params.rb +44 -0
- data/lib/modern_treasury/models/expected_payment.rb +3 -4
- data/lib/modern_treasury/models/expected_payment_create_params.rb +2 -3
- data/lib/modern_treasury/models/expected_payment_update_params.rb +2 -3
- data/lib/modern_treasury/models/external_account_create_params.rb +2 -1
- data/lib/modern_treasury/models/external_account_type.rb +2 -5
- data/lib/modern_treasury/models/external_account_update_params.rb +2 -2
- data/lib/modern_treasury/models/identification.rb +128 -0
- data/lib/modern_treasury/models/identification_create_params.rb +130 -0
- data/lib/modern_treasury/models/identification_create_request.rb +130 -0
- data/lib/modern_treasury/models/identification_update_params.rb +128 -0
- data/lib/modern_treasury/models/incoming_payment_detail.rb +15 -4
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +14 -11
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +4 -2
- data/lib/modern_treasury/models/internal_account.rb +190 -9
- data/lib/modern_treasury/models/internal_account_create_params.rb +45 -6
- data/lib/modern_treasury/models/internal_account_update_params.rb +35 -3
- data/lib/modern_treasury/models/internal_accounts/balance_report.rb +12 -4
- data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +12 -4
- data/lib/modern_treasury/models/ledger_account.rb +0 -1
- data/lib/modern_treasury/models/ledger_account_create_request.rb +0 -1
- data/lib/modern_treasury/models/legal_entity.rb +8 -5
- data/lib/modern_treasury/models/legal_entity_address_create_request.rb +18 -18
- data/lib/modern_treasury/models/legal_entity_create_params.rb +25 -1
- data/lib/modern_treasury/models/legal_entity_list_params.rb +1 -0
- data/lib/modern_treasury/models/legal_entity_update_params.rb +25 -1
- data/lib/modern_treasury/models/payment_action_list_params.rb +1 -0
- data/lib/modern_treasury/models/payment_order.rb +18 -2
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +24 -2
- data/lib/modern_treasury/models/payment_order_create_params.rb +32 -3
- data/lib/modern_treasury/models/payment_order_subtype.rb +2 -0
- data/lib/modern_treasury/models/payment_order_update_params.rb +24 -2
- data/lib/modern_treasury/models/payment_reference.rb +7 -1
- data/lib/modern_treasury/models/return_object.rb +7 -1
- data/lib/modern_treasury/models/routing_detail.rb +1 -0
- data/lib/modern_treasury/models/routing_detail_create_params.rb +1 -0
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +1 -0
- data/lib/modern_treasury/models/third_party_verification.rb +2 -0
- data/lib/modern_treasury/models/transaction_list_params.rb +1 -8
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +4 -4
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +1 -0
- data/lib/modern_treasury/models/virtual_account.rb +9 -1
- data/lib/modern_treasury/models/virtual_account_create_params.rb +12 -2
- data/lib/modern_treasury/models/virtual_account_update_params.rb +14 -1
- data/lib/modern_treasury/models.rb +10 -10
- data/lib/modern_treasury/resources/account_collection_flows.rb +2 -0
- data/lib/modern_treasury/resources/counterparties.rb +1 -5
- data/lib/modern_treasury/resources/embeddable_flows.rb +111 -0
- data/lib/modern_treasury/resources/expected_payments.rb +2 -2
- data/lib/modern_treasury/resources/external_accounts.rb +1 -1
- data/lib/modern_treasury/resources/holds.rb +0 -113
- data/lib/modern_treasury/resources/incoming_payment_details.rb +4 -4
- data/lib/modern_treasury/resources/internal_accounts.rb +13 -23
- data/lib/modern_treasury/resources/legal_entities.rb +6 -2
- data/lib/modern_treasury/resources/payment_flows.rb +2 -0
- data/lib/modern_treasury/resources/payment_orders.rb +15 -3
- data/lib/modern_treasury/resources/transactions.rb +1 -3
- data/lib/modern_treasury/resources/virtual_accounts.rb +9 -2
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +6 -9
- data/rbi/modern_treasury/client.rbi +3 -0
- data/rbi/modern_treasury/models/account_collection_flow.rbi +10 -0
- data/rbi/modern_treasury/models/account_detail.rbi +5 -5
- data/rbi/modern_treasury/models/account_detail_create_params.rbi +5 -5
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +94 -21
- data/rbi/modern_treasury/models/case_.rbi +20 -10
- data/rbi/modern_treasury/models/child_legal_entity.rbi +18 -6
- data/rbi/modern_treasury/models/child_legal_entity_create.rbi +20 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +20 -0
- data/rbi/modern_treasury/models/counterparty_collect_account_params.rbi +0 -5
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +87 -170
- data/rbi/modern_treasury/models/currency.rbi +1 -0
- data/rbi/modern_treasury/models/embeddable_flow.rbi +512 -0
- data/rbi/modern_treasury/models/embeddable_flow_create_params.rbi +531 -0
- data/rbi/modern_treasury/models/embeddable_flow_list_params.rbi +119 -0
- data/rbi/modern_treasury/models/{hold_retrieve_params.rbi → embeddable_flow_retrieve_params.rbi} +2 -2
- data/rbi/modern_treasury/models/{hold_update_params.rbi → embeddable_flow_update_params.rbi} +21 -21
- data/rbi/modern_treasury/models/expected_payment.rbi +3 -3
- data/rbi/modern_treasury/models/expected_payment_create_params.rbi +11 -3
- data/rbi/modern_treasury/models/expected_payment_update_params.rbi +11 -3
- data/rbi/modern_treasury/models/external_account_create_params.rbi +10 -5
- data/rbi/modern_treasury/models/external_account_type.rbi +6 -15
- data/rbi/modern_treasury/models/external_account_update_params.rbi +7 -3
- data/rbi/modern_treasury/models/identification.rbi +265 -0
- data/rbi/modern_treasury/models/identification_create_params.rbi +650 -0
- data/rbi/modern_treasury/models/identification_create_request.rbi +650 -0
- data/rbi/modern_treasury/models/identification_update_params.rbi +640 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +31 -8
- data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +24 -28
- data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +13 -3
- data/rbi/modern_treasury/models/internal_account.rbi +313 -27
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +91 -25
- data/rbi/modern_treasury/models/internal_account_update_params.rbi +79 -3
- data/rbi/modern_treasury/models/internal_accounts/balance_report.rbi +32 -6
- data/rbi/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +32 -6
- data/rbi/modern_treasury/models/ledger_account.rbi +0 -5
- data/rbi/modern_treasury/models/ledger_account_create_request.rbi +0 -5
- data/rbi/modern_treasury/models/legal_entity.rbi +17 -6
- data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +21 -21
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +69 -0
- data/rbi/modern_treasury/models/legal_entity_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +62 -0
- data/rbi/modern_treasury/models/payment_action_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/payment_order.rbi +47 -5
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +36 -5
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +42 -5
- data/rbi/modern_treasury/models/payment_order_subtype.rbi +7 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +36 -5
- data/rbi/modern_treasury/models/payment_reference.rbi +35 -5
- data/rbi/modern_treasury/models/return_object.rbi +35 -5
- data/rbi/modern_treasury/models/routing_detail.rbi +5 -0
- data/rbi/modern_treasury/models/routing_detail_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +5 -0
- data/rbi/modern_treasury/models/third_party_verification.rbi +10 -0
- data/rbi/modern_treasury/models/transaction_list_params.rbi +0 -9
- data/rbi/modern_treasury/models/transactions/transaction_line_item.rbi +5 -5
- data/rbi/modern_treasury/models/validation_validate_routing_number_params.rbi +5 -0
- data/rbi/modern_treasury/models/virtual_account.rbi +13 -0
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +23 -5
- data/rbi/modern_treasury/models/virtual_account_update_params.rbi +19 -0
- data/rbi/modern_treasury/models.rbi +13 -11
- data/rbi/modern_treasury/resources/counterparties.rbi +0 -8
- data/rbi/modern_treasury/resources/embeddable_flows.rbi +88 -0
- data/rbi/modern_treasury/resources/expected_payments.rbi +2 -2
- data/rbi/modern_treasury/resources/external_accounts.rbi +1 -1
- data/rbi/modern_treasury/resources/holds.rbi +0 -94
- data/rbi/modern_treasury/resources/incoming_payment_details.rbi +10 -7
- data/rbi/modern_treasury/resources/internal_accounts.rbi +33 -15
- data/rbi/modern_treasury/resources/legal_entities.rbi +9 -0
- data/rbi/modern_treasury/resources/payment_orders.rbi +33 -0
- data/rbi/modern_treasury/resources/transactions.rbi +0 -2
- data/rbi/modern_treasury/resources/virtual_accounts.rbi +9 -0
- data/sig/modern_treasury/client.rbs +2 -0
- data/sig/modern_treasury/models/account_collection_flow.rbs +3 -1
- data/sig/modern_treasury/models/account_detail.rbs +2 -2
- data/sig/modern_treasury/models/account_detail_create_params.rbs +2 -2
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +44 -14
- data/sig/modern_treasury/models/case_.rbs +10 -6
- data/sig/modern_treasury/models/child_legal_entity.rbs +6 -1
- data/sig/modern_treasury/models/child_legal_entity_create.rbs +9 -1
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +9 -1
- data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +0 -2
- data/sig/modern_treasury/models/counterparty_create_params.rbs +32 -64
- data/sig/modern_treasury/models/currency.rbs +2 -0
- data/sig/modern_treasury/models/embeddable_flow.rbs +270 -0
- data/sig/modern_treasury/models/embeddable_flow_create_params.rbs +219 -0
- data/sig/modern_treasury/models/embeddable_flow_list_params.rbs +61 -0
- data/sig/modern_treasury/models/{hold_retrieve_params.rbs → embeddable_flow_retrieve_params.rbs} +2 -2
- data/sig/modern_treasury/models/embeddable_flow_update_params.rbs +41 -0
- data/sig/modern_treasury/models/expected_payment.rbs +4 -4
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +8 -4
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +8 -4
- data/sig/modern_treasury/models/external_account_create_params.rbs +4 -2
- data/sig/modern_treasury/models/external_account_type.rbs +5 -11
- data/sig/modern_treasury/models/external_account_update_params.rbs +4 -8
- data/sig/modern_treasury/models/identification.rbs +257 -1
- data/sig/modern_treasury/models/identification_create_params.rbs +262 -2
- data/sig/modern_treasury/models/identification_create_request.rbs +262 -2
- data/sig/modern_treasury/models/identification_update_params.rbs +257 -1
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +12 -3
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +5 -9
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +3 -1
- data/sig/modern_treasury/models/internal_account.rbs +144 -14
- data/sig/modern_treasury/models/internal_account_create_params.rbs +29 -11
- data/sig/modern_treasury/models/internal_account_update_params.rbs +24 -7
- data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +8 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +8 -0
- data/sig/modern_treasury/models/ledger_account.rbs +1 -2
- data/sig/modern_treasury/models/ledger_account_create_request.rbs +1 -2
- data/sig/modern_treasury/models/legal_entity.rbs +6 -1
- data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +13 -13
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +28 -1
- data/sig/modern_treasury/models/legal_entity_list_params.rbs +2 -1
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +23 -0
- data/sig/modern_treasury/models/payment_action_list_params.rbs +2 -1
- data/sig/modern_treasury/models/payment_order.rbs +19 -2
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +14 -2
- data/sig/modern_treasury/models/payment_order_create_params.rbs +19 -2
- data/sig/modern_treasury/models/payment_order_subtype.rbs +4 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +14 -2
- data/sig/modern_treasury/models/payment_reference.rbs +14 -2
- data/sig/modern_treasury/models/return_object.rbs +14 -2
- data/sig/modern_treasury/models/routing_detail.rbs +2 -0
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +2 -0
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +2 -0
- data/sig/modern_treasury/models/third_party_verification.rbs +11 -1
- data/sig/modern_treasury/models/transaction_list_params.rbs +0 -7
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +4 -4
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account.rbs +5 -0
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +13 -2
- data/sig/modern_treasury/models/virtual_account_update_params.rbs +6 -1
- data/sig/modern_treasury/models.rbs +10 -10
- data/sig/modern_treasury/resources/counterparties.rbs +0 -2
- data/sig/modern_treasury/resources/embeddable_flows.rbs +32 -0
- data/sig/modern_treasury/resources/expected_payments.rbs +2 -2
- data/sig/modern_treasury/resources/external_accounts.rbs +1 -1
- data/sig/modern_treasury/resources/holds.rbs +0 -31
- data/sig/modern_treasury/resources/incoming_payment_details.rbs +1 -1
- data/sig/modern_treasury/resources/internal_accounts.rbs +6 -6
- data/sig/modern_treasury/resources/legal_entities.rbs +2 -0
- data/sig/modern_treasury/resources/payment_orders.rbs +6 -0
- data/sig/modern_treasury/resources/transactions.rbs +0 -1
- data/sig/modern_treasury/resources/virtual_accounts.rbs +2 -0
- metadata +20 -29
- data/lib/modern_treasury/models/hold_create_params.rb +0 -74
- data/lib/modern_treasury/models/hold_create_response.rb +0 -143
- data/lib/modern_treasury/models/hold_list_params.rb +0 -86
- data/lib/modern_treasury/models/hold_list_response.rb +0 -143
- data/lib/modern_treasury/models/hold_retrieve_response.rb +0 -143
- data/lib/modern_treasury/models/hold_update_params.rb +0 -47
- data/lib/modern_treasury/models/hold_update_response.rb +0 -143
- data/lib/modern_treasury/models/internal_account_request_closure_params.rb +0 -20
- data/rbi/modern_treasury/models/hold_create_params.rbi +0 -125
- data/rbi/modern_treasury/models/hold_create_response.rbi +0 -232
- data/rbi/modern_treasury/models/hold_list_params.rbi +0 -145
- data/rbi/modern_treasury/models/hold_list_response.rbi +0 -225
- data/rbi/modern_treasury/models/hold_retrieve_response.rbi +0 -234
- data/rbi/modern_treasury/models/hold_update_response.rbi +0 -232
- data/rbi/modern_treasury/models/internal_account_request_closure_params.rbi +0 -38
- data/sig/modern_treasury/models/hold_create_params.rbs +0 -66
- data/sig/modern_treasury/models/hold_create_response.rbs +0 -108
- data/sig/modern_treasury/models/hold_list_params.rbs +0 -76
- data/sig/modern_treasury/models/hold_list_response.rbs +0 -108
- data/sig/modern_treasury/models/hold_retrieve_response.rbs +0 -108
- data/sig/modern_treasury/models/hold_update_params.rbs +0 -46
- data/sig/modern_treasury/models/hold_update_response.rbs +0 -108
- data/sig/modern_treasury/models/internal_account_request_closure_params.rbs +0 -23
|
@@ -21,6 +21,7 @@ module ModernTreasury
|
|
|
21
21
|
WEB = :WEB
|
|
22
22
|
ARBITRUM = :arbitrum
|
|
23
23
|
AU_BECS = :au_becs
|
|
24
|
+
AVALANCHE = :avalanche
|
|
24
25
|
BACS = :bacs
|
|
25
26
|
BASE = :base
|
|
26
27
|
CHATS = :chats
|
|
@@ -36,6 +37,7 @@ module ModernTreasury
|
|
|
36
37
|
PL_ELIXIR = :pl_elixir
|
|
37
38
|
POLYGON = :polygon
|
|
38
39
|
PRINT = :print
|
|
40
|
+
REMOTE_DEPOSIT = :remote_deposit
|
|
39
41
|
SE_BANKGIROT = :se_bankgirot
|
|
40
42
|
SEPA = :sepa
|
|
41
43
|
SG_GIRO = :sg_giro
|
|
@@ -86,6 +86,15 @@ module ModernTreasury
|
|
|
86
86
|
# @return [Date, nil]
|
|
87
87
|
optional :effective_date, Date
|
|
88
88
|
|
|
89
|
+
# @!attribute end_to_end_id
|
|
90
|
+
# A unique identifier passed through to the receiving bank. Only supported for
|
|
91
|
+
# `ach` (maximum 15 characters) and `wire` (maximum 35 characters). If not
|
|
92
|
+
# provided, Modern Treasury generates one. Some banks may truncate this value or
|
|
93
|
+
# use their own identifier instead.
|
|
94
|
+
#
|
|
95
|
+
# @return [String, nil]
|
|
96
|
+
optional :end_to_end_id, String, nil?: true
|
|
97
|
+
|
|
89
98
|
# @!attribute expires_at
|
|
90
99
|
# RFP payments require an expires_at. This value must be past the effective_date.
|
|
91
100
|
#
|
|
@@ -168,6 +177,14 @@ module ModernTreasury
|
|
|
168
177
|
# @return [String, nil]
|
|
169
178
|
optional :originating_party_name, String, nil?: true
|
|
170
179
|
|
|
180
|
+
# @!attribute originating_secondary_party_name
|
|
181
|
+
# Secondary name for the legal entity making the payment. Can be used for e.g.
|
|
182
|
+
# check signatures where the originating party wishes to retain their company's
|
|
183
|
+
# display name but use an employee's name for the signature.
|
|
184
|
+
#
|
|
185
|
+
# @return [String, nil]
|
|
186
|
+
optional :originating_secondary_party_name, String, nil?: true
|
|
187
|
+
|
|
171
188
|
# @!attribute priority
|
|
172
189
|
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
|
173
190
|
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
|
@@ -299,7 +316,7 @@ module ModernTreasury
|
|
|
299
316
|
# @return [String, nil]
|
|
300
317
|
optional :ultimate_receiving_party_name, String, nil?: true
|
|
301
318
|
|
|
302
|
-
# @!method initialize(id:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, amount: nil, charge_bearer: nil, counterparty_id: nil, currency: nil, description: nil, direction: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_account_id: nil, originating_party_address: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, status: nil, subtype: nil, type: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
|
|
319
|
+
# @!method initialize(id:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, amount: nil, charge_bearer: nil, counterparty_id: nil, currency: nil, description: nil, direction: nil, effective_date: nil, end_to_end_id: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_account_id: nil, originating_party_address: nil, originating_party_name: nil, originating_secondary_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, status: nil, subtype: nil, type: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
|
|
303
320
|
# Some parameter documentations has been truncated, see
|
|
304
321
|
# {ModernTreasury::Models::PaymentOrderUpdateParams} for more details.
|
|
305
322
|
#
|
|
@@ -325,6 +342,8 @@ module ModernTreasury
|
|
|
325
342
|
#
|
|
326
343
|
# @param effective_date [Date] Date transactions are to be posted to the participants' account. Defaults to the
|
|
327
344
|
#
|
|
345
|
+
# @param end_to_end_id [String, nil] A unique identifier passed through to the receiving bank. Only supported for `ac
|
|
346
|
+
#
|
|
328
347
|
# @param expires_at [Time, nil] RFP payments require an expires_at. This value must be past the effective_date.
|
|
329
348
|
#
|
|
330
349
|
# @param external_id [String, nil] An optional user-defined 180 character unique identifier.
|
|
@@ -347,6 +366,8 @@ module ModernTreasury
|
|
|
347
366
|
#
|
|
348
367
|
# @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
|
|
349
368
|
#
|
|
369
|
+
# @param originating_secondary_party_name [String, nil] Secondary name for the legal entity making the payment. Can be used for e.g. ch
|
|
370
|
+
#
|
|
350
371
|
# @param priority [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
|
|
351
372
|
#
|
|
352
373
|
# @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
|
|
@@ -720,6 +741,7 @@ module ModernTreasury
|
|
|
720
741
|
|
|
721
742
|
ARBITRUM_ADDRESS = :arbitrum_address
|
|
722
743
|
AU_NUMBER = :au_number
|
|
744
|
+
AVALANCHE_ADDRESS = :avalanche_address
|
|
723
745
|
BASE_ADDRESS = :base_address
|
|
724
746
|
CARD_TOKEN = :card_token
|
|
725
747
|
CLABE = :clabe
|
|
@@ -729,7 +751,6 @@ module ModernTreasury
|
|
|
729
751
|
ID_NUMBER = :id_number
|
|
730
752
|
NZ_NUMBER = :nz_number
|
|
731
753
|
OTHER = :other
|
|
732
|
-
PAN = :pan
|
|
733
754
|
POLYGON_ADDRESS = :polygon_address
|
|
734
755
|
SG_NUMBER = :sg_number
|
|
735
756
|
SOLANA_ADDRESS = :solana_address
|
|
@@ -798,6 +819,7 @@ module ModernTreasury
|
|
|
798
819
|
SE_BANKGIRO_CLEARING_CODE = :se_bankgiro_clearing_code
|
|
799
820
|
SG_INTERBANK_CLEARING_CODE = :sg_interbank_clearing_code
|
|
800
821
|
SWIFT = :swift
|
|
822
|
+
VASP = :vasp
|
|
801
823
|
ZA_NATIONAL_CLEARING_CODE = :za_national_clearing_code
|
|
802
824
|
|
|
803
825
|
# @!method self.values
|
|
@@ -102,9 +102,11 @@ module ModernTreasury
|
|
|
102
102
|
CITIBANK_REFERENCE_NUMBER = :citibank_reference_number
|
|
103
103
|
CITIBANK_WORLDLINK_CLEARING_SYSTEM_REFERENCE_NUMBER =
|
|
104
104
|
:citibank_worldlink_clearing_system_reference_number
|
|
105
|
+
CITIBANK_WORLDLINK_FNDREF = :citibank_worldlink_fndref
|
|
105
106
|
COLUMN_FX_QUOTE_ID = :column_fx_quote_id
|
|
106
107
|
COLUMN_REVERSAL_PAIR_TRANSFER_ID = :column_reversal_pair_transfer_id
|
|
107
108
|
COLUMN_TRANSFER_ID = :column_transfer_id
|
|
109
|
+
CROSS_RIVER_CARD_NETWORK = :cross_river_card_network
|
|
108
110
|
CROSS_RIVER_CARD_TRACE_NUMBER = :cross_river_card_trace_number
|
|
109
111
|
CROSS_RIVER_CORE_TRANSACTION_ID = :cross_river_core_transaction_id
|
|
110
112
|
CROSS_RIVER_FED_BATCH_ID = :cross_river_fed_batch_id
|
|
@@ -115,6 +117,7 @@ module ModernTreasury
|
|
|
115
117
|
CURRENCYCLOUD_CONVERSION_ID = :currencycloud_conversion_id
|
|
116
118
|
CURRENCYCLOUD_PAYMENT_ID = :currencycloud_payment_id
|
|
117
119
|
EFT_TRACE_NUMBER = :eft_trace_number
|
|
120
|
+
END_TO_END_IDENTIFICATION = :end_to_end_identification
|
|
118
121
|
EVOLVE_CORE_BATCH = :evolve_core_batch
|
|
119
122
|
EVOLVE_CORE_FILE_KEY = :evolve_core_file_key
|
|
120
123
|
EVOLVE_CORE_SEQ = :evolve_core_seq
|
|
@@ -128,6 +131,7 @@ module ModernTreasury
|
|
|
128
131
|
GOLDMAN_SACHS_PAYMENT_REQUEST_ID = :goldman_sachs_payment_request_id
|
|
129
132
|
GOLDMAN_SACHS_REQUEST_ID = :goldman_sachs_request_id
|
|
130
133
|
GOLDMAN_SACHS_UNIQUE_PAYMENT_ID = :goldman_sachs_unique_payment_id
|
|
134
|
+
INSTRUCTION_IDENTIFICATION = :instruction_identification
|
|
131
135
|
JPMC_CCN = :jpmc_ccn
|
|
132
136
|
JPMC_CLEARING_SYSTEM_REFERENCE = :jpmc_clearing_system_reference
|
|
133
137
|
JPMC_CUSTOMER_REFERENCE_ID = :jpmc_customer_reference_id
|
|
@@ -154,14 +158,17 @@ module ModernTreasury
|
|
|
154
158
|
PNC_REQUEST_FOR_PAYMENT_ID = :pnc_request_for_payment_id
|
|
155
159
|
PNC_TRANSACTION_REFERENCE_NUMBER = :pnc_transaction_reference_number
|
|
156
160
|
RBC_WIRE_REFERENCE_ID = :rbc_wire_reference_id
|
|
161
|
+
RETURN_IDENTIFICATION = :return_identification
|
|
157
162
|
RTP_INSTRUCTION_ID = :rtp_instruction_id
|
|
158
163
|
SILVERGATE_PAYMENT_ID = :silvergate_payment_id
|
|
159
164
|
SVB_END_TO_END_ID = :svb_end_to_end_id
|
|
160
165
|
SVB_PAYMENT_ID = :svb_payment_id
|
|
161
166
|
SWIFT_MIR = :swift_mir
|
|
162
167
|
SWIFT_UETR = :swift_uetr
|
|
168
|
+
TRANSACTION_IDENTIFICATION = :transaction_identification
|
|
163
169
|
TURNKEY_ACTIVITY_ID = :turnkey_activity_id
|
|
164
170
|
TURNKEY_SEND_TRANSACTION_STATUS_ID = :turnkey_send_transaction_status_id
|
|
171
|
+
UETR = :uetr
|
|
165
172
|
UMB_PRODUCT_PARTNER_ACCOUNT_NUMBER = :umb_product_partner_account_number
|
|
166
173
|
USBANK_PAYMENT_APPLICATION_REFERENCE_ID = :usbank_payment_application_reference_id
|
|
167
174
|
USBANK_PAYMENT_ID = :usbank_payment_id
|
|
@@ -174,7 +181,6 @@ module ModernTreasury
|
|
|
174
181
|
WESTERN_ALLIANCE_PAYMENT_ID = :western_alliance_payment_id
|
|
175
182
|
WESTERN_ALLIANCE_TRANSACTION_ID = :western_alliance_transaction_id
|
|
176
183
|
WESTERN_ALLIANCE_WIRE_CONFIRMATION_NUMBER = :western_alliance_wire_confirmation_number
|
|
177
|
-
WISE_TRANSFER_ID = :wise_transfer_id
|
|
178
184
|
|
|
179
185
|
# @!method self.values
|
|
180
186
|
# @return [Array<Symbol>]
|
|
@@ -495,9 +495,11 @@ module ModernTreasury
|
|
|
495
495
|
CITIBANK_REFERENCE_NUMBER = :citibank_reference_number
|
|
496
496
|
CITIBANK_WORLDLINK_CLEARING_SYSTEM_REFERENCE_NUMBER =
|
|
497
497
|
:citibank_worldlink_clearing_system_reference_number
|
|
498
|
+
CITIBANK_WORLDLINK_FNDREF = :citibank_worldlink_fndref
|
|
498
499
|
COLUMN_FX_QUOTE_ID = :column_fx_quote_id
|
|
499
500
|
COLUMN_REVERSAL_PAIR_TRANSFER_ID = :column_reversal_pair_transfer_id
|
|
500
501
|
COLUMN_TRANSFER_ID = :column_transfer_id
|
|
502
|
+
CROSS_RIVER_CARD_NETWORK = :cross_river_card_network
|
|
501
503
|
CROSS_RIVER_CARD_TRACE_NUMBER = :cross_river_card_trace_number
|
|
502
504
|
CROSS_RIVER_CORE_TRANSACTION_ID = :cross_river_core_transaction_id
|
|
503
505
|
CROSS_RIVER_FED_BATCH_ID = :cross_river_fed_batch_id
|
|
@@ -508,6 +510,7 @@ module ModernTreasury
|
|
|
508
510
|
CURRENCYCLOUD_CONVERSION_ID = :currencycloud_conversion_id
|
|
509
511
|
CURRENCYCLOUD_PAYMENT_ID = :currencycloud_payment_id
|
|
510
512
|
EFT_TRACE_NUMBER = :eft_trace_number
|
|
513
|
+
END_TO_END_IDENTIFICATION = :end_to_end_identification
|
|
511
514
|
EVOLVE_CORE_BATCH = :evolve_core_batch
|
|
512
515
|
EVOLVE_CORE_FILE_KEY = :evolve_core_file_key
|
|
513
516
|
EVOLVE_CORE_SEQ = :evolve_core_seq
|
|
@@ -521,6 +524,7 @@ module ModernTreasury
|
|
|
521
524
|
GOLDMAN_SACHS_PAYMENT_REQUEST_ID = :goldman_sachs_payment_request_id
|
|
522
525
|
GOLDMAN_SACHS_REQUEST_ID = :goldman_sachs_request_id
|
|
523
526
|
GOLDMAN_SACHS_UNIQUE_PAYMENT_ID = :goldman_sachs_unique_payment_id
|
|
527
|
+
INSTRUCTION_IDENTIFICATION = :instruction_identification
|
|
524
528
|
JPMC_CCN = :jpmc_ccn
|
|
525
529
|
JPMC_CLEARING_SYSTEM_REFERENCE = :jpmc_clearing_system_reference
|
|
526
530
|
JPMC_CUSTOMER_REFERENCE_ID = :jpmc_customer_reference_id
|
|
@@ -547,14 +551,17 @@ module ModernTreasury
|
|
|
547
551
|
PNC_REQUEST_FOR_PAYMENT_ID = :pnc_request_for_payment_id
|
|
548
552
|
PNC_TRANSACTION_REFERENCE_NUMBER = :pnc_transaction_reference_number
|
|
549
553
|
RBC_WIRE_REFERENCE_ID = :rbc_wire_reference_id
|
|
554
|
+
RETURN_IDENTIFICATION = :return_identification
|
|
550
555
|
RTP_INSTRUCTION_ID = :rtp_instruction_id
|
|
551
556
|
SILVERGATE_PAYMENT_ID = :silvergate_payment_id
|
|
552
557
|
SVB_END_TO_END_ID = :svb_end_to_end_id
|
|
553
558
|
SVB_PAYMENT_ID = :svb_payment_id
|
|
554
559
|
SWIFT_MIR = :swift_mir
|
|
555
560
|
SWIFT_UETR = :swift_uetr
|
|
561
|
+
TRANSACTION_IDENTIFICATION = :transaction_identification
|
|
556
562
|
TURNKEY_ACTIVITY_ID = :turnkey_activity_id
|
|
557
563
|
TURNKEY_SEND_TRANSACTION_STATUS_ID = :turnkey_send_transaction_status_id
|
|
564
|
+
UETR = :uetr
|
|
558
565
|
UMB_PRODUCT_PARTNER_ACCOUNT_NUMBER = :umb_product_partner_account_number
|
|
559
566
|
USBANK_PAYMENT_APPLICATION_REFERENCE_ID = :usbank_payment_application_reference_id
|
|
560
567
|
USBANK_PAYMENT_ID = :usbank_payment_id
|
|
@@ -567,7 +574,6 @@ module ModernTreasury
|
|
|
567
574
|
WESTERN_ALLIANCE_PAYMENT_ID = :western_alliance_payment_id
|
|
568
575
|
WESTERN_ALLIANCE_TRANSACTION_ID = :western_alliance_transaction_id
|
|
569
576
|
WESTERN_ALLIANCE_WIRE_CONFIRMATION_NUMBER = :western_alliance_wire_confirmation_number
|
|
570
|
-
WISE_TRANSFER_ID = :wise_transfer_id
|
|
571
577
|
|
|
572
578
|
# @!method self.values
|
|
573
579
|
# @return [Array<Symbol>]
|
|
@@ -158,6 +158,7 @@ module ModernTreasury
|
|
|
158
158
|
SE_BANKGIRO_CLEARING_CODE = :se_bankgiro_clearing_code
|
|
159
159
|
SG_INTERBANK_CLEARING_CODE = :sg_interbank_clearing_code
|
|
160
160
|
SWIFT = :swift
|
|
161
|
+
VASP = :vasp
|
|
161
162
|
ZA_NATIONAL_CLEARING_CODE = :za_national_clearing_code
|
|
162
163
|
|
|
163
164
|
# @!method self.values
|
|
@@ -86,6 +86,7 @@ module ModernTreasury
|
|
|
86
86
|
SOCURE = :socure
|
|
87
87
|
SUMSUB = :sumsub
|
|
88
88
|
VERIFF = :veriff
|
|
89
|
+
SMARTY = :smarty
|
|
89
90
|
|
|
90
91
|
# @!method self.values
|
|
91
92
|
# @return [Array<Symbol>]
|
|
@@ -101,6 +102,7 @@ module ModernTreasury
|
|
|
101
102
|
DATE_OF_BIRTH = :date_of_birth
|
|
102
103
|
ADDRESS = :address
|
|
103
104
|
GOVERNMENT_ID_NUMBER = :government_id_number
|
|
105
|
+
TAX_ID = :tax_id
|
|
104
106
|
ADVERSE_MEDIA = :adverse_media
|
|
105
107
|
|
|
106
108
|
# @!method self.values
|
|
@@ -73,11 +73,6 @@ module ModernTreasury
|
|
|
73
73
|
# @return [Boolean, nil]
|
|
74
74
|
optional :posted, ModernTreasury::Internal::Type::Boolean
|
|
75
75
|
|
|
76
|
-
# @!attribute transactable_type
|
|
77
|
-
#
|
|
78
|
-
# @return [String, nil]
|
|
79
|
-
optional :transactable_type, String
|
|
80
|
-
|
|
81
76
|
# @!attribute vendor_id
|
|
82
77
|
# Filters for transactions including the queried vendor id (an identifier given to
|
|
83
78
|
# transactions by the bank).
|
|
@@ -90,7 +85,7 @@ module ModernTreasury
|
|
|
90
85
|
# @return [String, nil]
|
|
91
86
|
optional :virtual_account_id, String
|
|
92
87
|
|
|
93
|
-
# @!method initialize(after_cursor: nil, as_of_date_end: nil, as_of_date_start: nil, counterparty_id: nil, description: nil, direction: nil, internal_account_id: nil, metadata: nil, payment_type: nil, per_page: nil, posted: nil,
|
|
88
|
+
# @!method initialize(after_cursor: nil, as_of_date_end: nil, as_of_date_start: nil, counterparty_id: nil, description: nil, direction: nil, internal_account_id: nil, metadata: nil, payment_type: nil, per_page: nil, posted: nil, vendor_id: nil, virtual_account_id: nil, request_options: {})
|
|
94
89
|
# Some parameter documentations has been truncated, see
|
|
95
90
|
# {ModernTreasury::Models::TransactionListParams} for more details.
|
|
96
91
|
#
|
|
@@ -116,8 +111,6 @@ module ModernTreasury
|
|
|
116
111
|
#
|
|
117
112
|
# @param posted [Boolean] Either `true` or `false`.
|
|
118
113
|
#
|
|
119
|
-
# @param transactable_type [String]
|
|
120
|
-
#
|
|
121
114
|
# @param vendor_id [String] Filters for transactions including the queried vendor id (an identifier given to
|
|
122
115
|
#
|
|
123
116
|
# @param virtual_account_id [String]
|
|
@@ -69,10 +69,10 @@ module ModernTreasury
|
|
|
69
69
|
required :reconcilable, ModernTreasury::Internal::Type::Boolean
|
|
70
70
|
|
|
71
71
|
# @!attribute reconciliation_group_id
|
|
72
|
-
# The ID of the reconciliation group this line item belongs to
|
|
72
|
+
# The ID of the reconciliation group this line item belongs to.
|
|
73
73
|
#
|
|
74
|
-
# @return [String
|
|
75
|
-
required :reconciliation_group_id, String
|
|
74
|
+
# @return [String]
|
|
75
|
+
required :reconciliation_group_id, String
|
|
76
76
|
|
|
77
77
|
# @!attribute transactable_id
|
|
78
78
|
# If a matching object exists in Modern Treasury, the ID will be populated here,
|
|
@@ -132,7 +132,7 @@ module ModernTreasury
|
|
|
132
132
|
#
|
|
133
133
|
# @param reconcilable [Boolean] Describes whether this line item should be counted towards the corresponding tra
|
|
134
134
|
#
|
|
135
|
-
# @param reconciliation_group_id [String
|
|
135
|
+
# @param reconciliation_group_id [String] The ID of the reconciliation group this line item belongs to.
|
|
136
136
|
#
|
|
137
137
|
# @param transactable_id [String, nil] If a matching object exists in Modern Treasury, the ID will be populated here, o
|
|
138
138
|
#
|
|
@@ -97,6 +97,12 @@ module ModernTreasury
|
|
|
97
97
|
# @return [String]
|
|
98
98
|
required :object, String
|
|
99
99
|
|
|
100
|
+
# @!attribute party_address
|
|
101
|
+
# The address of the owner of the virtual account, or null.
|
|
102
|
+
#
|
|
103
|
+
# @return [ModernTreasury::Models::Address, nil]
|
|
104
|
+
required :party_address, -> { ModernTreasury::Address }, nil?: true
|
|
105
|
+
|
|
100
106
|
# @!attribute routing_details
|
|
101
107
|
# An array of routing detail objects. These will be the routing details of the
|
|
102
108
|
# internal account.
|
|
@@ -109,7 +115,7 @@ module ModernTreasury
|
|
|
109
115
|
# @return [Time]
|
|
110
116
|
required :updated_at, Time
|
|
111
117
|
|
|
112
|
-
# @!method initialize(id:, account_details:, counterparty_id:, created_at:, credit_ledger_account_id:, debit_ledger_account_id:, description:, discarded_at:, external_id:, internal_account_id:, ledger_account_id:, live_mode:, metadata:, name:, object:, routing_details:, updated_at:)
|
|
118
|
+
# @!method initialize(id:, account_details:, counterparty_id:, created_at:, credit_ledger_account_id:, debit_ledger_account_id:, description:, discarded_at:, external_id:, internal_account_id:, ledger_account_id:, live_mode:, metadata:, name:, object:, party_address:, routing_details:, updated_at:)
|
|
113
119
|
# Some parameter documentations has been truncated, see
|
|
114
120
|
# {ModernTreasury::Models::VirtualAccount} for more details.
|
|
115
121
|
#
|
|
@@ -143,6 +149,8 @@ module ModernTreasury
|
|
|
143
149
|
#
|
|
144
150
|
# @param object [String]
|
|
145
151
|
#
|
|
152
|
+
# @param party_address [ModernTreasury::Models::Address, nil] The address of the owner of the virtual account, or null.
|
|
153
|
+
#
|
|
146
154
|
# @param routing_details [Array<ModernTreasury::Models::RoutingDetail>] An array of routing detail objects. These will be the routing details of the int
|
|
147
155
|
#
|
|
148
156
|
# @param updated_at [Time]
|
|
@@ -81,6 +81,13 @@ module ModernTreasury
|
|
|
81
81
|
# @return [Hash{Symbol=>String}, nil]
|
|
82
82
|
optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
|
|
83
83
|
|
|
84
|
+
# @!attribute party_address
|
|
85
|
+
# The address of the owner of the virtual account. When absent, the internal
|
|
86
|
+
# account's party address is used.
|
|
87
|
+
#
|
|
88
|
+
# @return [ModernTreasury::Models::AddressRequest, nil]
|
|
89
|
+
optional :party_address, -> { ModernTreasury::AddressRequest }
|
|
90
|
+
|
|
84
91
|
# @!attribute routing_details
|
|
85
92
|
# An array of routing detail objects.
|
|
86
93
|
#
|
|
@@ -94,7 +101,7 @@ module ModernTreasury
|
|
|
94
101
|
# @return [String, nil]
|
|
95
102
|
optional :virtual_account_setting_id, String
|
|
96
103
|
|
|
97
|
-
# @!method initialize(internal_account_id:, name:, account_details: nil, counterparty_id: nil, credit_ledger_account_id: nil, debit_ledger_account_id: nil, description: nil, external_id: nil, ledger_account: nil, ledger_account_id: nil, metadata: nil, routing_details: nil, virtual_account_setting_id: nil, request_options: {})
|
|
104
|
+
# @!method initialize(internal_account_id:, name:, account_details: nil, counterparty_id: nil, credit_ledger_account_id: nil, debit_ledger_account_id: nil, description: nil, external_id: nil, ledger_account: nil, ledger_account_id: nil, metadata: nil, party_address: nil, routing_details: nil, virtual_account_setting_id: nil, request_options: {})
|
|
98
105
|
# Some parameter documentations has been truncated, see
|
|
99
106
|
# {ModernTreasury::Models::VirtualAccountCreateParams} for more details.
|
|
100
107
|
#
|
|
@@ -120,6 +127,8 @@ module ModernTreasury
|
|
|
120
127
|
#
|
|
121
128
|
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
|
122
129
|
#
|
|
130
|
+
# @param party_address [ModernTreasury::Models::AddressRequest] The address of the owner of the virtual account. When absent, the internal accou
|
|
131
|
+
#
|
|
123
132
|
# @param routing_details [Array<ModernTreasury::Models::VirtualAccountCreateParams::RoutingDetail>] An array of routing detail objects.
|
|
124
133
|
#
|
|
125
134
|
# @param virtual_account_setting_id [String] The ID of the virtual account setting used to allocate this virtual account.
|
|
@@ -161,6 +170,7 @@ module ModernTreasury
|
|
|
161
170
|
|
|
162
171
|
ARBITRUM_ADDRESS = :arbitrum_address
|
|
163
172
|
AU_NUMBER = :au_number
|
|
173
|
+
AVALANCHE_ADDRESS = :avalanche_address
|
|
164
174
|
BASE_ADDRESS = :base_address
|
|
165
175
|
CARD_TOKEN = :card_token
|
|
166
176
|
CLABE = :clabe
|
|
@@ -170,7 +180,6 @@ module ModernTreasury
|
|
|
170
180
|
ID_NUMBER = :id_number
|
|
171
181
|
NZ_NUMBER = :nz_number
|
|
172
182
|
OTHER = :other
|
|
173
|
-
PAN = :pan
|
|
174
183
|
POLYGON_ADDRESS = :polygon_address
|
|
175
184
|
SG_NUMBER = :sg_number
|
|
176
185
|
SOLANA_ADDRESS = :solana_address
|
|
@@ -243,6 +252,7 @@ module ModernTreasury
|
|
|
243
252
|
SE_BANKGIRO_CLEARING_CODE = :se_bankgiro_clearing_code
|
|
244
253
|
SG_INTERBANK_CLEARING_CODE = :sg_interbank_clearing_code
|
|
245
254
|
SWIFT = :swift
|
|
255
|
+
VASP = :vasp
|
|
246
256
|
ZA_NATIONAL_CLEARING_CODE = :za_national_clearing_code
|
|
247
257
|
|
|
248
258
|
# @!method self.values
|
|
@@ -33,7 +33,18 @@ module ModernTreasury
|
|
|
33
33
|
# @return [String, nil]
|
|
34
34
|
optional :name, String, nil?: true
|
|
35
35
|
|
|
36
|
-
# @!
|
|
36
|
+
# @!attribute party_address
|
|
37
|
+
# The address of the owner of the virtual account. Omit to leave it unchanged;
|
|
38
|
+
# pass `null` to clear it, after which the internal account's party address is
|
|
39
|
+
# used.
|
|
40
|
+
#
|
|
41
|
+
# @return [ModernTreasury::Models::AddressRequest, nil]
|
|
42
|
+
optional :party_address, -> { ModernTreasury::AddressRequest }, nil?: true
|
|
43
|
+
|
|
44
|
+
# @!method initialize(id:, counterparty_id: nil, ledger_account_id: nil, metadata: nil, name: nil, party_address: nil, request_options: {})
|
|
45
|
+
# Some parameter documentations has been truncated, see
|
|
46
|
+
# {ModernTreasury::Models::VirtualAccountUpdateParams} for more details.
|
|
47
|
+
#
|
|
37
48
|
# @param id [String]
|
|
38
49
|
#
|
|
39
50
|
# @param counterparty_id [String]
|
|
@@ -44,6 +55,8 @@ module ModernTreasury
|
|
|
44
55
|
#
|
|
45
56
|
# @param name [String, nil]
|
|
46
57
|
#
|
|
58
|
+
# @param party_address [ModernTreasury::Models::AddressRequest, nil] The address of the owner of the virtual account. Omit to leave it unchanged; pas
|
|
59
|
+
#
|
|
47
60
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
|
48
61
|
end
|
|
49
62
|
end
|
|
@@ -142,6 +142,16 @@ module ModernTreasury
|
|
|
142
142
|
|
|
143
143
|
DocumentRetrieveParams = ModernTreasury::Models::DocumentRetrieveParams
|
|
144
144
|
|
|
145
|
+
EmbeddableFlow = ModernTreasury::Models::EmbeddableFlow
|
|
146
|
+
|
|
147
|
+
EmbeddableFlowCreateParams = ModernTreasury::Models::EmbeddableFlowCreateParams
|
|
148
|
+
|
|
149
|
+
EmbeddableFlowListParams = ModernTreasury::Models::EmbeddableFlowListParams
|
|
150
|
+
|
|
151
|
+
EmbeddableFlowRetrieveParams = ModernTreasury::Models::EmbeddableFlowRetrieveParams
|
|
152
|
+
|
|
153
|
+
EmbeddableFlowUpdateParams = ModernTreasury::Models::EmbeddableFlowUpdateParams
|
|
154
|
+
|
|
145
155
|
Event = ModernTreasury::Models::Event
|
|
146
156
|
|
|
147
157
|
EventListParams = ModernTreasury::Models::EventListParams
|
|
@@ -191,14 +201,6 @@ module ModernTreasury
|
|
|
191
201
|
|
|
192
202
|
ForeignExchangeRate = ModernTreasury::Models::ForeignExchangeRate
|
|
193
203
|
|
|
194
|
-
HoldCreateParams = ModernTreasury::Models::HoldCreateParams
|
|
195
|
-
|
|
196
|
-
HoldListParams = ModernTreasury::Models::HoldListParams
|
|
197
|
-
|
|
198
|
-
HoldRetrieveParams = ModernTreasury::Models::HoldRetrieveParams
|
|
199
|
-
|
|
200
|
-
HoldUpdateParams = ModernTreasury::Models::HoldUpdateParams
|
|
201
|
-
|
|
202
204
|
Identification = ModernTreasury::Models::Identification
|
|
203
205
|
|
|
204
206
|
IdentificationCreateParams = ModernTreasury::Models::IdentificationCreateParams
|
|
@@ -225,8 +227,6 @@ module ModernTreasury
|
|
|
225
227
|
|
|
226
228
|
InternalAccountListParams = ModernTreasury::Models::InternalAccountListParams
|
|
227
229
|
|
|
228
|
-
InternalAccountRequestClosureParams = ModernTreasury::Models::InternalAccountRequestClosureParams
|
|
229
|
-
|
|
230
230
|
InternalAccountRetrieveParams = ModernTreasury::Models::InternalAccountRetrieveParams
|
|
231
231
|
|
|
232
232
|
InternalAccounts = ModernTreasury::Models::InternalAccounts
|
|
@@ -8,20 +8,16 @@ module ModernTreasury
|
|
|
8
8
|
#
|
|
9
9
|
# Create a new counterparty.
|
|
10
10
|
#
|
|
11
|
-
# @overload create(name:,
|
|
11
|
+
# @overload create(name:, accounts: nil, email: nil, external_id: nil, legal_entity: nil, legal_entity_id: nil, metadata: nil, send_remittance_advice: nil, taxpayer_identifier: nil, verification_status: nil, request_options: {})
|
|
12
12
|
#
|
|
13
13
|
# @param name [String, nil] A human friendly name for this counterparty.
|
|
14
14
|
#
|
|
15
|
-
# @param accounting [ModernTreasury::Models::CounterpartyCreateParams::Accounting]
|
|
16
|
-
#
|
|
17
15
|
# @param accounts [Array<ModernTreasury::Models::CounterpartyCreateParams::Account>] The accounts for this counterparty.
|
|
18
16
|
#
|
|
19
17
|
# @param email [String, nil] The counterparty's email.
|
|
20
18
|
#
|
|
21
19
|
# @param external_id [String, nil] An optional user-defined 180 character unique identifier.
|
|
22
20
|
#
|
|
23
|
-
# @param ledger_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LedgerType] An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
|
24
|
-
#
|
|
25
21
|
# @param legal_entity [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity]
|
|
26
22
|
#
|
|
27
23
|
# @param legal_entity_id [String, nil] The id of the legal entity.
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ModernTreasury
|
|
4
|
+
module Resources
|
|
5
|
+
class EmbeddableFlows
|
|
6
|
+
# create embeddable_flow
|
|
7
|
+
#
|
|
8
|
+
# @overload create(options:, template:, request_options: {})
|
|
9
|
+
#
|
|
10
|
+
# @param options [ModernTreasury::Models::EmbeddableFlowCreateParams::Options::AccountCollectionFlowCreateRequest, ModernTreasury::Models::EmbeddableFlowCreateParams::Options::PaymentFlowCreateRequest, ModernTreasury::Models::EmbeddableFlowCreateParams::Options::UnionMember2] The parameters for the selected template's flow.
|
|
11
|
+
#
|
|
12
|
+
# @param template [Symbol, ModernTreasury::Models::EmbeddableFlowCreateParams::Template]
|
|
13
|
+
#
|
|
14
|
+
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
15
|
+
#
|
|
16
|
+
# @return [ModernTreasury::Models::EmbeddableFlow]
|
|
17
|
+
#
|
|
18
|
+
# @see ModernTreasury::Models::EmbeddableFlowCreateParams
|
|
19
|
+
def create(params)
|
|
20
|
+
parsed, options = ModernTreasury::EmbeddableFlowCreateParams.dump_request(params)
|
|
21
|
+
@client.request(
|
|
22
|
+
method: :post,
|
|
23
|
+
path: "api/embeddable_flows",
|
|
24
|
+
body: parsed,
|
|
25
|
+
model: ModernTreasury::EmbeddableFlow,
|
|
26
|
+
options: options
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# get embeddable_flow
|
|
31
|
+
#
|
|
32
|
+
# @overload retrieve(id, request_options: {})
|
|
33
|
+
#
|
|
34
|
+
# @param id [String] id
|
|
35
|
+
#
|
|
36
|
+
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
37
|
+
#
|
|
38
|
+
# @return [ModernTreasury::Models::EmbeddableFlow]
|
|
39
|
+
#
|
|
40
|
+
# @see ModernTreasury::Models::EmbeddableFlowRetrieveParams
|
|
41
|
+
def retrieve(id, params = {})
|
|
42
|
+
@client.request(
|
|
43
|
+
method: :get,
|
|
44
|
+
path: ["api/embeddable_flows/%1$s", id],
|
|
45
|
+
model: ModernTreasury::EmbeddableFlow,
|
|
46
|
+
options: params[:request_options]
|
|
47
|
+
)
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Some parameter documentations has been truncated, see
|
|
51
|
+
# {ModernTreasury::Models::EmbeddableFlowUpdateParams} for more details.
|
|
52
|
+
#
|
|
53
|
+
# update embeddable_flow
|
|
54
|
+
#
|
|
55
|
+
# @overload update(id, status:, request_options: {})
|
|
56
|
+
#
|
|
57
|
+
# @param id [String] id
|
|
58
|
+
#
|
|
59
|
+
# @param status [Symbol, ModernTreasury::Models::EmbeddableFlowUpdateParams::Status] The updated status of the flow. Can only be used to mark the flow as `cancelled`
|
|
60
|
+
#
|
|
61
|
+
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
62
|
+
#
|
|
63
|
+
# @return [ModernTreasury::Models::EmbeddableFlow]
|
|
64
|
+
#
|
|
65
|
+
# @see ModernTreasury::Models::EmbeddableFlowUpdateParams
|
|
66
|
+
def update(id, params)
|
|
67
|
+
parsed, options = ModernTreasury::EmbeddableFlowUpdateParams.dump_request(params)
|
|
68
|
+
@client.request(
|
|
69
|
+
method: :patch,
|
|
70
|
+
path: ["api/embeddable_flows/%1$s", id],
|
|
71
|
+
body: parsed,
|
|
72
|
+
model: ModernTreasury::EmbeddableFlow,
|
|
73
|
+
options: options
|
|
74
|
+
)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# list embeddable_flows
|
|
78
|
+
#
|
|
79
|
+
# @overload list(after_cursor: nil, per_page: nil, status: nil, template: nil, request_options: {})
|
|
80
|
+
#
|
|
81
|
+
# @param after_cursor [String, nil]
|
|
82
|
+
# @param per_page [Integer]
|
|
83
|
+
# @param status [String]
|
|
84
|
+
# @param template [Symbol, ModernTreasury::Models::EmbeddableFlowListParams::Template]
|
|
85
|
+
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
86
|
+
#
|
|
87
|
+
# @return [ModernTreasury::Internal::Page<ModernTreasury::Models::EmbeddableFlow>]
|
|
88
|
+
#
|
|
89
|
+
# @see ModernTreasury::Models::EmbeddableFlowListParams
|
|
90
|
+
def list(params = {})
|
|
91
|
+
parsed, options = ModernTreasury::EmbeddableFlowListParams.dump_request(params)
|
|
92
|
+
query = ModernTreasury::Internal::Util.encode_query_params(parsed)
|
|
93
|
+
@client.request(
|
|
94
|
+
method: :get,
|
|
95
|
+
path: "api/embeddable_flows",
|
|
96
|
+
query: query,
|
|
97
|
+
page: ModernTreasury::Internal::Page,
|
|
98
|
+
model: ModernTreasury::EmbeddableFlow,
|
|
99
|
+
options: options
|
|
100
|
+
)
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# @api private
|
|
104
|
+
#
|
|
105
|
+
# @param client [ModernTreasury::Client]
|
|
106
|
+
def initialize(client:)
|
|
107
|
+
@client = client
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
@@ -50,7 +50,7 @@ module ModernTreasury
|
|
|
50
50
|
#
|
|
51
51
|
# @param reconciliation_groups [Object, nil] The reconciliation groups you have for this payment.
|
|
52
52
|
#
|
|
53
|
-
# @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule
|
|
53
|
+
# @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>] An array of reconciliation rule variables for this payment.
|
|
54
54
|
#
|
|
55
55
|
# @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
|
|
56
56
|
#
|
|
@@ -137,7 +137,7 @@ module ModernTreasury
|
|
|
137
137
|
#
|
|
138
138
|
# @param reconciliation_groups [Object, nil] The reconciliation groups you have for this payment.
|
|
139
139
|
#
|
|
140
|
-
# @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule
|
|
140
|
+
# @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>] An array of reconciliation rule variables for this payment.
|
|
141
141
|
#
|
|
142
142
|
# @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
|
|
143
143
|
#
|
|
@@ -91,7 +91,7 @@ module ModernTreasury
|
|
|
91
91
|
#
|
|
92
92
|
# @param name [String, nil] A nickname for the external account. This is only for internal usage and won't a
|
|
93
93
|
#
|
|
94
|
-
# @param party_address [ModernTreasury::Models::AddressRequest]
|
|
94
|
+
# @param party_address [ModernTreasury::Models::AddressRequest, nil]
|
|
95
95
|
#
|
|
96
96
|
# @param party_name [String] If this value isn't provided, it will be inherited from the counterparty's name.
|
|
97
97
|
#
|