Class: Stripe::BillingPortal::Session::CreateParams::FlowData::SubscriptionCancel
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::BillingPortal::Session::CreateParams::FlowData::SubscriptionCancel
- Defined in:
- lib/stripe/resources/billing_portal/session.rb
Defined Under Namespace
Classes: Retention
Instance Attribute Summary collapse
-
#retention ⇒ Object
Specify a retention strategy to be used in the cancellation flow.
-
#subscription ⇒ Object
The ID of the subscription to be canceled.
Instance Method Summary collapse
-
#initialize(retention: nil, subscription: nil) ⇒ SubscriptionCancel
constructor
A new instance of SubscriptionCancel.
Methods inherited from RequestParams
Constructor Details
#initialize(retention: nil, subscription: nil) ⇒ SubscriptionCancel
Returns a new instance of SubscriptionCancel.
163 164 165 166 |
# File 'lib/stripe/resources/billing_portal/session.rb', line 163 def initialize(retention: nil, subscription: nil) @retention = retention @subscription = subscription end |
Instance Attribute Details
#retention ⇒ Object
Specify a retention strategy to be used in the cancellation flow.
159 160 161 |
# File 'lib/stripe/resources/billing_portal/session.rb', line 159 def retention @retention end |
#subscription ⇒ Object
The ID of the subscription to be canceled.
161 162 163 |
# File 'lib/stripe/resources/billing_portal/session.rb', line 161 def subscription @subscription end |