Package com.xero.api

Class XeroMethodNotAllowedException

    • Constructor Detail

      • XeroMethodNotAllowedException

        public XeroMethodNotAllowedException​(String objectType,
                                             Error error)
        XeroMethodNotAllowedException
        Parameters:
        objectType - String object type being interacted with when the error was returned.
        error - Error object with details specific to accounting API
      • XeroMethodNotAllowedException

        public XeroMethodNotAllowedException​(String objectType,
                                             Error error)
        XeroMethodNotAllowedException
        Parameters:
        objectType - String object type being interacted with when the error was returned.
        error - Error object with details specific to assets API
      • XeroMethodNotAllowedException

        public XeroMethodNotAllowedException​(String objectType,
                                             Statements error)
        XeroMethodNotAllowedException
        Parameters:
        objectType - String object type being interacted with when the error was returned.
        error - Statements object with details specific to Bank Feeds API
      • XeroMethodNotAllowedException

        public XeroMethodNotAllowedException​(String objectType,
                                             FeedConnections error)
        XeroMethodNotAllowedException
        Parameters:
        objectType - String object type being interacted with when the error was returned.
        error - FeedConnections object with details specific to Bank Feeds API
      • XeroMethodNotAllowedException

        public XeroMethodNotAllowedException​(String objectType,
                                             Problem problem,
                                             Exception e)
        XeroMethodNotAllowedException
        Parameters:
        objectType - String object type being interacted with when the error was returned.
        problem - Problem object with details specific to UK Payroll API
        e - Exception object with details about the original exception
      • XeroMethodNotAllowedException

        public XeroMethodNotAllowedException​(String objectType,
                                             Problem problem,
                                             Exception e)
        XeroMethodNotAllowedException
        Parameters:
        objectType - String object type being interacted with when the error was returned.
        problem - Problem object with details specific to UK Payroll API
        e - Exception object with details about the original exception
      • XeroMethodNotAllowedException

        public XeroMethodNotAllowedException​(Integer statusCode,
                                             String message)
        XeroMethodNotAllowedException
        Parameters:
        statusCode - Integer the server status code returned.
        message - String with details about the exception
    • Method Detail

      • statusCode

        public XeroMethodNotAllowedException statusCode​(Integer statusCode)
        XeroMethodNotAllowedException
        Parameters:
        statusCode - Integer the server status code returned
        Returns:
        XeroMethodNotAllowedException an instance the bad request exception
      • getStatusCode

        public Integer getStatusCode()
        Exception number
        Returns:
        statusCode
      • setStatusCode

        public void setStatusCode​(Integer statusCode)
        XeroMethodNotAllowedException
        Parameters:
        statusCode - Integer the server status code returned
      • type

        public XeroMethodNotAllowedException type​(String type)
        XeroMethodNotAllowedException
        Parameters:
        type - String the server status code returned
        Returns:
        XeroMethodNotAllowedException an instance the bad request exception
      • getType

        public String getType()
        Exception type
        Returns:
        type
      • setType

        public void setType​(String type)
        XeroMethodNotAllowedException
        Parameters:
        type - String the server status code returned
      • message

        public XeroMethodNotAllowedException message​(String message)
        XeroMethodNotAllowedException
        Parameters:
        message - String with the details about the exception
        Returns:
        XeroMethodNotAllowedException an instance the bad request exception
      • setMessage

        public void setMessage​(String message)
        XeroMethodNotAllowedException
        Parameters:
        message - String with the details about the exception
      • elements

        public XeroMethodNotAllowedException elements​(List<Element> elements)
        XeroMethodNotAllowedException
        Parameters:
        elements - List<Element> with the details about the exception
        Returns:
        XeroMethodNotAllowedException an instance the bad request exception
      • addElementsItem

        public XeroMethodNotAllowedException addElementsItem​(Element elementsItem)
        XeroMethodNotAllowedException
        Parameters:
        elementsItem - Element object with the details about the exception
        Returns:
        XeroMethodNotAllowedException an instance the bad request exception
      • getElements

        public List<Element> getElements()
        Array of Elements of validation Errors
        Returns:
        elements
      • setElements

        public void setElements​(List<Element> elements)
        XeroMethodNotAllowedException
        Parameters:
        elements - List<Element> with the details about the exception
      • statementItems

        public XeroMethodNotAllowedException statementItems​(List<Statement> statementItems)
        XeroMethodNotAllowedException
        Parameters:
        statementItems - List <Statement> a list of bank statements
        Returns:
        XeroMethodNotAllowedException an instance the bad request exception
      • addStatementItem

        public XeroMethodNotAllowedException addStatementItem​(Statement item)
        XeroMethodNotAllowedException
        Parameters:
        item - Statement object containing bank statement details
        Returns:
        XeroMethodNotAllowedException an instance the bad request exception
      • getStatementItems

        public List<Statement> getStatementItems()
        Array of Statements Items of Errors Array
        Returns:
        statementItems
      • setStatementItems

        public void setStatementItems​(List<Statement> statementItems)
        XeroMethodNotAllowedException
        Parameters:
        statementItems - List <Statement> a list of bank statements
      • feedConnectionItems

        public XeroMethodNotAllowedException feedConnectionItems​(List<FeedConnection> feedConnectionItems)
        XeroMethodNotAllowedException
        Parameters:
        feedConnectionItems - List <FeedConnection> a list of feed connections
        Returns:
        XeroMethodNotAllowedException an instance the bad request exception
      • addFeedConnectionItems

        public XeroMethodNotAllowedException addFeedConnectionItems​(FeedConnection item)
        XeroMethodNotAllowedException
        Parameters:
        item - FeedConnection a list of feed connections
        Returns:
        XeroMethodNotAllowedException an instance the bad request exception
      • getFeedConnectionItems

        public List<FeedConnection> getFeedConnectionItems()
        Array of FeedConnection of Errors Array
        Returns:
        statementItems
      • setFeedConnectionItems

        public void setFeedConnectionItems​(List<FeedConnection> feedConnectionItems)
        XeroMethodNotAllowedException
        Parameters:
        feedConnectionItems - List <FeedConnection> a list of feed connections
      • fieldValidationErrorsElements

        public XeroMethodNotAllowedException fieldValidationErrorsElements​(List<FieldValidationErrorsElement> fieldValidationErrorsElements)
        XeroMethodNotAllowedException
        Parameters:
        fieldValidationErrorsElements - List <FieldValidationErrorsElement> a list of field validation errors
        Returns:
        XeroMethodNotAllowedException an instance the bad request exception
      • addFieldValidationErrorsElement

        public XeroMethodNotAllowedException addFieldValidationErrorsElement​(FieldValidationErrorsElement element)
        XeroMethodNotAllowedException
        Parameters:
        element - FieldValidationErrorsElement a list of field validation errors
        Returns:
        XeroMethodNotAllowedException an instance the bad request exception
      • getFieldValidationErrorsElements

        public List<FieldValidationErrorsElement> getFieldValidationErrorsElements()
        Array of Assets Errors Array
        Returns:
        statementItems
      • setFieldValidationErrorsElements

        public void setFieldValidationErrorsElements​(List<FieldValidationErrorsElement> fieldValidationErrorsElements)
        XeroMethodNotAllowedException
        Parameters:
        fieldValidationErrorsElements - List <FieldValidationErrorsElement> a list of field validation errors
      • payrollNzProblem

        public XeroMethodNotAllowedException payrollNzProblem​(Problem problem)
        XeroMethodNotAllowedException
        Parameters:
        problem - the validation errors in NZ Payroll
        Returns:
        XeroMethodNotAllowedException an instance the bad request exception
      • getPayrollNzProblem

        public Problem getPayrollNzProblem()
        Exception type
        Returns:
        com.xero.models.payrolluk.Problem
      • setPayrollNzProblem

        public void setPayrollNzProblem​(Problem problem)
        XeroMethodNotAllowedException
        Parameters:
        problem - the validation errors in NZ Payroll
      • payrollUkProblem

        public XeroMethodNotAllowedException payrollUkProblem​(Problem problem)
        XeroMethodNotAllowedException
        Parameters:
        problem - the validation errors in UK Payroll
        Returns:
        XeroMethodNotAllowedException an instance the bad request exception
      • getPayrollUkProblem

        public Problem getPayrollUkProblem()
        Exception type
        Returns:
        com.xero.models.payrolluk.Problem
      • setPayrollUkProblem

        public void setPayrollUkProblem​(Problem problem)
        XeroMethodNotAllowedException
        Parameters:
        problem - the validation errors in UK Payroll
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object