
com.connectifier.xeroclient.models.BankTransaction 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="BankTransaction">
* <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="1" maxOccurs="1"/>
* <xs:element type="xs:dateTime" name="Date" minOccurs="1" maxOccurs="1"/>
* <xs:element type="bankTransactionStatus" name="Status" minOccurs="1" maxOccurs="1"/>
* <xs:element type="lineAmountType" name="LineAmountTypes" minOccurs="1" maxOccurs="1"/>
* <xs:element type="ArrayOfLineItem" name="LineItems" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:decimal" name="SubTotal" minOccurs="1" maxOccurs="1"/>
* <xs:element type="xs:decimal" name="TotalTax" minOccurs="1" maxOccurs="1"/>
* <xs:element type="xs:decimal" name="Total" minOccurs="1" maxOccurs="1"/>
* <xs:element type="xs:dateTime" name="UpdatedDateUTC" minOccurs="1" maxOccurs="1"/>
* <xs:element type="currencyCode" name="CurrencyCode" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="BankTransactionID" minOccurs="1" maxOccurs="1"/>
* <xs:element type="Account" name="BankAccount" minOccurs="1" maxOccurs="1"/>
* <xs:element type="bankTransactionType" name="Type" minOccurs="1" maxOccurs="1"/>
* <xs:element type="xs:string" name="Reference" minOccurs="0" maxOccurs="1"/>
* <xs:element type="trueOrFalse" name="IsReconciled" minOccurs="1" maxOccurs="1"/>
* <xs:element type="xs:decimal" name="CurrencyRate" minOccurs="0" maxOccurs="1"/>
* </xs:all>
* <xs:attribute type="entityValidationStatus" use="optional" name="status"/>
* </xs:complexType>
*
*/
public class BankTransaction
{
private ArrayOfValidationError validationErrors;
private ArrayOfWarning warnings;
private Contact contact;
private Date date;
private BankTransactionStatus status;
private LineAmountType lineAmountTypes;
private ArrayOfLineItem lineItems;
private BigDecimal subTotal;
private BigDecimal totalTax;
private BigDecimal total;
private Date updatedDateUTC;
private CurrencyCode currencyCode;
private String bankTransactionID;
private Account bankAccount;
private BankTransactionType type;
private String reference;
private TrueOrFalse isReconciled;
private BigDecimal currencyRate;
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 'Status' element value.
*
* @return value
*/
public BankTransactionStatus getStatus() {
return status;
}
/**
* Set the 'Status' element value.
*
* @param status
*/
public void setStatus(BankTransactionStatus 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 '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 'BankTransactionID' element value.
*
* @return value
*/
public String getBankTransactionID() {
return bankTransactionID;
}
/**
* Set the 'BankTransactionID' element value.
*
* @param bankTransactionID
*/
public void setBankTransactionID(String bankTransactionID) {
this.bankTransactionID = bankTransactionID;
}
/**
* Get the 'BankAccount' element value.
*
* @return value
*/
public Account getBankAccount() {
return bankAccount;
}
/**
* Set the 'BankAccount' element value.
*
* @param bankAccount
*/
public void setBankAccount(Account bankAccount) {
this.bankAccount = bankAccount;
}
/**
* Get the 'Type' element value.
*
* @return value
*/
public BankTransactionType getType() {
return type;
}
/**
* Set the 'Type' element value.
*
* @param type
*/
public void setType(BankTransactionType type) {
this.type = type;
}
/**
* 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 'IsReconciled' element value.
*
* @return value
*/
public TrueOrFalse getIsReconciled() {
return isReconciled;
}
/**
* Set the 'IsReconciled' element value.
*
* @param isReconciled
*/
public void setIsReconciled(TrueOrFalse isReconciled) {
this.isReconciled = isReconciled;
}
/**
* 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 '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