
com.connectifier.xeroclient.models.Organisation Maven / Gradle / Ivy
package com.connectifier.xeroclient.models;
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="Organisation">
* <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="APIKey" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="Name" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="LegalName" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:boolean" name="PaysTax" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="Version" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="OrganisationType" minOccurs="0" maxOccurs="1"/>
* <xs:element type="organisationEntityType" name="OrganisationEntityType" minOccurs="0" maxOccurs="1"/>
* <xs:element type="currencyCode" name="BaseCurrency" minOccurs="0" maxOccurs="1"/>
* <xs:element type="isoCountryCode" name="CountryCode" minOccurs="0" maxOccurs="1"/>
* <xs:element type="trueOrFalse" name="IsDemoCompany" minOccurs="0" maxOccurs="1"/>
* <xs:element type="organisationStatusCode" name="OrganisationStatus" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="RegistrationNumber" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="TaxNumber" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:int" name="FinancialYearEndDay" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:int" name="FinancialYearEndMonth" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:dateTime" name="PeriodLockDate" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:dateTime" name="EndOfYearLockDate" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:dateTime" name="CreatedDateUTC" minOccurs="0" maxOccurs="1"/>
* <xs:element type="timezoneCode" name="Timezone" minOccurs="0" maxOccurs="1"/>
* <xs:element type="ArrayOfAddress" name="Addresses" minOccurs="0" maxOccurs="1"/>
* <xs:element type="ArrayOfPhone" name="Phones" minOccurs="0" maxOccurs="1"/>
* </xs:all>
* <xs:attribute type="entityValidationStatus" use="optional" name="status"/>
* </xs:complexType>
*
*/
public class Organisation
{
private ArrayOfValidationError validationErrors;
private ArrayOfWarning warnings;
private String APIKey;
private String name;
private String legalName;
private Boolean paysTax;
private String version;
private String organisationType;
private OrganisationEntityType organisationEntityType;
private CurrencyCode baseCurrency;
private IsoCountryCode countryCode;
private TrueOrFalse isDemoCompany;
private OrganisationStatusCode organisationStatus;
private String registrationNumber;
private String taxNumber;
private Integer financialYearEndDay;
private Integer financialYearEndMonth;
private Date periodLockDate;
private Date endOfYearLockDate;
private Date createdDateUTC;
private TimezoneCode timezone;
private ArrayOfAddress addresses;
private ArrayOfPhone phones;
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 'APIKey' element value.
*
* @return value
*/
public String getAPIKey() {
return APIKey;
}
/**
* Set the 'APIKey' element value.
*
* @param APIKey
*/
public void setAPIKey(String APIKey) {
this.APIKey = APIKey;
}
/**
* 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 'LegalName' element value.
*
* @return value
*/
public String getLegalName() {
return legalName;
}
/**
* Set the 'LegalName' element value.
*
* @param legalName
*/
public void setLegalName(String legalName) {
this.legalName = legalName;
}
/**
* Get the 'PaysTax' element value.
*
* @return value
*/
public Boolean getPaysTax() {
return paysTax;
}
/**
* Set the 'PaysTax' element value.
*
* @param paysTax
*/
public void setPaysTax(Boolean paysTax) {
this.paysTax = paysTax;
}
/**
* Get the 'Version' element value.
*
* @return value
*/
public String getVersion() {
return version;
}
/**
* Set the 'Version' element value.
*
* @param version
*/
public void setVersion(String version) {
this.version = version;
}
/**
* Get the 'OrganisationType' element value.
*
* @return value
*/
public String getOrganisationType() {
return organisationType;
}
/**
* Set the 'OrganisationType' element value.
*
* @param organisationType
*/
public void setOrganisationType(String organisationType) {
this.organisationType = organisationType;
}
/**
* Get the 'OrganisationEntityType' element value.
*
* @return value
*/
public OrganisationEntityType getOrganisationEntityType() {
return organisationEntityType;
}
/**
* Set the 'OrganisationEntityType' element value.
*
* @param organisationEntityType
*/
public void setOrganisationEntityType(
OrganisationEntityType organisationEntityType) {
this.organisationEntityType = organisationEntityType;
}
/**
* Get the 'BaseCurrency' element value.
*
* @return value
*/
public CurrencyCode getBaseCurrency() {
return baseCurrency;
}
/**
* Set the 'BaseCurrency' element value.
*
* @param baseCurrency
*/
public void setBaseCurrency(CurrencyCode baseCurrency) {
this.baseCurrency = baseCurrency;
}
/**
* Get the 'CountryCode' element value.
*
* @return value
*/
public IsoCountryCode getCountryCode() {
return countryCode;
}
/**
* Set the 'CountryCode' element value.
*
* @param countryCode
*/
public void setCountryCode(IsoCountryCode countryCode) {
this.countryCode = countryCode;
}
/**
* Get the 'IsDemoCompany' element value.
*
* @return value
*/
public TrueOrFalse getIsDemoCompany() {
return isDemoCompany;
}
/**
* Set the 'IsDemoCompany' element value.
*
* @param isDemoCompany
*/
public void setIsDemoCompany(TrueOrFalse isDemoCompany) {
this.isDemoCompany = isDemoCompany;
}
/**
* Get the 'OrganisationStatus' element value.
*
* @return value
*/
public OrganisationStatusCode getOrganisationStatus() {
return organisationStatus;
}
/**
* Set the 'OrganisationStatus' element value.
*
* @param organisationStatus
*/
public void setOrganisationStatus(OrganisationStatusCode organisationStatus) {
this.organisationStatus = organisationStatus;
}
/**
* Get the 'RegistrationNumber' element value.
*
* @return value
*/
public String getRegistrationNumber() {
return registrationNumber;
}
/**
* Set the 'RegistrationNumber' element value.
*
* @param registrationNumber
*/
public void setRegistrationNumber(String registrationNumber) {
this.registrationNumber = registrationNumber;
}
/**
* Get the 'TaxNumber' element value.
*
* @return value
*/
public String getTaxNumber() {
return taxNumber;
}
/**
* Set the 'TaxNumber' element value.
*
* @param taxNumber
*/
public void setTaxNumber(String taxNumber) {
this.taxNumber = taxNumber;
}
/**
* Get the 'FinancialYearEndDay' element value.
*
* @return value
*/
public Integer getFinancialYearEndDay() {
return financialYearEndDay;
}
/**
* Set the 'FinancialYearEndDay' element value.
*
* @param financialYearEndDay
*/
public void setFinancialYearEndDay(Integer financialYearEndDay) {
this.financialYearEndDay = financialYearEndDay;
}
/**
* Get the 'FinancialYearEndMonth' element value.
*
* @return value
*/
public Integer getFinancialYearEndMonth() {
return financialYearEndMonth;
}
/**
* Set the 'FinancialYearEndMonth' element value.
*
* @param financialYearEndMonth
*/
public void setFinancialYearEndMonth(Integer financialYearEndMonth) {
this.financialYearEndMonth = financialYearEndMonth;
}
/**
* Get the 'PeriodLockDate' element value.
*
* @return value
*/
public Date getPeriodLockDate() {
return periodLockDate;
}
/**
* Set the 'PeriodLockDate' element value.
*
* @param periodLockDate
*/
public void setPeriodLockDate(Date periodLockDate) {
this.periodLockDate = periodLockDate;
}
/**
* Get the 'EndOfYearLockDate' element value.
*
* @return value
*/
public Date getEndOfYearLockDate() {
return endOfYearLockDate;
}
/**
* Set the 'EndOfYearLockDate' element value.
*
* @param endOfYearLockDate
*/
public void setEndOfYearLockDate(Date endOfYearLockDate) {
this.endOfYearLockDate = endOfYearLockDate;
}
/**
* 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 'Timezone' element value.
*
* @return value
*/
public TimezoneCode getTimezone() {
return timezone;
}
/**
* Set the 'Timezone' element value.
*
* @param timezone
*/
public void setTimezone(TimezoneCode timezone) {
this.timezone = timezone;
}
/**
* Get the 'Addresses' element value.
*
* @return value
*/
public ArrayOfAddress getAddresses() {
return addresses;
}
/**
* Set the 'Addresses' element value.
*
* @param addresses
*/
public void setAddresses(ArrayOfAddress addresses) {
this.addresses = addresses;
}
public List getAddressesAsList() {
if (addresses == null)
addresses = new ArrayOfAddress();
return addresses.getAddressList();
}
/**
* Get the 'Phones' element value.
*
* @return value
*/
public ArrayOfPhone getPhones() {
return phones;
}
/**
* Set the 'Phones' element value.
*
* @param phones
*/
public void setPhones(ArrayOfPhone phones) {
this.phones = phones;
}
public List getPhonesAsList() {
if (phones == null)
phones = new ArrayOfPhone();
return phones.getPhoneList();
}
/**
* 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