Class LineItemDTO
- 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 theExternalOfferProviderto retrieveMarketingMessages associated with a set of products.- Author:
- Jon Fleschler (jfleschler)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LineItemDTO()LineItemDTO(javax.money.MonetaryAmount standardPrice, javax.money.MonetaryAmount salePrice, int quantity, Map<String,Object> attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)Map<String,Object>getAttributes()All additional attributes associated with the line itemintgetQuantity()The quantity that this line item representsjavax.money.MonetaryAmountgetSalePrice()Any sale price associated with the line itemjavax.money.MonetaryAmountgetStandardPrice()The base price of the line iteminthashCode()voidsetAttributes(Map<String,Object> attributes)All additional attributes associated with the line itemvoidsetQuantity(int quantity)The quantity that this line item representsvoidsetSalePrice(javax.money.MonetaryAmount salePrice)Any sale price associated with the line itemvoidsetStandardPrice(javax.money.MonetaryAmount standardPrice)The base price of the line itemStringtoString()
-
-
-
Method Detail
-
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
-
canEqual
protected boolean canEqual(Object other)
-
-