Class: Dodopayments::Models::DunningStartedWebhookEvent::Data
- Inherits:
-
Internal::Type::BaseModel
show all
- Defined in:
- lib/dodopayments/models/dunning_started_webhook_event.rb,
sig/dodopayments/models/dunning_started_webhook_event.rbs
Overview
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) ⇒ Object
Webhook payload for dunning.started and dunning.recovered events
|
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 77
|
Instance Attribute Details
#brand_id ⇒ String
Brand id this dunning attempt belongs to
45
|
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 45
required :brand_id, String
|
#created_at ⇒ Time
50
|
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 50
required :created_at, Time
|
#customer_id ⇒ String
55
|
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 55
required :customer_id, String
|
#payment_id ⇒ String?
75
|
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 75
optional :payment_id, String, nil?: true
|
60
|
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 60
required :status, enum: -> { Dodopayments::DunningStartedWebhookEvent::Data::Status }
|
#subscription_id ⇒ String
65
|
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 65
required :subscription_id, String
|
70
|
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 70
required :trigger_state, enum: -> { Dodopayments::DunningStartedWebhookEvent::Data::TriggerState }
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 102
|
Instance Method Details
#to_hash ⇒ {
70
|
# File 'sig/dodopayments/models/dunning_started_webhook_event.rbs', line 70
def to_hash: -> {
|