Class: Stripe::BillingPortal::SessionCreateParams::FlowData::SubscriptionCancel
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::BillingPortal::SessionCreateParams::FlowData::SubscriptionCancel
- Defined in:
- lib/stripe/params/billing_portal/session_create_params.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.
65 66 67 68 |
# File 'lib/stripe/params/billing_portal/session_create_params.rb', line 65 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.
61 62 63 |
# File 'lib/stripe/params/billing_portal/session_create_params.rb', line 61 def retention @retention end |
#subscription ⇒ Object
The ID of the subscription to be canceled.
63 64 65 |
# File 'lib/stripe/params/billing_portal/session_create_params.rb', line 63 def subscription @subscription end |