public class CartOperationServiceOfferUtils extends Object
CartOperationService
.Constructor and Description |
---|
CartOperationServiceOfferUtils(CartOfferUtils cartOfferUtils,
CartItemOfferUtils cartItemOfferUtils) |
Modifier and Type | Method and Description |
---|---|
void |
addCartItemQualifiedOfferIdsToIgnoreList(com.broadleafcommerce.cart.client.domain.Cart cart,
List<com.broadleafcommerce.cart.client.domain.CartItem> cartItems) |
void |
addTargetCartItemDetail(com.broadleafcommerce.cart.client.domain.CartItem cartItem,
com.broadleafcommerce.order.common.domain.OfferItemDetail targetItemDetail) |
CartItemOfferUtils |
getCartItemOfferUtils() |
CartOfferUtils |
getCartOfferUtils() |
List<com.broadleafcommerce.promotion.offer.client.web.context.info.FreeGiftItem> |
getFreeGiftItemsFromOffers(com.broadleafcommerce.cart.client.domain.Cart cart) |
List<String> |
getOfferIdsToIgnore(com.broadleafcommerce.cart.client.domain.Cart cart) |
String |
getOriginOfferId(com.broadleafcommerce.cart.client.domain.CartItem cartItem) |
List<com.broadleafcommerce.order.common.domain.OfferItemDetail> |
getQualifierCartItemDetails(com.broadleafcommerce.cart.client.domain.CartItem cartItem) |
List<String> |
getQualifierCartItemIds(com.broadleafcommerce.cart.client.domain.CartItem cartItem) |
List<com.broadleafcommerce.order.common.domain.OfferItemDetail> |
getTargetCartItemDetails(com.broadleafcommerce.cart.client.domain.CartItem cartItem) |
List<String> |
getTargetCartItemIds(com.broadleafcommerce.cart.client.domain.CartItem cartItem) |
boolean |
isFreeGiftItem(com.broadleafcommerce.cart.client.domain.CartItem cartItem) |
boolean |
offerShouldBeIgnored(com.broadleafcommerce.cart.client.domain.Cart cart,
com.broadleafcommerce.promotion.offer.client.web.context.info.OfferRef offerRef) |
void |
removeIsFreeGiftItemFlag(com.broadleafcommerce.cart.client.domain.CartItem cartItem) |
void |
removeQualifierAndTargetDetails(com.broadleafcommerce.cart.client.domain.CartItem cartItem,
String itemIdToRemove) |
void |
setQualifierCartItemDetails(com.broadleafcommerce.cart.client.domain.CartItem cartItem,
List<com.broadleafcommerce.order.common.domain.OfferItemDetail> qualifierItemDetails) |
void |
setTargetCartItemDetails(com.broadleafcommerce.cart.client.domain.CartItem cartItem,
List<com.broadleafcommerce.order.common.domain.OfferItemDetail> targetItemDetails) |
void |
storeFreeGiftItems(com.broadleafcommerce.cart.client.domain.Cart cart,
List<com.broadleafcommerce.promotion.offer.client.web.context.info.FreeGiftItem> freeGiftItems) |
public CartOperationServiceOfferUtils(CartOfferUtils cartOfferUtils, CartItemOfferUtils cartItemOfferUtils)
public CartOfferUtils getCartOfferUtils()
public CartItemOfferUtils getCartItemOfferUtils()
public void storeFreeGiftItems(com.broadleafcommerce.cart.client.domain.Cart cart, List<com.broadleafcommerce.promotion.offer.client.web.context.info.FreeGiftItem> freeGiftItems)
public List<com.broadleafcommerce.promotion.offer.client.web.context.info.FreeGiftItem> getFreeGiftItemsFromOffers(com.broadleafcommerce.cart.client.domain.Cart cart)
public List<String> getOfferIdsToIgnore(com.broadleafcommerce.cart.client.domain.Cart cart)
public boolean offerShouldBeIgnored(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.promotion.offer.client.web.context.info.OfferRef offerRef)
public void addCartItemQualifiedOfferIdsToIgnoreList(com.broadleafcommerce.cart.client.domain.Cart cart, List<com.broadleafcommerce.cart.client.domain.CartItem> cartItems)
public boolean isFreeGiftItem(com.broadleafcommerce.cart.client.domain.CartItem cartItem)
public void removeIsFreeGiftItemFlag(com.broadleafcommerce.cart.client.domain.CartItem cartItem)
public List<String> getQualifierCartItemIds(com.broadleafcommerce.cart.client.domain.CartItem cartItem)
public List<com.broadleafcommerce.order.common.domain.OfferItemDetail> getQualifierCartItemDetails(com.broadleafcommerce.cart.client.domain.CartItem cartItem)
public void setQualifierCartItemDetails(com.broadleafcommerce.cart.client.domain.CartItem cartItem, List<com.broadleafcommerce.order.common.domain.OfferItemDetail> qualifierItemDetails)
public List<String> getTargetCartItemIds(com.broadleafcommerce.cart.client.domain.CartItem cartItem)
public List<com.broadleafcommerce.order.common.domain.OfferItemDetail> getTargetCartItemDetails(com.broadleafcommerce.cart.client.domain.CartItem cartItem)
public void addTargetCartItemDetail(com.broadleafcommerce.cart.client.domain.CartItem cartItem, com.broadleafcommerce.order.common.domain.OfferItemDetail targetItemDetail)
public void setTargetCartItemDetails(com.broadleafcommerce.cart.client.domain.CartItem cartItem, List<com.broadleafcommerce.order.common.domain.OfferItemDetail> targetItemDetails)
public void removeQualifierAndTargetDetails(com.broadleafcommerce.cart.client.domain.CartItem cartItem, String itemIdToRemove)
public String getOriginOfferId(com.broadleafcommerce.cart.client.domain.CartItem cartItem)
Copyright © 2021. All rights reserved.