/*
 * 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.BusinessOfferModelDto;
import org.openapitools.client.model.GetBusinessOfferModelResponseDto;
import org.openapitools.client.model.MeveoModuleDtosResponse;
import org.openapitools.client.model.PagingAndFiltering;

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

public class BusinessOfferModelApi {
    private ApiClient localVarApiClient;

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

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

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

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

    /**
     * Build call for dELETEBusinessOfferModelBusinessOfferModelCode1
     * @param businessOfferModelCode  businessOfferModelCode The business offer model&#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 dELETEBusinessOfferModelBusinessOfferModelCode1Call(String businessOfferModelCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

        okhttp3.Call localVarCall = dELETEBusinessOfferModelBusinessOfferModelCode1Call(businessOfferModelCode, _callback);
        return localVarCall;

    }

    /**
     *  Remove an existing business offer model with a given code.  
     *  Remove an existing business offer model with a given code.  
     * @param businessOfferModelCode  businessOfferModelCode The business offer model&#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 dELETEBusinessOfferModelBusinessOfferModelCode1(String businessOfferModelCode) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = dELETEBusinessOfferModelBusinessOfferModelCode1WithHttpInfo(businessOfferModelCode);
        return localVarResp.getData();
    }

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

    /**
     *  Remove an existing business offer model with a given code.   (asynchronously)
     *  Remove an existing business offer model with a given code.  
     * @param businessOfferModelCode  businessOfferModelCode The business offer model&#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 dELETEBusinessOfferModelBusinessOfferModelCode1Async(String businessOfferModelCode, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = dELETEBusinessOfferModelBusinessOfferModelCode1ValidateBeforeCall(businessOfferModelCode, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETBusinessOfferModelList1
     * @param query  query Search criteria  (optional)
     * @param fields  fields Data retrieval options/fieldnames separated by a comma  (optional)
     * @param offset  offset Pagination - from record number  (optional)
     * @param limit  limit Pagination - number of records to retrieve  (optional)
     * @param sortBy  sortBy Sorting - field to sort by - a field from a main entity being searched. See Data model for a list of fields.  (optional, default to &quot;code&quot;)
     * @param sortOrder  sortOrder Sorting - sort order.  (optional, default to ASCENDING)
     * @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 business offer models  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETBusinessOfferModelList1Call(String query, String fields, Integer offset, Integer limit, String sortBy, String sortOrder, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

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

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

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

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

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

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

        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 gETBusinessOfferModelList1ValidateBeforeCall(String query, String fields, Integer offset, Integer limit, String sortBy, String sortOrder, final ApiCallback _callback) throws ApiException {
        

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

    }

    /**
     *  List business offer models. 
     *  List business offer models. 
     * @param query  query Search criteria  (optional)
     * @param fields  fields Data retrieval options/fieldnames separated by a comma  (optional)
     * @param offset  offset Pagination - from record number  (optional)
     * @param limit  limit Pagination - number of records to retrieve  (optional)
     * @param sortBy  sortBy Sorting - field to sort by - a field from a main entity being searched. See Data model for a list of fields.  (optional, default to &quot;code&quot;)
     * @param sortOrder  sortOrder Sorting - sort order.  (optional, default to ASCENDING)
     * @return MeveoModuleDtosResponse
     * @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 business offer models  </td><td>  -  </td></tr>
     </table>
     */
    public MeveoModuleDtosResponse gETBusinessOfferModelList1(String query, String fields, Integer offset, Integer limit, String sortBy, String sortOrder) throws ApiException {
        ApiResponse<MeveoModuleDtosResponse> localVarResp = gETBusinessOfferModelList1WithHttpInfo(query, fields, offset, limit, sortBy, sortOrder);
        return localVarResp.getData();
    }

    /**
     *  List business offer models. 
     *  List business offer models. 
     * @param query  query Search criteria  (optional)
     * @param fields  fields Data retrieval options/fieldnames separated by a comma  (optional)
     * @param offset  offset Pagination - from record number  (optional)
     * @param limit  limit Pagination - number of records to retrieve  (optional)
     * @param sortBy  sortBy Sorting - field to sort by - a field from a main entity being searched. See Data model for a list of fields.  (optional, default to &quot;code&quot;)
     * @param sortOrder  sortOrder Sorting - sort order.  (optional, default to ASCENDING)
     * @return ApiResponse&lt;MeveoModuleDtosResponse&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 business offer models  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<MeveoModuleDtosResponse> gETBusinessOfferModelList1WithHttpInfo(String query, String fields, Integer offset, Integer limit, String sortBy, String sortOrder) throws ApiException {
        okhttp3.Call localVarCall = gETBusinessOfferModelList1ValidateBeforeCall(query, fields, offset, limit, sortBy, sortOrder, null);
        Type localVarReturnType = new TypeToken<MeveoModuleDtosResponse>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  List business offer models.  (asynchronously)
     *  List business offer models. 
     * @param query  query Search criteria  (optional)
     * @param fields  fields Data retrieval options/fieldnames separated by a comma  (optional)
     * @param offset  offset Pagination - from record number  (optional)
     * @param limit  limit Pagination - number of records to retrieve  (optional)
     * @param sortBy  sortBy Sorting - field to sort by - a field from a main entity being searched. See Data model for a list of fields.  (optional, default to &quot;code&quot;)
     * @param sortOrder  sortOrder Sorting - sort order.  (optional, default to ASCENDING)
     * @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 business offer models  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETBusinessOfferModelList1Async(String query, String fields, Integer offset, Integer limit, String sortBy, String sortOrder, final ApiCallback<MeveoModuleDtosResponse> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETBusinessOfferModelList1ValidateBeforeCall(query, fields, offset, limit, sortBy, sortOrder, _callback);
        Type localVarReturnType = new TypeToken<MeveoModuleDtosResponse>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETBusinessOfferModelSearch1
     * @param businessOfferModelCode  businessOfferModelCode The business offer model&#39;s code  (optional)
     * @param loadOfferServiceTemplate  loadOfferServiceTemplate if true loads the services  (optional, default to false)
     * @param loadOfferProductTemplate  loadOfferProductTemplate if true loads the products  (optional, default to false)
     * @param loadServiceChargeTemplate  loadServiceChargeTemplate if true load the service charges  (optional, default to false)
     * @param loadProductChargeTemplate  loadProductChargeTemplate if true load the product charges  (optional, default to false)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  A business offer model  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETBusinessOfferModelSearch1Call(String businessOfferModelCode, Boolean loadOfferServiceTemplate, Boolean loadOfferProductTemplate, Boolean loadServiceChargeTemplate, Boolean loadProductChargeTemplate, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/catalog/businessOfferModel";

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

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

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

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

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

        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 gETBusinessOfferModelSearch1ValidateBeforeCall(String businessOfferModelCode, Boolean loadOfferServiceTemplate, Boolean loadOfferProductTemplate, Boolean loadServiceChargeTemplate, Boolean loadProductChargeTemplate, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETBusinessOfferModelSearch1Call(businessOfferModelCode, loadOfferServiceTemplate, loadOfferProductTemplate, loadServiceChargeTemplate, loadProductChargeTemplate, _callback);
        return localVarCall;

    }

    /**
     *  Remove an existing business offer model with a given code.  
     *  Remove an existing business offer model with a given code.  
     * @param businessOfferModelCode  businessOfferModelCode The business offer model&#39;s code  (optional)
     * @param loadOfferServiceTemplate  loadOfferServiceTemplate if true loads the services  (optional, default to false)
     * @param loadOfferProductTemplate  loadOfferProductTemplate if true loads the products  (optional, default to false)
     * @param loadServiceChargeTemplate  loadServiceChargeTemplate if true load the service charges  (optional, default to false)
     * @param loadProductChargeTemplate  loadProductChargeTemplate if true load the product charges  (optional, default to false)
     * @return GetBusinessOfferModelResponseDto
     * @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 business offer model  </td><td>  -  </td></tr>
     </table>
     */
    public GetBusinessOfferModelResponseDto gETBusinessOfferModelSearch1(String businessOfferModelCode, Boolean loadOfferServiceTemplate, Boolean loadOfferProductTemplate, Boolean loadServiceChargeTemplate, Boolean loadProductChargeTemplate) throws ApiException {
        ApiResponse<GetBusinessOfferModelResponseDto> localVarResp = gETBusinessOfferModelSearch1WithHttpInfo(businessOfferModelCode, loadOfferServiceTemplate, loadOfferProductTemplate, loadServiceChargeTemplate, loadProductChargeTemplate);
        return localVarResp.getData();
    }

    /**
     *  Remove an existing business offer model with a given code.  
     *  Remove an existing business offer model with a given code.  
     * @param businessOfferModelCode  businessOfferModelCode The business offer model&#39;s code  (optional)
     * @param loadOfferServiceTemplate  loadOfferServiceTemplate if true loads the services  (optional, default to false)
     * @param loadOfferProductTemplate  loadOfferProductTemplate if true loads the products  (optional, default to false)
     * @param loadServiceChargeTemplate  loadServiceChargeTemplate if true load the service charges  (optional, default to false)
     * @param loadProductChargeTemplate  loadProductChargeTemplate if true load the product charges  (optional, default to false)
     * @return ApiResponse&lt;GetBusinessOfferModelResponseDto&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 business offer model  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<GetBusinessOfferModelResponseDto> gETBusinessOfferModelSearch1WithHttpInfo(String businessOfferModelCode, Boolean loadOfferServiceTemplate, Boolean loadOfferProductTemplate, Boolean loadServiceChargeTemplate, Boolean loadProductChargeTemplate) throws ApiException {
        okhttp3.Call localVarCall = gETBusinessOfferModelSearch1ValidateBeforeCall(businessOfferModelCode, loadOfferServiceTemplate, loadOfferProductTemplate, loadServiceChargeTemplate, loadProductChargeTemplate, null);
        Type localVarReturnType = new TypeToken<GetBusinessOfferModelResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Remove an existing business offer model with a given code.   (asynchronously)
     *  Remove an existing business offer model with a given code.  
     * @param businessOfferModelCode  businessOfferModelCode The business offer model&#39;s code  (optional)
     * @param loadOfferServiceTemplate  loadOfferServiceTemplate if true loads the services  (optional, default to false)
     * @param loadOfferProductTemplate  loadOfferProductTemplate if true loads the products  (optional, default to false)
     * @param loadServiceChargeTemplate  loadServiceChargeTemplate if true load the service charges  (optional, default to false)
     * @param loadProductChargeTemplate  loadProductChargeTemplate if true load the product charges  (optional, default to false)
     * @param _callback The callback to be executed when the API call finishes
     * @return The request call
     * @throws ApiException If fail to process the API call, e.g. serializing the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  A business offer model  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETBusinessOfferModelSearch1Async(String businessOfferModelCode, Boolean loadOfferServiceTemplate, Boolean loadOfferProductTemplate, Boolean loadServiceChargeTemplate, Boolean loadProductChargeTemplate, final ApiCallback<GetBusinessOfferModelResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETBusinessOfferModelSearch1ValidateBeforeCall(businessOfferModelCode, loadOfferServiceTemplate, loadOfferProductTemplate, loadServiceChargeTemplate, loadProductChargeTemplate, _callback);
        Type localVarReturnType = new TypeToken<GetBusinessOfferModelResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETIBaseVersion60
     * @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 gETIBaseVersion60Call(final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

        okhttp3.Call localVarCall = gETIBaseVersion60Call(_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 gETIBaseVersion60() throws ApiException {
        ApiResponse<ActionStatus> localVarResp = gETIBaseVersion60WithHttpInfo();
        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> gETIBaseVersion60WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = gETIBaseVersion60ValidateBeforeCall(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 gETIBaseVersion60Async(final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETIBaseVersion60ValidateBeforeCall(_callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTBusinessOfferModelCreate1
     * @param businessOfferModelDto  postData The business offer model&#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 pOSTBusinessOfferModelCreate1Call(BusinessOfferModelDto businessOfferModelDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = businessOfferModelDto;

        // create path and map variables
        String localVarPath = "/catalog/businessOfferModel";

        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 pOSTBusinessOfferModelCreate1ValidateBeforeCall(BusinessOfferModelDto businessOfferModelDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTBusinessOfferModelCreate1Call(businessOfferModelDto, _callback);
        return localVarCall;

    }

    /**
     *  Create a new business offer model.  
     *  Create a new business offer model.  
     * @param businessOfferModelDto  postData The business offer model&#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 pOSTBusinessOfferModelCreate1(BusinessOfferModelDto businessOfferModelDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTBusinessOfferModelCreate1WithHttpInfo(businessOfferModelDto);
        return localVarResp.getData();
    }

    /**
     *  Create a new business offer model.  
     *  Create a new business offer model.  
     * @param businessOfferModelDto  postData The business offer model&#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> pOSTBusinessOfferModelCreate1WithHttpInfo(BusinessOfferModelDto businessOfferModelDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTBusinessOfferModelCreate1ValidateBeforeCall(businessOfferModelDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create a new business offer model.   (asynchronously)
     *  Create a new business offer model.  
     * @param businessOfferModelDto  postData The business offer model&#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 pOSTBusinessOfferModelCreate1Async(BusinessOfferModelDto businessOfferModelDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTBusinessOfferModelCreate1ValidateBeforeCall(businessOfferModelDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTBusinessOfferModelCreateOrUpdate1
     * @param businessOfferModelDto  postData The business offer model&#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 pOSTBusinessOfferModelCreateOrUpdate1Call(BusinessOfferModelDto businessOfferModelDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = businessOfferModelDto;

        // create path and map variables
        String localVarPath = "/catalog/businessOfferModel/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 pOSTBusinessOfferModelCreateOrUpdate1ValidateBeforeCall(BusinessOfferModelDto businessOfferModelDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTBusinessOfferModelCreateOrUpdate1Call(businessOfferModelDto, _callback);
        return localVarCall;

    }

    /**
     *  Create new or update an existing business offer model.  
     *  Create new or update an existing business offer model.  
     * @param businessOfferModelDto  postData The business offer model&#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 pOSTBusinessOfferModelCreateOrUpdate1(BusinessOfferModelDto businessOfferModelDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTBusinessOfferModelCreateOrUpdate1WithHttpInfo(businessOfferModelDto);
        return localVarResp.getData();
    }

    /**
     *  Create new or update an existing business offer model.  
     *  Create new or update an existing business offer model.  
     * @param businessOfferModelDto  postData The business offer model&#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> pOSTBusinessOfferModelCreateOrUpdate1WithHttpInfo(BusinessOfferModelDto businessOfferModelDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTBusinessOfferModelCreateOrUpdate1ValidateBeforeCall(businessOfferModelDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create new or update an existing business offer model.   (asynchronously)
     *  Create new or update an existing business offer model.  
     * @param businessOfferModelDto  postData The business offer model&#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 pOSTBusinessOfferModelCreateOrUpdate1Async(BusinessOfferModelDto businessOfferModelDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTBusinessOfferModelCreateOrUpdate1ValidateBeforeCall(businessOfferModelDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTBusinessOfferModelList1
     * @param pagingAndFiltering  pagingAndFiltering Pagination and filtering criteria  (optional)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  A list of business offer models  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTBusinessOfferModelList1Call(PagingAndFiltering pagingAndFiltering, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = pagingAndFiltering;

        // create path and map variables
        String localVarPath = "/catalog/businessOfferModel/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 = {
            "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 pOSTBusinessOfferModelList1ValidateBeforeCall(PagingAndFiltering pagingAndFiltering, final ApiCallback _callback) throws ApiException {
        

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

    }

    /**
     *  List business offer models.  
     *  List business offer models.  
     * @param pagingAndFiltering  pagingAndFiltering Pagination and filtering criteria  (optional)
     * @return MeveoModuleDtosResponse
     * @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 business offer models  </td><td>  -  </td></tr>
     </table>
     */
    public MeveoModuleDtosResponse pOSTBusinessOfferModelList1(PagingAndFiltering pagingAndFiltering) throws ApiException {
        ApiResponse<MeveoModuleDtosResponse> localVarResp = pOSTBusinessOfferModelList1WithHttpInfo(pagingAndFiltering);
        return localVarResp.getData();
    }

    /**
     *  List business offer models.  
     *  List business offer models.  
     * @param pagingAndFiltering  pagingAndFiltering Pagination and filtering criteria  (optional)
     * @return ApiResponse&lt;MeveoModuleDtosResponse&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 business offer models  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<MeveoModuleDtosResponse> pOSTBusinessOfferModelList1WithHttpInfo(PagingAndFiltering pagingAndFiltering) throws ApiException {
        okhttp3.Call localVarCall = pOSTBusinessOfferModelList1ValidateBeforeCall(pagingAndFiltering, null);
        Type localVarReturnType = new TypeToken<MeveoModuleDtosResponse>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  List business offer models.   (asynchronously)
     *  List business offer models.  
     * @param pagingAndFiltering  pagingAndFiltering Pagination and filtering criteria  (optional)
     * @param _callback The callback to be executed when the API call finishes
     * @return The request call
     * @throws ApiException If fail to process the API call, e.g. serializing the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  A list of business offer models  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTBusinessOfferModelList1Async(PagingAndFiltering pagingAndFiltering, final ApiCallback<MeveoModuleDtosResponse> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTBusinessOfferModelList1ValidateBeforeCall(pagingAndFiltering, _callback);
        Type localVarReturnType = new TypeToken<MeveoModuleDtosResponse>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pUTBusinessOfferModelInstall1
     * @param businessOfferModelDto  moduleDto business offer model  (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 pUTBusinessOfferModelInstall1Call(BusinessOfferModelDto businessOfferModelDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = businessOfferModelDto;

        // create path and map variables
        String localVarPath = "/catalog/businessOfferModel/install";

        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 pUTBusinessOfferModelInstall1ValidateBeforeCall(BusinessOfferModelDto businessOfferModelDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pUTBusinessOfferModelInstall1Call(businessOfferModelDto, _callback);
        return localVarCall;

    }

    /**
     *  Install business offer model module. 
     *  Install business offer model module. 
     * @param businessOfferModelDto  moduleDto business offer model  (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 pUTBusinessOfferModelInstall1(BusinessOfferModelDto businessOfferModelDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pUTBusinessOfferModelInstall1WithHttpInfo(businessOfferModelDto);
        return localVarResp.getData();
    }

    /**
     *  Install business offer model module. 
     *  Install business offer model module. 
     * @param businessOfferModelDto  moduleDto business offer model  (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> pUTBusinessOfferModelInstall1WithHttpInfo(BusinessOfferModelDto businessOfferModelDto) throws ApiException {
        okhttp3.Call localVarCall = pUTBusinessOfferModelInstall1ValidateBeforeCall(businessOfferModelDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Install business offer model module.  (asynchronously)
     *  Install business offer model module. 
     * @param businessOfferModelDto  moduleDto business offer model  (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 pUTBusinessOfferModelInstall1Async(BusinessOfferModelDto businessOfferModelDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pUTBusinessOfferModelInstall1ValidateBeforeCall(businessOfferModelDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pUTBusinessOfferModelUpdate1
     * @param businessOfferModelDto  postData The business offer model&#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 pUTBusinessOfferModelUpdate1Call(BusinessOfferModelDto businessOfferModelDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = businessOfferModelDto;

        // create path and map variables
        String localVarPath = "/catalog/businessOfferModel";

        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 pUTBusinessOfferModelUpdate1ValidateBeforeCall(BusinessOfferModelDto businessOfferModelDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pUTBusinessOfferModelUpdate1Call(businessOfferModelDto, _callback);
        return localVarCall;

    }

    /**
     *  Update an existing business offer model.  
     *  Update an existing business offer model.  
     * @param businessOfferModelDto  postData The business offer model&#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 pUTBusinessOfferModelUpdate1(BusinessOfferModelDto businessOfferModelDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pUTBusinessOfferModelUpdate1WithHttpInfo(businessOfferModelDto);
        return localVarResp.getData();
    }

    /**
     *  Update an existing business offer model.  
     *  Update an existing business offer model.  
     * @param businessOfferModelDto  postData The business offer model&#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> pUTBusinessOfferModelUpdate1WithHttpInfo(BusinessOfferModelDto businessOfferModelDto) throws ApiException {
        okhttp3.Call localVarCall = pUTBusinessOfferModelUpdate1ValidateBeforeCall(businessOfferModelDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Update an existing business offer model.   (asynchronously)
     *  Update an existing business offer model.  
     * @param businessOfferModelDto  postData The business offer model&#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 pUTBusinessOfferModelUpdate1Async(BusinessOfferModelDto businessOfferModelDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

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

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

        okhttp3.Call localVarCall = user17Call(_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 user17() throws ApiException {
        ApiResponse<ActionStatus> localVarResp = user17WithHttpInfo();
        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> user17WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = user17ValidateBeforeCall(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 user17Async(final ApiCallback<ActionStatus> _callback) throws ApiException {

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