Package com.xero.models.accounting
Class Organisation
java.lang.Object
com.xero.models.accounting.Organisation
public class Organisation extends Object
Organisation
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOrganisation.EditionEnumBUSINESS or PARTNER.static classOrganisation.OrganisationEntityTypeEnumOrganisation Entity Typestatic classOrganisation.OrganisationTypeEnumOrganisation Typestatic classOrganisation.PropertyClassEnumOrganisation Classes describe which plan the Xero organisation is on (e.g.static classOrganisation.SalesTaxBasisEnumThe accounting basis used for tax returns.static classOrganisation.SalesTaxPeriodEnumThe frequency with which tax returns are processed.static classOrganisation.VersionEnumSee Version Types -
Constructor Summary
Constructors Constructor Description Organisation() -
Method Summary
-
Constructor Details
-
Organisation
public Organisation()
-
-
Method Details
-
organisationID
-
getOrganisationID
Unique Xero identifier- Returns:
- organisationID
-
setOrganisationID
-
apIKey
-
getApIKey
Display a unique key used for Xero-to-Xero transactions- Returns:
- apIKey
-
setApIKey
-
name
-
getName
Display name of organisation shown in Xero- Returns:
- name
-
setName
-
legalName
-
getLegalName
Organisation name shown on Reports- Returns:
- legalName
-
setLegalName
-
paysTax
-
getPaysTax
Boolean to describe if organisation is registered with a local tax authority i.e. true, false- Returns:
- paysTax
-
setPaysTax
-
version
-
getVersion
See Version Types- Returns:
- version
-
setVersion
-
organisationType
-
getOrganisationType
Organisation Type- Returns:
- organisationType
-
setOrganisationType
-
baseCurrency
-
getBaseCurrency
Get baseCurrency- Returns:
- baseCurrency
-
setBaseCurrency
-
countryCode
-
getCountryCode
Get countryCode- Returns:
- countryCode
-
setCountryCode
-
isDemoCompany
-
getIsDemoCompany
Boolean to describe if organisation is a demo company.- Returns:
- isDemoCompany
-
setIsDemoCompany
-
organisationStatus
-
getOrganisationStatus
Will be set to ACTIVE if you can connect to organisation via the Xero API- Returns:
- organisationStatus
-
setOrganisationStatus
-
registrationNumber
-
getRegistrationNumber
Shows for New Zealand, Australian and UK organisations- Returns:
- registrationNumber
-
setRegistrationNumber
-
employerIdentificationNumber
-
getEmployerIdentificationNumber
Shown if set. US Only.- Returns:
- employerIdentificationNumber
-
setEmployerIdentificationNumber
-
taxNumber
-
getTaxNumber
Shown if set. Displays in the Xero UI as Tax File Number (AU), GST Number (NZ), VAT Number (UK) and Tax ID Number (US & Global).- Returns:
- taxNumber
-
setTaxNumber
-
financialYearEndDay
-
getFinancialYearEndDay
Calendar day e.g. 0-31- Returns:
- financialYearEndDay
-
setFinancialYearEndDay
-
financialYearEndMonth
-
getFinancialYearEndMonth
Calendar Month e.g. 1-12- Returns:
- financialYearEndMonth
-
setFinancialYearEndMonth
-
salesTaxBasis
-
getSalesTaxBasis
The accounting basis used for tax returns. See Sales Tax Basis- Returns:
- salesTaxBasis
-
setSalesTaxBasis
-
salesTaxPeriod
-
getSalesTaxPeriod
The frequency with which tax returns are processed. See Sales Tax Period- Returns:
- salesTaxPeriod
-
setSalesTaxPeriod
-
defaultSalesTax
-
getDefaultSalesTax
The default for LineAmountTypes on sales transactions- Returns:
- defaultSalesTax
-
setDefaultSalesTax
-
defaultPurchasesTax
-
getDefaultPurchasesTax
The default for LineAmountTypes on purchase transactions- Returns:
- defaultPurchasesTax
-
setDefaultPurchasesTax
-
periodLockDate
-
getPeriodLockDate
Shown if set. See lock dates- Returns:
- periodLockDate
-
getPeriodLockDateAsDate
public org.threeten.bp.LocalDate getPeriodLockDateAsDate() -
setPeriodLockDate
-
setPeriodLockDate
public void setPeriodLockDate(org.threeten.bp.LocalDate periodLockDate) -
endOfYearLockDate
-
getEndOfYearLockDate
Shown if set. See lock dates- Returns:
- endOfYearLockDate
-
getEndOfYearLockDateAsDate
public org.threeten.bp.LocalDate getEndOfYearLockDateAsDate() -
setEndOfYearLockDate
-
setEndOfYearLockDate
public void setEndOfYearLockDate(org.threeten.bp.LocalDate endOfYearLockDate) -
getCreatedDateUTC
Timestamp when the organisation was created in Xero- Returns:
- createdDateUTC
-
getCreatedDateUTCAsDate
public org.threeten.bp.OffsetDateTime getCreatedDateUTCAsDate() -
timezone
-
getTimezone
Get timezone- Returns:
- timezone
-
setTimezone
-
organisationEntityType
public Organisation organisationEntityType(Organisation.OrganisationEntityTypeEnum organisationEntityType) -
getOrganisationEntityType
Organisation Entity Type- Returns:
- organisationEntityType
-
setOrganisationEntityType
public void setOrganisationEntityType(Organisation.OrganisationEntityTypeEnum organisationEntityType) -
shortCode
-
getShortCode
A unique identifier for the organisation. Potential uses.- Returns:
- shortCode
-
setShortCode
-
propertyClass
-
getPropertyClass
Organisation Classes describe which plan the Xero organisation is on (e.g. DEMO, TRIAL, PREMIUM)- Returns:
- propertyClass
-
setPropertyClass
-
edition
-
getEdition
BUSINESS or PARTNER. Partner edition organisations are sold exclusively through accounting partners and have restricted functionality (e.g. no access to invoicing)- Returns:
- edition
-
setEdition
-
lineOfBusiness
-
getLineOfBusiness
Description of business type as defined in Organisation settings- Returns:
- lineOfBusiness
-
setLineOfBusiness
-
addresses
-
addAddressesItem
-
getAddresses
Address details for organisation – see Addresses- Returns:
- addresses
-
setAddresses
-
phones
-
addPhonesItem
-
getPhones
Phones details for organisation – see Phones- Returns:
- phones
-
setPhones
-
externalLinks
-
addExternalLinksItem
-
getExternalLinks
Organisation profile links for popular services such as Facebook,Twitter, GooglePlus and LinkedIn. You can also add link to your website here. Shown if Organisation settings is updated in Xero. See ExternalLinks below- Returns:
- externalLinks
-
setExternalLinks
-
paymentTerms
-
getPaymentTerms
Get paymentTerms- Returns:
- paymentTerms
-
setPaymentTerms
-
equals
-
hashCode
public int hashCode() -
toString
-