
com.connectifier.xeroclient.models.Allocation 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="Allocation">
* <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="xs:decimal" name="AppliedAmount" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:dateTime" name="Date" minOccurs="0" maxOccurs="1"/>
* <xs:element type="Invoice" name="Invoice" minOccurs="0" maxOccurs="1"/>
* <xs:element type="CreditNote" name="CreditNote" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:dateTime" nillable="true" name="UpdatedDateUTC" minOccurs="0" maxOccurs="1"/>
* </xs:all>
* <xs:attribute type="entityValidationStatus" use="optional" name="status"/>
* </xs:complexType>
*
*/
public class Allocation
{
private ArrayOfValidationError validationErrors;
private ArrayOfWarning warnings;
private BigDecimal appliedAmount;
private Date date;
private Invoice invoice;
private CreditNote creditNote;
private Date updatedDateUTC;
private EntityValidationStatus status;
/**
* 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 'AppliedAmount' element value.
*
* @return value
*/
public BigDecimal getAppliedAmount() {
return appliedAmount;
}
/**
* Set the 'AppliedAmount' element value.
*
* @param appliedAmount
*/
public void setAppliedAmount(BigDecimal appliedAmount) {
this.appliedAmount = appliedAmount;
}
/**
* 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 'Invoice' element value.
*
* @return value
*/
public Invoice getInvoice() {
return invoice;
}
/**
* Set the 'Invoice' element value.
*
* @param invoice
*/
public void setInvoice(Invoice invoice) {
this.invoice = invoice;
}
/**
* Get the 'CreditNote' element value.
*
* @return value
*/
public CreditNote getCreditNote() {
return creditNote;
}
/**
* Set the 'CreditNote' element value.
*
* @param creditNote
*/
public void setCreditNote(CreditNote creditNote) {
this.creditNote = creditNote;
}
/**
* 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 'status' attribute value.
*
* @return value
*/
public EntityValidationStatus getStatus() {
return status;
}
/**
* Set the 'status' attribute value.
*
* @param status
*/
public void setStatus(EntityValidationStatus status) {
this.status = status;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy