Package com.xero.models.accounting
Class Account
java.lang.Object
com.xero.models.accounting.Account
public class Account extends Object
Account
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccount.BankAccountTypeEnumFor bank accounts only.static classAccount.PropertyClassEnumSee Account Class Typesstatic classAccount.StatusEnumAccounts with a status of ACTIVE can be updated to ARCHIVED.static classAccount.SystemAccountEnumIf this is a system account then this element is returned. -
Constructor Summary
Constructors Constructor Description Account() -
Method Summary
Modifier and Type Method Description AccountaccountID(UUID accountID)AccountaddToWatchlist(Boolean addToWatchlist)AccountaddValidationErrorsItem(ValidationError validationErrorsItem)AccountbankAccountNumber(String bankAccountNumber)AccountbankAccountType(Account.BankAccountTypeEnum bankAccountType)Accountcode(String code)AccountcurrencyCode(CurrencyCode currencyCode)Accountdescription(String description)AccountenablePaymentsToAccount(Boolean enablePaymentsToAccount)booleanequals(Object o)UUIDgetAccountID()The Xero identifier for an account – specified as a string following the endpoint name e.g.BooleangetAddToWatchlist()Boolean – describes whether the account is shown in the watchlist widget on the dashboardStringgetBankAccountNumber()For bank accounts only (Account Type BANK)Account.BankAccountTypeEnumgetBankAccountType()For bank accounts only.StringgetCode()Customer defined alpha numeric account code e.g 200 or SALES (max length = 10)CurrencyCodegetCurrencyCode()Get currencyCodeStringgetDescription()Description of the Account.BooleangetEnablePaymentsToAccount()Boolean – describes whether account can have payments applied to itBooleangetHasAttachments()boolean to indicate if an account has an attachment (read only)StringgetName()Name of account (max length = 150)Account.PropertyClassEnumgetPropertyClass()See Account Class TypesStringgetReportingCode()Shown if setStringgetReportingCodeName()Shown if setBooleangetShowInExpenseClaims()Boolean – describes whether account code is available for use with expense claimsAccount.StatusEnumgetStatus()Accounts with a status of ACTIVE can be updated to ARCHIVED.Account.SystemAccountEnumgetSystemAccount()If this is a system account then this element is returned.StringgetTaxType()The tax type from TaxRatesAccountTypegetType()Get typeStringgetUpdatedDateUTC()Last modified date UTC formatorg.threeten.bp.OffsetDateTimegetUpdatedDateUTCAsDate()List<ValidationError>getValidationErrors()Displays array of validation error messages from the APIinthashCode()Accountname(String name)voidsetAccountID(UUID accountID)voidsetAddToWatchlist(Boolean addToWatchlist)voidsetBankAccountNumber(String bankAccountNumber)voidsetBankAccountType(Account.BankAccountTypeEnum bankAccountType)voidsetCode(String code)voidsetCurrencyCode(CurrencyCode currencyCode)voidsetDescription(String description)voidsetEnablePaymentsToAccount(Boolean enablePaymentsToAccount)voidsetName(String name)voidsetShowInExpenseClaims(Boolean showInExpenseClaims)voidsetStatus(Account.StatusEnum status)voidsetTaxType(String taxType)voidsetType(AccountType type)voidsetValidationErrors(List<ValidationError> validationErrors)AccountshowInExpenseClaims(Boolean showInExpenseClaims)Accountstatus(Account.StatusEnum status)AccounttaxType(String taxType)StringtoString()Accounttype(AccountType type)AccountvalidationErrors(List<ValidationError> validationErrors)
-
Constructor Details
-
Account
public Account()
-
-
Method Details
-
code
-
getCode
Customer defined alpha numeric account code e.g 200 or SALES (max length = 10)- Returns:
- code
-
setCode
-
name
-
getName
Name of account (max length = 150)- Returns:
- name
-
setName
-
accountID
-
getAccountID
The Xero identifier for an account – specified as a string following the endpoint name e.g. /297c2dc5-cc47-4afd-8ec8-74990b8761e9- Returns:
- accountID
-
setAccountID
-
type
-
getType
Get type- Returns:
- type
-
setType
-
bankAccountNumber
-
getBankAccountNumber
For bank accounts only (Account Type BANK)- Returns:
- bankAccountNumber
-
setBankAccountNumber
-
status
-
getStatus
Accounts with a status of ACTIVE can be updated to ARCHIVED. See Account Status Codes- Returns:
- status
-
setStatus
-
description
-
getDescription
Description of the Account. Valid for all types of accounts except bank accounts (max length = 4000)- Returns:
- description
-
setDescription
-
bankAccountType
-
getBankAccountType
For bank accounts only. See Bank Account types- Returns:
- bankAccountType
-
setBankAccountType
-
currencyCode
-
getCurrencyCode
Get currencyCode- Returns:
- currencyCode
-
setCurrencyCode
-
taxType
-
getTaxType
The tax type from TaxRates- Returns:
- taxType
-
setTaxType
-
enablePaymentsToAccount
-
getEnablePaymentsToAccount
Boolean – describes whether account can have payments applied to it- Returns:
- enablePaymentsToAccount
-
setEnablePaymentsToAccount
-
showInExpenseClaims
-
getShowInExpenseClaims
Boolean – describes whether account code is available for use with expense claims- Returns:
- showInExpenseClaims
-
setShowInExpenseClaims
-
getPropertyClass
See Account Class Types- Returns:
- propertyClass
-
getSystemAccount
If this is a system account then this element is returned. See System Account types. Note that non-system accounts may have this element set as either “” or null.- Returns:
- systemAccount
-
getReportingCode
Shown if set- Returns:
- reportingCode
-
getReportingCodeName
Shown if set- Returns:
- reportingCodeName
-
getHasAttachments
boolean to indicate if an account has an attachment (read only)- Returns:
- hasAttachments
-
getUpdatedDateUTC
Last modified date UTC format- Returns:
- updatedDateUTC
-
getUpdatedDateUTCAsDate
public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate() -
addToWatchlist
-
getAddToWatchlist
Boolean – describes whether the account is shown in the watchlist widget on the dashboard- Returns:
- addToWatchlist
-
setAddToWatchlist
-
validationErrors
-
addValidationErrorsItem
-
getValidationErrors
Displays array of validation error messages from the API- Returns:
- validationErrors
-
setValidationErrors
-
equals
-
hashCode
public int hashCode() -
toString
-