Class: Straddle::Models::PaymentStatusHistory

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/straddle/models/payment_status_history.rb,
sig/straddle/models/payment_status_history.rbs

Instance Attribute 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(changed_at:, message:, reason:, source:, status:, code: nil) ⇒ Object

Parameters:



# File 'lib/straddle/models/payment_status_history.rb', line 42


Instance Attribute Details

#changed_at ⇒ Time

Timestamp when the status changed.

Parameters:

  • value (Time)

Returns:

  • (Time)


10
# File 'lib/straddle/models/payment_status_history.rb', line 10

required :changed_at, Time

#code ⇒ String?

Status code, when available.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


40
# File 'lib/straddle/models/payment_status_history.rb', line 40

optional :code, String, nil?: true

#message ⇒ String

Human-readable status description.

Parameters:

  • value (String)

Returns:

  • (String)


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.

Parameters:

  • value (Straddle::Models::payment_status_reason)

Returns:



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.

Parameters:

  • value (Straddle::Models::payment_status_source)

Returns:



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.

Parameters:

  • value (Straddle::Models::payment_status)

Returns:



34
# File 'lib/straddle/models/payment_status_history.rb', line 34

required :status, enum: -> { Straddle::PaymentStatus }

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


35
# File 'sig/straddle/models/payment_status_history.rbs', line 35

def to_hash: -> {