Class: Straddle::Models::PaymentStatusDetails
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Straddle::Models::PaymentStatusDetails
- Defined in:
- lib/straddle/models/payment_status_details.rb,
sig/straddle/models/payment_status_details.rbs
Instance Attribute Summary collapse
-
#changed_at ⇒ Time
Timestamp when the status changed.
-
#code ⇒ String?
Status code, when available.
-
#message ⇒ String
Human-readable status description.
-
#reason ⇒ Symbol, Straddle::Models::PaymentStatusReason
Machine-readable reason for the status.
-
#source ⇒ Symbol, Straddle::Models::PaymentStatusSource
Source of the status change.
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(changed_at:, message:, reason:, source:, code: nil) ⇒ Object
|
|
# File 'lib/straddle/models/payment_status_details.rb', line 36
|
Instance Attribute Details
#changed_at ⇒ Time
Timestamp when the status changed.
10 |
# File 'lib/straddle/models/payment_status_details.rb', line 10 required :changed_at, Time |
#code ⇒ String?
Status code, when available.
34 |
# File 'lib/straddle/models/payment_status_details.rb', line 34 optional :code, String, nil?: true |
#message ⇒ String
Human-readable status description.
16 |
# File 'lib/straddle/models/payment_status_details.rb', line 16 required :message, String |
#reason ⇒ Symbol, Straddle::Models::PaymentStatusReason
Machine-readable reason for the status.
22 |
# File 'lib/straddle/models/payment_status_details.rb', line 22 required :reason, enum: -> { Straddle::PaymentStatusReason } |
#source ⇒ Symbol, Straddle::Models::PaymentStatusSource
Source of the status change.
28 |
# File 'lib/straddle/models/payment_status_details.rb', line 28 required :source, enum: -> { Straddle::PaymentStatusSource } |
Instance Method Details
#to_hash ⇒ {
31 |
# File 'sig/straddle/models/payment_status_details.rbs', line 31
def to_hash: -> {
|