Class: Orb::Models::NewPlanUnitWithPercentPrice::UnitWithPercentConfig
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::NewPlanUnitWithPercentPrice::UnitWithPercentConfig
- Defined in:
- lib/orb/models/new_plan_unit_with_percent_price.rb,
sig/orb/models/new_plan_unit_with_percent_price.rbs
Overview
Instance Attribute Summary collapse
-
#percent ⇒ String
What percent, out of 100, of the calculated total to charge.
-
#unit_amount ⇒ String
Rate per unit of usage.
Instance Method Summary collapse
-
#initialize(percent:, unit_amount:) ⇒ UnitWithPercentConfig
constructor
Configuration for unit_with_percent pricing.
- #to_hash ⇒ { percent: String, unit_amount: String }
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(percent:, unit_amount:) ⇒ UnitWithPercentConfig
Configuration for unit_with_percent pricing
|
|
# File 'lib/orb/models/new_plan_unit_with_percent_price.rb', line 214
|
Instance Attribute Details
#percent ⇒ String
What percent, out of 100, of the calculated total to charge
206 |
# File 'lib/orb/models/new_plan_unit_with_percent_price.rb', line 206 required :percent, String |
#unit_amount ⇒ String
Rate per unit of usage
212 |
# File 'lib/orb/models/new_plan_unit_with_percent_price.rb', line 212 required :unit_amount, String |
Instance Method Details
#to_hash ⇒ { percent: String, unit_amount: String }
144 |
# File 'sig/orb/models/new_plan_unit_with_percent_price.rbs', line 144
def to_hash: -> { percent: String, unit_amount: String }
|