Package com.stripe.param.billingportal
Class SessionCreateParams.Builder
java.lang.Object
com.stripe.param.billingportal.SessionCreateParams.Builder
- Enclosing class:
- SessionCreateParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand(List<String> elements) Add all elements to `expand` list.Add an element to `expand` list.build()Finalize and obtain parameter instance from this builder.putAllExtraParam(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map.setConfiguration(String configuration) The ID of an existing configuration to use for this session, describing its functionality and features.setCustomer(String customer) Required. The ID of an existing customer.setFlowData(SessionCreateParams.FlowData flowData) Information about a specific flow for the customer to go through.setLocale(SessionCreateParams.Locale locale) The IETF language tag of the locale customer portal is displayed in.setOnBehalfOf(String onBehalfOf) Theon_behalf_ofaccount to use for this session.setReturnUrl(String returnUrl) The default URL to redirect customers to when they click on the portal's link to return to your website.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setConfiguration
The ID of an existing configuration to use for this session, describing its functionality and features. If not specified, the session uses the default configuration. -
setCustomer
Required. The ID of an existing customer. -
addExpand
Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionCreateParams.expandfor the field documentation. -
addAllExpand
Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionCreateParams.expandfor the field documentation. -
putExtraParam
Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSessionCreateParams.extraParamsfor the field documentation. -
putAllExtraParam
Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSessionCreateParams.extraParamsfor the field documentation. -
setFlowData
Information about a specific flow for the customer to go through. See the docs to learn more about using customer portal deep links and flows. -
setLocale
The IETF language tag of the locale customer portal is displayed in. If blank or auto, the customer’spreferred_localesor browser’s locale is used. -
setOnBehalfOf
Theon_behalf_ofaccount to use for this session. When specified, only subscriptions and invoices with thison_behalf_ofaccount appear in the portal. For more information, see the docs. Use the Accounts API to modify theon_behalf_ofaccount's branding settings, which the portal displays. -
setReturnUrl
The default URL to redirect customers to when they click on the portal's link to return to your website.
-