Package com.stripe.model.billingportal
Class Session
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.net.ApiResource
-
- com.stripe.model.billingportal.Session
-
- All Implemented Interfaces:
HasId,StripeObjectInterface
public class Session extends ApiResource implements HasId
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
-
Field Summary
-
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description Session()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)static Sessioncreate(SessionCreateParams params)Creates a session of the customer portal.static Sessioncreate(SessionCreateParams params, RequestOptions options)Creates a session of the customer portal.static Sessioncreate(java.util.Map<java.lang.String,java.lang.Object> params)Creates a session of the customer portal.static Sessioncreate(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Creates a session of the customer portal.booleanequals(java.lang.Object o)java.lang.StringgetConfiguration()Get ID of expandableconfigurationobject.ConfigurationgetConfigurationObject()Get expandedconfiguration.java.lang.LonggetCreated()Time at which the object was created.java.lang.StringgetCustomer()The ID of the customer for this session.java.lang.StringgetId()Unique identifier for the object.java.lang.BooleangetLivemode()Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.java.lang.StringgetObject()String representing the object's type.java.lang.StringgetOnBehalfOf()The account for which the session was created on behalf of.java.lang.StringgetReturnUrl()The URL to redirect customers to when they click on the portal's link to return to your website.java.lang.StringgetUrl()The short-lived URL of the session that gives customers access to the customer portal.inthashCode()voidsetConfiguration(java.lang.String id)voidsetConfigurationObject(Configuration expandableObject)voidsetCreated(java.lang.Long created)Time at which the object was created.voidsetCustomer(java.lang.String customer)The ID of the customer for this session.voidsetId(java.lang.String id)Unique identifier for the object.voidsetLivemode(java.lang.Boolean livemode)Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetObject(java.lang.String object)String representing the object's type.voidsetOnBehalfOf(java.lang.String onBehalfOf)The account for which the session was created on behalf of.voidsetReturnUrl(java.lang.String returnUrl)The URL to redirect customers to when they click on the portal's link to return to your website.voidsetUrl(java.lang.String url)The short-lived URL of the session that gives customers access to the customer portal.-
Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getConfiguration
public java.lang.String getConfiguration()
Get ID of expandableconfigurationobject.
-
setConfiguration
public void setConfiguration(java.lang.String id)
-
getConfigurationObject
public Configuration getConfigurationObject()
Get expandedconfiguration.
-
setConfigurationObject
public void setConfigurationObject(Configuration expandableObject)
-
create
public static Session create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Creates a session of the customer portal.- Throws:
StripeException
-
create
public static Session create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Creates a session of the customer portal.- Throws:
StripeException
-
create
public static Session create(SessionCreateParams params) throws StripeException
Creates a session of the customer portal.- Throws:
StripeException
-
create
public static Session create(SessionCreateParams params, RequestOptions options) throws StripeException
Creates a session of the customer portal.- Throws:
StripeException
-
getCreated
public java.lang.Long getCreated()
Time at which the object was created. Measured in seconds since the Unix epoch.
-
getCustomer
public java.lang.String getCustomer()
The ID of the customer for this session.
-
getLivemode
public java.lang.Boolean getLivemode()
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
billing_portal.session.
-
getOnBehalfOf
public java.lang.String getOnBehalfOf()
The account for which the session was created on behalf of. 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.
-
getReturnUrl
public java.lang.String getReturnUrl()
The URL to redirect customers to when they click on the portal's link to return to your website.
-
getUrl
public java.lang.String getUrl()
The short-lived URL of the session that gives customers access to the customer portal.
-
setCreated
public void setCreated(java.lang.Long created)
Time at which the object was created. Measured in seconds since the Unix epoch.
-
setCustomer
public void setCustomer(java.lang.String customer)
The ID of the customer for this session.
-
setId
public void setId(java.lang.String id)
Unique identifier for the object.
-
setLivemode
public void setLivemode(java.lang.Boolean livemode)
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
-
setObject
public void setObject(java.lang.String object)
String representing the object's type. Objects of the same type share the same value.Equal to
billing_portal.session.
-
setOnBehalfOf
public void setOnBehalfOf(java.lang.String onBehalfOf)
The account for which the session was created on behalf of. 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
public void setReturnUrl(java.lang.String returnUrl)
The URL to redirect customers to when they click on the portal's link to return to your website.
-
setUrl
public void setUrl(java.lang.String url)
The short-lived URL of the session that gives customers access to the customer portal.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-