Class: MetronomeSDK::Models::V1::Customers::PlanAddParams::TrialSpec

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/v1/customers/plan_add_params.rb

Defined Under Namespace

Classes: SpendingCap

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:



# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 198


Instance Attribute Details

#length_in_daysFloat

Length of the trial period in days.

Returns:

  • (Float)


191
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 191

required :length_in_days, Float

#spending_capMetronomeSDK::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 }