Class: Orb::Models::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig::Tier

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/orb/models/price.rb,
sig/orb/models/price.rbs

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(package_size:, tiers:) ⇒ Object

Some parameter documentations has been truncated, see Orb::Models::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig for more details.

Configuration for tiered_package_with_minimum pricing

Parameters:



4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
# File 'lib/orb/models/price.rb', line 4811

class Tier < Orb::Internal::Type::BaseModel
  # @!attribute minimum_amount
  #
  #   @return [String]
  required :minimum_amount, String

  # @!attribute per_unit
  #
  #   @return [String]
  required :per_unit, String

  # @!attribute tier_lower_bound
  #
  #   @return [String]
  required :tier_lower_bound, String

  # @!method initialize(minimum_amount:, per_unit:, tier_lower_bound:)
  #   Configuration for a single tier
  #
  #   @param minimum_amount [String]
  #   @param per_unit [String]
  #   @param tier_lower_bound [String]
end

Instance Attribute Details

#minimum_amount ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


4815
# File 'lib/orb/models/price.rb', line 4815

required :minimum_amount, String

#per_unit ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


4820
# File 'lib/orb/models/price.rb', line 4820

required :per_unit, String

#tier_lower_bound ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


4825
# File 'lib/orb/models/price.rb', line 4825

required :tier_lower_bound, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


3599
# File 'sig/orb/models/price.rbs', line 3599

def to_hash: -> {