Class: MetronomeSDK::Models::V1::PlanListChargesResponse::UnitConversion
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::V1::PlanListChargesResponse::UnitConversion
- Defined in:
- lib/metronome_sdk/models/v1/plan_list_charges_response.rb
Overview
Defined Under Namespace
Modules: RoundingBehavior
Instance Attribute Summary collapse
-
#division_factor ⇒ Float
The conversion factor.
-
#rounding_behavior ⇒ Symbol, ...
Whether usage should be rounded down or up to the nearest whole number.
Instance Method Summary collapse
-
#initialize(division_factor: , rounding_behavior: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see UnitConversion for more details.
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.
|
|
# File 'lib/metronome_sdk/models/v1/plan_list_charges_response.rb', line 172
|
Instance Attribute Details
#division_factor ⇒ Float
The conversion factor
162 |
# File 'lib/metronome_sdk/models/v1/plan_list_charges_response.rb', line 162 required :division_factor, Float |
#rounding_behavior ⇒ Symbol, ...
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 } |