public class Bill
extends java.lang.Object
Constructor and Description |
---|
Bill() |
Modifier and Type | Method and Description |
---|---|
Customer |
getCustomer()
Returns the customer ordering these products.
|
java.util.GregorianCalendar |
getDate()
Returns the date of the bill.
|
java.util.List<ProductOrder> |
getProductOrders()
Returns the list of ids and quantity of the ordered products.
|
java.util.List<Product> |
getProducts()
Returns the products ordered by the customer.
|
double |
getTotal()
Returns the total amount to pay.
|
void |
setCustomer(Customer customer)
Sets the customer ordering these products.
|
void |
setDate(java.util.GregorianCalendar date)
Set the date of the bill.
|
void |
setProductOrders(java.util.List<ProductOrder> productOrders)
Sets the list of ids and quantity of the ordered products.
|
void |
setProducts(java.util.List<Product> products)
Sets the products ordered by the customer.
|
void |
setTotal(double total)
Sets the total amount to pay.
|
public Customer getCustomer()
public void setCustomer(Customer customer)
customer
- The customer ordering these products.public java.util.GregorianCalendar getDate()
public void setDate(java.util.GregorianCalendar date)
date
- The date of the bill.public java.util.List<Product> getProducts()
public void setProducts(java.util.List<Product> products)
products
- The products ordered by the customer.public java.util.List<ProductOrder> getProductOrders()
public void setProductOrders(java.util.List<ProductOrder> productOrders)
productOrders
- The list of ids and quantity of the ordered products.public double getTotal()
public void setTotal(double total)
total
- The total amount to pay.