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:



11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
# File 'lib/orb/models/price.rb', line 11866

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)


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

required :grouping_key, String

#tier_lower_boundString

Tier lower bound

Parameters:

  • value (String)

Returns:

  • (String)


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

required :tier_lower_bound, String

#unit_amountString

Unit amount for this combination

Parameters:

  • value (String)

Returns:

  • (String)


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

required :unit_amount, String

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {