Package com.xero.api

Class XeroBadRequestException

    • Constructor Detail

      • XeroBadRequestException

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

        public XeroBadRequestException​(String objectType,
                                       Error error,
                                       Exception e)
        XeroBadRequestException
        Parameters:
        objectType - String object type being interacted with when the error was returned.
        error - Error object with details specific to Assets API
        e - Exception object with details about the original exception
      • XeroBadRequestException

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

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

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

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

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

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

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

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

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

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

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

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

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

      • statusCode

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

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

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

        public XeroBadRequestException type​(String type)
        Init Type
        Parameters:
        type - String the server status code returned
        Returns:
        XeroBadRequestException an instance the bad request 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 XeroBadRequestException message​(String message)
        Init Message
        Parameters:
        message - String with the details about the exception
        Returns:
        XeroBadRequestException an instance the bad request exception
      • setMessage

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

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

        public XeroBadRequestException addElementsItem​(Element elementsItem)
        Add Elements
        Parameters:
        elementsItem - Element object with the details about the exception
        Returns:
        XeroBadRequestException 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)
        Set Elements
        Parameters:
        elements - List<Element> with the details about the exception
      • statementItems

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

        public XeroBadRequestException addStatementItem​(Statement item)
        Add Statement Items
        Parameters:
        item - Statement object containing bank statement details
        Returns:
        XeroBadRequestException 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)
        Set Statement Items
        Parameters:
        statementItems - List <Statement> a list of bank statements
      • feedConnectionItems

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

        public XeroBadRequestException addFeedConnectionItems​(FeedConnection item)
        Add Feed Connection Items
        Parameters:
        item - FeedConnection a list of feed connections
        Returns:
        XeroBadRequestException 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)
        Set Feed Connection Items
        Parameters:
        feedConnectionItems - List <FeedConnection> a list of feed connections
      • fieldValidationErrorsElements

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

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

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

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

        public XeroBadRequestException payrollUkProblem​(Problem problem)
        Init Payroll UK Problem
        Parameters:
        problem - the validation errors in UK Payroll
        Returns:
        XeroBadRequestException an instance the bad request 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
      • payrollNzProblem

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

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

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

        public XeroBadRequestException employeeItemsItems​(List<Employee> employeeItems)
        Init Payroll AU Employee items
        Parameters:
        employeeItems - List <com.xero.models.payrollau.Employee> with validation errors in AU Payroll
        Returns:
        XeroBadRequestException an instance the bad request exception
      • addEmployeeItems

        public XeroBadRequestException addEmployeeItems​(Employee item)
        Add Payroll AU Employee items
        Parameters:
        item - Employee with validation errors in AU Payroll
        Returns:
        XeroBadRequestException an instance the bad request exception
      • getEmployeeItems

        public List<Employee> getEmployeeItems()
        Array of FeedConnection of Errors Array
        Returns:
        statementItems
      • setEmployeeItems

        public void setEmployeeItems​(List<Employee> employeeItems)
        Set Payroll AU Employee items
        Parameters:
        employeeItems - List <com.xero.models.payrollau.Employee> with validation errors in AU Payroll
      • payItemItems

        public XeroBadRequestException payItemItems​(List<PayItem> payItemItems)
        Init Payroll AU PayItem items
        Parameters:
        payItemItems - List <com.xero.models.payrollau.PayItem> with validation errors in AU Payroll
        Returns:
        XeroBadRequestException an instance the bad request exception
      • addPayItemItems

        public XeroBadRequestException addPayItemItems​(PayItem item)
        Add Payroll AU PayItem items
        Parameters:
        item - com.xero.models.payrollau.PayItem with validation errors in AU Payroll
        Returns:
        XeroBadRequestException an instance the bad request exception
      • getPayItemItems

        public List<PayItem> getPayItemItems()
        Array of PayItems with Validation Error Array
        Returns:
        payItems
      • setPayItemItems

        public void setPayItemItems​(List<PayItem> payItems)
        Set Payroll AU PayItem items
        Parameters:
        payItems - List <com.xero.models.payrollau.PayItem> with validation errors in AU Payroll
      • payRunItems

        public XeroBadRequestException payRunItems​(List<PayRun> payRunItems)
        Init Payroll AU PayRun items
        Parameters:
        payRunItems - List <com.xero.models.payrollau.PayRun> with validation errors in AU Payroll
        Returns:
        XeroBadRequestException an instance the bad request exception
      • addPayRunItems

        public XeroBadRequestException addPayRunItems​(PayRun item)
        Add Payroll AU PayRun items
        Parameters:
        item - com.xero.models.payrollau.PayRun with validation errors in AU Payroll
        Returns:
        XeroBadRequestException an instance the bad request exception
      • getPayRunItems

        public List<PayRun> getPayRunItems()
        Array of PayRun with Validation Error Array
        Returns:
        payRunItems
      • setPayRunItems

        public void setPayRunItems​(List<PayRun> payRunItems)
        Set Payroll AU PayRun items
        Parameters:
        payRunItems - List <com.xero.models.payrollau.PayRun> with validation errors in AU Payroll
      • payrollCalendarItems

        public XeroBadRequestException payrollCalendarItems​(List<PayrollCalendar> payrollCalendarItems)
        Init Payroll AU Calendar items
        Parameters:
        payrollCalendarItems - List <com.xero.models.payrollau.PayrollCalendar> with validation errors in AU Payroll
        Returns:
        XeroBadRequestException an instance the bad request exception
      • addPayrollCalendarItems

        public XeroBadRequestException addPayrollCalendarItems​(PayrollCalendar item)
        Add Payroll AU Calendar items
        Parameters:
        item - com.xero.models.payrollau.PayrollCalendar with validation errors in AU Payroll
        Returns:
        XeroBadRequestException an instance the bad request exception
      • getPayrollCalendarItems

        public List<PayrollCalendar> getPayrollCalendarItems()
        Array of PayrollCalendar with Validation Error Array
        Returns:
        payrollCalendarItems
      • setPayrollCalendarItems

        public void setPayrollCalendarItems​(List<PayrollCalendar> payrollCalendarItems)
        Set Payroll AU Calendar items
        Parameters:
        payrollCalendarItems - List <com.xero.models.payrollau.PayrollCalendar> with validation errors in AU Payroll
      • superFundItems

        public XeroBadRequestException superFundItems​(List<SuperFund> superFundItems)
        Init Payroll AU SuperFund items
        Parameters:
        superFundItems - List <com.xero.models.payrollau.SuperFund> with validation errors in AU Payroll
        Returns:
        XeroBadRequestException an instance the bad request exception
      • addSuperFundItems

        public XeroBadRequestException addSuperFundItems​(SuperFund item)
        Add Payroll AU SuperFund items
        Parameters:
        item - com.xero.models.payrollau.SuperFund with validation errors in AU Payroll
        Returns:
        XeroBadRequestException an instance the bad request exception
      • getSuperFundItems

        public List<SuperFund> getSuperFundItems()
        Array of SuperFund with Validation Error Array
        Returns:
        superFundItems
      • setSuperFundItems

        public void setSuperFundItems​(List<SuperFund> superFundItems)
        Set Payroll AU SuperFund items
        Parameters:
        superFundItems - List <com.xero.models.payrollau.SuperFund> with validation errors in AU Payroll
      • timesheetItems

        public XeroBadRequestException timesheetItems​(List<Timesheet> timesheetItems)
        Initilize Payroll AU Timesheet items
        Parameters:
        timesheetItems - List <com.xero.models.payrollau.Timesheet> with validation errors in AU Payroll
        Returns:
        XeroBadRequestException an instance the bad request exception
      • addTimesheetItems

        public XeroBadRequestException addTimesheetItems​(Timesheet item)
        Add Payroll AU Timesheet items
        Parameters:
        item - com.xero.models.payrollau.Timesheet with validation errors in AU Payroll
        Returns:
        XeroBadRequestException an instance the bad request exception
      • getTimesheetItems

        public List<Timesheet> getTimesheetItems()
        Array of Timesheet with Validation Error Array
        Returns:
        timesheetItems
      • setTimesheetItems

        public void setTimesheetItems​(List<Timesheet> timesheetItems)
        Set Payroll AU Timesheet items
        Parameters:
        timesheetItems - List <com.xero.models.payrollau.Timesheet> with validation errors in AU Payroll
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object