Class: Stripe::BillingPortal::ConfigurationCreateParams::Features::SubscriptionCancel::CancellationReason

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



63
64
65
66
# File 'lib/stripe/params/billing_portal/configuration_create_params.rb', line 63

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

Instance Attribute Details

#enabledObject

Whether the feature is enabled.



59
60
61
# File 'lib/stripe/params/billing_portal/configuration_create_params.rb', line 59

def enabled
  @enabled
end

#optionsObject

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



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

def options
  @options
end