Class: Stigg::Models::V1::PlanUpdateParams::Charges::OveragePricingModel::PricePeriod::Price
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Stigg::Models::V1::PlanUpdateParams::Charges::OveragePricingModel::PricePeriod::Price
- Defined in:
- lib/stigg/models/v1/plan_update_params.rb,
sig/stigg/models/v1/plan_update_params.rbs
Overview
Defined Under Namespace
Modules: Currency
Instance Attribute Summary collapse
-
#amount ⇒ Float
The price amount.
-
#currency ⇒ Symbol, ...
The price currency.
Instance Method Summary collapse
-
#initialize(amount:, currency: nil) ⇒ Object
constructor
The price amount and currency.
- #to_hash ⇒ {
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(amount:, currency: nil) ⇒ Object
The price amount and currency
|
|
# File 'lib/stigg/models/v1/plan_update_params.rb', line 601
|
Instance Attribute Details
#amount ⇒ Float
The price amount
592 |
# File 'lib/stigg/models/v1/plan_update_params.rb', line 592 required :amount, Float |
#currency ⇒ Symbol, ...
The price currency
598 599 |
# File 'lib/stigg/models/v1/plan_update_params.rb', line 598 optional :currency, enum: -> { Stigg::V1::PlanUpdateParams::Charges::OveragePricingModel::PricePeriod::Price::Currency } |
Instance Method Details
#to_hash ⇒ {
672 |
# File 'sig/stigg/models/v1/plan_update_params.rbs', line 672
def to_hash: -> {
|