Module: Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount

Extended by:
Internal::Type::Union
Defined in:
lib/orb/models/subscription_price_intervals_params.rb

Defined Under Namespace

Classes: Amount, Percentage, Usage

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Instance Method Details

#initialize(percentage_discount: , discount_type: :percentage) ⇒ Object

Some parameter documentations has been truncated, see Percentage for more details.

Parameters:

  • percentage_discount (Float) (defaults to: )

    Only available if discount_type is ‘percentage`. This is a number between 0 and

  • discount_type (Symbol, :percentage) (defaults to: :percentage)


# File 'lib/orb/models/subscription_price_intervals_params.rb', line 219