Class LineItem
java.lang.Object
com.broadleafcommerce.paymentgateway.domain.LineItem
- 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)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadditionalField
(String key, Object value) amount
(javax.money.MonetaryAmount amount) description
(String description) done()
javax.money.MonetaryAmount
javax.money.MonetaryAmount
getName()
int
javax.money.MonetaryAmount
getTax()
javax.money.MonetaryAmount
getTotal()
itemTotal
(javax.money.MonetaryAmount itemTotal) quantity
(int quantity) shortDescription
(String shortDescription) tax
(javax.money.MonetaryAmount tax) total
(javax.money.MonetaryAmount total)
-
Constructor Details
-
LineItem
-
-
Method Details
-
done
-
additionalField
-
name
-
description
-
shortDescription
-
systemId
-
category
-
quantity
-
amount
-
tax
-
itemTotal
-
total
-
getParent
-
getName
-
getDescription
-
getShortDescription
-
getSystemId
-
getCategory
-
getQuantity
public int getQuantity() -
getAmount
public javax.money.MonetaryAmount getAmount() -
getTax
public javax.money.MonetaryAmount getTax() -
getItemTotal
public javax.money.MonetaryAmount getItemTotal() -
getTotal
public javax.money.MonetaryAmount getTotal() -
getAdditionalFields
-