public class Receipt extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Receipt.StatusEnum
Current status of receipt – see status types
|
| Constructor and Description |
|---|
Receipt() |
| Modifier and Type | Method and Description |
|---|---|
Receipt |
addAttachmentsItem(Attachment attachmentsItem) |
Receipt |
addLineitemsItem(LineItem lineitemsItem) |
Receipt |
addValidationErrorsItem(ValidationError validationErrorsItem) |
Receipt |
attachments(List<Attachment> attachments) |
Receipt |
contact(Contact contact) |
Receipt |
date(org.threeten.bp.LocalDate date) |
boolean |
equals(Object o) |
List<Attachment> |
getAttachments()
Displays array of attachments from the API
|
Contact |
getContact()
Get contact
|
org.threeten.bp.LocalDate |
getDate()
Date of receipt – YYYY-MM-DD
|
Boolean |
getHasAttachments()
boolean to indicate if a receipt has an attachment
|
LineAmountTypes |
getLineAmountTypes()
Get lineAmountTypes
|
List<LineItem> |
getLineitems()
Get lineitems
|
UUID |
getReceiptID()
Xero generated unique identifier for receipt
|
String |
getReceiptNumber()
Xero generated sequence number for receipt in current claim for a given user
|
String |
getReference()
Additional reference number
|
Receipt.StatusEnum |
getStatus()
Current status of receipt – see status types
|
Double |
getSubTotal()
Total of receipt excluding taxes
|
Double |
getTotal()
Total of receipt tax inclusive (i.e.
|
Double |
getTotalTax()
Total tax on receipt
|
org.threeten.bp.OffsetDateTime |
getUpdatedDateUTC()
Last modified date UTC format
|
String |
getUrl()
URL link to a source document – shown as “Go to [appName]” in the Xero app
|
User |
getUser()
Get user
|
List<ValidationError> |
getValidationErrors()
Displays array of validation error messages from the API
|
int |
hashCode() |
Receipt |
lineAmountTypes(LineAmountTypes lineAmountTypes) |
Receipt |
lineitems(List<LineItem> lineitems) |
Receipt |
receiptID(UUID receiptID) |
Receipt |
reference(String reference) |
void |
setAttachments(List<Attachment> attachments) |
void |
setContact(Contact contact) |
void |
setDate(org.threeten.bp.LocalDate date) |
void |
setLineAmountTypes(LineAmountTypes lineAmountTypes) |
void |
setLineitems(List<LineItem> lineitems) |
void |
setReceiptID(UUID receiptID) |
void |
setReference(String reference) |
void |
setStatus(Receipt.StatusEnum status) |
void |
setSubTotal(Double subTotal) |
void |
setTotal(Double total) |
void |
setTotalTax(Double totalTax) |
void |
setUser(User user) |
void |
setValidationErrors(List<ValidationError> validationErrors) |
Receipt |
status(Receipt.StatusEnum status) |
Receipt |
subTotal(Double subTotal) |
String |
toString() |
Receipt |
total(Double total) |
Receipt |
totalTax(Double totalTax) |
Receipt |
user(User user) |
Receipt |
validationErrors(List<ValidationError> validationErrors) |
public Receipt date(org.threeten.bp.LocalDate date)
public org.threeten.bp.LocalDate getDate()
public void setDate(org.threeten.bp.LocalDate date)
public Contact getContact()
public void setContact(Contact contact)
public User getUser()
public void setUser(User user)
public String getReference()
public void setReference(String reference)
public Receipt lineAmountTypes(LineAmountTypes lineAmountTypes)
public LineAmountTypes getLineAmountTypes()
public void setLineAmountTypes(LineAmountTypes lineAmountTypes)
public Double getSubTotal()
public void setSubTotal(Double subTotal)
public Double getTotalTax()
public void setTotalTax(Double totalTax)
public Double getTotal()
public void setTotal(Double total)
public UUID getReceiptID()
public void setReceiptID(UUID receiptID)
public Receipt status(Receipt.StatusEnum status)
public Receipt.StatusEnum getStatus()
public void setStatus(Receipt.StatusEnum status)
public String getReceiptNumber()
public org.threeten.bp.OffsetDateTime getUpdatedDateUTC()
public Boolean getHasAttachments()
public String getUrl()
public Receipt validationErrors(List<ValidationError> validationErrors)
public Receipt addValidationErrorsItem(ValidationError validationErrorsItem)
public List<ValidationError> getValidationErrors()
public void setValidationErrors(List<ValidationError> validationErrors)
public Receipt attachments(List<Attachment> attachments)
public Receipt addAttachmentsItem(Attachment attachmentsItem)
public List<Attachment> getAttachments()
public void setAttachments(List<Attachment> attachments)
Copyright © 2019. All rights reserved.