Class: Straddle::Models::AccountStatusDetail
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Straddle::Models::AccountStatusDetail
- Defined in:
- lib/straddle/models/account_status_detail.rb,
sig/straddle/models/account_status_detail.rbs
Defined Under Namespace
Instance Attribute Summary collapse
-
#code ⇒ String
Machine-readable status code from the source.
-
#message ⇒ String
Human-readable description of the account's status.
-
#reason ⇒ Symbol, Straddle::Models::AccountStatusDetail::Reason
Machine-readable reason for the account's status.
-
#source ⇒ Symbol, Straddle::Models::AccountStatusDetail::Source
System that produced the account status detail.
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:, reason:, source:) ⇒ Object
|
|
# File 'lib/straddle/models/account_status_detail.rb', line 30
|
Instance Attribute Details
#code ⇒ String
Machine-readable status code from the source.
10 |
# File 'lib/straddle/models/account_status_detail.rb', line 10 required :code, String |
#message ⇒ String
Human-readable description of the account's status.
16 |
# File 'lib/straddle/models/account_status_detail.rb', line 16 required :message, String |
#reason ⇒ Symbol, Straddle::Models::AccountStatusDetail::Reason
Machine-readable reason for the account's status.
22 |
# File 'lib/straddle/models/account_status_detail.rb', line 22 required :reason, enum: -> { Straddle::AccountStatusDetail::Reason } |
#source ⇒ Symbol, Straddle::Models::AccountStatusDetail::Source
System that produced the account status detail.
28 |
# File 'lib/straddle/models/account_status_detail.rb', line 28 required :source, enum: -> { Straddle::AccountStatusDetail::Source } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/straddle/models/account_status_detail.rb', line 55
|
Instance Method Details
#to_hash ⇒ {
27 |
# File 'sig/straddle/models/account_status_detail.rbs', line 27
def to_hash: -> {
|