/*
 * 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.ApplyProductRequestDto;
import org.openapitools.client.model.GetCountersInstancesResponseDto;
import org.openapitools.client.model.GetUserAccountResponseDto;
import org.threeten.bp.OffsetDateTime;
import org.openapitools.client.model.UserAccountDto;
import org.openapitools.client.model.UserAccountsResponseDto;

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

public class UserAccountApi {
    private ApiClient localVarApiClient;

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

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

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

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

    /**
     * Build call for dELETEUserAccountUserAccountCode1
     * @param userAccountCode  userAccountCode The user account&#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 dELETEUserAccountUserAccountCode1Call(String userAccountCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/account/userAccount/{userAccountCode}"
            .replaceAll("\\{" + "userAccountCode" + "\\}", localVarApiClient.escapeString(userAccountCode.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 dELETEUserAccountUserAccountCode1ValidateBeforeCall(String userAccountCode, final ApiCallback _callback) throws ApiException {
        
        // verify the required parameter 'userAccountCode' is set
        if (userAccountCode == null) {
            throw new ApiException("Missing the required parameter 'userAccountCode' when calling dELETEUserAccountUserAccountCode1(Async)");
        }
        

        okhttp3.Call localVarCall = dELETEUserAccountUserAccountCode1Call(userAccountCode, _callback);
        return localVarCall;

    }

    /**
     *  Remove an existing user account with a given code.  
     *  Remove an existing user account with a given code.  
     * @param userAccountCode  userAccountCode The user account&#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 dELETEUserAccountUserAccountCode1(String userAccountCode) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = dELETEUserAccountUserAccountCode1WithHttpInfo(userAccountCode);
        return localVarResp.getData();
    }

    /**
     *  Remove an existing user account with a given code.  
     *  Remove an existing user account with a given code.  
     * @param userAccountCode  userAccountCode The user account&#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> dELETEUserAccountUserAccountCode1WithHttpInfo(String userAccountCode) throws ApiException {
        okhttp3.Call localVarCall = dELETEUserAccountUserAccountCode1ValidateBeforeCall(userAccountCode, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Remove an existing user account with a given code.   (asynchronously)
     *  Remove an existing user account with a given code.  
     * @param userAccountCode  userAccountCode The user account&#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 dELETEUserAccountUserAccountCode1Async(String userAccountCode, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = dELETEUserAccountUserAccountCode1ValidateBeforeCall(userAccountCode, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETIBaseVersion33
     * @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 gETIBaseVersion33Call(final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/account/userAccount/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 gETIBaseVersion33ValidateBeforeCall(final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETIBaseVersion33Call(_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 gETIBaseVersion33() throws ApiException {
        ApiResponse<ActionStatus> localVarResp = gETIBaseVersion33WithHttpInfo();
        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> gETIBaseVersion33WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = gETIBaseVersion33ValidateBeforeCall(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 gETIBaseVersion33Async(final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETIBaseVersion33ValidateBeforeCall(_callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETUserAccountFilterCountersByPeriod1
     * @param userAccountCode  userAccountCode The user account&#39;s code  (optional)
     * @param date  date The date corresponding to the period  (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>  counter instances.  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETUserAccountFilterCountersByPeriod1Call(String userAccountCode, OffsetDateTime date, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/account/userAccount/filterCountersByPeriod";

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

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

        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 gETUserAccountFilterCountersByPeriod1ValidateBeforeCall(String userAccountCode, OffsetDateTime date, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETUserAccountFilterCountersByPeriod1Call(userAccountCode, date, _callback);
        return localVarCall;

    }

    /**
     *  Filter counters by period date. 
     *  Filter counters by period date. 
     * @param userAccountCode  userAccountCode The user account&#39;s code  (optional)
     * @param date  date The date corresponding to the period  (optional)
     * @return GetCountersInstancesResponseDto
     * @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>  counter instances.  </td><td>  -  </td></tr>
     </table>
     */
    public GetCountersInstancesResponseDto gETUserAccountFilterCountersByPeriod1(String userAccountCode, OffsetDateTime date) throws ApiException {
        ApiResponse<GetCountersInstancesResponseDto> localVarResp = gETUserAccountFilterCountersByPeriod1WithHttpInfo(userAccountCode, date);
        return localVarResp.getData();
    }

    /**
     *  Filter counters by period date. 
     *  Filter counters by period date. 
     * @param userAccountCode  userAccountCode The user account&#39;s code  (optional)
     * @param date  date The date corresponding to the period  (optional)
     * @return ApiResponse&lt;GetCountersInstancesResponseDto&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>  counter instances.  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<GetCountersInstancesResponseDto> gETUserAccountFilterCountersByPeriod1WithHttpInfo(String userAccountCode, OffsetDateTime date) throws ApiException {
        okhttp3.Call localVarCall = gETUserAccountFilterCountersByPeriod1ValidateBeforeCall(userAccountCode, date, null);
        Type localVarReturnType = new TypeToken<GetCountersInstancesResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Filter counters by period date.  (asynchronously)
     *  Filter counters by period date. 
     * @param userAccountCode  userAccountCode The user account&#39;s code  (optional)
     * @param date  date The date corresponding to the period  (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>  counter instances.  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETUserAccountFilterCountersByPeriod1Async(String userAccountCode, OffsetDateTime date, final ApiCallback<GetCountersInstancesResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETUserAccountFilterCountersByPeriod1ValidateBeforeCall(userAccountCode, date, _callback);
        Type localVarReturnType = new TypeToken<GetCountersInstancesResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETUserAccountList1
     * @param billingAccountCode  billingAccountCode The user billing account&#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>  list of user accounts.  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETUserAccountList1Call(String billingAccountCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/account/userAccount/list";

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

        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 gETUserAccountList1ValidateBeforeCall(String billingAccountCode, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETUserAccountList1Call(billingAccountCode, _callback);
        return localVarCall;

    }

    /**
     *  List user accounts filtered by a billing account&#39;s code.  
     *  List user accounts filtered by a billing account&#39;s code.  
     * @param billingAccountCode  billingAccountCode The user billing account&#39;s code  (optional)
     * @return UserAccountsResponseDto
     * @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 user accounts.  </td><td>  -  </td></tr>
     </table>
     */
    public UserAccountsResponseDto gETUserAccountList1(String billingAccountCode) throws ApiException {
        ApiResponse<UserAccountsResponseDto> localVarResp = gETUserAccountList1WithHttpInfo(billingAccountCode);
        return localVarResp.getData();
    }

    /**
     *  List user accounts filtered by a billing account&#39;s code.  
     *  List user accounts filtered by a billing account&#39;s code.  
     * @param billingAccountCode  billingAccountCode The user billing account&#39;s code  (optional)
     * @return ApiResponse&lt;UserAccountsResponseDto&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 user accounts.  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<UserAccountsResponseDto> gETUserAccountList1WithHttpInfo(String billingAccountCode) throws ApiException {
        okhttp3.Call localVarCall = gETUserAccountList1ValidateBeforeCall(billingAccountCode, null);
        Type localVarReturnType = new TypeToken<UserAccountsResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  List user accounts filtered by a billing account&#39;s code.   (asynchronously)
     *  List user accounts filtered by a billing account&#39;s code.  
     * @param billingAccountCode  billingAccountCode The user billing account&#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>  list of user accounts.  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETUserAccountList1Async(String billingAccountCode, final ApiCallback<UserAccountsResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETUserAccountList1ValidateBeforeCall(billingAccountCode, _callback);
        Type localVarReturnType = new TypeToken<UserAccountsResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETUserAccountSearch1
     * @param userAccountCode  userAccountCode user account code  (optional)
     * @param inheritCF  inheritCF Should inherited custom fields be retrieved. Defaults to INHERIT_NO_MERGE.  (optional, default to INHERIT_NO_MERGE)
     * @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>  found user account if exist  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETUserAccountSearch1Call(String userAccountCode, String inheritCF, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/account/userAccount";

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

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

        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 gETUserAccountSearch1ValidateBeforeCall(String userAccountCode, String inheritCF, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETUserAccountSearch1Call(userAccountCode, inheritCF, _callback);
        return localVarCall;

    }

    /**
     *  Search for a user account with a given code.  
     *  Search for a user account with a given code.  
     * @param userAccountCode  userAccountCode user account code  (optional)
     * @param inheritCF  inheritCF Should inherited custom fields be retrieved. Defaults to INHERIT_NO_MERGE.  (optional, default to INHERIT_NO_MERGE)
     * @return GetUserAccountResponseDto
     * @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>  found user account if exist  </td><td>  -  </td></tr>
     </table>
     */
    public GetUserAccountResponseDto gETUserAccountSearch1(String userAccountCode, String inheritCF) throws ApiException {
        ApiResponse<GetUserAccountResponseDto> localVarResp = gETUserAccountSearch1WithHttpInfo(userAccountCode, inheritCF);
        return localVarResp.getData();
    }

    /**
     *  Search for a user account with a given code.  
     *  Search for a user account with a given code.  
     * @param userAccountCode  userAccountCode user account code  (optional)
     * @param inheritCF  inheritCF Should inherited custom fields be retrieved. Defaults to INHERIT_NO_MERGE.  (optional, default to INHERIT_NO_MERGE)
     * @return ApiResponse&lt;GetUserAccountResponseDto&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>  found user account if exist  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<GetUserAccountResponseDto> gETUserAccountSearch1WithHttpInfo(String userAccountCode, String inheritCF) throws ApiException {
        okhttp3.Call localVarCall = gETUserAccountSearch1ValidateBeforeCall(userAccountCode, inheritCF, null);
        Type localVarReturnType = new TypeToken<GetUserAccountResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Search for a user account with a given code.   (asynchronously)
     *  Search for a user account with a given code.  
     * @param userAccountCode  userAccountCode user account code  (optional)
     * @param inheritCF  inheritCF Should inherited custom fields be retrieved. Defaults to INHERIT_NO_MERGE.  (optional, default to INHERIT_NO_MERGE)
     * @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>  found user account if exist  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETUserAccountSearch1Async(String userAccountCode, String inheritCF, final ApiCallback<GetUserAccountResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETUserAccountSearch1ValidateBeforeCall(userAccountCode, inheritCF, _callback);
        Type localVarReturnType = new TypeToken<GetUserAccountResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTUserAccountApplyProduct1
     * @param applyProductRequestDto  postData ApplyProductRequestDto userAccount field must be set  (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>  action status.  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTUserAccountApplyProduct1Call(ApplyProductRequestDto applyProductRequestDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = applyProductRequestDto;

        // create path and map variables
        String localVarPath = "/account/userAccount/applyProduct";

        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 pOSTUserAccountApplyProduct1ValidateBeforeCall(ApplyProductRequestDto applyProductRequestDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTUserAccountApplyProduct1Call(applyProductRequestDto, _callback);
        return localVarCall;

    }

    /**
     *  Apply a product on a user account. 
     *  Apply a product on a user account. 
     * @param applyProductRequestDto  postData ApplyProductRequestDto userAccount field must be set  (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>  action status.  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus pOSTUserAccountApplyProduct1(ApplyProductRequestDto applyProductRequestDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTUserAccountApplyProduct1WithHttpInfo(applyProductRequestDto);
        return localVarResp.getData();
    }

    /**
     *  Apply a product on a user account. 
     *  Apply a product on a user account. 
     * @param applyProductRequestDto  postData ApplyProductRequestDto userAccount field must be set  (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>  action status.  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> pOSTUserAccountApplyProduct1WithHttpInfo(ApplyProductRequestDto applyProductRequestDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTUserAccountApplyProduct1ValidateBeforeCall(applyProductRequestDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Apply a product on a user account.  (asynchronously)
     *  Apply a product on a user account. 
     * @param applyProductRequestDto  postData ApplyProductRequestDto userAccount field must be set  (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>  action status.  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTUserAccountApplyProduct1Async(ApplyProductRequestDto applyProductRequestDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTUserAccountApplyProduct1ValidateBeforeCall(applyProductRequestDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTUserAccountCreate1
     * @param userAccountDto  postData The user account&#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 pOSTUserAccountCreate1Call(UserAccountDto userAccountDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = userAccountDto;

        // create path and map variables
        String localVarPath = "/account/userAccount";

        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 pOSTUserAccountCreate1ValidateBeforeCall(UserAccountDto userAccountDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTUserAccountCreate1Call(userAccountDto, _callback);
        return localVarCall;

    }

    /**
     *  Create a new user account.  
     *  Create a new user account.  
     * @param userAccountDto  postData The user account&#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 pOSTUserAccountCreate1(UserAccountDto userAccountDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTUserAccountCreate1WithHttpInfo(userAccountDto);
        return localVarResp.getData();
    }

    /**
     *  Create a new user account.  
     *  Create a new user account.  
     * @param userAccountDto  postData The user account&#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> pOSTUserAccountCreate1WithHttpInfo(UserAccountDto userAccountDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTUserAccountCreate1ValidateBeforeCall(userAccountDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create a new user account.   (asynchronously)
     *  Create a new user account.  
     * @param userAccountDto  postData The user account&#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 pOSTUserAccountCreate1Async(UserAccountDto userAccountDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTUserAccountCreate1ValidateBeforeCall(userAccountDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTUserAccountCreateOrUpdate1
     * @param userAccountDto  postData The user account&#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 pOSTUserAccountCreateOrUpdate1Call(UserAccountDto userAccountDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = userAccountDto;

        // create path and map variables
        String localVarPath = "/account/userAccount/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 pOSTUserAccountCreateOrUpdate1ValidateBeforeCall(UserAccountDto userAccountDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTUserAccountCreateOrUpdate1Call(userAccountDto, _callback);
        return localVarCall;

    }

    /**
     *  Create new or update an existing user account.  
     *  Create new or update an existing user account.  
     * @param userAccountDto  postData The user account&#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 pOSTUserAccountCreateOrUpdate1(UserAccountDto userAccountDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTUserAccountCreateOrUpdate1WithHttpInfo(userAccountDto);
        return localVarResp.getData();
    }

    /**
     *  Create new or update an existing user account.  
     *  Create new or update an existing user account.  
     * @param userAccountDto  postData The user account&#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> pOSTUserAccountCreateOrUpdate1WithHttpInfo(UserAccountDto userAccountDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTUserAccountCreateOrUpdate1ValidateBeforeCall(userAccountDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create new or update an existing user account.   (asynchronously)
     *  Create new or update an existing user account.  
     * @param userAccountDto  postData The user account&#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 pOSTUserAccountCreateOrUpdate1Async(UserAccountDto userAccountDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTUserAccountCreateOrUpdate1ValidateBeforeCall(userAccountDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pUTUserAccountUpdate1
     * @param userAccountDto  postData The user account&#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 pUTUserAccountUpdate1Call(UserAccountDto userAccountDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = userAccountDto;

        // create path and map variables
        String localVarPath = "/account/userAccount";

        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 pUTUserAccountUpdate1ValidateBeforeCall(UserAccountDto userAccountDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pUTUserAccountUpdate1Call(userAccountDto, _callback);
        return localVarCall;

    }

    /**
     *  Update an existing user account  
     *  Update an existing user account  
     * @param userAccountDto  postData The user account&#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 pUTUserAccountUpdate1(UserAccountDto userAccountDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pUTUserAccountUpdate1WithHttpInfo(userAccountDto);
        return localVarResp.getData();
    }

    /**
     *  Update an existing user account  
     *  Update an existing user account  
     * @param userAccountDto  postData The user account&#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> pUTUserAccountUpdate1WithHttpInfo(UserAccountDto userAccountDto) throws ApiException {
        okhttp3.Call localVarCall = pUTUserAccountUpdate1ValidateBeforeCall(userAccountDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Update an existing user account   (asynchronously)
     *  Update an existing user account  
     * @param userAccountDto  postData The user account&#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 pUTUserAccountUpdate1Async(UserAccountDto userAccountDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pUTUserAccountUpdate1ValidateBeforeCall(userAccountDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for user9
     * @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 user9Call(final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/account/userAccount/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 user9ValidateBeforeCall(final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = user9Call(_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 user9() throws ApiException {
        ApiResponse<ActionStatus> localVarResp = user9WithHttpInfo();
        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> user9WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = user9ValidateBeforeCall(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 user9Async(final ApiCallback<ActionStatus> _callback) throws ApiException {

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