Class: Stripe::BillingPortal::ConfigurationUpdateParams::Features::SubscriptionCancel::CancellationReason

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



60
61
62
63
# File 'lib/stripe/params/billing_portal/configuration_update_params.rb', line 60

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

Instance Attribute Details

#enabledObject

Whether the feature is enabled.



56
57
58
# File 'lib/stripe/params/billing_portal/configuration_update_params.rb', line 56

def enabled
  @enabled
end

#optionsObject

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



58
59
60
# File 'lib/stripe/params/billing_portal/configuration_update_params.rb', line 58

def options
  @options
end