public class Invoice extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Invoice.StatusEnum
See Invoice Status Codes
|
static class |
Invoice.TypeEnum
See Invoice Types
|
| Constructor and Description |
|---|
Invoice() |
| Modifier and Type | Method and Description |
|---|---|
Invoice |
addAttachmentsItem(Attachment attachmentsItem) |
Invoice |
addLineItemsItem(LineItem lineItemsItem) |
Invoice |
addValidationErrorsItem(ValidationError validationErrorsItem) |
Invoice |
attachments(List<Attachment> attachments) |
Invoice |
brandingThemeID(UUID brandingThemeID) |
Invoice |
contact(Contact contact) |
Invoice |
currencyCode(CurrencyCode currencyCode) |
Invoice |
currencyRate(Double currencyRate) |
Invoice |
date(org.threeten.bp.LocalDate date) |
Invoice |
dueDate(org.threeten.bp.LocalDate dueDate) |
boolean |
equals(Object o) |
Invoice |
expectedPaymentDate(org.threeten.bp.LocalDate expectedPaymentDate) |
Double |
getAmountCredited()
Sum of all credit notes, over-payments and pre-payments applied to invoice
|
Double |
getAmountDue()
Amount remaining to be paid on invoice
|
Double |
getAmountPaid()
Sum of payments received for invoice
|
List<Attachment> |
getAttachments()
Displays array of attachments from the API
|
UUID |
getBrandingThemeID()
See BrandingThemes
|
Contact |
getContact()
Get contact
|
List<CreditNote> |
getCreditNotes()
Details of credit notes that have been applied to an invoice
|
CurrencyCode |
getCurrencyCode()
Get currencyCode
|
Double |
getCurrencyRate()
The currency rate for a multicurrency invoice.
|
org.threeten.bp.LocalDate |
getDate()
Date invoice was issued – YYYY-MM-DD.
|
org.threeten.bp.LocalDate |
getDueDate()
Date invoice is due – YYYY-MM-DD
|
org.threeten.bp.LocalDate |
getExpectedPaymentDate()
Shown on sales invoices (Accounts Receivable) when this has been set
|
org.threeten.bp.LocalDate |
getFullyPaidOnDate()
The date the invoice was fully paid.
|
Boolean |
getHasAttachments()
boolean to indicate if an invoice has an attachment
|
Boolean |
getHasErrors()
A boolean to indicate if a invoice has an validation errors
|
UUID |
getInvoiceID()
Xero generated unique identifier for invoice
|
String |
getInvoiceNumber()
ACCREC – Unique alpha numeric code identifying invoice (when missing will auto-generate from your Organisation Invoice Settings) (max length = 255)
|
Boolean |
getIsDiscounted()
boolean to indicate if an invoice has a discount
|
LineAmountTypes |
getLineAmountTypes()
Get lineAmountTypes
|
List<LineItem> |
getLineItems()
See LineItems
|
List<Overpayment> |
getOverpayments()
See Overpayments
|
List<Payment> |
getPayments()
See Payments
|
org.threeten.bp.LocalDate |
getPlannedPaymentDate()
Shown on bills (Accounts Payable) when this has been set
|
List<Prepayment> |
getPrepayments()
See Prepayments
|
String |
getReference()
ACCREC only – additional reference number (max length = 255)
|
Boolean |
getSentToContact()
Boolean to set whether the invoice in the Xero app should be marked as “sent”.
|
Invoice.StatusEnum |
getStatus()
See Invoice Status Codes
|
String |
getStatusAttributeString()
A string to indicate if a invoice status
|
Double |
getSubTotal()
Total of invoice excluding taxes
|
Double |
getTotal()
Total of Invoice tax inclusive (i.e.
|
Double |
getTotalDiscount()
Total of discounts applied on the invoice line items
|
Double |
getTotalTax()
Total tax on invoice
|
Invoice.TypeEnum |
getType()
See Invoice Types
|
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
|
List<ValidationError> |
getValidationErrors()
Displays array of validation error messages from the API
|
Invoice |
hasErrors(Boolean hasErrors) |
int |
hashCode() |
Invoice |
invoiceID(UUID invoiceID) |
Invoice |
invoiceNumber(String invoiceNumber) |
Invoice |
lineAmountTypes(LineAmountTypes lineAmountTypes) |
Invoice |
lineItems(List<LineItem> lineItems) |
Invoice |
plannedPaymentDate(org.threeten.bp.LocalDate plannedPaymentDate) |
Invoice |
reference(String reference) |
Invoice |
sentToContact(Boolean sentToContact) |
void |
setAttachments(List<Attachment> attachments) |
void |
setBrandingThemeID(UUID brandingThemeID) |
void |
setContact(Contact contact) |
void |
setCurrencyCode(CurrencyCode currencyCode) |
void |
setCurrencyRate(Double currencyRate) |
void |
setDate(org.threeten.bp.LocalDate date) |
void |
setDueDate(org.threeten.bp.LocalDate dueDate) |
void |
setExpectedPaymentDate(org.threeten.bp.LocalDate expectedPaymentDate) |
void |
setHasErrors(Boolean hasErrors) |
void |
setInvoiceID(UUID invoiceID) |
void |
setInvoiceNumber(String invoiceNumber) |
void |
setLineAmountTypes(LineAmountTypes lineAmountTypes) |
void |
setLineItems(List<LineItem> lineItems) |
void |
setPlannedPaymentDate(org.threeten.bp.LocalDate plannedPaymentDate) |
void |
setReference(String reference) |
void |
setSentToContact(Boolean sentToContact) |
void |
setStatus(Invoice.StatusEnum status) |
void |
setStatusAttributeString(String statusAttributeString) |
void |
setType(Invoice.TypeEnum type) |
void |
setUrl(String url) |
void |
setValidationErrors(List<ValidationError> validationErrors) |
Invoice |
status(Invoice.StatusEnum status) |
Invoice |
statusAttributeString(String statusAttributeString) |
String |
toString() |
Invoice |
type(Invoice.TypeEnum type) |
Invoice |
url(String url) |
Invoice |
validationErrors(List<ValidationError> validationErrors) |
public Invoice type(Invoice.TypeEnum type)
public Invoice.TypeEnum getType()
public void setType(Invoice.TypeEnum type)
public Contact getContact()
public void setContact(Contact contact)
public Invoice date(org.threeten.bp.LocalDate date)
public org.threeten.bp.LocalDate getDate()
public void setDate(org.threeten.bp.LocalDate date)
public Invoice dueDate(org.threeten.bp.LocalDate dueDate)
public org.threeten.bp.LocalDate getDueDate()
public void setDueDate(org.threeten.bp.LocalDate dueDate)
public Invoice lineAmountTypes(LineAmountTypes lineAmountTypes)
public LineAmountTypes getLineAmountTypes()
public void setLineAmountTypes(LineAmountTypes lineAmountTypes)
public String getInvoiceNumber()
public void setInvoiceNumber(String invoiceNumber)
public String getReference()
public void setReference(String reference)
public UUID getBrandingThemeID()
public void setBrandingThemeID(UUID brandingThemeID)
public String getUrl()
public void setUrl(String url)
public Invoice currencyCode(CurrencyCode currencyCode)
public CurrencyCode getCurrencyCode()
public void setCurrencyCode(CurrencyCode currencyCode)
public Double getCurrencyRate()
public void setCurrencyRate(Double currencyRate)
public Invoice status(Invoice.StatusEnum status)
public Invoice.StatusEnum getStatus()
public void setStatus(Invoice.StatusEnum status)
public Boolean getSentToContact()
public void setSentToContact(Boolean sentToContact)
public Invoice expectedPaymentDate(org.threeten.bp.LocalDate expectedPaymentDate)
public org.threeten.bp.LocalDate getExpectedPaymentDate()
public void setExpectedPaymentDate(org.threeten.bp.LocalDate expectedPaymentDate)
public Invoice plannedPaymentDate(org.threeten.bp.LocalDate plannedPaymentDate)
public org.threeten.bp.LocalDate getPlannedPaymentDate()
public void setPlannedPaymentDate(org.threeten.bp.LocalDate plannedPaymentDate)
public Double getSubTotal()
public Double getTotalTax()
public Double getTotal()
public Double getTotalDiscount()
public UUID getInvoiceID()
public void setInvoiceID(UUID invoiceID)
public Boolean getHasAttachments()
public Boolean getIsDiscounted()
public List<Prepayment> getPrepayments()
public List<Overpayment> getOverpayments()
public Double getAmountDue()
public Double getAmountPaid()
public org.threeten.bp.LocalDate getFullyPaidOnDate()
public Double getAmountCredited()
public org.threeten.bp.OffsetDateTime getUpdatedDateUTC()
public List<CreditNote> getCreditNotes()
public Invoice attachments(List<Attachment> attachments)
public Invoice addAttachmentsItem(Attachment attachmentsItem)
public List<Attachment> getAttachments()
public void setAttachments(List<Attachment> attachments)
public Boolean getHasErrors()
public void setHasErrors(Boolean hasErrors)
public String getStatusAttributeString()
public void setStatusAttributeString(String statusAttributeString)
public Invoice validationErrors(List<ValidationError> validationErrors)
public Invoice addValidationErrorsItem(ValidationError validationErrorsItem)
public List<ValidationError> getValidationErrors()
public void setValidationErrors(List<ValidationError> validationErrors)
Copyright © 2019. All rights reserved.