Class: Stripe::PaymentLinkService::UpdateParams::AfterCompletion
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentLinkService::UpdateParams::AfterCompletion
- Defined in:
- lib/stripe/services/payment_link_service.rb
Defined Under Namespace
Classes: HostedConfirmation, Redirect
Instance Attribute Summary collapse
-
#hosted_confirmation ⇒ Object
Configuration when ‘type=hosted_confirmation`.
-
#redirect ⇒ Object
Configuration when ‘type=redirect`.
-
#type ⇒ Object
The specified behavior after the purchase is complete.
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.
758 759 760 761 762 |
# File 'lib/stripe/services/payment_link_service.rb', line 758 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 ‘type=hosted_confirmation`.
752 753 754 |
# File 'lib/stripe/services/payment_link_service.rb', line 752 def hosted_confirmation @hosted_confirmation end |
#redirect ⇒ Object
Configuration when ‘type=redirect`.
754 755 756 |
# File 'lib/stripe/services/payment_link_service.rb', line 754 def redirect @redirect end |
#type ⇒ Object
The specified behavior after the purchase is complete. Either ‘redirect` or `hosted_confirmation`.
756 757 758 |
# File 'lib/stripe/services/payment_link_service.rb', line 756 def type @type end |