Class: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/orb/models/beta/external_plan_id_create_plan_version_params.rb,
sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig for more details.

Configuration for tiered_with_proration pricing

Parameters:



2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
# File 'lib/orb/models/beta/external_plan_id_create_plan_version_params.rb', line 2087

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

Parameters:

  • value (String)

Returns:

  • (String)


2092
# File 'lib/orb/models/beta/external_plan_id_create_plan_version_params.rb', line 2092

required :tier_lower_bound, String

#unit_amount ⇒ String

Amount per unit

Parameters:

  • value (String)

Returns:

  • (String)


2098
# File 'lib/orb/models/beta/external_plan_id_create_plan_version_params.rb', line 2098

required :unit_amount, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


1451
# File 'sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs', line 1451

def to_hash: -> {