Package com.xero.models.bankfeeds
Class FeedConnection
java.lang.Object
com.xero.models.bankfeeds.FeedConnection
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumHigh level bank account type - BANK CREDITCARD BANK encompasses all bank account types other than credit cards.static enumthe current status of the feed connection -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionXero identifier for a bank account in Xero.accountName(String accountName) The Account Name will be used for the creation of a new Xero Bank Account if a matching Xero Bank Account is not found.accountNumber(String accountNumber) 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.accountToken(String accountToken) This account identifier is generated by the financial institute (FI).accountType(FeedConnection.AccountTypeEnum accountType) High level bank account type - BANK CREDITCARD BANK encompasses all bank account types other than credit cards.country(CountryCode country) countrycurrency(CurrencyCode currency) currencybooleanerrorXero identifier for a bank account in Xero.The Account Name will be used for the creation of a new Xero Bank Account if a matching Xero Bank Account is not found.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.This account identifier is generated by the financial institute (FI).High level bank account type - BANK CREDITCARD BANK encompasses all bank account types other than credit cards.Get countryGet currencygetError()Get errorgetId()GUID used to identify the Account.the current status of the feed connectioninthashCode()GUID used to identify the Account.voidsetAccountId(UUID accountId) Xero identifier for a bank account in Xero.voidsetAccountName(String accountName) The Account Name will be used for the creation of a new Xero Bank Account if a matching Xero Bank Account is not found.voidsetAccountNumber(String accountNumber) 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.voidsetAccountToken(String accountToken) This account identifier is generated by the financial institute (FI).voidsetAccountType(FeedConnection.AccountTypeEnum accountType) High level bank account type - BANK CREDITCARD BANK encompasses all bank account types other than credit cards.voidsetCountry(CountryCode country) countryvoidsetCurrency(CurrencyCode currency) currencyvoiderrorvoidGUID used to identify the Account.voidsetStatus(FeedConnection.StatusEnum status) the current status of the feed connectionstatus(FeedConnection.StatusEnum status) the current status of the feed connectiontoString()
-
Constructor Details
-
FeedConnection
public FeedConnection()
-
-
Method Details
-
id
GUID used to identify the Account.- Parameters:
id- UUID- Returns:
- FeedConnection
-
getId
-
setId
-
accountToken
This account identifier is generated by the financial institute (FI). This must be unique for your financial institute.- Parameters:
accountToken- String- Returns:
- FeedConnection
-
getAccountToken
This account identifier is generated by the financial institute (FI). This must be unique for your financial institute.- Returns:
- accountToken
-
setAccountToken
This account identifier is generated by the financial institute (FI). This must be unique for your financial institute.- Parameters:
accountToken- String
-
accountNumber
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.- Parameters:
accountNumber- String- Returns:
- FeedConnection
-
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.- Returns:
- accountNumber
-
setAccountNumber
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.- Parameters:
accountNumber- String
-
accountName
The Account Name will be used for the creation of a new Xero Bank Account if a matching Xero Bank Account is not found.- Parameters:
accountName- String- Returns:
- FeedConnection
-
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.- Returns:
- accountName
-
setAccountName
The Account Name will be used for the creation of a new Xero Bank Account if a matching Xero Bank Account is not found.- Parameters:
accountName- String
-
accountId
Xero identifier for a bank account in Xero. Must be included if AccountNumber is not specified.- Parameters:
accountId- UUID- Returns:
- FeedConnection
-
getAccountId
Xero identifier for a bank account in Xero. Must be included if AccountNumber is not specified.- Returns:
- accountId
-
setAccountId
Xero identifier for a bank account in Xero. Must be included if AccountNumber is not specified.- Parameters:
accountId- UUID
-
accountType
High level bank account type - BANK CREDITCARD BANK encompasses all bank account types other than credit cards.- Parameters:
accountType- AccountTypeEnum- Returns:
- FeedConnection
-
getAccountType
High level bank account type - BANK CREDITCARD BANK encompasses all bank account types other than credit cards.- Returns:
- accountType
-
setAccountType
High level bank account type - BANK CREDITCARD BANK encompasses all bank account types other than credit cards.- Parameters:
accountType- AccountTypeEnum
-
currency
currency- Parameters:
currency- CurrencyCode- Returns:
- FeedConnection
-
getCurrency
-
setCurrency
-
country
country- Parameters:
country- CountryCode- Returns:
- FeedConnection
-
getCountry
-
setCountry
-
status
the current status of the feed connection- Parameters:
status- StatusEnum- Returns:
- FeedConnection
-
getStatus
the current status of the feed connection- Returns:
- status
-
setStatus
the current status of the feed connection- Parameters:
status- StatusEnum
-
error
-
getError
-
setError
-
equals
-
hashCode
-
toString
-