Class: Dodopayments::Models::CheckoutSessionResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/checkout_session_response.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(session_id:, checkout_url: nil) ⇒ Object

Parameters:

  • session_id (String)

    The ID of the created checkout session

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

    Checkout url (None when payment_method_id is provided)



# File 'lib/dodopayments/models/checkout_session_response.rb', line 19

Instance Attribute Details

#checkout_urlString?

Checkout url (None when payment_method_id is provided)

Returns:

  • (String, nil)


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

optional :checkout_url, String, nil?: true

#session_idString

The ID of the created checkout session

Returns:

  • (String)


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

required :session_id, String