Class: Stigg::Models::V1::AddonUpdateParams::Charges::PricingModel::PricePeriod::CreditRate

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/stigg/models/v1/addon_update_params.rb,
sig/stigg/models/v1/addon_update_params.rbs

Overview

See Also:

  • Stigg::Models::V1::AddonUpdateParams::Charges::PricingModel::PricePeriod#credit_rate

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

#initializeObject



1962
# File 'sig/stigg/models/v1/addon_update_params.rbs', line 1962

def initialize: (

Instance Attribute Details

#amountFloat

The credit rate amount

Parameters:

  • value (Float)

Returns:

  • (Float)


1586
# File 'lib/stigg/models/v1/addon_update_params.rb', line 1586

required :amount, Float

#cost_formulaString?

Optional cost formula expression

Parameters:

  • (String)

Returns:

  • (String, nil)


1598
# File 'lib/stigg/models/v1/addon_update_params.rb', line 1598

optional :cost_formula, String, api_name: :costFormula

#currency_idString

The custom currency ID

Parameters:

  • value (String)

Returns:

  • (String)


1592
# File 'lib/stigg/models/v1/addon_update_params.rb', line 1592

required :currency_id, String, api_name: :currencyId

Instance Method Details

#to_hash{

Returns:

  • ({)


1968
# File 'sig/stigg/models/v1/addon_update_params.rbs', line 1968

def to_hash: -> {