Class: Dodopayments::Models::WebhookPayload::Data::DunningAttempt
Defined Under Namespace
Modules: Status, TriggerState
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(brand_id:, created_at:, customer_id:, status:, subscription_id:, trigger_state:, payment_id: nil, payload_type: :DunningAttempt) ⇒ Object
|
# File 'lib/dodopayments/models/webhook_payload.rb', line 497
|
Instance Attribute Details
#brand_id ⇒ String
Brand id this dunning attempt belongs to
460
|
# File 'lib/dodopayments/models/webhook_payload.rb', line 460
required :brand_id, String
|
#created_at ⇒ Time
465
|
# File 'lib/dodopayments/models/webhook_payload.rb', line 465
required :created_at, Time
|
#customer_id ⇒ String
470
|
# File 'lib/dodopayments/models/webhook_payload.rb', line 470
required :customer_id, String
|
#payload_type ⇒ Symbol, :DunningAttempt
475
|
# File 'lib/dodopayments/models/webhook_payload.rb', line 475
required :payload_type, const: :DunningAttempt
|
#payment_id ⇒ String?
495
|
# File 'lib/dodopayments/models/webhook_payload.rb', line 495
optional :payment_id, String, nil?: true
|
480
|
# File 'lib/dodopayments/models/webhook_payload.rb', line 480
required :status, enum: -> { Dodopayments::WebhookPayload::Data::DunningAttempt::Status }
|
#subscription_id ⇒ String
485
|
# File 'lib/dodopayments/models/webhook_payload.rb', line 485
required :subscription_id, String
|
490
|
# File 'lib/dodopayments/models/webhook_payload.rb', line 490
required :trigger_state, enum: -> { Dodopayments::WebhookPayload::Data::DunningAttempt::TriggerState }
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/dodopayments/models/webhook_payload.rb', line 522
|
Instance Method Details
#to_hash ⇒ {
409
|
# File 'sig/dodopayments/models/webhook_payload.rbs', line 409
def to_hash: -> {
|