modern_treasury 0.30.0 → 0.32.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 +35 -0
- data/README.md +1 -1
- data/lib/modern_treasury/models/account_detail.rb +9 -6
- data/lib/modern_treasury/models/account_detail_create_params.rb +9 -6
- data/lib/modern_treasury/models/bulk_request_create_params.rb +30 -10
- data/lib/modern_treasury/models/child_legal_entity.rb +8 -7
- data/lib/modern_treasury/models/child_legal_entity_create.rb +2 -2
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +2 -2
- data/lib/modern_treasury/models/counterparty_create_params.rb +27 -4
- data/lib/modern_treasury/models/document.rb +7 -9
- data/lib/modern_treasury/models/document_create_params.rb +0 -2
- data/lib/modern_treasury/models/document_list_params.rb +7 -9
- 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/identification.rb +109 -0
- data/lib/modern_treasury/models/identification_create_params.rb +109 -0
- data/lib/modern_treasury/models/identification_create_request.rb +109 -0
- data/lib/modern_treasury/models/identification_update_params.rb +109 -0
- data/lib/modern_treasury/models/incoming_payment_detail.rb +2 -1
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +3 -14
- data/lib/modern_treasury/models/internal_account.rb +10 -1
- data/lib/modern_treasury/models/internal_account_create_params.rb +13 -1
- 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 -7
- data/lib/modern_treasury/models/legal_entity_address_create_request.rb +18 -18
- data/lib/modern_treasury/models/legal_entity_create_params.rb +23 -3
- data/lib/modern_treasury/models/legal_entity_list_params.rb +1 -0
- data/lib/modern_treasury/models/legal_entity_update_params.rb +25 -3
- data/lib/modern_treasury/models/payment_order.rb +12 -2
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +13 -2
- data/lib/modern_treasury/models/payment_order_create_params.rb +13 -4
- data/lib/modern_treasury/models/payment_order_subtype.rb +3 -0
- data/lib/modern_treasury/models/payment_order_update_params.rb +13 -2
- data/lib/modern_treasury/models/payment_reference.rb +1 -1
- data/lib/modern_treasury/models/return_object.rb +1 -1
- data/lib/modern_treasury/models/third_party_verification.rb +1 -0
- data/lib/modern_treasury/models/virtual_account.rb +9 -1
- data/lib/modern_treasury/models/virtual_account_create_params.rb +18 -7
- data/lib/modern_treasury/models/virtual_account_list_params.rb +9 -1
- data/lib/modern_treasury/resources/account_details.rb +1 -1
- data/lib/modern_treasury/resources/documents.rb +1 -1
- data/lib/modern_treasury/resources/expected_payments.rb +2 -2
- data/lib/modern_treasury/resources/incoming_payment_details.rb +1 -1
- data/lib/modern_treasury/resources/internal_accounts.rb +7 -2
- data/lib/modern_treasury/resources/legal_entities.rb +8 -4
- data/lib/modern_treasury/resources/payment_orders.rb +9 -3
- data/lib/modern_treasury/resources/virtual_accounts.rb +6 -2
- data/lib/modern_treasury/version.rb +1 -1
- data/rbi/modern_treasury/models/account_detail.rbi +19 -11
- data/rbi/modern_treasury/models/account_detail_create_params.rbi +19 -11
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +66 -16
- data/rbi/modern_treasury/models/child_legal_entity.rbi +10 -8
- data/rbi/modern_treasury/models/child_legal_entity_create.rbi +2 -2
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +2 -2
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +69 -7
- data/rbi/modern_treasury/models/document.rbi +9 -19
- data/rbi/modern_treasury/models/document_create_params.rbi +0 -10
- data/rbi/modern_treasury/models/document_list_params.rbi +9 -19
- 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/identification.rbi +224 -0
- data/rbi/modern_treasury/models/identification_create_params.rbi +545 -0
- data/rbi/modern_treasury/models/identification_create_request.rbi +545 -0
- data/rbi/modern_treasury/models/identification_update_params.rbi +545 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +10 -5
- data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +4 -50
- data/rbi/modern_treasury/models/internal_account.rbi +10 -0
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +22 -0
- 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 +9 -8
- data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +21 -21
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +51 -2
- data/rbi/modern_treasury/models/legal_entity_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +54 -2
- data/rbi/modern_treasury/models/payment_order.rbi +17 -5
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +22 -5
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +22 -15
- data/rbi/modern_treasury/models/payment_order_subtype.rbi +9 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +22 -5
- data/rbi/modern_treasury/models/payment_reference.rbi +5 -5
- data/rbi/modern_treasury/models/return_object.rbi +5 -5
- data/rbi/modern_treasury/models/third_party_verification.rbi +5 -0
- data/rbi/modern_treasury/models/virtual_account.rbi +8 -0
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +27 -11
- data/rbi/modern_treasury/models/virtual_account_list_params.rbi +11 -0
- data/rbi/modern_treasury/resources/account_details.rbi +3 -2
- data/rbi/modern_treasury/resources/documents.rbi +3 -3
- data/rbi/modern_treasury/resources/expected_payments.rbi +2 -2
- data/rbi/modern_treasury/resources/incoming_payment_details.rbi +1 -2
- data/rbi/modern_treasury/resources/internal_accounts.rbi +7 -1
- data/rbi/modern_treasury/resources/legal_entities.rbi +11 -2
- data/rbi/modern_treasury/resources/payment_orders.rbi +15 -0
- data/rbi/modern_treasury/resources/virtual_accounts.rbi +6 -0
- data/sig/modern_treasury/models/account_detail.rbs +5 -3
- data/sig/modern_treasury/models/account_detail_create_params.rbs +5 -3
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +36 -14
- data/sig/modern_treasury/models/child_legal_entity.rbs +2 -1
- data/sig/modern_treasury/models/counterparty_create_params.rbs +24 -3
- 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 +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 +5 -3
- data/sig/modern_treasury/models/identification.rbs +219 -1
- data/sig/modern_treasury/models/identification_create_params.rbs +219 -1
- data/sig/modern_treasury/models/identification_create_request.rbs +219 -1
- data/sig/modern_treasury/models/identification_update_params.rbs +219 -1
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +5 -3
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +6 -17
- data/sig/modern_treasury/models/internal_account.rbs +5 -0
- data/sig/modern_treasury/models/internal_account_create_params.rbs +13 -1
- 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 +2 -1
- data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +13 -13
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +19 -0
- data/sig/modern_treasury/models/legal_entity_list_params.rbs +2 -1
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +19 -0
- data/sig/modern_treasury/models/payment_order.rbs +7 -2
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +10 -3
- data/sig/modern_treasury/models/payment_order_create_params.rbs +10 -7
- data/sig/modern_treasury/models/payment_order_subtype.rbs +6 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +10 -3
- data/sig/modern_treasury/models/payment_reference.rbs +2 -2
- data/sig/modern_treasury/models/return_object.rbs +2 -2
- data/sig/modern_treasury/models/third_party_verification.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account.rbs +5 -0
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +10 -3
- data/sig/modern_treasury/models/virtual_account_list_params.rbs +7 -0
- data/sig/modern_treasury/resources/expected_payments.rbs +2 -2
- data/sig/modern_treasury/resources/incoming_payment_details.rbs +1 -1
- data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
- data/sig/modern_treasury/resources/legal_entities.rbs +2 -0
- data/sig/modern_treasury/resources/payment_orders.rbs +3 -0
- data/sig/modern_treasury/resources/virtual_accounts.rbs +2 -0
- metadata +2 -2
|
@@ -206,6 +206,14 @@ module ModernTreasury
|
|
|
206
206
|
# @return [String, nil]
|
|
207
207
|
required :originating_party_name, String, nil?: true
|
|
208
208
|
|
|
209
|
+
# @!attribute originating_secondary_party_name
|
|
210
|
+
# Secondary name for the legal entity making the payment. Can be used for e.g.
|
|
211
|
+
# check signatures where the originating party wishes to retain their company's
|
|
212
|
+
# display name but use an employee's name for the signature.
|
|
213
|
+
#
|
|
214
|
+
# @return [String, nil]
|
|
215
|
+
required :originating_secondary_party_name, String, nil?: true
|
|
216
|
+
|
|
209
217
|
# @!attribute priority
|
|
210
218
|
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
|
211
219
|
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
|
@@ -376,7 +384,7 @@ module ModernTreasury
|
|
|
376
384
|
# @return [String, nil]
|
|
377
385
|
required :vendor_failure_reason, String, nil?: true
|
|
378
386
|
|
|
379
|
-
# @!method initialize(id:, accounting:, accounting_category_id:, accounting_ledger_class_id:, amount:, batch_id:, charge_bearer:, counterparty_id:, created_at:, currency:, current_hold:, current_return:, description:, direction:, effective_date:, expires_at:, external_id:, foreign_exchange_contract:, foreign_exchange_indicator:, foreign_exchange_rate:, ledger_transaction_id:, live_mode:, metadata:, nsf_protected:, object:, originating_account_id:, originating_account_type:, originating_party_address:, originating_party_name:, priority:, process_after:, purpose:, receiving_account_id:, receiving_account_type:, reconciliation_status:, reference_numbers:, remittance_information:, send_remittance_advice:, statement_descriptor:, status:, subtype:, transaction_ids:, type:, ultimate_originating_account:, ultimate_originating_account_id:, ultimate_originating_account_type:, ultimate_originating_party_identifier:, ultimate_originating_party_name:, ultimate_receiving_party_identifier:, ultimate_receiving_party_name:, updated_at:, vendor_attributes:, vendor_failure_reason:)
|
|
387
|
+
# @!method initialize(id:, accounting:, accounting_category_id:, accounting_ledger_class_id:, amount:, batch_id:, charge_bearer:, counterparty_id:, created_at:, currency:, current_hold:, current_return:, description:, direction:, effective_date:, expires_at:, external_id:, foreign_exchange_contract:, foreign_exchange_indicator:, foreign_exchange_rate:, ledger_transaction_id:, live_mode:, metadata:, nsf_protected:, object:, originating_account_id:, originating_account_type:, originating_party_address:, originating_party_name:, originating_secondary_party_name:, priority:, process_after:, purpose:, receiving_account_id:, receiving_account_type:, reconciliation_status:, reference_numbers:, remittance_information:, send_remittance_advice:, statement_descriptor:, status:, subtype:, transaction_ids:, type:, ultimate_originating_account:, ultimate_originating_account_id:, ultimate_originating_account_type:, ultimate_originating_party_identifier:, ultimate_originating_party_name:, ultimate_receiving_party_identifier:, ultimate_receiving_party_name:, updated_at:, vendor_attributes:, vendor_failure_reason:)
|
|
380
388
|
# Some parameter documentations has been truncated, see
|
|
381
389
|
# {ModernTreasury::Models::PaymentOrder} for more details.
|
|
382
390
|
#
|
|
@@ -438,6 +446,8 @@ module ModernTreasury
|
|
|
438
446
|
#
|
|
439
447
|
# @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
|
|
440
448
|
#
|
|
449
|
+
# @param originating_secondary_party_name [String, nil] Secondary name for the legal entity making the payment. Can be used for e.g. ch
|
|
450
|
+
#
|
|
441
451
|
# @param priority [Symbol, ModernTreasury::Models::PaymentOrder::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
|
|
442
452
|
#
|
|
443
453
|
# @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
|
|
@@ -901,6 +911,7 @@ module ModernTreasury
|
|
|
901
911
|
COLUMN_FX_QUOTE_ID = :column_fx_quote_id
|
|
902
912
|
COLUMN_REVERSAL_PAIR_TRANSFER_ID = :column_reversal_pair_transfer_id
|
|
903
913
|
COLUMN_TRANSFER_ID = :column_transfer_id
|
|
914
|
+
CROSS_RIVER_CARD_NETWORK = :cross_river_card_network
|
|
904
915
|
CROSS_RIVER_CARD_TRACE_NUMBER = :cross_river_card_trace_number
|
|
905
916
|
CROSS_RIVER_CORE_TRANSACTION_ID = :cross_river_core_transaction_id
|
|
906
917
|
CROSS_RIVER_FED_BATCH_ID = :cross_river_fed_batch_id
|
|
@@ -970,7 +981,6 @@ module ModernTreasury
|
|
|
970
981
|
WESTERN_ALLIANCE_PAYMENT_ID = :western_alliance_payment_id
|
|
971
982
|
WESTERN_ALLIANCE_TRANSACTION_ID = :western_alliance_transaction_id
|
|
972
983
|
WESTERN_ALLIANCE_WIRE_CONFIRMATION_NUMBER = :western_alliance_wire_confirmation_number
|
|
973
|
-
WISE_TRANSFER_ID = :wise_transfer_id
|
|
974
984
|
|
|
975
985
|
# @!method self.values
|
|
976
986
|
# @return [Array<Symbol>]
|
|
@@ -184,6 +184,14 @@ module ModernTreasury
|
|
|
184
184
|
# @return [String, nil]
|
|
185
185
|
optional :originating_party_name, String, nil?: true
|
|
186
186
|
|
|
187
|
+
# @!attribute originating_secondary_party_name
|
|
188
|
+
# Secondary name for the legal entity making the payment. Can be used for e.g.
|
|
189
|
+
# check signatures where the originating party wishes to retain their company's
|
|
190
|
+
# display name but use an employee's name for the signature.
|
|
191
|
+
#
|
|
192
|
+
# @return [String, nil]
|
|
193
|
+
optional :originating_secondary_party_name, String, nil?: true
|
|
194
|
+
|
|
187
195
|
# @!attribute priority
|
|
188
196
|
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
|
189
197
|
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
|
@@ -324,7 +332,7 @@ module ModernTreasury
|
|
|
324
332
|
optional :vendor_attributes,
|
|
325
333
|
ModernTreasury::Internal::Type::HashOf[ModernTreasury::Internal::Type::Unknown]
|
|
326
334
|
|
|
327
|
-
# @!method initialize(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: 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, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_account_id: nil, ultimate_originating_party_address: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, vendor_attributes: nil, request_options: {})
|
|
335
|
+
# @!method initialize(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: 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, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_account_id: nil, ultimate_originating_party_address: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, vendor_attributes: nil, request_options: {})
|
|
328
336
|
# Some parameter documentations has been truncated, see
|
|
329
337
|
# {ModernTreasury::Models::PaymentOrderCreateAsyncParams} for more details.
|
|
330
338
|
#
|
|
@@ -374,6 +382,8 @@ module ModernTreasury
|
|
|
374
382
|
#
|
|
375
383
|
# @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
|
|
376
384
|
#
|
|
385
|
+
# @param originating_secondary_party_name [String, nil] Secondary name for the legal entity making the payment. Can be used for e.g. ch
|
|
386
|
+
#
|
|
377
387
|
# @param priority [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
|
|
378
388
|
#
|
|
379
389
|
# @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
|
|
@@ -751,7 +761,9 @@ module ModernTreasury
|
|
|
751
761
|
module AccountNumberType
|
|
752
762
|
extend ModernTreasury::Internal::Type::Enum
|
|
753
763
|
|
|
764
|
+
ARBITRUM_ADDRESS = :arbitrum_address
|
|
754
765
|
AU_NUMBER = :au_number
|
|
766
|
+
AVALANCHE_ADDRESS = :avalanche_address
|
|
755
767
|
BASE_ADDRESS = :base_address
|
|
756
768
|
CARD_TOKEN = :card_token
|
|
757
769
|
CLABE = :clabe
|
|
@@ -765,7 +777,6 @@ module ModernTreasury
|
|
|
765
777
|
POLYGON_ADDRESS = :polygon_address
|
|
766
778
|
SG_NUMBER = :sg_number
|
|
767
779
|
SOLANA_ADDRESS = :solana_address
|
|
768
|
-
WALLET_ADDRESS = :wallet_address
|
|
769
780
|
|
|
770
781
|
# @!method self.values
|
|
771
782
|
# @return [Array<Symbol>]
|
|
@@ -190,6 +190,14 @@ module ModernTreasury
|
|
|
190
190
|
# @return [String, nil]
|
|
191
191
|
optional :originating_party_name, String, nil?: true
|
|
192
192
|
|
|
193
|
+
# @!attribute originating_secondary_party_name
|
|
194
|
+
# Secondary name for the legal entity making the payment. Can be used for e.g.
|
|
195
|
+
# check signatures where the originating party wishes to retain their company's
|
|
196
|
+
# display name but use an employee's name for the signature.
|
|
197
|
+
#
|
|
198
|
+
# @return [String, nil]
|
|
199
|
+
optional :originating_secondary_party_name, String, nil?: true
|
|
200
|
+
|
|
193
201
|
# @!attribute priority
|
|
194
202
|
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
|
195
203
|
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
|
@@ -330,7 +338,7 @@ module ModernTreasury
|
|
|
330
338
|
optional :vendor_attributes,
|
|
331
339
|
ModernTreasury::Internal::Type::HashOf[ModernTreasury::Internal::Type::Unknown]
|
|
332
340
|
|
|
333
|
-
# @!method initialize(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, documents: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: 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, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_account_id: nil, ultimate_originating_party_address: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, vendor_attributes: nil, request_options: {})
|
|
341
|
+
# @!method initialize(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, documents: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: 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, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_account_id: nil, ultimate_originating_party_address: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, vendor_attributes: nil, request_options: {})
|
|
334
342
|
# Some parameter documentations has been truncated, see
|
|
335
343
|
# {ModernTreasury::Models::PaymentOrderCreateParams} for more details.
|
|
336
344
|
#
|
|
@@ -382,6 +390,8 @@ module ModernTreasury
|
|
|
382
390
|
#
|
|
383
391
|
# @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
|
|
384
392
|
#
|
|
393
|
+
# @param originating_secondary_party_name [String, nil] Secondary name for the legal entity making the payment. Can be used for e.g. ch
|
|
394
|
+
#
|
|
385
395
|
# @param priority [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
|
|
386
396
|
#
|
|
387
397
|
# @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
|
|
@@ -518,12 +528,10 @@ module ModernTreasury
|
|
|
518
528
|
CONNECTION = :connection
|
|
519
529
|
COUNTERPARTY = :counterparty
|
|
520
530
|
EXPECTED_PAYMENT = :expected_payment
|
|
521
|
-
EXTERNAL_ACCOUNT = :external_account
|
|
522
531
|
IDENTIFICATION = :identification
|
|
523
532
|
INCOMING_PAYMENT_DETAIL = :incoming_payment_detail
|
|
524
533
|
INTERNAL_ACCOUNT = :internal_account
|
|
525
534
|
LEGAL_ENTITY = :legal_entity
|
|
526
|
-
ORGANIZATION = :organization
|
|
527
535
|
PAYMENT_ORDER = :payment_order
|
|
528
536
|
RETURN = :return
|
|
529
537
|
TRANSACTION = :transaction
|
|
@@ -812,7 +820,9 @@ module ModernTreasury
|
|
|
812
820
|
module AccountNumberType
|
|
813
821
|
extend ModernTreasury::Internal::Type::Enum
|
|
814
822
|
|
|
823
|
+
ARBITRUM_ADDRESS = :arbitrum_address
|
|
815
824
|
AU_NUMBER = :au_number
|
|
825
|
+
AVALANCHE_ADDRESS = :avalanche_address
|
|
816
826
|
BASE_ADDRESS = :base_address
|
|
817
827
|
CARD_TOKEN = :card_token
|
|
818
828
|
CLABE = :clabe
|
|
@@ -826,7 +836,6 @@ module ModernTreasury
|
|
|
826
836
|
POLYGON_ADDRESS = :polygon_address
|
|
827
837
|
SG_NUMBER = :sg_number
|
|
828
838
|
SOLANA_ADDRESS = :solana_address
|
|
829
|
-
WALLET_ADDRESS = :wallet_address
|
|
830
839
|
|
|
831
840
|
# @!method self.values
|
|
832
841
|
# @return [Array<Symbol>]
|
|
@@ -19,7 +19,9 @@ module ModernTreasury
|
|
|
19
19
|
PPD = :PPD
|
|
20
20
|
TEL = :TEL
|
|
21
21
|
WEB = :WEB
|
|
22
|
+
ARBITRUM = :arbitrum
|
|
22
23
|
AU_BECS = :au_becs
|
|
24
|
+
AVALANCHE = :avalanche
|
|
23
25
|
BACS = :bacs
|
|
24
26
|
BASE = :base
|
|
25
27
|
CHATS = :chats
|
|
@@ -35,6 +37,7 @@ module ModernTreasury
|
|
|
35
37
|
PL_ELIXIR = :pl_elixir
|
|
36
38
|
POLYGON = :polygon
|
|
37
39
|
PRINT = :print
|
|
40
|
+
REMOTE_DEPOSIT = :remote_deposit
|
|
38
41
|
SE_BANKGIROT = :se_bankgirot
|
|
39
42
|
SEPA = :sepa
|
|
40
43
|
SG_GIRO = :sg_giro
|
|
@@ -168,6 +168,14 @@ module ModernTreasury
|
|
|
168
168
|
# @return [String, nil]
|
|
169
169
|
optional :originating_party_name, String, nil?: true
|
|
170
170
|
|
|
171
|
+
# @!attribute originating_secondary_party_name
|
|
172
|
+
# Secondary name for the legal entity making the payment. Can be used for e.g.
|
|
173
|
+
# check signatures where the originating party wishes to retain their company's
|
|
174
|
+
# display name but use an employee's name for the signature.
|
|
175
|
+
#
|
|
176
|
+
# @return [String, nil]
|
|
177
|
+
optional :originating_secondary_party_name, String, nil?: true
|
|
178
|
+
|
|
171
179
|
# @!attribute priority
|
|
172
180
|
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
|
173
181
|
# same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
|
@@ -299,7 +307,7 @@ module ModernTreasury
|
|
|
299
307
|
# @return [String, nil]
|
|
300
308
|
optional :ultimate_receiving_party_name, String, nil?: true
|
|
301
309
|
|
|
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: {})
|
|
310
|
+
# @!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, 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
311
|
# Some parameter documentations has been truncated, see
|
|
304
312
|
# {ModernTreasury::Models::PaymentOrderUpdateParams} for more details.
|
|
305
313
|
#
|
|
@@ -347,6 +355,8 @@ module ModernTreasury
|
|
|
347
355
|
#
|
|
348
356
|
# @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
|
|
349
357
|
#
|
|
358
|
+
# @param originating_secondary_party_name [String, nil] Secondary name for the legal entity making the payment. Can be used for e.g. ch
|
|
359
|
+
#
|
|
350
360
|
# @param priority [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
|
|
351
361
|
#
|
|
352
362
|
# @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
|
|
@@ -718,7 +728,9 @@ module ModernTreasury
|
|
|
718
728
|
module AccountNumberType
|
|
719
729
|
extend ModernTreasury::Internal::Type::Enum
|
|
720
730
|
|
|
731
|
+
ARBITRUM_ADDRESS = :arbitrum_address
|
|
721
732
|
AU_NUMBER = :au_number
|
|
733
|
+
AVALANCHE_ADDRESS = :avalanche_address
|
|
722
734
|
BASE_ADDRESS = :base_address
|
|
723
735
|
CARD_TOKEN = :card_token
|
|
724
736
|
CLABE = :clabe
|
|
@@ -732,7 +744,6 @@ module ModernTreasury
|
|
|
732
744
|
POLYGON_ADDRESS = :polygon_address
|
|
733
745
|
SG_NUMBER = :sg_number
|
|
734
746
|
SOLANA_ADDRESS = :solana_address
|
|
735
|
-
WALLET_ADDRESS = :wallet_address
|
|
736
747
|
|
|
737
748
|
# @!method self.values
|
|
738
749
|
# @return [Array<Symbol>]
|
|
@@ -105,6 +105,7 @@ module ModernTreasury
|
|
|
105
105
|
COLUMN_FX_QUOTE_ID = :column_fx_quote_id
|
|
106
106
|
COLUMN_REVERSAL_PAIR_TRANSFER_ID = :column_reversal_pair_transfer_id
|
|
107
107
|
COLUMN_TRANSFER_ID = :column_transfer_id
|
|
108
|
+
CROSS_RIVER_CARD_NETWORK = :cross_river_card_network
|
|
108
109
|
CROSS_RIVER_CARD_TRACE_NUMBER = :cross_river_card_trace_number
|
|
109
110
|
CROSS_RIVER_CORE_TRANSACTION_ID = :cross_river_core_transaction_id
|
|
110
111
|
CROSS_RIVER_FED_BATCH_ID = :cross_river_fed_batch_id
|
|
@@ -174,7 +175,6 @@ module ModernTreasury
|
|
|
174
175
|
WESTERN_ALLIANCE_PAYMENT_ID = :western_alliance_payment_id
|
|
175
176
|
WESTERN_ALLIANCE_TRANSACTION_ID = :western_alliance_transaction_id
|
|
176
177
|
WESTERN_ALLIANCE_WIRE_CONFIRMATION_NUMBER = :western_alliance_wire_confirmation_number
|
|
177
|
-
WISE_TRANSFER_ID = :wise_transfer_id
|
|
178
178
|
|
|
179
179
|
# @!method self.values
|
|
180
180
|
# @return [Array<Symbol>]
|
|
@@ -498,6 +498,7 @@ module ModernTreasury
|
|
|
498
498
|
COLUMN_FX_QUOTE_ID = :column_fx_quote_id
|
|
499
499
|
COLUMN_REVERSAL_PAIR_TRANSFER_ID = :column_reversal_pair_transfer_id
|
|
500
500
|
COLUMN_TRANSFER_ID = :column_transfer_id
|
|
501
|
+
CROSS_RIVER_CARD_NETWORK = :cross_river_card_network
|
|
501
502
|
CROSS_RIVER_CARD_TRACE_NUMBER = :cross_river_card_trace_number
|
|
502
503
|
CROSS_RIVER_CORE_TRANSACTION_ID = :cross_river_core_transaction_id
|
|
503
504
|
CROSS_RIVER_FED_BATCH_ID = :cross_river_fed_batch_id
|
|
@@ -567,7 +568,6 @@ module ModernTreasury
|
|
|
567
568
|
WESTERN_ALLIANCE_PAYMENT_ID = :western_alliance_payment_id
|
|
568
569
|
WESTERN_ALLIANCE_TRANSACTION_ID = :western_alliance_transaction_id
|
|
569
570
|
WESTERN_ALLIANCE_WIRE_CONFIRMATION_NUMBER = :western_alliance_wire_confirmation_number
|
|
570
|
-
WISE_TRANSFER_ID = :wise_transfer_id
|
|
571
571
|
|
|
572
572
|
# @!method self.values
|
|
573
573
|
# @return [Array<Symbol>]
|
|
@@ -53,6 +53,12 @@ module ModernTreasury
|
|
|
53
53
|
# @return [Time, nil]
|
|
54
54
|
required :discarded_at, Time, nil?: true
|
|
55
55
|
|
|
56
|
+
# @!attribute external_id
|
|
57
|
+
# A user-defined identifier for the virtual account.
|
|
58
|
+
#
|
|
59
|
+
# @return [String, nil]
|
|
60
|
+
required :external_id, String, nil?: true
|
|
61
|
+
|
|
56
62
|
# @!attribute internal_account_id
|
|
57
63
|
# The ID of the internal account that the virtual account is in.
|
|
58
64
|
#
|
|
@@ -103,7 +109,7 @@ module ModernTreasury
|
|
|
103
109
|
# @return [Time]
|
|
104
110
|
required :updated_at, Time
|
|
105
111
|
|
|
106
|
-
# @!method initialize(id:, account_details:, counterparty_id:, created_at:, credit_ledger_account_id:, debit_ledger_account_id:, description:, discarded_at:, internal_account_id:, ledger_account_id:, live_mode:, metadata:, name:, object:, routing_details:, updated_at:)
|
|
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:)
|
|
107
113
|
# Some parameter documentations has been truncated, see
|
|
108
114
|
# {ModernTreasury::Models::VirtualAccount} for more details.
|
|
109
115
|
#
|
|
@@ -123,6 +129,8 @@ module ModernTreasury
|
|
|
123
129
|
#
|
|
124
130
|
# @param discarded_at [Time, nil]
|
|
125
131
|
#
|
|
132
|
+
# @param external_id [String, nil] A user-defined identifier for the virtual account.
|
|
133
|
+
#
|
|
126
134
|
# @param internal_account_id [String] The ID of the internal account that the virtual account is in.
|
|
127
135
|
#
|
|
128
136
|
# @param ledger_account_id [String, nil] If the virtual account links to a ledger account in Modern Treasury, the id of t
|
|
@@ -54,6 +54,12 @@ module ModernTreasury
|
|
|
54
54
|
# @return [String, nil]
|
|
55
55
|
optional :description, String
|
|
56
56
|
|
|
57
|
+
# @!attribute external_id
|
|
58
|
+
# A user-defined identifier for the virtual account.
|
|
59
|
+
#
|
|
60
|
+
# @return [String, nil]
|
|
61
|
+
optional :external_id, String, nil?: true
|
|
62
|
+
|
|
57
63
|
# @!attribute ledger_account
|
|
58
64
|
# Specifies a ledger account object that will be created with the virtual account.
|
|
59
65
|
# The resulting ledger account is linked to the virtual account for auto-ledgering
|
|
@@ -88,7 +94,7 @@ module ModernTreasury
|
|
|
88
94
|
# @return [String, nil]
|
|
89
95
|
optional :virtual_account_setting_id, String
|
|
90
96
|
|
|
91
|
-
# @!method initialize(internal_account_id:, name:, account_details: nil, counterparty_id: nil, credit_ledger_account_id: nil, debit_ledger_account_id: nil, description: nil, ledger_account: nil, ledger_account_id: nil, metadata: nil, routing_details: nil, virtual_account_setting_id: nil, request_options: {})
|
|
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: {})
|
|
92
98
|
# Some parameter documentations has been truncated, see
|
|
93
99
|
# {ModernTreasury::Models::VirtualAccountCreateParams} for more details.
|
|
94
100
|
#
|
|
@@ -106,6 +112,8 @@ module ModernTreasury
|
|
|
106
112
|
#
|
|
107
113
|
# @param description [String] An optional description for internal use.
|
|
108
114
|
#
|
|
115
|
+
# @param external_id [String, nil] A user-defined identifier for the virtual account.
|
|
116
|
+
#
|
|
109
117
|
# @param ledger_account [ModernTreasury::Models::LedgerAccountCreateRequest] Specifies a ledger account object that will be created with the virtual account.
|
|
110
118
|
#
|
|
111
119
|
# @param ledger_account_id [String] The ledger account that you'd like to link to the virtual account.
|
|
@@ -126,8 +134,9 @@ module ModernTreasury
|
|
|
126
134
|
required :account_number, String
|
|
127
135
|
|
|
128
136
|
# @!attribute account_number_type
|
|
129
|
-
#
|
|
130
|
-
# account number is in a
|
|
137
|
+
# The type of the account number. For wallet addresses, use the chain-specific
|
|
138
|
+
# type (e.g. `ethereum_address`). Use `other` if the account number is in a
|
|
139
|
+
# generic format.
|
|
131
140
|
#
|
|
132
141
|
# @return [Symbol, ModernTreasury::Models::VirtualAccountCreateParams::AccountDetail::AccountNumberType, nil]
|
|
133
142
|
optional :account_number_type,
|
|
@@ -140,16 +149,19 @@ module ModernTreasury
|
|
|
140
149
|
#
|
|
141
150
|
# @param account_number [String] The account number for the bank account.
|
|
142
151
|
#
|
|
143
|
-
# @param account_number_type [Symbol, ModernTreasury::Models::VirtualAccountCreateParams::AccountDetail::AccountNumberType]
|
|
152
|
+
# @param account_number_type [Symbol, ModernTreasury::Models::VirtualAccountCreateParams::AccountDetail::AccountNumberType] The type of the account number. For wallet addresses, use the chain-specific typ
|
|
144
153
|
|
|
145
|
-
#
|
|
146
|
-
# account number is in a
|
|
154
|
+
# The type of the account number. For wallet addresses, use the chain-specific
|
|
155
|
+
# type (e.g. `ethereum_address`). Use `other` if the account number is in a
|
|
156
|
+
# generic format.
|
|
147
157
|
#
|
|
148
158
|
# @see ModernTreasury::Models::VirtualAccountCreateParams::AccountDetail#account_number_type
|
|
149
159
|
module AccountNumberType
|
|
150
160
|
extend ModernTreasury::Internal::Type::Enum
|
|
151
161
|
|
|
162
|
+
ARBITRUM_ADDRESS = :arbitrum_address
|
|
152
163
|
AU_NUMBER = :au_number
|
|
164
|
+
AVALANCHE_ADDRESS = :avalanche_address
|
|
153
165
|
BASE_ADDRESS = :base_address
|
|
154
166
|
CARD_TOKEN = :card_token
|
|
155
167
|
CLABE = :clabe
|
|
@@ -163,7 +175,6 @@ module ModernTreasury
|
|
|
163
175
|
POLYGON_ADDRESS = :polygon_address
|
|
164
176
|
SG_NUMBER = :sg_number
|
|
165
177
|
SOLANA_ADDRESS = :solana_address
|
|
166
|
-
WALLET_ADDRESS = :wallet_address
|
|
167
178
|
|
|
168
179
|
# @!method self.values
|
|
169
180
|
# @return [Array<Symbol>]
|
|
@@ -17,6 +17,12 @@ module ModernTreasury
|
|
|
17
17
|
# @return [String, nil]
|
|
18
18
|
optional :counterparty_id, String
|
|
19
19
|
|
|
20
|
+
# @!attribute external_id
|
|
21
|
+
# Only return virtual accounts with this external ID.
|
|
22
|
+
#
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
optional :external_id, String
|
|
25
|
+
|
|
20
26
|
# @!attribute internal_account_id
|
|
21
27
|
#
|
|
22
28
|
# @return [String, nil]
|
|
@@ -35,7 +41,7 @@ module ModernTreasury
|
|
|
35
41
|
# @return [Integer, nil]
|
|
36
42
|
optional :per_page, Integer
|
|
37
43
|
|
|
38
|
-
# @!method initialize(after_cursor: nil, counterparty_id: nil, internal_account_id: nil, metadata: nil, per_page: nil, request_options: {})
|
|
44
|
+
# @!method initialize(after_cursor: nil, counterparty_id: nil, external_id: nil, internal_account_id: nil, metadata: nil, per_page: nil, request_options: {})
|
|
39
45
|
# Some parameter documentations has been truncated, see
|
|
40
46
|
# {ModernTreasury::Models::VirtualAccountListParams} for more details.
|
|
41
47
|
#
|
|
@@ -43,6 +49,8 @@ module ModernTreasury
|
|
|
43
49
|
#
|
|
44
50
|
# @param counterparty_id [String]
|
|
45
51
|
#
|
|
52
|
+
# @param external_id [String] Only return virtual accounts with this external ID.
|
|
53
|
+
#
|
|
46
54
|
# @param internal_account_id [String]
|
|
47
55
|
#
|
|
48
56
|
# @param metadata [Hash{Symbol=>String}] For example, if you want to query for records with metadata key `Type` and value
|
|
@@ -16,7 +16,7 @@ module ModernTreasury
|
|
|
16
16
|
#
|
|
17
17
|
# @param account_number [String] Body param: The account number for the bank account.
|
|
18
18
|
#
|
|
19
|
-
# @param account_number_type [Symbol, ModernTreasury::Models::AccountDetailCreateParams::AccountNumberType] Body param:
|
|
19
|
+
# @param account_number_type [Symbol, ModernTreasury::Models::AccountDetailCreateParams::AccountNumberType] Body param: The type of the account number. For wallet addresses, use the chain-
|
|
20
20
|
#
|
|
21
21
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
22
22
|
#
|
|
@@ -63,7 +63,7 @@ module ModernTreasury
|
|
|
63
63
|
#
|
|
64
64
|
# @param documentable_id [String] The unique identifier for the associated object.
|
|
65
65
|
#
|
|
66
|
-
# @param documentable_type [Symbol, ModernTreasury::Models::DocumentListParams::DocumentableType] The type of the associated object. Currently can be one of `
|
|
66
|
+
# @param documentable_type [Symbol, ModernTreasury::Models::DocumentListParams::DocumentableType] The type of the associated object. Currently can be one of `connection`, `counte
|
|
67
67
|
#
|
|
68
68
|
# @param per_page [Integer]
|
|
69
69
|
#
|
|
@@ -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
|
#
|
|
@@ -113,7 +113,7 @@ module ModernTreasury
|
|
|
113
113
|
#
|
|
114
114
|
# @param description [String, nil] Defaults to a random description.
|
|
115
115
|
#
|
|
116
|
-
# @param direction [Symbol, ModernTreasury::Models::
|
|
116
|
+
# @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of `credit`, `debit`.
|
|
117
117
|
#
|
|
118
118
|
# @param internal_account_id [String] The ID of one of your internal accounts.
|
|
119
119
|
#
|
|
@@ -11,7 +11,7 @@ module ModernTreasury
|
|
|
11
11
|
#
|
|
12
12
|
# create internal account
|
|
13
13
|
#
|
|
14
|
-
# @overload create(currency:, name:, account_capabilities: nil, account_type: nil, connection_id: nil, counterparty_id: nil, debitable: nil, external_id: nil, legal_entity_id: nil, metadata: nil, parent_account_id: nil, party_address: nil, party_name: nil, requested_account_number_types: nil, vendor_attributes: nil, request_options: {})
|
|
14
|
+
# @overload create(currency:, name:, account_capabilities: nil, account_type: nil, connection_id: nil, counterparty_id: nil, debitable: nil, external_id: nil, legal_entity_id: nil, metadata: nil, parent_account_id: nil, party_address: nil, party_name: nil, requested_account_number_types: nil, title: nil, vendor_attributes: nil, request_options: {})
|
|
15
15
|
#
|
|
16
16
|
# @param currency [Symbol, ModernTreasury::Models::InternalAccountCreateParams::Currency] The currency of the internal account. Supports fiat and stablecoin currencies.
|
|
17
17
|
#
|
|
@@ -41,6 +41,8 @@ module ModernTreasury
|
|
|
41
41
|
#
|
|
42
42
|
# @param requested_account_number_types [Array<Symbol, ModernTreasury::Models::InternalAccountCreateParams::RequestedAccountNumberType>] An array of account number types requested for provisioning.
|
|
43
43
|
#
|
|
44
|
+
# @param title [String, nil] The account title at the financial institution, used in place of the party name.
|
|
45
|
+
#
|
|
44
46
|
# @param vendor_attributes [Hash{Symbol=>String}] A hash of vendor specific attributes that will be used when creating the account
|
|
45
47
|
#
|
|
46
48
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
@@ -167,7 +169,10 @@ module ModernTreasury
|
|
|
167
169
|
)
|
|
168
170
|
end
|
|
169
171
|
|
|
170
|
-
#
|
|
172
|
+
# @deprecated
|
|
173
|
+
#
|
|
174
|
+
# This endpoint has been deprecated. Request closure with PATCH
|
|
175
|
+
# /api/internal_accounts/{id} and status: "pending_closure".
|
|
171
176
|
#
|
|
172
177
|
# @overload request_closure(id, request_options: {})
|
|
173
178
|
#
|
|
@@ -8,7 +8,7 @@ module ModernTreasury
|
|
|
8
8
|
#
|
|
9
9
|
# Create a legal entity. All country fields use ISO 3166-1 alpha-2 (e.g. US).
|
|
10
10
|
#
|
|
11
|
-
# @overload create(legal_entity_type:, addresses: nil, bank_settings: nil, business_description: nil, business_designation: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, terms_of_use: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil, request_options: {})
|
|
11
|
+
# @overload create(legal_entity_type:, addresses: nil, bank_settings: nil, business_description: nil, business_designation: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, status: nil, suffix: nil, terms_of_use: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil, request_options: {})
|
|
12
12
|
#
|
|
13
13
|
# @param legal_entity_type [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityType] The type of legal entity.
|
|
14
14
|
#
|
|
@@ -74,7 +74,7 @@ module ModernTreasury
|
|
|
74
74
|
#
|
|
75
75
|
# @param prefix [String, nil] An individual's prefix.
|
|
76
76
|
#
|
|
77
|
-
# @param primary_social_media_sites [Array<String>] A list of primary social media URLs
|
|
77
|
+
# @param primary_social_media_sites [Array<String>] A list of the entity's primary social media URLs.
|
|
78
78
|
#
|
|
79
79
|
# @param regulators [Array<ModernTreasury::Models::LegalEntityCreateParams::Regulator>, nil] Array of regulatory bodies overseeing this institution.
|
|
80
80
|
#
|
|
@@ -82,6 +82,8 @@ module ModernTreasury
|
|
|
82
82
|
#
|
|
83
83
|
# @param service_provider_legal_entity_id [String, nil] The UUID of the parent legal entity in the service provider tree.
|
|
84
84
|
#
|
|
85
|
+
# @param status [Symbol, ModernTreasury::Models::LegalEntityCreateParams::Status] Set to draft to create the legal entity as a draft. Omit to create it as pending
|
|
86
|
+
#
|
|
85
87
|
# @param suffix [String, nil] An individual's suffix.
|
|
86
88
|
#
|
|
87
89
|
# @param terms_of_use [ModernTreasury::Models::LegalEntityCreateParams::TermsOfUse, nil] Acceptance of terms of use by the legal entity.
|
|
@@ -137,7 +139,7 @@ module ModernTreasury
|
|
|
137
139
|
#
|
|
138
140
|
# Update a legal entity.
|
|
139
141
|
#
|
|
140
|
-
# @overload update(id, addresses: nil, bank_settings: nil, business_description: nil, business_designation: nil, business_name: nil, citizenship_country: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, terms_of_use: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil, request_options: {})
|
|
142
|
+
# @overload update(id, addresses: nil, bank_settings: nil, business_description: nil, business_designation: nil, business_name: nil, citizenship_country: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, status: nil, suffix: nil, terms_of_use: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil, request_options: {})
|
|
141
143
|
#
|
|
142
144
|
# @param id [String] id
|
|
143
145
|
#
|
|
@@ -195,7 +197,7 @@ module ModernTreasury
|
|
|
195
197
|
#
|
|
196
198
|
# @param prefix [String, nil] An individual's prefix.
|
|
197
199
|
#
|
|
198
|
-
# @param primary_social_media_sites [Array<String>] A list of primary social media URLs
|
|
200
|
+
# @param primary_social_media_sites [Array<String>] A list of the entity's primary social media URLs.
|
|
199
201
|
#
|
|
200
202
|
# @param regulators [Array<ModernTreasury::Models::LegalEntityUpdateParams::Regulator>, nil] Array of regulatory bodies overseeing this institution.
|
|
201
203
|
#
|
|
@@ -203,6 +205,8 @@ module ModernTreasury
|
|
|
203
205
|
#
|
|
204
206
|
# @param service_provider_legal_entity_id [String, nil] The UUID of the parent legal entity in the service provider tree.
|
|
205
207
|
#
|
|
208
|
+
# @param status [Symbol, ModernTreasury::Models::LegalEntityUpdateParams::Status] Set to pending to submit a draft legal entity for processing. Only valid while t
|
|
209
|
+
#
|
|
206
210
|
# @param suffix [String, nil] An individual's suffix.
|
|
207
211
|
#
|
|
208
212
|
# @param terms_of_use [ModernTreasury::Models::LegalEntityUpdateParams::TermsOfUse, nil] Acceptance of terms of use by the legal entity.
|
|
@@ -11,7 +11,7 @@ module ModernTreasury
|
|
|
11
11
|
#
|
|
12
12
|
# Create a new Payment Order
|
|
13
13
|
#
|
|
14
|
-
# @overload create(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, documents: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: 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, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_account_id: nil, ultimate_originating_party_address: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, vendor_attributes: nil, request_options: {})
|
|
14
|
+
# @overload create(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, documents: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: 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, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_account_id: nil, ultimate_originating_party_address: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, vendor_attributes: nil, request_options: {})
|
|
15
15
|
#
|
|
16
16
|
# @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
|
|
17
17
|
#
|
|
@@ -61,6 +61,8 @@ module ModernTreasury
|
|
|
61
61
|
#
|
|
62
62
|
# @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
|
|
63
63
|
#
|
|
64
|
+
# @param originating_secondary_party_name [String, nil] Secondary name for the legal entity making the payment. Can be used for e.g. ch
|
|
65
|
+
#
|
|
64
66
|
# @param priority [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
|
|
65
67
|
#
|
|
66
68
|
# @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
|
|
@@ -137,7 +139,7 @@ module ModernTreasury
|
|
|
137
139
|
#
|
|
138
140
|
# Update a payment order
|
|
139
141
|
#
|
|
140
|
-
# @overload update(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: {})
|
|
142
|
+
# @overload update(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, 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: {})
|
|
141
143
|
#
|
|
142
144
|
# @param id [String]
|
|
143
145
|
#
|
|
@@ -183,6 +185,8 @@ module ModernTreasury
|
|
|
183
185
|
#
|
|
184
186
|
# @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
|
|
185
187
|
#
|
|
188
|
+
# @param originating_secondary_party_name [String, nil] Secondary name for the legal entity making the payment. Can be used for e.g. ch
|
|
189
|
+
#
|
|
186
190
|
# @param priority [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
|
|
187
191
|
#
|
|
188
192
|
# @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
|
|
@@ -297,7 +301,7 @@ module ModernTreasury
|
|
|
297
301
|
#
|
|
298
302
|
# Create a new payment order asynchronously
|
|
299
303
|
#
|
|
300
|
-
# @overload create_async(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: 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, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_account_id: nil, ultimate_originating_party_address: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, vendor_attributes: nil, request_options: {})
|
|
304
|
+
# @overload create_async(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: 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, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_account_id: nil, ultimate_originating_party_address: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, vendor_attributes: nil, request_options: {})
|
|
301
305
|
#
|
|
302
306
|
# @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
|
|
303
307
|
#
|
|
@@ -345,6 +349,8 @@ module ModernTreasury
|
|
|
345
349
|
#
|
|
346
350
|
# @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
|
|
347
351
|
#
|
|
352
|
+
# @param originating_secondary_party_name [String, nil] Secondary name for the legal entity making the payment. Can be used for e.g. ch
|
|
353
|
+
#
|
|
348
354
|
# @param priority [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
|
|
349
355
|
#
|
|
350
356
|
# @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
|