java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.marketing.LineItemDTO
All Implemented Interfaces:
Serializable

public class LineItemDTO extends Object implements Serializable
A DTO representing an order's line item. Used by the ExternalOfferProvider to retrieve MarketingMessages associated with a set of products.
Author:
Jon Fleschler (jfleschler)
See Also:
  • Constructor Details

    • LineItemDTO

      public LineItemDTO()
    • LineItemDTO

      public LineItemDTO(javax.money.MonetaryAmount standardPrice, javax.money.MonetaryAmount salePrice, int quantity, Map<String,Object> attributes)
  • Method Details

    • getStandardPrice

      public javax.money.MonetaryAmount getStandardPrice()
      The base price of the line item
      Returns:
      standardPrice the base price of the line item
    • getSalePrice

      public javax.money.MonetaryAmount getSalePrice()
      Any sale price associated with the line item
      Returns:
      the sale price for the item
    • getQuantity

      public int getQuantity()
      The quantity that this line item represents
      Returns:
      the line item's quantity
    • getAttributes

      public Map<String,Object> getAttributes()
      All additional attributes associated with the line item
      Returns:
      additional attributes associated with the line item
    • setStandardPrice

      public void setStandardPrice(javax.money.MonetaryAmount standardPrice)
      The base price of the line item
    • setSalePrice

      public void setSalePrice(javax.money.MonetaryAmount salePrice)
      Any sale price associated with the line item
    • setQuantity

      public void setQuantity(int quantity)
      The quantity that this line item represents
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
      All additional attributes associated with the line item
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object