java/src/test/java/com/konfigthis/dojah/client/api/KycApiTest.java
<gh_stars>0/*
 * 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.ApiException;
import com.konfigthis.dojah.client.ApiClient;
import com.konfigthis.dojah.client.ApiException;
import com.konfigthis.dojah.client.Configuration;
import com.konfigthis.dojah.client.model.AnalyzeDocumentResponse;
import com.konfigthis.dojah.client.model.GetBasicBvnResponse;
import com.konfigthis.dojah.client.model.GetBasicPhoneNumberResponse;
import com.konfigthis.dojah.client.model.GetEmailReputationResponse;
import com.konfigthis.dojah.client.model.GetFullBvnResponse;
import com.konfigthis.dojah.client.model.GetKycDriversLicenseResponse;
import com.konfigthis.dojah.client.model.GetKycPassportResponse;
import com.konfigthis.dojah.client.model.GetNubanResponse;
import com.konfigthis.dojah.client.model.GetPhoneNumberResponse;
import com.konfigthis.dojah.client.model.GetPremiumBvnResponse;
import com.konfigthis.dojah.client.model.GetVinResponse;
import com.konfigthis.dojah.client.model.GetVninResponse;
import com.konfigthis.dojah.client.model.ValidateBvnResponse;
import com.konfigthis.dojah.client.model.VerifyAgeResponse;
import com.konfigthis.dojah.client.model.VerifySelfieBvnRequest;
import com.konfigthis.dojah.client.model.VerifySelfieBvnResponse;
import com.konfigthis.dojah.client.model.VerifySelfieNinRequest;
import com.konfigthis.dojah.client.model.VerifySelfieNinResponse;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.BeforeAll;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * API tests for KycApi
 */
@Disabled
public class KycApiTest {

    private static KycApi api;

    
    @BeforeAll
    public static void beforeClass() {
        ApiClient apiClient = Configuration.getDefaultApiClient();
        api = new KycApi(apiClient);
    }

    /**
     * KYC - Document Analysis
     *
     * @throws ApiException if the Api call fails
     */
    @Test
    public void analyzeDocumentTest() throws ApiException {
        AnalyzeDocumentResponse response = api.analyzeDocument()
                .execute();
        // TODO: test validations
    }

    /**
     * KYC - Get Basic BVN Info
     *
     * @throws ApiException if the Api call fails
     */
    @Test
    public void getBasicBvnTest() throws ApiException {
        Integer bvn = null;
        GetBasicBvnResponse response = api.getBasicBvn()
                .bvn(bvn)
                .execute();
        // TODO: test validations
    }

    /**
     * KYC Lookup Phone Number Basic
     *
     * @throws ApiException if the Api call fails
     */
    @Test
    public void getBasicPhoneNumberTest() throws ApiException {
        Integer phoneNumber = null;
        GetBasicPhoneNumberResponse response = api.getBasicPhoneNumber()
                .phoneNumber(phoneNumber)
                .execute();
        // TODO: test validations
    }

    /**
     * KYC - Get Drivers License Info
     *
     * @throws ApiException if the Api call fails
     */
    @Test
    public void getDriversLicenseTest() throws ApiException {
        String licenseNumber = null;
        GetKycDriversLicenseResponse response = api.getDriversLicense()
                .licenseNumber(licenseNumber)
                .execute();
        // TODO: test validations
    }

    /**
     * KYC - Get Email Reputation
     *
     * @throws ApiException if the Api call fails
     */
    @Test
    public void getEmailReputationTest() throws ApiException {
        String email = null;
        GetEmailReputationResponse response = api.getEmailReputation()
                .email(email)
                .execute();
        // TODO: test validations
    }

    /**
     * KYC - Lookup BVN Basic
     *
     * @throws ApiException if the Api call fails
     */
    @Test
    public void getFullBvnTest() throws ApiException {
        Integer bvn = null;
        GetFullBvnResponse response = api.getFullBvn()
                .bvn(bvn)
                .execute();
        // TODO: test validations
    }

