public class Account extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Account.BankAccountTypeEnum
For bank accounts only.
|
static class |
Account.PropertyClassEnum
See Account Class Types
|
static class |
Account.StatusEnum
Accounts with a status of ACTIVE can be updated to ARCHIVED.
|
static class |
Account.SystemAccountEnum
If this is a system account then this element is returned.
|
static class |
Account.TypeEnum
See Account Types
|
| Constructor and Description |
|---|
Account() |
| Modifier and Type | Method and Description |
|---|---|
Account |
accountID(UUID accountID) |
Account |
bankAccountNumber(String bankAccountNumber) |
Account |
bankAccountType(Account.BankAccountTypeEnum bankAccountType) |
Account |
code(String code) |
Account |
currencyCode(String currencyCode) |
Account |
description(String description) |
Account |
enablePaymentsToAccount(Boolean enablePaymentsToAccount) |
boolean |
equals(Object o) |
UUID |
getAccountID()
The Xero identifier for an account – specified as a string following the endpoint name e.g.
|
String |
getBankAccountNumber()
For bank accounts only (Account Type BANK)
|
Account.BankAccountTypeEnum |
getBankAccountType()
For bank accounts only.
|
String |
getCode()
Customer defined alpha numeric account code e.g 200 or SALES (max length = 10)
|
String |
getCurrencyCode()
For bank accounts only
|
String |
getDescription()
Description of the Account.
|
Boolean |
getEnablePaymentsToAccount()
Boolean – describes whether account can have payments applied to it
|
Boolean |
getHasAttachments()
boolean to indicate if an account has an attachment (read only)
|
String |
getName()
Name of account (max length = 150)
|
Account.PropertyClassEnum |
getPropertyClass()
See Account Class Types
|
String |
getReportingCode()
Shown if set
|
String |
getReportingCodeName()
Shown if set
|
Boolean |
getShowInExpenseClaims()
Boolean – describes whether account code is available for use with expense claims
|
Account.StatusEnum |
getStatus()
Accounts with a status of ACTIVE can be updated to ARCHIVED.
|
Account.SystemAccountEnum |
getSystemAccount()
If this is a system account then this element is returned.
|
String |
getTaxType()
See Tax Types
|
Account.TypeEnum |
getType()
See Account Types
|
String |
getUpdatedDateUTC()
Last modified date UTC format
|
int |
hashCode() |
Account |
name(String name) |
void |
setAccountID(UUID accountID) |
void |
setBankAccountNumber(String bankAccountNumber) |
void |
setBankAccountType(Account.BankAccountTypeEnum bankAccountType) |
void |
setCode(String code) |
void |
setCurrencyCode(String currencyCode) |
void |
setDescription(String description) |
void |
setEnablePaymentsToAccount(Boolean enablePaymentsToAccount) |
void |
setName(String name) |
void |
setShowInExpenseClaims(Boolean showInExpenseClaims) |
void |
setStatus(Account.StatusEnum status) |
void |
setTaxType(String taxType) |
void |
setType(Account.TypeEnum type) |
Account |
showInExpenseClaims(Boolean showInExpenseClaims) |
Account |
status(Account.StatusEnum status) |
Account |
taxType(String taxType) |
String |
toString() |
Account |
type(Account.TypeEnum type) |
public String getCode()
public void setCode(String code)
public String getName()
public void setName(String name)
public Account type(Account.TypeEnum type)
public Account.TypeEnum getType()
public void setType(Account.TypeEnum type)
public String getBankAccountNumber()
public void setBankAccountNumber(String bankAccountNumber)
public Account status(Account.StatusEnum status)
public Account.StatusEnum getStatus()
public void setStatus(Account.StatusEnum status)
public String getDescription()
public void setDescription(String description)
public Account bankAccountType(Account.BankAccountTypeEnum bankAccountType)
public Account.BankAccountTypeEnum getBankAccountType()
public void setBankAccountType(Account.BankAccountTypeEnum bankAccountType)
public String getCurrencyCode()
public void setCurrencyCode(String currencyCode)
public String getTaxType()
public void setTaxType(String taxType)
public Boolean getEnablePaymentsToAccount()
public void setEnablePaymentsToAccount(Boolean enablePaymentsToAccount)
public Boolean getShowInExpenseClaims()
public void setShowInExpenseClaims(Boolean showInExpenseClaims)
public UUID getAccountID()
public void setAccountID(UUID accountID)
public Account.PropertyClassEnum getPropertyClass()
public Account.SystemAccountEnum getSystemAccount()
public String getReportingCode()
public String getReportingCodeName()
public Boolean getHasAttachments()
public String getUpdatedDateUTC()
Copyright © 2018. All rights reserved.