Class CartOperationServiceOfferUtils

java.lang.Object
com.broadleafcommerce.cartoperation.service.util.offer.CartOperationServiceOfferUtils

public class CartOperationServiceOfferUtils extends Object
Wrapper for the offer utils required by CartOperationService.
Author:
Sunny Yu
  • Constructor Details

  • Method Details

    • getCartOfferUtils

      public CartOfferUtils getCartOfferUtils()
    • getCartItemOfferUtils

      public CartItemOfferUtils 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

      public List<String> getOfferIdsToIgnore(com.broadleafcommerce.cart.client.domain.Cart cart)
    • 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

      public List<String> getQualifierCartItemIds(com.broadleafcommerce.cart.client.domain.CartItem cartItem)
    • getQualifierCartItemDetails

      public List<com.broadleafcommerce.order.common.domain.OfferItemDetail> getQualifierCartItemDetails(com.broadleafcommerce.cart.client.domain.CartItem cartItem)
    • getOriginOfferId

      public String getOriginOfferId(com.broadleafcommerce.cart.client.domain.CartItem cartItem)