public class TransactionDisplayItem extends Object
| Constructor and Description |
|---|
TransactionDisplayItem() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDiscount(TransactionDisplayDiscount discount)
Adds a discount to the line item.
|
String |
getDescription()
Returns the line item description.
|
Collection |
getDiscounts()
Returns the discounts associated with the line item.
|
String |
getExtended()
Gets the extended price for a line item.
|
String |
getId()
Returns the line item id.
|
String |
getPrice()
Returns the undiscounted price per unit quantity.
|
float |
getQuantity()
Returns the line item quantity.
|
void |
setDescription(String description)
Sets the line item description.
|
void |
setDiscounts(Collection discounts)
Sets the discounts on the line item.
|
void |
setExtended(String extended)
Sets the extended price.
|
void |
setId(String id)
Sets the line item id.
|
void |
setPrice(String price)
Sets the undiscounted price per unit quantity.
|
void |
setQuantity(float quantity)
Sets the line item quantity.
|
TransactionDisplayItem |
withDiscount(TransactionDisplayDiscount discount)
Add a single discount to an existing line item.
|
TransactionDisplayItem |
withDiscounts(Collection newDiscounts)
Adds discounts to an existing line item.
|
public String getId()
public void setId(String id)
id - line item id.public String getDescription()
public void setDescription(String description)
description - line item description.public String getPrice()
public void setPrice(String price)
price - price each.public float getQuantity()
public void setQuantity(float quantity)
quantity - line item quantity.public String getExtended()
public void setExtended(String extended)
extended - extended amount.public Collection getDiscounts()
TransactionDisplayDiscount objects.public void setDiscounts(Collection discounts)
discounts - a java.util.Collection of TransactionDisplayDiscount objects.public void addDiscount(TransactionDisplayDiscount discount)
discount - TransactionDisplayDiscountpublic TransactionDisplayItem withDiscount(TransactionDisplayDiscount discount)
discount - TransactionDisplayDiscountTransactionDisplayItempublic TransactionDisplayItem withDiscounts(Collection newDiscounts)
newDiscounts - - a java.util.Collection of TransactionDisplayDiscount object.TransactionDisplayItemCopyright © 2019 BlockChyp, Inc.. All rights reserved.