Class: Stripe::BillingPortal::Configuration::CreateParams::Features::SubscriptionCancel::CancellationReason

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(enabled: nil, options: nil) ⇒ CancellationReason

Returns a new instance of CancellationReason.



204
205
206
207
# File 'lib/stripe/resources/billing_portal/configuration.rb', line 204

def initialize(enabled: nil, options: nil)
  @enabled = enabled
  @options = options
end

Instance Attribute Details

#enabledObject

Whether the feature is enabled.



200
201
202
# File 'lib/stripe/resources/billing_portal/configuration.rb', line 200

def enabled
  @enabled
end

#optionsObject

Which cancellation reasons will be given as options to the customer.



202
203
204
# File 'lib/stripe/resources/billing_portal/configuration.rb', line 202

def options
  @options
end