Class LineItemDTO
java.lang.Object
org.broadleafcommerce.common.payment.dto.LineItemDTO
- Author:
- Elbert Bautista (elbertbautista)
Many Hosted solutions, (e.g. PayPal Express/Sagepay Form) allow you to pass in the contents of your cart to be displayed on their hosted pages.
The following DTO represent the usual parameters that you may wish to pass:
name: a Name for this Line Item description: a Description for this Line Item category: a Category for this Line Item (PayPal Express uses this to differentiate between Digital vs Physical) quantity: the Quantity for this Line Item amount: the unit cost of the item without tax tax: the tax applied to this unit item itemTotal: the cost of the unit item with tax total: the total cost of this line item (Quanity x Cost Including Tax)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalField
(String key, Object value) description
(String description) done()
getName()
getTax()
getTotal()
shortDescription
(String shortDescription)
-
Field Details
-
parent
-
additionalFields
-
name
-
description
-
shortDescription
-
systemId
-
category
-
quantity
-
amount
-
tax
-
itemTotal
-
total
-
-
Constructor Details
-
LineItemDTO
-
-
Method Details
-
done
-
additionalField
-
name
-
description
-
shortDescription
-
systemId
-
category
-
quantity
-
amount
-
tax
-
itemTotal
-
total
-
getAdditionalFields
-
getName
-
getDescription
-
getShortDescription
-
getSystemId
-
getCategory
-
getQuantity
-
getAmount
-
getTax
-
getItemTotal
-
getTotal
-