public class TransactionDisplayTransaction extends Object
| Constructor and Description |
|---|
TransactionDisplayTransaction() |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(TransactionDisplayItem item)
Adds a line item to the transaction.
|
Collection |
getItems()
Returns the line items associated with the transaction.
|
String |
getSubtotal()
Gets the pre tax subtotal for the line item display.
|
String |
getTax()
Returns tax for the line item display.
|
String |
getTotal()
Returns grand total for the line item display.
|
void |
setItems(Collection items)
Sets the line items on the transaction.
|
void |
setSubtotal(String subtotal)
Sets the pre tax subtotal for the line item display.
|
void |
setTax(String tax)
Sets tax for the line item display.
|
void |
setTotal(String total)
Sets the grand total on the line item display.
|
TransactionDisplayTransaction |
withItem(TransactionDisplayItem item)
Add a single line item to an existing transaction for those developers who like the builder pattern.
|
TransactionDisplayTransaction |
withItems(Collection newItems)
Sets the line items for the transaction using the builder pattern.
|
public String getSubtotal()
public void setSubtotal(String subtotal)
subtotal - pre tax subtotal for the line item display.public String getTax()
public void setTax(String tax)
tax - tax for the line item display.public String getTotal()
public void setTotal(String total)
total - grand total.public Collection getItems()
TransactionDisplayItem objects.public void setItems(Collection items)
items - a java.util.Collection of TransactionDisplayItem objects.public void addItem(TransactionDisplayItem item)
item - TransactionDisplayItempublic TransactionDisplayTransaction withItem(TransactionDisplayItem item)
item - TransactionDisplayItemTransactionDisplayTransactionpublic TransactionDisplayTransaction withItems(Collection newItems)
newItems - a java.util.Collection of TransactionDisplayItem object.TransactionDisplayTransactionCopyright © 2019 BlockChyp, Inc.. All rights reserved.