Class: Dodopayments::Models::WebhookPayload::Data::DunningAttempt

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

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, payload_type: :DunningAttempt) ⇒ Object

Parameters:



# File 'lib/dodopayments/models/webhook_payload.rb', line 340

Instance Attribute Details

#brand_idString

Brand id this dunning attempt belongs to

Returns:

  • (String)


303
# File 'lib/dodopayments/models/webhook_payload.rb', line 303

required :brand_id, String

#created_atTime

Returns:

  • (Time)


308
# File 'lib/dodopayments/models/webhook_payload.rb', line 308

required :created_at, Time

#customer_idString

Returns:

  • (String)


313
# File 'lib/dodopayments/models/webhook_payload.rb', line 313

required :customer_id, String

#payload_typeSymbol, :DunningAttempt

Returns:

  • (Symbol, :DunningAttempt)


318
# File 'lib/dodopayments/models/webhook_payload.rb', line 318

required :payload_type, const: :DunningAttempt

#payment_idString?

Returns:

  • (String, nil)


338
# File 'lib/dodopayments/models/webhook_payload.rb', line 338

optional :payment_id, String, nil?: true

#statusSymbol, Dodopayments::Models::WebhookPayload::Data::DunningAttempt::Status



323
# File 'lib/dodopayments/models/webhook_payload.rb', line 323

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

#subscription_idString

Returns:

  • (String)


328
# File 'lib/dodopayments/models/webhook_payload.rb', line 328

required :subscription_id, String

#trigger_stateSymbol, Dodopayments::Models::WebhookPayload::Data::DunningAttempt::TriggerState



333
# File 'lib/dodopayments/models/webhook_payload.rb', line 333

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

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/dodopayments/models/webhook_payload.rb', line 365