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
Modifier and TypeClassDescriptionstatic class
static class
static class
The product ID.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_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
static Configuration
create
(ConfigurationCreateParams params) Creates a configuration that describes the functionality and behavior of a PortalSession.static Configuration
create
(ConfigurationCreateParams params, RequestOptions options) Creates a configuration that describes the functionality and behavior of a PortalSession.static Configuration
Creates a configuration that describes the functionality and behavior of a PortalSession.static Configuration
create
(Map<String, Object> params, RequestOptions options) Creates a configuration that describes the functionality and behavior of a PortalSession.boolean
Whether the configuration is active and can be used to create portal sessions.Get ID of expandableapplication
object.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 valuetrue
if the object exists in live mode or the valuefalse
if 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.int
hashCode()
static ConfigurationCollection
list
(ConfigurationListParams params) Returns a list of configurations that describe the functionality of the customer portal.static ConfigurationCollection
list
(ConfigurationListParams params, RequestOptions options) Returns a list of configurations that describe the functionality of the customer portal.static ConfigurationCollection
Returns a list of configurations that describe the functionality of the customer portal.static ConfigurationCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of configurations that describe the functionality of the customer portal.static Configuration
Retrieves a configuration that describes the functionality of the customer portal.static Configuration
retrieve
(String configuration, RequestOptions options) Retrieves a configuration that describes the functionality of the customer portal.static Configuration
retrieve
(String configuration, ConfigurationRetrieveParams params, RequestOptions options) Retrieves a configuration that describes the functionality of the customer portal.static Configuration
Retrieves a configuration that describes the functionality of the customer portal.void
Whether the configuration is active and can be used to create portal sessions.void
setApplication
(String id) void
setApplicationObject
(Application expandableObject) void
setBusinessProfile
(Configuration.BusinessProfile businessProfile) void
setCreated
(Long created) Time at which the object was created.void
setDefaultReturnUrl
(String defaultReturnUrl) The default URL to redirect customers to when they click on the portal's link to return to your website.void
setFeatures
(Configuration.Features features) void
Unique identifier for the object.void
setIsDefault
(Boolean isDefault) Whether the configuration is the default.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setLoginPage
(Configuration.LoginPage loginPage) void
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
String representing the object's type.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
setUpdated
(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, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
getApplication
Get ID of expandableapplication
object. -
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:
update
in 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:
update
in 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:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance 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 valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getLoginPage
-
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 valuetrue
if the object exists in live mode or the valuefalse
if 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. -
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:
getMetadata
in interfaceMetadataStore<Configuration>
-