public class Session extends ApiResource implements HasId
ApiResource.RequestMethodCHARSET, GSONPRETTY_PRINT_GSON| Constructor and Description |
|---|
Session() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
static Session |
create(java.util.Map<java.lang.String,java.lang.Object> params)
Creates a session of the customer portal.
|
static Session |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Creates a session of the customer portal.
|
static Session |
create(SessionCreateParams params)
Creates a session of the customer portal.
|
static Session |
create(SessionCreateParams params,
RequestOptions options)
Creates a session of the customer portal.
|
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getCreated()
Time at which the object was created.
|
java.lang.String |
getCustomer()
The ID of the customer for this session.
|
java.lang.String |
getId()
Unique identifier for the object.
|
java.lang.Boolean |
getLivemode()
Has the value
true if the object exists in live mode or the value false if the
object exists in test mode. |
java.lang.String |
getObject()
String representing the object's type.
|
java.lang.String |
getReturnUrl()
The URL to which Stripe should send customers when they click on the link to return to your
website.
|
java.lang.String |
getUrl()
The short-lived URL of the session giving customers access to the customer portal.
|
int |
hashCode() |
void |
setCreated(java.lang.Long created)
Time at which the object was created.
|
void |
setCustomer(java.lang.String customer)
The ID of the customer for this session.
|
void |
setId(java.lang.String id)
Unique identifier for the object.
|
void |
setLivemode(java.lang.Boolean livemode)
Has the value
true if the object exists in live mode or the value false if the
object exists in test mode. |
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setReturnUrl(java.lang.String returnUrl)
The URL to which Stripe should send customers when they click on the link to return to your
website.
|
void |
setUrl(java.lang.String url)
The short-lived URL of the session giving customers access to the customer portal.
|
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeIdequals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringpublic static Session create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeExceptionpublic static Session create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeExceptionpublic static Session create(SessionCreateParams params) throws StripeException
StripeExceptionpublic static Session create(SessionCreateParams params, RequestOptions options) throws StripeException
StripeExceptionpublic java.lang.Long getCreated()
public java.lang.String getCustomer()
public java.lang.Boolean getLivemode()
true if the object exists in live mode or the value false if the
object exists in test mode.public java.lang.String getObject()
Equal to billing_portal.session.
public java.lang.String getReturnUrl()
public java.lang.String getUrl()
public void setCreated(java.lang.Long created)
public void setCustomer(java.lang.String customer)
public void setId(java.lang.String id)
public void setLivemode(java.lang.Boolean livemode)
true if the object exists in live mode or the value false if the
object exists in test mode.public void setObject(java.lang.String object)
Equal to billing_portal.session.
public void setReturnUrl(java.lang.String returnUrl)
public void setUrl(java.lang.String url)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Object