ApiException class.
+ */
+@SuppressWarnings("serial")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-11T13:08:13.353528Z[Etc/UTC]")
+public class ApiException extends Exception {
+ private int code = 0;
+ private Map> responseHeaders = null;
+ private String responseBody = null;
+
+ /**
+ * Constructor for ApiException.
+ */
+ public ApiException() {}
+
+ /**
+ * Constructor for ApiException.
+ *
+ * @param throwable a {@link java.lang.Throwable} object
+ */
+ public ApiException(Throwable throwable) {
+ super(throwable);
+ }
+
+ /**
+ * Constructor for ApiException.
+ *
+ * @param message the error message
+ */
+ public ApiException(String message) {
+ super(message);
+ }
+
+ /**
+ * Constructor for ApiException.
+ *
+ * @param message the error message
+ * @param throwable a {@link java.lang.Throwable} object
+ * @param code HTTP status code
+ * @param responseHeaders a {@link java.util.Map} of HTTP response headers
+ * @param responseBody the response body
+ */
+ public ApiException(String message, Throwable throwable, int code, Map> responseHeaders, String responseBody) {
+ super(message, throwable);
+ this.code = code;
+ this.responseHeaders = responseHeaders;
+ this.responseBody = responseBody;
+ }
+
+ /**
+ * Constructor for ApiException.
+ *
+ * @param message the error message
+ * @param code HTTP status code
+ * @param responseHeaders a {@link java.util.Map} of HTTP response headers
+ * @param responseBody the response body
+ */
+ public ApiException(String message, int code, Map> responseHeaders, String responseBody) {
+ this(message, (Throwable) null, code, responseHeaders, responseBody);
+ }
+
+ /**
+ * Constructor for ApiException.
+ *
+ * @param message the error message
+ * @param throwable a {@link java.lang.Throwable} object
+ * @param code HTTP status code
+ * @param responseHeaders a {@link java.util.Map} of HTTP response headers
+ */
+ public ApiException(String message, Throwable throwable, int code, Map> responseHeaders) {
+ this(message, throwable, code, responseHeaders, null);
+ }
+
+ /**
+ * Constructor for ApiException.
+ *
+ * @param code HTTP status code
+ * @param responseHeaders a {@link java.util.Map} of HTTP response headers
+ * @param responseBody the response body
+ */
+ public ApiException(int code, Map> responseHeaders, String responseBody) {
+ this("Response Code: " + code + " Response Body: " + responseBody, (Throwable) null, code, responseHeaders, responseBody);
+ }
+
+ /**
+ * Constructor for ApiException.
+ *
+ * @param code HTTP status code
+ * @param message a {@link java.lang.String} object
+ */
+ public ApiException(int code, String message) {
+ super(message);
+ this.code = code;
+ }
+
+ /**
+ * Constructor for ApiException.
+ *
+ * @param code HTTP status code
+ * @param message the error message
+ * @param responseHeaders a {@link java.util.Map} of HTTP response headers
+ * @param responseBody the response body
+ */
+ public ApiException(int code, String message, Map> responseHeaders, String responseBody) {
+ this(code, message);
+ this.responseHeaders = responseHeaders;
+ this.responseBody = responseBody;
+ }
+
+ /**
+ * Get the HTTP status code.
+ *
+ * @return HTTP status code
+ */
+ public int getCode() {
+ return code;
+ }
+
+ /**
+ * Get the HTTP response headers.
+ *
+ * @return A map of list of string
+ */
+ public Map> getResponseHeaders() {
+ return responseHeaders;
+ }
+
+ /**
+ * Get the HTTP response body.
+ *
+ * @return Response body in the form of string
+ */
+ public String getResponseBody() {
+ return responseBody;
+ }
+
+ /**
+ * Get the exception message including HTTP response data.
+ *
+ * @return The exception message
+ */
+ public String getMessage() {
+ return String.format("Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s",
+ super.getMessage(), this.getCode(), this.getResponseBody(), this.getResponseHeaders());
+ }
+}
diff --git a/src/main/java/com/cashfree/ApiResponse.java b/src/main/java/com/cashfree/ApiResponse.java
new file mode 100644
index 0000000..7405587
--- /dev/null
+++ b/src/main/java/com/cashfree/ApiResponse.java
@@ -0,0 +1,76 @@
+/*
+ * Cashfree Verification API's.
+ * Cashfree's Verification APIs provide different types of verification to our merchants.
+ *
+ * The version of the OpenAPI document: 2023-12-18
+ * Contact: developers@cashfree.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package com.cashfree;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * API response returned by API call.
+ */
+public class ApiResponse {
+ final private int statusCode;
+ final private Map> headers;
+ final private T data;
+
+ /**
+ * Constructor for ApiResponse.
+ *
+ * @param statusCode The status code of HTTP response
+ * @param headers The headers of HTTP response
+ */
+ public ApiResponse(int statusCode, Map> headers) {
+ this(statusCode, headers, null);
+ }
+
+ /**
+ * Constructor for ApiResponse.
+ *
+ * @param statusCode The status code of HTTP response
+ * @param headers The headers of HTTP response
+ * @param data The object deserialized from response bod
+ */
+ public ApiResponse(int statusCode, Map> headers, T data) {
+ this.statusCode = statusCode;
+ this.headers = headers;
+ this.data = data;
+ }
+
+ /**
+ * Get the status code
.
+ *
+ * @return the status code
+ */
+ public int getStatusCode() {
+ return statusCode;
+ }
+
+ /**
+ * Get the headers
.
+ *
+ * @return a {@link java.util.Map} of headers
+ */
+ public Map> getHeaders() {
+ return headers;
+ }
+
+ /**
+ * Get the data
.
+ *
+ * @return the data
+ */
+ public T getData() {
+ return data;
+ }
+}
diff --git a/src/main/java/com/cashfree/Cashfree.java b/src/main/java/com/cashfree/Cashfree.java
new file mode 100644
index 0000000..836c19d
--- /dev/null
+++ b/src/main/java/com/cashfree/Cashfree.java
@@ -0,0 +1,4884 @@
+/*
+ * Cashfree Verification API's.
+ * Cashfree's Verification APIs provide different types of verification to our merchants.
+ *
+ * The version of the OpenAPI document: 2023-12-18
+ * Contact: developers@cashfree.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package com.cashfree;
+
+import com.cashfree.model.*;
+import com.google.gson.reflect.TypeToken;
+
+import okhttp3.*;
+import okhttp3.internal.http.HttpMethod;
+import okhttp3.internal.tls.OkHostnameVerifier;
+import okhttp3.logging.HttpLoggingInterceptor;
+import okhttp3.logging.HttpLoggingInterceptor.Level;
+import okio.Buffer;
+import okio.BufferedSink;
+import okio.Okio;
+
+import javax.net.ssl.*;
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.UnsupportedEncodingException;
+import java.lang.reflect.Type;
+import java.net.URI;
+import java.net.URLConnection;
+import java.net.URLEncoder;
+import java.nio.file.Files;
+import java.nio.file.Paths;
+import java.security.GeneralSecurityException;
+import java.security.KeyStore;
+import java.security.SecureRandom;
+import java.security.cert.Certificate;
+import java.security.cert.CertificateException;
+import java.security.cert.CertificateFactory;
+import java.security.cert.X509Certificate;
+import java.text.DateFormat;
+import java.time.LocalDate;
+import java.time.OffsetDateTime;
+import java.time.format.DateTimeFormatter;
+import java.util.*;
+import java.util.Map.Entry;
+import java.util.concurrent.TimeUnit;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+import javax.crypto.Mac;
+import javax.crypto.spec.SecretKeySpec;
+import java.util.Base64;
+import com.google.gson.Gson;
+
+import com.cashfree.auth.Authentication;
+import com.cashfree.auth.HttpBasicAuth;
+import com.cashfree.auth.HttpBearerAuth;
+import com.cashfree.auth.ApiKeyAuth;
+
+
+public class Cashfree {
+
+ enum CFEnvironment {
+ SANDBOX,
+ PRODUCTION;
+ }
+
+ public static String XClientId = "";
+ public static String XClientSecret = "";
+ public static String XApiVersion = "2023-12-18";
+ public static CFEnvironment XEnvironment = CFEnvironment.SANDBOX;
+
+ public static CFEnvironment SANDBOX = CFEnvironment.SANDBOX;
+ public static CFEnvironment PRODUCTION = CFEnvironment.PRODUCTION;
+
+ private ApiClient localVarApiClient = new ApiClient();
+
+
+ /**
+ * Build call for vrsAadhaarOcrVerification
+ * @param verificationId It is the unique ID you create to identify the request. The maximum character limit is 50. Only alphanumeric, hyphen (-), period (.), and underscore ( _ ) are allowed. (required)
+ * @param frontImage It is the scanned image of the front of the aadhaar card. Allowed file type - JPEG/JPG/PNG. The max file size of both the files is 10MB. (required)
+ * @param xApiVersion It is the API version. To receive the aadhaar seeding status in the response, use any date after 2022-09-12 (optional)
+ * @param xCfSignature Send the signature if IP is not whitelisted (optional)
+ * @param backImage It is the scanned image of the back of the aadhaar card. Allowed file type - JPEG/JPG/PNG. The max file size of both the files is 10MB. (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success response for verifying aadhaar information | - |
+ 400 | Validation errors for OCR APIs | - |
+ 401 | Invalid client ID and client secret combination | - |
+ 403 | Authentication error (IP not whitelisted) | - |
+ 422 | Validation error because of insufficient balance to process this request | - |
+ 500 | Internal errors | - |
+
+ */
+ public okhttp3.Call vrsAadhaarOcrVerificationCall(String verificationId, File frontImage, String xApiVersion, String xCfSignature, File backImage, final ApiCallback _callback) throws ApiException {
+ String basePath = "https://sandbox.cashfree.com/verification";
+
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ basePath = "https://api.cashfree.com/verification";
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/document/aadhaar";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (verificationId != null) {
+ localVarFormParams.put("verification_id", verificationId);
+ }
+
+ if (backImage != null) {
+ localVarFormParams.put("back_image", backImage);
+ }
+
+ if (frontImage != null) {
+ localVarFormParams.put("front_image", frontImage);
+ }
+
+ if (xApiVersion != null) {
+ localVarHeaderParams.put("x-api-version", localVarApiClient.parameterToString(xApiVersion));
+ }
+
+ if (xCfSignature != null) {
+ localVarHeaderParams.put("x-cf-signature", localVarApiClient.parameterToString(xCfSignature));
+ }
+
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientSecret = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientSecret");
+ XClientSecret.setApiKey(Cashfree.XClientSecret);
+ }
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientID = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientID");
+ XClientID.setApiKey(Cashfree.XClientId);
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "multipart/form-data"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ localVarHeaderParams.put("x-sdk-platform", "javasdk-1.0.1");
+
+ String[] localVarAuthNames = new String[] { "XClientSecret", "XClientID" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call vrsAadhaarOcrVerificationValidateBeforeCall(String verificationId, File frontImage, String xApiVersion, String xCfSignature, File backImage, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'verificationId' is set
+ if (verificationId == null) {
+ throw new ApiException("Missing the required parameter 'verificationId' when calling VrsAadhaarOcrVerification(Async)");
+ }
+
+ // verify the required parameter 'frontImage' is set
+ if (frontImage == null) {
+ throw new ApiException("Missing the required parameter 'frontImage' when calling VrsAadhaarOcrVerification(Async)");
+ }
+
+ return vrsAadhaarOcrVerificationCall(verificationId, frontImage, xApiVersion, xCfSignature, backImage, _callback);
+
+ }
+
+ public ApiResponse VrsAadhaarOcrVerification(String verificationId, File frontImage, String xApiVersion, String xCfSignature, File backImage, OkHttpClient httpClient) throws ApiException {
+ if(httpClient != null) {
+ localVarApiClient.httpClient = httpClient;
+ }
+ okhttp3.Call localVarCall = vrsAadhaarOcrVerificationValidateBeforeCall(verificationId, frontImage, xApiVersion, xCfSignature, backImage, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+
+ /**
+ * Build call for vrsMaskAadhaar
+ * @param image It is the image file of the aadhaar card that needs masking. Accepted formats - short, long, and PVC. Allowed file type - JPEG/JPG/PNG. The maximum file size should be 10 MB. (required)
+ * @param verificationId It is the unique ID you create to identify the verification request. The maximum character limit is 50. Only alphanumeric, period (.), hyphen (-), and underscore ( _ ) are allowed. (required)
+ * @param xCfSignature Send the signature if IP is not whitelisted (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success response for masking aadhaar number | - |
+ 400 | Bad request for Aadhaar Masking API | - |
+ 401 | Invalid client ID and client secret combination | - |
+ 403 | Authentication error (IP not whitelisted) | - |
+ 409 | Conflict error | - |
+ 413 | File size exceeded | - |
+ 422 | Validation error because of insufficient balance to process this request | - |
+ 500 | Internal error | - |
+
+ */
+ public okhttp3.Call vrsMaskAadhaarCall(File image, String verificationId, String xCfSignature, final ApiCallback _callback) throws ApiException {
+ String basePath = "https://sandbox.cashfree.com/verification";
+
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ basePath = "https://api.cashfree.com/verification";
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/aadhaar-masking";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (image != null) {
+ localVarFormParams.put("image", image);
+ }
+
+ if (verificationId != null) {
+ localVarFormParams.put("verification_id", verificationId);
+ }
+
+ if (xCfSignature != null) {
+ localVarHeaderParams.put("x-cf-signature", localVarApiClient.parameterToString(xCfSignature));
+ }
+
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientSecret = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientSecret");
+ XClientSecret.setApiKey(Cashfree.XClientSecret);
+ }
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientID = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientID");
+ XClientID.setApiKey(Cashfree.XClientId);
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "multipart/form-data"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ localVarHeaderParams.put("x-sdk-platform", "javasdk-1.0.1");
+
+ String[] localVarAuthNames = new String[] { "XClientSecret", "XClientID" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call vrsMaskAadhaarValidateBeforeCall(File image, String verificationId, String xCfSignature, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'image' is set
+ if (image == null) {
+ throw new ApiException("Missing the required parameter 'image' when calling VrsMaskAadhaar(Async)");
+ }
+
+ // verify the required parameter 'verificationId' is set
+ if (verificationId == null) {
+ throw new ApiException("Missing the required parameter 'verificationId' when calling VrsMaskAadhaar(Async)");
+ }
+
+ return vrsMaskAadhaarCall(image, verificationId, xCfSignature, _callback);
+
+ }
+
+ public ApiResponse VrsMaskAadhaar(File image, String verificationId, String xCfSignature, OkHttpClient httpClient) throws ApiException {
+ if(httpClient != null) {
+ localVarApiClient.httpClient = httpClient;
+ }
+ okhttp3.Call localVarCall = vrsMaskAadhaarValidateBeforeCall(image, verificationId, xCfSignature, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+
+ /**
+ * Build call for vrsOfflineAadhaarSendOtp
+ * @param offlineAadhaarSendOtpRequestSchema Find the request parameters to generate OTP for a given aadhar number (required)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success response for generating the OTP for offline aadhaar verification | - |
+ 400 | Validation errors for Generate OTP to Verify Aadhaar API | - |
+ 401 | Invalid client ID and client secret combination | - |
+ 403 | Authentication error (IP not whitelisted) | - |
+ 409 | Conflict error for requesting another OTP for the same aadhaar within 30 seconds | - |
+ 422 | Validation error because of insufficient balance to process this request | - |
+ 500 | Internal errors | - |
+
+ */
+ public okhttp3.Call vrsOfflineAadhaarSendOtpCall(OfflineAadhaarSendOtpRequestSchema offlineAadhaarSendOtpRequestSchema, final ApiCallback _callback) throws ApiException {
+ String basePath = "https://sandbox.cashfree.com/verification";
+
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ basePath = "https://api.cashfree.com/verification";
+ }
+
+ Object localVarPostBody = offlineAadhaarSendOtpRequestSchema;
+
+ // create path and map variables
+ String localVarPath = "/offline-aadhaar/otp";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientSecret = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientSecret");
+ XClientSecret.setApiKey(Cashfree.XClientSecret);
+ }
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientID = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientID");
+ XClientID.setApiKey(Cashfree.XClientId);
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ localVarHeaderParams.put("x-sdk-platform", "javasdk-1.0.1");
+
+ String[] localVarAuthNames = new String[] { "XClientSecret", "XClientID" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call vrsOfflineAadhaarSendOtpValidateBeforeCall(OfflineAadhaarSendOtpRequestSchema offlineAadhaarSendOtpRequestSchema, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'offlineAadhaarSendOtpRequestSchema' is set
+ if (offlineAadhaarSendOtpRequestSchema == null) {
+ throw new ApiException("Missing the required parameter 'offlineAadhaarSendOtpRequestSchema' when calling VrsOfflineAadhaarSendOtp(Async)");
+ }
+
+ return vrsOfflineAadhaarSendOtpCall(offlineAadhaarSendOtpRequestSchema, _callback);
+
+ }
+
+ public ApiResponse VrsOfflineAadhaarSendOtp(OfflineAadhaarSendOtpRequestSchema offlineAadhaarSendOtpRequestSchema, OkHttpClient httpClient) throws ApiException {
+ if(httpClient != null) {
+ localVarApiClient.httpClient = httpClient;
+ }
+ okhttp3.Call localVarCall = vrsOfflineAadhaarSendOtpValidateBeforeCall(offlineAadhaarSendOtpRequestSchema, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+
+ /**
+ * Build call for vrsOfflineAadhaarVerifyOtp
+ * @param offlineAadhaarVerifyOtpRequestSchema Find the request parameters to submit the generated OTP (required)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success response for submitting the generated OTP for offline aadhaar verification | - |
+ 400 | Validation errors for Submit OTP for Aadhaar Verification API | - |
+ 401 | Invalid client ID and client secret combination | - |
+ 403 | Authentication error (IP not whitelisted) | - |
+ 422 | Validation error because of insufficient balance to process this request | - |
+ 500 | Internal errors | - |
+
+ */
+ public okhttp3.Call vrsOfflineAadhaarVerifyOtpCall(OfflineAadhaarVerifyOtpRequestSchema offlineAadhaarVerifyOtpRequestSchema, final ApiCallback _callback) throws ApiException {
+ String basePath = "https://sandbox.cashfree.com/verification";
+
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ basePath = "https://api.cashfree.com/verification";
+ }
+
+ Object localVarPostBody = offlineAadhaarVerifyOtpRequestSchema;
+
+ // create path and map variables
+ String localVarPath = "/offline-aadhaar/verify";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientSecret = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientSecret");
+ XClientSecret.setApiKey(Cashfree.XClientSecret);
+ }
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientID = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientID");
+ XClientID.setApiKey(Cashfree.XClientId);
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ localVarHeaderParams.put("x-sdk-platform", "javasdk-1.0.1");
+
+ String[] localVarAuthNames = new String[] { "XClientSecret", "XClientID" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call vrsOfflineAadhaarVerifyOtpValidateBeforeCall(OfflineAadhaarVerifyOtpRequestSchema offlineAadhaarVerifyOtpRequestSchema, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'offlineAadhaarVerifyOtpRequestSchema' is set
+ if (offlineAadhaarVerifyOtpRequestSchema == null) {
+ throw new ApiException("Missing the required parameter 'offlineAadhaarVerifyOtpRequestSchema' when calling VrsOfflineAadhaarVerifyOtp(Async)");
+ }
+
+ return vrsOfflineAadhaarVerifyOtpCall(offlineAadhaarVerifyOtpRequestSchema, _callback);
+
+ }
+
+ public ApiResponse VrsOfflineAadhaarVerifyOtp(OfflineAadhaarVerifyOtpRequestSchema offlineAadhaarVerifyOtpRequestSchema, OkHttpClient httpClient) throws ApiException {
+ if(httpClient != null) {
+ localVarApiClient.httpClient = httpClient;
+ }
+ okhttp3.Call localVarCall = vrsOfflineAadhaarVerifyOtpValidateBeforeCall(offlineAadhaarVerifyOtpRequestSchema, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+
+ /**
+ * Build call for vrsAdvanceEmploymentVerification
+ * @param advanceEmploymentRequestSchema Find the request parameters to retrieve employment details (required)
+ * @param xCfSignature Send the signature if IP is not whitelisted (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success response for retreiving employment information | - |
+ 400 | Validation errors for Advanced Employment API | - |
+ 401 | Invalid client ID and client secret combination | - |
+ 403 | Authentication error (IP not whitelisted) | - |
+ 409 | Conflict error | - |
+ 422 | Validation error because of insufficient balance to process this request | - |
+ 500 | Internal error | - |
+ 502 | Gateway error | - |
+
+ */
+ public okhttp3.Call vrsAdvanceEmploymentVerificationCall(AdvanceEmploymentRequestSchema advanceEmploymentRequestSchema, String xCfSignature, final ApiCallback _callback) throws ApiException {
+ String basePath = "https://sandbox.cashfree.com/verification";
+
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ basePath = "https://api.cashfree.com/verification";
+ }
+
+ Object localVarPostBody = advanceEmploymentRequestSchema;
+
+ // create path and map variables
+ String localVarPath = "/advance-employment";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (xCfSignature != null) {
+ localVarHeaderParams.put("x-cf-signature", localVarApiClient.parameterToString(xCfSignature));
+ }
+
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientSecret = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientSecret");
+ XClientSecret.setApiKey(Cashfree.XClientSecret);
+ }
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientID = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientID");
+ XClientID.setApiKey(Cashfree.XClientId);
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ localVarHeaderParams.put("x-sdk-platform", "javasdk-1.0.1");
+
+ String[] localVarAuthNames = new String[] { "XClientSecret", "XClientID" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call vrsAdvanceEmploymentVerificationValidateBeforeCall(AdvanceEmploymentRequestSchema advanceEmploymentRequestSchema, String xCfSignature, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'advanceEmploymentRequestSchema' is set
+ if (advanceEmploymentRequestSchema == null) {
+ throw new ApiException("Missing the required parameter 'advanceEmploymentRequestSchema' when calling VrsAdvanceEmploymentVerification(Async)");
+ }
+
+ return vrsAdvanceEmploymentVerificationCall(advanceEmploymentRequestSchema, xCfSignature, _callback);
+
+ }
+
+ public ApiResponse VrsAdvanceEmploymentVerification(AdvanceEmploymentRequestSchema advanceEmploymentRequestSchema, String xCfSignature, OkHttpClient httpClient) throws ApiException {
+ if(httpClient != null) {
+ localVarApiClient.httpClient = httpClient;
+ }
+ okhttp3.Call localVarCall = vrsAdvanceEmploymentVerificationValidateBeforeCall(advanceEmploymentRequestSchema, xCfSignature, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+
+ /**
+ * Build call for vrsCinVerification
+ * @param cinRequestSchema Find the request parameters to retrieve your customer's CIN information (required)
+ * @param xCfSignature Send the signature if IP is not whitelisted (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success response for retrieving the CIN information | - |
+ 400 | Validation errors for Verify Cin API | - |
+ 401 | Invalid client ID and client secret combination | - |
+ 403 | Authentication error (IP not whitelisted) | - |
+ 409 | Conflict error | - |
+ 422 | Validation error because of insufficient balance to process this request | - |
+ 500 | Internal error | - |
+ 502 | Gateway error | - |
+
+ */
+ public okhttp3.Call vrsCinVerificationCall(CinRequestSchema cinRequestSchema, String xCfSignature, final ApiCallback _callback) throws ApiException {
+ String basePath = "https://sandbox.cashfree.com/verification";
+
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ basePath = "https://api.cashfree.com/verification";
+ }
+
+ Object localVarPostBody = cinRequestSchema;
+
+ // create path and map variables
+ String localVarPath = "/cin";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (xCfSignature != null) {
+ localVarHeaderParams.put("x-cf-signature", localVarApiClient.parameterToString(xCfSignature));
+ }
+
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientSecret = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientSecret");
+ XClientSecret.setApiKey(Cashfree.XClientSecret);
+ }
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientID = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientID");
+ XClientID.setApiKey(Cashfree.XClientId);
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ localVarHeaderParams.put("x-sdk-platform", "javasdk-1.0.1");
+
+ String[] localVarAuthNames = new String[] { "XClientSecret", "XClientID" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call vrsCinVerificationValidateBeforeCall(CinRequestSchema cinRequestSchema, String xCfSignature, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'cinRequestSchema' is set
+ if (cinRequestSchema == null) {
+ throw new ApiException("Missing the required parameter 'cinRequestSchema' when calling VrsCinVerification(Async)");
+ }
+
+ return vrsCinVerificationCall(cinRequestSchema, xCfSignature, _callback);
+
+ }
+
+ public ApiResponse VrsCinVerification(CinRequestSchema cinRequestSchema, String xCfSignature, OkHttpClient httpClient) throws ApiException {
+ if(httpClient != null) {
+ localVarApiClient.httpClient = httpClient;
+ }
+ okhttp3.Call localVarCall = vrsCinVerificationValidateBeforeCall(cinRequestSchema, xCfSignature, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+
+ /**
+ * Build call for vrsDigilockerVerificationCreateUrl
+ * @param digiLockerVerificationCreateUrlRequestSchema Find the request parameters to create a DigiLocker URL to retrieve and verify aadhaar information (required)
+ * @param xCfSignature Send the signature if IP is not whitelisted (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success response for creating a DigiLocker URL for document verification | - |
+ 400 | Validation errors for Create DigiLocker URL API | - |
+ 401 | Invalid client ID and client secret combination | - |
+ 403 | Authentication error (IP not whitelisted) | - |
+ 409 | Conflict error because of an existing verification id for DigiLocker request | - |
+ 422 | Validation error because of insufficient balance to process this request | - |
+ 500 | Internal error | - |
+
+ */
+ public okhttp3.Call vrsDigilockerVerificationCreateUrlCall(DigiLockerVerificationCreateUrlRequestSchema digiLockerVerificationCreateUrlRequestSchema, String xCfSignature, final ApiCallback _callback) throws ApiException {
+ String basePath = "https://sandbox.cashfree.com/verification";
+
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ basePath = "https://api.cashfree.com/verification";
+ }
+
+ Object localVarPostBody = digiLockerVerificationCreateUrlRequestSchema;
+
+ // create path and map variables
+ String localVarPath = "/digilocker";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (xCfSignature != null) {
+ localVarHeaderParams.put("x-cf-signature", localVarApiClient.parameterToString(xCfSignature));
+ }
+
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientSecret = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientSecret");
+ XClientSecret.setApiKey(Cashfree.XClientSecret);
+ }
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientID = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientID");
+ XClientID.setApiKey(Cashfree.XClientId);
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ localVarHeaderParams.put("x-sdk-platform", "javasdk-1.0.1");
+
+ String[] localVarAuthNames = new String[] { "XClientSecret", "XClientID" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call vrsDigilockerVerificationCreateUrlValidateBeforeCall(DigiLockerVerificationCreateUrlRequestSchema digiLockerVerificationCreateUrlRequestSchema, String xCfSignature, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'digiLockerVerificationCreateUrlRequestSchema' is set
+ if (digiLockerVerificationCreateUrlRequestSchema == null) {
+ throw new ApiException("Missing the required parameter 'digiLockerVerificationCreateUrlRequestSchema' when calling VrsDigilockerVerificationCreateUrl(Async)");
+ }
+
+ return vrsDigilockerVerificationCreateUrlCall(digiLockerVerificationCreateUrlRequestSchema, xCfSignature, _callback);
+
+ }
+
+ public ApiResponse VrsDigilockerVerificationCreateUrl(DigiLockerVerificationCreateUrlRequestSchema digiLockerVerificationCreateUrlRequestSchema, String xCfSignature, OkHttpClient httpClient) throws ApiException {
+ if(httpClient != null) {
+ localVarApiClient.httpClient = httpClient;
+ }
+ okhttp3.Call localVarCall = vrsDigilockerVerificationCreateUrlValidateBeforeCall(digiLockerVerificationCreateUrlRequestSchema, xCfSignature, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+
+ /**
+ * Build call for vrsDigilockerVerificationFetchDocument
+ * @param documentType It is the type of document to be verified. (required)
+ * @param xCfSignature Send the signature if IP is not whitelisted (optional)
+ * @param referenceId It is the unique ID created by Cashfree Payments that you receive in the response of Create DigiLocker URL API (optional, default to 12345)
+ * @param verificationId It is the unique ID you created to identify the Create DigiLocker URL API request. (optional, default to ABC000123)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success response for retrieving the document from DigiLocker | - |
+ 202 | Validation in pending state | - |
+ 400 | Validation errors for Get DigiLocker Document API | - |
+ 401 | Invalid client ID and client secret combination | - |
+ 403 | Authentication error (IP not whitelisted) | - |
+ 404 | Not found errors when IDs don't exist | - |
+ 422 | Validation error because of insufficient balance to process this request | - |
+ 500 | Internal error | - |
+
+ */
+ public okhttp3.Call vrsDigilockerVerificationFetchDocumentCall(String documentType, String xCfSignature, Integer referenceId, String verificationId, final ApiCallback _callback) throws ApiException {
+ String basePath = "https://sandbox.cashfree.com/verification";
+
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ basePath = "https://api.cashfree.com/verification";
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/digilocker/document/{document_type}"
+ .replace("{" + "document_type" + "}", localVarApiClient.escapeString(documentType.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (referenceId != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("reference_id", referenceId));
+ }
+
+ if (verificationId != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("verification_id", verificationId));
+ }
+
+ if (xCfSignature != null) {
+ localVarHeaderParams.put("x-cf-signature", localVarApiClient.parameterToString(xCfSignature));
+ }
+
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientSecret = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientSecret");
+ XClientSecret.setApiKey(Cashfree.XClientSecret);
+ }
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientID = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientID");
+ XClientID.setApiKey(Cashfree.XClientId);
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ localVarHeaderParams.put("x-sdk-platform", "javasdk-1.0.1");
+
+ String[] localVarAuthNames = new String[] { "XClientSecret", "XClientID" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call vrsDigilockerVerificationFetchDocumentValidateBeforeCall(String documentType, String xCfSignature, Integer referenceId, String verificationId, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'documentType' is set
+ if (documentType == null) {
+ throw new ApiException("Missing the required parameter 'documentType' when calling VrsDigilockerVerificationFetchDocument(Async)");
+ }
+
+ return vrsDigilockerVerificationFetchDocumentCall(documentType, xCfSignature, referenceId, verificationId, _callback);
+
+ }
+
+ public ApiResponse VrsDigilockerVerificationFetchDocument(String documentType, String xCfSignature, Integer referenceId, String verificationId, OkHttpClient httpClient) throws ApiException {
+ if(httpClient != null) {
+ localVarApiClient.httpClient = httpClient;
+ }
+ okhttp3.Call localVarCall = vrsDigilockerVerificationFetchDocumentValidateBeforeCall(documentType, xCfSignature, referenceId, verificationId, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+
+ /**
+ * Build call for vrsDigilockerVerificationFetchStatus
+ * @param xCfSignature Send the signature if IP is not whitelisted (optional)
+ * @param referenceId It is the unique ID created by Cashfree Payments that you received in the Create DigiLocker URL API response. (optional, default to 12345)
+ * @param verificationId It is the unique ID you created to identify the Create DigiLocker URL API request. (optional, default to ABC00123)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success response for retrieving the status of the DigiLocker document verification request | - |
+ 400 | Validation errors for Get DigiLocker Verification Status API | - |
+ 401 | Invalid client ID and client secret combination | - |
+ 403 | Authentication error (IP not whitelisted) | - |
+ 404 | Not found errors when IDs don't exist | - |
+ 422 | Validation error because of insufficient balance to process this request | - |
+ 500 | Internal error | - |
+
+ */
+ public okhttp3.Call vrsDigilockerVerificationFetchStatusCall(String xCfSignature, Integer referenceId, String verificationId, final ApiCallback _callback) throws ApiException {
+ String basePath = "https://sandbox.cashfree.com/verification";
+
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ basePath = "https://api.cashfree.com/verification";
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/digilocker";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (referenceId != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("reference_id", referenceId));
+ }
+
+ if (verificationId != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("verification_id", verificationId));
+ }
+
+ if (xCfSignature != null) {
+ localVarHeaderParams.put("x-cf-signature", localVarApiClient.parameterToString(xCfSignature));
+ }
+
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientSecret = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientSecret");
+ XClientSecret.setApiKey(Cashfree.XClientSecret);
+ }
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientID = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientID");
+ XClientID.setApiKey(Cashfree.XClientId);
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ localVarHeaderParams.put("x-sdk-platform", "javasdk-1.0.1");
+
+ String[] localVarAuthNames = new String[] { "XClientSecret", "XClientID" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call vrsDigilockerVerificationFetchStatusValidateBeforeCall(String xCfSignature, Integer referenceId, String verificationId, final ApiCallback _callback) throws ApiException {
+ return vrsDigilockerVerificationFetchStatusCall(xCfSignature, referenceId, verificationId, _callback);
+
+ }
+
+ public ApiResponse VrsDigilockerVerificationFetchStatus(String xCfSignature, Integer referenceId, String verificationId, OkHttpClient httpClient) throws ApiException {
+ if(httpClient != null) {
+ localVarApiClient.httpClient = httpClient;
+ }
+ okhttp3.Call localVarCall = vrsDigilockerVerificationFetchStatusValidateBeforeCall(xCfSignature, referenceId, verificationId, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+
+ /**
+ * Build call for vrsDrivingLicenseVerification
+ * @param drivingLicenseRequestSchema Find the request paramenters to retrieve your customer's driving license information (required)
+ * @param xCfSignature Send the signature if IP is not whitelisted (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success response for retrieving the driving licence information | - |
+ 400 | Validation errors for Verify Driving Licence API | - |
+ 401 | Invalid client ID and client secret combination | - |
+ 403 | Authentication error (IP not whitelisted) | - |
+ 409 | Conflict error | - |
+ 422 | Validation error because of insufficient balance to process this request | - |
+ 500 | Internal error | - |
+ 502 | Gateway error | - |
+
+ */
+ public okhttp3.Call vrsDrivingLicenseVerificationCall(DrivingLicenseRequestSchema drivingLicenseRequestSchema, String xCfSignature, final ApiCallback _callback) throws ApiException {
+ String basePath = "https://sandbox.cashfree.com/verification";
+
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ basePath = "https://api.cashfree.com/verification";
+ }
+
+ Object localVarPostBody = drivingLicenseRequestSchema;
+
+ // create path and map variables
+ String localVarPath = "/driving-license";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (xCfSignature != null) {
+ localVarHeaderParams.put("x-cf-signature", localVarApiClient.parameterToString(xCfSignature));
+ }
+
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientSecret = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientSecret");
+ XClientSecret.setApiKey(Cashfree.XClientSecret);
+ }
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientID = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientID");
+ XClientID.setApiKey(Cashfree.XClientId);
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ localVarHeaderParams.put("x-sdk-platform", "javasdk-1.0.1");
+
+ String[] localVarAuthNames = new String[] { "XClientSecret", "XClientID" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call vrsDrivingLicenseVerificationValidateBeforeCall(DrivingLicenseRequestSchema drivingLicenseRequestSchema, String xCfSignature, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'drivingLicenseRequestSchema' is set
+ if (drivingLicenseRequestSchema == null) {
+ throw new ApiException("Missing the required parameter 'drivingLicenseRequestSchema' when calling VrsDrivingLicenseVerification(Async)");
+ }
+
+ return vrsDrivingLicenseVerificationCall(drivingLicenseRequestSchema, xCfSignature, _callback);
+
+ }
+
+ public ApiResponse VrsDrivingLicenseVerification(DrivingLicenseRequestSchema drivingLicenseRequestSchema, String xCfSignature, OkHttpClient httpClient) throws ApiException {
+ if(httpClient != null) {
+ localVarApiClient.httpClient = httpClient;
+ }
+ okhttp3.Call localVarCall = vrsDrivingLicenseVerificationValidateBeforeCall(drivingLicenseRequestSchema, xCfSignature, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+
+ /**
+ * Build call for vrsESignCreateSignature
+ * @param esignVerificationCreateSignatureRequestSchema Find the request parameters to add the details of the document and signer (required)
+ * @param xCfSignature Send the signature if IP is not whitelisted (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success response for creating an e-signature request | - |
+ 400 | Validation errors for Create E-Sign Request API | - |
+ 401 | Invalid client ID and client secret combination | - |
+ 403 | Authentication error (IP not whitelisted) | - |
+ 409 | Conflict error | - |
+ 422 | Validation error because of insufficient balance to process this request | - |
+ 500 | Internal error | - |
+
+ */
+ public okhttp3.Call vrsESignCreateSignatureCall(ESignVerificationCreateSignatureRequestSchema esignVerificationCreateSignatureRequestSchema, String xCfSignature, final ApiCallback _callback) throws ApiException {
+ String basePath = "https://sandbox.cashfree.com/verification";
+
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ basePath = "https://api.cashfree.com/verification";
+ }
+
+ Object localVarPostBody = esignVerificationCreateSignatureRequestSchema;
+
+ // create path and map variables
+ String localVarPath = "/esignature";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (xCfSignature != null) {
+ localVarHeaderParams.put("x-cf-signature", localVarApiClient.parameterToString(xCfSignature));
+ }
+
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientSecret = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientSecret");
+ XClientSecret.setApiKey(Cashfree.XClientSecret);
+ }
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientID = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientID");
+ XClientID.setApiKey(Cashfree.XClientId);
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ localVarHeaderParams.put("x-sdk-platform", "javasdk-1.0.1");
+
+ String[] localVarAuthNames = new String[] { "XClientSecret", "XClientID" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call vrsESignCreateSignatureValidateBeforeCall(ESignVerificationCreateSignatureRequestSchema esignVerificationCreateSignatureRequestSchema, String xCfSignature, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'esignVerificationCreateSignatureRequestSchema' is set
+ if (esignVerificationCreateSignatureRequestSchema == null) {
+ throw new ApiException("Missing the required parameter 'esignVerificationCreateSignatureRequestSchema' when calling VrsESignCreateSignature(Async)");
+ }
+
+ return vrsESignCreateSignatureCall(esignVerificationCreateSignatureRequestSchema, xCfSignature, _callback);
+
+ }
+
+ public ApiResponse VrsESignCreateSignature(ESignVerificationCreateSignatureRequestSchema esignVerificationCreateSignatureRequestSchema, String xCfSignature, OkHttpClient httpClient) throws ApiException {
+ if(httpClient != null) {
+ localVarApiClient.httpClient = httpClient;
+ }
+ okhttp3.Call localVarCall = vrsESignCreateSignatureValidateBeforeCall(esignVerificationCreateSignatureRequestSchema, xCfSignature, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+
+ /**
+ * Build call for vrsESignUploadDocument
+ * @param document Upload the document that requires an e-sign. Allowed file type - PDF. Max file size allowed - 10MB. (required)
+ * @param xCfSignature Send the signature if IP is not whitelisted (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success response for uploading the document for e-signature | - |
+ 400 | Validation errors for Upload Document For E-Sign API | - |
+ 401 | Invalid client ID and client secret combination | - |
+ 403 | Authentication error (IP not whitelisted) | - |
+ 422 | Validation error because of insufficient balance to process this request | - |
+ 500 | Internal error | - |
+
+ */
+ public okhttp3.Call vrsESignUploadDocumentCall(File document, String xCfSignature, final ApiCallback _callback) throws ApiException {
+ String basePath = "https://sandbox.cashfree.com/verification";
+
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ basePath = "https://api.cashfree.com/verification";
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/esignature/document";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (document != null) {
+ localVarFormParams.put("document", document);
+ }
+
+ if (xCfSignature != null) {
+ localVarHeaderParams.put("x-cf-signature", localVarApiClient.parameterToString(xCfSignature));
+ }
+
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientSecret = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientSecret");
+ XClientSecret.setApiKey(Cashfree.XClientSecret);
+ }
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientID = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientID");
+ XClientID.setApiKey(Cashfree.XClientId);
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "multipart/form-data"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ localVarHeaderParams.put("x-sdk-platform", "javasdk-1.0.1");
+
+ String[] localVarAuthNames = new String[] { "XClientSecret", "XClientID" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call vrsESignUploadDocumentValidateBeforeCall(File document, String xCfSignature, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'document' is set
+ if (document == null) {
+ throw new ApiException("Missing the required parameter 'document' when calling VrsESignUploadDocument(Async)");
+ }
+
+ return vrsESignUploadDocumentCall(document, xCfSignature, _callback);
+
+ }
+
+ public ApiResponse VrsESignUploadDocument(File document, String xCfSignature, OkHttpClient httpClient) throws ApiException {
+ if(httpClient != null) {
+ localVarApiClient.httpClient = httpClient;
+ }
+ okhttp3.Call localVarCall = vrsESignUploadDocumentValidateBeforeCall(document, xCfSignature, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+
+ /**
+ * Build call for vrsESignVerificationFetchStatus
+ * @param xCfSignature Send the signature if IP is not whitelisted (optional)
+ * @param referenceId It is the unique ID created by Cashfree Payments that you receive in the response of Create E-Sign Request API. (optional, default to 54321)
+ * @param verificationId It is the unique ID you create to identify the Create E-Sign Request API. (optional, default to ABC00123)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success response for retrieving the status of an e-signature request | - |
+ 400 | Validation errors for Get E-Sign Status API | - |
+ 401 | Invalid client ID and client secret combination | - |
+ 403 | Authentication error (IP not whitelisted) | - |
+ 422 | Validation error because of insufficient balance to process this request | - |
+ 500 | Internal error | - |
+
+ */
+ public okhttp3.Call vrsESignVerificationFetchStatusCall(String xCfSignature, Integer referenceId, String verificationId, final ApiCallback _callback) throws ApiException {
+ String basePath = "https://sandbox.cashfree.com/verification";
+
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ basePath = "https://api.cashfree.com/verification";
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/esignature";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (referenceId != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("reference_id", referenceId));
+ }
+
+ if (verificationId != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("verification_id", verificationId));
+ }
+
+ if (xCfSignature != null) {
+ localVarHeaderParams.put("x-cf-signature", localVarApiClient.parameterToString(xCfSignature));
+ }
+
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientSecret = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientSecret");
+ XClientSecret.setApiKey(Cashfree.XClientSecret);
+ }
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientID = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientID");
+ XClientID.setApiKey(Cashfree.XClientId);
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ localVarHeaderParams.put("x-sdk-platform", "javasdk-1.0.1");
+
+ String[] localVarAuthNames = new String[] { "XClientSecret", "XClientID" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call vrsESignVerificationFetchStatusValidateBeforeCall(String xCfSignature, Integer referenceId, String verificationId, final ApiCallback _callback) throws ApiException {
+ return vrsESignVerificationFetchStatusCall(xCfSignature, referenceId, verificationId, _callback);
+
+ }
+
+ public ApiResponse VrsESignVerificationFetchStatus(String xCfSignature, Integer referenceId, String verificationId, OkHttpClient httpClient) throws ApiException {
+ if(httpClient != null) {
+ localVarApiClient.httpClient = httpClient;
+ }
+ okhttp3.Call localVarCall = vrsESignVerificationFetchStatusValidateBeforeCall(xCfSignature, referenceId, verificationId, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+
+ /**
+ * Build call for vrsFaceMatchVerification
+ * @param verificationId It is the unique ID you need to create to identify the verification request. The maximum character limit is 50. Only alphanumeric, period (.), hyphen (-) and underscore ( _ ) are allowed. (required)
+ * @param firstImage It is the scanned copy of the image 1. Allowed file type - JPEG/JPG/PNG. Maximum file size allowed for both the files is 10 MB. (required)
+ * @param secondImage It is the scanned copy of the image 2. Allowed file type - JPEG/JPG/PNG. Maximum file size allowed for both the files is 10 MB. (required)
+ * @param xCfSignature Send the signature if IP is not whitelisted (optional)
+ * @param threshold It is the value to distinguish and match the facial features of the two images. The range is between 0 and 1. The default value is set as 0.7. We conclude that the images match when the analysis is or greater than the value set for threshold. (optional, default to 0.5)
+ * @param detectMaskFirstImage It is a boolean value to identify whether the person in the first image is wearing a mask. (optional)
+ * @param detectMaskSecondImage It is a boolean value to identify whether the person in the first image is wearing a mask. (optional)
+ * @param alignHorizontally It is a boolean value to align the images horizontally before analysing the facial features. (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success response for verifying facial features of your customer in two images | - |
+ 400 | Validation errors for Face Match API | - |
+ 401 | Invalid client ID and client secret combination | - |
+ 403 | Authentication error (IP not whitelisted) | - |
+ 409 | Conflict error | - |
+ 422 | Validation error because of insufficient balance to process this request | - |
+ 500 | Internal error | - |
+ 502 | Gateway error | - |
+
+ */
+ public okhttp3.Call vrsFaceMatchVerificationCall(String verificationId, File firstImage, File secondImage, String xCfSignature, String threshold, Boolean detectMaskFirstImage, Boolean detectMaskSecondImage, Boolean alignHorizontally, final ApiCallback _callback) throws ApiException {
+ String basePath = "https://sandbox.cashfree.com/verification";
+
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ basePath = "https://api.cashfree.com/verification";
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/face-match";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (verificationId != null) {
+ localVarFormParams.put("verification_id", verificationId);
+ }
+
+ if (firstImage != null) {
+ localVarFormParams.put("first_image", firstImage);
+ }
+
+ if (secondImage != null) {
+ localVarFormParams.put("second_image", secondImage);
+ }
+
+ if (threshold != null) {
+ localVarFormParams.put("threshold", threshold);
+ }
+
+ if (detectMaskFirstImage != null) {
+ localVarFormParams.put("detect_mask_first_image", detectMaskFirstImage);
+ }
+
+ if (detectMaskSecondImage != null) {
+ localVarFormParams.put("detect_mask_second_image", detectMaskSecondImage);
+ }
+
+ if (alignHorizontally != null) {
+ localVarFormParams.put("align_horizontally", alignHorizontally);
+ }
+
+ if (xCfSignature != null) {
+ localVarHeaderParams.put("x-cf-signature", localVarApiClient.parameterToString(xCfSignature));
+ }
+
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientSecret = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientSecret");
+ XClientSecret.setApiKey(Cashfree.XClientSecret);
+ }
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientID = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientID");
+ XClientID.setApiKey(Cashfree.XClientId);
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "multipart/form-data"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ localVarHeaderParams.put("x-sdk-platform", "javasdk-1.0.1");
+
+ String[] localVarAuthNames = new String[] { "XClientSecret", "XClientID" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call vrsFaceMatchVerificationValidateBeforeCall(String verificationId, File firstImage, File secondImage, String xCfSignature, String threshold, Boolean detectMaskFirstImage, Boolean detectMaskSecondImage, Boolean alignHorizontally, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'verificationId' is set
+ if (verificationId == null) {
+ throw new ApiException("Missing the required parameter 'verificationId' when calling VrsFaceMatchVerification(Async)");
+ }
+
+ // verify the required parameter 'firstImage' is set
+ if (firstImage == null) {
+ throw new ApiException("Missing the required parameter 'firstImage' when calling VrsFaceMatchVerification(Async)");
+ }
+
+ // verify the required parameter 'secondImage' is set
+ if (secondImage == null) {
+ throw new ApiException("Missing the required parameter 'secondImage' when calling VrsFaceMatchVerification(Async)");
+ }
+
+ return vrsFaceMatchVerificationCall(verificationId, firstImage, secondImage, xCfSignature, threshold, detectMaskFirstImage, detectMaskSecondImage, alignHorizontally, _callback);
+
+ }
+
+ public ApiResponse VrsFaceMatchVerification(String verificationId, File firstImage, File secondImage, String xCfSignature, String threshold, Boolean detectMaskFirstImage, Boolean detectMaskSecondImage, Boolean alignHorizontally, OkHttpClient httpClient) throws ApiException {
+ if(httpClient != null) {
+ localVarApiClient.httpClient = httpClient;
+ }
+ okhttp3.Call localVarCall = vrsFaceMatchVerificationValidateBeforeCall(verificationId, firstImage, secondImage, xCfSignature, threshold, detectMaskFirstImage, detectMaskSecondImage, alignHorizontally, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+
+ /**
+ * Build call for vrsGstinVerification
+ * @param gstinRequestSchema Find the request parameters to retrieve GSTIN information (required)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success response for retrieving GSTIN information | - |
+ 400 | Validation errors for Verify GSTIN API | - |
+ 401 | Invalid client ID and client secret combination | - |
+ 403 | Authentication error (IP not whitelisted) | - |
+ 422 | Validation error because of insufficient balance to process this request | - |
+ 500 | Internal errors | - |
+
+ */
+ public okhttp3.Call vrsGstinVerificationCall(GstinRequestSchema gstinRequestSchema, final ApiCallback _callback) throws ApiException {
+ String basePath = "https://sandbox.cashfree.com/verification";
+
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ basePath = "https://api.cashfree.com/verification";
+ }
+
+ Object localVarPostBody = gstinRequestSchema;
+
+ // create path and map variables
+ String localVarPath = "/gstin";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientSecret = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientSecret");
+ XClientSecret.setApiKey(Cashfree.XClientSecret);
+ }
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientID = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientID");
+ XClientID.setApiKey(Cashfree.XClientId);
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ localVarHeaderParams.put("x-sdk-platform", "javasdk-1.0.1");
+
+ String[] localVarAuthNames = new String[] { "XClientSecret", "XClientID" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call vrsGstinVerificationValidateBeforeCall(GstinRequestSchema gstinRequestSchema, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'gstinRequestSchema' is set
+ if (gstinRequestSchema == null) {
+ throw new ApiException("Missing the required parameter 'gstinRequestSchema' when calling VrsGstinVerification(Async)");
+ }
+
+ return vrsGstinVerificationCall(gstinRequestSchema, _callback);
+
+ }
+
+ public ApiResponse VrsGstinVerification(GstinRequestSchema gstinRequestSchema, OkHttpClient httpClient) throws ApiException {
+ if(httpClient != null) {
+ localVarApiClient.httpClient = httpClient;
+ }
+ okhttp3.Call localVarCall = vrsGstinVerificationValidateBeforeCall(gstinRequestSchema, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+
+ /**
+ * Build call for vrsIpVerification
+ * @param ipVerificationRequestSchema Find the request parameters to retrieve location information of an IP address (required)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | IP verified successfully | - |
+ 400 | Validation errors for Ip Verification | - |
+ 401 | Invalid client ID and client secret combination | - |
+ 403 | Authentication error (IP not whitelisted) | - |
+ 404 | IP not found | - |
+ 422 | Validation error because of insufficient balance to process this request | - |
+ 500 | Internal error | - |
+
+ */
+ public okhttp3.Call vrsIpVerificationCall(IpVerificationRequestSchema ipVerificationRequestSchema, final ApiCallback _callback) throws ApiException {
+ String basePath = "https://sandbox.cashfree.com/verification";
+
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ basePath = "https://api.cashfree.com/verification";
+ }
+
+ Object localVarPostBody = ipVerificationRequestSchema;
+
+ // create path and map variables
+ String localVarPath = "/ip";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientSecret = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientSecret");
+ XClientSecret.setApiKey(Cashfree.XClientSecret);
+ }
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientID = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientID");
+ XClientID.setApiKey(Cashfree.XClientId);
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ localVarHeaderParams.put("x-sdk-platform", "javasdk-1.0.1");
+
+ String[] localVarAuthNames = new String[] { "XClientSecret", "XClientID" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call vrsIpVerificationValidateBeforeCall(IpVerificationRequestSchema ipVerificationRequestSchema, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'ipVerificationRequestSchema' is set
+ if (ipVerificationRequestSchema == null) {
+ throw new ApiException("Missing the required parameter 'ipVerificationRequestSchema' when calling VrsIpVerification(Async)");
+ }
+
+ return vrsIpVerificationCall(ipVerificationRequestSchema, _callback);
+
+ }
+
+ public ApiResponse VrsIpVerification(IpVerificationRequestSchema ipVerificationRequestSchema, OkHttpClient httpClient) throws ApiException {
+ if(httpClient != null) {
+ localVarApiClient.httpClient = httpClient;
+ }
+ okhttp3.Call localVarCall = vrsIpVerificationValidateBeforeCall(ipVerificationRequestSchema, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+
+ /**
+ * Build call for vrsLivelinessCheck
+ * @param verificationId It is the unique ID you create to identify the verification request. The maximum character limit is 50. Only alphanumeric, period (.), hyphen (-) and underscore ( _ ) are allowed. (required)
+ * @param image Upload the image of the individual to verify the liveliness of the image. (required)
+ * @param xCfSignature Send the signature if IP is not whitelisted (optional)
+ * @param strictCheck It is the boolean value to set the strictness check of the image. Default value for strict_check is false. (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success response for checking the liveliness of your customer | - |
+ 400 | Validation errors for Liveliness Check API | - |
+ 401 | Invalid client ID and client secret combination | - |
+ 403 | Authentication error (IP not whitelisted) | - |
+ 409 | Conflict error | - |
+ 422 | Validation error because of insufficient balance to process this request | - |
+ 500 | Internal error | - |
+ 502 | Gateway error | - |
+
+ */
+ public okhttp3.Call vrsLivelinessCheckCall(String verificationId, File image, String xCfSignature, Boolean strictCheck, final ApiCallback _callback) throws ApiException {
+ String basePath = "https://sandbox.cashfree.com/verification";
+
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ basePath = "https://api.cashfree.com/verification";
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/liveliness";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (verificationId != null) {
+ localVarFormParams.put("verification_id", verificationId);
+ }
+
+ if (image != null) {
+ localVarFormParams.put("image", image);
+ }
+
+ if (strictCheck != null) {
+ localVarFormParams.put("strict_check", strictCheck);
+ }
+
+ if (xCfSignature != null) {
+ localVarHeaderParams.put("x-cf-signature", localVarApiClient.parameterToString(xCfSignature));
+ }
+
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientSecret = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientSecret");
+ XClientSecret.setApiKey(Cashfree.XClientSecret);
+ }
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientID = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientID");
+ XClientID.setApiKey(Cashfree.XClientId);
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "multipart/form-data"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ localVarHeaderParams.put("x-sdk-platform", "javasdk-1.0.1");
+
+ String[] localVarAuthNames = new String[] { "XClientSecret", "XClientID" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call vrsLivelinessCheckValidateBeforeCall(String verificationId, File image, String xCfSignature, Boolean strictCheck, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'verificationId' is set
+ if (verificationId == null) {
+ throw new ApiException("Missing the required parameter 'verificationId' when calling VrsLivelinessCheck(Async)");
+ }
+
+ // verify the required parameter 'image' is set
+ if (image == null) {
+ throw new ApiException("Missing the required parameter 'image' when calling VrsLivelinessCheck(Async)");
+ }
+
+ return vrsLivelinessCheckCall(verificationId, image, xCfSignature, strictCheck, _callback);
+
+ }
+
+ public ApiResponse VrsLivelinessCheck(String verificationId, File image, String xCfSignature, Boolean strictCheck, OkHttpClient httpClient) throws ApiException {
+ if(httpClient != null) {
+ localVarApiClient.httpClient = httpClient;
+ }
+ okhttp3.Call localVarCall = vrsLivelinessCheckValidateBeforeCall(verificationId, image, xCfSignature, strictCheck, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+
+ /**
+ * Build call for vrsNameMatchVerification
+ * @param nameMatchRequestSchema Find the request parameters to verify names with variations (required)
+ * @param xCfSignature Send the signature if IP is not whitelisted (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success response for verifing name variations | - |
+ 400 | Validation errors for Name Match API | - |
+ 401 | Invalid client ID and client secret combination | - |
+ 403 | Authentication error (IP not whitelisted) | - |
+ 409 | Conflict error | - |
+ 422 | Validation error because of insufficient balance to process this request | - |
+ 500 | Internal error | - |
+ 502 | Gateway error | - |
+
+ */
+ public okhttp3.Call vrsNameMatchVerificationCall(NameMatchRequestSchema nameMatchRequestSchema, String xCfSignature, final ApiCallback _callback) throws ApiException {
+ String basePath = "https://sandbox.cashfree.com/verification";
+
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ basePath = "https://api.cashfree.com/verification";
+ }
+
+ Object localVarPostBody = nameMatchRequestSchema;
+
+ // create path and map variables
+ String localVarPath = "/name-match";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (xCfSignature != null) {
+ localVarHeaderParams.put("x-cf-signature", localVarApiClient.parameterToString(xCfSignature));
+ }
+
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientSecret = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientSecret");
+ XClientSecret.setApiKey(Cashfree.XClientSecret);
+ }
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientID = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientID");
+ XClientID.setApiKey(Cashfree.XClientId);
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ localVarHeaderParams.put("x-sdk-platform", "javasdk-1.0.1");
+
+ String[] localVarAuthNames = new String[] { "XClientSecret", "XClientID" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call vrsNameMatchVerificationValidateBeforeCall(NameMatchRequestSchema nameMatchRequestSchema, String xCfSignature, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'nameMatchRequestSchema' is set
+ if (nameMatchRequestSchema == null) {
+ throw new ApiException("Missing the required parameter 'nameMatchRequestSchema' when calling VrsNameMatchVerification(Async)");
+ }
+
+ return vrsNameMatchVerificationCall(nameMatchRequestSchema, xCfSignature, _callback);
+
+ }
+
+ public ApiResponse VrsNameMatchVerification(NameMatchRequestSchema nameMatchRequestSchema, String xCfSignature, OkHttpClient httpClient) throws ApiException {
+ if(httpClient != null) {
+ localVarApiClient.httpClient = httpClient;
+ }
+ okhttp3.Call localVarCall = vrsNameMatchVerificationValidateBeforeCall(nameMatchRequestSchema, xCfSignature, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+
+ /**
+ * Build call for vrsBulkPanVerification
+ * @param bulkPanRequestSchema Find the request parameters to verify a large number of PAN information (required)
+ * @param xApiVersion It is the API version. To receive the aadhaar seeding status in the response, use any date after 2022-09-12 (optional)
+ * @param xCfSignature Send the signature if IP is not whitelisted (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success response for verifying a large number of PAN information | - |
+ 400 | Validation errors for Verify Bulk PAN API | - |
+ 401 | Invalid client ID and client secret combination | - |
+ 403 | Authentication error (IP not whitelisted) | - |
+ 422 | Validation error because of insufficient balance to process this request | - |
+ 500 | Internal errors | - |
+
+ */
+ public okhttp3.Call vrsBulkPanVerificationCall(BulkPanRequestSchema bulkPanRequestSchema, String xApiVersion, String xCfSignature, final ApiCallback _callback) throws ApiException {
+ String basePath = "https://sandbox.cashfree.com/verification";
+
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ basePath = "https://api.cashfree.com/verification";
+ }
+
+ Object localVarPostBody = bulkPanRequestSchema;
+
+ // create path and map variables
+ String localVarPath = "/pan/bulk";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (xApiVersion != null) {
+ localVarHeaderParams.put("x-api-version", localVarApiClient.parameterToString(xApiVersion));
+ }
+
+ if (xCfSignature != null) {
+ localVarHeaderParams.put("x-cf-signature", localVarApiClient.parameterToString(xCfSignature));
+ }
+
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientSecret = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientSecret");
+ XClientSecret.setApiKey(Cashfree.XClientSecret);
+ }
+
+ if(Cashfree.XClientSecret != null) {
+ ApiKeyAuth XClientID = (ApiKeyAuth) localVarApiClient.getAuthentication("XClientID");
+ XClientID.setApiKey(Cashfree.XClientId);
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ localVarHeaderParams.put("x-sdk-platform", "javasdk-1.0.1");
+
+ String[] localVarAuthNames = new String[] { "XClientSecret", "XClientID" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call vrsBulkPanVerificationValidateBeforeCall(BulkPanRequestSchema bulkPanRequestSchema, String xApiVersion, String xCfSignature, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'bulkPanRequestSchema' is set
+ if (bulkPanRequestSchema == null) {
+ throw new ApiException("Missing the required parameter 'bulkPanRequestSchema' when calling VrsBulkPanVerification(Async)");
+ }
+
+ return vrsBulkPanVerificationCall(bulkPanRequestSchema, xApiVersion, xCfSignature, _callback);
+
+ }
+
+ public ApiResponse VrsBulkPanVerification(BulkPanRequestSchema bulkPanRequestSchema, String xApiVersion, String xCfSignature, OkHttpClient httpClient) throws ApiException {
+ if(httpClient != null) {
+ localVarApiClient.httpClient = httpClient;
+ }
+ okhttp3.Call localVarCall = vrsBulkPanVerificationValidateBeforeCall(bulkPanRequestSchema, xApiVersion, xCfSignature, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+
+ /**
+ * Build call for vrsFetchBulkPanDetails
+ * @param referenceId It is the unique ID created by Cashfree Payments that you receive in the response of Verify PAN in Bulk API. (required)
+ * @param bulkVerificationId It is the unique ID you created to identify the Verify PAN in Bulk API request. (required)
+ * @param xApiVersion It is the API version. To receive the aadhaar seeding status in the response, use any date after 2022-09-12 (optional)
+ * @param xCfSignature Send the signature if IP is not whitelisted (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success response for verifying a large number of PAN information | - |
+ 400 | Validation errors for Get Bulk PAN Status API | - |
+ 401 | Invalid client ID and client secret combination | - |
+ 403 | Authentication error (IP not whitelisted) | - |
+ 422 | Validation error because of insufficient balance to process this request | - |
+ 500 | Internal error | - |
+
+ */
+ public okhttp3.Call vrsFetchBulkPanDetailsCall(String referenceId, String bulkVerificationId, String xApiVersion, String xCfSignature, final ApiCallback _callback) throws ApiException {
+ String basePath = "https://sandbox.cashfree.com/verification";
+
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ basePath = "https://api.cashfree.com/verification";
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/pan/bulk";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map