Class: Orb::Models::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig::Tier
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig::Tier
- Defined in:
- lib/orb/models/new_floating_bulk_with_proration_price.rb,
sig/orb/models/new_floating_bulk_with_proration_price.rbs
Instance Attribute Summary collapse
-
#tier_lower_bound ⇒ String?
The lower bound for this tier.
-
#unit_amount ⇒ String
Cost per unit.
Instance Method Summary collapse
-
#initialize(tiers:) ⇒ Object
constructor
Configuration for bulk_with_proration pricing.
- #to_hash ⇒ { unit_amount: String, tier_lower_bound: String? }
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(tiers:) ⇒ Object
Configuration for bulk_with_proration pricing
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 |
# File 'lib/orb/models/new_floating_bulk_with_proration_price.rb', line 176 class Tier < Orb::Internal::Type::BaseModel # @!attribute unit_amount # Cost per unit # # @return [String] required :unit_amount, String # @!attribute tier_lower_bound # The lower bound for this tier # # @return [String, nil] optional :tier_lower_bound, String, nil?: true # @!method initialize(unit_amount:, tier_lower_bound: nil) # Configuration for a single bulk pricing tier with proration # # @param unit_amount [String] Cost per unit # # @param tier_lower_bound [String, nil] The lower bound for this tier end |
Instance Attribute Details
#tier_lower_bound ⇒ String?
The lower bound for this tier
187 |
# File 'lib/orb/models/new_floating_bulk_with_proration_price.rb', line 187 optional :tier_lower_bound, String, nil?: true |
#unit_amount ⇒ String
Cost per unit
181 |
# File 'lib/orb/models/new_floating_bulk_with_proration_price.rb', line 181 required :unit_amount, String |
Instance Method Details
#to_hash ⇒ { unit_amount: String, tier_lower_bound: String? }
132 |
# File 'sig/orb/models/new_floating_bulk_with_proration_price.rbs', line 132
def to_hash: -> { unit_amount: String, tier_lower_bound: String? }
|