Class: MetronomeSDK::Models::V1::PlanListChargesResponse::UnitConversion

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/v1/plan_list_charges_response.rb

Overview

See Also:

Defined Under Namespace

Modules: RoundingBehavior

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(division_factor: , rounding_behavior: nil) ⇒ Object

Some parameter documentations has been truncated, see MetronomeSDK::Models::V1::PlanListChargesResponse::UnitConversion for more details.

Specifies how quantities for usage based charges will be converted.

Parameters:



# File 'lib/metronome_sdk/models/v1/plan_list_charges_response.rb', line 172


Instance Attribute Details

#division_factorFloat

The conversion factor

Returns:

  • (Float)


162
# File 'lib/metronome_sdk/models/v1/plan_list_charges_response.rb', line 162

required :division_factor, Float

#rounding_behaviorSymbol, ...

Whether usage should be rounded down or up to the nearest whole number. If null, quantity will be rounded to 20 decimal places.



169
170
# File 'lib/metronome_sdk/models/v1/plan_list_charges_response.rb', line 169

optional :rounding_behavior,
enum: -> { MetronomeSDK::Models::V1::PlanListChargesResponse::UnitConversion::RoundingBehavior }