Class: Orb::Models::NewPlanCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb,
sig/orb/models/new_plan_cumulative_grouped_bulk_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:



210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
# File 'lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb', line 210

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)


215
# File 'lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb', line 215

required :grouping_key, String

#tier_lower_boundString

Tier lower bound

Parameters:

  • value (String)

Returns:

  • (String)


221
# File 'lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb', line 221

required :tier_lower_bound, String

#unit_amountString

Unit amount for this combination

Parameters:

  • value (String)

Returns:

  • (String)


227
# File 'lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb', line 227

required :unit_amount, String

Instance Method Details

#to_hash{

Returns:

  • ({)


166
# File 'sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs', line 166

def to_hash: -> {