@FrameworkRestController @FrameworkMapping(value="/cart-history") public class CartHistoryEndpoint extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CART_HISTORY_URI |
Constructor and Description |
---|
CartHistoryEndpoint(CartProvider cartProvider) |
Modifier and Type | Method and Description |
---|---|
protected CartProvider |
getCartProvider() |
com.broadleafcommerce.cart.client.domain.Cart |
readCartByOrderNumber(com.broadleafcommerce.data.tracking.core.context.ContextInfo context,
com.broadleafcommerce.cart.client.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.cart.client.domain.CustomerRef customerRef,
Date startDate,
Date endDate,
org.springframework.data.domain.Pageable page) |
public static final String CART_HISTORY_URI
public CartHistoryEndpoint(CartProvider cartProvider)
@FrameworkGetMapping(value="/{orderNumber}") public com.broadleafcommerce.cart.client.domain.Cart readCartByOrderNumber(@ContextOperation(value=READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, com.broadleafcommerce.cart.client.domain.CustomerRef customerRef, @PathVariable String orderNumber)
@FrameworkGetMapping(value="/{orderNumber}", params="emailAddress") public com.broadleafcommerce.cart.client.domain.Cart readCartByOrderNumberForAnonymousCustomer(@ContextOperation(value=READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @RequestParam String emailAddress, @PathVariable String orderNumber)
@FrameworkGetMapping public SimplePage<com.broadleafcommerce.cart.client.domain.Cart> readCartsForCustomer(@ContextOperation(value=READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, com.broadleafcommerce.cart.client.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)
protected CartProvider getCartProvider()
Copyright © 2021. All rights reserved.