Class: Stripe::SubscriptionService::CreateParams::Item::Trial

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/subscription_service.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.



1237
1238
1239
1240
# File 'lib/stripe/services/subscription_service.rb', line 1237

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.



1233
1234
1235
# File 'lib/stripe/services/subscription_service.rb', line 1233

def converts_to
  @converts_to
end

#typeObject

Determines the type of trial for this item.



1235
1236
1237
# File 'lib/stripe/services/subscription_service.rb', line 1235

def type
  @type
end