Class: Dodopayments::Models::CheckoutSessionStatus

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

Overview

Instance Attribute 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(id: , created_at: , customer_email: nil, customer_name: nil, payment_id: nil, payment_status: nil) ⇒ Object

Some parameter documentations has been truncated, see Dodopayments::Models::CheckoutSessionStatus for more details.

Parameters:

  • id (String) (defaults to: )

    Id of the checkout session

  • created_at (Time) (defaults to: )

    Created at timestamp

  • customer_email (String, nil) (defaults to: nil)

    Customer email: prefers payment’s customer, falls back to session

  • customer_name (String, nil) (defaults to: nil)

    Customer name: prefers payment’s customer, falls back to session

  • payment_id (String, nil) (defaults to: nil)

    Id of the payment created by the checkout sessions.

  • payment_status (Symbol, Dodopayments::Models::IntentStatus, nil) (defaults to: nil)

    status of the payment.



# File 'lib/dodopayments/models/checkout_session_status.rb', line 47

Instance Attribute Details

#created_atTime

Created at timestamp

Returns:

  • (Time)


17
# File 'lib/dodopayments/models/checkout_session_status.rb', line 17

required :created_at, Time

#customer_emailString?

Customer email: prefers payment’s customer, falls back to session

Returns:

  • (String, nil)


23
# File 'lib/dodopayments/models/checkout_session_status.rb', line 23

optional :customer_email, String, nil?: true

#customer_nameString?

Customer name: prefers payment’s customer, falls back to session

Returns:

  • (String, nil)


29
# File 'lib/dodopayments/models/checkout_session_status.rb', line 29

optional :customer_name, String, nil?: true

#idString

Id of the checkout session

Returns:

  • (String)


11
# File 'lib/dodopayments/models/checkout_session_status.rb', line 11

required :id, String

#payment_idString?

Id of the payment created by the checkout sessions.

Null if checkout sessions is still at the details collection stage.

Returns:

  • (String, nil)


37
# File 'lib/dodopayments/models/checkout_session_status.rb', line 37

optional :payment_id, String, nil?: true

#payment_statusSymbol, ...

status of the payment.

Null if checkout sessions is still at the details collection stage.

Returns:



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

optional :payment_status, enum: -> { Dodopayments::IntentStatus }, nil?: true