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>,StripeObjectInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, 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.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.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidString representing the object's type.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, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
getApplication
Get ID of expandableapplicationobject. -
setApplication
-
getApplicationObject
Get expandedapplication. -
setApplicationObject
-
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
-
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
-
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
-
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
-
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. -
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. -
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. -
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>
-