Package com.onfido

Class CheckManager


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

      • CheckManager

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

      • create

        public Check create​(Check.Request request)
                     throws OnfidoException
        Initiates a check for an applicant, which can contain one or more reports.
        Parameters:
        request - the request body
        Returns:
        the Check
        Throws:
        OnfidoException - the onfido exception
      • list

        public List<Check> list​(String applicantId)
                         throws OnfidoException
        Returns all checks for an applicant.
        Parameters:
        applicantId - the applicant id
        Returns:
        a list of Checks
        Throws:
        OnfidoException - the onfido exception
      • resume

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