Class: Stigg::Models::V1::PlanListChargesResponse::CreditRate

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

Overview

See Also:

  • Stigg::Models::V1::PlanListChargesResponse#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



173
# File 'sig/stigg/models/v1/plan_list_charges_response.rbs', line 173

def initialize: (

Instance Attribute Details

#amountFloat

Credit rate amount

Parameters:

  • value (Float)

Returns:

  • (Float)


257
# File 'lib/stigg/models/v1/plan_list_charges_response.rb', line 257

required :amount, Float

#cost_formulaString?

Optional cost formula expression

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


269
# File 'lib/stigg/models/v1/plan_list_charges_response.rb', line 269

optional :cost_formula, String, api_name: :costFormula, nil?: true

#currency_idString

Custom currency identifier

Parameters:

  • value (String)

Returns:

  • (String)


263
# File 'lib/stigg/models/v1/plan_list_charges_response.rb', line 263

required :currency_id, String, api_name: :currencyId

Instance Method Details

#to_hash{

Returns:

  • ({)


179
# File 'sig/stigg/models/v1/plan_list_charges_response.rbs', line 179

def to_hash: -> {