Class: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::ProrationRounding::Invoice

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/metronome_sdk/models/contract_without_amendments.rb,
sig/metronome_sdk/models/contract_without_amendments.rbs

Overview

See Also:

  • MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::ProrationRounding#invoice

Defined Under Namespace

Modules: RoundingMethod

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(decimal_places:, rounding_method:) ⇒ Object

Some parameter documentations has been truncated, see MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::ProrationRounding::Invoice for more details.

Parameters:



# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 690

Instance Attribute Details

#decimal_placesFloat

Number of decimal places to round to. Applied directly to the stored monetary representation. Negative values round to powers of 10 (e.g., -2 rounds to nearest 100 in the stored unit. For USD, this means rounding to the nearest dollar).

Parameters:

  • value (Float)

Returns:

  • (Float)


682
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 682

required :decimal_places, Float

#rounding_methodSymbol, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::ProrationRounding::Invoice::RoundingMethod

Parameters:

  • value (MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::ProrationRounding::Invoice::rounding_method)

Returns:



687
688
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 687

required :rounding_method,
enum: -> { MetronomeSDK::ContractWithoutAmendments::RecurringCommit::ProrationRounding::Invoice::RoundingMethod }

Instance Method Details

#to_hash{

Returns:

  • ({)


656
# File 'sig/metronome_sdk/models/contract_without_amendments.rbs', line 656

def to_hash: -> {