Class: Orb::Models::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig::Tier

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/orb/models/new_subscription_tiered_with_minimum_price.rb,
sig/orb/models/new_subscription_tiered_with_minimum_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(minimum_amount:, tier_lower_bound:, unit_amount:) ⇒ Object

Configuration for a single tier

Parameters:

  • minimum_amount (String)
  • tier_lower_bound (String)
  • unit_amount (String) —

    Per unit amount



240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
# File 'lib/orb/models/new_subscription_tiered_with_minimum_price.rb', line 240

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

Parameters:

  • value (String)

Returns:

  • (String)


244
# File 'lib/orb/models/new_subscription_tiered_with_minimum_price.rb', line 244

required :minimum_amount, String

#tier_lower_bound ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


249
# File 'lib/orb/models/new_subscription_tiered_with_minimum_price.rb', line 249

required :tier_lower_bound, String

#unit_amount ⇒ String

Per unit amount

Parameters:

  • value (String)

Returns:

  • (String)


255
# File 'lib/orb/models/new_subscription_tiered_with_minimum_price.rb', line 255

required :unit_amount, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


185
# File 'sig/orb/models/new_subscription_tiered_with_minimum_price.rbs', line 185

def to_hash: -> {