Class: Orb::Models::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig::DimensionValue

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(dimension_values:, group:) ⇒ Object

Configuration for cumulative_grouped_bulk pricing

Parameters:



12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
# File 'lib/orb/models/price.rb', line 12315

class DimensionValue < Orb::Internal::Type::BaseModel
  # @!attribute grouping_key
  #   Grouping key value
  #
  #   @return [String]
  required :grouping_key, String

  # @!attribute tier_lower_bound
  #   Tier lower bound
  #
  #   @return [String]
  required :tier_lower_bound, String

  # @!attribute unit_amount
  #   Unit amount for this combination
  #
  #   @return [String]
  required :unit_amount, String

  # @!method initialize(grouping_key:, tier_lower_bound:, unit_amount:)
  #   Configuration for a dimension value entry
  #
  #   @param grouping_key [String] Grouping key value
  #
  #   @param tier_lower_bound [String] Tier lower bound
  #
  #   @param unit_amount [String] Unit amount for this combination
end

Instance Attribute Details

#grouping_key ⇒ String

Grouping key value

Parameters:

  • value (String)

Returns:

  • (String)


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

required :grouping_key, String

#tier_lower_bound ⇒ String

Tier lower bound

Parameters:

  • value (String)

Returns:

  • (String)


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

required :tier_lower_bound, String

#unit_amount ⇒ String

Unit amount for this combination

Parameters:

  • value (String)

Returns:

  • (String)


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

required :unit_amount, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


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

def to_hash: -> {