All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.connectifier.xeroclient.models.Invoice Maven / Gradle / Ivy


package com.connectifier.xeroclient.models;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/** 
 * Schema fragment(s) for this class:
 * 
 * <xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Invoice">
 *   <xs:all>
 *     <xs:element type="ArrayOfValidationError" name="ValidationErrors" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="ArrayOfWarning" name="Warnings" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="Contact" name="Contact" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:dateTime" nillable="true" name="Date" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:dateTime" nillable="true" name="DueDate" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:dateTime" nillable="true" name="ExpectedPaymentDate" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="BrandingThemeID" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="invoiceStatus" name="Status" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="lineAmountType" nillable="true" name="LineAmountTypes" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="ArrayOfLineItem" name="LineItems" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:decimal" name="DiscountRate" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:decimal" nillable="true" name="SubTotal" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:decimal" nillable="true" name="TotalTax" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:decimal" nillable="true" name="Total" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:dateTime" nillable="true" name="UpdatedDateUTC" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="currencyCode" name="CurrencyCode" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:dateTime" nillable="true" name="FullyPaidOnDate" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="invoiceType" name="Type" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="InvoiceID" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="InvoiceNumber" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="Reference" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="ArrayOfPayment" name="Payments" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="ArrayOfCreditNote" name="CreditNotes" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:decimal" name="AmountDue" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:decimal" name="AmountPaid" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:decimal" name="AmountCredited" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="Url" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="ExternalLinkProviderName" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:boolean" name="SentToContact" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:decimal" name="CurrencyRate" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:decimal" nillable="true" name="TotalDiscount" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:boolean" name="HasAttachments" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="ArrayOfAttachment" name="Attachments" minOccurs="0" maxOccurs="1"/>
 *   </xs:all>
 *   <xs:attribute type="entityValidationStatus" use="optional" name="status"/>
 * </xs:complexType>
 * 
*/ public class Invoice { private ArrayOfValidationError validationErrors; private ArrayOfWarning warnings; private Contact contact; private Date date; private Date dueDate; private Date expectedPaymentDate; private String brandingThemeID; private InvoiceStatus status; private LineAmountType lineAmountTypes; private ArrayOfLineItem lineItems; private BigDecimal discountRate; private BigDecimal subTotal; private BigDecimal totalTax; private BigDecimal total; private Date updatedDateUTC; private CurrencyCode currencyCode; private Date fullyPaidOnDate; private InvoiceType type; private String invoiceID; private String invoiceNumber; private String reference; private ArrayOfPayment payments; private ArrayOfCreditNote creditNotes; private BigDecimal amountDue; private BigDecimal amountPaid; private BigDecimal amountCredited; private String url; private String externalLinkProviderName; private Boolean sentToContact; private BigDecimal currencyRate; private BigDecimal totalDiscount; private Boolean hasAttachments; private ArrayOfAttachment attachments; private EntityValidationStatus status1; /** * Get the 'ValidationErrors' element value. * * @return value */ public ArrayOfValidationError getValidationErrors() { return validationErrors; } /** * Set the 'ValidationErrors' element value. * * @param validationErrors */ public void setValidationErrors(ArrayOfValidationError validationErrors) { this.validationErrors = validationErrors; } public List getValidationErrorsAsList() { if (validationErrors == null) validationErrors = new ArrayOfValidationError(); return validationErrors.getValidationErrorList(); } /** * Get the 'Warnings' element value. * * @return value */ public ArrayOfWarning getWarnings() { return warnings; } /** * Set the 'Warnings' element value. * * @param warnings */ public void setWarnings(ArrayOfWarning warnings) { this.warnings = warnings; } public List getWarningsAsList() { if (warnings == null) warnings = new ArrayOfWarning(); return warnings.getWarningList(); } /** * Get the 'Contact' element value. * * @return value */ public Contact getContact() { return contact; } /** * Set the 'Contact' element value. * * @param contact */ public void setContact(Contact contact) { this.contact = contact; } /** * Get the 'Date' element value. * * @return value */ public Date getDate() { return date; } /** * Set the 'Date' element value. * * @param date */ public void setDate(Date date) { this.date = date; } /** * Get the 'DueDate' element value. * * @return value */ public Date getDueDate() { return dueDate; } /** * Set the 'DueDate' element value. * * @param dueDate */ public void setDueDate(Date dueDate) { this.dueDate = dueDate; } /** * Get the 'ExpectedPaymentDate' element value. * * @return value */ public Date getExpectedPaymentDate() { return expectedPaymentDate; } /** * Set the 'ExpectedPaymentDate' element value. * * @param expectedPaymentDate */ public void setExpectedPaymentDate(Date expectedPaymentDate) { this.expectedPaymentDate = expectedPaymentDate; } /** * Get the 'BrandingThemeID' element value. * * @return value */ public String getBrandingThemeID() { return brandingThemeID; } /** * Set the 'BrandingThemeID' element value. * * @param brandingThemeID */ public void setBrandingThemeID(String brandingThemeID) { this.brandingThemeID = brandingThemeID; } /** * Get the 'Status' element value. * * @return value */ public InvoiceStatus getStatus() { return status; } /** * Set the 'Status' element value. * * @param status */ public void setStatus(InvoiceStatus status) { this.status = status; } /** * Get the 'LineAmountTypes' element value. * * @return value */ public LineAmountType getLineAmountTypes() { return lineAmountTypes; } /** * Set the 'LineAmountTypes' element value. * * @param lineAmountTypes */ public void setLineAmountTypes(LineAmountType lineAmountTypes) { this.lineAmountTypes = lineAmountTypes; } /** * Get the 'LineItems' element value. * * @return value */ public ArrayOfLineItem getLineItems() { return lineItems; } /** * Set the 'LineItems' element value. * * @param lineItems */ public void setLineItems(ArrayOfLineItem lineItems) { this.lineItems = lineItems; } public List getLineItemsAsList() { if (lineItems == null) lineItems = new ArrayOfLineItem(); return lineItems.getLineItemList(); } /** * Get the 'DiscountRate' element value. * * @return value */ public BigDecimal getDiscountRate() { return discountRate; } /** * Set the 'DiscountRate' element value. * * @param discountRate */ public void setDiscountRate(BigDecimal discountRate) { this.discountRate = discountRate; } /** * Get the 'SubTotal' element value. * * @return value */ public BigDecimal getSubTotal() { return subTotal; } /** * Set the 'SubTotal' element value. * * @param subTotal */ public void setSubTotal(BigDecimal subTotal) { this.subTotal = subTotal; } /** * Get the 'TotalTax' element value. * * @return value */ public BigDecimal getTotalTax() { return totalTax; } /** * Set the 'TotalTax' element value. * * @param totalTax */ public void setTotalTax(BigDecimal totalTax) { this.totalTax = totalTax; } /** * Get the 'Total' element value. * * @return value */ public BigDecimal getTotal() { return total; } /** * Set the 'Total' element value. * * @param total */ public void setTotal(BigDecimal total) { this.total = total; } /** * Get the 'UpdatedDateUTC' element value. * * @return value */ public Date getUpdatedDateUTC() { return updatedDateUTC; } /** * Set the 'UpdatedDateUTC' element value. * * @param updatedDateUTC */ public void setUpdatedDateUTC(Date updatedDateUTC) { this.updatedDateUTC = updatedDateUTC; } /** * Get the 'CurrencyCode' element value. * * @return value */ public CurrencyCode getCurrencyCode() { return currencyCode; } /** * Set the 'CurrencyCode' element value. * * @param currencyCode */ public void setCurrencyCode(CurrencyCode currencyCode) { this.currencyCode = currencyCode; } /** * Get the 'FullyPaidOnDate' element value. * * @return value */ public Date getFullyPaidOnDate() { return fullyPaidOnDate; } /** * Set the 'FullyPaidOnDate' element value. * * @param fullyPaidOnDate */ public void setFullyPaidOnDate(Date fullyPaidOnDate) { this.fullyPaidOnDate = fullyPaidOnDate; } /** * Get the 'Type' element value. * * @return value */ public InvoiceType getType() { return type; } /** * Set the 'Type' element value. * * @param type */ public void setType(InvoiceType type) { this.type = type; } /** * Get the 'InvoiceID' element value. * * @return value */ public String getInvoiceID() { return invoiceID; } /** * Set the 'InvoiceID' element value. * * @param invoiceID */ public void setInvoiceID(String invoiceID) { this.invoiceID = invoiceID; } /** * Get the 'InvoiceNumber' element value. * * @return value */ public String getInvoiceNumber() { return invoiceNumber; } /** * Set the 'InvoiceNumber' element value. * * @param invoiceNumber */ public void setInvoiceNumber(String invoiceNumber) { this.invoiceNumber = invoiceNumber; } /** * Get the 'Reference' element value. * * @return value */ public String getReference() { return reference; } /** * Set the 'Reference' element value. * * @param reference */ public void setReference(String reference) { this.reference = reference; } /** * Get the 'Payments' element value. * * @return value */ public ArrayOfPayment getPayments() { return payments; } /** * Set the 'Payments' element value. * * @param payments */ public void setPayments(ArrayOfPayment payments) { this.payments = payments; } public List getPaymentsAsList() { if (payments == null) payments = new ArrayOfPayment(); return payments.getPaymentList(); } /** * Get the 'CreditNotes' element value. * * @return value */ public ArrayOfCreditNote getCreditNotes() { return creditNotes; } /** * Set the 'CreditNotes' element value. * * @param creditNotes */ public void setCreditNotes(ArrayOfCreditNote creditNotes) { this.creditNotes = creditNotes; } public List getCreditNotesAsList() { if (creditNotes == null) creditNotes = new ArrayOfCreditNote(); return creditNotes.getCreditNoteList(); } /** * Get the 'AmountDue' element value. * * @return value */ public BigDecimal getAmountDue() { return amountDue; } /** * Set the 'AmountDue' element value. * * @param amountDue */ public void setAmountDue(BigDecimal amountDue) { this.amountDue = amountDue; } /** * Get the 'AmountPaid' element value. * * @return value */ public BigDecimal getAmountPaid() { return amountPaid; } /** * Set the 'AmountPaid' element value. * * @param amountPaid */ public void setAmountPaid(BigDecimal amountPaid) { this.amountPaid = amountPaid; } /** * Get the 'AmountCredited' element value. * * @return value */ public BigDecimal getAmountCredited() { return amountCredited; } /** * Set the 'AmountCredited' element value. * * @param amountCredited */ public void setAmountCredited(BigDecimal amountCredited) { this.amountCredited = amountCredited; } /** * Get the 'Url' element value. * * @return value */ public String getUrl() { return url; } /** * Set the 'Url' element value. * * @param url */ public void setUrl(String url) { this.url = url; } /** * Get the 'ExternalLinkProviderName' element value. * * @return value */ public String getExternalLinkProviderName() { return externalLinkProviderName; } /** * Set the 'ExternalLinkProviderName' element value. * * @param externalLinkProviderName */ public void setExternalLinkProviderName(String externalLinkProviderName) { this.externalLinkProviderName = externalLinkProviderName; } /** * Get the 'SentToContact' element value. * * @return value */ public Boolean getSentToContact() { return sentToContact; } /** * Set the 'SentToContact' element value. * * @param sentToContact */ public void setSentToContact(Boolean sentToContact) { this.sentToContact = sentToContact; } /** * Get the 'CurrencyRate' element value. * * @return value */ public BigDecimal getCurrencyRate() { return currencyRate; } /** * Set the 'CurrencyRate' element value. * * @param currencyRate */ public void setCurrencyRate(BigDecimal currencyRate) { this.currencyRate = currencyRate; } /** * Get the 'TotalDiscount' element value. * * @return value */ public BigDecimal getTotalDiscount() { return totalDiscount; } /** * Set the 'TotalDiscount' element value. * * @param totalDiscount */ public void setTotalDiscount(BigDecimal totalDiscount) { this.totalDiscount = totalDiscount; } /** * Get the 'HasAttachments' element value. * * @return value */ public Boolean getHasAttachments() { return hasAttachments; } /** * Set the 'HasAttachments' element value. * * @param hasAttachments */ public void setHasAttachments(Boolean hasAttachments) { this.hasAttachments = hasAttachments; } /** * Get the 'Attachments' element value. * * @return value */ public ArrayOfAttachment getAttachments() { return attachments; } /** * Set the 'Attachments' element value. * * @param attachments */ public void setAttachments(ArrayOfAttachment attachments) { this.attachments = attachments; } public List getAttachmentsAsList() { if (attachments == null) attachments = new ArrayOfAttachment(); return attachments.getAttachmentList(); } /** * Get the 'status' attribute value. * * @return value */ public EntityValidationStatus getStatus1() { return status1; } /** * Set the 'status' attribute value. * * @param status1 */ public void setStatus1(EntityValidationStatus status1) { this.status1 = status1; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy