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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeedConnectionaccountId(UUID accountId)Xero identifier for a bank account in Xero.FeedConnectionaccountName(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.FeedConnectionaccountNumber(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.FeedConnectionaccountToken(String accountToken)This account identifier is generated by the financial institute (FI).FeedConnectionaccountType(FeedConnection.AccountTypeEnum accountType)High level bank account type - BANK CREDITCARD BANK encompasses all bank account types other than credit cards.FeedConnectioncountry(CountryCode country)countryFeedConnectioncurrency(CurrencyCode currency)currencybooleanequals(Object o)FeedConnectionerror(Error error)errorUUIDgetAccountId()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)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)currencyvoidsetError(Error error)errorvoidsetId(UUID id)GUID used to identify the Account.voidsetStatus(FeedConnection.StatusEnum status)the current status of the feed connectionFeedConnectionstatus(FeedConnection.StatusEnum status)the current status of the feed connectionStringtoString()
-
-
-
Method Detail
-
id
public FeedConnection id(UUID id)
GUID used to identify the Account.- Parameters:
id- UUID- Returns:
- FeedConnection
-
getId
public UUID getId()
GUID used to identify the Account.- Returns:
- id
-
setId
public void setId(UUID id)
GUID used to identify the Account.- Parameters:
id- UUID
-
accountToken
public FeedConnection accountToken(String 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
public String getAccountToken()
This account identifier is generated by the financial institute (FI). This must be unique for your financial institute. maximum: 50- Returns:
- accountToken
-
setAccountToken
public void setAccountToken(String accountToken)
This account identifier is generated by the financial institute (FI). This must be unique for your financial institute.- Parameters:
accountToken- String
-
accountNumber
public FeedConnection 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. 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
public String 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
public void setAccountNumber(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
-
accountName
public FeedConnection 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.- Parameters:
accountName- String- Returns:
- FeedConnection
-
getAccountName
public String 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
public void setAccountName(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
-
accountId
public FeedConnection accountId(UUID accountId)
Xero identifier for a bank account in Xero. Must be included if AccountNumber is not specified.- Parameters:
accountId- UUID- Returns:
- FeedConnection
-
getAccountId
public UUID getAccountId()
Xero identifier for a bank account in Xero. Must be included if AccountNumber is not specified.- Returns:
- accountId
-
setAccountId
public void setAccountId(UUID accountId)
Xero identifier for a bank account in Xero. Must be included if AccountNumber is not specified.- Parameters:
accountId- UUID
-
accountType
public FeedConnection accountType(FeedConnection.AccountTypeEnum accountType)
High level bank account type - BANK CREDITCARD BANK encompasses all bank account types other than credit cards.- Parameters:
accountType- AccountTypeEnum- Returns:
- FeedConnection
-
getAccountType
public FeedConnection.AccountTypeEnum getAccountType()
High level bank account type - BANK CREDITCARD BANK encompasses all bank account types other than credit cards.- Returns:
- accountType
-
setAccountType
public void setAccountType(FeedConnection.AccountTypeEnum accountType)
High level bank account type - BANK CREDITCARD BANK encompasses all bank account types other than credit cards.- Parameters:
accountType- AccountTypeEnum
-
currency
public FeedConnection currency(CurrencyCode currency)
currency- Parameters:
currency- CurrencyCode- Returns:
- FeedConnection
-
getCurrency
public CurrencyCode getCurrency()
Get currency- Returns:
- currency
-
setCurrency
public void setCurrency(CurrencyCode currency)
currency- Parameters:
currency- CurrencyCode
-
country
public FeedConnection country(CountryCode country)
country- Parameters:
country- CountryCode- Returns:
- FeedConnection
-
getCountry
public CountryCode getCountry()
Get country- Returns:
- country
-
setCountry
public void setCountry(CountryCode country)
country- Parameters:
country- CountryCode
-
status
public FeedConnection status(FeedConnection.StatusEnum status)
the current status of the feed connection- Parameters:
status- StatusEnum- Returns:
- FeedConnection
-
getStatus
public FeedConnection.StatusEnum getStatus()
the current status of the feed connection- Returns:
- status
-
setStatus
public void setStatus(FeedConnection.StatusEnum status)
the current status of the feed connection- Parameters:
status- StatusEnum
-
error
public FeedConnection error(Error error)
error- Parameters:
error- Error- Returns:
- FeedConnection
-
getError
public Error getError()
Get error- Returns:
- error
-
setError
public void setError(Error error)
error- Parameters:
error- Error
-
-