Interface CartHistoryService
- All Known Implementing Classes:
DefaultCartHistoryService
public interface CartHistoryService
The service for retrieving the submitted
Carts and any related data if requested.- Author:
- Dima Myroniuk (dmyroniuk)
-
Method Summary
Modifier and TypeMethodDescriptionretrieveHistoricalCartByCartId(com.broadleafcommerce.order.common.domain.CustomerRef customer, String cartId, boolean hydratePayments, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find the cart and payments (if it exists) for the provided customer id and cart id.retrieveHistoricalCartByIdForAnonymousCustomer(String emailAddress, String cartId, boolean hydratePayments, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds a single, historical cart for an anonymous customer.retrieveHistoricalCartByOrderNumber(String customerId, String orderNumber, boolean hydratePayments, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find the cart and payments (if it exists) for the provided customer id and order number.retrieveHistoricalCartForAnonymousCustomer(String emailAddress, String orderNumber, boolean hydratePayments, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds a single, historical cart for an anonymous customer.SimplePage<com.broadleafcommerce.cart.client.domain.Cart>retrieveHistoricalCartsForCustomer(com.broadleafcommerce.order.common.domain.CustomerRef customer, Date startDate, Date endDate, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves all historical carts for a customer.
-
Method Details
-
retrieveHistoricalCartByOrderNumber
CartHistoryResponse retrieveHistoricalCartByOrderNumber(String customerId, String orderNumber, boolean hydratePayments, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find the cart and payments (if it exists) for the provided customer id and order number.- Parameters:
customerId- the id of the customer who owns the cartorderNumber- the order number for the carthydratePayments- if true, the payments for the cart will be added to the responsecontextInfo- Context information around sandbox and multitenant state.- Returns:
- a cart and payments (if it exists) with the given order number that belongs to the provided customer
-
retrieveHistoricalCartByCartId
CartHistoryResponse retrieveHistoricalCartByCartId(com.broadleafcommerce.order.common.domain.CustomerRef customer, String cartId, boolean hydratePayments, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find the cart and payments (if it exists) for the provided customer id and cart id.- Parameters:
customer- the resolvedCustomerReffor the customer requesting the cartcartId- the ID for the carthydratePayments- if true, the payments for the cart will be added to the responsecontextInfo- Context information around sandbox and multitenant state.- Returns:
- a cart and payments (if it exists) with the given order number that belongs to the provided customer
- Since:
- Cart Operations 2.1.6, Release Train 2.1.7, Cart Operations 2.2.3, Release Train 2.2.3, Cart Operations 2.3.1, Release Train 2.3.1
-
retrieveHistoricalCartForAnonymousCustomer
CartHistoryResponse retrieveHistoricalCartForAnonymousCustomer(String emailAddress, String orderNumber, boolean hydratePayments, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds a single, historical cart for an anonymous customer.- Parameters:
emailAddress- Theemail address associated with the cartorderNumber- Thehistorical cart's order numberhydratePayments- if true, the payments for the cart will be added to the responsecontextInfo- Context information around sandbox and multitenant state.- Returns:
- The single, historical cart for an anonymous customer
-
retrieveHistoricalCartByIdForAnonymousCustomer
CartHistoryResponse retrieveHistoricalCartByIdForAnonymousCustomer(String emailAddress, String cartId, boolean hydratePayments, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds a single, historical cart for an anonymous customer.- Parameters:
emailAddress- Theemail address associated with the cartcartId- TheCart.getId()historical cart's ID}hydratePayments- if true, the payments for the cart will be added to the responsecontextInfo- Context information around sandbox and multitenant state.- Returns:
- The single, historical cart for an anonymous customer
- Since:
- Cart Operations 2.1.6, Release Train 2.1.7, Cart Operations 2.2.3, Release Train 2.2.3, Cart Operations 2.3.1, Release Train 2.3.1
-
retrieveHistoricalCartsForCustomer
SimplePage<com.broadleafcommerce.cart.client.domain.Cart> retrieveHistoricalCartsForCustomer(com.broadleafcommerce.order.common.domain.CustomerRef customer, @Nullable Date startDate, @Nullable Date endDate, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves all historical carts for a customer.- Parameters:
customer- the resolvedCustomerReffor the customer requesting the cartsstartDate- first day of the rangeendDate- last day of the rangepage- Pagination informationcontextInfo- Context information around sandbox and multitenant state.- Returns:
- a
SimplePageofCarts
-