Class: Dodopayments::Models::DunningStartedWebhookEvent::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/dunning_started_webhook_event.rb

Overview

See Also:

Defined Under Namespace

Modules: Status, TriggerState

Instance Attribute Summary collapse

Class Method 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(brand_id:, created_at:, customer_id:, status:, subscription_id:, trigger_state:, payment_id: nil) ⇒ Object

Webhook payload for dunning.started and dunning.recovered events

Parameters:



# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 77

Instance Attribute Details

#brand_idString

Brand id this dunning attempt belongs to

Returns:

  • (String)


45
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 45

required :brand_id, String

#created_atTime

Returns:

  • (Time)


50
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 50

required :created_at, Time

#customer_idString

Returns:

  • (String)


55
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 55

required :customer_id, String

#payment_idString?

Returns:

  • (String, nil)


75
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 75

optional :payment_id, String, nil?: true

#statusSymbol, Dodopayments::Models::DunningStartedWebhookEvent::Data::Status



60
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 60

required :status, enum: -> { Dodopayments::DunningStartedWebhookEvent::Data::Status }

#subscription_idString

Returns:

  • (String)


65
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 65

required :subscription_id, String

#trigger_stateSymbol, Dodopayments::Models::DunningStartedWebhookEvent::Data::TriggerState



70
# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 70

required :trigger_state, enum: -> { Dodopayments::DunningStartedWebhookEvent::Data::TriggerState }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/dodopayments/models/dunning_started_webhook_event.rb', line 102