Package com.stripe.model.billingportal
Class Configuration
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.billingportal.Configuration
- All Implemented Interfaces:
HasId,MetadataStore<Configuration>,StripeActiveObject,StripeObjectInterface
A portal configuration describes the functionality and behavior of a portal session.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about BusinessProfile, please refer to the API Reference.static classFor more details about Features, please refer to the API Reference.static classFor more details about LoginPage, please refer to the API Reference.Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic Configurationcreate(ConfigurationCreateParams params) Creates a configuration that describes the functionality and behavior of a PortalSession.static Configurationcreate(ConfigurationCreateParams params, RequestOptions options) Creates a configuration that describes the functionality and behavior of a PortalSession.static ConfigurationCreates a configuration that describes the functionality and behavior of a PortalSession.static Configurationcreate(Map<String, Object> params, RequestOptions options) Creates a configuration that describes the functionality and behavior of a PortalSession.booleanWhether the configuration is active and can be used to create portal sessions.Get ID of expandableapplicationobject.Get expandedapplication.Time at which the object was created.The default URL to redirect customers to when they click on the portal's link to return to your website.getId()Unique identifier for the object.Whether the configuration is the default.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.Set of key-value pairs that you can attach to an object.getName()The name of the configuration.String representing the object's type.Time at which the object was last updated.inthashCode()static ConfigurationCollectionlist(ConfigurationListParams params) Returns a list of configurations that describe the functionality of the customer portal.static ConfigurationCollectionlist(ConfigurationListParams params, RequestOptions options) Returns a list of configurations that describe the functionality of the customer portal.static ConfigurationCollectionReturns a list of configurations that describe the functionality of the customer portal.static ConfigurationCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of configurations that describe the functionality of the customer portal.static ConfigurationRetrieves a configuration that describes the functionality of the customer portal.static Configurationretrieve(String configuration, RequestOptions options) Retrieves a configuration that describes the functionality of the customer portal.static Configurationretrieve(String configuration, ConfigurationRetrieveParams params, RequestOptions options) Retrieves a configuration that describes the functionality of the customer portal.static ConfigurationRetrieves a configuration that describes the functionality of the customer portal.voidWhether the configuration is active and can be used to create portal sessions.voidsetApplication(String id) voidsetApplicationObject(Application expandableObject) voidsetBusinessProfile(Configuration.BusinessProfile businessProfile) voidsetCreated(Long created) Time at which the object was created.voidsetDefaultReturnUrl(String defaultReturnUrl) The default URL to redirect customers to when they click on the portal's link to return to your website.voidsetFeatures(Configuration.Features features) voidUnique identifier for the object.voidsetIsDefault(Boolean isDefault) Whether the configuration is the default.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetLoginPage(Configuration.LoginPage loginPage) voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidThe name of the configuration.voidString representing the object's type.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidsetUpdated(Long updated) Time at which the object was last updated.update(ConfigurationUpdateParams params) Updates a configuration that describes the functionality of the customer portal.update(ConfigurationUpdateParams params, RequestOptions options) Updates a configuration that describes the functionality of the customer portal.Updates a configuration that describes the functionality of the customer portal.update(Map<String, Object> params, RequestOptions options) Updates a configuration that describes the functionality of the customer portal.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
getApplication
Get ID of expandableapplicationobject. -
setApplication
-
getApplicationObject
Get expandedapplication. -
setApplicationObject
-
create
Creates a configuration that describes the functionality and behavior of a PortalSession.- Throws:
StripeException
-
create
public static Configuration create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a configuration that describes the functionality and behavior of a PortalSession.- Throws:
StripeException
-
create
Creates a configuration that describes the functionality and behavior of a PortalSession.- Throws:
StripeException
-
create
public static Configuration create(ConfigurationCreateParams params, RequestOptions options) throws StripeException Creates a configuration that describes the functionality and behavior of a PortalSession.- Throws:
StripeException
-
list
Returns a list of configurations that describe the functionality of the customer portal.- Throws:
StripeException
-
list
public static ConfigurationCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of configurations that describe the functionality of the customer portal.- Throws:
StripeException
-
list
Returns a list of configurations that describe the functionality of the customer portal.- Throws:
StripeException
-
list
public static ConfigurationCollection list(ConfigurationListParams params, RequestOptions options) throws StripeException Returns a list of configurations that describe the functionality of the customer portal.- Throws:
StripeException
-
retrieve
Retrieves a configuration that describes the functionality of the customer portal.- Throws:
StripeException
-
retrieve
public static Configuration retrieve(String configuration, RequestOptions options) throws StripeException Retrieves a configuration that describes the functionality of the customer portal.- Throws:
StripeException
-
retrieve
public static Configuration retrieve(String configuration, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a configuration that describes the functionality of the customer portal.- Throws:
StripeException
-
retrieve
public static Configuration retrieve(String configuration, ConfigurationRetrieveParams params, RequestOptions options) throws StripeException Retrieves a configuration that describes the functionality of the customer portal.- Throws:
StripeException
-
update
Updates a configuration that describes the functionality of the customer portal.- Specified by:
updatein interfaceMetadataStore<Configuration>- Throws:
StripeException
-
update
public Configuration update(Map<String, Object> params, RequestOptions options) throws StripeExceptionUpdates a configuration that describes the functionality of the customer portal.- Specified by:
updatein interfaceMetadataStore<Configuration>- Throws:
StripeException
-
update
Updates a configuration that describes the functionality of the customer portal.- Throws:
StripeException
-
update
public Configuration update(ConfigurationUpdateParams params, RequestOptions options) throws StripeException Updates a configuration that describes the functionality of the customer portal.- Throws:
StripeException
-
setResponseGetter
Description copied from interface:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
getActive
Whether the configuration is active and can be used to create portal sessions. -
getBusinessProfile
-
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getDefaultReturnUrl
The default URL to redirect customers to when they click on the portal's link to return to your website. This can be overriden when creating the session. -
getFeatures
-
getIsDefault
Whether the configuration is the default. Iftrue, this configuration can be managed in the Dashboard and portal sessions will use this configuration unless it is overriden when creating the session. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getLoginPage
-
getName
The name of the configuration. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
billing_portal.configuration. -
getUpdated
Time at which the object was last updated. Measured in seconds since the Unix epoch. -
setActive
Whether the configuration is active and can be used to create portal sessions. -
setBusinessProfile
-
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setDefaultReturnUrl
The default URL to redirect customers to when they click on the portal's link to return to your website. This can be overriden when creating the session. -
setFeatures
-
setId
Unique identifier for the object. -
setIsDefault
Whether the configuration is the default. Iftrue, this configuration can be managed in the Dashboard and portal sessions will use this configuration unless it is overriden when creating the session. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
setLoginPage
-
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
setName
The name of the configuration. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
billing_portal.configuration. -
setUpdated
Time at which the object was last updated. Measured in seconds since the Unix epoch. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.- Specified by:
getMetadatain interfaceMetadataStore<Configuration>
-