public interface GuestTokenProvider
GuestToken
.Modifier and Type | Method and Description |
---|---|
com.broadleafcommerce.cart.client.domain.GuestToken |
createGuestToken(com.broadleafcommerce.cart.client.domain.GuestToken guestToken,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Creates the provided
GuestToken and returns the result. |
boolean |
deleteGuestToken(String cartId,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deletes the guest token for the provided cart ID, if it exists.
|
Optional<com.broadleafcommerce.cart.client.domain.GuestToken> |
retrieveGuestToken(String cartId,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Retrieve the
GuestToken for the provided cart ID, if it exists. |
Optional<com.broadleafcommerce.cart.client.domain.GuestToken> retrieveGuestToken(String cartId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
GuestToken
for the provided cart ID, if it exists.cartId
- the cart IDcontextInfo
- the context infocom.broadleafcommerce.cart.client.domain.GuestToken createGuestToken(com.broadleafcommerce.cart.client.domain.GuestToken guestToken, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
GuestToken
and returns the result.guestToken
- the guest token to createcontextInfo
- the context infoboolean deleteGuestToken(String cartId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
cartId
- the cart IDcontextInfo
- the context infoCopyright © 2021. All rights reserved.