public class Session extends ApiResource implements HasId
Modifier and Type | Class and Description |
---|---|
static class |
Session.DisplayItem |
ApiResource.RequestMethod, ApiResource.RequestType
CHARSET, GSON
PRETTY_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 object.
|
static Session |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Creates a Session object.
|
static Session |
create(SessionCreateParams params)
Creates a Session object.
|
static Session |
create(SessionCreateParams params,
RequestOptions options)
Creates a Session object.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getBillingAddressCollection()
The value (`auto` or `required`) for whether Checkout collected the customer's billing address.
|
java.lang.String |
getCancelUrl()
The URL the customer will be directed to if they decide to cancel payment and return to your
website.
|
java.lang.String |
getClientReferenceId()
A unique string to reference the Checkout Session.
|
java.lang.String |
getCustomer()
Get id of expandable `customer` object.
|
java.lang.String |
getCustomerEmail()
If provided, this value will be used when the Customer object is created.
|
Customer |
getCustomerObject()
Get expanded `customer`.
|
java.util.List<Session.DisplayItem> |
getDisplayItems()
The line items, plans, or SKUs purchased by the customer.
|
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 |
getLocale()
The IETF language tag of the locale Checkout is displayed in.
|
java.lang.String |
getMode()
The mode of the Checkout Session, one of `payment`, `setup`, or `subscription`.
|
java.lang.String |
getObject()
String representing the object's type.
|
java.lang.String |
getPaymentIntent()
Get id of expandable `paymentIntent` object.
|
PaymentIntent |
getPaymentIntentObject()
Get expanded `paymentIntent`.
|
java.util.List<java.lang.String> |
getPaymentMethodTypes()
A list of the types of payment methods (e.g.
|
java.lang.String |
getSetupIntent()
Get id of expandable `setupIntent` object.
|
SetupIntent |
getSetupIntentObject()
Get expanded `setupIntent`.
|
java.lang.String |
getSubmitType()
Describes the type of transaction being performed by Checkout in order to customize relevant
text on the page, such as the submit button.
|
java.lang.String |
getSubscription()
Get id of expandable `subscription` object.
|
Subscription |
getSubscriptionObject()
Get expanded `subscription`.
|
java.lang.String |
getSuccessUrl()
The URL the customer will be directed to after the payment or subscription creation is
successful.
|
int |
hashCode() |
static Session |
retrieve(java.lang.String session)
Retrieves a Session object.
|
static Session |
retrieve(java.lang.String session,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves a Session object.
|
static Session |
retrieve(java.lang.String session,
RequestOptions options)
Retrieves a Session object.
|
static Session |
retrieve(java.lang.String session,
SessionRetrieveParams params,
RequestOptions options)
Retrieves a Session object.
|
void |
setBillingAddressCollection(java.lang.String billingAddressCollection)
The value (`auto` or `required`) for whether Checkout collected the customer's billing address.
|
void |
setCancelUrl(java.lang.String cancelUrl)
The URL the customer will be directed to if they decide to cancel payment and return to your
website.
|
void |
setClientReferenceId(java.lang.String clientReferenceId)
A unique string to reference the Checkout Session.
|
void |
setCustomer(java.lang.String id) |
void |
setCustomerEmail(java.lang.String customerEmail)
If provided, this value will be used when the Customer object is created.
|
void |
setCustomerObject(Customer expandableObject) |
void |
setDisplayItems(java.util.List<Session.DisplayItem> displayItems)
The line items, plans, or SKUs purchased by the customer.
|
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 |
setLocale(java.lang.String locale)
The IETF language tag of the locale Checkout is displayed in.
|
void |
setMode(java.lang.String mode)
The mode of the Checkout Session, one of `payment`, `setup`, or `subscription`.
|
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setPaymentIntent(java.lang.String id) |
void |
setPaymentIntentObject(PaymentIntent expandableObject) |
void |
setPaymentMethodTypes(java.util.List<java.lang.String> paymentMethodTypes)
A list of the types of payment methods (e.g.
|
void |
setSetupIntent(java.lang.String id) |
void |
setSetupIntentObject(SetupIntent expandableObject) |
void |
setSubmitType(java.lang.String submitType)
Describes the type of transaction being performed by Checkout in order to customize relevant
text on the page, such as the submit button.
|
void |
setSubscription(java.lang.String id) |
void |
setSubscriptionObject(Subscription expandableObject) |
void |
setSuccessUrl(java.lang.String successUrl)
The URL the customer will be directed to after the payment or subscription creation is
successful.
|
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, multipartRequest, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public java.lang.String getCustomer()
public void setCustomer(java.lang.String id)
public Customer getCustomerObject()
public void setCustomerObject(Customer expandableObject)
public java.lang.String getPaymentIntent()
public void setPaymentIntent(java.lang.String id)
public PaymentIntent getPaymentIntentObject()
public void setPaymentIntentObject(PaymentIntent expandableObject)
public java.lang.String getSetupIntent()
public void setSetupIntent(java.lang.String id)
public SetupIntent getSetupIntentObject()
public void setSetupIntentObject(SetupIntent expandableObject)
public java.lang.String getSubscription()
public void setSubscription(java.lang.String id)
public Subscription getSubscriptionObject()
public void setSubscriptionObject(Subscription expandableObject)
public static Session retrieve(java.lang.String session) throws StripeException
StripeException
public static Session retrieve(java.lang.String session, RequestOptions options) throws StripeException
StripeException
public static Session retrieve(java.lang.String session, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static Session retrieve(java.lang.String session, SessionRetrieveParams params, RequestOptions options) throws StripeException
StripeException
public static Session create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public static Session create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static Session create(SessionCreateParams params) throws StripeException
StripeException
public static Session create(SessionCreateParams params, RequestOptions options) throws StripeException
StripeException
public java.lang.String getBillingAddressCollection()
public java.lang.String getCancelUrl()
public java.lang.String getClientReferenceId()
public java.lang.String getCustomerEmail()
public java.util.List<Session.DisplayItem> getDisplayItems()
public java.lang.Boolean getLivemode()
public java.lang.String getLocale()
public java.lang.String getMode()
public java.lang.String getObject()
public java.util.List<java.lang.String> getPaymentMethodTypes()
public java.lang.String getSubmitType()
public java.lang.String getSuccessUrl()
public void setBillingAddressCollection(java.lang.String billingAddressCollection)
public void setCancelUrl(java.lang.String cancelUrl)
public void setClientReferenceId(java.lang.String clientReferenceId)
public void setCustomerEmail(java.lang.String customerEmail)
public void setDisplayItems(java.util.List<Session.DisplayItem> displayItems)
public void setId(java.lang.String id)
public void setLivemode(java.lang.Boolean livemode)
public void setLocale(java.lang.String locale)
public void setMode(java.lang.String mode)
public void setObject(java.lang.String object)
public void setPaymentMethodTypes(java.util.List<java.lang.String> paymentMethodTypes)
public void setSubmitType(java.lang.String submitType)
public void setSuccessUrl(java.lang.String successUrl)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object