Class OrderLineItemDto
java.lang.Object
com.broadleafcommerce.promotion.offer.client.web.context.LineItemDto
com.broadleafcommerce.promotion.offer.client.web.context.OrderLineItemDto
- All Implemented Interfaces:
LineItem
,OrderLineItem
,Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The reference to the corresponding fulfillment group for this item.javax.money.MonetaryAmount
The fulfillment price of this order item.TheLineItem.getLineNumber()
of this item's parent item.javax.money.MonetaryAmount
getPrice()
Gets the price: Sale if present and less than standard, otherwise standard.The segment which this item is part of.int
hashCode()
void
setFulfillmentGroupRef
(String fulfillmentGroupRef) The reference to the corresponding fulfillment group for this item.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.void
setSegment
(String segment) Set the segment which this item is part of.toString()
Methods inherited from class com.broadleafcommerce.promotion.offer.client.web.context.LineItemDto
getAttributes, getLineNumber, getQuantity, getSalePrice, getSaleRecurringPrice, getStandardPrice, getStandardRecurringPrice, hasRecurringPrice, isDiscountable, isSubscription, setAttributes, setDiscountable, setLineNumber, setQuantity, setSalePrice, setSaleRecurringPrice, setStandardPrice, setStandardRecurringPrice, setSubscription
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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
-
Constructor Details
-
OrderLineItemDto
public OrderLineItemDto()
-
-
Method Details
-
getPrice
public javax.money.MonetaryAmount getPrice()Gets the price: Sale if present and less than standard, otherwise standard.- Returns:
- the price: Sale if present and less than standard, otherwise standard.
-
getParentLineNumber
Description copied from interface:OrderLineItem
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.- Specified by:
getParentLineNumber
in interfaceOrderLineItem
- Returns:
- The
LineItem.getLineNumber()
of this item's parent item.
-
getSegment
Description copied from interface:OrderLineItem
The segment which this item is part of. This is used to allow for segmentation across an order for offer application.- Specified by:
getSegment
in interfaceOrderLineItem
- Returns:
- The segment of this order item.
-
getFulfillmentPrice
public javax.money.MonetaryAmount getFulfillmentPrice()Description copied from interface:OrderLineItem
The fulfillment price of this order item.- Specified by:
getFulfillmentPrice
in interfaceOrderLineItem
- Returns:
- The fulfillment price of this order item.
-
getFulfillmentGroupRef
Description copied from interface:OrderLineItem
The reference to the corresponding fulfillment group for this item. This implies a 1-to-1 mapping of line item to fulfillment group.- Specified by:
getFulfillmentGroupRef
in interfaceOrderLineItem
- Returns:
- The reference to the corresponding fulfillment group for this item.
-
setParentLineNumber
Description copied from interface:OrderLineItem
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.- Specified by:
setParentLineNumber
in interfaceOrderLineItem
- Parameters:
parentLineNumber
- TheLineItem.getLineNumber()
of this item's parent item.
-
setSegment
Description copied from interface:OrderLineItem
Set the segment which this item is part of. This is used to allow for segmentation across an order for offer application.- Specified by:
setSegment
in interfaceOrderLineItem
- Parameters:
segment
- The segment of this order item.
-
setFulfillmentPrice
public void setFulfillmentPrice(javax.money.MonetaryAmount fulfillmentPrice) Description copied from interface:OrderLineItem
Sets the fulfillment price of this order item.- Specified by:
setFulfillmentPrice
in interfaceOrderLineItem
-
setFulfillmentGroupRef
Description copied from interface:OrderLineItem
The reference to the corresponding fulfillment group for this item. This implies a 1-to-1 mapping of line item to fulfillment group.- Specified by:
setFulfillmentGroupRef
in interfaceOrderLineItem
- Parameters:
fulfillmentGroupRef
- The reference to the corresponding fulfillment group for this item.
-
equals
- Overrides:
equals
in classLineItemDto
-
canEqual
- Overrides:
canEqual
in classLineItemDto
-
hashCode
public int hashCode()- Overrides:
hashCode
in classLineItemDto
-
toString
- Overrides:
toString
in classLineItemDto
-