/*
 * 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.BusinessEntityResponseDto;
import org.openapitools.client.model.CustomEntityTemplateDto;
import org.openapitools.client.model.CustomEntityTemplateResponseDto;
import org.openapitools.client.model.CustomEntityTemplatesResponseDto;
import org.openapitools.client.model.CustomFieldTemplateDto;
import org.openapitools.client.model.EntityCustomActionDto;
import org.openapitools.client.model.EntityCustomActionResponseDto;
import org.openapitools.client.model.EntityCustomizationDto;
import org.openapitools.client.model.EntityCustomizationResponseDto;
import org.openapitools.client.model.GetCustomFieldTemplateReponseDto;

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

public class EntityCustomizationApi {
    private ApiClient localVarApiClient;

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

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

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

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

    /**
     * Build call for dELETEEntityCustomizationActionActionCodeAppliesTo1
     * @param actionCode  actionCode Entity action code  (required)
     * @param appliesTo  appliesTo Entity that action applies to  (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 dELETEEntityCustomizationActionActionCodeAppliesTo1Call(String actionCode, String appliesTo, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

        okhttp3.Call localVarCall = dELETEEntityCustomizationActionActionCodeAppliesTo1Call(actionCode, appliesTo, _callback);
        return localVarCall;

    }

    /**
     *  Remove entity action definition given its code and entity it applies to  
     *  Remove entity action definition given its code and entity it applies to  
     * @param actionCode  actionCode Entity action code  (required)
     * @param appliesTo  appliesTo Entity that action applies to  (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 dELETEEntityCustomizationActionActionCodeAppliesTo1(String actionCode, String appliesTo) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = dELETEEntityCustomizationActionActionCodeAppliesTo1WithHttpInfo(actionCode, appliesTo);
        return localVarResp.getData();
    }

    /**
     *  Remove entity action definition given its code and entity it applies to  
     *  Remove entity action definition given its code and entity it applies to  
     * @param actionCode  actionCode Entity action code  (required)
     * @param appliesTo  appliesTo Entity that action applies to  (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> dELETEEntityCustomizationActionActionCodeAppliesTo1WithHttpInfo(String actionCode, String appliesTo) throws ApiException {
        okhttp3.Call localVarCall = dELETEEntityCustomizationActionActionCodeAppliesTo1ValidateBeforeCall(actionCode, appliesTo, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Remove entity action definition given its code and entity it applies to   (asynchronously)
     *  Remove entity action definition given its code and entity it applies to  
     * @param actionCode  actionCode Entity action code  (required)
     * @param appliesTo  appliesTo Entity that action applies to  (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 dELETEEntityCustomizationActionActionCodeAppliesTo1Async(String actionCode, String appliesTo, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = dELETEEntityCustomizationActionActionCodeAppliesTo1ValidateBeforeCall(actionCode, appliesTo, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for dELETEEntityCustomizationEntityCustomEntityTemplateCode1
     * @param customEntityTemplateCode  customEntityTemplateCode The custom entity template&#39;s code  (required)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call dELETEEntityCustomizationEntityCustomEntityTemplateCode1Call(String customEntityTemplateCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

        okhttp3.Call localVarCall = dELETEEntityCustomizationEntityCustomEntityTemplateCode1Call(customEntityTemplateCode, _callback);
        return localVarCall;

    }

    /**
     *  Remove custom entity template definition given its code  
     *  Remove custom entity template definition given its code  
     * @param customEntityTemplateCode  customEntityTemplateCode The custom entity template&#39;s code  (required)
     * @return ActionStatus
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus dELETEEntityCustomizationEntityCustomEntityTemplateCode1(String customEntityTemplateCode) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = dELETEEntityCustomizationEntityCustomEntityTemplateCode1WithHttpInfo(customEntityTemplateCode);
        return localVarResp.getData();
    }

    /**
     *  Remove custom entity template definition given its code  
     *  Remove custom entity template definition given its code  
     * @param customEntityTemplateCode  customEntityTemplateCode The custom entity template&#39;s code  (required)
     * @return ApiResponse&lt;ActionStatus&gt;
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> dELETEEntityCustomizationEntityCustomEntityTemplateCode1WithHttpInfo(String customEntityTemplateCode) throws ApiException {
        okhttp3.Call localVarCall = dELETEEntityCustomizationEntityCustomEntityTemplateCode1ValidateBeforeCall(customEntityTemplateCode, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Remove custom entity template definition given its code   (asynchronously)
     *  Remove custom entity template definition given its code  
     * @param customEntityTemplateCode  customEntityTemplateCode The custom entity template&#39;s code  (required)
     * @param _callback The callback to be executed when the API call finishes
     * @return The request call
     * @throws ApiException If fail to process the API call, e.g. serializing the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call dELETEEntityCustomizationEntityCustomEntityTemplateCode1Async(String customEntityTemplateCode, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = dELETEEntityCustomizationEntityCustomEntityTemplateCode1ValidateBeforeCall(customEntityTemplateCode, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for dELETEEntityCustomizationFieldCustomFieldTemplateCodeAppliesTo1
     * @param customFieldTemplateCode  customFieldTemplateCode Custom field template code  (required)
     * @param appliesTo  appliesTo Entity custom field applies to  (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 dELETEEntityCustomizationFieldCustomFieldTemplateCodeAppliesTo1Call(String customFieldTemplateCode, String appliesTo, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

        okhttp3.Call localVarCall = dELETEEntityCustomizationFieldCustomFieldTemplateCodeAppliesTo1Call(customFieldTemplateCode, appliesTo, _callback);
        return localVarCall;

    }

    /**
     *  Remove custom field definition given its code and entity it applies to  
     *  Remove custom field definition given its code and entity it applies to  
     * @param customFieldTemplateCode  customFieldTemplateCode Custom field template code  (required)
     * @param appliesTo  appliesTo Entity custom field applies to  (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 dELETEEntityCustomizationFieldCustomFieldTemplateCodeAppliesTo1(String customFieldTemplateCode, String appliesTo) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = dELETEEntityCustomizationFieldCustomFieldTemplateCodeAppliesTo1WithHttpInfo(customFieldTemplateCode, appliesTo);
        return localVarResp.getData();
    }

    /**
     *  Remove custom field definition given its code and entity it applies to  
     *  Remove custom field definition given its code and entity it applies to  
     * @param customFieldTemplateCode  customFieldTemplateCode Custom field template code  (required)
     * @param appliesTo  appliesTo Entity custom field applies to  (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> dELETEEntityCustomizationFieldCustomFieldTemplateCodeAppliesTo1WithHttpInfo(String customFieldTemplateCode, String appliesTo) throws ApiException {
        okhttp3.Call localVarCall = dELETEEntityCustomizationFieldCustomFieldTemplateCodeAppliesTo1ValidateBeforeCall(customFieldTemplateCode, appliesTo, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Remove custom field definition given its code and entity it applies to   (asynchronously)
     *  Remove custom field definition given its code and entity it applies to  
     * @param customFieldTemplateCode  customFieldTemplateCode Custom field template code  (required)
     * @param appliesTo  appliesTo Entity custom field applies to  (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 dELETEEntityCustomizationFieldCustomFieldTemplateCodeAppliesTo1Async(String customFieldTemplateCode, String appliesTo, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = dELETEEntityCustomizationFieldCustomFieldTemplateCodeAppliesTo1ValidateBeforeCall(customFieldTemplateCode, appliesTo, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETEntityCustomizationAction1
     * @param actionCode  actionCode Entity action code  (optional)
     * @param appliesTo  appliesTo Entity that action applies to  (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>  instance of EntityCustomActionResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETEntityCustomizationAction1Call(String actionCode, String appliesTo, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/entityCustomization/action";

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

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

        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 gETEntityCustomizationAction1ValidateBeforeCall(String actionCode, String appliesTo, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETEntityCustomizationAction1Call(actionCode, appliesTo, _callback);
        return localVarCall;

    }

    /**
     *  Get entity action definition  
     *  Get entity action definition  
     * @param actionCode  actionCode Entity action code  (optional)
     * @param appliesTo  appliesTo Entity that action applies to  (optional)
     * @return EntityCustomActionResponseDto
     * @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>  instance of EntityCustomActionResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public EntityCustomActionResponseDto gETEntityCustomizationAction1(String actionCode, String appliesTo) throws ApiException {
        ApiResponse<EntityCustomActionResponseDto> localVarResp = gETEntityCustomizationAction1WithHttpInfo(actionCode, appliesTo);
        return localVarResp.getData();
    }

    /**
     *  Get entity action definition  
     *  Get entity action definition  
     * @param actionCode  actionCode Entity action code  (optional)
     * @param appliesTo  appliesTo Entity that action applies to  (optional)
     * @return ApiResponse&lt;EntityCustomActionResponseDto&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>  instance of EntityCustomActionResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<EntityCustomActionResponseDto> gETEntityCustomizationAction1WithHttpInfo(String actionCode, String appliesTo) throws ApiException {
        okhttp3.Call localVarCall = gETEntityCustomizationAction1ValidateBeforeCall(actionCode, appliesTo, null);
        Type localVarReturnType = new TypeToken<EntityCustomActionResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Get entity action definition   (asynchronously)
     *  Get entity action definition  
     * @param actionCode  actionCode Entity action code  (optional)
     * @param appliesTo  appliesTo Entity that action applies to  (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>  instance of EntityCustomActionResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETEntityCustomizationAction1Async(String actionCode, String appliesTo, final ApiCallback<EntityCustomActionResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETEntityCustomizationAction1ValidateBeforeCall(actionCode, appliesTo, _callback);
        Type localVarReturnType = new TypeToken<EntityCustomActionResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETEntityCustomizationCustomizeCustomizedEntityClass1
     * @param customizedEntityClass  customizedEntityClass Standard Meveo entity class name  (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>  instance of EntityCustomizationResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETEntityCustomizationCustomizeCustomizedEntityClass1Call(String customizedEntityClass, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/entityCustomization/customize/{customizedEntityClass}"
            .replaceAll("\\{" + "customizedEntityClass" + "\\}", localVarApiClient.escapeString(customizedEntityClass.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, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

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

        okhttp3.Call localVarCall = gETEntityCustomizationCustomizeCustomizedEntityClass1Call(customizedEntityClass, _callback);
        return localVarCall;

    }

    /**
     *  Get customizations made on a standard Meveo entity given its class  
     *  Get customizations made on a standard Meveo entity given its class  
     * @param customizedEntityClass  customizedEntityClass Standard Meveo entity class name  (required)
     * @return EntityCustomizationResponseDto
     * @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>  instance of EntityCustomizationResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public EntityCustomizationResponseDto gETEntityCustomizationCustomizeCustomizedEntityClass1(String customizedEntityClass) throws ApiException {
        ApiResponse<EntityCustomizationResponseDto> localVarResp = gETEntityCustomizationCustomizeCustomizedEntityClass1WithHttpInfo(customizedEntityClass);
        return localVarResp.getData();
    }

    /**
     *  Get customizations made on a standard Meveo entity given its class  
     *  Get customizations made on a standard Meveo entity given its class  
     * @param customizedEntityClass  customizedEntityClass Standard Meveo entity class name  (required)
     * @return ApiResponse&lt;EntityCustomizationResponseDto&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>  instance of EntityCustomizationResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<EntityCustomizationResponseDto> gETEntityCustomizationCustomizeCustomizedEntityClass1WithHttpInfo(String customizedEntityClass) throws ApiException {
        okhttp3.Call localVarCall = gETEntityCustomizationCustomizeCustomizedEntityClass1ValidateBeforeCall(customizedEntityClass, null);
        Type localVarReturnType = new TypeToken<EntityCustomizationResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Get customizations made on a standard Meveo entity given its class   (asynchronously)
     *  Get customizations made on a standard Meveo entity given its class  
     * @param customizedEntityClass  customizedEntityClass Standard Meveo entity class name  (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>  instance of EntityCustomizationResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETEntityCustomizationCustomizeCustomizedEntityClass1Async(String customizedEntityClass, final ApiCallback<EntityCustomizationResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETEntityCustomizationCustomizeCustomizedEntityClass1ValidateBeforeCall(customizedEntityClass, _callback);
        Type localVarReturnType = new TypeToken<EntityCustomizationResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETEntityCustomizationEntityCustomEntityTemplateCode1
     * @param customEntityTemplateCode  customEntityTemplateCode The custom entity template&#39;s code  (required)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  instance of CustomEntityTemplateResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETEntityCustomizationEntityCustomEntityTemplateCode1Call(String customEntityTemplateCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/entityCustomization/entity/{customEntityTemplateCode}"
            .replaceAll("\\{" + "customEntityTemplateCode" + "\\}", localVarApiClient.escapeString(customEntityTemplateCode.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, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

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

        okhttp3.Call localVarCall = gETEntityCustomizationEntityCustomEntityTemplateCode1Call(customEntityTemplateCode, _callback);
        return localVarCall;

    }

    /**
     *  Get custom entity template definition including its fields and applicable actions  
     *  Get custom entity template definition including its fields and applicable actions  
     * @param customEntityTemplateCode  customEntityTemplateCode The custom entity template&#39;s code  (required)
     * @return CustomEntityTemplateResponseDto
     * @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>  instance of CustomEntityTemplateResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public CustomEntityTemplateResponseDto gETEntityCustomizationEntityCustomEntityTemplateCode1(String customEntityTemplateCode) throws ApiException {
        ApiResponse<CustomEntityTemplateResponseDto> localVarResp = gETEntityCustomizationEntityCustomEntityTemplateCode1WithHttpInfo(customEntityTemplateCode);
        return localVarResp.getData();
    }

    /**
     *  Get custom entity template definition including its fields and applicable actions  
     *  Get custom entity template definition including its fields and applicable actions  
     * @param customEntityTemplateCode  customEntityTemplateCode The custom entity template&#39;s code  (required)
     * @return ApiResponse&lt;CustomEntityTemplateResponseDto&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>  instance of CustomEntityTemplateResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<CustomEntityTemplateResponseDto> gETEntityCustomizationEntityCustomEntityTemplateCode1WithHttpInfo(String customEntityTemplateCode) throws ApiException {
        okhttp3.Call localVarCall = gETEntityCustomizationEntityCustomEntityTemplateCode1ValidateBeforeCall(customEntityTemplateCode, null);
        Type localVarReturnType = new TypeToken<CustomEntityTemplateResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Get custom entity template definition including its fields and applicable actions   (asynchronously)
     *  Get custom entity template definition including its fields and applicable actions  
     * @param customEntityTemplateCode  customEntityTemplateCode The custom entity template&#39;s code  (required)
     * @param _callback The callback to be executed when the API call finishes
     * @return The request call
     * @throws ApiException If fail to process the API call, e.g. serializing the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  instance of CustomEntityTemplateResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETEntityCustomizationEntityCustomEntityTemplateCode1Async(String customEntityTemplateCode, final ApiCallback<CustomEntityTemplateResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETEntityCustomizationEntityCustomEntityTemplateCode1ValidateBeforeCall(customEntityTemplateCode, _callback);
        Type localVarReturnType = new TypeToken<CustomEntityTemplateResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETEntityCustomizationEntityList1
     * @param customEntityTemplateCode  customEntityTemplateCode An optional and partial custom entity template 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>  instance of CustomEntityTemplatesResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETEntityCustomizationEntityList1Call(String customEntityTemplateCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/entityCustomization/entity/list";

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

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

        okhttp3.Call localVarCall = gETEntityCustomizationEntityList1Call(customEntityTemplateCode, _callback);
        return localVarCall;

    }

    /**
     *  List custom entity templates.  
     *  List custom entity templates.  
     * @param customEntityTemplateCode  customEntityTemplateCode An optional and partial custom entity template code  (optional)
     * @return CustomEntityTemplatesResponseDto
     * @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>  instance of CustomEntityTemplatesResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public CustomEntityTemplatesResponseDto gETEntityCustomizationEntityList1(String customEntityTemplateCode) throws ApiException {
        ApiResponse<CustomEntityTemplatesResponseDto> localVarResp = gETEntityCustomizationEntityList1WithHttpInfo(customEntityTemplateCode);
        return localVarResp.getData();
    }

    /**
     *  List custom entity templates.  
     *  List custom entity templates.  
     * @param customEntityTemplateCode  customEntityTemplateCode An optional and partial custom entity template code  (optional)
     * @return ApiResponse&lt;CustomEntityTemplatesResponseDto&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>  instance of CustomEntityTemplatesResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<CustomEntityTemplatesResponseDto> gETEntityCustomizationEntityList1WithHttpInfo(String customEntityTemplateCode) throws ApiException {
        okhttp3.Call localVarCall = gETEntityCustomizationEntityList1ValidateBeforeCall(customEntityTemplateCode, null);
        Type localVarReturnType = new TypeToken<CustomEntityTemplatesResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  List custom entity templates.   (asynchronously)
     *  List custom entity templates.  
     * @param customEntityTemplateCode  customEntityTemplateCode An optional and partial custom entity template 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>  instance of CustomEntityTemplatesResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETEntityCustomizationEntityList1Async(String customEntityTemplateCode, final ApiCallback<CustomEntityTemplatesResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETEntityCustomizationEntityList1ValidateBeforeCall(customEntityTemplateCode, _callback);
        Type localVarReturnType = new TypeToken<CustomEntityTemplatesResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETEntityCustomizationEntityListELFiltered1
     * @param appliesTo  appliesTo - the type of entity to which the CFT applies. eg OfferTemplate ServiceTemplate.  (optional)
     * @param entityCode  entityCode - code of the entity  (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>  instance of EntityCustomizationResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETEntityCustomizationEntityListELFiltered1Call(String appliesTo, String entityCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/entityCustomization/entity/listELFiltered";

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

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

        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 gETEntityCustomizationEntityListELFiltered1ValidateBeforeCall(String appliesTo, String entityCode, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETEntityCustomizationEntityListELFiltered1Call(appliesTo, entityCode, _callback);
        return localVarCall;

    }

    /**
     *  Returns a list of filtered CustomFieldTemplate of an entity. The list of entity is evaluted againsts the entity with the given code.  
     *  Returns a list of filtered CustomFieldTemplate of an entity. The list of entity is evaluted againsts the entity with the given code.  
     * @param appliesTo  appliesTo - the type of entity to which the CFT applies. eg OfferTemplate ServiceTemplate.  (optional)
     * @param entityCode  entityCode - code of the entity  (optional)
     * @return EntityCustomizationResponseDto
     * @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>  instance of EntityCustomizationResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public EntityCustomizationResponseDto gETEntityCustomizationEntityListELFiltered1(String appliesTo, String entityCode) throws ApiException {
        ApiResponse<EntityCustomizationResponseDto> localVarResp = gETEntityCustomizationEntityListELFiltered1WithHttpInfo(appliesTo, entityCode);
        return localVarResp.getData();
    }

    /**
     *  Returns a list of filtered CustomFieldTemplate of an entity. The list of entity is evaluted againsts the entity with the given code.  
     *  Returns a list of filtered CustomFieldTemplate of an entity. The list of entity is evaluted againsts the entity with the given code.  
     * @param appliesTo  appliesTo - the type of entity to which the CFT applies. eg OfferTemplate ServiceTemplate.  (optional)
     * @param entityCode  entityCode - code of the entity  (optional)
     * @return ApiResponse&lt;EntityCustomizationResponseDto&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>  instance of EntityCustomizationResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<EntityCustomizationResponseDto> gETEntityCustomizationEntityListELFiltered1WithHttpInfo(String appliesTo, String entityCode) throws ApiException {
        okhttp3.Call localVarCall = gETEntityCustomizationEntityListELFiltered1ValidateBeforeCall(appliesTo, entityCode, null);
        Type localVarReturnType = new TypeToken<EntityCustomizationResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Returns a list of filtered CustomFieldTemplate of an entity. The list of entity is evaluted againsts the entity with the given code.   (asynchronously)
     *  Returns a list of filtered CustomFieldTemplate of an entity. The list of entity is evaluted againsts the entity with the given code.  
     * @param appliesTo  appliesTo - the type of entity to which the CFT applies. eg OfferTemplate ServiceTemplate.  (optional)
     * @param entityCode  entityCode - code of the entity  (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>  instance of EntityCustomizationResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETEntityCustomizationEntityListELFiltered1Async(String appliesTo, String entityCode, final ApiCallback<EntityCustomizationResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETEntityCustomizationEntityListELFiltered1ValidateBeforeCall(appliesTo, entityCode, _callback);
        Type localVarReturnType = new TypeToken<EntityCustomizationResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETEntityCustomizationField1
     * @param customFieldTemplateCode  customFieldTemplateCode Custom field template code  (optional)
     * @param appliesTo  appliesTo Entity custom field applies to  (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>  instance of GetCustomFieldTemplateReponseDto.  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETEntityCustomizationField1Call(String customFieldTemplateCode, String appliesTo, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/entityCustomization/field";

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

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

        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 gETEntityCustomizationField1ValidateBeforeCall(String customFieldTemplateCode, String appliesTo, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETEntityCustomizationField1Call(customFieldTemplateCode, appliesTo, _callback);
        return localVarCall;

    }

    /**
     *  Get custom field definition  
     *  Get custom field definition  
     * @param customFieldTemplateCode  customFieldTemplateCode Custom field template code  (optional)
     * @param appliesTo  appliesTo Entity custom field applies to  (optional)
     * @return GetCustomFieldTemplateReponseDto
     * @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>  instance of GetCustomFieldTemplateReponseDto.  </td><td>  -  </td></tr>
     </table>
     */
    public GetCustomFieldTemplateReponseDto gETEntityCustomizationField1(String customFieldTemplateCode, String appliesTo) throws ApiException {
        ApiResponse<GetCustomFieldTemplateReponseDto> localVarResp = gETEntityCustomizationField1WithHttpInfo(customFieldTemplateCode, appliesTo);
        return localVarResp.getData();
    }

    /**
     *  Get custom field definition  
     *  Get custom field definition  
     * @param customFieldTemplateCode  customFieldTemplateCode Custom field template code  (optional)
     * @param appliesTo  appliesTo Entity custom field applies to  (optional)
     * @return ApiResponse&lt;GetCustomFieldTemplateReponseDto&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>  instance of GetCustomFieldTemplateReponseDto.  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<GetCustomFieldTemplateReponseDto> gETEntityCustomizationField1WithHttpInfo(String customFieldTemplateCode, String appliesTo) throws ApiException {
        okhttp3.Call localVarCall = gETEntityCustomizationField1ValidateBeforeCall(customFieldTemplateCode, appliesTo, null);
        Type localVarReturnType = new TypeToken<GetCustomFieldTemplateReponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Get custom field definition   (asynchronously)
     *  Get custom field definition  
     * @param customFieldTemplateCode  customFieldTemplateCode Custom field template code  (optional)
     * @param appliesTo  appliesTo Entity custom field applies to  (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>  instance of GetCustomFieldTemplateReponseDto.  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETEntityCustomizationField1Async(String customFieldTemplateCode, String appliesTo, final ApiCallback<GetCustomFieldTemplateReponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETEntityCustomizationField1ValidateBeforeCall(customFieldTemplateCode, appliesTo, _callback);
        Type localVarReturnType = new TypeToken<GetCustomFieldTemplateReponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETEntityCustomizationListBusinessEntityForCFVByCode1
     * @param code  code CFT code  (optional)
     * @param wildcode  wildcode code filter  (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>  instance of BusinessEntityResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETEntityCustomizationListBusinessEntityForCFVByCode1Call(String code, String wildcode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/entityCustomization/listBusinessEntityForCFVByCode";

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

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

        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 gETEntityCustomizationListBusinessEntityForCFVByCode1ValidateBeforeCall(String code, String wildcode, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETEntityCustomizationListBusinessEntityForCFVByCode1Call(code, wildcode, _callback);
        return localVarCall;

    }

    /**
     *  Returns a List of BusinessEntities given a CustomFieldTemplate code
     *  Returns a List of BusinessEntities given a CustomFieldTemplate code. The CustomFieldTemplate is pulled from the database and entityClass is use in query. For example entity class is of type OfferTemplate, then it will return a list of OfferTemplates.  
     * @param code  code CFT code  (optional)
     * @param wildcode  wildcode code filter  (optional)
     * @return BusinessEntityResponseDto
     * @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>  instance of BusinessEntityResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public BusinessEntityResponseDto gETEntityCustomizationListBusinessEntityForCFVByCode1(String code, String wildcode) throws ApiException {
        ApiResponse<BusinessEntityResponseDto> localVarResp = gETEntityCustomizationListBusinessEntityForCFVByCode1WithHttpInfo(code, wildcode);
        return localVarResp.getData();
    }

    /**
     *  Returns a List of BusinessEntities given a CustomFieldTemplate code
     *  Returns a List of BusinessEntities given a CustomFieldTemplate code. The CustomFieldTemplate is pulled from the database and entityClass is use in query. For example entity class is of type OfferTemplate, then it will return a list of OfferTemplates.  
     * @param code  code CFT code  (optional)
     * @param wildcode  wildcode code filter  (optional)
     * @return ApiResponse&lt;BusinessEntityResponseDto&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>  instance of BusinessEntityResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<BusinessEntityResponseDto> gETEntityCustomizationListBusinessEntityForCFVByCode1WithHttpInfo(String code, String wildcode) throws ApiException {
        okhttp3.Call localVarCall = gETEntityCustomizationListBusinessEntityForCFVByCode1ValidateBeforeCall(code, wildcode, null);
        Type localVarReturnType = new TypeToken<BusinessEntityResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Returns a List of BusinessEntities given a CustomFieldTemplate code (asynchronously)
     *  Returns a List of BusinessEntities given a CustomFieldTemplate code. The CustomFieldTemplate is pulled from the database and entityClass is use in query. For example entity class is of type OfferTemplate, then it will return a list of OfferTemplates.  
     * @param code  code CFT code  (optional)
     * @param wildcode  wildcode code filter  (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>  instance of BusinessEntityResponseDto  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETEntityCustomizationListBusinessEntityForCFVByCode1Async(String code, String wildcode, final ApiCallback<BusinessEntityResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETEntityCustomizationListBusinessEntityForCFVByCode1ValidateBeforeCall(code, wildcode, _callback);
        Type localVarReturnType = new TypeToken<BusinessEntityResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETIBaseVersion67
     * @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 gETIBaseVersion67Call(final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

        okhttp3.Call localVarCall = gETIBaseVersion67Call(_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 gETIBaseVersion67() throws ApiException {
        ApiResponse<ActionStatus> localVarResp = gETIBaseVersion67WithHttpInfo();
        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> gETIBaseVersion67WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = gETIBaseVersion67ValidateBeforeCall(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 gETIBaseVersion67Async(final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETIBaseVersion67ValidateBeforeCall(_callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTEntityCustomizationAction1
     * @param entityCustomActionDto  postData posted data to API  (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 pOSTEntityCustomizationAction1Call(EntityCustomActionDto entityCustomActionDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = entityCustomActionDto;

        // create path and map variables
        String localVarPath = "/entityCustomization/action";

        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 pOSTEntityCustomizationAction1ValidateBeforeCall(EntityCustomActionDto entityCustomActionDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTEntityCustomizationAction1Call(entityCustomActionDto, _callback);
        return localVarCall;

    }

    /**
     *  Define a new entity action  
     *  Define a new entity action  
     * @param entityCustomActionDto  postData posted data to API  (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 pOSTEntityCustomizationAction1(EntityCustomActionDto entityCustomActionDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTEntityCustomizationAction1WithHttpInfo(entityCustomActionDto);
        return localVarResp.getData();
    }

    /**
     *  Define a new entity action  
     *  Define a new entity action  
     * @param entityCustomActionDto  postData posted data to API  (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> pOSTEntityCustomizationAction1WithHttpInfo(EntityCustomActionDto entityCustomActionDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTEntityCustomizationAction1ValidateBeforeCall(entityCustomActionDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Define a new entity action   (asynchronously)
     *  Define a new entity action  
     * @param entityCustomActionDto  postData posted data to API  (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 pOSTEntityCustomizationAction1Async(EntityCustomActionDto entityCustomActionDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTEntityCustomizationAction1ValidateBeforeCall(entityCustomActionDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTEntityCustomizationActionCreateOrUpdate1
     * @param entityCustomActionDto  dto posted data to API  (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 pOSTEntityCustomizationActionCreateOrUpdate1Call(EntityCustomActionDto entityCustomActionDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = entityCustomActionDto;

        // create path and map variables
        String localVarPath = "/entityCustomization/action/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 pOSTEntityCustomizationActionCreateOrUpdate1ValidateBeforeCall(EntityCustomActionDto entityCustomActionDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTEntityCustomizationActionCreateOrUpdate1Call(entityCustomActionDto, _callback);
        return localVarCall;

    }

    /**
     *  Define new or update existing entity action definition  
     *  Define new or update existing entity action definition  
     * @param entityCustomActionDto  dto posted data to API  (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 pOSTEntityCustomizationActionCreateOrUpdate1(EntityCustomActionDto entityCustomActionDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTEntityCustomizationActionCreateOrUpdate1WithHttpInfo(entityCustomActionDto);
        return localVarResp.getData();
    }

    /**
     *  Define new or update existing entity action definition  
     *  Define new or update existing entity action definition  
     * @param entityCustomActionDto  dto posted data to API  (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> pOSTEntityCustomizationActionCreateOrUpdate1WithHttpInfo(EntityCustomActionDto entityCustomActionDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTEntityCustomizationActionCreateOrUpdate1ValidateBeforeCall(entityCustomActionDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Define new or update existing entity action definition   (asynchronously)
     *  Define new or update existing entity action definition  
     * @param entityCustomActionDto  dto posted data to API  (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 pOSTEntityCustomizationActionCreateOrUpdate1Async(EntityCustomActionDto entityCustomActionDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTEntityCustomizationActionCreateOrUpdate1ValidateBeforeCall(entityCustomActionDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTEntityCustomizationCetCreateOrUpdate1
     * @param customEntityTemplateDto  dto The custom entity instance&#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 pOSTEntityCustomizationCetCreateOrUpdate1Call(CustomEntityTemplateDto customEntityTemplateDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = customEntityTemplateDto;

        // create path and map variables
        String localVarPath = "/entityCustomization/cet/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 pOSTEntityCustomizationCetCreateOrUpdate1ValidateBeforeCall(CustomEntityTemplateDto customEntityTemplateDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTEntityCustomizationCetCreateOrUpdate1Call(customEntityTemplateDto, _callback);
        return localVarCall;

    }

    /**
     *  To be sure the compatibility of above method we will create a new one. Define new or update existing custom entity template definition  
     *  To be sure the compatibility of above method we will create a new one. Define new or update existing custom entity template definition  
     * @param customEntityTemplateDto  dto The custom entity instance&#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 pOSTEntityCustomizationCetCreateOrUpdate1(CustomEntityTemplateDto customEntityTemplateDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTEntityCustomizationCetCreateOrUpdate1WithHttpInfo(customEntityTemplateDto);
        return localVarResp.getData();
    }

    /**
     *  To be sure the compatibility of above method we will create a new one. Define new or update existing custom entity template definition  
     *  To be sure the compatibility of above method we will create a new one. Define new or update existing custom entity template definition  
     * @param customEntityTemplateDto  dto The custom entity instance&#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> pOSTEntityCustomizationCetCreateOrUpdate1WithHttpInfo(CustomEntityTemplateDto customEntityTemplateDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTEntityCustomizationCetCreateOrUpdate1ValidateBeforeCall(customEntityTemplateDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  To be sure the compatibility of above method we will create a new one. Define new or update existing custom entity template definition   (asynchronously)
     *  To be sure the compatibility of above method we will create a new one. Define new or update existing custom entity template definition  
     * @param customEntityTemplateDto  dto The custom entity instance&#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 pOSTEntityCustomizationCetCreateOrUpdate1Async(CustomEntityTemplateDto customEntityTemplateDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTEntityCustomizationCetCreateOrUpdate1ValidateBeforeCall(customEntityTemplateDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTEntityCustomizationEntity1
     * @param customEntityTemplateDto  dto The custom entity instance&#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 pOSTEntityCustomizationEntity1Call(CustomEntityTemplateDto customEntityTemplateDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = customEntityTemplateDto;

        // create path and map variables
        String localVarPath = "/entityCustomization/entity";

        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 pOSTEntityCustomizationEntity1ValidateBeforeCall(CustomEntityTemplateDto customEntityTemplateDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTEntityCustomizationEntity1Call(customEntityTemplateDto, _callback);
        return localVarCall;

    }

    /**
     *  Define a new custom entity template including fields and applicable actions  
     *  Define a new custom entity template including fields and applicable actions  
     * @param customEntityTemplateDto  dto The custom entity instance&#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 pOSTEntityCustomizationEntity1(CustomEntityTemplateDto customEntityTemplateDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTEntityCustomizationEntity1WithHttpInfo(customEntityTemplateDto);
        return localVarResp.getData();
    }

    /**
     *  Define a new custom entity template including fields and applicable actions  
     *  Define a new custom entity template including fields and applicable actions  
     * @param customEntityTemplateDto  dto The custom entity instance&#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> pOSTEntityCustomizationEntity1WithHttpInfo(CustomEntityTemplateDto customEntityTemplateDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTEntityCustomizationEntity1ValidateBeforeCall(customEntityTemplateDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Define a new custom entity template including fields and applicable actions   (asynchronously)
     *  Define a new custom entity template including fields and applicable actions  
     * @param customEntityTemplateDto  dto The custom entity instance&#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 pOSTEntityCustomizationEntity1Async(CustomEntityTemplateDto customEntityTemplateDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTEntityCustomizationEntity1ValidateBeforeCall(customEntityTemplateDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTEntityCustomizationEntityActionExecuteActionCodeAppliesToEntityCode1
     * @param actionCode  actionCode Action code  (required)
     * @param appliesTo  appliesTo Entity it applies to  (required)
     * @param entityCode  entityCode Entity code to execute action on  (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 pOSTEntityCustomizationEntityActionExecuteActionCodeAppliesToEntityCode1Call(String actionCode, String appliesTo, String entityCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/entityCustomization/entity/action/execute/{actionCode}/{appliesTo}/{entityCode}"
            .replaceAll("\\{" + "actionCode" + "\\}", localVarApiClient.escapeString(actionCode.toString()))
            .replaceAll("\\{" + "appliesTo" + "\\}", localVarApiClient.escapeString(appliesTo.toString()))
            .replaceAll("\\{" + "entityCode" + "\\}", localVarApiClient.escapeString(entityCode.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, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

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

        okhttp3.Call localVarCall = pOSTEntityCustomizationEntityActionExecuteActionCodeAppliesToEntityCode1Call(actionCode, appliesTo, entityCode, _callback);
        return localVarCall;

    }

    /**
     *  Execute and action of a given entity  
     *  Execute and action of a given entity  
     * @param actionCode  actionCode Action code  (required)
     * @param appliesTo  appliesTo Entity it applies to  (required)
     * @param entityCode  entityCode Entity code to execute action on  (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 pOSTEntityCustomizationEntityActionExecuteActionCodeAppliesToEntityCode1(String actionCode, String appliesTo, String entityCode) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTEntityCustomizationEntityActionExecuteActionCodeAppliesToEntityCode1WithHttpInfo(actionCode, appliesTo, entityCode);
        return localVarResp.getData();
    }

    /**
     *  Execute and action of a given entity  
     *  Execute and action of a given entity  
     * @param actionCode  actionCode Action code  (required)
     * @param appliesTo  appliesTo Entity it applies to  (required)
     * @param entityCode  entityCode Entity code to execute action on  (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> pOSTEntityCustomizationEntityActionExecuteActionCodeAppliesToEntityCode1WithHttpInfo(String actionCode, String appliesTo, String entityCode) throws ApiException {
        okhttp3.Call localVarCall = pOSTEntityCustomizationEntityActionExecuteActionCodeAppliesToEntityCode1ValidateBeforeCall(actionCode, appliesTo, entityCode, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Execute and action of a given entity   (asynchronously)
     *  Execute and action of a given entity  
     * @param actionCode  actionCode Action code  (required)
     * @param appliesTo  appliesTo Entity it applies to  (required)
     * @param entityCode  entityCode Entity code to execute action on  (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 pOSTEntityCustomizationEntityActionExecuteActionCodeAppliesToEntityCode1Async(String actionCode, String appliesTo, String entityCode, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTEntityCustomizationEntityActionExecuteActionCodeAppliesToEntityCode1ValidateBeforeCall(actionCode, appliesTo, entityCode, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTEntityCustomizationEntityCodeDisable1
     * @param code  code Custom entity template 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 pOSTEntityCustomizationEntityCodeDisable1Call(String code, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/entityCustomization/entity/{code}/disable"
            .replaceAll("\\{" + "code" + "\\}", localVarApiClient.escapeString(code.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, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

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

        okhttp3.Call localVarCall = pOSTEntityCustomizationEntityCodeDisable1Call(code, _callback);
        return localVarCall;

    }

    /**
     *  Disable a Custom entity template with a given code  
     *  Disable a Custom entity template with a given code  
     * @param code  code Custom entity template 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 pOSTEntityCustomizationEntityCodeDisable1(String code) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTEntityCustomizationEntityCodeDisable1WithHttpInfo(code);
        return localVarResp.getData();
    }

    /**
     *  Disable a Custom entity template with a given code  
     *  Disable a Custom entity template with a given code  
     * @param code  code Custom entity template 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> pOSTEntityCustomizationEntityCodeDisable1WithHttpInfo(String code) throws ApiException {
        okhttp3.Call localVarCall = pOSTEntityCustomizationEntityCodeDisable1ValidateBeforeCall(code, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Disable a Custom entity template with a given code   (asynchronously)
     *  Disable a Custom entity template with a given code  
     * @param code  code Custom entity template 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 pOSTEntityCustomizationEntityCodeDisable1Async(String code, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTEntityCustomizationEntityCodeDisable1ValidateBeforeCall(code, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTEntityCustomizationEntityCodeEnable1
     * @param code  code Custom entity template 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 pOSTEntityCustomizationEntityCodeEnable1Call(String code, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/entityCustomization/entity/{code}/enable"
            .replaceAll("\\{" + "code" + "\\}", localVarApiClient.escapeString(code.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, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

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

        okhttp3.Call localVarCall = pOSTEntityCustomizationEntityCodeEnable1Call(code, _callback);
        return localVarCall;

    }

    /**
     *  Enable a Custom entity template with a given code  
     *  Enable a Custom entity template with a given code  
     * @param code  code Custom entity template 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 pOSTEntityCustomizationEntityCodeEnable1(String code) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTEntityCustomizationEntityCodeEnable1WithHttpInfo(code);
        return localVarResp.getData();
    }

    /**
     *  Enable a Custom entity template with a given code  
     *  Enable a Custom entity template with a given code  
     * @param code  code Custom entity template 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> pOSTEntityCustomizationEntityCodeEnable1WithHttpInfo(String code) throws ApiException {
        okhttp3.Call localVarCall = pOSTEntityCustomizationEntityCodeEnable1ValidateBeforeCall(code, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Enable a Custom entity template with a given code   (asynchronously)
     *  Enable a Custom entity template with a given code  
     * @param code  code Custom entity template 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 pOSTEntityCustomizationEntityCodeEnable1Async(String code, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTEntityCustomizationEntityCodeEnable1ValidateBeforeCall(code, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTEntityCustomizationEntityCreateOrUpdate1
     * @param customEntityTemplateDto  dto The custom entity instance&#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 pOSTEntityCustomizationEntityCreateOrUpdate1Call(CustomEntityTemplateDto customEntityTemplateDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = customEntityTemplateDto;

        // create path and map variables
        String localVarPath = "/entityCustomization/entity/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 pOSTEntityCustomizationEntityCreateOrUpdate1ValidateBeforeCall(CustomEntityTemplateDto customEntityTemplateDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTEntityCustomizationEntityCreateOrUpdate1Call(customEntityTemplateDto, _callback);
        return localVarCall;

    }

    /**
     *  Define new or update existing custom entity template definition  
     *  Define new or update existing custom entity template definition  
     * @param customEntityTemplateDto  dto The custom entity instance&#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 pOSTEntityCustomizationEntityCreateOrUpdate1(CustomEntityTemplateDto customEntityTemplateDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTEntityCustomizationEntityCreateOrUpdate1WithHttpInfo(customEntityTemplateDto);
        return localVarResp.getData();
    }

    /**
     *  Define new or update existing custom entity template definition  
     *  Define new or update existing custom entity template definition  
     * @param customEntityTemplateDto  dto The custom entity instance&#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> pOSTEntityCustomizationEntityCreateOrUpdate1WithHttpInfo(CustomEntityTemplateDto customEntityTemplateDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTEntityCustomizationEntityCreateOrUpdate1ValidateBeforeCall(customEntityTemplateDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Define new or update existing custom entity template definition   (asynchronously)
     *  Define new or update existing custom entity template definition  
     * @param customEntityTemplateDto  dto The custom entity instance&#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 pOSTEntityCustomizationEntityCreateOrUpdate1Async(CustomEntityTemplateDto customEntityTemplateDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTEntityCustomizationEntityCreateOrUpdate1ValidateBeforeCall(customEntityTemplateDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTEntityCustomizationField1
     * @param customFieldTemplateDto  postData posted data to API  (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 pOSTEntityCustomizationField1Call(CustomFieldTemplateDto customFieldTemplateDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = customFieldTemplateDto;

        // create path and map variables
        String localVarPath = "/entityCustomization/field";

        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 pOSTEntityCustomizationField1ValidateBeforeCall(CustomFieldTemplateDto customFieldTemplateDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTEntityCustomizationField1Call(customFieldTemplateDto, _callback);
        return localVarCall;

    }

    /**
     *  Define a new custom field  
     *  Define a new custom field  
     * @param customFieldTemplateDto  postData posted data to API  (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 pOSTEntityCustomizationField1(CustomFieldTemplateDto customFieldTemplateDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTEntityCustomizationField1WithHttpInfo(customFieldTemplateDto);
        return localVarResp.getData();
    }

    /**
     *  Define a new custom field  
     *  Define a new custom field  
     * @param customFieldTemplateDto  postData posted data to API  (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> pOSTEntityCustomizationField1WithHttpInfo(CustomFieldTemplateDto customFieldTemplateDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTEntityCustomizationField1ValidateBeforeCall(customFieldTemplateDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Define a new custom field   (asynchronously)
     *  Define a new custom field  
     * @param customFieldTemplateDto  postData posted data to API  (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 pOSTEntityCustomizationField1Async(CustomFieldTemplateDto customFieldTemplateDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTEntityCustomizationField1ValidateBeforeCall(customFieldTemplateDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTEntityCustomizationFieldActionCodeAppliesToDisable1
     * @param actionCode  actionCode Entity action code  (required)
     * @param appliesTo  appliesTo Entity it applies to  (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 pOSTEntityCustomizationFieldActionCodeAppliesToDisable1Call(String actionCode, String appliesTo, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/entityCustomization/field/{actionCode}/{appliesTo}/disable"
            .replaceAll("\\{" + "actionCode" + "\\}", localVarApiClient.escapeString(actionCode.toString()))
            .replaceAll("\\{" + "appliesTo" + "\\}", localVarApiClient.escapeString(appliesTo.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, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

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

        okhttp3.Call localVarCall = pOSTEntityCustomizationFieldActionCodeAppliesToDisable1Call(actionCode, appliesTo, _callback);
        return localVarCall;

    }

    /**
     *  Disable a Entity action with a given code  
     *  Disable a Entity action with a given code  
     * @param actionCode  actionCode Entity action code  (required)
     * @param appliesTo  appliesTo Entity it applies to  (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 pOSTEntityCustomizationFieldActionCodeAppliesToDisable1(String actionCode, String appliesTo) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTEntityCustomizationFieldActionCodeAppliesToDisable1WithHttpInfo(actionCode, appliesTo);
        return localVarResp.getData();
    }

    /**
     *  Disable a Entity action with a given code  
     *  Disable a Entity action with a given code  
     * @param actionCode  actionCode Entity action code  (required)
     * @param appliesTo  appliesTo Entity it applies to  (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> pOSTEntityCustomizationFieldActionCodeAppliesToDisable1WithHttpInfo(String actionCode, String appliesTo) throws ApiException {
        okhttp3.Call localVarCall = pOSTEntityCustomizationFieldActionCodeAppliesToDisable1ValidateBeforeCall(actionCode, appliesTo, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Disable a Entity action with a given code   (asynchronously)
     *  Disable a Entity action with a given code  
     * @param actionCode  actionCode Entity action code  (required)
     * @param appliesTo  appliesTo Entity it applies to  (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 pOSTEntityCustomizationFieldActionCodeAppliesToDisable1Async(String actionCode, String appliesTo, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTEntityCustomizationFieldActionCodeAppliesToDisable1ValidateBeforeCall(actionCode, appliesTo, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTEntityCustomizationFieldActionCodeAppliesToEnable1
     * @param actionCode  actionCode Custom field template code  (required)
     * @param appliesTo  appliesTo Entity it applies to  (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 pOSTEntityCustomizationFieldActionCodeAppliesToEnable1Call(String actionCode, String appliesTo, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/entityCustomization/field/{actionCode}/{appliesTo}/enable"
            .replaceAll("\\{" + "actionCode" + "\\}", localVarApiClient.escapeString(actionCode.toString()))
            .replaceAll("\\{" + "appliesTo" + "\\}", localVarApiClient.escapeString(appliesTo.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, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

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

        okhttp3.Call localVarCall = pOSTEntityCustomizationFieldActionCodeAppliesToEnable1Call(actionCode, appliesTo, _callback);
        return localVarCall;

    }

    /**
     *  Enable a Entity action with a given code  
     *  Enable a Entity action with a given code  
     * @param actionCode  actionCode Custom field template code  (required)
     * @param appliesTo  appliesTo Entity it applies to  (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 pOSTEntityCustomizationFieldActionCodeAppliesToEnable1(String actionCode, String appliesTo) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTEntityCustomizationFieldActionCodeAppliesToEnable1WithHttpInfo(actionCode, appliesTo);
        return localVarResp.getData();
    }

    /**
     *  Enable a Entity action with a given code  
     *  Enable a Entity action with a given code  
     * @param actionCode  actionCode Custom field template code  (required)
     * @param appliesTo  appliesTo Entity it applies to  (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> pOSTEntityCustomizationFieldActionCodeAppliesToEnable1WithHttpInfo(String actionCode, String appliesTo) throws ApiException {
        okhttp3.Call localVarCall = pOSTEntityCustomizationFieldActionCodeAppliesToEnable1ValidateBeforeCall(actionCode, appliesTo, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Enable a Entity action with a given code   (asynchronously)
     *  Enable a Entity action with a given code  
     * @param actionCode  actionCode Custom field template code  (required)
     * @param appliesTo  appliesTo Entity it applies to  (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 pOSTEntityCustomizationFieldActionCodeAppliesToEnable1Async(String actionCode, String appliesTo, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTEntityCustomizationFieldActionCodeAppliesToEnable1ValidateBeforeCall(actionCode, appliesTo, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTEntityCustomizationFieldCreateOrUpdate1
     * @param customFieldTemplateDto  postData posted data to API  (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 pOSTEntityCustomizationFieldCreateOrUpdate1Call(CustomFieldTemplateDto customFieldTemplateDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = customFieldTemplateDto;

        // create path and map variables
        String localVarPath = "/entityCustomization/field/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 pOSTEntityCustomizationFieldCreateOrUpdate1ValidateBeforeCall(CustomFieldTemplateDto customFieldTemplateDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTEntityCustomizationFieldCreateOrUpdate1Call(customFieldTemplateDto, _callback);
        return localVarCall;

    }

    /**
     *  Define new or update existing custom field definition  
     *  Define new or update existing custom field definition  
     * @param customFieldTemplateDto  postData posted data to API  (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 pOSTEntityCustomizationFieldCreateOrUpdate1(CustomFieldTemplateDto customFieldTemplateDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTEntityCustomizationFieldCreateOrUpdate1WithHttpInfo(customFieldTemplateDto);
        return localVarResp.getData();
    }

    /**
     *  Define new or update existing custom field definition  
     *  Define new or update existing custom field definition  
     * @param customFieldTemplateDto  postData posted data to API  (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> pOSTEntityCustomizationFieldCreateOrUpdate1WithHttpInfo(CustomFieldTemplateDto customFieldTemplateDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTEntityCustomizationFieldCreateOrUpdate1ValidateBeforeCall(customFieldTemplateDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Define new or update existing custom field definition   (asynchronously)
     *  Define new or update existing custom field definition  
     * @param customFieldTemplateDto  postData posted data to API  (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 pOSTEntityCustomizationFieldCreateOrUpdate1Async(CustomFieldTemplateDto customFieldTemplateDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTEntityCustomizationFieldCreateOrUpdate1ValidateBeforeCall(customFieldTemplateDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTEntityCustomizationFieldCustomFieldTemplateCodeAppliesToDisable1
     * @param customFieldTemplateCode  customFieldTemplateCode Custom field template code  (required)
     * @param appliesTo  appliesTo Entity it applies to  (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 pOSTEntityCustomizationFieldCustomFieldTemplateCodeAppliesToDisable1Call(String customFieldTemplateCode, String appliesTo, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/entityCustomization/field/{customFieldTemplateCode}/{appliesTo}/disable"
            .replaceAll("\\{" + "customFieldTemplateCode" + "\\}", localVarApiClient.escapeString(customFieldTemplateCode.toString()))
            .replaceAll("\\{" + "appliesTo" + "\\}", localVarApiClient.escapeString(appliesTo.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, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

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

        okhttp3.Call localVarCall = pOSTEntityCustomizationFieldCustomFieldTemplateCodeAppliesToDisable1Call(customFieldTemplateCode, appliesTo, _callback);
        return localVarCall;

    }

    /**
     *  Disable a Custom field template with a given code  
     *  Disable a Custom field template with a given code  
     * @param customFieldTemplateCode  customFieldTemplateCode Custom field template code  (required)
     * @param appliesTo  appliesTo Entity it applies to  (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 pOSTEntityCustomizationFieldCustomFieldTemplateCodeAppliesToDisable1(String customFieldTemplateCode, String appliesTo) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTEntityCustomizationFieldCustomFieldTemplateCodeAppliesToDisable1WithHttpInfo(customFieldTemplateCode, appliesTo);
        return localVarResp.getData();
    }

    /**
     *  Disable a Custom field template with a given code  
     *  Disable a Custom field template with a given code  
     * @param customFieldTemplateCode  customFieldTemplateCode Custom field template code  (required)
     * @param appliesTo  appliesTo Entity it applies to  (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> pOSTEntityCustomizationFieldCustomFieldTemplateCodeAppliesToDisable1WithHttpInfo(String customFieldTemplateCode, String appliesTo) throws ApiException {
        okhttp3.Call localVarCall = pOSTEntityCustomizationFieldCustomFieldTemplateCodeAppliesToDisable1ValidateBeforeCall(customFieldTemplateCode, appliesTo, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Disable a Custom field template with a given code   (asynchronously)
     *  Disable a Custom field template with a given code  
     * @param customFieldTemplateCode  customFieldTemplateCode Custom field template code  (required)
     * @param appliesTo  appliesTo Entity it applies to  (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 pOSTEntityCustomizationFieldCustomFieldTemplateCodeAppliesToDisable1Async(String customFieldTemplateCode, String appliesTo, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTEntityCustomizationFieldCustomFieldTemplateCodeAppliesToDisable1ValidateBeforeCall(customFieldTemplateCode, appliesTo, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTEntityCustomizationFieldCustomFieldTemplateCodeAppliesToEnable1
     * @param customFieldTemplateCode  customFieldTemplateCode Custom field template code  (required)
     * @param appliesTo  appliesTo Entity it applies to  (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 pOSTEntityCustomizationFieldCustomFieldTemplateCodeAppliesToEnable1Call(String customFieldTemplateCode, String appliesTo, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/entityCustomization/field/{customFieldTemplateCode}/{appliesTo}/enable"
            .replaceAll("\\{" + "customFieldTemplateCode" + "\\}", localVarApiClient.escapeString(customFieldTemplateCode.toString()))
            .replaceAll("\\{" + "appliesTo" + "\\}", localVarApiClient.escapeString(appliesTo.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, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

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

        okhttp3.Call localVarCall = pOSTEntityCustomizationFieldCustomFieldTemplateCodeAppliesToEnable1Call(customFieldTemplateCode, appliesTo, _callback);
        return localVarCall;

    }

    /**
     *  Enable a Custom field template with a given code  
     *  Enable a Custom field template with a given code  
     * @param customFieldTemplateCode  customFieldTemplateCode Custom field template code  (required)
     * @param appliesTo  appliesTo Entity it applies to  (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 pOSTEntityCustomizationFieldCustomFieldTemplateCodeAppliesToEnable1(String customFieldTemplateCode, String appliesTo) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTEntityCustomizationFieldCustomFieldTemplateCodeAppliesToEnable1WithHttpInfo(customFieldTemplateCode, appliesTo);
        return localVarResp.getData();
    }

    /**
     *  Enable a Custom field template with a given code  
     *  Enable a Custom field template with a given code  
     * @param customFieldTemplateCode  customFieldTemplateCode Custom field template code  (required)
     * @param appliesTo  appliesTo Entity it applies to  (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> pOSTEntityCustomizationFieldCustomFieldTemplateCodeAppliesToEnable1WithHttpInfo(String customFieldTemplateCode, String appliesTo) throws ApiException {
        okhttp3.Call localVarCall = pOSTEntityCustomizationFieldCustomFieldTemplateCodeAppliesToEnable1ValidateBeforeCall(customFieldTemplateCode, appliesTo, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Enable a Custom field template with a given code   (asynchronously)
     *  Enable a Custom field template with a given code  
     * @param customFieldTemplateCode  customFieldTemplateCode Custom field template code  (required)
     * @param appliesTo  appliesTo Entity it applies to  (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 pOSTEntityCustomizationFieldCustomFieldTemplateCodeAppliesToEnable1Async(String customFieldTemplateCode, String appliesTo, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTEntityCustomizationFieldCustomFieldTemplateCodeAppliesToEnable1ValidateBeforeCall(customFieldTemplateCode, appliesTo, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pUTEntityCustomizationAction1
     * @param entityCustomActionDto  dto posted data to API  (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 pUTEntityCustomizationAction1Call(EntityCustomActionDto entityCustomActionDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = entityCustomActionDto;

        // create path and map variables
        String localVarPath = "/entityCustomization/action";

        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 pUTEntityCustomizationAction1ValidateBeforeCall(EntityCustomActionDto entityCustomActionDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pUTEntityCustomizationAction1Call(entityCustomActionDto, _callback);
        return localVarCall;

    }

    /**
     *  Update existing entity action definition  
     *  Update existing entity action definition  
     * @param entityCustomActionDto  dto posted data to API  (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 pUTEntityCustomizationAction1(EntityCustomActionDto entityCustomActionDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pUTEntityCustomizationAction1WithHttpInfo(entityCustomActionDto);
        return localVarResp.getData();
    }

    /**
     *  Update existing entity action definition  
     *  Update existing entity action definition  
     * @param entityCustomActionDto  dto posted data to API  (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> pUTEntityCustomizationAction1WithHttpInfo(EntityCustomActionDto entityCustomActionDto) throws ApiException {
        okhttp3.Call localVarCall = pUTEntityCustomizationAction1ValidateBeforeCall(entityCustomActionDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Update existing entity action definition   (asynchronously)
     *  Update existing entity action definition  
     * @param entityCustomActionDto  dto posted data to API  (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 pUTEntityCustomizationAction1Async(EntityCustomActionDto entityCustomActionDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pUTEntityCustomizationAction1ValidateBeforeCall(entityCustomActionDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pUTEntityCustomizationCustomize1
     * @param entityCustomizationDto  dto The custom entity instance&#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 pUTEntityCustomizationCustomize1Call(EntityCustomizationDto entityCustomizationDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = entityCustomizationDto;

        // create path and map variables
        String localVarPath = "/entityCustomization/customize";

        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 pUTEntityCustomizationCustomize1ValidateBeforeCall(EntityCustomizationDto entityCustomizationDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pUTEntityCustomizationCustomize1Call(entityCustomizationDto, _callback);
        return localVarCall;

    }

    /**
     *  Customize a standard Meveo entity definition by adding fields and/or custom actions  
     *  Customize a standard Meveo entity definition by adding fields and/or custom actions  
     * @param entityCustomizationDto  dto The custom entity instance&#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 pUTEntityCustomizationCustomize1(EntityCustomizationDto entityCustomizationDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pUTEntityCustomizationCustomize1WithHttpInfo(entityCustomizationDto);
        return localVarResp.getData();
    }

    /**
     *  Customize a standard Meveo entity definition by adding fields and/or custom actions  
     *  Customize a standard Meveo entity definition by adding fields and/or custom actions  
     * @param entityCustomizationDto  dto The custom entity instance&#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> pUTEntityCustomizationCustomize1WithHttpInfo(EntityCustomizationDto entityCustomizationDto) throws ApiException {
        okhttp3.Call localVarCall = pUTEntityCustomizationCustomize1ValidateBeforeCall(entityCustomizationDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Customize a standard Meveo entity definition by adding fields and/or custom actions   (asynchronously)
     *  Customize a standard Meveo entity definition by adding fields and/or custom actions  
     * @param entityCustomizationDto  dto The custom entity instance&#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 pUTEntityCustomizationCustomize1Async(EntityCustomizationDto entityCustomizationDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pUTEntityCustomizationCustomize1ValidateBeforeCall(entityCustomizationDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pUTEntityCustomizationEntity1
     * @param customEntityTemplateDto  dto The custom entity instance&#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 pUTEntityCustomizationEntity1Call(CustomEntityTemplateDto customEntityTemplateDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = customEntityTemplateDto;

        // create path and map variables
        String localVarPath = "/entityCustomization/entity";

        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 pUTEntityCustomizationEntity1ValidateBeforeCall(CustomEntityTemplateDto customEntityTemplateDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pUTEntityCustomizationEntity1Call(customEntityTemplateDto, _callback);
        return localVarCall;

    }

    /**
     *  Update custom entity template definition  
     *  Update custom entity template definition  
     * @param customEntityTemplateDto  dto The custom entity instance&#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 pUTEntityCustomizationEntity1(CustomEntityTemplateDto customEntityTemplateDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pUTEntityCustomizationEntity1WithHttpInfo(customEntityTemplateDto);
        return localVarResp.getData();
    }

    /**
     *  Update custom entity template definition  
     *  Update custom entity template definition  
     * @param customEntityTemplateDto  dto The custom entity instance&#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> pUTEntityCustomizationEntity1WithHttpInfo(CustomEntityTemplateDto customEntityTemplateDto) throws ApiException {
        okhttp3.Call localVarCall = pUTEntityCustomizationEntity1ValidateBeforeCall(customEntityTemplateDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Update custom entity template definition   (asynchronously)
     *  Update custom entity template definition  
     * @param customEntityTemplateDto  dto The custom entity instance&#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 pUTEntityCustomizationEntity1Async(CustomEntityTemplateDto customEntityTemplateDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pUTEntityCustomizationEntity1ValidateBeforeCall(customEntityTemplateDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pUTEntityCustomizationField1
     * @param customFieldTemplateDto  postData posted data to API  (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 pUTEntityCustomizationField1Call(CustomFieldTemplateDto customFieldTemplateDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = customFieldTemplateDto;

        // create path and map variables
        String localVarPath = "/entityCustomization/field";

        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 pUTEntityCustomizationField1ValidateBeforeCall(CustomFieldTemplateDto customFieldTemplateDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pUTEntityCustomizationField1Call(customFieldTemplateDto, _callback);
        return localVarCall;

    }

    /**
     *  Update existing custom field definition  
     *  Update existing custom field definition  
     * @param customFieldTemplateDto  postData posted data to API  (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 pUTEntityCustomizationField1(CustomFieldTemplateDto customFieldTemplateDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pUTEntityCustomizationField1WithHttpInfo(customFieldTemplateDto);
        return localVarResp.getData();
    }

    /**
     *  Update existing custom field definition  
     *  Update existing custom field definition  
     * @param customFieldTemplateDto  postData posted data to API  (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> pUTEntityCustomizationField1WithHttpInfo(CustomFieldTemplateDto customFieldTemplateDto) throws ApiException {
        okhttp3.Call localVarCall = pUTEntityCustomizationField1ValidateBeforeCall(customFieldTemplateDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Update existing custom field definition   (asynchronously)
     *  Update existing custom field definition  
     * @param customFieldTemplateDto  postData posted data to API  (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 pUTEntityCustomizationField1Async(CustomFieldTemplateDto customFieldTemplateDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

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

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

        okhttp3.Call localVarCall = user42Call(_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 user42() throws ApiException {
        ApiResponse<ActionStatus> localVarResp = user42WithHttpInfo();
        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> user42WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = user42ValidateBeforeCall(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 user42Async(final ApiCallback<ActionStatus> _callback) throws ApiException {

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