/*
 * Swagger of Opencellsoft Api
 * @#Introduction
 *
 * The version of the OpenAPI document: 7.3.1-SNAPSHOT
 * Contact: contact@opencellsoft.fr
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package org.openapitools.client.api;

import org.openapitools.client.ApiCallback;
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.ApiResponse;
import org.openapitools.client.Configuration;
import org.openapitools.client.Pair;
import org.openapitools.client.ProgressRequestBody;
import org.openapitools.client.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import org.openapitools.client.model.ActionStatus;
import org.openapitools.client.model.FindWalletOperationsDto;
import org.openapitools.client.model.FindWalletOperationsResponseDto;
import org.openapitools.client.model.GetWalletTemplateResponseDto;
import org.openapitools.client.model.PagingAndFiltering;
import org.openapitools.client.model.WalletBalanceDto;
import org.openapitools.client.model.WalletBalanceResponseDto;
import org.openapitools.client.model.WalletOperationDto;
import org.openapitools.client.model.WalletReservationDto;
import org.openapitools.client.model.WalletTemplateDto;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class WalletApi {
    private ApiClient localVarApiClient;

    public WalletApi() {
        this(Configuration.getDefaultApiClient());
    }

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

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

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

    /**
     * Build call for dELETEWalletReservationReservationId091
     * @param reservationId  reservationId The reservation&#39;s id  (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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call dELETEWalletReservationReservationId091Call(Long reservationId, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/billing/wallet/reservation/{reservationId}"
            .replaceAll("\\{" + "reservationId" + "\\}", localVarApiClient.escapeString(reservationId.toString()));

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

        String[] localVarAuthNames = new String[] { "auth" };
        return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call dELETEWalletReservationReservationId091ValidateBeforeCall(Long reservationId, final ApiCallback _callback) throws ApiException {
        
        // verify the required parameter 'reservationId' is set
        if (reservationId == null) {
            throw new ApiException("Missing the required parameter 'reservationId' when calling dELETEWalletReservationReservationId091(Async)");
        }
        

        okhttp3.Call localVarCall = dELETEWalletReservationReservationId091Call(reservationId, _callback);
        return localVarCall;

    }

    /**
     *  Cancel a reservation given an id.  
     *  Cancel a reservation given an id.  
     * @param reservationId  reservationId The reservation&#39;s id  (required)
     * @return ActionStatus
     * @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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus dELETEWalletReservationReservationId091(Long reservationId) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = dELETEWalletReservationReservationId091WithHttpInfo(reservationId);
        return localVarResp.getData();
    }

    /**
     *  Cancel a reservation given an id.  
     *  Cancel a reservation given an id.  
     * @param reservationId  reservationId The reservation&#39;s id  (required)
     * @return ApiResponse&lt;ActionStatus&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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> dELETEWalletReservationReservationId091WithHttpInfo(Long reservationId) throws ApiException {
        okhttp3.Call localVarCall = dELETEWalletReservationReservationId091ValidateBeforeCall(reservationId, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Cancel a reservation given an id.   (asynchronously)
     *  Cancel a reservation given an id.  
     * @param reservationId  reservationId The reservation&#39;s id  (required)
     * @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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call dELETEWalletReservationReservationId091Async(Long reservationId, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = dELETEWalletReservationReservationId091ValidateBeforeCall(reservationId, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for dELETEWalletTemplateWalletTemplateCode1
     * @param walletTemplateCode  walletTemplateCode The wallet template&#39;s code  (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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call dELETEWalletTemplateWalletTemplateCode1Call(String walletTemplateCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/billing/wallet/template/{walletTemplateCode}"
            .replaceAll("\\{" + "walletTemplateCode" + "\\}", localVarApiClient.escapeString(walletTemplateCode.toString()));

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

        String[] localVarAuthNames = new String[] { "auth" };
        return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call dELETEWalletTemplateWalletTemplateCode1ValidateBeforeCall(String walletTemplateCode, final ApiCallback _callback) throws ApiException {
        
        // verify the required parameter 'walletTemplateCode' is set
        if (walletTemplateCode == null) {
            throw new ApiException("Missing the required parameter 'walletTemplateCode' when calling dELETEWalletTemplateWalletTemplateCode1(Async)");
        }
        

        okhttp3.Call localVarCall = dELETEWalletTemplateWalletTemplateCode1Call(walletTemplateCode, _callback);
        return localVarCall;

    }

    /**
     *  Remove an existing wallet template with a given code  
     *  Remove an existing wallet template with a given code  
     * @param walletTemplateCode  walletTemplateCode The wallet template&#39;s code  (required)
     * @return ActionStatus
     * @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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus dELETEWalletTemplateWalletTemplateCode1(String walletTemplateCode) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = dELETEWalletTemplateWalletTemplateCode1WithHttpInfo(walletTemplateCode);
        return localVarResp.getData();
    }

    /**
     *  Remove an existing wallet template with a given code  
     *  Remove an existing wallet template with a given code  
     * @param walletTemplateCode  walletTemplateCode The wallet template&#39;s code  (required)
     * @return ApiResponse&lt;ActionStatus&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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> dELETEWalletTemplateWalletTemplateCode1WithHttpInfo(String walletTemplateCode) throws ApiException {
        okhttp3.Call localVarCall = dELETEWalletTemplateWalletTemplateCode1ValidateBeforeCall(walletTemplateCode, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Remove an existing wallet template with a given code   (asynchronously)
     *  Remove an existing wallet template with a given code  
     * @param walletTemplateCode  walletTemplateCode The wallet template&#39;s code  (required)
     * @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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call dELETEWalletTemplateWalletTemplateCode1Async(String walletTemplateCode, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = dELETEWalletTemplateWalletTemplateCode1ValidateBeforeCall(walletTemplateCode, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETIBaseVersion32
     * @param _callback Callback for upload/download progress
     * @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> 0 </td><td>  Action status with version number as a message  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETIBaseVersion32Call(final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/billing/wallet/version";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

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

    @SuppressWarnings("rawtypes")
    private okhttp3.Call gETIBaseVersion32ValidateBeforeCall(final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETIBaseVersion32Call(_callback);
        return localVarCall;

    }

    /**
     *  Get version of application  
     *  Get version of application  
     * @return ActionStatus
     * @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> 0 </td><td>  Action status with version number as a message  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus gETIBaseVersion32() throws ApiException {
        ApiResponse<ActionStatus> localVarResp = gETIBaseVersion32WithHttpInfo();
        return localVarResp.getData();
    }

    /**
     *  Get version of application  
     *  Get version of application  
     * @return ApiResponse&lt;ActionStatus&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> 0 </td><td>  Action status with version number as a message  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> gETIBaseVersion32WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = gETIBaseVersion32ValidateBeforeCall(null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Get version of application   (asynchronously)
     *  Get version of application  
     * @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> 0 </td><td>  Action status with version number as a message  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETIBaseVersion32Async(final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETIBaseVersion32ValidateBeforeCall(_callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETWalletOperationList1
     * @param query  query Search criteria  (optional)
     * @param fields  fields Data retrieval options/fieldnames separated by a comma  (optional)
     * @param offset  offset Pagination - from record number  (optional)
     * @param limit  limit Pagination - number of records to retrieve  (optional)
     * @param sortBy  sortBy Sorting - field to sort by - a field from a main entity being searched. See Data model for a list of fields.  (optional, default to &quot;id&quot;)
     * @param sortOrder  sortOrder Sorting - sort order.  (optional, default to ASCENDING)
     * @param withRTs  withRTs RTs - option for the list  (optional, default to false)
     * @param _callback Callback for upload/download progress
     * @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> 0 </td><td>  List of wallet operations  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETWalletOperationList1Call(String query, String fields, Integer offset, Integer limit, String sortBy, String sortOrder, Boolean withRTs, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/billing/wallet/operation/list";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        if (query != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("query", query));
        }

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

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

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

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

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

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

        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

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

    @SuppressWarnings("rawtypes")
    private okhttp3.Call gETWalletOperationList1ValidateBeforeCall(String query, String fields, Integer offset, Integer limit, String sortBy, String sortOrder, Boolean withRTs, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETWalletOperationList1Call(query, fields, offset, limit, sortBy, sortOrder, withRTs, _callback);
        return localVarCall;

    }

    /**
     *  List wallet operations matching a given criteria  
     *  List wallet operations matching a given criteria  
     * @param query  query Search criteria  (optional)
     * @param fields  fields Data retrieval options/fieldnames separated by a comma  (optional)
     * @param offset  offset Pagination - from record number  (optional)
     * @param limit  limit Pagination - number of records to retrieve  (optional)
     * @param sortBy  sortBy Sorting - field to sort by - a field from a main entity being searched. See Data model for a list of fields.  (optional, default to &quot;id&quot;)
     * @param sortOrder  sortOrder Sorting - sort order.  (optional, default to ASCENDING)
     * @param withRTs  withRTs RTs - option for the list  (optional, default to false)
     * @return FindWalletOperationsResponseDto
     * @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> 0 </td><td>  List of wallet operations  </td><td>  -  </td></tr>
     </table>
     */
    public FindWalletOperationsResponseDto gETWalletOperationList1(String query, String fields, Integer offset, Integer limit, String sortBy, String sortOrder, Boolean withRTs) throws ApiException {
        ApiResponse<FindWalletOperationsResponseDto> localVarResp = gETWalletOperationList1WithHttpInfo(query, fields, offset, limit, sortBy, sortOrder, withRTs);
        return localVarResp.getData();
    }

    /**
     *  List wallet operations matching a given criteria  
     *  List wallet operations matching a given criteria  
     * @param query  query Search criteria  (optional)
     * @param fields  fields Data retrieval options/fieldnames separated by a comma  (optional)
     * @param offset  offset Pagination - from record number  (optional)
     * @param limit  limit Pagination - number of records to retrieve  (optional)
     * @param sortBy  sortBy Sorting - field to sort by - a field from a main entity being searched. See Data model for a list of fields.  (optional, default to &quot;id&quot;)
     * @param sortOrder  sortOrder Sorting - sort order.  (optional, default to ASCENDING)
     * @param withRTs  withRTs RTs - option for the list  (optional, default to false)
     * @return ApiResponse&lt;FindWalletOperationsResponseDto&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> 0 </td><td>  List of wallet operations  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<FindWalletOperationsResponseDto> gETWalletOperationList1WithHttpInfo(String query, String fields, Integer offset, Integer limit, String sortBy, String sortOrder, Boolean withRTs) throws ApiException {
        okhttp3.Call localVarCall = gETWalletOperationList1ValidateBeforeCall(query, fields, offset, limit, sortBy, sortOrder, withRTs, null);
        Type localVarReturnType = new TypeToken<FindWalletOperationsResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  List wallet operations matching a given criteria   (asynchronously)
     *  List wallet operations matching a given criteria  
     * @param query  query Search criteria  (optional)
     * @param fields  fields Data retrieval options/fieldnames separated by a comma  (optional)
     * @param offset  offset Pagination - from record number  (optional)
     * @param limit  limit Pagination - number of records to retrieve  (optional)
     * @param sortBy  sortBy Sorting - field to sort by - a field from a main entity being searched. See Data model for a list of fields.  (optional, default to &quot;id&quot;)
     * @param sortOrder  sortOrder Sorting - sort order.  (optional, default to ASCENDING)
     * @param withRTs  withRTs RTs - option for the list  (optional, default to false)
     * @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> 0 </td><td>  List of wallet operations  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETWalletOperationList1Async(String query, String fields, Integer offset, Integer limit, String sortBy, String sortOrder, Boolean withRTs, final ApiCallback<FindWalletOperationsResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETWalletOperationList1ValidateBeforeCall(query, fields, offset, limit, sortBy, sortOrder, withRTs, _callback);
        Type localVarReturnType = new TypeToken<FindWalletOperationsResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETWalletTemplate1
     * @param walletTemplateCode  walletTemplateCode The wallet template&#39;s code  (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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  A wallet template  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETWalletTemplate1Call(String walletTemplateCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/billing/wallet/template";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        if (walletTemplateCode != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("walletTemplateCode", walletTemplateCode));
        }

        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

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

    @SuppressWarnings("rawtypes")
    private okhttp3.Call gETWalletTemplate1ValidateBeforeCall(String walletTemplateCode, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETWalletTemplate1Call(walletTemplateCode, _callback);
        return localVarCall;

    }

    /**
     *  Search for a wallet template with a given code  
     *  Search for a wallet template with a given code  
     * @param walletTemplateCode  walletTemplateCode The wallet template&#39;s code  (optional)
     * @return GetWalletTemplateResponseDto
     * @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> 0 </td><td>  A wallet template  </td><td>  -  </td></tr>
     </table>
     */
    public GetWalletTemplateResponseDto gETWalletTemplate1(String walletTemplateCode) throws ApiException {
        ApiResponse<GetWalletTemplateResponseDto> localVarResp = gETWalletTemplate1WithHttpInfo(walletTemplateCode);
        return localVarResp.getData();
    }

    /**
     *  Search for a wallet template with a given code  
     *  Search for a wallet template with a given code  
     * @param walletTemplateCode  walletTemplateCode The wallet template&#39;s code  (optional)
     * @return ApiResponse&lt;GetWalletTemplateResponseDto&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> 0 </td><td>  A wallet template  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<GetWalletTemplateResponseDto> gETWalletTemplate1WithHttpInfo(String walletTemplateCode) throws ApiException {
        okhttp3.Call localVarCall = gETWalletTemplate1ValidateBeforeCall(walletTemplateCode, null);
        Type localVarReturnType = new TypeToken<GetWalletTemplateResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Search for a wallet template with a given code   (asynchronously)
     *  Search for a wallet template with a given code  
     * @param walletTemplateCode  walletTemplateCode The wallet template&#39;s code  (optional)
     * @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> 0 </td><td>  A wallet template  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETWalletTemplate1Async(String walletTemplateCode, final ApiCallback<GetWalletTemplateResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETWalletTemplate1ValidateBeforeCall(walletTemplateCode, _callback);
        Type localVarReturnType = new TypeToken<GetWalletTemplateResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTWalletBalanceCurrent1
     * @param walletBalanceDto  calculateParameters Wallet balance calculation eters  (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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status and balance amounts  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTWalletBalanceCurrent1Call(WalletBalanceDto walletBalanceDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = walletBalanceDto;

        // create path and map variables
        String localVarPath = "/billing/wallet/balance/current";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            "application/json", "application/xml"
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

        String[] localVarAuthNames = new String[] { "auth" };
        return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call pOSTWalletBalanceCurrent1ValidateBeforeCall(WalletBalanceDto walletBalanceDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTWalletBalanceCurrent1Call(walletBalanceDto, _callback);
        return localVarCall;

    }

    /**
     *  Gets the current (open or reserved) wallet balance amount at a given level and date period. In wallet operation, status&#x3D;&#39;OPEN OR RESERVED&#39;.  
     *  Gets the current (open or reserved) wallet balance amount at a given level and date period. In wallet operation, status&#x3D;&#39;OPEN OR RESERVED&#39;.  
     * @param walletBalanceDto  calculateParameters Wallet balance calculation eters  (optional)
     * @return WalletBalanceResponseDto
     * @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> 0 </td><td>  Request processing status and balance amounts  </td><td>  -  </td></tr>
     </table>
     */
    public WalletBalanceResponseDto pOSTWalletBalanceCurrent1(WalletBalanceDto walletBalanceDto) throws ApiException {
        ApiResponse<WalletBalanceResponseDto> localVarResp = pOSTWalletBalanceCurrent1WithHttpInfo(walletBalanceDto);
        return localVarResp.getData();
    }

    /**
     *  Gets the current (open or reserved) wallet balance amount at a given level and date period. In wallet operation, status&#x3D;&#39;OPEN OR RESERVED&#39;.  
     *  Gets the current (open or reserved) wallet balance amount at a given level and date period. In wallet operation, status&#x3D;&#39;OPEN OR RESERVED&#39;.  
     * @param walletBalanceDto  calculateParameters Wallet balance calculation eters  (optional)
     * @return ApiResponse&lt;WalletBalanceResponseDto&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> 0 </td><td>  Request processing status and balance amounts  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<WalletBalanceResponseDto> pOSTWalletBalanceCurrent1WithHttpInfo(WalletBalanceDto walletBalanceDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTWalletBalanceCurrent1ValidateBeforeCall(walletBalanceDto, null);
        Type localVarReturnType = new TypeToken<WalletBalanceResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Gets the current (open or reserved) wallet balance amount at a given level and date period. In wallet operation, status&#x3D;&#39;OPEN OR RESERVED&#39;.   (asynchronously)
     *  Gets the current (open or reserved) wallet balance amount at a given level and date period. In wallet operation, status&#x3D;&#39;OPEN OR RESERVED&#39;.  
     * @param walletBalanceDto  calculateParameters Wallet balance calculation eters  (optional)
     * @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> 0 </td><td>  Request processing status and balance amounts  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTWalletBalanceCurrent1Async(WalletBalanceDto walletBalanceDto, final ApiCallback<WalletBalanceResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTWalletBalanceCurrent1ValidateBeforeCall(walletBalanceDto, _callback);
        Type localVarReturnType = new TypeToken<WalletBalanceResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTWalletBalanceOpen1
     * @param walletBalanceDto  calculateParameters Wallet balance calculation eters  (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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status and balance amounts status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTWalletBalanceOpen1Call(WalletBalanceDto walletBalanceDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = walletBalanceDto;

        // create path and map variables
        String localVarPath = "/billing/wallet/balance/open";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            "application/json", "application/xml"
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

        String[] localVarAuthNames = new String[] { "auth" };
        return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call pOSTWalletBalanceOpen1ValidateBeforeCall(WalletBalanceDto walletBalanceDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTWalletBalanceOpen1Call(walletBalanceDto, _callback);
        return localVarCall;

    }

    /**
     *  Gets the open wallet balance amount at a given level and date period. In wallet operation, status&#x3D;&#39;OPEN&#39;.  
     *  Gets the open wallet balance amount at a given level and date period. In wallet operation, status&#x3D;&#39;OPEN&#39;.  
     * @param walletBalanceDto  calculateParameters Wallet balance calculation eters  (optional)
     * @return WalletBalanceResponseDto
     * @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> 0 </td><td>  Request processing status and balance amounts status  </td><td>  -  </td></tr>
     </table>
     */
    public WalletBalanceResponseDto pOSTWalletBalanceOpen1(WalletBalanceDto walletBalanceDto) throws ApiException {
        ApiResponse<WalletBalanceResponseDto> localVarResp = pOSTWalletBalanceOpen1WithHttpInfo(walletBalanceDto);
        return localVarResp.getData();
    }

    /**
     *  Gets the open wallet balance amount at a given level and date period. In wallet operation, status&#x3D;&#39;OPEN&#39;.  
     *  Gets the open wallet balance amount at a given level and date period. In wallet operation, status&#x3D;&#39;OPEN&#39;.  
     * @param walletBalanceDto  calculateParameters Wallet balance calculation eters  (optional)
     * @return ApiResponse&lt;WalletBalanceResponseDto&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> 0 </td><td>  Request processing status and balance amounts status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<WalletBalanceResponseDto> pOSTWalletBalanceOpen1WithHttpInfo(WalletBalanceDto walletBalanceDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTWalletBalanceOpen1ValidateBeforeCall(walletBalanceDto, null);
        Type localVarReturnType = new TypeToken<WalletBalanceResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Gets the open wallet balance amount at a given level and date period. In wallet operation, status&#x3D;&#39;OPEN&#39;.   (asynchronously)
     *  Gets the open wallet balance amount at a given level and date period. In wallet operation, status&#x3D;&#39;OPEN&#39;.  
     * @param walletBalanceDto  calculateParameters Wallet balance calculation eters  (optional)
     * @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> 0 </td><td>  Request processing status and balance amounts status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTWalletBalanceOpen1Async(WalletBalanceDto walletBalanceDto, final ApiCallback<WalletBalanceResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTWalletBalanceOpen1ValidateBeforeCall(walletBalanceDto, _callback);
        Type localVarReturnType = new TypeToken<WalletBalanceResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTWalletBalanceReserved1
     * @param walletBalanceDto  calculateParameters Wallet balance calculation eters  (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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status and balance amounts  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTWalletBalanceReserved1Call(WalletBalanceDto walletBalanceDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = walletBalanceDto;

        // create path and map variables
        String localVarPath = "/billing/wallet/balance/reserved";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            "application/json", "application/xml"
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

        String[] localVarAuthNames = new String[] { "auth" };
        return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call pOSTWalletBalanceReserved1ValidateBeforeCall(WalletBalanceDto walletBalanceDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTWalletBalanceReserved1Call(walletBalanceDto, _callback);
        return localVarCall;

    }

    /**
     *  Gets the reserved wallet balance amount at a given level and date period. In wallet operation, status&#x3D;&#39;RESERVED&#39;.  
     *  Gets the reserved wallet balance amount at a given level and date period. In wallet operation, status&#x3D;&#39;RESERVED&#39;.  
     * @param walletBalanceDto  calculateParameters Wallet balance calculation eters  (optional)
     * @return WalletBalanceResponseDto
     * @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> 0 </td><td>  Request processing status and balance amounts  </td><td>  -  </td></tr>
     </table>
     */
    public WalletBalanceResponseDto pOSTWalletBalanceReserved1(WalletBalanceDto walletBalanceDto) throws ApiException {
        ApiResponse<WalletBalanceResponseDto> localVarResp = pOSTWalletBalanceReserved1WithHttpInfo(walletBalanceDto);
        return localVarResp.getData();
    }

    /**
     *  Gets the reserved wallet balance amount at a given level and date period. In wallet operation, status&#x3D;&#39;RESERVED&#39;.  
     *  Gets the reserved wallet balance amount at a given level and date period. In wallet operation, status&#x3D;&#39;RESERVED&#39;.  
     * @param walletBalanceDto  calculateParameters Wallet balance calculation eters  (optional)
     * @return ApiResponse&lt;WalletBalanceResponseDto&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> 0 </td><td>  Request processing status and balance amounts  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<WalletBalanceResponseDto> pOSTWalletBalanceReserved1WithHttpInfo(WalletBalanceDto walletBalanceDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTWalletBalanceReserved1ValidateBeforeCall(walletBalanceDto, null);
        Type localVarReturnType = new TypeToken<WalletBalanceResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Gets the reserved wallet balance amount at a given level and date period. In wallet operation, status&#x3D;&#39;RESERVED&#39;.   (asynchronously)
     *  Gets the reserved wallet balance amount at a given level and date period. In wallet operation, status&#x3D;&#39;RESERVED&#39;.  
     * @param walletBalanceDto  calculateParameters Wallet balance calculation eters  (optional)
     * @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> 0 </td><td>  Request processing status and balance amounts  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTWalletBalanceReserved1Async(WalletBalanceDto walletBalanceDto, final ApiCallback<WalletBalanceResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTWalletBalanceReserved1ValidateBeforeCall(walletBalanceDto, _callback);
        Type localVarReturnType = new TypeToken<WalletBalanceResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTWalletOperation1
     * @param walletOperationDto  postData The operation&#39;s data  (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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTWalletOperation1Call(WalletOperationDto walletOperationDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = walletOperationDto;

        // create path and map variables
        String localVarPath = "/billing/wallet/operation";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            "application/json", "application/xml"
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

        String[] localVarAuthNames = new String[] { "auth" };
        return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call pOSTWalletOperation1ValidateBeforeCall(WalletOperationDto walletOperationDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTWalletOperation1Call(walletOperationDto, _callback);
        return localVarCall;

    }

    /**
     *  Create a new operation  
     *  Create a new operation  
     * @param walletOperationDto  postData The operation&#39;s data  (optional)
     * @return ActionStatus
     * @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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus pOSTWalletOperation1(WalletOperationDto walletOperationDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTWalletOperation1WithHttpInfo(walletOperationDto);
        return localVarResp.getData();
    }

    /**
     *  Create a new operation  
     *  Create a new operation  
     * @param walletOperationDto  postData The operation&#39;s data  (optional)
     * @return ApiResponse&lt;ActionStatus&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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> pOSTWalletOperation1WithHttpInfo(WalletOperationDto walletOperationDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTWalletOperation1ValidateBeforeCall(walletOperationDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create a new operation   (asynchronously)
     *  Create a new operation  
     * @param walletOperationDto  postData The operation&#39;s data  (optional)
     * @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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTWalletOperation1Async(WalletOperationDto walletOperationDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTWalletOperation1ValidateBeforeCall(walletOperationDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTWalletOperationFind1
     * @param offset  offset Pagination - from record number  (optional)
     * @param limit  limit Pagination - number of records to retrieve  (optional)
     * @param sortBy  sortBy Sorting - field to sort by - a field from a main entity being searched. See Data model for a list of fields.  (optional, default to &quot;id&quot;)
     * @param sortOrder  sortOrder Sorting - sort order.  (optional, default to ASCENDING)
     * @param findWalletOperationsDto  postData The operation&#39;s data (FindWalletOperationsDto)  (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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  List of wallet operations  </td><td>  -  </td></tr>
     </table>
     * @deprecated
     */
    @Deprecated
    public okhttp3.Call pOSTWalletOperationFind1Call(Integer offset, Integer limit, String sortBy, String sortOrder, FindWalletOperationsDto findWalletOperationsDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = findWalletOperationsDto;

        // create path and map variables
        String localVarPath = "/billing/wallet/operation/find";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        if (offset != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset));
        }

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

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

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

        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            "application/json", "application/xml"
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

        String[] localVarAuthNames = new String[] { "auth" };
        return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

    @Deprecated
    @SuppressWarnings("rawtypes")
    private okhttp3.Call pOSTWalletOperationFind1ValidateBeforeCall(Integer offset, Integer limit, String sortBy, String sortOrder, FindWalletOperationsDto findWalletOperationsDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTWalletOperationFind1Call(offset, limit, sortBy, sortOrder, findWalletOperationsDto, _callback);
        return localVarCall;

    }

    /**
     *  Search for an operation with a given (example) code. Deprecated in v.4.7.2  
     *  Search for an operation with a given (example) code. Deprecated in v.4.7.2  
     * @param offset  offset Pagination - from record number  (optional)
     * @param limit  limit Pagination - number of records to retrieve  (optional)
     * @param sortBy  sortBy Sorting - field to sort by - a field from a main entity being searched. See Data model for a list of fields.  (optional, default to &quot;id&quot;)
     * @param sortOrder  sortOrder Sorting - sort order.  (optional, default to ASCENDING)
     * @param findWalletOperationsDto  postData The operation&#39;s data (FindWalletOperationsDto)  (optional)
     * @return FindWalletOperationsResponseDto
     * @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> 0 </td><td>  List of wallet operations  </td><td>  -  </td></tr>
     </table>
     * @deprecated
     */
    @Deprecated
    public FindWalletOperationsResponseDto pOSTWalletOperationFind1(Integer offset, Integer limit, String sortBy, String sortOrder, FindWalletOperationsDto findWalletOperationsDto) throws ApiException {
        ApiResponse<FindWalletOperationsResponseDto> localVarResp = pOSTWalletOperationFind1WithHttpInfo(offset, limit, sortBy, sortOrder, findWalletOperationsDto);
        return localVarResp.getData();
    }

    /**
     *  Search for an operation with a given (example) code. Deprecated in v.4.7.2  
     *  Search for an operation with a given (example) code. Deprecated in v.4.7.2  
     * @param offset  offset Pagination - from record number  (optional)
     * @param limit  limit Pagination - number of records to retrieve  (optional)
     * @param sortBy  sortBy Sorting - field to sort by - a field from a main entity being searched. See Data model for a list of fields.  (optional, default to &quot;id&quot;)
     * @param sortOrder  sortOrder Sorting - sort order.  (optional, default to ASCENDING)
     * @param findWalletOperationsDto  postData The operation&#39;s data (FindWalletOperationsDto)  (optional)
     * @return ApiResponse&lt;FindWalletOperationsResponseDto&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> 0 </td><td>  List of wallet operations  </td><td>  -  </td></tr>
     </table>
     * @deprecated
     */
    @Deprecated
    public ApiResponse<FindWalletOperationsResponseDto> pOSTWalletOperationFind1WithHttpInfo(Integer offset, Integer limit, String sortBy, String sortOrder, FindWalletOperationsDto findWalletOperationsDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTWalletOperationFind1ValidateBeforeCall(offset, limit, sortBy, sortOrder, findWalletOperationsDto, null);
        Type localVarReturnType = new TypeToken<FindWalletOperationsResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Search for an operation with a given (example) code. Deprecated in v.4.7.2   (asynchronously)
     *  Search for an operation with a given (example) code. Deprecated in v.4.7.2  
     * @param offset  offset Pagination - from record number  (optional)
     * @param limit  limit Pagination - number of records to retrieve  (optional)
     * @param sortBy  sortBy Sorting - field to sort by - a field from a main entity being searched. See Data model for a list of fields.  (optional, default to &quot;id&quot;)
     * @param sortOrder  sortOrder Sorting - sort order.  (optional, default to ASCENDING)
     * @param findWalletOperationsDto  postData The operation&#39;s data (FindWalletOperationsDto)  (optional)
     * @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> 0 </td><td>  List of wallet operations  </td><td>  -  </td></tr>
     </table>
     * @deprecated
     */
    @Deprecated
    public okhttp3.Call pOSTWalletOperationFind1Async(Integer offset, Integer limit, String sortBy, String sortOrder, FindWalletOperationsDto findWalletOperationsDto, final ApiCallback<FindWalletOperationsResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTWalletOperationFind1ValidateBeforeCall(offset, limit, sortBy, sortOrder, findWalletOperationsDto, _callback);
        Type localVarReturnType = new TypeToken<FindWalletOperationsResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTWalletOperationList1
     * @param withRTs  withRTs RTs - option for the list  (optional, default to false)
     * @param pagingAndFiltering  pagingAndFiltering Pagination and filtering criteria  (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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  List of wallet operations  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTWalletOperationList1Call(Boolean withRTs, PagingAndFiltering pagingAndFiltering, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = pagingAndFiltering;

        // create path and map variables
        String localVarPath = "/billing/wallet/operation/list";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        if (withRTs != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("withRTs", withRTs));
        }

        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            "application/json", "application/xml"
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

        String[] localVarAuthNames = new String[] { "auth" };
        return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call pOSTWalletOperationList1ValidateBeforeCall(Boolean withRTs, PagingAndFiltering pagingAndFiltering, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTWalletOperationList1Call(withRTs, pagingAndFiltering, _callback);
        return localVarCall;

    }

    /**
     *  List wallet operations matching a given criteria  
     *  List wallet operations matching a given criteria  
     * @param withRTs  withRTs RTs - option for the list  (optional, default to false)
     * @param pagingAndFiltering  pagingAndFiltering Pagination and filtering criteria  (optional)
     * @return FindWalletOperationsResponseDto
     * @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> 0 </td><td>  List of wallet operations  </td><td>  -  </td></tr>
     </table>
     */
    public FindWalletOperationsResponseDto pOSTWalletOperationList1(Boolean withRTs, PagingAndFiltering pagingAndFiltering) throws ApiException {
        ApiResponse<FindWalletOperationsResponseDto> localVarResp = pOSTWalletOperationList1WithHttpInfo(withRTs, pagingAndFiltering);
        return localVarResp.getData();
    }

    /**
     *  List wallet operations matching a given criteria  
     *  List wallet operations matching a given criteria  
     * @param withRTs  withRTs RTs - option for the list  (optional, default to false)
     * @param pagingAndFiltering  pagingAndFiltering Pagination and filtering criteria  (optional)
     * @return ApiResponse&lt;FindWalletOperationsResponseDto&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> 0 </td><td>  List of wallet operations  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<FindWalletOperationsResponseDto> pOSTWalletOperationList1WithHttpInfo(Boolean withRTs, PagingAndFiltering pagingAndFiltering) throws ApiException {
        okhttp3.Call localVarCall = pOSTWalletOperationList1ValidateBeforeCall(withRTs, pagingAndFiltering, null);
        Type localVarReturnType = new TypeToken<FindWalletOperationsResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  List wallet operations matching a given criteria   (asynchronously)
     *  List wallet operations matching a given criteria  
     * @param withRTs  withRTs RTs - option for the list  (optional, default to false)
     * @param pagingAndFiltering  pagingAndFiltering Pagination and filtering criteria  (optional)
     * @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> 0 </td><td>  List of wallet operations  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTWalletOperationList1Async(Boolean withRTs, PagingAndFiltering pagingAndFiltering, final ApiCallback<FindWalletOperationsResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTWalletOperationList1ValidateBeforeCall(withRTs, pagingAndFiltering, _callback);
        Type localVarReturnType = new TypeToken<FindWalletOperationsResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTWalletReservation1
     * @param walletReservationDto  postData The reservation&#39;s data  (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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTWalletReservation1Call(WalletReservationDto walletReservationDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = walletReservationDto;

        // create path and map variables
        String localVarPath = "/billing/wallet/reservation";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            "application/json", "application/xml"
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

        String[] localVarAuthNames = new String[] { "auth" };
        return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call pOSTWalletReservation1ValidateBeforeCall(WalletReservationDto walletReservationDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTWalletReservation1Call(walletReservationDto, _callback);
        return localVarCall;

    }

    /**
     *  Create reservation for a given offer, user account, seller, provider and date.  
     *  Create reservation for a given offer, user account, seller, provider and date.  
     * @param walletReservationDto  postData The reservation&#39;s data  (optional)
     * @return ActionStatus
     * @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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus pOSTWalletReservation1(WalletReservationDto walletReservationDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTWalletReservation1WithHttpInfo(walletReservationDto);
        return localVarResp.getData();
    }

    /**
     *  Create reservation for a given offer, user account, seller, provider and date.  
     *  Create reservation for a given offer, user account, seller, provider and date.  
     * @param walletReservationDto  postData The reservation&#39;s data  (optional)
     * @return ApiResponse&lt;ActionStatus&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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> pOSTWalletReservation1WithHttpInfo(WalletReservationDto walletReservationDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTWalletReservation1ValidateBeforeCall(walletReservationDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create reservation for a given offer, user account, seller, provider and date.   (asynchronously)
     *  Create reservation for a given offer, user account, seller, provider and date.  
     * @param walletReservationDto  postData The reservation&#39;s data  (optional)
     * @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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTWalletReservation1Async(WalletReservationDto walletReservationDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTWalletReservation1ValidateBeforeCall(walletReservationDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTWalletReservationConfirm1
     * @param walletReservationDto  postData The reservation&#39;s id  (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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTWalletReservationConfirm1Call(WalletReservationDto walletReservationDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = walletReservationDto;

        // create path and map variables
        String localVarPath = "/billing/wallet/reservation/confirm";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            "application/json", "application/xml"
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

        String[] localVarAuthNames = new String[] { "auth" };
        return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call pOSTWalletReservationConfirm1ValidateBeforeCall(WalletReservationDto walletReservationDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTWalletReservationConfirm1Call(walletReservationDto, _callback);
        return localVarCall;

    }

    /**
     *  Confirm a reservation given an id.  
     *  Confirm a reservation given an id.  
     * @param walletReservationDto  postData The reservation&#39;s id  (optional)
     * @return ActionStatus
     * @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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus pOSTWalletReservationConfirm1(WalletReservationDto walletReservationDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTWalletReservationConfirm1WithHttpInfo(walletReservationDto);
        return localVarResp.getData();
    }

    /**
     *  Confirm a reservation given an id.  
     *  Confirm a reservation given an id.  
     * @param walletReservationDto  postData The reservation&#39;s id  (optional)
     * @return ApiResponse&lt;ActionStatus&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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> pOSTWalletReservationConfirm1WithHttpInfo(WalletReservationDto walletReservationDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTWalletReservationConfirm1ValidateBeforeCall(walletReservationDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Confirm a reservation given an id.   (asynchronously)
     *  Confirm a reservation given an id.  
     * @param walletReservationDto  postData The reservation&#39;s id  (optional)
     * @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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTWalletReservationConfirm1Async(WalletReservationDto walletReservationDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTWalletReservationConfirm1ValidateBeforeCall(walletReservationDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTWalletTemplate1
     * @param walletTemplateDto  postData The wallet template&#39;s data  (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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTWalletTemplate1Call(WalletTemplateDto walletTemplateDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = walletTemplateDto;

        // create path and map variables
        String localVarPath = "/billing/wallet/template";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            "application/json", "application/xml"
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

        String[] localVarAuthNames = new String[] { "auth" };
        return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call pOSTWalletTemplate1ValidateBeforeCall(WalletTemplateDto walletTemplateDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTWalletTemplate1Call(walletTemplateDto, _callback);
        return localVarCall;

    }

    /**
     *  Create a new wallet template  
     *  Create a new wallet template  
     * @param walletTemplateDto  postData The wallet template&#39;s data  (optional)
     * @return ActionStatus
     * @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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus pOSTWalletTemplate1(WalletTemplateDto walletTemplateDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTWalletTemplate1WithHttpInfo(walletTemplateDto);
        return localVarResp.getData();
    }

    /**
     *  Create a new wallet template  
     *  Create a new wallet template  
     * @param walletTemplateDto  postData The wallet template&#39;s data  (optional)
     * @return ApiResponse&lt;ActionStatus&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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> pOSTWalletTemplate1WithHttpInfo(WalletTemplateDto walletTemplateDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTWalletTemplate1ValidateBeforeCall(walletTemplateDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create a new wallet template   (asynchronously)
     *  Create a new wallet template  
     * @param walletTemplateDto  postData The wallet template&#39;s data  (optional)
     * @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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTWalletTemplate1Async(WalletTemplateDto walletTemplateDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTWalletTemplate1ValidateBeforeCall(walletTemplateDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTWalletTemplateCreateOrUpdate1
     * @param walletTemplateDto  postData The wallet template&#39;s data  (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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTWalletTemplateCreateOrUpdate1Call(WalletTemplateDto walletTemplateDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = walletTemplateDto;

        // create path and map variables
        String localVarPath = "/billing/wallet/template/createOrUpdate";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            "application/json", "application/xml"
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

        String[] localVarAuthNames = new String[] { "auth" };
        return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call pOSTWalletTemplateCreateOrUpdate1ValidateBeforeCall(WalletTemplateDto walletTemplateDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTWalletTemplateCreateOrUpdate1Call(walletTemplateDto, _callback);
        return localVarCall;

    }

    /**
     *  Create new or update an existing wallet template  
     *  Create new or update an existing wallet template  
     * @param walletTemplateDto  postData The wallet template&#39;s data  (optional)
     * @return ActionStatus
     * @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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus pOSTWalletTemplateCreateOrUpdate1(WalletTemplateDto walletTemplateDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTWalletTemplateCreateOrUpdate1WithHttpInfo(walletTemplateDto);
        return localVarResp.getData();
    }

    /**
     *  Create new or update an existing wallet template  
     *  Create new or update an existing wallet template  
     * @param walletTemplateDto  postData The wallet template&#39;s data  (optional)
     * @return ApiResponse&lt;ActionStatus&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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> pOSTWalletTemplateCreateOrUpdate1WithHttpInfo(WalletTemplateDto walletTemplateDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTWalletTemplateCreateOrUpdate1ValidateBeforeCall(walletTemplateDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create new or update an existing wallet template   (asynchronously)
     *  Create new or update an existing wallet template  
     * @param walletTemplateDto  postData The wallet template&#39;s data  (optional)
     * @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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTWalletTemplateCreateOrUpdate1Async(WalletTemplateDto walletTemplateDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTWalletTemplateCreateOrUpdate1ValidateBeforeCall(walletTemplateDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pUTWalletReservation1
     * @param walletReservationDto  postData The reservation&#39;s data  (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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pUTWalletReservation1Call(WalletReservationDto walletReservationDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = walletReservationDto;

        // create path and map variables
        String localVarPath = "/billing/wallet/reservation";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            "application/json", "application/xml"
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

        String[] localVarAuthNames = new String[] { "auth" };
        return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call pUTWalletReservation1ValidateBeforeCall(WalletReservationDto walletReservationDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pUTWalletReservation1Call(walletReservationDto, _callback);
        return localVarCall;

    }

    /**
     *  Updates a reservation. Same as create we just need to pass the id of the reservation.  
     *  Updates a reservation. Same as create we just need to pass the id of the reservation.  
     * @param walletReservationDto  postData The reservation&#39;s data  (optional)
     * @return ActionStatus
     * @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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus pUTWalletReservation1(WalletReservationDto walletReservationDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pUTWalletReservation1WithHttpInfo(walletReservationDto);
        return localVarResp.getData();
    }

    /**
     *  Updates a reservation. Same as create we just need to pass the id of the reservation.  
     *  Updates a reservation. Same as create we just need to pass the id of the reservation.  
     * @param walletReservationDto  postData The reservation&#39;s data  (optional)
     * @return ApiResponse&lt;ActionStatus&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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> pUTWalletReservation1WithHttpInfo(WalletReservationDto walletReservationDto) throws ApiException {
        okhttp3.Call localVarCall = pUTWalletReservation1ValidateBeforeCall(walletReservationDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Updates a reservation. Same as create we just need to pass the id of the reservation.   (asynchronously)
     *  Updates a reservation. Same as create we just need to pass the id of the reservation.  
     * @param walletReservationDto  postData The reservation&#39;s data  (optional)
     * @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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pUTWalletReservation1Async(WalletReservationDto walletReservationDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pUTWalletReservation1ValidateBeforeCall(walletReservationDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pUTWalletTemplate1
     * @param walletTemplateDto  postData The wallet template&#39;s data  (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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pUTWalletTemplate1Call(WalletTemplateDto walletTemplateDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = walletTemplateDto;

        // create path and map variables
        String localVarPath = "/billing/wallet/template";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            "application/json", "application/xml"
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

        String[] localVarAuthNames = new String[] { "auth" };
        return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call pUTWalletTemplate1ValidateBeforeCall(WalletTemplateDto walletTemplateDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pUTWalletTemplate1Call(walletTemplateDto, _callback);
        return localVarCall;

    }

    /**
     *  Update an existing wallet template  
     *  Update an existing wallet template  
     * @param walletTemplateDto  postData The wallet template&#39;s data  (optional)
     * @return ActionStatus
     * @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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus pUTWalletTemplate1(WalletTemplateDto walletTemplateDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pUTWalletTemplate1WithHttpInfo(walletTemplateDto);
        return localVarResp.getData();
    }

    /**
     *  Update an existing wallet template  
     *  Update an existing wallet template  
     * @param walletTemplateDto  postData The wallet template&#39;s data  (optional)
     * @return ApiResponse&lt;ActionStatus&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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> pUTWalletTemplate1WithHttpInfo(WalletTemplateDto walletTemplateDto) throws ApiException {
        okhttp3.Call localVarCall = pUTWalletTemplate1ValidateBeforeCall(walletTemplateDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Update an existing wallet template   (asynchronously)
     *  Update an existing wallet template  
     * @param walletTemplateDto  postData The wallet template&#39;s data  (optional)
     * @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> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pUTWalletTemplate1Async(WalletTemplateDto walletTemplateDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pUTWalletTemplate1ValidateBeforeCall(walletTemplateDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for user16
     * @param _callback Callback for upload/download progress
     * @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> 0 </td><td> default response </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call user16Call(final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/billing/wallet/user";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

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

    @SuppressWarnings("rawtypes")
    private okhttp3.Call user16ValidateBeforeCall(final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = user16Call(_callback);
        return localVarCall;

    }

    /**
     * 
     * 
     * @return ActionStatus
     * @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> 0 </td><td> default response </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus user16() throws ApiException {
        ApiResponse<ActionStatus> localVarResp = user16WithHttpInfo();
        return localVarResp.getData();
    }

    /**
     * 
     * 
     * @return ApiResponse&lt;ActionStatus&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> 0 </td><td> default response </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> user16WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = user16ValidateBeforeCall(null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  (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> 0 </td><td> default response </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call user16Async(final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = user16ValidateBeforeCall(_callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
}
