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 |
addLineItemsItem(LineItem lineItemsItem) |
Invoice |
brandingThemeID(UUID brandingThemeID) |
Invoice |
contact(Contact contact) |
Invoice |
currencyCode(CurrencyCode currencyCode) |
Invoice |
currencyRate(Float 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) |
Float |
getAmountCredited()
Sum of all credit notes, over-payments and pre-payments applied to invoice
|
Float |
getAmountDue()
Amount remaining to be paid on invoice
|
Float |
getAmountPaid()
Sum of payments received for invoice
|
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
|
Float |
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
|
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)
|
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
|
Float |
getSubTotal()
Total of invoice excluding taxes
|
Float |
getTotal()
Total of Invoice tax inclusive (i.e.
|
Float |
getTotalDiscount()
Total of discounts applied on the invoice line items
|
Float |
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
|
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 |
setBrandingThemeID(UUID brandingThemeID) |
void |
setContact(Contact contact) |
void |
setCurrencyCode(CurrencyCode currencyCode) |
void |
setCurrencyRate(Float currencyRate) |
void |
setDate(org.threeten.bp.LocalDate date) |
void |
setDueDate(org.threeten.bp.LocalDate dueDate) |
void |
setExpectedPaymentDate(org.threeten.bp.LocalDate expectedPaymentDate) |
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 |
setType(Invoice.TypeEnum type) |
void |
setUrl(String url) |
Invoice |
status(Invoice.StatusEnum status) |
String |
toString() |
Invoice |
type(Invoice.TypeEnum type) |
Invoice |
url(String url) |
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 Float getCurrencyRate()
public void setCurrencyRate(Float 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 Float getSubTotal()
public Float getTotalTax()
public Float getTotal()
public Float getTotalDiscount()
public UUID getInvoiceID()
public void setInvoiceID(UUID invoiceID)
public Boolean getHasAttachments()
public List<Prepayment> getPrepayments()
public List<Overpayment> getOverpayments()
public Float getAmountDue()
public Float getAmountPaid()
public org.threeten.bp.LocalDate getFullyPaidOnDate()
public Float getAmountCredited()
public org.threeten.bp.OffsetDateTime getUpdatedDateUTC()
public List<CreditNote> getCreditNotes()
Copyright © 2019. All rights reserved.