Package com.onfido
Class CheckManager
- java.lang.Object
-
- com.onfido.api.ResourceManager
-
- com.onfido.CheckManager
-
public class CheckManager extends ResourceManager
Manager class for the Check resource type. Contains resource-specific methods for interacting with the API.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCheckManager(Config config, okhttp3.OkHttpClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Checkcreate(Check.Request request)Initiates a check for an applicant, which can contain one or more reports.Checkfind(String checkId)Retrieves a single check.List<Check>list(String applicantId)Returns all checks for an applicant.voidresume(String checkId)Resumes a paused check.-
Methods inherited from class com.onfido.api.ResourceManager
addFormDataParam, deleteRequest, downloadRequest, get, post, put, readInputStream, uploadRequest
-
-
-
-
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
-
find
public Check find(String checkId) throws OnfidoException
Retrieves a single check.- Parameters:
checkId- the check id- 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
-
-