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

public class OrderLineItemDto extends LineItemDto implements OrderLineItem
See Also:
  • 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

      public String getParentLineNumber()
      Description copied from interface: OrderLineItem
      The LineItem.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 interface OrderLineItem
      Returns:
      The LineItem.getLineNumber() of this item's parent item.
    • getSegment

      public String 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 interface OrderLineItem
      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 interface OrderLineItem
      Returns:
      The fulfillment price of this order item.
    • getFulfillmentGroupRef

      public String 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 interface OrderLineItem
      Returns:
      The reference to the corresponding fulfillment group for this item.
    • setParentLineNumber

      public void setParentLineNumber(String parentLineNumber)
      Description copied from interface: OrderLineItem
      The LineItem.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 interface OrderLineItem
      Parameters:
      parentLineNumber - The LineItem.getLineNumber() of this item's parent item.
    • setSegment

      public void setSegment(String segment)
      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 interface OrderLineItem
      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 interface OrderLineItem
    • setFulfillmentGroupRef

      public void setFulfillmentGroupRef(String fulfillmentGroupRef)
      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 interface OrderLineItem
      Parameters:
      fulfillmentGroupRef - The reference to the corresponding fulfillment group for this item.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class LineItemDto
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class LineItemDto
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class LineItemDto
    • toString

      public String toString()
      Overrides:
      toString in class LineItemDto