Class: Orb::Models::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig::ConsumptionTable

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(consumption_table:, prorate: nil) ⇒ ConsumptionTable

Some parameter documentations has been truncated, see Orb::Models::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig for more details.

Configuration for threshold_total_amount pricing

Parameters:



2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
# File 'lib/orb/models/price.rb', line 2707

class ConsumptionTable < Orb::Internal::Type::BaseModel
  # @!attribute threshold
  #
  #   @return [String]
  required :threshold, String

  # @!attribute total_amount
  #   Total amount for this threshold
  #
  #   @return [String]
  required :total_amount, String

  # @!method initialize(threshold:, total_amount:)
  #   Configuration for a single threshold
  #
  #   @param threshold [String]
  #
  #   @param total_amount [String] Total amount for this threshold
end

Instance Attribute Details

#thresholdString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :threshold, String

#total_amountString

Total amount for this threshold

Parameters:

  • value (String)

Returns:

  • (String)


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

required :total_amount, String

Instance Method Details

#to_hash{ threshold: String, total_amount: String }

Returns:

  • ({ threshold: String, total_amount: String })


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

def to_hash: -> { threshold: String, total_amount: String }