Class: Dodopayments::Models::CheckoutSessionRequest::Customization

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

Overview

See Also:

Defined Under Namespace

Modules: Theme

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(force_language: nil, show_on_demand_tag: nil, show_order_details: nil, theme: nil) ⇒ Object

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

Customization for the checkout session page

Parameters:

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

    Force the checkout interface to render in a specific language (e.g. ‘en`, `es`)

  • show_on_demand_tag (Boolean) (defaults to: nil)

    Show on demand tag

  • show_order_details (Boolean) (defaults to: nil)

    Show order details by default

  • theme (Symbol, Dodopayments::Models::CheckoutSessionRequest::Customization::Theme) (defaults to: nil)

    Theme of the page



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


Instance Attribute Details

#force_languageString?

Force the checkout interface to render in a specific language (e.g. ‘en`, `es`)

Returns:

  • (String, nil)


223
# File 'lib/dodopayments/models/checkout_session_request.rb', line 223

optional :force_language, String, nil?: true

#show_on_demand_tagBoolean?

Show on demand tag

Default is true

Returns:

  • (Boolean, nil)


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

optional :show_on_demand_tag, Dodopayments::Internal::Type::Boolean

#show_order_detailsBoolean?

Show order details by default

Default is true

Returns:

  • (Boolean, nil)


239
# File 'lib/dodopayments/models/checkout_session_request.rb', line 239

optional :show_order_details, Dodopayments::Internal::Type::Boolean

#themeSymbol, ...

Theme of the page

Default is ‘System`.



247
# File 'lib/dodopayments/models/checkout_session_request.rb', line 247

optional :theme, enum: -> { Dodopayments::CheckoutSessionRequest::Customization::Theme }