Class: Dodopayments::Models::WebhookPayload::Data::AbandonedCheckout

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

Defined Under Namespace

Modules: AbandonmentReason, Status

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(abandoned_at:, abandonment_reason:, customer_id:, payment_id:, status:, recovered_payment_id: nil, payload_type: :AbandonedCheckout) ⇒ Object

Parameters:



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

Instance Attribute Details

#abandoned_atTime

Returns:

  • (Time)


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

required :abandoned_at, Time

#abandonment_reasonSymbol, Dodopayments::Models::WebhookPayload::Data::AbandonedCheckout::AbandonmentReason



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

required :abandonment_reason,
enum: -> { Dodopayments::WebhookPayload::Data::AbandonedCheckout::AbandonmentReason }

#customer_idString

Returns:

  • (String)


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

required :customer_id, String

#payload_typeSymbol, :AbandonedCheckout

Returns:

  • (Symbol, :AbandonedCheckout)


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

required :payload_type, const: :AbandonedCheckout

#payment_idString

Returns:

  • (String)


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

required :payment_id, String

#recovered_payment_idString?

Returns:

  • (String, nil)


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

optional :recovered_payment_id, String, nil?: true

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



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

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

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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