Class: MethodRuby::Models::AccountCreateResponse::Data::AccountLiabilityResource::Error

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

Overview

See Also:

Defined Under Namespace

Modules: Code, SubType, Type

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(code:, message:, sub_type:, type:) ⇒ Object

Error details when an account is disabled.

Parameters:



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

Instance Attribute Details

#codeInteger, MethodRuby::Models::AccountCreateResponse::Data::AccountLiabilityResource::Error::Code

Numeric error code (11XXX range).



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

required :code,
enum: -> { MethodRuby::Models::AccountCreateResponse::Data::AccountLiabilityResource::Error::Code }

#messageString

Human-readable error description.

Returns:

  • (String)


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

required :message, String

#sub_typeSymbol, MethodRuby::Models::AccountCreateResponse::Data::AccountLiabilityResource::Error::SubType

Specific account error classification.



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

required :sub_type,
enum: -> { MethodRuby::Models::AccountCreateResponse::Data::AccountLiabilityResource::Error::SubType }

#typeSymbol, MethodRuby::Models::AccountCreateResponse::Data::AccountLiabilityResource::Error::Type

The category of account error.



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

required :type,
enum: -> { MethodRuby::Models::AccountCreateResponse::Data::AccountLiabilityResource::Error::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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