Class: Straddle::Models::PaymentStatusHistory
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Straddle::Models::PaymentStatusHistory
- Defined in:
- lib/straddle/models/payment_status_history.rb,
sig/straddle/models/payment_status_history.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.
-
#status ⇒ Symbol, Straddle::Models::PaymentStatus
The current status of the
chargeorpayout.
Instance Method Summary collapse
- #initialize(changed_at:, message:, reason:, source:, status:, code: nil) ⇒ Object constructor
- #to_hash ⇒ {
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:, status:, code: nil) ⇒ Object
|
|
# File 'lib/straddle/models/payment_status_history.rb', line 42
|
Instance Attribute Details
#changed_at ⇒ Time
Timestamp when the status changed.
10 |
# File 'lib/straddle/models/payment_status_history.rb', line 10 required :changed_at, Time |
#code ⇒ String?
Status code, when available.
40 |
# File 'lib/straddle/models/payment_status_history.rb', line 40 optional :code, String, nil?: true |
#message ⇒ String
Human-readable status description.
16 |
# File 'lib/straddle/models/payment_status_history.rb', line 16 required :message, String |
#reason ⇒ Symbol, Straddle::Models::PaymentStatusReason
Machine-readable reason for the status.
22 |
# File 'lib/straddle/models/payment_status_history.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_history.rb', line 28 required :source, enum: -> { Straddle::PaymentStatusSource } |
#status ⇒ Symbol, Straddle::Models::PaymentStatus
The current status of the charge or payout.
34 |
# File 'lib/straddle/models/payment_status_history.rb', line 34 required :status, enum: -> { Straddle::PaymentStatus } |
Instance Method Details
#to_hash ⇒ {
35 |
# File 'sig/straddle/models/payment_status_history.rbs', line 35 def to_hash: -> { |