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 booleanbooleanThe reference to the corresponding fulfillment group for this item.javax.money.MonetaryAmountThe fulfillment price of this order item.TheLineItem.getLineNumber()of this item's parent item.javax.money.MonetaryAmountgetPrice()Gets the price: Sale if present and less than standard, otherwise standard.The segment which this item is part of.inthashCode()voidsetFulfillmentGroupRef(String fulfillmentGroupRef) The reference to the corresponding fulfillment group for this item.voidsetFulfillmentPrice(javax.money.MonetaryAmount fulfillmentPrice) Sets the fulfillment price of this order item.voidsetParentLineNumber(String parentLineNumber) TheLineItem.getLineNumber()of this item's parent item.voidsetSegment(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, setSubscriptionMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:OrderLineItemTheLineItem.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:
getParentLineNumberin interfaceOrderLineItem- Returns:
- The
LineItem.getLineNumber()of this item's parent item.
-
getSegment
Description copied from interface:OrderLineItemThe segment which this item is part of. This is used to allow for segmentation across an order for offer application.- Specified by:
getSegmentin interfaceOrderLineItem- Returns:
- The segment of this order item.
-
getFulfillmentPrice
public javax.money.MonetaryAmount getFulfillmentPrice()Description copied from interface:OrderLineItemThe fulfillment price of this order item.- Specified by:
getFulfillmentPricein interfaceOrderLineItem- Returns:
- The fulfillment price of this order item.
-
getFulfillmentGroupRef
Description copied from interface:OrderLineItemThe reference to the corresponding fulfillment group for this item. This implies a 1-to-1 mapping of line item to fulfillment group.- Specified by:
getFulfillmentGroupRefin interfaceOrderLineItem- Returns:
- The reference to the corresponding fulfillment group for this item.
-
setParentLineNumber
Description copied from interface:OrderLineItemTheLineItem.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:
setParentLineNumberin interfaceOrderLineItem- Parameters:
parentLineNumber- TheLineItem.getLineNumber()of this item's parent item.
-
setSegment
Description copied from interface:OrderLineItemSet the segment which this item is part of. This is used to allow for segmentation across an order for offer application.- Specified by:
setSegmentin interfaceOrderLineItem- Parameters:
segment- The segment of this order item.
-
setFulfillmentPrice
public void setFulfillmentPrice(javax.money.MonetaryAmount fulfillmentPrice) Description copied from interface:OrderLineItemSets the fulfillment price of this order item.- Specified by:
setFulfillmentPricein interfaceOrderLineItem
-
setFulfillmentGroupRef
Description copied from interface:OrderLineItemThe reference to the corresponding fulfillment group for this item. This implies a 1-to-1 mapping of line item to fulfillment group.- Specified by:
setFulfillmentGroupRefin interfaceOrderLineItem- Parameters:
fulfillmentGroupRef- The reference to the corresponding fulfillment group for this item.
-
equals
- Overrides:
equalsin classLineItemDto
-
canEqual
- Overrides:
canEqualin classLineItemDto
-
hashCode
public int hashCode()- Overrides:
hashCodein classLineItemDto
-
toString
- Overrides:
toStringin classLineItemDto
-