Class: Dodopayments::Models::DunningStartedWebhookEvent::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::DunningStartedWebhookEvent::Data
- Defined in:
- lib/dodopayments/models/dunning_started_webhook_event.rb
Overview
Defined Under Namespace
Modules: Status, TriggerState
Instance Attribute Summary collapse
- #created_at ⇒ Time
- #customer_id ⇒ String
- #payment_id ⇒ String?
- #status ⇒ Symbol, Dodopayments::Models::DunningStartedWebhookEvent::Data::Status
- #subscription_id ⇒ String
- #trigger_state ⇒ Symbol, Dodopayments::Models::DunningStartedWebhookEvent::Data::TriggerState
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(created_at:, customer_id:, status:, subscription_id:, trigger_state:, payment_id: nil) ⇒ Object
constructor
Webhook payload for dunning.started and dunning.recovered events.
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(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 71
|
Instance Attribute Details
#created_at ⇒ Time
44 |
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 44 required :created_at, Time |
#customer_id ⇒ String
49 |
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 49 required :customer_id, String |
#payment_id ⇒ String?
69 |
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 69 optional :payment_id, String, nil?: true |
#status ⇒ Symbol, Dodopayments::Models::DunningStartedWebhookEvent::Data::Status
54 |
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 54 required :status, enum: -> { Dodopayments::DunningStartedWebhookEvent::Data::Status } |
#subscription_id ⇒ String
59 |
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 59 required :subscription_id, String |
#trigger_state ⇒ Symbol, Dodopayments::Models::DunningStartedWebhookEvent::Data::TriggerState
64 |
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 64 required :trigger_state, enum: -> { Dodopayments::DunningStartedWebhookEvent::Data::TriggerState } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 89
|