Class: MethodRuby::Models::AccountCreateResponse::Data::AccountDebitCardResource::Attribute::AccountAttribute

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/method_ruby/models/account_create_response.rb

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_create_response.rb', line 11169

Instance Attribute Details

#account_idString

The account this attribute belongs to.

Returns:

  • (String)


11137
# File 'lib/method_ruby/models/account_create_response.rb', line 11137

required :account_id, String

#attributesHash{Symbol=>Object}

Financial data attributes for the account.

Returns:

  • (Hash{Symbol=>Object})


11143
# File 'lib/method_ruby/models/account_create_response.rb', line 11143

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

#created_atTime

Timestamp when the attribute was created.

Returns:

  • (Time)


11149
# File 'lib/method_ruby/models/account_create_response.rb', line 11149

required :created_at, Time

#errorMethodRuby::Models::ResourceError?



11167
# File 'lib/method_ruby/models/account_create_response.rb', line 11167

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

#idString

Unique identifier for the account attribute.

Returns:

  • (String)


11131
# File 'lib/method_ruby/models/account_create_response.rb', line 11131

required :id, String

#statusSymbol, MethodRuby::Models::AccountCreateResponse::Data::AccountDebitCardResource::Attribute::AccountAttribute::Status

Current status of the attribute request.



11155
11156
# File 'lib/method_ruby/models/account_create_response.rb', line 11155

required :status,
enum: -> { MethodRuby::Models::AccountCreateResponse::Data::AccountDebitCardResource::Attribute::AccountAttribute::Status }

#updated_atTime

Timestamp when the attribute was last updated.

Returns:

  • (Time)


11162
# File 'lib/method_ruby/models/account_create_response.rb', line 11162

required :updated_at, Time