Package com.xero.models.accounting
Class Receipt
java.lang.Object
com.xero.models.accounting.Receipt
public class Receipt extends Object
Receipt
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReceipt.StatusEnumCurrent status of receipt – see status types -
Constructor Summary
Constructors Constructor Description Receipt() -
Method Summary
Modifier and Type Method Description ReceiptaddAttachmentsItem(Attachment attachmentsItem)ReceiptaddLineItemsItem(LineItem lineItemsItem)ReceiptaddValidationErrorsItem(ValidationError validationErrorsItem)ReceiptaddWarningsItem(ValidationError warningsItem)Receiptattachments(List<Attachment> attachments)Receiptcontact(Contact contact)Receiptdate(String date)booleanequals(Object o)List<Attachment>getAttachments()Displays array of attachments from the APIContactgetContact()Get contactStringgetDate()Date of receipt – YYYY-MM-DDorg.threeten.bp.LocalDategetDateAsDate()BooleangetHasAttachments()boolean to indicate if a receipt has an attachmentLineAmountTypesgetLineAmountTypes()Get lineAmountTypesList<LineItem>getLineItems()Get lineItemsUUIDgetReceiptID()Xero generated unique identifier for receiptStringgetReceiptNumber()Xero generated sequence number for receipt in current claim for a given userStringgetReference()Additional reference numberReceipt.StatusEnumgetStatus()Current status of receipt – see status typesDoublegetSubTotal()Total of receipt excluding taxesDoublegetTotal()Total of receipt tax inclusive (i.e.DoublegetTotalTax()Total tax on receiptStringgetUpdatedDateUTC()Last modified date UTC formatorg.threeten.bp.OffsetDateTimegetUpdatedDateUTCAsDate()StringgetUrl()URL link to a source document – shown as “Go to [appName]” in the Xero appUsergetUser()Get userList<ValidationError>getValidationErrors()Displays array of validation error messages from the APIList<ValidationError>getWarnings()Displays array of warning messages from the APIinthashCode()ReceiptlineAmountTypes(LineAmountTypes lineAmountTypes)ReceiptlineItems(List<LineItem> lineItems)ReceiptreceiptID(UUID receiptID)Receiptreference(String reference)voidsetAttachments(List<Attachment> attachments)voidsetContact(Contact contact)voidsetDate(String date)voidsetDate(org.threeten.bp.LocalDate date)voidsetLineAmountTypes(LineAmountTypes lineAmountTypes)voidsetLineItems(List<LineItem> lineItems)voidsetReceiptID(UUID receiptID)voidsetReference(String reference)voidsetStatus(Receipt.StatusEnum status)voidsetSubTotal(Double subTotal)voidsetTotal(Double total)voidsetTotalTax(Double totalTax)voidsetUser(User user)voidsetValidationErrors(List<ValidationError> validationErrors)voidsetWarnings(List<ValidationError> warnings)Receiptstatus(Receipt.StatusEnum status)ReceiptsubTotal(Double subTotal)StringtoString()Receipttotal(Double total)ReceipttotalTax(Double totalTax)Receiptuser(User user)ReceiptvalidationErrors(List<ValidationError> validationErrors)Receiptwarnings(List<ValidationError> warnings)
-
Constructor Details
-
Receipt
public Receipt()
-
-
Method Details
-
date
-
getDate
Date of receipt – YYYY-MM-DD- Returns:
- date
-
getDateAsDate
public org.threeten.bp.LocalDate getDateAsDate() -
setDate
-
setDate
public void setDate(org.threeten.bp.LocalDate date) -
contact
-
getContact
Get contact- Returns:
- contact
-
setContact
-
lineItems
-
addLineItemsItem
-
getLineItems
Get lineItems- Returns:
- lineItems
-
setLineItems
-
user
-
getUser
Get user- Returns:
- user
-
setUser
-
reference
-
getReference
Additional reference number- Returns:
- reference
-
setReference
-
lineAmountTypes
-
getLineAmountTypes
Get lineAmountTypes- Returns:
- lineAmountTypes
-
setLineAmountTypes
-
subTotal
-
getSubTotal
Total of receipt excluding taxes- Returns:
- subTotal
-
setSubTotal
-
totalTax
-
getTotalTax
Total tax on receipt- Returns:
- totalTax
-
setTotalTax
-
total
-
getTotal
Total of receipt tax inclusive (i.e. SubTotal + TotalTax)- Returns:
- total
-
setTotal
-
receiptID
-
getReceiptID
Xero generated unique identifier for receipt- Returns:
- receiptID
-
setReceiptID
-
status
-
getStatus
Current status of receipt – see status types- Returns:
- status
-
setStatus
-
getReceiptNumber
Xero generated sequence number for receipt in current claim for a given user- Returns:
- receiptNumber
-
getUpdatedDateUTC
Last modified date UTC format- Returns:
- updatedDateUTC
-
getUpdatedDateUTCAsDate
public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate() -
getHasAttachments
boolean to indicate if a receipt has an attachment- Returns:
- hasAttachments
-
getUrl
URL link to a source document – shown as “Go to [appName]” in the Xero app- Returns:
- url
-
validationErrors
-
addValidationErrorsItem
-
getValidationErrors
Displays array of validation error messages from the API- Returns:
- validationErrors
-
setValidationErrors
-
warnings
-
addWarningsItem
-
getWarnings
Displays array of warning messages from the API- Returns:
- warnings
-
setWarnings
-
attachments
-
addAttachmentsItem
-
getAttachments
Displays array of attachments from the API- Returns:
- attachments
-
setAttachments
-
equals
-
hashCode
public int hashCode() -
toString
-