Class: MethodRuby::Models::AccountRetrieveResponse::Data::AccountACHResource::Attribute::AccountAttribute

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

Defined Under Namespace

Modules: Status

Instance Attribute 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(id:, account_id:, attributes:, created_at:, status:, updated_at:, error: nil) ⇒ Object

An attribute record for an account containing financial data attributes.

Parameters:



# File 'lib/method_ruby/models/account_retrieve_response.rb', line 422

Instance Attribute Details

#account_id ⇒ String

The account this attribute belongs to.

Parameters:

  • value (String)

Returns:

  • (String)


390
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 390

required :account_id, String

#attributes ⇒ Hash{Symbol=>Object}

Financial data attributes for the account.

Parameters:

  • value (::Hash[Symbol, top])

Returns:

  • (Hash{Symbol=>Object})


396
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 396

required :attributes, MethodRuby::Internal::Type::HashOf[MethodRuby::Internal::Type::Unknown]

#created_at ⇒ Time

Timestamp when the attribute was created.

Parameters:

  • value (Time)

Returns:

  • (Time)


402
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 402

required :created_at, Time

#error ⇒ MethodRuby::Models::ResourceError?

Parameters:

Returns:



420
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 420

optional :error, -> { MethodRuby::ResourceError }, nil?: true

#id ⇒ String

Unique identifier for the account attribute.

Parameters:

  • value (String)

Returns:

  • (String)


384
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 384

required :id, String

#status ⇒ Symbol, MethodRuby::Models::AccountRetrieveResponse::Data::AccountACHResource::Attribute::AccountAttribute::Status

Current status of the attribute request.

Parameters:

  • value (MethodRuby::Models::AccountRetrieveResponse::Data::AccountACHResource::Attribute::AccountAttribute::status)

Returns:



408
409
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 408

required :status,
enum: -> { MethodRuby::Models::AccountRetrieveResponse::Data::AccountACHResource::Attribute::AccountAttribute::Status }

#updated_at ⇒ Time

Timestamp when the attribute was last updated.

Parameters:

  • value (Time)

Returns:

  • (Time)


415
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 415

required :updated_at, Time

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


294
# File 'sig/method_ruby/models/account_retrieve_response.rbs', line 294

def to_hash: -> {