Class: Stripe::BillingPortal::Session::CreateParams::FlowData::AfterCompletion

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



131
132
133
134
135
# File 'lib/stripe/resources/billing_portal/session.rb', line 131

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



125
126
127
# File 'lib/stripe/resources/billing_portal/session.rb', line 125

def hosted_confirmation
  @hosted_confirmation
end

#redirectObject

Configuration when ‘after_completion.type=redirect`.



127
128
129
# File 'lib/stripe/resources/billing_portal/session.rb', line 127

def redirect
  @redirect
end

#typeObject

The specified behavior after the flow is completed.



129
130
131
# File 'lib/stripe/resources/billing_portal/session.rb', line 129

def type
  @type
end