
com.connectifier.xeroclient.models.Account Maven / Gradle / Ivy
package com.connectifier.xeroclient.models;
import java.util.List;
/**
* Schema fragment(s) for this class:
*
* <xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Account">
* <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="AccountID" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="Code" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="Name" minOccurs="0" maxOccurs="1"/>
* <xs:element type="accountStatus" name="Status" minOccurs="0" maxOccurs="1"/>
* <xs:element type="accountType" name="Type" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="TaxType" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="Description" minOccurs="0" maxOccurs="1"/>
* <xs:element type="accountClass" name="Class" minOccurs="0" maxOccurs="1"/>
* <xs:element type="accountSystemCode" name="SystemAccount" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:boolean" name="EnablePaymentsToAccount" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:boolean" name="ShowInExpenseClaims" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="BankAccountNumber" minOccurs="0" maxOccurs="1"/>
* <xs:element type="currencyCode" name="CurrencyCode" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="ReportingCode" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="ReportingCodeName" minOccurs="0" maxOccurs="1"/>
* </xs:all>
* <xs:attribute type="entityValidationStatus" use="optional" name="status"/>
* </xs:complexType>
*
*/
public class Account
{
private ArrayOfValidationError validationErrors;
private ArrayOfWarning warnings;
private String accountID;
private String code;
private String name;
private AccountStatus status;
private AccountType type;
private String taxType;
private String description;
private AccountClass _Class;
private AccountSystemCode systemAccount;
private Boolean enablePaymentsToAccount;
private Boolean showInExpenseClaims;
private String bankAccountNumber;
private CurrencyCode currencyCode;
private String reportingCode;
private String reportingCodeName;
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 'AccountID' element value.
*
* @return value
*/
public String getAccountID() {
return accountID;
}
/**
* Set the 'AccountID' element value.
*
* @param accountID
*/
public void setAccountID(String accountID) {
this.accountID = accountID;
}
/**
* Get the 'Code' element value.
*
* @return value
*/
public String getCode() {
return code;
}
/**
* Set the 'Code' element value.
*
* @param code
*/
public void setCode(String code) {
this.code = code;
}
/**
* Get the 'Name' element value.
*
* @return value
*/
public String getName() {
return name;
}
/**
* Set the 'Name' element value.
*
* @param name
*/
public void setName(String name) {
this.name = name;
}
/**
* Get the 'Status' element value.
*
* @return value
*/
public AccountStatus getStatus() {
return status;
}
/**
* Set the 'Status' element value.
*
* @param status
*/
public void setStatus(AccountStatus status) {
this.status = status;
}
/**
* Get the 'Type' element value.
*
* @return value
*/
public AccountType getType() {
return type;
}
/**
* Set the 'Type' element value.
*
* @param type
*/
public void setType(AccountType type) {
this.type = type;
}
/**
* Get the 'TaxType' element value.
*
* @return value
*/
public String getTaxType() {
return taxType;
}
/**
* Set the 'TaxType' element value.
*
* @param taxType
*/
public void setTaxType(String taxType) {
this.taxType = taxType;
}
/**
* Get the 'Description' element value.
*
* @return value
*/
public String getDescription() {
return description;
}
/**
* Set the 'Description' element value.
*
* @param description
*/
public void setDescription(String description) {
this.description = description;
}
/**
* Get the 'Class' element value.
*
* @return value
*/
public AccountClass get_Class() {
return _Class;
}
/**
* Set the 'Class' element value.
*
* @param _class
*/
public void set_Class(AccountClass _class) {
_Class = _class;
}
/**
* Get the 'SystemAccount' element value.
*
* @return value
*/
public AccountSystemCode getSystemAccount() {
return systemAccount;
}
/**
* Set the 'SystemAccount' element value.
*
* @param systemAccount
*/
public void setSystemAccount(AccountSystemCode systemAccount) {
this.systemAccount = systemAccount;
}
/**
* Get the 'EnablePaymentsToAccount' element value.
*
* @return value
*/
public Boolean getEnablePaymentsToAccount() {
return enablePaymentsToAccount;
}
/**
* Set the 'EnablePaymentsToAccount' element value.
*
* @param enablePaymentsToAccount
*/
public void setEnablePaymentsToAccount(Boolean enablePaymentsToAccount) {
this.enablePaymentsToAccount = enablePaymentsToAccount;
}
/**
* Get the 'ShowInExpenseClaims' element value.
*
* @return value
*/
public Boolean getShowInExpenseClaims() {
return showInExpenseClaims;
}
/**
* Set the 'ShowInExpenseClaims' element value.
*
* @param showInExpenseClaims
*/
public void setShowInExpenseClaims(Boolean showInExpenseClaims) {
this.showInExpenseClaims = showInExpenseClaims;
}
/**
* Get the 'BankAccountNumber' element value.
*
* @return value
*/
public String getBankAccountNumber() {
return bankAccountNumber;
}
/**
* Set the 'BankAccountNumber' element value.
*
* @param bankAccountNumber
*/
public void setBankAccountNumber(String bankAccountNumber) {
this.bankAccountNumber = bankAccountNumber;
}
/**
* 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 'ReportingCode' element value.
*
* @return value
*/
public String getReportingCode() {
return reportingCode;
}
/**
* Set the 'ReportingCode' element value.
*
* @param reportingCode
*/
public void setReportingCode(String reportingCode) {
this.reportingCode = reportingCode;
}
/**
* Get the 'ReportingCodeName' element value.
*
* @return value
*/
public String getReportingCodeName() {
return reportingCodeName;
}
/**
* Set the 'ReportingCodeName' element value.
*
* @param reportingCodeName
*/
public void setReportingCodeName(String reportingCodeName) {
this.reportingCodeName = reportingCodeName;
}
/**
* 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