All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.connectifier.xeroclient.models.Contact 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="Contact">
 *   <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="ContactID" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="ContactNumber" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="ContactStatus" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="Name" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="FirstName" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="LastName" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="EmailAddress" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="SkypeUserName" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="BankAccountDetails" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="TaxNumber" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="AccountsReceivableTaxType" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="AccountsPayableTaxType" 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:element type="xs:dateTime" nillable="true" name="UpdatedDateUTC" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="ArrayOfContactGroup" name="ContactGroups" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:boolean" name="IsSupplier" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:boolean" name="IsCustomer" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="BrandingTheme" name="BrandingTheme" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="currencyCode" name="DefaultCurrency" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="Balances" name="Balances" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="Website" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="ArrayOfContactPerson" name="ContactPersons" 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 Contact { private ArrayOfValidationError validationErrors; private ArrayOfWarning warnings; private String contactID; private String contactNumber; private String contactStatus; private String name; private String firstName; private String lastName; private String emailAddress; private String skypeUserName; private String bankAccountDetails; private String taxNumber; private String accountsReceivableTaxType; private String accountsPayableTaxType; private ArrayOfAddress addresses; private ArrayOfPhone phones; private Date updatedDateUTC; private ArrayOfContactGroup contactGroups; private Boolean isSupplier; private Boolean isCustomer; private BrandingTheme brandingTheme; private CurrencyCode defaultCurrency; private Balances balances; private String website; private ArrayOfContactPerson contactPersons; 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 'ContactID' element value. * * @return value */ public String getContactID() { return contactID; } /** * Set the 'ContactID' element value. * * @param contactID */ public void setContactID(String contactID) { this.contactID = contactID; } /** * Get the 'ContactNumber' element value. * * @return value */ public String getContactNumber() { return contactNumber; } /** * Set the 'ContactNumber' element value. * * @param contactNumber */ public void setContactNumber(String contactNumber) { this.contactNumber = contactNumber; } /** * Get the 'ContactStatus' element value. * * @return value */ public String getContactStatus() { return contactStatus; } /** * Set the 'ContactStatus' element value. * * @param contactStatus */ public void setContactStatus(String contactStatus) { this.contactStatus = contactStatus; } /** * 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 'FirstName' element value. * * @return value */ public String getFirstName() { return firstName; } /** * Set the 'FirstName' element value. * * @param firstName */ public void setFirstName(String firstName) { this.firstName = firstName; } /** * Get the 'LastName' element value. * * @return value */ public String getLastName() { return lastName; } /** * Set the 'LastName' element value. * * @param lastName */ public void setLastName(String lastName) { this.lastName = lastName; } /** * Get the 'EmailAddress' element value. * * @return value */ public String getEmailAddress() { return emailAddress; } /** * Set the 'EmailAddress' element value. * * @param emailAddress */ public void setEmailAddress(String emailAddress) { this.emailAddress = emailAddress; } /** * Get the 'SkypeUserName' element value. * * @return value */ public String getSkypeUserName() { return skypeUserName; } /** * Set the 'SkypeUserName' element value. * * @param skypeUserName */ public void setSkypeUserName(String skypeUserName) { this.skypeUserName = skypeUserName; } /** * Get the 'BankAccountDetails' element value. * * @return value */ public String getBankAccountDetails() { return bankAccountDetails; } /** * Set the 'BankAccountDetails' element value. * * @param bankAccountDetails */ public void setBankAccountDetails(String bankAccountDetails) { this.bankAccountDetails = bankAccountDetails; } /** * 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 'AccountsReceivableTaxType' element value. * * @return value */ public String getAccountsReceivableTaxType() { return accountsReceivableTaxType; } /** * Set the 'AccountsReceivableTaxType' element value. * * @param accountsReceivableTaxType */ public void setAccountsReceivableTaxType(String accountsReceivableTaxType) { this.accountsReceivableTaxType = accountsReceivableTaxType; } /** * Get the 'AccountsPayableTaxType' element value. * * @return value */ public String getAccountsPayableTaxType() { return accountsPayableTaxType; } /** * Set the 'AccountsPayableTaxType' element value. * * @param accountsPayableTaxType */ public void setAccountsPayableTaxType(String accountsPayableTaxType) { this.accountsPayableTaxType = accountsPayableTaxType; } /** * 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 '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 'ContactGroups' element value. * * @return value */ public ArrayOfContactGroup getContactGroups() { return contactGroups; } /** * Set the 'ContactGroups' element value. * * @param contactGroups */ public void setContactGroups(ArrayOfContactGroup contactGroups) { this.contactGroups = contactGroups; } public List getContactGroupsAsList() { if (contactGroups == null) contactGroups = new ArrayOfContactGroup(); return contactGroups.getContactGroupList(); } /** * Get the 'IsSupplier' element value. * * @return value */ public Boolean getIsSupplier() { return isSupplier; } /** * Set the 'IsSupplier' element value. * * @param isSupplier */ public void setIsSupplier(Boolean isSupplier) { this.isSupplier = isSupplier; } /** * Get the 'IsCustomer' element value. * * @return value */ public Boolean getIsCustomer() { return isCustomer; } /** * Set the 'IsCustomer' element value. * * @param isCustomer */ public void setIsCustomer(Boolean isCustomer) { this.isCustomer = isCustomer; } /** * Get the 'BrandingTheme' element value. * * @return value */ public BrandingTheme getBrandingTheme() { return brandingTheme; } /** * Set the 'BrandingTheme' element value. * * @param brandingTheme */ public void setBrandingTheme(BrandingTheme brandingTheme) { this.brandingTheme = brandingTheme; } /** * Get the 'DefaultCurrency' element value. * * @return value */ public CurrencyCode getDefaultCurrency() { return defaultCurrency; } /** * Set the 'DefaultCurrency' element value. * * @param defaultCurrency */ public void setDefaultCurrency(CurrencyCode defaultCurrency) { this.defaultCurrency = defaultCurrency; } /** * Get the 'Balances' element value. * * @return value */ public Balances getBalances() { return balances; } /** * Set the 'Balances' element value. * * @param balances */ public void setBalances(Balances balances) { this.balances = balances; } /** * Get the 'Website' element value. * * @return value */ public String getWebsite() { return website; } /** * Set the 'Website' element value. * * @param website */ public void setWebsite(String website) { this.website = website; } /** * Get the 'ContactPersons' element value. * * @return value */ public ArrayOfContactPerson getContactPersons() { return contactPersons; } /** * Set the 'ContactPersons' element value. * * @param contactPersons */ public void setContactPersons(ArrayOfContactPerson contactPersons) { this.contactPersons = contactPersons; } public List getContactPersonsAsList() { if (contactPersons == null) contactPersons = new ArrayOfContactPerson(); return contactPersons.getContactPersonList(); } /** * 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