public class LineItemContainer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Price |
grandTotal |
private Price |
lineItemsSubTotal |
private java.util.List<LineItem> |
productLineItems |
private Price |
totalBeforeTax |
private Price |
totalTax |
Constructor and Description |
---|
LineItemContainer() |
Modifier and Type | Method and Description |
---|---|
Price |
getGrandTotal()
Total price
|
Price |
getLineItemsSubTotal()
/* Sum of lineItemPrice on all lineItems.
|
java.util.List<LineItem> |
getProductLineItems()
A list of line items
|
Price |
getTotalBeforeTax()
Total price before tax
|
Price |
getTotalTax()
Total tax
|
void |
setGrandTotal(Price grandTotal) |
void |
setLineItemsSubTotal(Price lineItemsSubTotal) |
void |
setProductLineItems(java.util.List<LineItem> productLineItems) |
void |
setTotalBeforeTax(Price totalBeforeTax) |
void |
setTotalTax(Price totalTax) |
private Price grandTotal
private Price totalBeforeTax
private Price totalTax
private Price lineItemsSubTotal
private java.util.List<LineItem> productLineItems
public Price getGrandTotal()
public void setGrandTotal(Price grandTotal)
public Price getTotalBeforeTax()
public void setTotalBeforeTax(Price totalBeforeTax)
public Price getTotalTax()
public void setTotalTax(Price totalTax)
public Price getLineItemsSubTotal()
public void setLineItemsSubTotal(Price lineItemsSubTotal)
public java.util.List<LineItem> getProductLineItems()
public void setProductLineItems(java.util.List<LineItem> productLineItems)