Interface OrderLineItem
- All Superinterfaces:
LineItem
- All Known Implementing Classes:
OrderLineItemDto
DTO containing information regarding an item in an
Order
. It includes the quantity
present, prices, whether the item is discountable, and other attributes like skuCode, name,
category, etc.- Author:
- Chad Harchar (charchar), Nathan Moore (nathanmoore).
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
The reference to the corresponding fulfillment group for this item.default javax.money.MonetaryAmount
The fulfillment price of this order item.TheLineItem.getLineNumber()
of this item's parent item.default String
The segment which this item is part of.default void
setFulfillmentGroupRef
(String fulfillmentGroupRef) The reference to the corresponding fulfillment group for this item.default void
setFulfillmentPrice
(javax.money.MonetaryAmount fulfillmentPrice) Sets the fulfillment price of this order item.void
setParentLineNumber
(String parentLineNumber) TheLineItem.getLineNumber()
of this item's parent item.default void
setSegment
(String segment) Set the segment which this item is part of.Methods inherited from interface com.broadleafcommerce.promotion.offer.client.web.context.LineItem
getAttributes, getLineNumber, getQuantity, getSalePrice, getSaleRecurringPrice, getServiceLevel, getStandardPrice, getStandardRecurringPrice, isDiscountable, isSubscription, setAttributes, setDiscountable, setLineNumber, setQuantity, setSalePrice, setSaleRecurringPrice, setStandardPrice, setStandardRecurringPrice, setSubscription
-
Method Details
-
getParentLineNumber
String getParentLineNumber()TheLineItem.getLineNumber()
of this item's parent item. This can be used for linking dependent merchandising items like add-ons or accessories to the items to which they belong.- Returns:
- The
LineItem.getLineNumber()
of this item's parent item.
-
setParentLineNumber
TheLineItem.getLineNumber()
of this item's parent item. This can be used for linking dependent merchandising items like add-ons or accessories to the items to which they belong.- Parameters:
parentLineNumber
- TheLineItem.getLineNumber()
of this item's parent item.
-
getFulfillmentPrice
default javax.money.MonetaryAmount getFulfillmentPrice()The fulfillment price of this order item.- Returns:
- The fulfillment price of this order item.
-
setFulfillmentPrice
default void setFulfillmentPrice(javax.money.MonetaryAmount fulfillmentPrice) Sets the fulfillment price of this order item. -
getSegment
The segment which this item is part of. This is used to allow for segmentation across an order for offer application.- Returns:
- The segment of this order item.
-
setSegment
Set the segment which this item is part of. This is used to allow for segmentation across an order for offer application.- Parameters:
segment
- The segment of this order item.
-
getFulfillmentGroupRef
The reference to the corresponding fulfillment group for this item. This implies a 1-to-1 mapping of line item to fulfillment group.- Returns:
- The reference to the corresponding fulfillment group for this item.
-
setFulfillmentGroupRef
The reference to the corresponding fulfillment group for this item. This implies a 1-to-1 mapping of line item to fulfillment group.- Parameters:
fulfillmentGroupRef
- The reference to the corresponding fulfillment group for this item.
-