Class RequestedSession
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.delegatedcheckout.RequestedSession
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
A requested session is a session that has been requested by a customer.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
For more details about FulfillmentDetails, please refer to the API Reference.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
confirm()
Confirms a requested session.confirm
(RequestOptions options) Confirms a requested session.confirm
(RequestedSessionConfirmParams params) Confirms a requested session.confirm
(RequestedSessionConfirmParams params, RequestOptions options) Confirms a requested session.Confirms a requested session.confirm
(Map<String, Object> params, RequestOptions options) Confirms a requested session.static RequestedSession
create
(RequestedSessionCreateParams params) Creates a requested session.static RequestedSession
create
(RequestedSessionCreateParams params, RequestOptions options) Creates a requested session.static RequestedSession
Creates a requested session.static RequestedSession
create
(Map<String, Object> params, RequestOptions options) Creates a requested session.boolean
expire()
Expires a requested session.expire
(RequestOptions options) Expires a requested session.expire
(RequestedSessionExpireParams params) Expires a requested session.expire
(RequestedSessionExpireParams params, RequestOptions options) Expires a requested session.Expires a requested session.expire
(Map<String, Object> params, RequestOptions options) Expires a requested session.Three-letter ISO currency code, in lowercase.The customer for this requested session.getId()
Unique identifier for the object.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.String representing the object's type.int
hashCode()
static RequestedSession
Retrieves a requested session.static RequestedSession
retrieve
(String requestedSession, RequestOptions options) Retrieves a requested session.static RequestedSession
retrieve
(String requestedSession, RequestedSessionRetrieveParams params, RequestOptions options) Retrieves a requested session.static RequestedSession
Retrieves a requested session.void
setCurrency
(String currency) Three-letter ISO currency code, in lowercase.void
setCustomer
(String customer) The customer for this requested session.void
setFulfillmentDetails
(RequestedSession.FulfillmentDetails fulfillmentDetails) void
Unique identifier for the object.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
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.update
(RequestedSessionUpdateParams params) Updates a requested session.update
(RequestedSessionUpdateParams params, RequestOptions options) Updates a requested session.Updates a requested session.update
(Map<String, Object> params, RequestOptions options) Updates a requested session.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, 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
-
RequestedSession
public RequestedSession()
-
-
Method Details
-
confirm
Confirms a requested session.- Throws:
StripeException
-
confirm
Confirms a requested session.- Throws:
StripeException
-
confirm
Confirms a requested session.- Throws:
StripeException
-
confirm
public RequestedSession confirm(Map<String, Object> params, RequestOptions options) throws StripeExceptionConfirms a requested session.- Throws:
StripeException
-
confirm
Confirms a requested session.- Throws:
StripeException
-
confirm
public RequestedSession confirm(RequestedSessionConfirmParams params, RequestOptions options) throws StripeException Confirms a requested session.- Throws:
StripeException
-
create
Creates a requested session.- Throws:
StripeException
-
create
public static RequestedSession create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a requested session.- Throws:
StripeException
-
create
Creates a requested session.- Throws:
StripeException
-
create
public static RequestedSession create(RequestedSessionCreateParams params, RequestOptions options) throws StripeException Creates a requested session.- Throws:
StripeException
-
expire
Expires a requested session.- Throws:
StripeException
-
expire
Expires a requested session.- Throws:
StripeException
-
expire
Expires a requested session.- Throws:
StripeException
-
expire
public RequestedSession expire(Map<String, Object> params, RequestOptions options) throws StripeExceptionExpires a requested session.- Throws:
StripeException
-
expire
Expires a requested session.- Throws:
StripeException
-
expire
public RequestedSession expire(RequestedSessionExpireParams params, RequestOptions options) throws StripeException Expires a requested session.- Throws:
StripeException
-
retrieve
Retrieves a requested session.- Throws:
StripeException
-
retrieve
public static RequestedSession retrieve(String requestedSession, RequestOptions options) throws StripeException Retrieves a requested session.- Throws:
StripeException
-
retrieve
public static RequestedSession retrieve(String requestedSession, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a requested session.- Throws:
StripeException
-
retrieve
public static RequestedSession retrieve(String requestedSession, RequestedSessionRetrieveParams params, RequestOptions options) throws StripeException Retrieves a requested session.- Throws:
StripeException
-
update
Updates a requested session.- Throws:
StripeException
-
update
public RequestedSession update(Map<String, Object> params, RequestOptions options) throws StripeExceptionUpdates a requested session.- Throws:
StripeException
-
update
Updates a requested session.- Throws:
StripeException
-
update
public RequestedSession update(RequestedSessionUpdateParams params, RequestOptions options) throws StripeException Updates a requested session.- 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.
-
getCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
getCustomer
The customer for this requested session. -
getFulfillmentDetails
-
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
delegated_checkout.requested_session
. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setCustomer
The customer for this requested session. -
setFulfillmentDetails
-
setId
Unique identifier for the object. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
delegated_checkout.requested_session
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-