
com.connectifier.xeroclient.models.Payment 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="Payment">
* <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:string" name="PaymentID" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:dateTime" name="Date" minOccurs="1" maxOccurs="1"/>
* <xs:element type="xs:decimal" name="Amount" minOccurs="1" maxOccurs="1"/>
* <xs:element type="Account" name="Account" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="Reference" minOccurs="0" maxOccurs="1"/>
* <xs:element type="Invoice" name="Invoice" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:decimal" name="CurrencyRate" minOccurs="0" maxOccurs="1"/>
* <xs:element type="paymentType" name="PaymentType" minOccurs="0" maxOccurs="1"/>
* <xs:element type="invoiceStatus" name="Status" 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 Payment
{
private ArrayOfValidationError validationErrors;
private ArrayOfWarning warnings;
private String paymentID;
private Date date;
private BigDecimal amount;
private Account account;
private String reference;
private Invoice invoice;
private BigDecimal currencyRate;
private PaymentType paymentType;
private InvoiceStatus status;
private Date updatedDateUTC;
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 'PaymentID' element value.
*
* @return value
*/
public String getPaymentID() {
return paymentID;
}
/**
* Set the 'PaymentID' element value.
*
* @param paymentID
*/
public void setPaymentID(String paymentID) {
this.paymentID = paymentID;
}
/**
* 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 'Amount' element value.
*
* @return value
*/
public BigDecimal getAmount() {
return amount;
}
/**
* Set the 'Amount' element value.
*
* @param amount
*/
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
/**
* Get the 'Account' element value.
*
* @return value
*/
public Account getAccount() {
return account;
}
/**
* Set the 'Account' element value.
*
* @param account
*/
public void setAccount(Account account) {
this.account = account;
}
/**
* 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 '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 '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 'PaymentType' element value.
*
* @return value
*/
public PaymentType getPaymentType() {
return paymentType;
}
/**
* Set the 'PaymentType' element value.
*
* @param paymentType
*/
public void setPaymentType(PaymentType paymentType) {
this.paymentType = paymentType;
}
/**
* 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 '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 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