Class: Stripe::Subscription::CreateParams::TrialSettings

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/subscription.rb

Defined Under Namespace

Classes: EndBehavior

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(end_behavior: nil) ⇒ TrialSettings

Returns a new instance of TrialSettings.



1422
1423
1424
# File 'lib/stripe/resources/subscription.rb', line 1422

def initialize(end_behavior: nil)
  @end_behavior = end_behavior
end

Instance Attribute Details

#end_behaviorObject

Defines how the subscription should behave when the user’s free trial ends.



1420
1421
1422
# File 'lib/stripe/resources/subscription.rb', line 1420

def end_behavior
  @end_behavior
end