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

Parameters:



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

Instance Attribute Details

#abandoned_atTime

Returns:

  • (Time)


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

required :abandoned_at, Time

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



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

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

#brand_idString

Brand id this abandoned checkout belongs to

Returns:

  • (String)


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

required :brand_id, String

#customer_idString

Returns:

  • (String)


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

required :customer_id, String

#payload_typeSymbol, :AbandonedCheckout

Returns:

  • (Symbol, :AbandonedCheckout)


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

required :payload_type, const: :AbandonedCheckout

#payment_idString

Returns:

  • (String)


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

required :payment_id, String

#recovered_payment_idString?

Returns:

  • (String, nil)


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

optional :recovered_payment_id, String, nil?: true

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



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

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

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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