Class OrderFulfillmentItemOfferUtils

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

public class OrderFulfillmentItemOfferUtils extends Object
Utility class to aid in processing OrderFulfillmentItems regarding offers.
Author:
Sunny Yu
  • Constructor Summary

    Constructors
    Constructor
    Description
    OrderFulfillmentItemOfferUtils(com.fasterxml.jackson.databind.ObjectMapper mapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.fasterxml.jackson.databind.ObjectMapper
     
    List<com.broadleafcommerce.order.common.domain.OfferItemDetail>
    getQualifierFulfillmentItemDetails(com.broadleafcommerce.order.client.domain.OrderFulfillmentItem item)
    Gets the offer qualifier OfferItemDetails that the given OrderFulfillmentItem was a target of.
    getQualifierFulfillmentItemIds(com.broadleafcommerce.order.client.domain.OrderFulfillmentItem item)
    Retrieves the offer qualifier OrderFulfillmentItem.getId() from the given target OrderFulfillmentItem.
    protected com.broadleafcommerce.common.extension.TypeFactory
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OrderFulfillmentItemOfferUtils

      public OrderFulfillmentItemOfferUtils(com.fasterxml.jackson.databind.ObjectMapper mapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
  • Method Details

    • getQualifierFulfillmentItemDetails

      public List<com.broadleafcommerce.order.common.domain.OfferItemDetail> getQualifierFulfillmentItemDetails(com.broadleafcommerce.order.client.domain.OrderFulfillmentItem item)
      Gets the offer qualifier OfferItemDetails that the given OrderFulfillmentItem was a target of.
      Parameters:
      item - the OrderFulfillmentItem to get the offer qualifier OfferItemDetails from
      Returns:
      the offer qualifier OfferItemDetails that the given OrderFulfillmentItem was a target of
    • getQualifierFulfillmentItemIds

      public List<String> getQualifierFulfillmentItemIds(com.broadleafcommerce.order.client.domain.OrderFulfillmentItem item)
      Retrieves the offer qualifier OrderFulfillmentItem.getId() from the given target OrderFulfillmentItem.
      Parameters:
      item - the OrderFulfillmentItem to retrieve the target OrderFulfillmentItem.getId() from
      Returns:
      the target OrderFulfillmentItem.getId() from the given OrderFulfillmentItem
    • getMapper

      protected com.fasterxml.jackson.databind.ObjectMapper getMapper()
    • getTypeFactory

      protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()