java/src/main/java/com/konfigthis/dojah/client/api/GhKycApi.java
/*
 * DOJAH APIs
 * Use Dojah to verify, onboard and manage user identity across Africa!
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 *
 * NOTE: This class is auto generated by Konfig (https://konfigthis.com).
 * Do not edit the class manually.
 */


package com.konfigthis.dojah.client.api;

import com.konfigthis.dojah.client.ApiCallback;
import com.konfigthis.dojah.client.ApiClient;
import com.konfigthis.dojah.client.ApiException;
import com.konfigthis.dojah.client.ApiResponse;
import com.konfigthis.dojah.client.Configuration;
import com.konfigthis.dojah.client.Pair;
import com.konfigthis.dojah.client.ProgressRequestBody;
import com.konfigthis.dojah.client.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import com.konfigthis.dojah.client.model.GetDriversLicenseResponse;
import com.konfigthis.dojah.client.model.GetPassportResponse;
import com.konfigthis.dojah.client.model.GetSsnitResponse;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.ws.rs.core.GenericType;

public class GhKycApi {
    private ApiClient localVarApiClient;
    private int localHostIndex;
    private String localCustomBaseUrl;

    public GhKycApi() throws IllegalArgumentException {
        this(Configuration.getDefaultApiClient());
    }

    public GhKycApi(ApiClient apiClient) throws IllegalArgumentException {
        if (apiClient.getApikeyAuth() == null) {
            throw new IllegalArgumentException("\"Authorization\" is required but no API key was provided. Please set \"Authorization\" with ApiClient#setApikeyAuth(String).");
        }
        this.localVarApiClient = apiClient;
    }

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

    public void setApiClient(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    public int getHostIndex() {
        return localHostIndex;
    }

    public void setHostIndex(int hostIndex) {
        this.localHostIndex = hostIndex;
    }

    public String getCustomBaseUrl() {
        return localCustomBaseUrl;
    }

    public void setCustomBaseUrl(String customBaseUrl) {
        this.localCustomBaseUrl = customBaseUrl;
    }

    private okhttp3.Call getDriversLicenseCall(String id, String fullName, String dateOfBirth, final ApiCallback _callback) throws ApiException {
        String basePath = null;
        // Operation Servers
        String[] localBasePaths = new String[] {  };

        // Determine Base Path to Use
        if (localCustomBaseUrl != null){
            basePath = localCustomBaseUrl;
        } else if ( localBasePaths.length > 0 ) {
            basePath = localBasePaths[localHostIndex];
        } else {
            basePath = null;
        }

        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/api/v1/gh/kyc/dl";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, String> localVarCookieParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();

        if (id != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("id", id));
        }

        if (fullName != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("full_name", fullName));
        }

