Class OrderOperationServiceOfferUtils
java.lang.Object
com.broadleafcommerce.orderoperation.service.util.OrderOperationServiceOfferUtils
Wrapper for the offer utils required by within the Order Operation Service.
- Author:
- Sunny Yu
-
Constructor Summary
ConstructorDescriptionOrderOperationServiceOfferUtils
(OrderFulfillmentItemOfferUtils fulfillmentItemOfferUtils) -
Method Summary
Modifier and TypeMethodDescriptionList<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 ofOrderFulfillmentItems
that are free gifts.List<com.broadleafcommerce.order.common.domain.OfferItemDetail>
getQualifierFulfillmentItemDetails
(com.broadleafcommerce.order.client.domain.OrderFulfillmentItem item) getQualifierFulfillmentItemIds
(com.broadleafcommerce.order.client.domain.OrderFulfillmentItem item) List<com.broadleafcommerce.order.common.domain.OfferItemDetail>
getQualifierOrderItemDetails
(com.broadleafcommerce.order.client.domain.OrderItem item) getQualifierOrderItemIds
(com.broadleafcommerce.order.client.domain.OrderItem item) boolean
isFreeGiftItem
(com.broadleafcommerce.order.client.domain.OrderItem item) void
setOrderItemOfferUtils
(OrderItemOfferUtils orderItemOfferUtils)
-
Constructor Details
-
OrderOperationServiceOfferUtils
-
-
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 ofOrderFulfillmentItems
that are free gifts.- Parameters:
fulfillments
- theOrderFulfillments
to get the free gift items fromorder
- theOrder
to get the correspondingOrderItem
from- Returns:
- a list of
OrderFulfillmentItems
that are free gifts
-
getOrderItemOfferUtils
-
getFulfillmentItemOfferUtils
-
setOrderItemOfferUtils
-
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
-
getQualifierFulfillmentItemDetails
public List<com.broadleafcommerce.order.common.domain.OfferItemDetail> getQualifierFulfillmentItemDetails(com.broadleafcommerce.order.client.domain.OrderFulfillmentItem item) -
getQualifierFulfillmentItemIds
-