/*
 * 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.GetOneShotChargeTemplateResponseDto;
import org.threeten.bp.OffsetDateTime;
import org.openapitools.client.model.OneShotChargeTemplateDto;
import org.openapitools.client.model.OneShotChargeTemplateWithPriceListDto;

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

public class OneShotChargeTemplateApi {
    private ApiClient localVarApiClient;

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

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

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

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

    /**
     * Build call for dELETEOneShotChargeTemplateOneShotChargeTemplateCode1
     * @param oneShotChargeTemplateCode  oneShotChargeTemplateCode The one shot charge template&#39;s code  (required)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call dELETEOneShotChargeTemplateOneShotChargeTemplateCode1Call(String oneShotChargeTemplateCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

        okhttp3.Call localVarCall = dELETEOneShotChargeTemplateOneShotChargeTemplateCode1Call(oneShotChargeTemplateCode, _callback);
        return localVarCall;

    }

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

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

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

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

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

        okhttp3.Call localVarCall = gETIBaseVersion53Call(_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 gETIBaseVersion53() throws ApiException {
        ApiResponse<ActionStatus> localVarResp = gETIBaseVersion53WithHttpInfo();
        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> gETIBaseVersion53WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = gETIBaseVersion53ValidateBeforeCall(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 gETIBaseVersion53Async(final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETIBaseVersion53ValidateBeforeCall(_callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETOneShotChargeTemplateList1
     * @param languageCode  languageCode language&#39;s code  (optional)
     * @param countryCode  countryCode country&#39;s code  (optional)
     * @param currencyCode  currencyCode currency&#39;s code  (optional)
     * @param sellerCode  sellerCode seller&#39;s code  (optional)
     * @param date  date application 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>  list of one shot charge template  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETOneShotChargeTemplateList1Call(String languageCode, String countryCode, String currencyCode, String sellerCode, OffsetDateTime date, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

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

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

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

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

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

        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 gETOneShotChargeTemplateList1ValidateBeforeCall(String languageCode, String countryCode, String currencyCode, String sellerCode, OffsetDateTime date, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETOneShotChargeTemplateList1Call(languageCode, countryCode, currencyCode, sellerCode, date, _callback);
        return localVarCall;

    }

    /**
     *  List one shot charge template with the following filters.  
     *  List one shot charge template with the following filters.  
     * @param languageCode  languageCode language&#39;s code  (optional)
     * @param countryCode  countryCode country&#39;s code  (optional)
     * @param currencyCode  currencyCode currency&#39;s code  (optional)
     * @param sellerCode  sellerCode seller&#39;s code  (optional)
     * @param date  date application date  (optional)
     * @return OneShotChargeTemplateWithPriceListDto
     * @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 one shot charge template  </td><td>  -  </td></tr>
     </table>
     */
    public OneShotChargeTemplateWithPriceListDto gETOneShotChargeTemplateList1(String languageCode, String countryCode, String currencyCode, String sellerCode, OffsetDateTime date) throws ApiException {
        ApiResponse<OneShotChargeTemplateWithPriceListDto> localVarResp = gETOneShotChargeTemplateList1WithHttpInfo(languageCode, countryCode, currencyCode, sellerCode, date);
        return localVarResp.getData();
    }

    /**
     *  List one shot charge template with the following filters.  
     *  List one shot charge template with the following filters.  
     * @param languageCode  languageCode language&#39;s code  (optional)
     * @param countryCode  countryCode country&#39;s code  (optional)
     * @param currencyCode  currencyCode currency&#39;s code  (optional)
     * @param sellerCode  sellerCode seller&#39;s code  (optional)
     * @param date  date application date  (optional)
     * @return ApiResponse&lt;OneShotChargeTemplateWithPriceListDto&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 one shot charge template  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<OneShotChargeTemplateWithPriceListDto> gETOneShotChargeTemplateList1WithHttpInfo(String languageCode, String countryCode, String currencyCode, String sellerCode, OffsetDateTime date) throws ApiException {
        okhttp3.Call localVarCall = gETOneShotChargeTemplateList1ValidateBeforeCall(languageCode, countryCode, currencyCode, sellerCode, date, null);
        Type localVarReturnType = new TypeToken<OneShotChargeTemplateWithPriceListDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  List one shot charge template with the following filters.   (asynchronously)
     *  List one shot charge template with the following filters.  
     * @param languageCode  languageCode language&#39;s code  (optional)
     * @param countryCode  countryCode country&#39;s code  (optional)
     * @param currencyCode  currencyCode currency&#39;s code  (optional)
     * @param sellerCode  sellerCode seller&#39;s code  (optional)
     * @param date  date application 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>  list of one shot charge template  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETOneShotChargeTemplateList1Async(String languageCode, String countryCode, String currencyCode, String sellerCode, OffsetDateTime date, final ApiCallback<OneShotChargeTemplateWithPriceListDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETOneShotChargeTemplateList1ValidateBeforeCall(languageCode, countryCode, currencyCode, sellerCode, date, _callback);
        Type localVarReturnType = new TypeToken<OneShotChargeTemplateWithPriceListDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETOneShotChargeTemplateSearch1
     * @param oneShotChargeTemplateCode  oneShotChargeTemplateCode The one shot charge template&#39;s code  (optional)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  one shot charge template  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETOneShotChargeTemplateSearch1Call(String oneShotChargeTemplateCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

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

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

        okhttp3.Call localVarCall = gETOneShotChargeTemplateSearch1Call(oneShotChargeTemplateCode, _callback);
        return localVarCall;

    }

    /**
     *  Search one shot charge templatewith a given code.  
     *  Search one shot charge templatewith a given code.  
     * @param oneShotChargeTemplateCode  oneShotChargeTemplateCode The one shot charge template&#39;s code  (optional)
     * @return GetOneShotChargeTemplateResponseDto
     * @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>  one shot charge template  </td><td>  -  </td></tr>
     </table>
     */
    public GetOneShotChargeTemplateResponseDto gETOneShotChargeTemplateSearch1(String oneShotChargeTemplateCode) throws ApiException {
        ApiResponse<GetOneShotChargeTemplateResponseDto> localVarResp = gETOneShotChargeTemplateSearch1WithHttpInfo(oneShotChargeTemplateCode);
        return localVarResp.getData();
    }

    /**
     *  Search one shot charge templatewith a given code.  
     *  Search one shot charge templatewith a given code.  
     * @param oneShotChargeTemplateCode  oneShotChargeTemplateCode The one shot charge template&#39;s code  (optional)
     * @return ApiResponse&lt;GetOneShotChargeTemplateResponseDto&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>  one shot charge template  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<GetOneShotChargeTemplateResponseDto> gETOneShotChargeTemplateSearch1WithHttpInfo(String oneShotChargeTemplateCode) throws ApiException {
        okhttp3.Call localVarCall = gETOneShotChargeTemplateSearch1ValidateBeforeCall(oneShotChargeTemplateCode, null);
        Type localVarReturnType = new TypeToken<GetOneShotChargeTemplateResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Search one shot charge templatewith a given code.   (asynchronously)
     *  Search one shot charge templatewith a given code.  
     * @param oneShotChargeTemplateCode  oneShotChargeTemplateCode The one shot charge template&#39;s code  (optional)
     * @param _callback The callback to be executed when the API call finishes
     * @return The request call
     * @throws ApiException If fail to process the API call, e.g. serializing the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  one shot charge template  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETOneShotChargeTemplateSearch1Async(String oneShotChargeTemplateCode, final ApiCallback<GetOneShotChargeTemplateResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETOneShotChargeTemplateSearch1ValidateBeforeCall(oneShotChargeTemplateCode, _callback);
        Type localVarReturnType = new TypeToken<GetOneShotChargeTemplateResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTOneShotChargeTemplateCodeDisable1
     * @param code  code One shot charge template code  (required)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTOneShotChargeTemplateCodeDisable1Call(String code, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

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

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

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

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

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

    }

    /**
     *  Disable a One shot charge template with a given code  
     *  Disable a One shot charge template with a given code  
     * @param code  code One shot charge template code  (required)
     * @return ActionStatus
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus pOSTOneShotChargeTemplateCodeDisable1(String code) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTOneShotChargeTemplateCodeDisable1WithHttpInfo(code);
        return localVarResp.getData();
    }

    /**
     *  Disable a One shot charge template with a given code  
     *  Disable a One shot charge template with a given code  
     * @param code  code One shot charge template code  (required)
     * @return ApiResponse&lt;ActionStatus&gt;
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> pOSTOneShotChargeTemplateCodeDisable1WithHttpInfo(String code) throws ApiException {
        okhttp3.Call localVarCall = pOSTOneShotChargeTemplateCodeDisable1ValidateBeforeCall(code, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Disable a One shot charge template with a given code   (asynchronously)
     *  Disable a One shot charge template with a given code  
     * @param code  code One shot charge template code  (required)
     * @param _callback The callback to be executed when the API call finishes
     * @return The request call
     * @throws ApiException If fail to process the API call, e.g. serializing the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTOneShotChargeTemplateCodeDisable1Async(String code, final ApiCallback<ActionStatus> _callback) throws ApiException {

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

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

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

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

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

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

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

    }

    /**
     *  Enable a One shot charge template with a given code  
     *  Enable a One shot charge template with a given code  
     * @param code  code One shot charge template code  (required)
     * @return ActionStatus
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus pOSTOneShotChargeTemplateCodeEnable1(String code) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTOneShotChargeTemplateCodeEnable1WithHttpInfo(code);
        return localVarResp.getData();
    }

    /**
     *  Enable a One shot charge template with a given code  
     *  Enable a One shot charge template with a given code  
     * @param code  code One shot charge template code  (required)
     * @return ApiResponse&lt;ActionStatus&gt;
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> pOSTOneShotChargeTemplateCodeEnable1WithHttpInfo(String code) throws ApiException {
        okhttp3.Call localVarCall = pOSTOneShotChargeTemplateCodeEnable1ValidateBeforeCall(code, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Enable a One shot charge template with a given code   (asynchronously)
     *  Enable a One shot charge template with a given code  
     * @param code  code One shot charge template code  (required)
     * @param _callback The callback to be executed when the API call finishes
     * @return The request call
     * @throws ApiException If fail to process the API call, e.g. serializing the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTOneShotChargeTemplateCodeEnable1Async(String code, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTOneShotChargeTemplateCodeEnable1ValidateBeforeCall(code, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTOneShotChargeTemplateCreate1
     * @param oneShotChargeTemplateDto  postData The one shot charge 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 pOSTOneShotChargeTemplateCreate1Call(OneShotChargeTemplateDto oneShotChargeTemplateDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = oneShotChargeTemplateDto;

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

        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 pOSTOneShotChargeTemplateCreate1ValidateBeforeCall(OneShotChargeTemplateDto oneShotChargeTemplateDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTOneShotChargeTemplateCreate1Call(oneShotChargeTemplateDto, _callback);
        return localVarCall;

    }

    /**
     *  Create one shot charge template.  
     *  Create one shot charge template.  
     * @param oneShotChargeTemplateDto  postData The one shot charge 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 pOSTOneShotChargeTemplateCreate1(OneShotChargeTemplateDto oneShotChargeTemplateDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTOneShotChargeTemplateCreate1WithHttpInfo(oneShotChargeTemplateDto);
        return localVarResp.getData();
    }

    /**
     *  Create one shot charge template.  
     *  Create one shot charge template.  
     * @param oneShotChargeTemplateDto  postData The one shot charge 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> pOSTOneShotChargeTemplateCreate1WithHttpInfo(OneShotChargeTemplateDto oneShotChargeTemplateDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTOneShotChargeTemplateCreate1ValidateBeforeCall(oneShotChargeTemplateDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create one shot charge template.   (asynchronously)
     *  Create one shot charge template.  
     * @param oneShotChargeTemplateDto  postData The one shot charge 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 pOSTOneShotChargeTemplateCreate1Async(OneShotChargeTemplateDto oneShotChargeTemplateDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTOneShotChargeTemplateCreate1ValidateBeforeCall(oneShotChargeTemplateDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTOneShotChargeTemplateCreateOrUpdate1
     * @param oneShotChargeTemplateDto  postData The exemple&#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 pOSTOneShotChargeTemplateCreateOrUpdate1Call(OneShotChargeTemplateDto oneShotChargeTemplateDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = oneShotChargeTemplateDto;

        // create path and map variables
        String localVarPath = "/catalog/oneShotChargeTemplate/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 pOSTOneShotChargeTemplateCreateOrUpdate1ValidateBeforeCall(OneShotChargeTemplateDto oneShotChargeTemplateDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTOneShotChargeTemplateCreateOrUpdate1Call(oneShotChargeTemplateDto, _callback);
        return localVarCall;

    }

    /**
     *  Create new or update an existing.  
     *  Create new or update an existing.  
     * @param oneShotChargeTemplateDto  postData The exemple&#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 pOSTOneShotChargeTemplateCreateOrUpdate1(OneShotChargeTemplateDto oneShotChargeTemplateDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTOneShotChargeTemplateCreateOrUpdate1WithHttpInfo(oneShotChargeTemplateDto);
        return localVarResp.getData();
    }

    /**
     *  Create new or update an existing.  
     *  Create new or update an existing.  
     * @param oneShotChargeTemplateDto  postData The exemple&#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> pOSTOneShotChargeTemplateCreateOrUpdate1WithHttpInfo(OneShotChargeTemplateDto oneShotChargeTemplateDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTOneShotChargeTemplateCreateOrUpdate1ValidateBeforeCall(oneShotChargeTemplateDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create new or update an existing.   (asynchronously)
     *  Create new or update an existing.  
     * @param oneShotChargeTemplateDto  postData The exemple&#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 pOSTOneShotChargeTemplateCreateOrUpdate1Async(OneShotChargeTemplateDto oneShotChargeTemplateDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTOneShotChargeTemplateCreateOrUpdate1ValidateBeforeCall(oneShotChargeTemplateDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pUTOneShotChargeTemplateUpdate1
     * @param oneShotChargeTemplateDto  postData The one shot charge 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 pUTOneShotChargeTemplateUpdate1Call(OneShotChargeTemplateDto oneShotChargeTemplateDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = oneShotChargeTemplateDto;

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

        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 pUTOneShotChargeTemplateUpdate1ValidateBeforeCall(OneShotChargeTemplateDto oneShotChargeTemplateDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pUTOneShotChargeTemplateUpdate1Call(oneShotChargeTemplateDto, _callback);
        return localVarCall;

    }

    /**
     *  Update one shot charge template.  
     *  Update one shot charge template.  
     * @param oneShotChargeTemplateDto  postData The one shot charge 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 pUTOneShotChargeTemplateUpdate1(OneShotChargeTemplateDto oneShotChargeTemplateDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pUTOneShotChargeTemplateUpdate1WithHttpInfo(oneShotChargeTemplateDto);
        return localVarResp.getData();
    }

    /**
     *  Update one shot charge template.  
     *  Update one shot charge template.  
     * @param oneShotChargeTemplateDto  postData The one shot charge 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> pUTOneShotChargeTemplateUpdate1WithHttpInfo(OneShotChargeTemplateDto oneShotChargeTemplateDto) throws ApiException {
        okhttp3.Call localVarCall = pUTOneShotChargeTemplateUpdate1ValidateBeforeCall(oneShotChargeTemplateDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Update one shot charge template.   (asynchronously)
     *  Update one shot charge template.  
     * @param oneShotChargeTemplateDto  postData The one shot charge 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 pUTOneShotChargeTemplateUpdate1Async(OneShotChargeTemplateDto oneShotChargeTemplateDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

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

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

        okhttp3.Call localVarCall = user28Call(_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 user28() throws ApiException {
        ApiResponse<ActionStatus> localVarResp = user28WithHttpInfo();
        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> user28WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = user28ValidateBeforeCall(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 user28Async(final ApiCallback<ActionStatus> _callback) throws ApiException {

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