Class: MetronomeSDK::Models::V1::Customers::PlanAddParams::TrialSpec
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::V1::Customers::PlanAddParams::TrialSpec
- Defined in:
- lib/metronome_sdk/models/v1/customers/plan_add_params.rb
Defined Under Namespace
Classes: SpendingCap
Instance Attribute Summary collapse
-
#length_in_days ⇒ Float
Length of the trial period in days.
- #spending_cap ⇒ MetronomeSDK::Models::V1::Customers::PlanAddParams::TrialSpec::SpendingCap?
Instance Method Summary collapse
-
#initialize(length_in_days: , spending_cap: nil) ⇒ Object
constructor
A custom trial can be set for the customer’s plan.
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(length_in_days: , spending_cap: nil) ⇒ Object
A custom trial can be set for the customer’s plan. See the [trial configuration documentation](docs.metronome.com/provisioning/configure-trials/) for details.
|
|
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 198
|
Instance Attribute Details
#length_in_days ⇒ Float
Length of the trial period in days.
191 |
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 191 required :length_in_days, Float |
#spending_cap ⇒ MetronomeSDK::Models::V1::Customers::PlanAddParams::TrialSpec::SpendingCap?
196 |
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 196 optional :spending_cap, -> { MetronomeSDK::V1::Customers::PlanAddParams::TrialSpec::SpendingCap } |