Class: Stripe::SubscriptionSchedule::AmendParams::Amendment::ItemAction::Set::Trial

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(converts_to: nil, type: nil) ⇒ Trial

Returns a new instance of Trial.



2529
2530
2531
2532
# File 'lib/stripe/resources/subscription_schedule.rb', line 2529

def initialize(converts_to: nil, type: nil)
  @converts_to = converts_to
  @type = type
end

Instance Attribute Details

#converts_toObject

List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.



2525
2526
2527
# File 'lib/stripe/resources/subscription_schedule.rb', line 2525

def converts_to
  @converts_to
end

#typeObject

Determines the type of trial for this item.



2527
2528
2529
# File 'lib/stripe/resources/subscription_schedule.rb', line 2527

def type
  @type
end