java/src/test/java/com/konfigthis/dojah/client/api/GeneralApiTest.java
<filename>java/src/test/java/com/konfigthis/dojah/client/api/GeneralApiTest.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.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.GeneralGetNubanResponse;
import com.konfigthis.dojah.client.model.GetBanksResponse;
import com.konfigthis.dojah.client.model.GetBinResponse;
import com.konfigthis.dojah.client.model.GetDataPlansResponse;
import com.konfigthis.dojah.client.model.GetWalletBalanceResponse;
import com.konfigthis.dojah.client.model.PurchaseAirtimeRequest;
import com.konfigthis.dojah.client.model.PurchaseAirtimeResponse;
import com.konfigthis.dojah.client.model.PurchaseDataRequest;
import com.konfigthis.dojah.client.model.PurchaseDataResponse;
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 GeneralApi
 */
@Disabled
public class GeneralApiTest {

    private static GeneralApi api;

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

    /**
     * General - Get Banks
     *
     * @throws ApiException if the Api call fails
     */
    @Test
    public void getBanksTest() throws ApiException {
        GetBanksResponse response = api.getBanks()
                .execute();
        // TODO: test validations
    }

    /**
     * General Resolve BIN
     *
     * @throws ApiException if the Api call fails
     */
    @Test
    public void getBinTest() throws ApiException {
        Integer cardBin = null;
        GetBinResponse response = api.getBin()
                .cardBin(cardBin)
                .execute();
        // TODO: test validations
    }

    /**
     * Purchase - Get Data Plans
     *
     * @throws ApiException if the Api call fails
     */
    @Test
    public void getDataPlansTest() throws ApiException {
        GetDataPlansResponse response = api.getDataPlans()
                .execute();
        // TODO: test validations
    }

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

    /**
     * Get Dojah Wallet Balance
     *
     * @throws ApiException if the Api call fails
     */
    @Test
    public void getWalletBalanceTest() throws ApiException {
        GetWalletBalanceResponse response = api.getWalletBalance()
                .execute();
        // TODO: test validations
    }

    /**
     * Purchase - Send Airtime
     *
     * @throws ApiException if the Api call fails
     */
    @Test
    public void purchaseAirtimeTest() throws ApiException {
        String destination = null;
        String amount = null;
        PurchaseAirtimeResponse response = api.purchaseAirtime()
                .destination(destination)
                .amount(amount)
                .execute();
        // TODO: test validations
    }

    /**
     * Purchase - Buy Data
     *
     * @throws ApiException if the Api call fails
     */
    @Test
    public void purchaseDataTest() throws ApiException {
        String plan = null;
        String destination = null;
        PurchaseDataResponse response = api.purchaseData()
                .plan(plan)
                .destination(destination)
                .execute();
        // TODO: test validations
    }

}
