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
4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 |
# File 'lib/orb/models/price.rb', line 4377 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
4381 |
# File 'lib/orb/models/price.rb', line 4381 required :minimum_amount, String |
#per_unit ⇒ String
4386 |
# File 'lib/orb/models/price.rb', line 4386 required :per_unit, String |
#tier_lower_bound ⇒ String
4391 |
# File 'lib/orb/models/price.rb', line 4391 required :tier_lower_bound, String |
Instance Method Details
#to_hash ⇒ {
3271 |
# File 'sig/orb/models/price.rbs', line 3271
def to_hash: -> {
|