package com.youcruit.onfido.api.checks;

import java.io.IOException;
import java.net.URI;

import com.youcruit.onfido.api.applicants.ApplicantId;
import com.youcruit.onfido.api.http.OnfidoHttpClient;

public class CheckClient {
    public final OnfidoHttpClient httpClient;

    public CheckClient(final OnfidoHttpClient httpClient) {
	this.httpClient = httpClient;
    }

    public Check createCheck(CreateCheckRequest checkRequest, ApplicantId applicantId) throws IOException {
	URI uri = httpClient.pathToUri("applicants", applicantId.getId(), "checks");
	return httpClient.sync(uri, checkRequest, OnfidoHttpClient.Method.POST, Check.class);
    }
}

@@ -644,11 +644,280 @@
 );%0A    %7D
+%0A%0A    public Check getCheck(ApplicantId applicantId, CheckId checkId) throws IOException %7B%0A%09URI uri = httpClient.pathToUri(%22applicants%22, applicantId.getId(), %22checks%22, checkId.getId());%0A%09return httpClient.sync(uri, null, OnfidoHttpClient.Method.GET, Check.class);%0A    %7D
 %0A%7D%0A

Add getChecks