Class OrderOperationServiceOfferUtils

java.lang.Object
com.broadleafcommerce.orderoperation.service.util.OrderOperationServiceOfferUtils

public class OrderOperationServiceOfferUtils extends Object
Wrapper for the offer utils required by within the Order Operation Service.
Author:
Sunny Yu
  • Constructor Details

  • Method Details

    • getFreeGiftItems

      public List<com.broadleafcommerce.order.client.domain.OrderFulfillmentItem> getFreeGiftItems(List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments, com.broadleafcommerce.order.client.domain.Order order)
      Gets a list of OrderFulfillmentItems that are free gifts.
      Parameters:
      fulfillments - the OrderFulfillments to get the free gift items from
      order - the Order to get the corresponding OrderItem from
      Returns:
      a list of OrderFulfillmentItems that are free gifts
    • getOrderItemOfferUtils

      public OrderItemOfferUtils getOrderItemOfferUtils()
    • getFulfillmentItemOfferUtils

      public OrderFulfillmentItemOfferUtils getFulfillmentItemOfferUtils()
    • setOrderItemOfferUtils

      @Autowired public void setOrderItemOfferUtils(OrderItemOfferUtils orderItemOfferUtils)
    • isFreeGiftItem

      public boolean isFreeGiftItem(com.broadleafcommerce.order.client.domain.OrderItem item)
    • getQualifierOrderItemDetails

      public List<com.broadleafcommerce.order.common.domain.OfferItemDetail> getQualifierOrderItemDetails(com.broadleafcommerce.order.client.domain.OrderItem item)
    • getQualifierOrderItemIds

      public List<String> getQualifierOrderItemIds(com.broadleafcommerce.order.client.domain.OrderItem item)
    • getQualifierFulfillmentItemDetails

      public List<com.broadleafcommerce.order.common.domain.OfferItemDetail> getQualifierFulfillmentItemDetails(com.broadleafcommerce.order.client.domain.OrderFulfillmentItem item)
    • getQualifierFulfillmentItemIds

      public List<String> getQualifierFulfillmentItemIds(com.broadleafcommerce.order.client.domain.OrderFulfillmentItem item)