Class RequestedSession
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.delegatedcheckout.RequestedSession
- All Implemented Interfaces:
HasId,MetadataStore<RequestedSession>,StripeActiveObject,StripeObjectInterface
A requested session is a session that has been requested by a customer.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about FulfillmentDetails, please refer to the API Reference.static classFor more details about LineItemDetail, please refer to the API Reference.static classFor more details about OrderDetails, please refer to the API Reference.static classFor more details about PaymentMethodPreview, please refer to the API Reference.static classFor more details about SellerDetails, please refer to the API Reference.static classFor more details about TotalDetails, 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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanconfirm()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 RequestedSessioncreate(RequestedSessionCreateParams params) Creates a requested session.static RequestedSessioncreate(RequestedSessionCreateParams params, RequestOptions options) Creates a requested session.static RequestedSessionCreates a requested session.static RequestedSessioncreate(Map<String, Object> params, RequestOptions options) Creates a requested session.booleanexpire()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.The subtotal amount of the requested session.The total amount of the requested session.Time at which the object was created.Three-letter ISO currency code, in lowercase.The customer for this requested session.Time at which the requested session expires.The details of the fulfillment.getId()Unique identifier for the object.The line items to be purchased.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.Set of key-value pairs that you can attach to an object.String representing the object's type.The details of the order.The payment method used for the requested session.The preview of the payment method to be created when the requested session is confirmed.Whether or not the payment method should be saved for future use.The metadata shared with the seller.The SPT used for payment.The status of the requested session.Time at which the object was last updated.inthashCode()static RequestedSessionRetrieves a requested session.static RequestedSessionretrieve(String requestedSession, RequestOptions options) Retrieves a requested session.static RequestedSessionretrieve(String requestedSession, RequestedSessionRetrieveParams params, RequestOptions options) Retrieves a requested session.static RequestedSessionRetrieves a requested session.voidsetAmountSubtotal(Long amountSubtotal) The subtotal amount of the requested session.voidsetAmountTotal(Long amountTotal) The total amount of the requested session.voidsetCreatedAt(Long createdAt) Time at which the object was created.voidsetCurrency(String currency) Three-letter ISO currency code, in lowercase.voidsetCustomer(String customer) The customer for this requested session.voidsetExpiresAt(Long expiresAt) Time at which the requested session expires.voidsetFulfillmentDetails(RequestedSession.FulfillmentDetails fulfillmentDetails) The details of the fulfillment.voidUnique identifier for the object.voidsetLineItemDetails(List<RequestedSession.LineItemDetail> lineItemDetails) The line items to be purchased.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidString representing the object's type.voidsetOrderDetails(RequestedSession.OrderDetails orderDetails) The details of the order.voidsetPaymentMethod(String paymentMethod) The payment method used for the requested session.voidsetPaymentMethodPreview(RequestedSession.PaymentMethodPreview paymentMethodPreview) The preview of the payment method to be created when the requested session is confirmed.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidsetSellerDetails(RequestedSession.SellerDetails sellerDetails) voidsetSetupFutureUsage(String setupFutureUsage) Whether or not the payment method should be saved for future use.voidsetSharedMetadata(Map<String, String> sharedMetadata) The metadata shared with the seller.voidsetSharedPaymentIssuedToken(String sharedPaymentIssuedToken) The SPT used for payment.voidThe status of the requested session.voidsetTotalDetails(RequestedSession.TotalDetails totalDetails) voidsetUpdatedAt(Long updatedAt) Time at which the object was last updated.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, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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.- Specified by:
updatein interfaceMetadataStore<RequestedSession>- Throws:
StripeException
-
update
public RequestedSession update(Map<String, Object> params, RequestOptions options) throws StripeExceptionUpdates a requested session.- Specified by:
updatein interfaceMetadataStore<RequestedSession>- 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:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
getAmountSubtotal
The subtotal amount of the requested session. -
getAmountTotal
The total amount of the requested session. -
getCreatedAt
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
getCustomer
The customer for this requested session. -
getExpiresAt
Time at which the requested session expires. Measured in seconds since the Unix epoch. -
getFulfillmentDetails
The details of the fulfillment. -
getLineItemDetails
The line items to be purchased. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif 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. -
getOrderDetails
The details of the order. -
getPaymentMethod
The payment method used for the requested session. -
getPaymentMethodPreview
The preview of the payment method to be created when the requested session is confirmed. -
getSellerDetails
-
getSetupFutureUsage
Whether or not the payment method should be saved for future use.Equal to
on_session. -
getStatus
The status of the requested session.One of
completed,expired, oropen. -
getTotalDetails
-
getUpdatedAt
Time at which the object was last updated. Measured in seconds since the Unix epoch. -
setAmountSubtotal
The subtotal amount of the requested session. -
setAmountTotal
The total amount of the requested session. -
setCreatedAt
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setCustomer
The customer for this requested session. -
setExpiresAt
Time at which the requested session expires. Measured in seconds since the Unix epoch. -
setFulfillmentDetails
The details of the fulfillment. -
setId
Unique identifier for the object. -
setLineItemDetails
The line items to be purchased. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
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
delegated_checkout.requested_session. -
setOrderDetails
The details of the order. -
setPaymentMethod
The payment method used for the requested session. -
setPaymentMethodPreview
The preview of the payment method to be created when the requested session is confirmed. -
setSellerDetails
-
setSetupFutureUsage
Whether or not the payment method should be saved for future use.Equal to
on_session. -
setStatus
The status of the requested session.One of
completed,expired, oropen. -
setTotalDetails
-
setUpdatedAt
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:
getMetadatain interfaceMetadataStore<RequestedSession>
-