public class Invoice extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Invoice.LineAmountTypesEnum
Line amounts are exclusive of tax by default if you don’t specify this element.
|
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(Object contact) |
Invoice |
currencyCode(String currencyCode) |
Invoice |
currencyRate(Float currencyRate) |
Invoice |
date(String date) |
Invoice |
dueDate(String dueDate) |
boolean |
equals(Object o) |
Invoice |
expectedPaymentDate(String 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
|
Object |
getContact()
Get contact
|
List<CreditNote> |
getCreditNotes()
Details of credit notes that have been applied to an invoice
|
String |
getCurrencyCode()
The currency that invoice has been raised in (see Currencies)
|
Float |
getCurrencyRate()
The currency rate for a multicurrency invoice.
|
String |
getDate()
Date invoice was issued – YYYY-MM-DD.
|
String |
getDueDate()
Date invoice is due – YYYY-MM-DD
|
String |
getExpectedPaymentDate()
Shown on sales invoices (Accounts Receivable) when this has been set
|
String |
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)
|
Invoice.LineAmountTypesEnum |
getLineAmountTypes()
Line amounts are exclusive of tax by default if you don’t specify this element.
|
List<LineItem> |
getLineItems()
See LineItems
|
List<Overpayment> |
getOverpayments()
See Overpayments
|
List<Payment> |
getPayments()
See Payments
|
String |
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
|
String |
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(Invoice.LineAmountTypesEnum lineAmountTypes) |
Invoice |
lineItems(List<LineItem> lineItems) |
Invoice |
plannedPaymentDate(String plannedPaymentDate) |
Invoice |
reference(String reference) |
Invoice |
sentToContact(Boolean sentToContact) |
void |
setBrandingThemeID(UUID brandingThemeID) |
void |
setContact(Object contact) |
void |
setCurrencyCode(String currencyCode) |
void |
setCurrencyRate(Float currencyRate) |
void |
setDate(String date) |
void |
setDueDate(String dueDate) |
void |
setExpectedPaymentDate(String expectedPaymentDate) |
void |
setInvoiceID(UUID invoiceID) |
void |
setInvoiceNumber(String invoiceNumber) |
void |
setLineAmountTypes(Invoice.LineAmountTypesEnum lineAmountTypes) |
void |
setLineItems(List<LineItem> lineItems) |
void |
setPlannedPaymentDate(String 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 Object getContact()
public void setContact(Object contact)
public String getDate()
public void setDate(String date)
public String getDueDate()
public void setDueDate(String dueDate)
public Invoice lineAmountTypes(Invoice.LineAmountTypesEnum lineAmountTypes)
public Invoice.LineAmountTypesEnum getLineAmountTypes()
public void setLineAmountTypes(Invoice.LineAmountTypesEnum 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 String getCurrencyCode()
public void setCurrencyCode(String 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 String getExpectedPaymentDate()
public void setExpectedPaymentDate(String expectedPaymentDate)
public String getPlannedPaymentDate()
public void setPlannedPaymentDate(String 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 String getFullyPaidOnDate()
public Float getAmountCredited()
public String getUpdatedDateUTC()
public List<CreditNote> getCreditNotes()
Copyright © 2018. All rights reserved.