Class: Orb::Models::Price::BulkWithProration::BulkWithProrationConfig::Tier

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

Configuration for bulk_with_proration pricing

Parameters:



7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
# File 'lib/orb/models/price.rb', line 7515

class Tier < Orb::Internal::Type::BaseModel
  # @!attribute unit_amount
  #   Cost per unit
  #
  #   @return [String]
  required :unit_amount, String

  # @!attribute tier_lower_bound
  #   The lower bound for this tier
  #
  #   @return [String, nil]
  optional :tier_lower_bound, String, nil?: true

  # @!method initialize(unit_amount:, tier_lower_bound: nil)
  #   Configuration for a single bulk pricing tier with proration
  #
  #   @param unit_amount [String] Cost per unit
  #
  #   @param tier_lower_bound [String, nil] The lower bound for this tier
end

Instance Attribute Details

#tier_lower_boundString?

The lower bound for this tier

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


7526
# File 'lib/orb/models/price.rb', line 7526

optional :tier_lower_bound, String, nil?: true

#unit_amountString

Cost per unit

Parameters:

  • value (String)

Returns:

  • (String)


7520
# File 'lib/orb/models/price.rb', line 7520

required :unit_amount, String

Instance Method Details

#to_hash{ unit_amount: String, tier_lower_bound: String? }

Returns:

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


5611
# File 'sig/orb/models/price.rbs', line 5611

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