Class: Orb::Models::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig::Tier
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig::Tier
- Defined in:
- lib/orb/models/price.rb,
sig/orb/models/price.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(package_size:, tiers:) ⇒ Object
constructor
Some parameter documentations has been truncated, see Orb::Models::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig for more details.
- #to_hash ⇒ {
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
4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 |
# File 'lib/orb/models/price.rb', line 4809 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
4813 |
# File 'lib/orb/models/price.rb', line 4813 required :minimum_amount, String |
#per_unit ⇒ String
4818 |
# File 'lib/orb/models/price.rb', line 4818 required :per_unit, String |
#tier_lower_bound ⇒ String
4823 |
# File 'lib/orb/models/price.rb', line 4823 required :tier_lower_bound, String |
Instance Method Details
#to_hash ⇒ {
3598 |
# File 'sig/orb/models/price.rbs', line 3598
def to_hash: -> {
|