
com.connectifier.xeroclient.models.Invoice Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.03.08 at 08:40:56 PM PDT
//
package com.connectifier.xeroclient.models;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlList;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* Java class for Invoice complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Invoice">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="ValidationErrors" type="{}ArrayOfValidationError" minOccurs="0"/>
* <element name="Warnings" type="{}ArrayOfWarning" minOccurs="0"/>
* <element name="Contact" type="{}Contact" minOccurs="0"/>
* <element name="Date" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="DueDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="ExpectedPaymentDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="BrandingThemeID" type="{}uniqueIdentifier" minOccurs="0"/>
* <element name="Status" type="{}invoiceStatus" minOccurs="0"/>
* <element name="LineAmountTypes" type="{}lineAmountType" minOccurs="0"/>
* <element name="LineItems" type="{}ArrayOfLineItem" minOccurs="0"/>
* <element name="DiscountRate" type="{}itemPrice" minOccurs="0"/>
* <element name="SubTotal" type="{}itemPrice" minOccurs="0"/>
* <element name="TotalTax" type="{}itemPrice" minOccurs="0"/>
* <element name="Total" type="{}itemPrice" minOccurs="0"/>
* <element name="UpdatedDateUTC" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="CurrencyCode" type="{}currencyCode" minOccurs="0"/>
* <element name="FullyPaidOnDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="Type" type="{}invoiceType" minOccurs="0"/>
* <element name="InvoiceID" type="{}uniqueIdentifier" minOccurs="0"/>
* <element name="InvoiceNumber" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Reference" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Payments" type="{}ArrayOfPayment" minOccurs="0"/>
* <element name="CreditNotes" type="{}ArrayOfCreditNote" minOccurs="0"/>
* <element name="AmountDue" type="{}itemPrice" minOccurs="0"/>
* <element name="AmountPaid" type="{}itemPrice" minOccurs="0"/>
* <element name="AmountCredited" type="{}itemPrice" minOccurs="0"/>
* <element name="Url" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
* <element name="ExternalLinkProviderName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="SentToContact" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="CurrencyRate" type="{}currencyRate" minOccurs="0"/>
* <element name="TotalDiscount" type="{}itemPrice" minOccurs="0"/>
* <element name="HasAttachments" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="Attachments" type="{}ArrayOfAttachment" minOccurs="0"/>
* </all>
* <attribute name="status" type="{}entityValidationStatus" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Invoice", propOrder = {
})
public class Invoice {
@XmlElement(name = "ValidationErrors")
protected ArrayOfValidationError validationErrors;
@XmlElement(name = "Warnings")
protected ArrayOfWarning warnings;
@XmlElement(name = "Contact")
protected Contact contact;
@XmlElement(name = "Date", type = String.class, nillable = true)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "dateTime")
protected Date date;
@XmlElement(name = "DueDate", type = String.class, nillable = true)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "dateTime")
protected Date dueDate;
@XmlElement(name = "ExpectedPaymentDate", type = String.class, nillable = true)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "dateTime")
protected Date expectedPaymentDate;
@XmlElement(name = "BrandingThemeID")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String brandingThemeID;
@XmlElement(name = "Status")
protected InvoiceStatus status;
@XmlList
@XmlElement(name = "LineAmountTypes", nillable = true)
protected List lineAmountTypes;
@XmlElement(name = "LineItems")
protected ArrayOfLineItem lineItems;
@XmlElement(name = "DiscountRate")
protected BigDecimal discountRate;
@XmlElement(name = "SubTotal", nillable = true)
protected BigDecimal subTotal;
@XmlElement(name = "TotalTax", nillable = true)
protected BigDecimal totalTax;
@XmlElement(name = "Total", nillable = true)
protected BigDecimal total;
@XmlElement(name = "UpdatedDateUTC", type = String.class, nillable = true)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "dateTime")
protected Date updatedDateUTC;
@XmlElement(name = "CurrencyCode")
protected CurrencyCode currencyCode;
@XmlElement(name = "FullyPaidOnDate", type = String.class, nillable = true)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "dateTime")
protected Date fullyPaidOnDate;
@XmlElement(name = "Type")
protected InvoiceType type;
@XmlElement(name = "InvoiceID")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String invoiceID;
@XmlElement(name = "InvoiceNumber")
protected String invoiceNumber;
@XmlElement(name = "Reference")
protected String reference;
@XmlElement(name = "Payments")
protected ArrayOfPayment payments;
@XmlElement(name = "CreditNotes")
protected ArrayOfCreditNote creditNotes;
@XmlElement(name = "AmountDue")
protected BigDecimal amountDue;
@XmlElement(name = "AmountPaid")
protected BigDecimal amountPaid;
@XmlElement(name = "AmountCredited")
protected BigDecimal amountCredited;
@XmlElement(name = "Url")
@XmlSchemaType(name = "anyURI")
protected String url;
@XmlElement(name = "ExternalLinkProviderName")
protected String externalLinkProviderName;
@XmlElement(name = "SentToContact")
protected Boolean sentToContact;
@XmlElement(name = "CurrencyRate")
protected BigDecimal currencyRate;
@XmlElement(name = "TotalDiscount", nillable = true)
protected BigDecimal totalDiscount;
@XmlElement(name = "HasAttachments")
protected Boolean hasAttachments;
@XmlElement(name = "Attachments")
protected ArrayOfAttachment attachments;
@XmlAttribute(name = "status")
protected EntityValidationStatus validationStatus;
/**
* Sets the value of the validationErrors property.
*
* @param value
* allowed object is
* {@link ArrayOfValidationError }
*
*/
public void setValidationErrors(ArrayOfValidationError value) {
this.validationErrors = value;
}
/**
* Sets the value of the warnings property.
*
* @param value
* allowed object is
* {@link ArrayOfWarning }
*
*/
public void setWarnings(ArrayOfWarning value) {
this.warnings = value;
}
/**
* Gets the value of the contact property.
*
* @return
* possible object is
* {@link Contact }
*
*/
public Contact getContact() {
return contact;
}
/**
* Sets the value of the contact property.
*
* @param value
* allowed object is
* {@link Contact }
*
*/
public void setContact(Contact value) {
this.contact = value;
}
/**
* Gets the value of the date property.
*
* @return
* possible object is
* {@link String }
*
*/
public Date getDate() {
return date;
}
/**
* Sets the value of the date property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDate(Date value) {
this.date = value;
}
/**
* Gets the value of the dueDate property.
*
* @return
* possible object is
* {@link String }
*
*/
public Date getDueDate() {
return dueDate;
}
/**
* Sets the value of the dueDate property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDueDate(Date value) {
this.dueDate = value;
}
/**
* Gets the value of the expectedPaymentDate property.
*
* @return
* possible object is
* {@link String }
*
*/
public Date getExpectedPaymentDate() {
return expectedPaymentDate;
}
/**
* Sets the value of the expectedPaymentDate property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setExpectedPaymentDate(Date value) {
this.expectedPaymentDate = value;
}
/**
* Gets the value of the brandingThemeID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBrandingThemeID() {
return brandingThemeID;
}
/**
* Sets the value of the brandingThemeID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBrandingThemeID(String value) {
this.brandingThemeID = value;
}
/**
* Gets the value of the status property.
*
* @return
* possible object is
* {@link InvoiceStatus }
*
*/
public InvoiceStatus getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link InvoiceStatus }
*
*/
public void setStatus(InvoiceStatus value) {
this.status = value;
}
/**
* Gets the value of the lineAmountTypes property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the lineAmountTypes property.
*
*
* For example, to add a new item, do as follows:
*
* getLineAmountTypes().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getLineAmountTypes() {
if (lineAmountTypes == null) {
lineAmountTypes = new ArrayList();
}
return this.lineAmountTypes;
}
/**
* Sets the value of the lineItems property.
*
* @param value
* allowed object is
* {@link ArrayOfLineItem }
*
*/
public void setLineItems(ArrayOfLineItem value) {
this.lineItems = value;
}
/**
* Gets the value of the discountRate property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getDiscountRate() {
return discountRate;
}
/**
* Sets the value of the discountRate property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setDiscountRate(BigDecimal value) {
this.discountRate = value;
}
/**
* Gets the value of the subTotal property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getSubTotal() {
return subTotal;
}
/**
* Sets the value of the subTotal property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setSubTotal(BigDecimal value) {
this.subTotal = value;
}
/**
* Gets the value of the totalTax property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getTotalTax() {
return totalTax;
}
/**
* Sets the value of the totalTax property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setTotalTax(BigDecimal value) {
this.totalTax = value;
}
/**
* Gets the value of the total property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getTotal() {
return total;
}
/**
* Sets the value of the total property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setTotal(BigDecimal value) {
this.total = value;
}
/**
* Gets the value of the updatedDateUTC property.
*
* @return
* possible object is
* {@link String }
*
*/
public Date getUpdatedDateUTC() {
return updatedDateUTC;
}
/**
* Sets the value of the updatedDateUTC property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUpdatedDateUTC(Date value) {
this.updatedDateUTC = value;
}
/**
* Gets the value of the currencyCode property.
*
* @return
* possible object is
* {@link CurrencyCode }
*
*/
public CurrencyCode getCurrencyCode() {
return currencyCode;
}
/**
* Sets the value of the currencyCode property.
*
* @param value
* allowed object is
* {@link CurrencyCode }
*
*/
public void setCurrencyCode(CurrencyCode value) {
this.currencyCode = value;
}
/**
* Gets the value of the fullyPaidOnDate property.
*
* @return
* possible object is
* {@link String }
*
*/
public Date getFullyPaidOnDate() {
return fullyPaidOnDate;
}
/**
* Sets the value of the fullyPaidOnDate property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFullyPaidOnDate(Date value) {
this.fullyPaidOnDate = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link InvoiceType }
*
*/
public InvoiceType getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link InvoiceType }
*
*/
public void setType(InvoiceType value) {
this.type = value;
}
/**
* Gets the value of the invoiceID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getInvoiceID() {
return invoiceID;
}
/**
* Sets the value of the invoiceID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setInvoiceID(String value) {
this.invoiceID = value;
}
/**
* Gets the value of the invoiceNumber property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getInvoiceNumber() {
return invoiceNumber;
}
/**
* Sets the value of the invoiceNumber property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setInvoiceNumber(String value) {
this.invoiceNumber = value;
}
/**
* Gets the value of the reference property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getReference() {
return reference;
}
/**
* Sets the value of the reference property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setReference(String value) {
this.reference = value;
}
/**
* Sets the value of the payments property.
*
* @param value
* allowed object is
* {@link ArrayOfPayment }
*
*/
public void setPayments(ArrayOfPayment value) {
this.payments = value;
}
/**
* Sets the value of the creditNotes property.
*
* @param value
* allowed object is
* {@link ArrayOfCreditNote }
*
*/
public void setCreditNotes(ArrayOfCreditNote value) {
this.creditNotes = value;
}
/**
* Gets the value of the amountDue property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getAmountDue() {
return amountDue;
}
/**
* Sets the value of the amountDue property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setAmountDue(BigDecimal value) {
this.amountDue = value;
}
/**
* Gets the value of the amountPaid property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getAmountPaid() {
return amountPaid;
}
/**
* Sets the value of the amountPaid property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setAmountPaid(BigDecimal value) {
this.amountPaid = value;
}
/**
* Gets the value of the amountCredited property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getAmountCredited() {
return amountCredited;
}
/**
* Sets the value of the amountCredited property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setAmountCredited(BigDecimal value) {
this.amountCredited = value;
}
/**
* Gets the value of the url property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUrl() {
return url;
}
/**
* Sets the value of the url property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUrl(String value) {
this.url = value;
}
/**
* Gets the value of the externalLinkProviderName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getExternalLinkProviderName() {
return externalLinkProviderName;
}
/**
* Sets the value of the externalLinkProviderName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setExternalLinkProviderName(String value) {
this.externalLinkProviderName = value;
}
/**
* Gets the value of the sentToContact property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isSentToContact() {
return sentToContact;
}
/**
* Sets the value of the sentToContact property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setSentToContact(Boolean value) {
this.sentToContact = value;
}
/**
* Gets the value of the currencyRate property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getCurrencyRate() {
return currencyRate;
}
/**
* Sets the value of the currencyRate property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setCurrencyRate(BigDecimal value) {
this.currencyRate = value;
}
/**
* Gets the value of the totalDiscount property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getTotalDiscount() {
return totalDiscount;
}
/**
* Sets the value of the totalDiscount property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setTotalDiscount(BigDecimal value) {
this.totalDiscount = value;
}
/**
* Gets the value of the hasAttachments property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isHasAttachments() {
return hasAttachments;
}
/**
* Sets the value of the hasAttachments property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setHasAttachments(Boolean value) {
this.hasAttachments = value;
}
/**
* Sets the value of the attachments property.
*
* @param value
* allowed object is
* {@link ArrayOfAttachment }
*
*/
public void setAttachments(ArrayOfAttachment value) {
this.attachments = value;
}
/**
* Gets the value of the validationStatus property.
*
* @return
* possible object is
* {@link EntityValidationStatus }
*
*/
public EntityValidationStatus getValidationStatus() {
return validationStatus;
}
/**
* Sets the value of the validationStatus property.
*
* @param value
* allowed object is
* {@link EntityValidationStatus }
*
*/
public void setValidationStatus(EntityValidationStatus value) {
this.validationStatus = value;
}
public List getValidationErrors() {
return ((validationErrors == null)?new ArrayList():validationErrors.getValidationError());
}
public List getWarnings() {
return ((warnings == null)?new ArrayList():warnings.getWarning());
}
public List getLineItems() {
return ((lineItems == null)?new ArrayList():lineItems.getLineItem());
}
public List getPayments() {
return ((payments == null)?new ArrayList():payments.getPayment());
}
public List getCreditNotes() {
return ((creditNotes == null)?new ArrayList():creditNotes.getCreditNote());
}
public List getAttachments() {
return ((attachments == null)?new ArrayList():attachments.getAttachment());
}
}