public interface CartTransferService
| Modifier and Type | Method and Description |
|---|---|
TransferCartToken |
createTransferCartToken(com.broadleafcommerce.cart.client.domain.Cart cart)
Creates a new
TransferCartToken that can be exchanged for proof of access to transfer
a particular cart. |
com.broadleafcommerce.cart.client.domain.Cart |
transferAnonymousCartOwnership(com.broadleafcommerce.cart.client.domain.Cart anonymousCart,
com.broadleafcommerce.cart.client.domain.Cart registeredCustomerCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Transfer the provided anonymous cart to be in-process for the currently authenticated
customer.
|
com.broadleafcommerce.cart.client.domain.Cart |
transferAnonymousCartOwnership(com.broadleafcommerce.cart.client.domain.Cart anonymousCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Transfer the provided anonymous cart to be in-process for the currently authenticated
customer.
|
com.broadleafcommerce.cart.client.domain.Cart |
transferAnonymousCsrCartToInProcess(com.broadleafcommerce.cart.client.domain.Cart csrCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
|
com.broadleafcommerce.cart.client.domain.Cart |
transferAnonymousCsrCartToInProcess(com.broadleafcommerce.cart.client.domain.Cart csrCart,
com.broadleafcommerce.cart.client.domain.CustomerRef customer,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Transfer the provided anonymous CSR cart to be in-process for the provided customer
|
com.broadleafcommerce.cart.client.domain.Cart |
transferCsrCartToInProcess(com.broadleafcommerce.cart.client.domain.Cart csrCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Transfer the provided CSR cart to be in-process for its customer.
|
TransferCartToken |
validateTransferCartToken(String tokenString)
Attempts to decode and validate the provided token string into a
TransferCartToken. |
com.broadleafcommerce.cart.client.domain.Cart transferAnonymousCartOwnership(com.broadleafcommerce.cart.client.domain.Cart anonymousCart,
@Nullable
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
anonymousCart - The anonymous cart to transfer ownershipcontextInfo - Context information around sandbox and multitenant state.TransferCartToken createTransferCartToken(com.broadleafcommerce.cart.client.domain.Cart cart)
TransferCartToken that can be exchanged for proof of access to transfer
a particular cart.cart - the cart which can be transferred using this tokencom.broadleafcommerce.cart.client.domain.Cart transferAnonymousCartOwnership(com.broadleafcommerce.cart.client.domain.Cart anonymousCart,
@Nullable
com.broadleafcommerce.cart.client.domain.Cart registeredCustomerCart,
@Nullable
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
anonymousCart - The anonymous cart to transfer ownershipregisteredCustomerCart - The pre-existing customer's cartcontextInfo - Context information around sandbox and multitenant state.com.broadleafcommerce.cart.client.domain.Cart transferCsrCartToInProcess(com.broadleafcommerce.cart.client.domain.Cart csrCart,
@Nullable
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
csrCart - The CSR-owned cart to replace the customer's in-process cartcontextInfo - Context information around sandbox and multitenant state.TransferCartToken validateTransferCartToken(String tokenString) throws TransferCartTokenParseException
TransferCartToken.
This is used to provide a way to check that a token is valid and to extract the contents.tokenString - the encoded token stringTransferCartTokenParseException@Deprecated com.broadleafcommerce.cart.client.domain.Cart transferAnonymousCsrCartToInProcess(com.broadleafcommerce.cart.client.domain.Cart csrCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
transferAnonymousCsrCartToInProcess(Cart, CustomerRef, ContextInfo)csrCart - The anonymous CSR-owned cart to transfercontextInfo - Context information around sandbox and multitenant state.com.broadleafcommerce.cart.client.domain.Cart transferAnonymousCsrCartToInProcess(com.broadleafcommerce.cart.client.domain.Cart csrCart,
@Nullable
com.broadleafcommerce.cart.client.domain.CustomerRef customer,
@Nullable
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
csrCart - the CSR cartcustomer - the customercontextInfo - the context infoCopyright © 2021. All rights reserved.