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

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/method_ruby/models/account_create_response.rb,
sig/method_ruby/models/account_create_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_create_response.rb', line 4013


Instance Attribute Details

#account_id ⇒ String

The account this attribute belongs to.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :account_id, String

#attributes ⇒ Hash{Symbol=>Object}

Financial data attributes for the account.

Parameters:

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

Returns:

  • (Hash{Symbol=>Object})


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

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

#created_at ⇒ Time

Timestamp when the attribute was created.

Parameters:

  • value (Time)

Returns:

  • (Time)


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

required :created_at, Time

#error ⇒ MethodRuby::Models::ResourceError?

Parameters:

Returns:



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

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

#id ⇒ String

Unique identifier for the account attribute.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#status ⇒ Symbol, MethodRuby::Models::AccountCreateResponse::Data::AccountLiabilityResource::Attribute::AccountAttribute::Status

Current status of the attribute request.

Parameters:

  • value (MethodRuby::Models::AccountCreateResponse::Data::AccountLiabilityResource::Attribute::AccountAttribute::status)

Returns:



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

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

#updated_at ⇒ Time

Timestamp when the attribute was last updated.

Parameters:

  • value (Time)

Returns:

  • (Time)


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

required :updated_at, Time

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


3101
# File 'sig/method_ruby/models/account_create_response.rbs', line 3101

def to_hash: -> {