Class CartOperationServiceOfferUtils
java.lang.Object
com.broadleafcommerce.cartoperation.service.util.offer.CartOperationServiceOfferUtils
Wrapper for the offer utils required by
CartOperationService
.- Author:
- Sunny Yu
-
Constructor Summary
ConstructorDescriptionCartOperationServiceOfferUtils
(CartOfferUtils cartOfferUtils, CartItemOfferUtils cartItemOfferUtils) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCartItemQualifiedOfferIdsToIgnoreList
(com.broadleafcommerce.cart.client.domain.Cart cart, List<com.broadleafcommerce.cart.client.domain.CartItem> cartItems) com.broadleafcommerce.order.common.domain.Adjustment
getFreeGiftAdjustment
(com.broadleafcommerce.cart.client.domain.CartItem cartItem) List<com.broadleafcommerce.promotion.offer.client.web.context.info.FreeGiftItem>
getFreeGiftItemsFromOffers
(com.broadleafcommerce.cart.client.domain.Cart cart) getOfferIdsToIgnore
(com.broadleafcommerce.cart.client.domain.Cart cart) getOriginOfferId
(com.broadleafcommerce.cart.client.domain.CartItem cartItem) List<com.broadleafcommerce.order.common.domain.OfferItemDetail>
getQualifierCartItemDetails
(com.broadleafcommerce.cart.client.domain.CartItem cartItem) getQualifierCartItemIds
(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
storeFreeGiftItems
(com.broadleafcommerce.cart.client.domain.Cart cart, List<com.broadleafcommerce.promotion.offer.client.web.context.info.FreeGiftItem> freeGiftItems)
-
Constructor Details
-
CartOperationServiceOfferUtils
public CartOperationServiceOfferUtils(CartOfferUtils cartOfferUtils, CartItemOfferUtils cartItemOfferUtils)
-
-
Method Details
-
getCartOfferUtils
-
getCartItemOfferUtils
-
storeFreeGiftItems
public void storeFreeGiftItems(com.broadleafcommerce.cart.client.domain.Cart cart, List<com.broadleafcommerce.promotion.offer.client.web.context.info.FreeGiftItem> freeGiftItems) -
getFreeGiftItemsFromOffers
public List<com.broadleafcommerce.promotion.offer.client.web.context.info.FreeGiftItem> getFreeGiftItemsFromOffers(com.broadleafcommerce.cart.client.domain.Cart cart) -
getOfferIdsToIgnore
-
offerShouldBeIgnored
public boolean offerShouldBeIgnored(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.promotion.offer.client.web.context.info.OfferRef offerRef) -
addCartItemQualifiedOfferIdsToIgnoreList
public void addCartItemQualifiedOfferIdsToIgnoreList(com.broadleafcommerce.cart.client.domain.Cart cart, List<com.broadleafcommerce.cart.client.domain.CartItem> cartItems) -
isFreeGiftItem
public boolean isFreeGiftItem(com.broadleafcommerce.cart.client.domain.CartItem cartItem) -
removeIsFreeGiftItemFlag
public void removeIsFreeGiftItemFlag(com.broadleafcommerce.cart.client.domain.CartItem cartItem) -
getFreeGiftAdjustment
public com.broadleafcommerce.order.common.domain.Adjustment getFreeGiftAdjustment(com.broadleafcommerce.cart.client.domain.CartItem cartItem) -
getQualifierCartItemIds
-
getQualifierCartItemDetails
public List<com.broadleafcommerce.order.common.domain.OfferItemDetail> getQualifierCartItemDetails(com.broadleafcommerce.cart.client.domain.CartItem cartItem) -
getOriginOfferId
-