Class FeedConnection


  • public class FeedConnection
    extends Object
    FeedConnection
    • Constructor Detail

      • FeedConnection

        public FeedConnection()
    • 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
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object