    /**
     * KYC - Get NUBAN Information
     *
     * @throws ApiException if the Api call fails
     */
    @Test
    public void getNubanTest() throws ApiException {
        Integer bankCode = null;
        Integer accountNumber = null;
        GetNubanResponse response = api.getNuban()
                .bankCode(bankCode)
                .accountNumber(accountNumber)
                .execute();
        // TODO: test validations
    }

    /**
     * KYC - Passport
     *
     * @throws ApiException if the Api call fails
     */
    @Test
    public void getPassportTest() throws ApiException {
        Integer passportNumber = null;
        String surname = null;
        GetKycPassportResponse response = api.getPassport()
                .passportNumber(passportNumber)
                .surname(surname)
                .execute();
        // TODO: test validations
    }

    /**
     * KYC - Lookup Phone Number
     *
     * @throws ApiException if the Api call fails
     */
    @Test
    public void getPhoneNumberTest() throws ApiException {
        Integer phoneNumber = null;
        GetPhoneNumberResponse response = api.getPhoneNumber()
                .phoneNumber(phoneNumber)
                .execute();
        // TODO: test validations
    }

    /**
     * KYC - Lookup BVN Premium
     *
     * @throws ApiException if the Api call fails
     */
    @Test
    public void getPremiumBvnTest() throws ApiException {
        Integer bvn = null;
        GetPremiumBvnResponse response = api.getPremiumBvn()
                .bvn(bvn)
                .execute();
        // TODO: test validations
    }

    /**
     * KYC - Get VIN
     *
     * @throws ApiException if the Api call fails
     */
    @Test
    public void getVINTest() throws ApiException {
        String mode = null;
        String firstname = null;
        String lastname = null;
        Integer vin = null;
        String state = null;
        GetVinResponse response = api.getVIN()
                .mode(mode)
                .firstname(firstname)
                .lastname(lastname)
                .vin(vin)
                .state(state)
                .execute();
        // TODO: test validations
    }

    /**
     * Lookup VNIN
     *
     * @throws ApiException if the Api call fails
     */
    @Test
    public void getVninTest() throws ApiException {
        String vnin = null;
        GetVninResponse response = api.getVnin()
                .vnin(vnin)
                .execute();
        // TODO: test validations
    }

    /**
     * KYC - Validate BVN
     *
     * @throws ApiException if the Api call fails
     */
    @Test
    public void validateBvnTest() throws ApiException {
        Integer bvn = null;
        String firstName = null;
        String dob = null;
        ValidateBvnResponse response = api.validateBvn()
                .bvn(bvn)
                .firstName(firstName)
                .dob(dob)
                .execute();
        // TODO: test validations
    }

    /**
     * KYC - Age Verification
     *
     * @throws ApiException if the Api call fails
     */
    @Test
    public void verifyAgeTest() throws ApiException {
        String mode = null;
        Integer accountNumber = null;
        Integer bankCode = null;
        String dob = null;
        String firstName = null;
        String lastName = null;
        VerifyAgeResponse response = api.verifyAge()
                .mode(mode)
                .accountNumber(accountNumber)
                .bankCode(bankCode)
                .dob(dob)
                .firstName(firstName)
                .lastName(lastName)
                .execute();
        // TODO: test validations
    }

    /**
     * KYC - Selfie BVN Verificatoin
     *
     * @throws ApiException if the Api call fails
     */
    @Test
    public void verifySelfieBvnTest() throws ApiException {
        String bvn = null;
        String selfieImage = null;
        VerifySelfieBvnResponse response = api.verifySelfieBvn()
                .bvn(bvn)
                .selfieImage(selfieImage)
                .execute();
        // TODO: test validations
    }

    /**
     * KYC - Selfie NIN Verification
     *
     * @throws ApiException if the Api call fails
     */
    @Test
    public void verifySelfieNinTest() throws ApiException {
        String nin = null;
        String selfieImage = null;
        VerifySelfieNinResponse response = api.verifySelfieNin()
                .nin(nin)
                .selfieImage(selfieImage)
                .execute();
        // TODO: test validations
    }

}
