Class: Stripe::BillingPortal::SessionCreateParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/billing_portal/session_create_params.rb

Defined Under Namespace

Classes: FlowData

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(configuration: nil, customer: nil, customer_account: nil, expand: nil, flow_data: nil, locale: nil, on_behalf_of: nil, return_url: nil) ⇒ SessionCreateParams

Returns a new instance of SessionCreateParams.



162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# File 'lib/stripe/params/billing_portal/session_create_params.rb', line 162

def initialize(
  configuration: nil,
  customer: nil,
  customer_account: nil,
  expand: nil,
  flow_data: nil,
  locale: nil,
  on_behalf_of: nil,
  return_url: nil
)
  @configuration = configuration
  @customer = customer
  @customer_account = 
  @expand = expand
  @flow_data = flow_data
  @locale = locale
  @on_behalf_of = on_behalf_of
  @return_url = return_url
end

Instance Attribute Details

#configurationObject

The ID of an existing [configuration](docs.stripe.com/api/customer_portal/configuration) to use for this session, describing its functionality and features. If not specified, the session uses the default configuration.



146
147
148
# File 'lib/stripe/params/billing_portal/session_create_params.rb', line 146

def configuration
  @configuration
end

#customerObject

The ID of an existing customer.



148
149
150
# File 'lib/stripe/params/billing_portal/session_create_params.rb', line 148

def customer
  @customer
end

#customer_accountObject

The ID of an existing account.



150
151
152
# File 'lib/stripe/params/billing_portal/session_create_params.rb', line 150

def 
  @customer_account
end

#expandObject

Specifies which fields in the response should be expanded.



152
153
154
# File 'lib/stripe/params/billing_portal/session_create_params.rb', line 152

def expand
  @expand
end

#flow_dataObject

Information about a specific flow for the customer to go through. See the [docs](docs.stripe.com/customer-management/portal-deep-links) to learn more about using customer portal deep links and flows.



154
155
156
# File 'lib/stripe/params/billing_portal/session_create_params.rb', line 154

def flow_data
  @flow_data
end

#localeObject

The IETF language tag of the locale customer portal is displayed in. If blank or auto, the customer’s ‘preferred_locales` or browser’s locale is used.



156
157
158
# File 'lib/stripe/params/billing_portal/session_create_params.rb', line 156

def locale
  @locale
end

#on_behalf_ofObject

The ‘on_behalf_of` account to use for this session. When specified, only subscriptions and invoices with this `on_behalf_of` account appear in the portal. For more information, see the [docs](docs.stripe.com/connect/separate-charges-and-transfers#settlement-merchant). Use the [Accounts API](docs.stripe.com/api/accounts/object#account_object-settings-branding) to modify the `on_behalf_of` account’s branding settings, which the portal displays.



158
159
160
# File 'lib/stripe/params/billing_portal/session_create_params.rb', line 158

def on_behalf_of
  @on_behalf_of
end

#return_urlObject

The default URL to redirect customers to when they click on the portal’s link to return to your website.



160
161
162
# File 'lib/stripe/params/billing_portal/session_create_params.rb', line 160

def return_url
  @return_url
end