Class: Telnyx::Models::Pricing::PricingTier

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/pricing/pricing_tier.rb,
sig/telnyx/models/pricing/pricing_tier.rbs

Defined Under Namespace

Modules: Rate

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(max:, min:, rate:) ⇒ Object

Some parameter documentations has been truncated, see Telnyx::Models::Pricing::PricingTier for more details.

Parameters:

  • max (Integer, nil)

    Upper bound of the tier (exclusive). Null means no upper limit.

  • min (Integer)

    Lower bound of the tier (inclusive).

  • rate (Float, String)

    Rate for this tier. Numeric for standard products, string for inference products



# File 'lib/telnyx/models/pricing/pricing_tier.rb', line 26

Instance Attribute Details

#maxInteger?

Upper bound of the tier (exclusive). Null means no upper limit.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


11
# File 'lib/telnyx/models/pricing/pricing_tier.rb', line 11

required :max, Integer, nil?: true

#minInteger

Lower bound of the tier (inclusive).

Parameters:

  • value (Integer)

Returns:

  • (Integer)


17
# File 'lib/telnyx/models/pricing/pricing_tier.rb', line 17

required :min, Integer

#rateFloat, String

Rate for this tier. Numeric for standard products, string for inference products.

Parameters:

  • value (Telnyx::Models::Pricing::PricingTier::rate)

Returns:

  • (Float, String)


24
# File 'lib/telnyx/models/pricing/pricing_tier.rb', line 24

required :rate, union: -> { Telnyx::Pricing::PricingTier::Rate }

Instance Method Details

#to_hash{

Returns:

  • ({)


26
# File 'sig/telnyx/models/pricing/pricing_tier.rbs', line 26

def to_hash: -> {