Class: Stripe::BillingPortal::ConfigurationService::UpdateParams::Features::SubscriptionCancel::CancellationReason

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



300
301
302
303
# File 'lib/stripe/services/billing_portal/configuration_service.rb', line 300

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

Instance Attribute Details

#enabledObject

Whether the feature is enabled.



296
297
298
# File 'lib/stripe/services/billing_portal/configuration_service.rb', line 296

def enabled
  @enabled
end

#optionsObject

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



298
299
300
# File 'lib/stripe/services/billing_portal/configuration_service.rb', line 298

def options
  @options
end