Class: MetronomeSDK::Models::V1::Customers::PlanAddParams::PriceAdjustment
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::V1::Customers::PlanAddParams::PriceAdjustment
- Defined in:
- lib/metronome_sdk/models/v1/customers/plan_add_params.rb
Defined Under Namespace
Modules: AdjustmentType
Instance Attribute Summary collapse
- #adjustment_type ⇒ Symbol, MetronomeSDK::Models::V1::Customers::PlanAddParams::PriceAdjustment::AdjustmentType
- #charge_id ⇒ String
-
#quantity ⇒ Float?
the overridden quantity for a fixed charge.
-
#start_period ⇒ Float
Used in price ramps.
-
#tier ⇒ Float?
Used in pricing tiers.
-
#value ⇒ Float?
The amount of change to a price.
Instance Method Summary collapse
-
#initialize(adjustment_type: , charge_id: , start_period: , quantity: nil, tier: nil, value: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see PriceAdjustment for more details.
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(adjustment_type: , charge_id: , start_period: , quantity: nil, tier: nil, value: nil) ⇒ Object
Some parameter documentations has been truncated, see MetronomeSDK::Models::V1::Customers::PlanAddParams::PriceAdjustment for more details.
|
|
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 155
|
Instance Attribute Details
#adjustment_type ⇒ Symbol, MetronomeSDK::Models::V1::Customers::PlanAddParams::PriceAdjustment::AdjustmentType
120 121 |
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 120 required :adjustment_type, enum: -> { MetronomeSDK::V1::Customers::PlanAddParams::PriceAdjustment::AdjustmentType } |
#charge_id ⇒ String
126 |
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 126 required :charge_id, String |
#quantity ⇒ Float?
the overridden quantity for a fixed charge
139 |
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 139 optional :quantity, Float |
#start_period ⇒ Float
Used in price ramps. Indicates how many billing periods pass before the charge applies.
133 |
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 133 required :start_period, Float |
#tier ⇒ Float?
Used in pricing tiers. Indicates at what metric value the price applies.
145 |
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 145 optional :tier, Float |
#value ⇒ Float?
The amount of change to a price. Percentage and fixed adjustments can be positive or negative. Percentage-based adjustments should be decimals, e.g. -0.05 for a 5% discount.
153 |
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 153 optional :value, Float |