Package com.xero.models.bankfeeds
Class FeedConnection
java.lang.Object
com.xero.models.bankfeeds.FeedConnection
public class FeedConnection extends Object
FeedConnection
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFeedConnection.AccountTypeEnumHigh level bank account type - BANK CREDITCARD BANK encompasses all bank account types other than credit cards.static classFeedConnection.StatusEnumthe current status of the feed connection -
Constructor Summary
Constructors Constructor Description FeedConnection() -
Method Summary
Modifier and Type Method Description FeedConnectionaccountId(UUID accountId)FeedConnectionaccountName(String accountName)FeedConnectionaccountNumber(String accountNumber)FeedConnectionaccountToken(String accountToken)FeedConnectionaccountType(FeedConnection.AccountTypeEnum accountType)FeedConnectioncountry(CountryCode country)FeedConnectioncurrency(CurrencyCode currency)booleanequals(Object o)FeedConnectionerror(Error error)UUIDgetAccountId()Xero identifier for a bank account in Xero.StringgetAccountName()The Account Name will be used for the creation of a new Xero Bank Account if a matching Xero Bank Account is not found.StringgetAccountNumber()String(40) when AccountType is BANK String(4) when AccountType is CREDITCARD The Account Number is used to match the feed to a Xero Bank Account.StringgetAccountToken()This account identifier is generated by the financial institute (FI).FeedConnection.AccountTypeEnumgetAccountType()High level bank account type - BANK CREDITCARD BANK encompasses all bank account types other than credit cards.CountryCodegetCountry()Get countryCurrencyCodegetCurrency()Get currencyErrorgetError()Get errorUUIDgetId()GUID used to identify the Account.FeedConnection.StatusEnumgetStatus()the current status of the feed connectioninthashCode()FeedConnectionid(UUID id)voidsetAccountId(UUID accountId)voidsetAccountName(String accountName)voidsetAccountNumber(String accountNumber)voidsetAccountToken(String accountToken)voidsetAccountType(FeedConnection.AccountTypeEnum accountType)voidsetCountry(CountryCode country)voidsetCurrency(CurrencyCode currency)voidsetError(Error error)voidsetId(UUID id)voidsetStatus(FeedConnection.StatusEnum status)FeedConnectionstatus(FeedConnection.StatusEnum status)StringtoString()
-
Constructor Details
-
FeedConnection
public FeedConnection()
-
-
Method Details
-
id
-
getId
GUID used to identify the Account.- Returns:
- id
-
setId
-
accountToken
-
getAccountToken
This account identifier is generated by the financial institute (FI). This must be unique for your financial institute. maximum: 50- Returns:
- accountToken
-
setAccountToken
-
accountNumber
-
getAccountNumber
String(40) when AccountType is BANK String(4) when AccountType is CREDITCARD The Account Number is used to match the feed to a Xero Bank Account. The API will create a new Xero Bank Account if a match to an existing Xero Bank Account is not found. Only the last 4 digits must be supplied for Credit Card numbers. Must be included if AccountId is not specified. maximum: 40- Returns:
- accountNumber
-
setAccountNumber
-
accountName
-
getAccountName
The Account Name will be used for the creation of a new Xero Bank Account if a matching Xero Bank Account is not found. maximum: 30- Returns:
- accountName
-
setAccountName
-
accountId
-
getAccountId
Xero identifier for a bank account in Xero. Must be included if AccountNumber is not specified.- Returns:
- accountId
-
setAccountId
-
accountType
-
getAccountType
High level bank account type - BANK CREDITCARD BANK encompasses all bank account types other than credit cards.- Returns:
- accountType
-
setAccountType
-
currency
-
getCurrency
Get currency- Returns:
- currency
-
setCurrency
-
country
-
getCountry
Get country- Returns:
- country
-
setCountry
-
status
-
getStatus
the current status of the feed connection- Returns:
- status
-
setStatus
-
error
-
getError
Get error- Returns:
- error
-
setError
-
equals
-
hashCode
public int hashCode() -
toString
-