Class: Orb::Models::Price::TieredWithMinimum::TieredWithMinimumConfig::Tier
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::Price::TieredWithMinimum::TieredWithMinimumConfig::Tier
- Defined in:
- lib/orb/models/price.rb,
sig/orb/models/price.rbs
Instance Attribute Summary collapse
- #minimum_amount ⇒ String
- #tier_lower_bound ⇒ String
-
#unit_amount ⇒ String
Per unit amount.
Instance Method Summary collapse
-
#initialize(tiers:, hide_zero_amount_tiers: nil, prorate: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Orb::Models::Price::TieredWithMinimum::TieredWithMinimumConfig 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(tiers:, hide_zero_amount_tiers: nil, prorate: nil) ⇒ Object
Some parameter documentations has been truncated, see Orb::Models::Price::TieredWithMinimum::TieredWithMinimumConfig for more details.
Configuration for tiered_with_minimum pricing
3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 |
# File 'lib/orb/models/price.rb', line 3542 class Tier < Orb::Internal::Type::BaseModel # @!attribute minimum_amount # # @return [String] required :minimum_amount, String # @!attribute tier_lower_bound # # @return [String] required :tier_lower_bound, String # @!attribute unit_amount # Per unit amount # # @return [String] required :unit_amount, String # @!method initialize(minimum_amount:, tier_lower_bound:, unit_amount:) # Configuration for a single tier # # @param minimum_amount [String] # # @param tier_lower_bound [String] # # @param unit_amount [String] Per unit amount end |
Instance Attribute Details
#minimum_amount ⇒ String
3546 |
# File 'lib/orb/models/price.rb', line 3546 required :minimum_amount, String |
#tier_lower_bound ⇒ String
3551 |
# File 'lib/orb/models/price.rb', line 3551 required :tier_lower_bound, String |
#unit_amount ⇒ String
Per unit amount
3557 |
# File 'lib/orb/models/price.rb', line 3557 required :unit_amount, String |
Instance Method Details
#to_hash ⇒ {
2641 |
# File 'sig/orb/models/price.rbs', line 2641
def to_hash: -> {
|