Class CartHistoryEndpoint
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.web.endpoint.CartHistoryEndpoint
-
@FrameworkRestController @FrameworkMapping("/cart-history") public class CartHistoryEndpoint extends Object
- Author:
- Chad Harchar (charchar)
-
-
Field Summary
Fields Modifier and Type Field Description static String
CART_HISTORY_URI
-
Constructor Summary
Constructors Constructor Description CartHistoryEndpoint(CartProvider cartProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CartProvider
getCartProvider()
com.broadleafcommerce.cart.client.domain.Cart
readCartByOrderNumber(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, String orderNumber)
com.broadleafcommerce.cart.client.domain.Cart
readCartByOrderNumberForAnonymousCustomer(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String emailAddress, String orderNumber)
SimplePage<com.broadleafcommerce.cart.client.domain.Cart>
readCartsForCustomer(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, Date startDate, Date endDate, org.springframework.data.domain.Pageable page)
-
-
-
Field Detail
-
CART_HISTORY_URI
public static final String CART_HISTORY_URI
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CartHistoryEndpoint
public CartHistoryEndpoint(CartProvider cartProvider)
-
-
Method Detail
-
readCartByOrderNumber
@FrameworkGetMapping("/{orderNumber}") public com.broadleafcommerce.cart.client.domain.Cart readCartByOrderNumber(@ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, @PathVariable String orderNumber)
-
readCartByOrderNumberForAnonymousCustomer
@FrameworkGetMapping(value="/{orderNumber}", params="emailAddress") public com.broadleafcommerce.cart.client.domain.Cart readCartByOrderNumberForAnonymousCustomer(@ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @RequestParam String emailAddress, @PathVariable String orderNumber)
-
readCartsForCustomer
@FrameworkGetMapping public SimplePage<com.broadleafcommerce.cart.client.domain.Cart> readCartsForCustomer(@ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, @RequestParam(required=false) @DateTimeFormat(iso=DATE_TIME) Date startDate, @RequestParam(required=false) @DateTimeFormat(iso=DATE_TIME) Date endDate, @PageableDefault(size=50) org.springframework.data.domain.Pageable page)
-
getCartProvider
protected CartProvider getCartProvider()
-
-