Package com.onfido

Class ReportManager


  • public class ReportManager
    extends ResourceManager
    Manager class for the Report resource type. Contains resource-specific methods for interacting with the API.
    • Constructor Detail

      • ReportManager

        protected ReportManager​(Config config,
                                okhttp3.OkHttpClient client)
    • Method Detail

      • list

        public List<Report> list​(String checkId)
                          throws OnfidoException
        Lists all reports belonging to a particular check.
        Parameters:
        checkId - the check id
        Returns:
        the list of Reports
        Throws:
        OnfidoException - the onfido exception
      • resume

        public void resume​(String reportId)
                    throws OnfidoException
        Resumes a single paused report. If successful, returns a 204 No Content response.
        Parameters:
        reportId - the report id
        Throws:
        OnfidoException - the onfido exception
      • cancel

        public void cancel​(String reportId)
                    throws OnfidoException
        Cancels single paused reports. If successful, returns a 204 No Content response.
        Parameters:
        reportId - the report id
        Throws:
        OnfidoException - the onfido exception