Class CartOperationEndpoint
java.lang.Object
com.broadleafcommerce.cartoperation.web.endpoint.CartOperationEndpoint
@FrameworkRestController
@FrameworkMapping("/cart")
@Deprecated
public class CartOperationEndpoint
extends Object
Deprecated.
- Author:
- Chad Harchar (charchar)
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCartOperationEndpoint
(CartOperationService cartOpService, CartPricingService cartPricingService, TaxService taxService, CartOperationServiceProperties cartOperationServiceProperties, CartHolder<com.broadleafcommerce.cart.client.domain.Cart> requestCartHolder) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptioncom.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.protected CartOperationServiceProperties
Deprecated.protected CartOperationService
Deprecated.protected CartPricingService
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) Deprecated.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.
-
Field Details
-
CART_OP_URI
Deprecated.- See Also:
-
-
Constructor Details
-
CartOperationEndpoint
public CartOperationEndpoint(CartOperationService cartOpService, CartPricingService cartPricingService, TaxService taxService, CartOperationServiceProperties cartOperationServiceProperties, @Qualifier("requestCartHolder") CartHolder<com.broadleafcommerce.cart.client.domain.Cart> requestCartHolder) Deprecated.
-
-
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) Deprecated. -
getCartOpService
Deprecated. -
getCartPricingService
Deprecated. -
getTaxService
Deprecated. -
getCartOperationServiceProperties
Deprecated. -
getRequestCartHolder
@Qualifier("requestCartHolder") protected CartHolder<com.broadleafcommerce.cart.client.domain.Cart> getRequestCartHolder()Deprecated.
-
ManageCartEndpoint
for the new operation endpoint