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.



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_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`.



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

def redirect
  @redirect
end

#typeObject

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