Class: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier
- Defined in:
- lib/orb/models/new_floating_tiered_package_with_minimum_price.rb,
sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(minimum_amount:, per_unit:, tier_lower_bound:) ⇒ Object
constructor
Configuration for a single tier.
- #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(minimum_amount:, per_unit:, tier_lower_bound:) ⇒ Object
Configuration for a single tier
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 |
# File 'lib/orb/models/new_floating_tiered_package_with_minimum_price.rb', line 217 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
221 |
# File 'lib/orb/models/new_floating_tiered_package_with_minimum_price.rb', line 221 required :minimum_amount, String |
#per_unit ⇒ String
226 |
# File 'lib/orb/models/new_floating_tiered_package_with_minimum_price.rb', line 226 required :per_unit, String |
#tier_lower_bound ⇒ String
231 |
# File 'lib/orb/models/new_floating_tiered_package_with_minimum_price.rb', line 231 required :tier_lower_bound, String |
Instance Method Details
#to_hash ⇒ {
167 |
# File 'sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs', line 167
def to_hash: -> {
|