Package com.onfido

Class ApplicantManager


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

      • ApplicantManager

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

      • delete

        public void delete​(String applicantId)
                    throws OnfidoException
        Deletes a single applicant. If successful, returns a 204 No Content response.
        Parameters:
        applicantId - the applicant id
        Throws:
        OnfidoException - the onfido exception
      • restore

        public void restore​(String applicantId)
                     throws OnfidoException
        Restores a single applicant scheduled for deletion. If successful, returns a 204 No Content response.
        Parameters:
        applicantId - the applicant id
        Throws:
        OnfidoException - the onfido exception
      • list

        public List<Applicant> list​(int page,
                                    int perPage,
                                    boolean includedDeleted)
                             throws OnfidoException
        Lists all applicants you’ve created, sorted by creation date in descending order.
        Parameters:
        page - the page
        perPage - the amount of applicants per page
        includedDeleted - boolean to include applicants scheduled for deletion
        Returns:
        the list of Applicants
        Throws:
        OnfidoException - the onfido exception