ManageCartEndpoint
for the new operation endpoint@FrameworkRestController @FrameworkMapping(value="/cart") @Deprecated public class CartOperationEndpoint extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CART_OP_URI
Deprecated.
|
Constructor and Description |
---|
CartOperationEndpoint(CartOperationService cartOpService,
CartPricingService cartPricingService,
TaxService taxService,
CartOperationServiceProperties cartOperationServiceProperties,
CartHolder<com.broadleafcommerce.cart.client.domain.Cart> requestCartHolder)
Deprecated.
|
Modifier and Type | Method and 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.cart.client.domain.CustomerRef customerRef,
boolean price,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
|
BulkAddToCartResponse |
bulkAddItemsToCart(com.broadleafcommerce.cart.client.domain.Cart cart,
Collection<AddItemRequest> addItemRequests,
com.broadleafcommerce.cart.client.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 |
getCartOperationServiceProperties()
Deprecated.
|
protected CartOperationService |
getCartOpService()
Deprecated.
|
protected CartPricingService |
getCartPricingService()
Deprecated.
|
protected CartHolder<com.broadleafcommerce.cart.client.domain.Cart> |
getRequestCartHolder()
Deprecated.
|
protected TaxService |
getTaxService()
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 |
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.
|
public static final String CART_OP_URI
public CartOperationEndpoint(CartOperationService cartOpService, CartPricingService cartPricingService, TaxService taxService, CartOperationServiceProperties cartOperationServiceProperties, @Qualifier(value="requestCartHolder") CartHolder<com.broadleafcommerce.cart.client.domain.Cart> requestCartHolder)
@FrameworkGetMapping public Optional<com.broadleafcommerce.cart.client.domain.Cart> resolveCart(@Nullable com.broadleafcommerce.cart.client.domain.Cart cart)
@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.cart.client.domain.CustomerRef customerRef, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
@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.cart.client.domain.CustomerRef customerRef, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
@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(value="cartItemId") String cartItemId, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
@FrameworkDeleteMapping(value="/items/{cartItemId}") public com.broadleafcommerce.cart.client.domain.Cart removeFromCart(com.broadleafcommerce.cart.client.domain.Cart cart, @PathVariable(value="cartItemId") String cartItemId, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
@FrameworkDeleteMapping(value="/bulk-items") public com.broadleafcommerce.cart.client.domain.Cart bulkRemoveFromCart(com.broadleafcommerce.cart.client.domain.Cart cart, @RequestParam(value="cartItemIds") Collection<String> cartItemIds, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
@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)
@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)
@FrameworkDeleteMapping(value="/offer-codes/{code}") public com.broadleafcommerce.cart.client.domain.Cart removeCode(com.broadleafcommerce.cart.client.domain.Cart cart, @PathVariable(value="code") String code, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
@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)
@FrameworkDeleteMapping(value="/attributes/{key}", consumes="application/json") public com.broadleafcommerce.cart.client.domain.Cart removeAttribute(com.broadleafcommerce.cart.client.domain.Cart cart, @PathVariable(value="key") String key, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
@FrameworkPostMapping(value="/recalculate-tax", consumes="application/json") 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)
protected CartOperationService getCartOpService()
protected CartPricingService getCartPricingService()
protected TaxService getTaxService()
protected CartOperationServiceProperties getCartOperationServiceProperties()
@Qualifier(value="requestCartHolder") protected CartHolder<com.broadleafcommerce.cart.client.domain.Cart> getRequestCartHolder()
Copyright © 2021. All rights reserved.