Class OrderFulfillmentItemOfferUtils
java.lang.Object
com.broadleafcommerce.orderoperation.service.util.OrderFulfillmentItemOfferUtils
Utility class to aid in processing
OrderFulfillmentItems
regarding
offers.- Author:
- Sunny Yu
-
Constructor Summary
ConstructorDescriptionOrderFulfillmentItemOfferUtils
(com.fasterxml.jackson.databind.ObjectMapper mapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.fasterxml.jackson.databind.ObjectMapper
List<com.broadleafcommerce.order.common.domain.OfferItemDetail>
getQualifierFulfillmentItemDetails
(com.broadleafcommerce.order.client.domain.OrderFulfillmentItem item) Gets the offer qualifierOfferItemDetails
that the givenOrderFulfillmentItem
was a target of.getQualifierFulfillmentItemIds
(com.broadleafcommerce.order.client.domain.OrderFulfillmentItem item) Retrieves the offer qualifierOrderFulfillmentItem.getId()
from the given targetOrderFulfillmentItem
.protected com.broadleafcommerce.common.extension.TypeFactory
-
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 qualifierOfferItemDetails
that the givenOrderFulfillmentItem
was a target of.- Parameters:
item
- theOrderFulfillmentItem
to get the offer qualifierOfferItemDetails
from- Returns:
- the offer qualifier
OfferItemDetails
that the givenOrderFulfillmentItem
was a target of
-
getQualifierFulfillmentItemIds
public List<String> getQualifierFulfillmentItemIds(com.broadleafcommerce.order.client.domain.OrderFulfillmentItem item) Retrieves the offer qualifierOrderFulfillmentItem.getId()
from the given targetOrderFulfillmentItem
.- Parameters:
item
- theOrderFulfillmentItem
to retrieve the targetOrderFulfillmentItem.getId()
from- Returns:
- the target
OrderFulfillmentItem.getId()
from the givenOrderFulfillmentItem
-
getMapper
protected com.fasterxml.jackson.databind.ObjectMapper getMapper() -
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-