/*
 * 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.CreditCategoryDto;
import org.openapitools.client.model.CustomerAccountDto;
import org.openapitools.client.model.CustomerAccountsResponseDto;
import org.openapitools.client.model.GetCustomerAccountResponseDto;

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

public class CustomerAccountApi {
    private ApiClient localVarApiClient;

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

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

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

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

    /**
     * Build call for dELETECustomerAccountCreditCategoryCreditCategoryCode1
     * @param creditCategoryCode  creditCategoryCode The credit category&#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 dELETECustomerAccountCreditCategoryCreditCategoryCode1Call(String creditCategoryCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

        okhttp3.Call localVarCall = dELETECustomerAccountCreditCategoryCreditCategoryCode1Call(creditCategoryCode, _callback);
        return localVarCall;

    }

    /**
     *  Remove credit category with a given code.  
     *  Remove credit category with a given code.  
     * @param creditCategoryCode  creditCategoryCode The credit category&#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 dELETECustomerAccountCreditCategoryCreditCategoryCode1(String creditCategoryCode) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = dELETECustomerAccountCreditCategoryCreditCategoryCode1WithHttpInfo(creditCategoryCode);
        return localVarResp.getData();
    }

    /**
     *  Remove credit category with a given code.  
     *  Remove credit category with a given code.  
     * @param creditCategoryCode  creditCategoryCode The credit category&#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> dELETECustomerAccountCreditCategoryCreditCategoryCode1WithHttpInfo(String creditCategoryCode) throws ApiException {
        okhttp3.Call localVarCall = dELETECustomerAccountCreditCategoryCreditCategoryCode1ValidateBeforeCall(creditCategoryCode, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Remove credit category with a given code.   (asynchronously)
     *  Remove credit category with a given code.  
     * @param creditCategoryCode  creditCategoryCode The credit category&#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 dELETECustomerAccountCreditCategoryCreditCategoryCode1Async(String creditCategoryCode, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = dELETECustomerAccountCreditCategoryCreditCategoryCode1ValidateBeforeCall(creditCategoryCode, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for dELETECustomerAccountCustomerAccountCode1
     * @param customerAccountCode  customerAccountCode The customer 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 dELETECustomerAccountCustomerAccountCode1Call(String customerAccountCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

        okhttp3.Call localVarCall = dELETECustomerAccountCustomerAccountCode1Call(customerAccountCode, _callback);
        return localVarCall;

    }

    /**
     *  Remove customerAccount with a given code.  
     *  Remove customerAccount with a given code.  
     * @param customerAccountCode  customerAccountCode The customer 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 dELETECustomerAccountCustomerAccountCode1(String customerAccountCode) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = dELETECustomerAccountCustomerAccountCode1WithHttpInfo(customerAccountCode);
        return localVarResp.getData();
    }

    /**
     *  Remove customerAccount with a given code.  
     *  Remove customerAccount with a given code.  
     * @param customerAccountCode  customerAccountCode The customer 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> dELETECustomerAccountCustomerAccountCode1WithHttpInfo(String customerAccountCode) throws ApiException {
        okhttp3.Call localVarCall = dELETECustomerAccountCustomerAccountCode1ValidateBeforeCall(customerAccountCode, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Remove customerAccount with a given code.   (asynchronously)
     *  Remove customerAccount with a given code.  
     * @param customerAccountCode  customerAccountCode The customer 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 dELETECustomerAccountCustomerAccountCode1Async(String customerAccountCode, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = dELETECustomerAccountCustomerAccountCode1ValidateBeforeCall(customerAccountCode, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETCustomerAccountList1
     * @param customerCode  customerCode The customer 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 customer account by customer.  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETCustomerAccountList1Call(String customerCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

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

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

        okhttp3.Call localVarCall = gETCustomerAccountList1Call(customerCode, _callback);
        return localVarCall;

    }

    /**
     *  List CustomerAccount filtered by customerCode.  
     *  List CustomerAccount filtered by customerCode.  
     * @param customerCode  customerCode The customer account&#39;s code  (optional)
     * @return CustomerAccountsResponseDto
     * @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 customer account by customer.  </td><td>  -  </td></tr>
     </table>
     */
    public CustomerAccountsResponseDto gETCustomerAccountList1(String customerCode) throws ApiException {
        ApiResponse<CustomerAccountsResponseDto> localVarResp = gETCustomerAccountList1WithHttpInfo(customerCode);
        return localVarResp.getData();
    }

    /**
     *  List CustomerAccount filtered by customerCode.  
     *  List CustomerAccount filtered by customerCode.  
     * @param customerCode  customerCode The customer account&#39;s code  (optional)
     * @return ApiResponse&lt;CustomerAccountsResponseDto&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 customer account by customer.  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<CustomerAccountsResponseDto> gETCustomerAccountList1WithHttpInfo(String customerCode) throws ApiException {
        okhttp3.Call localVarCall = gETCustomerAccountList1ValidateBeforeCall(customerCode, null);
        Type localVarReturnType = new TypeToken<CustomerAccountsResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  List CustomerAccount filtered by customerCode.   (asynchronously)
     *  List CustomerAccount filtered by customerCode.  
     * @param customerCode  customerCode The customer 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 customer account by customer.  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETCustomerAccountList1Async(String customerCode, final ApiCallback<CustomerAccountsResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETCustomerAccountList1ValidateBeforeCall(customerCode, _callback);
        Type localVarReturnType = new TypeToken<CustomerAccountsResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETCustomerAccountSearch1
     * @param customerAccountCode  customerAccountCode The customer account&#39;s code  (optional)
     * @param calculateBalances  calculateBalances  true if needs  to calculate balances  (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>  customer account  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETCustomerAccountSearch1Call(String customerAccountCode, Boolean calculateBalances, String inheritCF, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

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

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

        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 gETCustomerAccountSearch1ValidateBeforeCall(String customerAccountCode, Boolean calculateBalances, String inheritCF, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETCustomerAccountSearch1Call(customerAccountCode, calculateBalances, inheritCF, _callback);
        return localVarCall;

    }

    /**
     *  Search for a customer account with a given code.  
     *  Search for a customer account with a given code.  
     * @param customerAccountCode  customerAccountCode The customer account&#39;s code  (optional)
     * @param calculateBalances  calculateBalances  true if needs  to calculate balances  (optional)
     * @param inheritCF  inheritCF Should inherited custom fields be retrieved. Defaults to INHERIT_NO_MERGE.  (optional, default to INHERIT_NO_MERGE)
     * @return GetCustomerAccountResponseDto
     * @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>  customer account  </td><td>  -  </td></tr>
     </table>
     */
    public GetCustomerAccountResponseDto gETCustomerAccountSearch1(String customerAccountCode, Boolean calculateBalances, String inheritCF) throws ApiException {
        ApiResponse<GetCustomerAccountResponseDto> localVarResp = gETCustomerAccountSearch1WithHttpInfo(customerAccountCode, calculateBalances, inheritCF);
        return localVarResp.getData();
    }

    /**
     *  Search for a customer account with a given code.  
     *  Search for a customer account with a given code.  
     * @param customerAccountCode  customerAccountCode The customer account&#39;s code  (optional)
     * @param calculateBalances  calculateBalances  true if needs  to calculate balances  (optional)
     * @param inheritCF  inheritCF Should inherited custom fields be retrieved. Defaults to INHERIT_NO_MERGE.  (optional, default to INHERIT_NO_MERGE)
     * @return ApiResponse&lt;GetCustomerAccountResponseDto&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>  customer account  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<GetCustomerAccountResponseDto> gETCustomerAccountSearch1WithHttpInfo(String customerAccountCode, Boolean calculateBalances, String inheritCF) throws ApiException {
        okhttp3.Call localVarCall = gETCustomerAccountSearch1ValidateBeforeCall(customerAccountCode, calculateBalances, inheritCF, null);
        Type localVarReturnType = new TypeToken<GetCustomerAccountResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Search for a customer account with a given code.   (asynchronously)
     *  Search for a customer account with a given code.  
     * @param customerAccountCode  customerAccountCode The customer account&#39;s code  (optional)
     * @param calculateBalances  calculateBalances  true if needs  to calculate balances  (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>  customer account  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETCustomerAccountSearch1Async(String customerAccountCode, Boolean calculateBalances, String inheritCF, final ApiCallback<GetCustomerAccountResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETCustomerAccountSearch1ValidateBeforeCall(customerAccountCode, calculateBalances, inheritCF, _callback);
        Type localVarReturnType = new TypeToken<GetCustomerAccountResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETIBaseVersion29
     * @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 gETIBaseVersion29Call(final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

        okhttp3.Call localVarCall = gETIBaseVersion29Call(_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 gETIBaseVersion29() throws ApiException {
        ApiResponse<ActionStatus> localVarResp = gETIBaseVersion29WithHttpInfo();
        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> gETIBaseVersion29WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = gETIBaseVersion29ValidateBeforeCall(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 gETIBaseVersion29Async(final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETIBaseVersion29ValidateBeforeCall(_callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTCustomerAccountCreate1
     * @param customerAccountDto  postData The customer 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 pOSTCustomerAccountCreate1Call(CustomerAccountDto customerAccountDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = customerAccountDto;

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

        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 pOSTCustomerAccountCreate1ValidateBeforeCall(CustomerAccountDto customerAccountDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTCustomerAccountCreate1Call(customerAccountDto, _callback);
        return localVarCall;

    }

    /**
     *  Create a new customer account  
     *  Create a new customer account  
     * @param customerAccountDto  postData The customer 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 pOSTCustomerAccountCreate1(CustomerAccountDto customerAccountDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTCustomerAccountCreate1WithHttpInfo(customerAccountDto);
        return localVarResp.getData();
    }

    /**
     *  Create a new customer account  
     *  Create a new customer account  
     * @param customerAccountDto  postData The customer 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> pOSTCustomerAccountCreate1WithHttpInfo(CustomerAccountDto customerAccountDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTCustomerAccountCreate1ValidateBeforeCall(customerAccountDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create a new customer account   (asynchronously)
     *  Create a new customer account  
     * @param customerAccountDto  postData The customer 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 pOSTCustomerAccountCreate1Async(CustomerAccountDto customerAccountDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTCustomerAccountCreate1ValidateBeforeCall(customerAccountDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTCustomerAccountCreateOrUpdate1
     * @param customerAccountDto  postData The customer 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 pOSTCustomerAccountCreateOrUpdate1Call(CustomerAccountDto customerAccountDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = customerAccountDto;

        // create path and map variables
        String localVarPath = "/account/customerAccount/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 pOSTCustomerAccountCreateOrUpdate1ValidateBeforeCall(CustomerAccountDto customerAccountDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTCustomerAccountCreateOrUpdate1Call(customerAccountDto, _callback);
        return localVarCall;

    }

    /**
     *  Create new or update existing customer account  
     *  Create new or update existing customer account  
     * @param customerAccountDto  postData The customer 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 pOSTCustomerAccountCreateOrUpdate1(CustomerAccountDto customerAccountDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTCustomerAccountCreateOrUpdate1WithHttpInfo(customerAccountDto);
        return localVarResp.getData();
    }

    /**
     *  Create new or update existing customer account  
     *  Create new or update existing customer account  
     * @param customerAccountDto  postData The customer 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> pOSTCustomerAccountCreateOrUpdate1WithHttpInfo(CustomerAccountDto customerAccountDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTCustomerAccountCreateOrUpdate1ValidateBeforeCall(customerAccountDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create new or update existing customer account   (asynchronously)
     *  Create new or update existing customer account  
     * @param customerAccountDto  postData The customer 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 pOSTCustomerAccountCreateOrUpdate1Async(CustomerAccountDto customerAccountDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTCustomerAccountCreateOrUpdate1ValidateBeforeCall(customerAccountDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTCustomerAccountCreditCategory1
     * @param creditCategoryDto  postData The credit category&#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 pOSTCustomerAccountCreditCategory1Call(CreditCategoryDto creditCategoryDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = creditCategoryDto;

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

        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 pOSTCustomerAccountCreditCategory1ValidateBeforeCall(CreditCategoryDto creditCategoryDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTCustomerAccountCreditCategory1Call(creditCategoryDto, _callback);
        return localVarCall;

    }

    /**
     *  Create a new credit category.  
     *  Create a new credit category.  
     * @param creditCategoryDto  postData The credit category&#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 pOSTCustomerAccountCreditCategory1(CreditCategoryDto creditCategoryDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTCustomerAccountCreditCategory1WithHttpInfo(creditCategoryDto);
        return localVarResp.getData();
    }

    /**
     *  Create a new credit category.  
     *  Create a new credit category.  
     * @param creditCategoryDto  postData The credit category&#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> pOSTCustomerAccountCreditCategory1WithHttpInfo(CreditCategoryDto creditCategoryDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTCustomerAccountCreditCategory1ValidateBeforeCall(creditCategoryDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create a new credit category.   (asynchronously)
     *  Create a new credit category.  
     * @param creditCategoryDto  postData The credit category&#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 pOSTCustomerAccountCreditCategory1Async(CreditCategoryDto creditCategoryDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTCustomerAccountCreditCategory1ValidateBeforeCall(creditCategoryDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pUTCustomerAccountUpdate1
     * @param customerAccountDto  postData The customer 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 pUTCustomerAccountUpdate1Call(CustomerAccountDto customerAccountDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = customerAccountDto;

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

        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 pUTCustomerAccountUpdate1ValidateBeforeCall(CustomerAccountDto customerAccountDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pUTCustomerAccountUpdate1Call(customerAccountDto, _callback);
        return localVarCall;

    }

    /**
     *  Update an existing customer account  
     *  Update an existing customer account  
     * @param customerAccountDto  postData The customer 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 pUTCustomerAccountUpdate1(CustomerAccountDto customerAccountDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pUTCustomerAccountUpdate1WithHttpInfo(customerAccountDto);
        return localVarResp.getData();
    }

    /**
     *  Update an existing customer account  
     *  Update an existing customer account  
     * @param customerAccountDto  postData The customer 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> pUTCustomerAccountUpdate1WithHttpInfo(CustomerAccountDto customerAccountDto) throws ApiException {
        okhttp3.Call localVarCall = pUTCustomerAccountUpdate1ValidateBeforeCall(customerAccountDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Update an existing customer account   (asynchronously)
     *  Update an existing customer account  
     * @param customerAccountDto  postData The customer 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 pUTCustomerAccountUpdate1Async(CustomerAccountDto customerAccountDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

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

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

        okhttp3.Call localVarCall = user4Call(_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 user4() throws ApiException {
        ApiResponse<ActionStatus> localVarResp = user4WithHttpInfo();
        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> user4WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = user4ValidateBeforeCall(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 user4Async(final ApiCallback<ActionStatus> _callback) throws ApiException {

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