Class CartOperationEndpoint

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

@FrameworkRestController @FrameworkMapping("/cart") @Deprecated public class CartOperationEndpoint extends Object
Deprecated.
see ManageCartEndpoint for the new operation endpoint
Author:
Chad Harchar (charchar)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CartOperationEndpoint(CartOperationService cartOpService, CartPricingService cartPricingService, TaxService taxService, CartOperationServiceProperties cartOperationServiceProperties, CartHolder<com.broadleafcommerce.cart.client.domain.Cart> requestCartHolder)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.broadleafcommerce.cart.client.domain.Cart
    addAttribute(com.broadleafcommerce.cart.client.domain.Cart cart, AddAttributeRequest attributeRequest, boolean price, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Deprecated.
     
    com.broadleafcommerce.cart.client.domain.Cart
    addCode(com.broadleafcommerce.cart.client.domain.Cart cart, AddCodeRequest codeRequest, boolean price, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Deprecated.
     
    com.broadleafcommerce.cart.client.domain.Cart
    addToCart(com.broadleafcommerce.cart.client.domain.Cart cart, AddItemRequest addItemRequest, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, boolean price, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Deprecated.
     
    bulkAddItemsToCart(com.broadleafcommerce.cart.client.domain.Cart cart, Collection<AddItemRequest> addItemRequests, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, boolean price, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Deprecated.
     
    com.broadleafcommerce.cart.client.domain.Cart
    bulkRemoveFromCart(com.broadleafcommerce.cart.client.domain.Cart cart, Collection<String> cartItemIds, boolean price, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    protected CartHolder<com.broadleafcommerce.cart.client.domain.Cart>
    Deprecated.
     
    protected TaxService
    Deprecated.
     
    com.broadleafcommerce.cart.client.domain.Cart
    priceCart(com.broadleafcommerce.cart.client.domain.Cart cart, PriceCartRequest priceCartRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Deprecated.
     
    com.broadleafcommerce.cart.client.domain.Cart
    recalculateTax(com.broadleafcommerce.cart.client.domain.Cart cart, boolean estimated, boolean actual, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    com.broadleafcommerce.cart.client.domain.Cart
    recalculateTax(com.broadleafcommerce.cart.client.domain.Cart cart, boolean estimated, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Deprecated.
     
    com.broadleafcommerce.cart.client.domain.Cart
    removeAttribute(com.broadleafcommerce.cart.client.domain.Cart cart, String key, boolean price, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Deprecated.
     
    com.broadleafcommerce.cart.client.domain.Cart
    removeCode(com.broadleafcommerce.cart.client.domain.Cart cart, String code, boolean price, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Deprecated.
     
    com.broadleafcommerce.cart.client.domain.Cart
    removeFromCart(com.broadleafcommerce.cart.client.domain.Cart cart, String cartItemId, boolean price, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Deprecated.
     
    Optional<com.broadleafcommerce.cart.client.domain.Cart>
    resolveCart(com.broadleafcommerce.cart.client.domain.Cart cart)
    Deprecated.
     
    com.broadleafcommerce.cart.client.domain.Cart
    updateCartItem(com.broadleafcommerce.cart.client.domain.Cart cart, UpdateItemRequest updateItemRequest, String cartItemId, boolean price, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • resolveCart

      @FrameworkGetMapping public Optional<com.broadleafcommerce.cart.client.domain.Cart> resolveCart(@Nullable com.broadleafcommerce.cart.client.domain.Cart cart)
      Deprecated.
    • addToCart

      @FrameworkPostMapping(value="/items", consumes="application/json") public com.broadleafcommerce.cart.client.domain.Cart addToCart(@Nullable com.broadleafcommerce.cart.client.domain.Cart cart, @RequestBody AddItemRequest addItemRequest, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Deprecated.
    • bulkAddItemsToCart

      @FrameworkPostMapping(value="/bulk-items", consumes="application/json") public BulkAddToCartResponse bulkAddItemsToCart(@Nullable com.broadleafcommerce.cart.client.domain.Cart cart, @RequestBody Collection<AddItemRequest> addItemRequests, @Nullable com.broadleafcommerce.order.common.domain.CustomerRef customerRef, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Deprecated.
    • updateCartItem

      @FrameworkPatchMapping(value="/items/{cartItemId}", consumes="application/json") public com.broadleafcommerce.cart.client.domain.Cart updateCartItem(com.broadleafcommerce.cart.client.domain.Cart cart, @RequestBody UpdateItemRequest updateItemRequest, @PathVariable("cartItemId") String cartItemId, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Deprecated.
    • removeFromCart

      @FrameworkDeleteMapping("/items/{cartItemId}") public com.broadleafcommerce.cart.client.domain.Cart removeFromCart(com.broadleafcommerce.cart.client.domain.Cart cart, @PathVariable("cartItemId") String cartItemId, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Deprecated.
    • bulkRemoveFromCart

      @FrameworkDeleteMapping("/bulk-items") public com.broadleafcommerce.cart.client.domain.Cart bulkRemoveFromCart(com.broadleafcommerce.cart.client.domain.Cart cart, @RequestParam("cartItemIds") Collection<String> cartItemIds, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Deprecated.
    • priceCart

      @FrameworkPostMapping(value="/pricing", consumes="application/json") public com.broadleafcommerce.cart.client.domain.Cart priceCart(com.broadleafcommerce.cart.client.domain.Cart cart, @RequestBody PriceCartRequest priceCartRequest, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Deprecated.
    • addCode

      @FrameworkPostMapping(value="/offer-codes", consumes="application/json") public com.broadleafcommerce.cart.client.domain.Cart addCode(com.broadleafcommerce.cart.client.domain.Cart cart, @RequestBody AddCodeRequest codeRequest, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Deprecated.
    • removeCode

      @FrameworkDeleteMapping("/offer-codes/{code}") public com.broadleafcommerce.cart.client.domain.Cart removeCode(com.broadleafcommerce.cart.client.domain.Cart cart, @PathVariable("code") String code, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Deprecated.
    • addAttribute

      @FrameworkPostMapping(value="/attributes", consumes="application/json") public com.broadleafcommerce.cart.client.domain.Cart addAttribute(com.broadleafcommerce.cart.client.domain.Cart cart, @RequestBody AddAttributeRequest attributeRequest, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Deprecated.
    • removeAttribute

      @FrameworkDeleteMapping(value="/attributes/{key}", consumes="application/json") public com.broadleafcommerce.cart.client.domain.Cart removeAttribute(com.broadleafcommerce.cart.client.domain.Cart cart, @PathVariable("key") String key, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Deprecated.
    • recalculateTax

      @FrameworkPostMapping(value="/recalculate-tax", consumes="application/json") public com.broadleafcommerce.cart.client.domain.Cart recalculateTax(com.broadleafcommerce.cart.client.domain.Cart cart, @RequestParam(defaultValue="false") boolean estimated, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Deprecated.
    • recalculateTax

      @Deprecated public com.broadleafcommerce.cart.client.domain.Cart recalculateTax(com.broadleafcommerce.cart.client.domain.Cart cart, @RequestParam(defaultValue="true") boolean estimated, @RequestParam(defaultValue="true") boolean actual, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • getCartOpService

      protected CartOperationService getCartOpService()
      Deprecated.
    • getCartPricingService

      protected CartPricingService getCartPricingService()
      Deprecated.
    • getTaxService

      protected TaxService getTaxService()
      Deprecated.
    • getCartOperationServiceProperties

      protected CartOperationServiceProperties getCartOperationServiceProperties()
      Deprecated.
    • getRequestCartHolder

      @Qualifier("requestCartHolder") protected CartHolder<com.broadleafcommerce.cart.client.domain.Cart> getRequestCartHolder()
      Deprecated.