/*
 * 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.RevenueRecognitionRuleDto;
import org.openapitools.client.model.RevenueRecognitionRuleDtoResponse;
import org.openapitools.client.model.RevenueRecognitionRuleDtosResponse;

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

public class RevenueRecognitionRulesApi {
    private ApiClient localVarApiClient;

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

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

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

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

    /**
     * Build call for dELETERevenueRecognitionRulesRevenueRecognitionRuleCode1
     * @param revenueRecognitionRuleCode  revenueRecognitionRuleCode The revenue recognition rule&#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 dELETERevenueRecognitionRulesRevenueRecognitionRuleCode1Call(String revenueRecognitionRuleCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

        okhttp3.Call localVarCall = dELETERevenueRecognitionRulesRevenueRecognitionRuleCode1Call(revenueRecognitionRuleCode, _callback);
        return localVarCall;

    }

    /**
     *  Remove an existing revenue recognition rule with a given code  
     *  Remove an existing revenue recognition rule with a given code  
     * @param revenueRecognitionRuleCode  revenueRecognitionRuleCode The revenue recognition rule&#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 dELETERevenueRecognitionRulesRevenueRecognitionRuleCode1(String revenueRecognitionRuleCode) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = dELETERevenueRecognitionRulesRevenueRecognitionRuleCode1WithHttpInfo(revenueRecognitionRuleCode);
        return localVarResp.getData();
    }

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

    /**
     *  Remove an existing revenue recognition rule with a given code   (asynchronously)
     *  Remove an existing revenue recognition rule with a given code  
     * @param revenueRecognitionRuleCode  revenueRecognitionRuleCode The revenue recognition rule&#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 dELETERevenueRecognitionRulesRevenueRecognitionRuleCode1Async(String revenueRecognitionRuleCode, final ApiCallback<ActionStatus> _callback) throws ApiException {

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

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

        okhttp3.Call localVarCall = gETIBaseVersion92Call(_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 gETIBaseVersion92() throws ApiException {
        ApiResponse<ActionStatus> localVarResp = gETIBaseVersion92WithHttpInfo();
        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> gETIBaseVersion92WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = gETIBaseVersion92ValidateBeforeCall(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 gETIBaseVersion92Async(final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETIBaseVersion92ValidateBeforeCall(_callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETRevenueRecognitionRulesSearch1
     * @param revenueRecognitionRuleCode  revenueRecognitionRuleCode The revenue recognition rule&#39;s code  (optional)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Revenue recognition rules results  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETRevenueRecognitionRulesSearch1Call(String revenueRecognitionRuleCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/revenueRecognitionRule";

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

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

        okhttp3.Call localVarCall = gETRevenueRecognitionRulesSearch1Call(revenueRecognitionRuleCode, _callback);
        return localVarCall;

    }

    /**
     *  Find a revenue recognition rule with a given code  
     *  Find a revenue recognition rule with a given code  
     * @param revenueRecognitionRuleCode  revenueRecognitionRuleCode The revenue recognition rule&#39;s code  (optional)
     * @return RevenueRecognitionRuleDtoResponse
     * @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>  Revenue recognition rules results  </td><td>  -  </td></tr>
     </table>
     */
    public RevenueRecognitionRuleDtoResponse gETRevenueRecognitionRulesSearch1(String revenueRecognitionRuleCode) throws ApiException {
        ApiResponse<RevenueRecognitionRuleDtoResponse> localVarResp = gETRevenueRecognitionRulesSearch1WithHttpInfo(revenueRecognitionRuleCode);
        return localVarResp.getData();
    }

    /**
     *  Find a revenue recognition rule with a given code  
     *  Find a revenue recognition rule with a given code  
     * @param revenueRecognitionRuleCode  revenueRecognitionRuleCode The revenue recognition rule&#39;s code  (optional)
     * @return ApiResponse&lt;RevenueRecognitionRuleDtoResponse&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>  Revenue recognition rules results  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<RevenueRecognitionRuleDtoResponse> gETRevenueRecognitionRulesSearch1WithHttpInfo(String revenueRecognitionRuleCode) throws ApiException {
        okhttp3.Call localVarCall = gETRevenueRecognitionRulesSearch1ValidateBeforeCall(revenueRecognitionRuleCode, null);
        Type localVarReturnType = new TypeToken<RevenueRecognitionRuleDtoResponse>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Find a revenue recognition rule with a given code   (asynchronously)
     *  Find a revenue recognition rule with a given code  
     * @param revenueRecognitionRuleCode  revenueRecognitionRuleCode The revenue recognition rule&#39;s code  (optional)
     * @param _callback The callback to be executed when the API call finishes
     * @return The request call
     * @throws ApiException If fail to process the API call, e.g. serializing the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Revenue recognition rules results  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETRevenueRecognitionRulesSearch1Async(String revenueRecognitionRuleCode, final ApiCallback<RevenueRecognitionRuleDtoResponse> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETRevenueRecognitionRulesSearch1ValidateBeforeCall(revenueRecognitionRuleCode, _callback);
        Type localVarReturnType = new TypeToken<RevenueRecognitionRuleDtoResponse>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTRevenueRecognitionRulesCodeDisable1
     * @param code  code Revenue recognition rule 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 pOSTRevenueRecognitionRulesCodeDisable1Call(String code, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/revenueRecognitionRule/{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 pOSTRevenueRecognitionRulesCodeDisable1ValidateBeforeCall(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 pOSTRevenueRecognitionRulesCodeDisable1(Async)");
        }
        

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

    }

    /**
     *  Disable a Revenue recognition rule with a given code  
     *  Disable a Revenue recognition rule with a given code  
     * @param code  code Revenue recognition rule 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 pOSTRevenueRecognitionRulesCodeDisable1(String code) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTRevenueRecognitionRulesCodeDisable1WithHttpInfo(code);
        return localVarResp.getData();
    }

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

    /**
     *  Disable a Revenue recognition rule with a given code   (asynchronously)
     *  Disable a Revenue recognition rule with a given code  
     * @param code  code Revenue recognition rule 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 pOSTRevenueRecognitionRulesCodeDisable1Async(String code, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTRevenueRecognitionRulesCodeDisable1ValidateBeforeCall(code, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTRevenueRecognitionRulesCodeEnable1
     * @param code  code Revenue recognition rule 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 pOSTRevenueRecognitionRulesCodeEnable1Call(String code, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/revenueRecognitionRule/{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 pOSTRevenueRecognitionRulesCodeEnable1ValidateBeforeCall(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 pOSTRevenueRecognitionRulesCodeEnable1(Async)");
        }
        

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

    }

    /**
     *  Enable a Revenue recognition rule with a given code  
     *  Enable a Revenue recognition rule with a given code  
     * @param code  code Revenue recognition rule 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 pOSTRevenueRecognitionRulesCodeEnable1(String code) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTRevenueRecognitionRulesCodeEnable1WithHttpInfo(code);
        return localVarResp.getData();
    }

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

    /**
     *  Enable a Revenue recognition rule with a given code   (asynchronously)
     *  Enable a Revenue recognition rule with a given code  
     * @param code  code Revenue recognition rule 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 pOSTRevenueRecognitionRulesCodeEnable1Async(String code, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTRevenueRecognitionRulesCodeEnable1ValidateBeforeCall(code, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTRevenueRecognitionRulesCreate1
     * @param revenueRecognitionRuleDto  postData The revenue recognition rule&#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 pOSTRevenueRecognitionRulesCreate1Call(RevenueRecognitionRuleDto revenueRecognitionRuleDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = revenueRecognitionRuleDto;

        // create path and map variables
        String localVarPath = "/revenueRecognitionRule";

        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 pOSTRevenueRecognitionRulesCreate1ValidateBeforeCall(RevenueRecognitionRuleDto revenueRecognitionRuleDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTRevenueRecognitionRulesCreate1Call(revenueRecognitionRuleDto, _callback);
        return localVarCall;

    }

    /**
     *  Create a new revenue recognition rule  
     *  Create a new revenue recognition rule  
     * @param revenueRecognitionRuleDto  postData The revenue recognition rule&#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 pOSTRevenueRecognitionRulesCreate1(RevenueRecognitionRuleDto revenueRecognitionRuleDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTRevenueRecognitionRulesCreate1WithHttpInfo(revenueRecognitionRuleDto);
        return localVarResp.getData();
    }

    /**
     *  Create a new revenue recognition rule  
     *  Create a new revenue recognition rule  
     * @param revenueRecognitionRuleDto  postData The revenue recognition rule&#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> pOSTRevenueRecognitionRulesCreate1WithHttpInfo(RevenueRecognitionRuleDto revenueRecognitionRuleDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTRevenueRecognitionRulesCreate1ValidateBeforeCall(revenueRecognitionRuleDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create a new revenue recognition rule   (asynchronously)
     *  Create a new revenue recognition rule  
     * @param revenueRecognitionRuleDto  postData The revenue recognition rule&#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 pOSTRevenueRecognitionRulesCreate1Async(RevenueRecognitionRuleDto revenueRecognitionRuleDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTRevenueRecognitionRulesCreate1ValidateBeforeCall(revenueRecognitionRuleDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTRevenueRecognitionRulesCreateOrUpdate1
     * @param revenueRecognitionRuleDto  postData The revenue recognition rule&#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 pOSTRevenueRecognitionRulesCreateOrUpdate1Call(RevenueRecognitionRuleDto revenueRecognitionRuleDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = revenueRecognitionRuleDto;

        // create path and map variables
        String localVarPath = "/revenueRecognitionRule/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 pOSTRevenueRecognitionRulesCreateOrUpdate1ValidateBeforeCall(RevenueRecognitionRuleDto revenueRecognitionRuleDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTRevenueRecognitionRulesCreateOrUpdate1Call(revenueRecognitionRuleDto, _callback);
        return localVarCall;

    }

    /**
     *  Create new or update an existing revenue recognition rule with a given code  
     *  Create new or update an existing revenue recognition rule with a given code  
     * @param revenueRecognitionRuleDto  postData The revenue recognition rule&#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 pOSTRevenueRecognitionRulesCreateOrUpdate1(RevenueRecognitionRuleDto revenueRecognitionRuleDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTRevenueRecognitionRulesCreateOrUpdate1WithHttpInfo(revenueRecognitionRuleDto);
        return localVarResp.getData();
    }

    /**
     *  Create new or update an existing revenue recognition rule with a given code  
     *  Create new or update an existing revenue recognition rule with a given code  
     * @param revenueRecognitionRuleDto  postData The revenue recognition rule&#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> pOSTRevenueRecognitionRulesCreateOrUpdate1WithHttpInfo(RevenueRecognitionRuleDto revenueRecognitionRuleDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTRevenueRecognitionRulesCreateOrUpdate1ValidateBeforeCall(revenueRecognitionRuleDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create new or update an existing revenue recognition rule with a given code   (asynchronously)
     *  Create new or update an existing revenue recognition rule with a given code  
     * @param revenueRecognitionRuleDto  postData The revenue recognition rule&#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 pOSTRevenueRecognitionRulesCreateOrUpdate1Async(RevenueRecognitionRuleDto revenueRecognitionRuleDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTRevenueRecognitionRulesCreateOrUpdate1ValidateBeforeCall(revenueRecognitionRuleDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTRevenueRecognitionRulesList1
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  A list of revenue recognition rules  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTRevenueRecognitionRulesList1Call(final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

        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 pOSTRevenueRecognitionRulesList1ValidateBeforeCall(final ApiCallback _callback) throws ApiException {
        

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

    }

    /**
     *  List of revenue recognition rules.  
     *  List of revenue recognition rules.  
     * @return RevenueRecognitionRuleDtosResponse
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  A list of revenue recognition rules  </td><td>  -  </td></tr>
     </table>
     */
    public RevenueRecognitionRuleDtosResponse pOSTRevenueRecognitionRulesList1() throws ApiException {
        ApiResponse<RevenueRecognitionRuleDtosResponse> localVarResp = pOSTRevenueRecognitionRulesList1WithHttpInfo();
        return localVarResp.getData();
    }

    /**
     *  List of revenue recognition rules.  
     *  List of revenue recognition rules.  
     * @return ApiResponse&lt;RevenueRecognitionRuleDtosResponse&gt;
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  A list of revenue recognition rules  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<RevenueRecognitionRuleDtosResponse> pOSTRevenueRecognitionRulesList1WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = pOSTRevenueRecognitionRulesList1ValidateBeforeCall(null);
        Type localVarReturnType = new TypeToken<RevenueRecognitionRuleDtosResponse>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  List of revenue recognition rules.   (asynchronously)
     *  List of revenue recognition rules.  
     * @param _callback The callback to be executed when the API call finishes
     * @return The request call
     * @throws ApiException If fail to process the API call, e.g. serializing the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  A list of revenue recognition rules  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTRevenueRecognitionRulesList1Async(final ApiCallback<RevenueRecognitionRuleDtosResponse> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTRevenueRecognitionRulesList1ValidateBeforeCall(_callback);
        Type localVarReturnType = new TypeToken<RevenueRecognitionRuleDtosResponse>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pUTRevenueRecognitionRulesUpdate1
     * @param revenueRecognitionRuleDto  postData The revenue recognition rule&#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 pUTRevenueRecognitionRulesUpdate1Call(RevenueRecognitionRuleDto revenueRecognitionRuleDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = revenueRecognitionRuleDto;

        // create path and map variables
        String localVarPath = "/revenueRecognitionRule";

        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 pUTRevenueRecognitionRulesUpdate1ValidateBeforeCall(RevenueRecognitionRuleDto revenueRecognitionRuleDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pUTRevenueRecognitionRulesUpdate1Call(revenueRecognitionRuleDto, _callback);
        return localVarCall;

    }

    /**
     *  Update an existing revenue recognition rule  
     *  Update an existing revenue recognition rule  
     * @param revenueRecognitionRuleDto  postData The revenue recognition rule&#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 pUTRevenueRecognitionRulesUpdate1(RevenueRecognitionRuleDto revenueRecognitionRuleDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pUTRevenueRecognitionRulesUpdate1WithHttpInfo(revenueRecognitionRuleDto);
        return localVarResp.getData();
    }

    /**
     *  Update an existing revenue recognition rule  
     *  Update an existing revenue recognition rule  
     * @param revenueRecognitionRuleDto  postData The revenue recognition rule&#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> pUTRevenueRecognitionRulesUpdate1WithHttpInfo(RevenueRecognitionRuleDto revenueRecognitionRuleDto) throws ApiException {
        okhttp3.Call localVarCall = pUTRevenueRecognitionRulesUpdate1ValidateBeforeCall(revenueRecognitionRuleDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Update an existing revenue recognition rule   (asynchronously)
     *  Update an existing revenue recognition rule  
     * @param revenueRecognitionRuleDto  postData The revenue recognition rule&#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 pUTRevenueRecognitionRulesUpdate1Async(RevenueRecognitionRuleDto revenueRecognitionRuleDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

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

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

        okhttp3.Call localVarCall = user93Call(_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 user93() throws ApiException {
        ApiResponse<ActionStatus> localVarResp = user93WithHttpInfo();
        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> user93WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = user93ValidateBeforeCall(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 user93Async(final ApiCallback<ActionStatus> _callback) throws ApiException {

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