Class: Stripe::PaymentLinkService::UpdateParams::AfterCompletion

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/payment_link_service.rb

Defined Under Namespace

Classes: HostedConfirmation, Redirect

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(hosted_confirmation: nil, redirect: nil, type: nil) ⇒ AfterCompletion

Returns a new instance of AfterCompletion.



831
832
833
834
835
# File 'lib/stripe/services/payment_link_service.rb', line 831

def initialize(hosted_confirmation: nil, redirect: nil, type: nil)
  @hosted_confirmation = hosted_confirmation
  @redirect = redirect
  @type = type
end

Instance Attribute Details

#hosted_confirmationObject

Configuration when ‘type=hosted_confirmation`.



825
826
827
# File 'lib/stripe/services/payment_link_service.rb', line 825

def hosted_confirmation
  @hosted_confirmation
end

#redirectObject

Configuration when ‘type=redirect`.



827
828
829
# File 'lib/stripe/services/payment_link_service.rb', line 827

def redirect
  @redirect
end

#typeObject

The specified behavior after the purchase is complete. Either ‘redirect` or `hosted_confirmation`.



829
830
831
# File 'lib/stripe/services/payment_link_service.rb', line 829

def type
  @type
end