Class CartHistoryEndpoint

java.lang.Object
com.broadleafcommerce.cartoperation.web.endpoint.CartHistoryEndpoint

@FrameworkRestController @FrameworkMapping("/cart-history") @DataRouteByKey("cartoperation") public class CartHistoryEndpoint extends Object
Author:
Chad Harchar (charchar)
  • Field Details

  • Constructor Details

    • CartHistoryEndpoint

      public CartHistoryEndpoint(CartProvider cartProvider)
  • Method Details

    • 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)
    • readCartByOrderNumber

      @FrameworkGetMapping(value="/{orderNumber}", params="hydratePayments") public CartHistoryResponse readCartByOrderNumber(@ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, @PathVariable String orderNumber, @RequestParam(name="hydratePayments",required=false,defaultValue="false") boolean hydratePayments)
    • 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)
    • readCartByOrderNumberForAnonymousCustomer

      @FrameworkGetMapping(value="/{orderNumber}", params={"emailAddress","hydratePayments"}) public CartHistoryResponse readCartByOrderNumberForAnonymousCustomer(@ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable String orderNumber, @RequestParam String emailAddress, @RequestParam(name="hydratePayments",required=false,defaultValue="false") boolean hydratePayments)
    • 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)
    • readCustomerCart

      @FrameworkGetMapping(params="cartId") public com.broadleafcommerce.cart.client.domain.Cart readCustomerCart(@ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, @RequestParam String cartId)
    • readAnonymousCustomerCart

      @FrameworkGetMapping(params={"cartId","emailAddress"}) public com.broadleafcommerce.cart.client.domain.Cart readAnonymousCustomerCart(@ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @RequestParam String cartId, @RequestParam String emailAddress)
    • getCartProvider

      protected CartProvider getCartProvider()
    • getCartHistoryService

      protected CartHistoryService getCartHistoryService()
    • setCartHistoryService

      @Autowired public void setCartHistoryService(CartHistoryService cartHistoryService)