Class: Stripe::BillingPortal::SessionService::CreateParams::FlowData::AfterCompletion

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/billing_portal/session_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.



36
37
38
39
40
# File 'lib/stripe/services/billing_portal/session_service.rb', line 36

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 ‘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

#redirectObject

Configuration when ‘after_completion.type=redirect`.



31
32
33
# File 'lib/stripe/services/billing_portal/session_service.rb', line 31

def redirect
  @redirect
end

#typeObject

The specified behavior after the flow is completed.



34
35
36
# File 'lib/stripe/services/billing_portal/session_service.rb', line 34

def type
  @type
end