Class: Dodopayments::Models::CheckoutSessionRequest::SubscriptionData

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

Overview

See Also:

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(on_demand: nil, trial_period_days: nil) ⇒ Object

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

Parameters:

  • on_demand (Dodopayments::Models::OnDemandSubscription, nil) (defaults to: nil)
  • trial_period_days (Integer, nil) (defaults to: nil)

    Optional trial period in days If specified, this value overrides the trial perio



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

Instance Attribute Details

#on_demandDodopayments::Models::OnDemandSubscription?



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

optional :on_demand, -> { Dodopayments::OnDemandSubscription }, nil?: true

#trial_period_daysInteger?

Optional trial period in days If specified, this value overrides the trial period set in the product’s price Must be between 0 and 10000 days

Returns:

  • (Integer, nil)


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

optional :trial_period_days, Integer, nil?: true