Class: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/orb/models/new_subscription_max_group_tiered_package_price.rb,
sig/orb/models/new_subscription_max_group_tiered_package_price.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(grouping_key:, package_size:, tiers:) ⇒ Object

Some parameter documentations has been truncated, see Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig for more details.

Configuration for max_group_tiered_package pricing

Parameters:



222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
# File 'lib/orb/models/new_subscription_max_group_tiered_package_price.rb', line 222

class Tier < Orb::Internal::Type::BaseModel
  # @!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(tier_lower_bound:, unit_amount:)
  #   Configuration for a single tier
  #
  #   @param tier_lower_bound [String]
  #
  #   @param unit_amount [String] Per unit amount
end

Instance Attribute Details

#tier_lower_boundString

Parameters:

  • value (String)

Returns:

  • (String)


226
# File 'lib/orb/models/new_subscription_max_group_tiered_package_price.rb', line 226

required :tier_lower_bound, String

#unit_amountString

Per unit amount

Parameters:

  • value (String)

Returns:

  • (String)


232
# File 'lib/orb/models/new_subscription_max_group_tiered_package_price.rb', line 232

required :unit_amount, String

Instance Method Details

#to_hash{ tier_lower_bound: String, unit_amount: String }

Returns:

  • ({ tier_lower_bound: String, unit_amount: String })


163
# File 'sig/orb/models/new_subscription_max_group_tiered_package_price.rbs', line 163

def to_hash: -> { tier_lower_bound: String, unit_amount: String }