Class LineItemDTO
java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.marketing.LineItemDTO
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionLineItemDTO(javax.money.MonetaryAmount standardPrice, javax.money.MonetaryAmount salePrice, int quantity, Map<String, Object> attributes) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanAll additional attributes associated with the line itemintThe quantity that this line item representsjavax.money.MonetaryAmountAny sale price associated with the line itemjavax.money.MonetaryAmountThe 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 itemtoString()
-
Constructor Details
-
LineItemDTO
public LineItemDTO() -
LineItemDTO
-
-
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
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
All additional attributes associated with the line item -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-