Class: Stripe::BillingPortal::SessionService::CreateParams::FlowData::AfterCompletion
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::BillingPortal::SessionService::CreateParams::FlowData::AfterCompletion
- Defined in:
- lib/stripe/services/billing_portal/session_service.rb
Defined Under Namespace
Classes: HostedConfirmation, Redirect
Instance Attribute Summary collapse
-
#hosted_confirmation ⇒ Object
Configuration when ‘after_completion.type=hosted_confirmation`.
-
#redirect ⇒ Object
Configuration when ‘after_completion.type=redirect`.
-
#type ⇒ Object
The specified behavior after the flow is completed.
Instance Method Summary collapse
-
#initialize(hosted_confirmation: nil, redirect: nil, type: nil) ⇒ AfterCompletion
constructor
A new instance of AfterCompletion.
Methods inherited from RequestParams
Constructor Details
#initialize(hosted_confirmation: nil, redirect: nil, type: nil) ⇒ AfterCompletion
Returns a new instance of AfterCompletion.
34 35 36 37 38 |
# File 'lib/stripe/services/billing_portal/session_service.rb', line 34 def initialize(hosted_confirmation: nil, redirect: nil, type: nil) @hosted_confirmation = hosted_confirmation @redirect = redirect @type = type end |
Instance Attribute Details
#hosted_confirmation ⇒ Object
Configuration when ‘after_completion.type=hosted_confirmation`.
28 29 30 |
# File 'lib/stripe/services/billing_portal/session_service.rb', line 28 def hosted_confirmation @hosted_confirmation end |
#redirect ⇒ Object
Configuration when ‘after_completion.type=redirect`.
30 31 32 |
# File 'lib/stripe/services/billing_portal/session_service.rb', line 30 def redirect @redirect end |
#type ⇒ Object
The specified behavior after the flow is completed.
32 33 34 |
# File 'lib/stripe/services/billing_portal/session_service.rb', line 32 def type @type end |