Class: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Percent::PercentConfig
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Percent::PercentConfig
- Defined in:
- lib/orb/models/subscription_schedule_plan_change_params.rb,
sig/orb/models/subscription_schedule_plan_change_params.rbs
Overview
Instance Attribute Summary collapse
-
#maximum_amount ⇒ String?
Maximum amount to charge.
-
#minimum_amount ⇒ String?
Minimum amount to charge.
-
#percent ⇒ Float
Fraction of the component subtotals to charge (0 < percent <= 1).
-
#prorated ⇒ Boolean?
If true, the minimum_amount is prorated based on the service period.
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #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 ⇒ Object
3815 |
# File 'sig/orb/models/subscription_schedule_plan_change_params.rbs', line 3815
def initialize: (
|
Instance Attribute Details
#maximum_amount ⇒ String?
Maximum amount to charge. If unset, the fee has no upper bound.
5520 |
# File 'lib/orb/models/subscription_schedule_plan_change_params.rb', line 5520 optional :maximum_amount, String, nil?: true |
#minimum_amount ⇒ String?
Minimum amount to charge. If unset, the fee is bounded below by 0.
5526 |
# File 'lib/orb/models/subscription_schedule_plan_change_params.rb', line 5526 optional :minimum_amount, String, nil?: true |
#percent ⇒ Float
Fraction of the component subtotals to charge (0 < percent <= 1).
5514 |
# File 'lib/orb/models/subscription_schedule_plan_change_params.rb', line 5514 required :percent, Float |
#prorated ⇒ Boolean?
If true, the minimum_amount is prorated based on the service period. The maximum_amount is an absolute cap (never prorated), and the percent applied to upstream subtotals is never prorated either.
5534 |
# File 'lib/orb/models/subscription_schedule_plan_change_params.rb', line 5534 optional :prorated, Orb::Internal::Type::Boolean |
Instance Method Details
#to_hash ⇒ {
3822 |
# File 'sig/orb/models/subscription_schedule_plan_change_params.rbs', line 3822
def to_hash: -> {
|