Class: ModernTreasury::Models::ExternalAccountVerifyParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/modern_treasury/models/external_account_verify_params.rb

Overview

Defined Under Namespace

Modules: FallbackType, PaymentType, Priority

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(originating_account_id: , payment_type: , currency: nil, fallback_type: nil, priority: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see ModernTreasury::Models::ExternalAccountVerifyParams for more details.

Parameters:



# File 'lib/modern_treasury/models/external_account_verify_params.rb', line 44


Instance Attribute Details

#currencySymbol, ...

Defaults to the currency of the originating account.

Returns:



27
# File 'lib/modern_treasury/models/external_account_verify_params.rb', line 27

optional :currency, enum: -> { ModernTreasury::Currency }

#fallback_typeSymbol, ...

A payment type to fallback to if the original type is not valid for the receiving account. Currently, this only supports falling back from RTP to ACH (payment_type=rtp and fallback_type=ach)



35
# File 'lib/modern_treasury/models/external_account_verify_params.rb', line 35

optional :fallback_type, enum: -> { ModernTreasury::ExternalAccountVerifyParams::FallbackType }

#originating_account_idString

The ID of the internal account where the micro-deposits originate from. Both credit and debit capabilities must be enabled.

Returns:

  • (String)


15
# File 'lib/modern_treasury/models/external_account_verify_params.rb', line 15

required :originating_account_id, String

#payment_typeSymbol, ModernTreasury::Models::ExternalAccountVerifyParams::PaymentType

Can be ‘ach`, `eft`, or `rtp`.



21
# File 'lib/modern_treasury/models/external_account_verify_params.rb', line 21

required :payment_type, enum: -> { ModernTreasury::ExternalAccountVerifyParams::PaymentType }

#prioritySymbol, ...

Either ‘normal` or `high`. For ACH payments, `high` represents a same-day ACH transfer. This will apply to both `payment_type` and `fallback_type`.



42
# File 'lib/modern_treasury/models/external_account_verify_params.rb', line 42

optional :priority, enum: -> { ModernTreasury::ExternalAccountVerifyParams::Priority }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/modern_treasury/models/external_account_verify_params.rb', line 100