Class FeedConnection

java.lang.Object
com.xero.models.bankfeeds.FeedConnection

public class FeedConnection
extends Object
FeedConnection
  • Constructor Details

    • FeedConnection

      public FeedConnection()
  • Method Details

    • id

      public FeedConnection id​(UUID id)
    • getId

      public UUID getId()
      GUID used to identify the Account.
      Returns:
      id
    • setId

      public void setId​(UUID id)
    • accountToken

      public FeedConnection accountToken​(String accountToken)
    • 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)
    • accountNumber

      public FeedConnection accountNumber​(String accountNumber)
    • 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)
    • accountName

      public FeedConnection accountName​(String accountName)
    • 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)
    • accountId

      public FeedConnection accountId​(UUID accountId)
    • 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)
    • accountType

      public FeedConnection accountType​(FeedConnection.AccountTypeEnum accountType)
    • 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)
    • currency

      public FeedConnection currency​(CurrencyCode currency)
    • getCurrency

      public CurrencyCode getCurrency()
      Get currency
      Returns:
      currency
    • setCurrency

      public void setCurrency​(CurrencyCode currency)
    • country

      public FeedConnection country​(CountryCode country)
    • getCountry

      public CountryCode getCountry()
      Get country
      Returns:
      country
    • setCountry

      public void setCountry​(CountryCode country)
    • status

      public FeedConnection status​(FeedConnection.StatusEnum status)
    • getStatus

      public FeedConnection.StatusEnum getStatus()
      the current status of the feed connection
      Returns:
      status
    • setStatus

      public void setStatus​(FeedConnection.StatusEnum status)
    • error

      public FeedConnection error​(Error error)
    • getError

      public Error getError()
      Get error
      Returns:
      error
    • setError

      public void setError​(Error error)
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object