/*
 * 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.GetListOfferTemplateResponseDto;
import org.openapitools.client.model.GetOfferTemplateResponseDto;
import org.openapitools.client.model.OfferTemplateDto;
import org.threeten.bp.OffsetDateTime;
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 OfferTemplateApi {
    private ApiClient localVarApiClient;

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

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

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

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

    /**
     * Build call for dELETEOfferTemplateOfferTemplateCode1
     * @param offerTemplateCode  offerTemplateCode The offer template&#39;s code  (required)
     * @param validFrom  validFrom Offer template validity range - from date  (optional)
     * @param validTo  validTo Offer template validity range - to date  (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 dELETEOfferTemplateOfferTemplateCode1Call(String offerTemplateCode, OffsetDateTime validFrom, OffsetDateTime validTo, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/catalog/offerTemplate/{offerTemplateCode}"
            .replaceAll("\\{" + "offerTemplateCode" + "\\}", localVarApiClient.escapeString(offerTemplateCode.toString()));

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

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

        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 dELETEOfferTemplateOfferTemplateCode1ValidateBeforeCall(String offerTemplateCode, OffsetDateTime validFrom, OffsetDateTime validTo, final ApiCallback _callback) throws ApiException {
        
        // verify the required parameter 'offerTemplateCode' is set
        if (offerTemplateCode == null) {
            throw new ApiException("Missing the required parameter 'offerTemplateCode' when calling dELETEOfferTemplateOfferTemplateCode1(Async)");
        }
        

        okhttp3.Call localVarCall = dELETEOfferTemplateOfferTemplateCode1Call(offerTemplateCode, validFrom, validTo, _callback);
        return localVarCall;

    }

    /**
     *  Remove offer template with a given code and validity dates
     *  Remove offer template with a given code and validity dates. If no validity dates are provided, an offer template valid on a current date will be deleted.  
     * @param offerTemplateCode  offerTemplateCode The offer template&#39;s code  (required)
     * @param validFrom  validFrom Offer template validity range - from date  (optional)
     * @param validTo  validTo Offer template validity range - to date  (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 dELETEOfferTemplateOfferTemplateCode1(String offerTemplateCode, OffsetDateTime validFrom, OffsetDateTime validTo) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = dELETEOfferTemplateOfferTemplateCode1WithHttpInfo(offerTemplateCode, validFrom, validTo);
        return localVarResp.getData();
    }

    /**
     *  Remove offer template with a given code and validity dates
     *  Remove offer template with a given code and validity dates. If no validity dates are provided, an offer template valid on a current date will be deleted.  
     * @param offerTemplateCode  offerTemplateCode The offer template&#39;s code  (required)
     * @param validFrom  validFrom Offer template validity range - from date  (optional)
     * @param validTo  validTo Offer template validity range - to date  (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> dELETEOfferTemplateOfferTemplateCode1WithHttpInfo(String offerTemplateCode, OffsetDateTime validFrom, OffsetDateTime validTo) throws ApiException {
        okhttp3.Call localVarCall = dELETEOfferTemplateOfferTemplateCode1ValidateBeforeCall(offerTemplateCode, validFrom, validTo, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Remove offer template with a given code and validity dates (asynchronously)
     *  Remove offer template with a given code and validity dates. If no validity dates are provided, an offer template valid on a current date will be deleted.  
     * @param offerTemplateCode  offerTemplateCode The offer template&#39;s code  (required)
     * @param validFrom  validFrom Offer template validity range - from date  (optional)
     * @param validTo  validTo Offer template validity range - to date  (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 dELETEOfferTemplateOfferTemplateCode1Async(String offerTemplateCode, OffsetDateTime validFrom, OffsetDateTime validTo, final ApiCallback<ActionStatus> _callback) throws ApiException {

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

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

        okhttp3.Call localVarCall = gETIBaseVersion52Call(_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 gETIBaseVersion52() throws ApiException {
        ApiResponse<ActionStatus> localVarResp = gETIBaseVersion52WithHttpInfo();
        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> gETIBaseVersion52WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = gETIBaseVersion52ValidateBeforeCall(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 gETIBaseVersion52Async(final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETIBaseVersion52ValidateBeforeCall(_callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETOfferTemplateList1
     * @param offerTemplateCode  code Offer template code for optional filtering. Deprecated in v. 4.8. Use query instead.  (optional)
     * @param validFrom  validFrom Validity range from date. Deprecated in v. 4.8. Use query instead.  (optional)
     * @param validTo  validTo Validity range to date. Deprecated in v. 4.8. Use query instead.  (optional)
     * @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 inheritCF  inheritCF Should inherited custom fields be retrieved. Defaults to INHERIT_NO_MERGE.  (optional, default to INHERIT_NO_MERGE)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  A list of offer templates  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETOfferTemplateList1Call(String offerTemplateCode, OffsetDateTime validFrom, OffsetDateTime validTo, String query, String fields, Integer offset, Integer limit, String sortBy, String sortOrder, String inheritCF, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

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

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

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

        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));
        }

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

        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

        String[] localVarAuthNames = new String[] { "auth" };
        return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call gETOfferTemplateList1ValidateBeforeCall(String offerTemplateCode, OffsetDateTime validFrom, OffsetDateTime validTo, String query, String fields, Integer offset, Integer limit, String sortBy, String sortOrder, String inheritCF, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETOfferTemplateList1Call(offerTemplateCode, validFrom, validTo, query, fields, offset, limit, sortBy, sortOrder, inheritCF, _callback);
        return localVarCall;

    }

    /**
     *  List Offer templates matching filtering and query criteria or code and validity dates
     *  List Offer templates matching filtering and query criteria or code and validity dates.  If neither date is provided, validity dates will not be considered. If only validFrom is provided, a search will return offers valid on a given date. If only validTo date is provided, a search will return offers valid from today to a given date. 
     * @param offerTemplateCode  code Offer template code for optional filtering. Deprecated in v. 4.8. Use query instead.  (optional)
     * @param validFrom  validFrom Validity range from date. Deprecated in v. 4.8. Use query instead.  (optional)
     * @param validTo  validTo Validity range to date. Deprecated in v. 4.8. Use query instead.  (optional)
     * @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 inheritCF  inheritCF Should inherited custom fields be retrieved. Defaults to INHERIT_NO_MERGE.  (optional, default to INHERIT_NO_MERGE)
     * @return GetListOfferTemplateResponseDto
     * @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 offer templates  </td><td>  -  </td></tr>
     </table>
     */
    public GetListOfferTemplateResponseDto gETOfferTemplateList1(String offerTemplateCode, OffsetDateTime validFrom, OffsetDateTime validTo, String query, String fields, Integer offset, Integer limit, String sortBy, String sortOrder, String inheritCF) throws ApiException {
        ApiResponse<GetListOfferTemplateResponseDto> localVarResp = gETOfferTemplateList1WithHttpInfo(offerTemplateCode, validFrom, validTo, query, fields, offset, limit, sortBy, sortOrder, inheritCF);
        return localVarResp.getData();
    }

    /**
     *  List Offer templates matching filtering and query criteria or code and validity dates
     *  List Offer templates matching filtering and query criteria or code and validity dates.  If neither date is provided, validity dates will not be considered. If only validFrom is provided, a search will return offers valid on a given date. If only validTo date is provided, a search will return offers valid from today to a given date. 
     * @param offerTemplateCode  code Offer template code for optional filtering. Deprecated in v. 4.8. Use query instead.  (optional)
     * @param validFrom  validFrom Validity range from date. Deprecated in v. 4.8. Use query instead.  (optional)
     * @param validTo  validTo Validity range to date. Deprecated in v. 4.8. Use query instead.  (optional)
     * @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 inheritCF  inheritCF Should inherited custom fields be retrieved. Defaults to INHERIT_NO_MERGE.  (optional, default to INHERIT_NO_MERGE)
     * @return ApiResponse&lt;GetListOfferTemplateResponseDto&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 offer templates  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<GetListOfferTemplateResponseDto> gETOfferTemplateList1WithHttpInfo(String offerTemplateCode, OffsetDateTime validFrom, OffsetDateTime validTo, String query, String fields, Integer offset, Integer limit, String sortBy, String sortOrder, String inheritCF) throws ApiException {
        okhttp3.Call localVarCall = gETOfferTemplateList1ValidateBeforeCall(offerTemplateCode, validFrom, validTo, query, fields, offset, limit, sortBy, sortOrder, inheritCF, null);
        Type localVarReturnType = new TypeToken<GetListOfferTemplateResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  List Offer templates matching filtering and query criteria or code and validity dates (asynchronously)
     *  List Offer templates matching filtering and query criteria or code and validity dates.  If neither date is provided, validity dates will not be considered. If only validFrom is provided, a search will return offers valid on a given date. If only validTo date is provided, a search will return offers valid from today to a given date. 
     * @param offerTemplateCode  code Offer template code for optional filtering. Deprecated in v. 4.8. Use query instead.  (optional)
     * @param validFrom  validFrom Validity range from date. Deprecated in v. 4.8. Use query instead.  (optional)
     * @param validTo  validTo Validity range to date. Deprecated in v. 4.8. Use query instead.  (optional)
     * @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 inheritCF  inheritCF Should inherited custom fields be retrieved. Defaults to INHERIT_NO_MERGE.  (optional, default to INHERIT_NO_MERGE)
     * @param _callback The callback to be executed when the API call finishes
     * @return The request call
     * @throws ApiException If fail to process the API call, e.g. serializing the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  A list of offer templates  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETOfferTemplateList1Async(String offerTemplateCode, OffsetDateTime validFrom, OffsetDateTime validTo, String query, String fields, Integer offset, Integer limit, String sortBy, String sortOrder, String inheritCF, final ApiCallback<GetListOfferTemplateResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETOfferTemplateList1ValidateBeforeCall(offerTemplateCode, validFrom, validTo, query, fields, offset, limit, sortBy, sortOrder, inheritCF, _callback);
        Type localVarReturnType = new TypeToken<GetListOfferTemplateResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETOfferTemplateSearch1
     * @param offerTemplateCode  offerTemplateCode The offer template&#39;s code  (optional)
     * @param validFrom  validFrom Offer template validity range - from date  (optional)
     * @param validTo  validTo Offer template validity range - to date  (optional)
     * @param inheritCF  inheritCF Should inherited custom fields be retrieved. Defaults to INHERIT_NO_MERGE.  (optional, default to INHERIT_NO_MERGE)
     * @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 loadAllowedDiscountPlan  loadAllowedDiscountPlan if true load the allowed discount plan  (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>  Return offerTemplateDto containing offerTemplate  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETOfferTemplateSearch1Call(String offerTemplateCode, OffsetDateTime validFrom, OffsetDateTime validTo, String inheritCF, Boolean loadOfferServiceTemplate, Boolean loadOfferProductTemplate, Boolean loadServiceChargeTemplate, Boolean loadProductChargeTemplate, Boolean loadAllowedDiscountPlan, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

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

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

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

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

        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));
        }

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

        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 gETOfferTemplateSearch1ValidateBeforeCall(String offerTemplateCode, OffsetDateTime validFrom, OffsetDateTime validTo, String inheritCF, Boolean loadOfferServiceTemplate, Boolean loadOfferProductTemplate, Boolean loadServiceChargeTemplate, Boolean loadProductChargeTemplate, Boolean loadAllowedDiscountPlan, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETOfferTemplateSearch1Call(offerTemplateCode, validFrom, validTo, inheritCF, loadOfferServiceTemplate, loadOfferProductTemplate, loadServiceChargeTemplate, loadProductChargeTemplate, loadAllowedDiscountPlan, _callback);
        return localVarCall;

    }

    /**
     *  Search offer template with a given code and validity dates
     *  Search offer template with a given code and validity dates. If no validity dates are provided, an offer template valid on a current date will be returned.  
     * @param offerTemplateCode  offerTemplateCode The offer template&#39;s code  (optional)
     * @param validFrom  validFrom Offer template validity range - from date  (optional)
     * @param validTo  validTo Offer template validity range - to date  (optional)
     * @param inheritCF  inheritCF Should inherited custom fields be retrieved. Defaults to INHERIT_NO_MERGE.  (optional, default to INHERIT_NO_MERGE)
     * @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 loadAllowedDiscountPlan  loadAllowedDiscountPlan if true load the allowed discount plan  (optional, default to false)
     * @return GetOfferTemplateResponseDto
     * @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>  Return offerTemplateDto containing offerTemplate  </td><td>  -  </td></tr>
     </table>
     */
    public GetOfferTemplateResponseDto gETOfferTemplateSearch1(String offerTemplateCode, OffsetDateTime validFrom, OffsetDateTime validTo, String inheritCF, Boolean loadOfferServiceTemplate, Boolean loadOfferProductTemplate, Boolean loadServiceChargeTemplate, Boolean loadProductChargeTemplate, Boolean loadAllowedDiscountPlan) throws ApiException {
        ApiResponse<GetOfferTemplateResponseDto> localVarResp = gETOfferTemplateSearch1WithHttpInfo(offerTemplateCode, validFrom, validTo, inheritCF, loadOfferServiceTemplate, loadOfferProductTemplate, loadServiceChargeTemplate, loadProductChargeTemplate, loadAllowedDiscountPlan);
        return localVarResp.getData();
    }

    /**
     *  Search offer template with a given code and validity dates
     *  Search offer template with a given code and validity dates. If no validity dates are provided, an offer template valid on a current date will be returned.  
     * @param offerTemplateCode  offerTemplateCode The offer template&#39;s code  (optional)
     * @param validFrom  validFrom Offer template validity range - from date  (optional)
     * @param validTo  validTo Offer template validity range - to date  (optional)
     * @param inheritCF  inheritCF Should inherited custom fields be retrieved. Defaults to INHERIT_NO_MERGE.  (optional, default to INHERIT_NO_MERGE)
     * @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 loadAllowedDiscountPlan  loadAllowedDiscountPlan if true load the allowed discount plan  (optional, default to false)
     * @return ApiResponse&lt;GetOfferTemplateResponseDto&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>  Return offerTemplateDto containing offerTemplate  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<GetOfferTemplateResponseDto> gETOfferTemplateSearch1WithHttpInfo(String offerTemplateCode, OffsetDateTime validFrom, OffsetDateTime validTo, String inheritCF, Boolean loadOfferServiceTemplate, Boolean loadOfferProductTemplate, Boolean loadServiceChargeTemplate, Boolean loadProductChargeTemplate, Boolean loadAllowedDiscountPlan) throws ApiException {
        okhttp3.Call localVarCall = gETOfferTemplateSearch1ValidateBeforeCall(offerTemplateCode, validFrom, validTo, inheritCF, loadOfferServiceTemplate, loadOfferProductTemplate, loadServiceChargeTemplate, loadProductChargeTemplate, loadAllowedDiscountPlan, null);
        Type localVarReturnType = new TypeToken<GetOfferTemplateResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Search offer template with a given code and validity dates (asynchronously)
     *  Search offer template with a given code and validity dates. If no validity dates are provided, an offer template valid on a current date will be returned.  
     * @param offerTemplateCode  offerTemplateCode The offer template&#39;s code  (optional)
     * @param validFrom  validFrom Offer template validity range - from date  (optional)
     * @param validTo  validTo Offer template validity range - to date  (optional)
     * @param inheritCF  inheritCF Should inherited custom fields be retrieved. Defaults to INHERIT_NO_MERGE.  (optional, default to INHERIT_NO_MERGE)
     * @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 loadAllowedDiscountPlan  loadAllowedDiscountPlan if true load the allowed discount plan  (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>  Return offerTemplateDto containing offerTemplate  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETOfferTemplateSearch1Async(String offerTemplateCode, OffsetDateTime validFrom, OffsetDateTime validTo, String inheritCF, Boolean loadOfferServiceTemplate, Boolean loadOfferProductTemplate, Boolean loadServiceChargeTemplate, Boolean loadProductChargeTemplate, Boolean loadAllowedDiscountPlan, final ApiCallback<GetOfferTemplateResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETOfferTemplateSearch1ValidateBeforeCall(offerTemplateCode, validFrom, validTo, inheritCF, loadOfferServiceTemplate, loadOfferProductTemplate, loadServiceChargeTemplate, loadProductChargeTemplate, loadAllowedDiscountPlan, _callback);
        Type localVarReturnType = new TypeToken<GetOfferTemplateResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTOfferTemplateCodeDisable1
     * @param code  code Offer template code  (required)
     * @param validFrom  validFrom Offer template validity range - from date  (optional)
     * @param validTo  validTo Offer template validity range - to date  (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 pOSTOfferTemplateCodeDisable1Call(String code, OffsetDateTime validFrom, OffsetDateTime validTo, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/catalog/offerTemplate/{code}/disable"
            .replaceAll("\\{" + "code" + "\\}", localVarApiClient.escapeString(code.toString()));

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

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

        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 pOSTOfferTemplateCodeDisable1ValidateBeforeCall(String code, OffsetDateTime validFrom, OffsetDateTime validTo, 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 pOSTOfferTemplateCodeDisable1(Async)");
        }
        

        okhttp3.Call localVarCall = pOSTOfferTemplateCodeDisable1Call(code, validFrom, validTo, _callback);
        return localVarCall;

    }

    /**
     *  Disable a Offer template with a given code  
     *  Disable a Offer template with a given code  
     * @param code  code Offer template code  (required)
     * @param validFrom  validFrom Offer template validity range - from date  (optional)
     * @param validTo  validTo Offer template validity range - to date  (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 pOSTOfferTemplateCodeDisable1(String code, OffsetDateTime validFrom, OffsetDateTime validTo) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTOfferTemplateCodeDisable1WithHttpInfo(code, validFrom, validTo);
        return localVarResp.getData();
    }

    /**
     *  Disable a Offer template with a given code  
     *  Disable a Offer template with a given code  
     * @param code  code Offer template code  (required)
     * @param validFrom  validFrom Offer template validity range - from date  (optional)
     * @param validTo  validTo Offer template validity range - to date  (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> pOSTOfferTemplateCodeDisable1WithHttpInfo(String code, OffsetDateTime validFrom, OffsetDateTime validTo) throws ApiException {
        okhttp3.Call localVarCall = pOSTOfferTemplateCodeDisable1ValidateBeforeCall(code, validFrom, validTo, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Disable a Offer template with a given code   (asynchronously)
     *  Disable a Offer template with a given code  
     * @param code  code Offer template code  (required)
     * @param validFrom  validFrom Offer template validity range - from date  (optional)
     * @param validTo  validTo Offer template validity range - to date  (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 pOSTOfferTemplateCodeDisable1Async(String code, OffsetDateTime validFrom, OffsetDateTime validTo, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTOfferTemplateCodeDisable1ValidateBeforeCall(code, validFrom, validTo, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTOfferTemplateCodeEnable1
     * @param code  code Offer template code  (required)
     * @param validFrom  validFrom Offer template validity range - from date  (optional)
     * @param validTo  validTo Offer template validity range - to date  (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 pOSTOfferTemplateCodeEnable1Call(String code, OffsetDateTime validFrom, OffsetDateTime validTo, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/catalog/offerTemplate/{code}/enable"
            .replaceAll("\\{" + "code" + "\\}", localVarApiClient.escapeString(code.toString()));

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

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

        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 pOSTOfferTemplateCodeEnable1ValidateBeforeCall(String code, OffsetDateTime validFrom, OffsetDateTime validTo, 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 pOSTOfferTemplateCodeEnable1(Async)");
        }
        

        okhttp3.Call localVarCall = pOSTOfferTemplateCodeEnable1Call(code, validFrom, validTo, _callback);
        return localVarCall;

    }

    /**
     *  Enable a Offer template with a given code  
     *  Enable a Offer template with a given code  
     * @param code  code Offer template code  (required)
     * @param validFrom  validFrom Offer template validity range - from date  (optional)
     * @param validTo  validTo Offer template validity range - to date  (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 pOSTOfferTemplateCodeEnable1(String code, OffsetDateTime validFrom, OffsetDateTime validTo) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTOfferTemplateCodeEnable1WithHttpInfo(code, validFrom, validTo);
        return localVarResp.getData();
    }

    /**
     *  Enable a Offer template with a given code  
     *  Enable a Offer template with a given code  
     * @param code  code Offer template code  (required)
     * @param validFrom  validFrom Offer template validity range - from date  (optional)
     * @param validTo  validTo Offer template validity range - to date  (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> pOSTOfferTemplateCodeEnable1WithHttpInfo(String code, OffsetDateTime validFrom, OffsetDateTime validTo) throws ApiException {
        okhttp3.Call localVarCall = pOSTOfferTemplateCodeEnable1ValidateBeforeCall(code, validFrom, validTo, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Enable a Offer template with a given code   (asynchronously)
     *  Enable a Offer template with a given code  
     * @param code  code Offer template code  (required)
     * @param validFrom  validFrom Offer template validity range - from date  (optional)
     * @param validTo  validTo Offer template validity range - to date  (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 pOSTOfferTemplateCodeEnable1Async(String code, OffsetDateTime validFrom, OffsetDateTime validTo, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTOfferTemplateCodeEnable1ValidateBeforeCall(code, validFrom, validTo, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTOfferTemplateCreate1
     * @param offerTemplateDto  postData The offer template&#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 pOSTOfferTemplateCreate1Call(OfferTemplateDto offerTemplateDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = offerTemplateDto;

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

        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 pOSTOfferTemplateCreate1ValidateBeforeCall(OfferTemplateDto offerTemplateDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTOfferTemplateCreate1Call(offerTemplateDto, _callback);
        return localVarCall;

    }

    /**
     *  Create offer template.  
     *  Create offer template.  
     * @param offerTemplateDto  postData The offer template&#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 pOSTOfferTemplateCreate1(OfferTemplateDto offerTemplateDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTOfferTemplateCreate1WithHttpInfo(offerTemplateDto);
        return localVarResp.getData();
    }

    /**
     *  Create offer template.  
     *  Create offer template.  
     * @param offerTemplateDto  postData The offer template&#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> pOSTOfferTemplateCreate1WithHttpInfo(OfferTemplateDto offerTemplateDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTOfferTemplateCreate1ValidateBeforeCall(offerTemplateDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create offer template.   (asynchronously)
     *  Create offer template.  
     * @param offerTemplateDto  postData The offer template&#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 pOSTOfferTemplateCreate1Async(OfferTemplateDto offerTemplateDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTOfferTemplateCreate1ValidateBeforeCall(offerTemplateDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTOfferTemplateCreateOrUpdate1
     * @param offerTemplateDto  postData The offer template&#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 pOSTOfferTemplateCreateOrUpdate1Call(OfferTemplateDto offerTemplateDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = offerTemplateDto;

        // create path and map variables
        String localVarPath = "/catalog/offerTemplate/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 pOSTOfferTemplateCreateOrUpdate1ValidateBeforeCall(OfferTemplateDto offerTemplateDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTOfferTemplateCreateOrUpdate1Call(offerTemplateDto, _callback);
        return localVarCall;

    }

    /**
     *  Create or update offer template based on a given code.  
     *  Create or update offer template based on a given code.  
     * @param offerTemplateDto  postData The offer template&#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 pOSTOfferTemplateCreateOrUpdate1(OfferTemplateDto offerTemplateDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTOfferTemplateCreateOrUpdate1WithHttpInfo(offerTemplateDto);
        return localVarResp.getData();
    }

    /**
     *  Create or update offer template based on a given code.  
     *  Create or update offer template based on a given code.  
     * @param offerTemplateDto  postData The offer template&#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> pOSTOfferTemplateCreateOrUpdate1WithHttpInfo(OfferTemplateDto offerTemplateDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTOfferTemplateCreateOrUpdate1ValidateBeforeCall(offerTemplateDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create or update offer template based on a given code.   (asynchronously)
     *  Create or update offer template based on a given code.  
     * @param offerTemplateDto  postData The offer template&#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 pOSTOfferTemplateCreateOrUpdate1Async(OfferTemplateDto offerTemplateDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTOfferTemplateCreateOrUpdate1ValidateBeforeCall(offerTemplateDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTOfferTemplateList1
     * @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>  List of offer templates  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTOfferTemplateList1Call(PagingAndFiltering pagingAndFiltering, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = pagingAndFiltering;

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

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

    }

    /**
     *  List offerTemplates matching a given criteria  
     *  List offerTemplates matching a given criteria  
     * @param pagingAndFiltering  pagingAndFiltering Pagination and filtering criteria  (optional)
     * @return GetListOfferTemplateResponseDto
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  List of offer templates  </td><td>  -  </td></tr>
     </table>
     */
    public GetListOfferTemplateResponseDto pOSTOfferTemplateList1(PagingAndFiltering pagingAndFiltering) throws ApiException {
        ApiResponse<GetListOfferTemplateResponseDto> localVarResp = pOSTOfferTemplateList1WithHttpInfo(pagingAndFiltering);
        return localVarResp.getData();
    }

    /**
     *  List offerTemplates matching a given criteria  
     *  List offerTemplates matching a given criteria  
     * @param pagingAndFiltering  pagingAndFiltering Pagination and filtering criteria  (optional)
     * @return ApiResponse&lt;GetListOfferTemplateResponseDto&gt;
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  List of offer templates  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<GetListOfferTemplateResponseDto> pOSTOfferTemplateList1WithHttpInfo(PagingAndFiltering pagingAndFiltering) throws ApiException {
        okhttp3.Call localVarCall = pOSTOfferTemplateList1ValidateBeforeCall(pagingAndFiltering, null);
        Type localVarReturnType = new TypeToken<GetListOfferTemplateResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  List offerTemplates matching a given criteria   (asynchronously)
     *  List offerTemplates matching a given criteria  
     * @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>  List of offer templates  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTOfferTemplateList1Async(PagingAndFiltering pagingAndFiltering, final ApiCallback<GetListOfferTemplateResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTOfferTemplateList1ValidateBeforeCall(pagingAndFiltering, _callback);
        Type localVarReturnType = new TypeToken<GetListOfferTemplateResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pUTOfferTemplateUpdate1
     * @param offerTemplateDto  postData The offer template&#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 pUTOfferTemplateUpdate1Call(OfferTemplateDto offerTemplateDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = offerTemplateDto;

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

        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 pUTOfferTemplateUpdate1ValidateBeforeCall(OfferTemplateDto offerTemplateDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pUTOfferTemplateUpdate1Call(offerTemplateDto, _callback);
        return localVarCall;

    }

    /**
     *  Update offer template.  
     *  Update offer template.  
     * @param offerTemplateDto  postData The offer template&#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 pUTOfferTemplateUpdate1(OfferTemplateDto offerTemplateDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pUTOfferTemplateUpdate1WithHttpInfo(offerTemplateDto);
        return localVarResp.getData();
    }

    /**
     *  Update offer template.  
     *  Update offer template.  
     * @param offerTemplateDto  postData The offer template&#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> pUTOfferTemplateUpdate1WithHttpInfo(OfferTemplateDto offerTemplateDto) throws ApiException {
        okhttp3.Call localVarCall = pUTOfferTemplateUpdate1ValidateBeforeCall(offerTemplateDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Update offer template.   (asynchronously)
     *  Update offer template.  
     * @param offerTemplateDto  postData The offer template&#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 pUTOfferTemplateUpdate1Async(OfferTemplateDto offerTemplateDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

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

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

        okhttp3.Call localVarCall = user27Call(_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 user27() throws ApiException {
        ApiResponse<ActionStatus> localVarResp = user27WithHttpInfo();
        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> user27WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = user27ValidateBeforeCall(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 user27Async(final ApiCallback<ActionStatus> _callback) throws ApiException {

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