public class Bill extends Object implements RelevantNullChecker
| Modifier and Type | Class and Description |
|---|---|
static class |
Bill.TypeEnum
Type of document
|
| Constructor and Description |
|---|
Bill() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allNull()
Checks whether this resource has at least a single property with non
null
value within its tree, among those that has been included to be checked. |
Bill |
billNumber(String billNumber) |
Bill |
createdDate(Date createdDate) |
Bill |
currency(String currency) |
Bill |
dateOfIssue(Date dateOfIssue) |
boolean |
equals(Object o) |
String |
getBillNumber()
Bill (receipt) number, or in case of incoming invoice an invoice number
|
Date |
getCreatedDate()
A date when bill record has been created.
|
String |
getCurrency()
The currency alphabetic code based on the ISO 4217.
|
Date |
getDateOfIssue()
The date when the cash register document has been issued.
|
Long |
getId()
The unique bill identification.
|
String |
getItemName()
Bill name
|
List<BillItem> |
getItems()
Get items
|
Date |
getModificationDate()
The date of the last modification of the bill resource values.
|
List<Scan> |
getScans()
The list of scans associated with this bill.
|
Supplier |
getSupplier()
Get supplier
|
Double |
getTotalPrice()
The total price as a sum of all checked in bill items and its amount including target rounding mode.
|
Bill.TypeEnum |
getType()
Type of document
|
int |
hashCode() |
Bill |
id(Long id) |
Bill |
itemName(String itemName) |
Bill |
items(List<BillItem> items) |
Bill |
modificationDate(Date modificationDate) |
Bill |
scans(List<Scan> scans) |
void |
setBillNumber(String billNumber) |
void |
setCreatedDate(Date createdDate) |
void |
setCurrency(String currency) |
void |
setDateOfIssue(Date dateOfIssue) |
void |
setId(Long id) |
void |
setItemName(String itemName) |
void |
setItems(List<BillItem> items) |
void |
setModificationDate(Date modificationDate) |
void |
setScans(List<Scan> scans) |
void |
setSupplier(Supplier supplier) |
boolean |
setSupplierIf(Supplier supplier) |
void |
setTotalPrice(Double totalPrice) |
void |
setType(Bill.TypeEnum type) |
Bill |
supplier(Supplier supplier) |
String |
toString() |
Bill |
totalPrice(Double totalPrice) |
Bill |
type(Bill.TypeEnum type) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitallNull, setIfNotAllNullpublic String getBillNumber()
public void setBillNumber(String billNumber)
public Date getCreatedDate()
public void setCreatedDate(Date createdDate)
public Date getDateOfIssue()
public void setDateOfIssue(Date dateOfIssue)
public Long getId()
public void setId(Long id)
public String getItemName()
public void setItemName(String itemName)
public Date getModificationDate()
public void setModificationDate(Date modificationDate)
public Supplier getSupplier()
public void setSupplier(Supplier supplier)
public Double getTotalPrice()
public void setTotalPrice(Double totalPrice)
public Bill type(Bill.TypeEnum type)
public Bill.TypeEnum getType()
public void setType(Bill.TypeEnum type)
public String getCurrency()
public void setCurrency(String currency)
public boolean setSupplierIf(Supplier supplier)
public boolean allNull()
RelevantNullCheckernull
value within its tree, among those that has been included to be checked.allNull in interface RelevantNullCheckertrue if at least a single property of this resource has a non null value,
otherwise falseCopyright © 2020. All rights reserved.