Package com.xero.api

Class XeroConflictException

    • Constructor Detail

      • XeroConflictException

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

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

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

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

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

        public XeroConflictException​(String objectType,
                                     Problem problem,
                                     Exception e)
        XeroConflictException
        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
      • XeroConflictException

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

      • statusCode

        public XeroConflictException statusCode​(Integer statusCode)
        XeroConflictException
        Parameters:
        statusCode - Integer the server status code returned.
        Returns:
        XeroConflictException an instance the conflict exception
      • getStatusCode

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

        public void setStatusCode​(Integer statusCode)
        Set Status Code
        Parameters:
        statusCode - Integer the server status code returned.
      • type

        public XeroConflictException type​(String type)
        Init Type
        Parameters:
        type - String the server status code returned
        Returns:
        XeroConflictException an instance the conflict exception
      • getType

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

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

        public XeroConflictException message​(String message)
        Init Message
        Parameters:
        message - String with the details about the exception
        Returns:
        XeroConflictException an instance the conflict exception
      • setMessage

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

        public XeroConflictException elements​(List<Element> elements)
        Init Elements
        Parameters:
        elements - List<Element> with the details about the exception
        Returns:
        XeroConflictException an instance the conflict exception
      • addElementsItem

        public XeroConflictException addElementsItem​(Element elementsItem)
        Add Elements
        Parameters:
        elementsItem - Element object with the details about the exception
        Returns:
        XeroConflictException an instance the conflict exception
      • getElements

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

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

        public XeroConflictException statementItems​(List<Statement> statementItems)
        Init Statement Items
        Parameters:
        statementItems - List <Statement> a list of bank statements
        Returns:
        XeroConflictException an instance the conflict exception
      • addStatementItem

        public XeroConflictException addStatementItem​(Statement item)
        Add Statement Items
        Parameters:
        item - Statement object containing bank statement details
        Returns:
        XeroConflictException an instance the conflict exception
      • getStatementItems

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

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

        public XeroConflictException feedConnectionItems​(List<FeedConnection> feedConnectionItems)
        Init Feed Connection Items
        Parameters:
        feedConnectionItems - List <FeedConnection> a list of feed connections
        Returns:
        XeroConflictException an instance the conflict exception
      • addFeedConnectionItems

        public XeroConflictException addFeedConnectionItems​(FeedConnection item)
        Add Feed Connection Items
        Parameters:
        item - FeedConnection a list of feed connections
        Returns:
        XeroConflictException an instance the conflict exception
      • getFeedConnectionItems

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

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

        public XeroConflictException fieldValidationErrorsElements​(List<FieldValidationErrorsElement> fieldValidationErrorsElements)
        Init Assets Field Validation Errors
        Parameters:
        fieldValidationErrorsElements - List <FieldValidationErrorsElement> a list of field validation errors
        Returns:
        XeroConflictException an instance the conflict exception
      • addFieldValidationErrorsElement

        public XeroConflictException addFieldValidationErrorsElement​(FieldValidationErrorsElement element)
        Add Assets Field Validation Errors
        Parameters:
        element - FieldValidationErrorsElement a list of field validation errors
        Returns:
        XeroConflictException an instance the conflict exception
      • getFieldValidationErrorsElements

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

        public void setFieldValidationErrorsElements​(List<FieldValidationErrorsElement> fieldValidationErrorsElements)
        Set Assets Field Validation Errors
        Parameters:
        fieldValidationErrorsElements - List <FieldValidationErrorsElement> a list of field validation errors
      • payrollNzProblem

        public XeroConflictException payrollNzProblem​(Problem problem)
        Init Payroll NZ Problem
        Parameters:
        problem - the validation errors in NZ Payroll
        Returns:
        XeroConflictException an instance the conflict exception
      • getPayrollNzProblem

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

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

        public XeroConflictException payrollUkProblem​(Problem problem)
        Init Payroll UK Problem
        Parameters:
        problem - the validation errors in UK Payroll
        Returns:
        XeroConflictException an instance the conflict exception
      • getPayrollUkProblem

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

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

        public int hashCode()
        Overrides:
        hashCode in class Object