Class: MethodRuby::Models::AccountCreateParams::Body::ACH

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/method_ruby/models/account_create_params.rb,
sig/method_ruby/models/account_create_params.rbs

Defined Under Namespace

Modules: Type Classes: ACH

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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(ach:, holder_id:, metadata: nil, type: nil) ⇒ Object

Create an ACH account.

Parameters:

  • ACH account details.

  • The entity ID that will own this account.

  • (defaults to: nil)

    Arbitrary key-value metadata attached to the resource.

  • (defaults to: nil)


# File 'lib/method_ruby/models/account_create_params.rb', line 86

Instance Attribute Details

#ach ⇒ MethodRuby::Models::AccountCreateParams::Body::ACH::ACH

ACH account details.

Parameters:

Returns:



65
# File 'lib/method_ruby/models/account_create_params.rb', line 65

required :ach, -> { MethodRuby::AccountCreateParams::Body::ACH::ACH }

#holder_id ⇒ String

The entity ID that will own this account.

Parameters:

Returns:



71
# File 'lib/method_ruby/models/account_create_params.rb', line 71

required :holder_id, String

#metadata ⇒ Hash{Symbol=>Object}?

Arbitrary key-value metadata attached to the resource.

Parameters:

Returns:



77
78
79
# File 'lib/method_ruby/models/account_create_params.rb', line 77

optional :metadata,
MethodRuby::Internal::Type::HashOf[MethodRuby::Internal::Type::Unknown],
nil?: true

#type ⇒ Symbol, ...

Returns:



84
# File 'lib/method_ruby/models/account_create_params.rb', line 84

optional :type, enum: -> { MethodRuby::AccountCreateParams::Body::ACH::Type }

Class Method Details

.values ⇒ Array<Symbol>

Returns:



# File 'lib/method_ruby/models/account_create_params.rb', line 135

Instance Method Details

#to_hash ⇒ {

Returns:



74
# File 'sig/method_ruby/models/account_create_params.rbs', line 74

def to_hash: -> {