
com.connectifier.xeroclient.models.BankTransfer 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="BankTransfer">
* <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="BankTransferID" minOccurs="1" maxOccurs="1"/>
* <xs:element type="xs:dateTime" name="CreatedDateUTC" minOccurs="1" maxOccurs="1"/>
* <xs:element type="xs:dateTime" name="Date" minOccurs="1" maxOccurs="1"/>
* <xs:element type="BankAccount" name="FromBankAccount" minOccurs="1" maxOccurs="1"/>
* <xs:element type="BankAccount" name="ToBankAccount" minOccurs="1" maxOccurs="1"/>
* <xs:element type="xs:decimal" name="Amount" minOccurs="1" maxOccurs="1"/>
* <xs:element type="xs:string" name="FromBankTransactionID" minOccurs="1" maxOccurs="1"/>
* <xs:element type="xs:string" name="ToBankTransactionID" minOccurs="1" maxOccurs="1"/>
* <xs:element type="xs:decimal" name="CurrencyRate" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:boolean" name="HasAttachments" minOccurs="0" maxOccurs="1"/>
* </xs:all>
* <xs:attribute type="entityValidationStatus" use="optional" name="status"/>
* </xs:complexType>
*
*/
public class BankTransfer
{
private ArrayOfValidationError validationErrors;
private ArrayOfWarning warnings;
private String bankTransferID;
private Date createdDateUTC;
private Date date;
private BankAccount fromBankAccount;
private BankAccount toBankAccount;
private BigDecimal amount;
private String fromBankTransactionID;
private String toBankTransactionID;
private BigDecimal currencyRate;
private Boolean hasAttachments;
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 'BankTransferID' element value.
*
* @return value
*/
public String getBankTransferID() {
return bankTransferID;
}
/**
* Set the 'BankTransferID' element value.
*
* @param bankTransferID
*/
public void setBankTransferID(String bankTransferID) {
this.bankTransferID = bankTransferID;
}
/**
* Get the 'CreatedDateUTC' element value.
*
* @return value
*/
public Date getCreatedDateUTC() {
return createdDateUTC;
}
/**
* Set the 'CreatedDateUTC' element value.
*
* @param createdDateUTC
*/
public void setCreatedDateUTC(Date createdDateUTC) {
this.createdDateUTC = createdDateUTC;
}
/**
* 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 'FromBankAccount' element value.
*
* @return value
*/
public BankAccount getFromBankAccount() {
return fromBankAccount;
}
/**
* Set the 'FromBankAccount' element value.
*
* @param fromBankAccount
*/
public void setFromBankAccount(BankAccount fromBankAccount) {
this.fromBankAccount = fromBankAccount;
}
/**
* Get the 'ToBankAccount' element value.
*
* @return value
*/
public BankAccount getToBankAccount() {
return toBankAccount;
}
/**
* Set the 'ToBankAccount' element value.
*
* @param toBankAccount
*/
public void setToBankAccount(BankAccount toBankAccount) {
this.toBankAccount = toBankAccount;
}
/**
* 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 'FromBankTransactionID' element value.
*
* @return value
*/
public String getFromBankTransactionID() {
return fromBankTransactionID;
}
/**
* Set the 'FromBankTransactionID' element value.
*
* @param fromBankTransactionID
*/
public void setFromBankTransactionID(String fromBankTransactionID) {
this.fromBankTransactionID = fromBankTransactionID;
}
/**
* Get the 'ToBankTransactionID' element value.
*
* @return value
*/
public String getToBankTransactionID() {
return toBankTransactionID;
}
/**
* Set the 'ToBankTransactionID' element value.
*
* @param toBankTransactionID
*/
public void setToBankTransactionID(String toBankTransactionID) {
this.toBankTransactionID = toBankTransactionID;
}
/**
* 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 '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 '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