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:



11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
# File 'lib/orb/models/price.rb', line 11434

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_keyString

Grouping key value

Parameters:

  • value (String)

Returns:

  • (String)


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

required :grouping_key, String

#tier_lower_boundString

Tier lower bound

Parameters:

  • value (String)

Returns:

  • (String)


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

required :tier_lower_bound, String

#unit_amountString

Unit amount for this combination

Parameters:

  • value (String)

Returns:

  • (String)


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

required :unit_amount, String

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {