Class: Straddle::Models::ChargeCreatedV1WebhookEvent::Data::StatusHistory
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Straddle::Models::ChargeCreatedV1WebhookEvent::Data::StatusHistory
- Defined in:
- lib/straddle/models/charge_created_v1_webhook_event.rb,
sig/straddle/models/charge_created_v1_webhook_event.rbs
Defined Under Namespace
Instance Attribute Summary collapse
-
#changed_at ⇒ Time
The time the status change occurred.
-
#code ⇒ String?
The status code if applicable.
-
#message ⇒ String
A human-readable description of the status.
- #reason ⇒ Symbol, Straddle::Models::ChargeCreatedV1WebhookEvent::Data::StatusHistory::Reason
- #source ⇒ Symbol, Straddle::Models::PaymentStatusSource
- #status ⇒ Symbol, Straddle::Models::ChargeCreatedV1WebhookEvent::Data::StatusHistory::Status
Class Method Summary collapse
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/charge_created_v1_webhook_event.rb', line 409
|
Instance Attribute Details
#changed_at ⇒ Time
The time the status change occurred.
380 |
# File 'lib/straddle/models/charge_created_v1_webhook_event.rb', line 380 required :changed_at, Time |
#code ⇒ String?
The status code if applicable.
407 |
# File 'lib/straddle/models/charge_created_v1_webhook_event.rb', line 407 optional :code, String, nil?: true |
#message ⇒ String
A human-readable description of the status.
386 |
# File 'lib/straddle/models/charge_created_v1_webhook_event.rb', line 386 required :message, String |
#reason ⇒ Symbol, Straddle::Models::ChargeCreatedV1WebhookEvent::Data::StatusHistory::Reason
391 |
# File 'lib/straddle/models/charge_created_v1_webhook_event.rb', line 391 required :reason, enum: -> { Straddle::ChargeCreatedV1WebhookEvent::Data::StatusHistory::Reason } |
#source ⇒ Symbol, Straddle::Models::PaymentStatusSource
396 |
# File 'lib/straddle/models/charge_created_v1_webhook_event.rb', line 396 required :source, enum: -> { Straddle::PaymentStatusSource } |
#status ⇒ Symbol, Straddle::Models::ChargeCreatedV1WebhookEvent::Data::StatusHistory::Status
401 |
# File 'lib/straddle/models/charge_created_v1_webhook_event.rb', line 401 required :status, enum: -> { Straddle::ChargeCreatedV1WebhookEvent::Data::StatusHistory::Status } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/straddle/models/charge_created_v1_webhook_event.rb', line 449
|
Instance Method Details
#to_hash ⇒ {
364 |
# File 'sig/straddle/models/charge_created_v1_webhook_event.rbs', line 364
def to_hash: -> {
|