Class: Orb::Models::Price::TieredWithProration::TieredWithProrationConfig::Tier
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::Price::TieredWithProration::TieredWithProrationConfig::Tier
- Defined in:
- lib/orb/models/price.rb,
sig/orb/models/price.rbs
Instance Attribute Summary collapse
-
#tier_lower_bound ⇒ String
Inclusive tier starting value.
-
#unit_amount ⇒ String
Amount per unit.
Instance Method Summary collapse
-
#initialize(tiers:) ⇒ Object
constructor
Some parameter documentations has been truncated, see Orb::Models::Price::TieredWithProration::TieredWithProrationConfig for more details.
- #to_hash ⇒ { tier_lower_bound: String, unit_amount: 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
Some parameter documentations has been truncated, see Orb::Models::Price::TieredWithProration::TieredWithProrationConfig for more details.
Configuration for tiered_with_proration pricing
6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 |
# File 'lib/orb/models/price.rb', line 6420 class Tier < Orb::Internal::Type::BaseModel # @!attribute tier_lower_bound # Inclusive tier starting value # # @return [String] required :tier_lower_bound, String # @!attribute unit_amount # Amount per unit # # @return [String] required :unit_amount, String # @!method initialize(tier_lower_bound:, unit_amount:) # Configuration for a single tiered with proration tier # # @param tier_lower_bound [String] Inclusive tier starting value # # @param unit_amount [String] Amount per unit end |
Instance Attribute Details
#tier_lower_bound ⇒ String
Inclusive tier starting value
6425 |
# File 'lib/orb/models/price.rb', line 6425 required :tier_lower_bound, String |
#unit_amount ⇒ String
Amount per unit
6431 |
# File 'lib/orb/models/price.rb', line 6431 required :unit_amount, String |
Instance Method Details
#to_hash ⇒ { tier_lower_bound: String, unit_amount: String }
4807 |
# File 'sig/orb/models/price.rbs', line 4807
def to_hash: -> { tier_lower_bound: String, unit_amount: String }
|