        if (dateOfBirth != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("date_of_birth", dateOfBirth));
        }

        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);
        }

        String[] localVarAuthNames = new String[] { "apikeyAuth", "appIdAuth" };
        return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call getDriversLicenseValidateBeforeCall(String id, String fullName, String dateOfBirth, final ApiCallback _callback) throws ApiException {
        return getDriversLicenseCall(id, fullName, dateOfBirth, _callback);

    }


    private ApiResponse<GetDriversLicenseResponse> getDriversLicenseWithHttpInfo(String id, String fullName, String dateOfBirth) throws ApiException {
        okhttp3.Call localVarCall = getDriversLicenseValidateBeforeCall(id, fullName, dateOfBirth, null);
        Type localVarReturnType = new TypeToken<GetDriversLicenseResponse>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    private okhttp3.Call getDriversLicenseAsync(String id, String fullName, String dateOfBirth, final ApiCallback<GetDriversLicenseResponse> _callback) throws ApiException {

        okhttp3.Call localVarCall = getDriversLicenseValidateBeforeCall(id, fullName, dateOfBirth, _callback);
        Type localVarReturnType = new TypeToken<GetDriversLicenseResponse>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }

    public class GetDriversLicenseRequestBuilder {
        private String id;
        private String fullName;
        private String dateOfBirth;

        private GetDriversLicenseRequestBuilder() {
        }

        /**
         * Set id
         * @param id  (optional)
         * @return GetDriversLicenseRequestBuilder
         */
        public GetDriversLicenseRequestBuilder id(String id) {
            this.id = id;
            return this;
        }
        
        /**
         * Set fullName
         * @param fullName  (optional)
         * @return GetDriversLicenseRequestBuilder
         */
        public GetDriversLicenseRequestBuilder fullName(String fullName) {
            this.fullName = fullName;
            return this;
        }
        
        /**
         * Set dateOfBirth
         * @param dateOfBirth  (optional)
         * @return GetDriversLicenseRequestBuilder
         */
        public GetDriversLicenseRequestBuilder dateOfBirth(String dateOfBirth) {
            this.dateOfBirth = dateOfBirth;
            return this;
        }
        
        /**
         * Build call for getDriversLicense
         * @param _callback ApiCallback API callback
         * @return Call to execute
         * @throws ApiException If fail to serialize the request body object
         * @http.response.details
         <table summary="Response Details" border="1">
            <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
            <tr><td> 200 </td><td> OK </td><td>  * Access-Control-Allow-Origin -  <br>  * x-moesif-transaction-id -  <br>  * service -  <br>  * product -  <br>  * ETag -  <br>  * Vary -  <br>  * Content-Encoding -  <br>  * Date -  <br>  * Connection -  <br>  * Keep-Alive -  <br>  * Transfer-Encoding -  <br>  </td></tr>
         </table>
         */
        public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
            return getDriversLicenseCall(id, fullName, dateOfBirth, _callback);
        }


        /**
         * Execute getDriversLicense request
         * @return GetDriversLicenseResponse
         * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
         * @http.response.details
         <table summary="Response Details" border="1">
            <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
            <tr><td> 200 </td><td> OK </td><td>  * Access-Control-Allow-Origin -  <br>  * x-moesif-transaction-id -  <br>  * service -  <br>  * product -  <br>  * ETag -  <br>  * Vary -  <br>  * Content-Encoding -  <br>  * Date -  <br>  * Connection -  <br>  * Keep-Alive -  <br>  * Transfer-Encoding -  <br>  </td></tr>
         </table>
         */
        public GetDriversLicenseResponse execute() throws ApiException {
            ApiResponse<GetDriversLicenseResponse> localVarResp = getDriversLicenseWithHttpInfo(id, fullName, dateOfBirth);
            return localVarResp.getData();
        }

        /**
         * Execute getDriversLicense request with HTTP info returned
         * @return ApiResponse&lt;GetDriversLicenseResponse&gt;
         * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
         * @http.response.details
         <table summary="Response Details" border="1">
            <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
            <tr><td> 200 </td><td> OK </td><td>  * Access-Control-Allow-Origin -  <br>  * x-moesif-transaction-id -  <br>  * service -  <br>  * product -  <br>  * ETag -  <br>  * Vary -  <br>  * Content-Encoding -  <br>  * Date -  <br>  * Connection -  <br>  * Keep-Alive -  <br>  * Transfer-Encoding -  <br>  </td></tr>
         </table>
         */
        public ApiResponse<GetDriversLicenseResponse> executeWithHttpInfo() throws ApiException {
            return getDriversLicenseWithHttpInfo(id, fullName, dateOfBirth);
        }

        /**
         * Execute getDriversLicense request (asynchronously)
         * @param _callback The callback to be executed when the API call finishes
         * @return The request call
         * @throws ApiException If fail to process the API call, e.g. serializing the request body object
         * @http.response.details
         <table summary="Response Details" border="1">
            <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
            <tr><td> 200 </td><td> OK </td><td>  * Access-Control-Allow-Origin -  <br>  * x-moesif-transaction-id -  <br>  * service -  <br>  * product -  <br>  * ETag -  <br>  * Vary -  <br>  * Content-Encoding -  <br>  * Date -  <br>  * Connection -  <br>  * Keep-Alive -  <br>  * Transfer-Encoding -  <br>  </td></tr>
         </table>
         */
        public okhttp3.Call executeAsync(final ApiCallback<GetDriversLicenseResponse> _callback) throws ApiException {
            return getDriversLicenseAsync(id, fullName, dateOfBirth, _callback);
        }
    }

    /**
     * Driver&#39;s License
     * 
     * @return GetDriversLicenseRequestBuilder
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 200 </td><td> OK </td><td>  * Access-Control-Allow-Origin -  <br>  * x-moesif-transaction-id -  <br>  * service -  <br>  * product -  <br>  * ETag -  <br>  * Vary -  <br>  * Content-Encoding -  <br>  * Date -  <br>  * Connection -  <br>  * Keep-Alive -  <br>  * Transfer-Encoding -  <br>  </td></tr>
     </table>
     */
    public GetDriversLicenseRequestBuilder getDriversLicense() throws IllegalArgumentException {
        return new GetDriversLicenseRequestBuilder();
    }
    private okhttp3.Call getPassportCall(String id, String firstName, String lastName, String middleName, String dateOfBirth, final ApiCallback _callback) throws ApiException {
        String basePath = null;
        // Operation Servers
        String[] localBasePaths = new String[] {  };

        // Determine Base Path to Use
        if (localCustomBaseUrl != null){
            basePath = localCustomBaseUrl;
        } else if ( localBasePaths.length > 0 ) {
            basePath = localBasePaths[localHostIndex];
        } else {
            basePath = null;
        }

        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/api/v1/gh/kyc/passport";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, String> localVarCookieParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();

        if (id != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("id", id));
        }

        if (firstName != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("first_name", firstName));
        }

        if (lastName != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("last_name", lastName));
        }

        if (middleName != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("middle_name", middleName));
        }

        if (dateOfBirth != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("date_of_birth", dateOfBirth));
        }

        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);
        }

        String[] localVarAuthNames = new String[] { "apikeyAuth", "appIdAuth" };
        return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call getPassportValidateBeforeCall(String id, String firstName, String lastName, String middleName, String dateOfBirth, final ApiCallback _callback) throws ApiException {
        return getPassportCall(id, firstName, lastName, middleName, dateOfBirth, _callback);

    }


    private ApiResponse<GetPassportResponse> getPassportWithHttpInfo(String id, String firstName, String lastName, String middleName, String dateOfBirth) throws ApiException {
        okhttp3.Call localVarCall = getPassportValidateBeforeCall(id, firstName, lastName, middleName, dateOfBirth, null);
        Type localVarReturnType = new TypeToken<GetPassportResponse>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    private okhttp3.Call getPassportAsync(String id, String firstName, String lastName, String middleName, String dateOfBirth, final ApiCallback<GetPassportResponse> _callback) throws ApiException {

        okhttp3.Call localVarCall = getPassportValidateBeforeCall(id, firstName, lastName, middleName, dateOfBirth, _callback);
        Type localVarReturnType = new TypeToken<GetPassportResponse>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }

    public class GetPassportRequestBuilder {
        private String id;
        private String firstName;
        private String lastName;
        private String middleName;
        private String dateOfBirth;

        private GetPassportRequestBuilder() {
        }

        /**
         * Set id
         * @param id  (optional)
         * @return GetPassportRequestBuilder
         */
        public GetPassportRequestBuilder id(String id) {
            this.id = id;
            return this;
        }
        
        /**
         * Set firstName
         * @param firstName  (optional)
         * @return GetPassportRequestBuilder
         */
        public GetPassportRequestBuilder firstName(String firstName) {
            this.firstName = firstName;
            return this;
        }
        
        /**
         * Set lastName
         * @param lastName  (optional)
         * @return GetPassportRequestBuilder
         */
        public GetPassportRequestBuilder lastName(String lastName) {
            this.lastName = lastName;
            return this;
        }
        
        /**
         * Set middleName
         * @param middleName  (optional)
         * @return GetPassportRequestBuilder
         */
        public GetPassportRequestBuilder middleName(String middleName) {
            this.middleName = middleName;
            return this;
        }
        
        /**
         * Set dateOfBirth
         * @param dateOfBirth  (optional)
         * @return GetPassportRequestBuilder
         */
        public GetPassportRequestBuilder dateOfBirth(String dateOfBirth) {
            this.dateOfBirth = dateOfBirth;
            return this;
        }
        
        /**
         * Build call for getPassport
         * @param _callback ApiCallback API callback
         * @return Call to execute
         * @throws ApiException If fail to serialize the request body object
         * @http.response.details
         <table summary="Response Details" border="1">
            <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
            <tr><td> 200 </td><td> OK </td><td>  * Access-Control-Allow-Origin -  <br>  * x-moesif-transaction-id -  <br>  * service -  <br>  * product -  <br>  * ETag -  <br>  * Vary -  <br>  * Content-Encoding -  <br>  * Date -  <br>  * Connection -  <br>  * Keep-Alive -  <br>  * Transfer-Encoding -  <br>  </td></tr>
         </table>
         */
        public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
            return getPassportCall(id, firstName, lastName, middleName, dateOfBirth, _callback);
        }


        /**
         * Execute getPassport request
         * @return GetPassportResponse
         * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
         * @http.response.details
         <table summary="Response Details" border="1">
            <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
            <tr><td> 200 </td><td> OK </td><td>  * Access-Control-Allow-Origin -  <br>  * x-moesif-transaction-id -  <br>  * service -  <br>  * product -  <br>  * ETag -  <br>  * Vary -  <br>  * Content-Encoding -  <br>  * Date -  <br>  * Connection -  <br>  * Keep-Alive -  <br>  * Transfer-Encoding -  <br>  </td></tr>
         </table>
         */
        public GetPassportResponse execute() throws ApiException {
            ApiResponse<GetPassportResponse> localVarResp = getPassportWithHttpInfo(id, firstName, lastName, middleName, dateOfBirth);
            return localVarResp.getData();
        }

        /**
         * Execute getPassport request with HTTP info returned
         * @return ApiResponse&lt;GetPassportResponse&gt;
         * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
         * @http.response.details
         <table summary="Response Details" border="1">
            <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
            <tr><td> 200 </td><td> OK </td><td>  * Access-Control-Allow-Origin -  <br>  * x-moesif-transaction-id -  <br>  * service -  <br>  * product -  <br>  * ETag -  <br>  * Vary -  <br>  * Content-Encoding -  <br>  * Date -  <br>  * Connection -  <br>  * Keep-Alive -  <br>  * Transfer-Encoding -  <br>  </td></tr>
         </table>
         */
        public ApiResponse<GetPassportResponse> executeWithHttpInfo() throws ApiException {
            return getPassportWithHttpInfo(id, firstName, lastName, middleName, dateOfBirth);
        }

        /**
         * Execute getPassport request (asynchronously)
         * @param _callback The callback to be executed when the API call finishes
         * @return The request call
         * @throws ApiException If fail to process the API call, e.g. serializing the request body object
         * @http.response.details
         <table summary="Response Details" border="1">
            <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
            <tr><td> 200 </td><td> OK </td><td>  * Access-Control-Allow-Origin -  <br>  * x-moesif-transaction-id -  <br>  * service -  <br>  * product -  <br>  * ETag -  <br>  * Vary -  <br>  * Content-Encoding -  <br>  * Date -  <br>  * Connection -  <br>  * Keep-Alive -  <br>  * Transfer-Encoding -  <br>  </td></tr>
         </table>
         */
        public okhttp3.Call executeAsync(final ApiCallback<GetPassportResponse> _callback) throws ApiException {
            return getPassportAsync(id, firstName, lastName, middleName, dateOfBirth, _callback);
        }
    }

    /**
     * Passport
     * 
     * @return GetPassportRequestBuilder
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 200 </td><td> OK </td><td>  * Access-Control-Allow-Origin -  <br>  * x-moesif-transaction-id -  <br>  * service -  <br>  * product -  <br>  * ETag -  <br>  * Vary -  <br>  * Content-Encoding -  <br>  * Date -  <br>  * Connection -  <br>  * Keep-Alive -  <br>  * Transfer-Encoding -  <br>  </td></tr>
     </table>
     */
    public GetPassportRequestBuilder getPassport() throws IllegalArgumentException {
        return new GetPassportRequestBuilder();
    }
    private okhttp3.Call getSsnitCall(String id, String fullName, String dateOfBirth, final ApiCallback _callback) throws ApiException {
        String basePath = null;
        // Operation Servers
        String[] localBasePaths = new String[] {  };

        // Determine Base Path to Use
        if (localCustomBaseUrl != null){
            basePath = localCustomBaseUrl;
        } else if ( localBasePaths.length > 0 ) {
            basePath = localBasePaths[localHostIndex];
        } else {
            basePath = null;
        }

        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/api/v1/gh/kyc/ssnit";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, String> localVarCookieParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();

        if (id != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("id", id));
        }

        if (fullName != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("full_name", fullName));
        }

        if (dateOfBirth != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("date_of_birth", dateOfBirth));
        }

        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);
        }

        String[] localVarAuthNames = new String[] { "apikeyAuth", "appIdAuth" };
        return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call getSsnitValidateBeforeCall(String id, String fullName, String dateOfBirth, final ApiCallback _callback) throws ApiException {
        return getSsnitCall(id, fullName, dateOfBirth, _callback);

    }


    private ApiResponse<GetSsnitResponse> getSsnitWithHttpInfo(String id, String fullName, String dateOfBirth) throws ApiException {
        okhttp3.Call localVarCall = getSsnitValidateBeforeCall(id, fullName, dateOfBirth, null);
        Type localVarReturnType = new TypeToken<GetSsnitResponse>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    private okhttp3.Call getSsnitAsync(String id, String fullName, String dateOfBirth, final ApiCallback<GetSsnitResponse> _callback) throws ApiException {

        okhttp3.Call localVarCall = getSsnitValidateBeforeCall(id, fullName, dateOfBirth, _callback);
        Type localVarReturnType = new TypeToken<GetSsnitResponse>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }

    public class GetSsnitRequestBuilder {
        private String id;
        private String fullName;
        private String dateOfBirth;

        private GetSsnitRequestBuilder() {
        }

        /**
         * Set id
         * @param id  (optional)
         * @return GetSsnitRequestBuilder
         */
        public GetSsnitRequestBuilder id(String id) {
            this.id = id;
            return this;
        }
        
        /**
         * Set fullName
         * @param fullName  (optional)
         * @return GetSsnitRequestBuilder
         */
        public GetSsnitRequestBuilder fullName(String fullName) {
            this.fullName = fullName;
            return this;
        }
        
        /**
         * Set dateOfBirth
         * @param dateOfBirth  (optional)
         * @return GetSsnitRequestBuilder
         */
        public GetSsnitRequestBuilder dateOfBirth(String dateOfBirth) {
            this.dateOfBirth = dateOfBirth;
            return this;
        }
        
        /**
         * Build call for getSsnit
         * @param _callback ApiCallback API callback
         * @return Call to execute
         * @throws ApiException If fail to serialize the request body object
         * @http.response.details
         <table summary="Response Details" border="1">
            <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
            <tr><td> 200 </td><td> OK </td><td>  -  </td></tr>
         </table>
         */
        public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
            return getSsnitCall(id, fullName, dateOfBirth, _callback);
        }


        /**
         * Execute getSsnit request
         * @return GetSsnitResponse
         * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
         * @http.response.details
         <table summary="Response Details" border="1">
            <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
            <tr><td> 200 </td><td> OK </td><td>  -  </td></tr>
         </table>
         */
        public GetSsnitResponse execute() throws ApiException {
            ApiResponse<GetSsnitResponse> localVarResp = getSsnitWithHttpInfo(id, fullName, dateOfBirth);
            return localVarResp.getData();
        }

        /**
         * Execute getSsnit request with HTTP info returned
         * @return ApiResponse&lt;GetSsnitResponse&gt;
         * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
         * @http.response.details
         <table summary="Response Details" border="1">
            <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
            <tr><td> 200 </td><td> OK </td><td>  -  </td></tr>
         </table>
         */
        public ApiResponse<GetSsnitResponse> executeWithHttpInfo() throws ApiException {
            return getSsnitWithHttpInfo(id, fullName, dateOfBirth);
        }

        /**
         * Execute getSsnit request (asynchronously)
         * @param _callback The callback to be executed when the API call finishes
         * @return The request call
         * @throws ApiException If fail to process the API call, e.g. serializing the request body object
         * @http.response.details
         <table summary="Response Details" border="1">
            <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
            <tr><td> 200 </td><td> OK </td><td>  -  </td></tr>
         </table>
         */
        public okhttp3.Call executeAsync(final ApiCallback<GetSsnitResponse> _callback) throws ApiException {
            return getSsnitAsync(id, fullName, dateOfBirth, _callback);
        }
    }

    /**
     * SSNIT
     * 
     * @return GetSsnitRequestBuilder
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 200 </td><td> OK </td><td>  -  </td></tr>
     </table>
     */
    public GetSsnitRequestBuilder getSsnit() throws IllegalArgumentException {
        return new GetSsnitRequestBuilder();
    }
}
