/*
 * 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.AccountOperationDto;
import org.openapitools.client.model.AccountOperationResponseDto;
import org.openapitools.client.model.AccountOperationsResponseDto;
import org.openapitools.client.model.ActionStatus;
import org.openapitools.client.model.LitigationRequestDto;
import org.openapitools.client.model.MatchOperationRequestDto;
import org.openapitools.client.model.MatchedOperationsResponseDto;
import org.openapitools.client.model.PagingAndFiltering;
import org.openapitools.client.model.UnMatchingOperationRequestDto;

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

public class AccountOperationApi {
    private ApiClient localVarApiClient;

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

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

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

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

    /**
     * Build call for gETAccountOperationAccountOperationIdListMatchedOperations1
     * @param accountOperationId  accountOperationId Account operation identifier  (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>  A list of matched operations  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETAccountOperationAccountOperationIdListMatchedOperations1Call(Long accountOperationId, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/accountOperation/{accountOperationId}/listMatchedOperations"
            .replaceAll("\\{" + "accountOperationId" + "\\}", localVarApiClient.escapeString(accountOperationId.toString()));

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

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

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

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

        okhttp3.Call localVarCall = gETAccountOperationAccountOperationIdListMatchedOperations1Call(accountOperationId, _callback);
        return localVarCall;

    }

    /**
     *  List matched operations for a given account operation  
     *  List matched operations for a given account operation  
     * @param accountOperationId  accountOperationId Account operation identifier  (required)
     * @return MatchedOperationsResponseDto
     * @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 matched operations  </td><td>  -  </td></tr>
     </table>
     */
    public MatchedOperationsResponseDto gETAccountOperationAccountOperationIdListMatchedOperations1(Long accountOperationId) throws ApiException {
        ApiResponse<MatchedOperationsResponseDto> localVarResp = gETAccountOperationAccountOperationIdListMatchedOperations1WithHttpInfo(accountOperationId);
        return localVarResp.getData();
    }

    /**
     *  List matched operations for a given account operation  
     *  List matched operations for a given account operation  
     * @param accountOperationId  accountOperationId Account operation identifier  (required)
     * @return ApiResponse&lt;MatchedOperationsResponseDto&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 matched operations  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<MatchedOperationsResponseDto> gETAccountOperationAccountOperationIdListMatchedOperations1WithHttpInfo(Long accountOperationId) throws ApiException {
        okhttp3.Call localVarCall = gETAccountOperationAccountOperationIdListMatchedOperations1ValidateBeforeCall(accountOperationId, null);
        Type localVarReturnType = new TypeToken<MatchedOperationsResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  List matched operations for a given account operation   (asynchronously)
     *  List matched operations for a given account operation  
     * @param accountOperationId  accountOperationId Account operation identifier  (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>  A list of matched operations  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETAccountOperationAccountOperationIdListMatchedOperations1Async(Long accountOperationId, final ApiCallback<MatchedOperationsResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETAccountOperationAccountOperationIdListMatchedOperations1ValidateBeforeCall(accountOperationId, _callback);
        Type localVarReturnType = new TypeToken<MatchedOperationsResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETAccountOperationList1
     * @param customerAccountCode  customerAccountCode The customer account&#39;s code. Deprecated in v. 4.7.2 Use query&#x3D;userAccount.code:code 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;id&quot;)
     * @param sortOrder  sortOrder Sorting - sort order.  (optional, default to DESCENDING)
     * @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 account operations  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETAccountOperationList1Call(String customerAccountCode, String query, String fields, Integer offset, Integer limit, String sortBy, String sortOrder, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

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

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

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

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

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

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

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

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

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

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

    @SuppressWarnings("rawtypes")
    private okhttp3.Call gETAccountOperationList1ValidateBeforeCall(String customerAccountCode, String query, String fields, Integer offset, Integer limit, String sortBy, String sortOrder, final ApiCallback _callback) throws ApiException {
        

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

    }

    /**
     *  List account operations matching a given criteria  
     *  List account operations matching a given criteria  
     * @param customerAccountCode  customerAccountCode The customer account&#39;s code. Deprecated in v. 4.7.2 Use query&#x3D;userAccount.code:code 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;id&quot;)
     * @param sortOrder  sortOrder Sorting - sort order.  (optional, default to DESCENDING)
     * @return AccountOperationsResponseDto
     * @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 account operations  </td><td>  -  </td></tr>
     </table>
     */
    public AccountOperationsResponseDto gETAccountOperationList1(String customerAccountCode, String query, String fields, Integer offset, Integer limit, String sortBy, String sortOrder) throws ApiException {
        ApiResponse<AccountOperationsResponseDto> localVarResp = gETAccountOperationList1WithHttpInfo(customerAccountCode, query, fields, offset, limit, sortBy, sortOrder);
        return localVarResp.getData();
    }

    /**
     *  List account operations matching a given criteria  
     *  List account operations matching a given criteria  
     * @param customerAccountCode  customerAccountCode The customer account&#39;s code. Deprecated in v. 4.7.2 Use query&#x3D;userAccount.code:code 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;id&quot;)
     * @param sortOrder  sortOrder Sorting - sort order.  (optional, default to DESCENDING)
     * @return ApiResponse&lt;AccountOperationsResponseDto&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 account operations  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<AccountOperationsResponseDto> gETAccountOperationList1WithHttpInfo(String customerAccountCode, String query, String fields, Integer offset, Integer limit, String sortBy, String sortOrder) throws ApiException {
        okhttp3.Call localVarCall = gETAccountOperationList1ValidateBeforeCall(customerAccountCode, query, fields, offset, limit, sortBy, sortOrder, null);
        Type localVarReturnType = new TypeToken<AccountOperationsResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  List account operations matching a given criteria   (asynchronously)
     *  List account operations matching a given criteria  
     * @param customerAccountCode  customerAccountCode The customer account&#39;s code. Deprecated in v. 4.7.2 Use query&#x3D;userAccount.code:code 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;id&quot;)
     * @param sortOrder  sortOrder Sorting - sort order.  (optional, default to DESCENDING)
     * @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 account operations  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETAccountOperationList1Async(String customerAccountCode, String query, String fields, Integer offset, Integer limit, String sortBy, String sortOrder, final ApiCallback<AccountOperationsResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETAccountOperationList1ValidateBeforeCall(customerAccountCode, query, fields, offset, limit, sortBy, sortOrder, _callback);
        Type localVarReturnType = new TypeToken<AccountOperationsResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETAccountOperationSearch1
     * @param id  id id of the account operation  (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>  Account operation response  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETAccountOperationSearch1Call(Long id, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

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

        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 gETAccountOperationSearch1ValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETAccountOperationSearch1Call(id, _callback);
        return localVarCall;

    }

    /**
     *  Finds an accountOperation given an id.  
     *  Finds an accountOperation given an id.  
     * @param id  id id of the account operation  (optional)
     * @return AccountOperationResponseDto
     * @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>  Account operation response  </td><td>  -  </td></tr>
     </table>
     */
    public AccountOperationResponseDto gETAccountOperationSearch1(Long id) throws ApiException {
        ApiResponse<AccountOperationResponseDto> localVarResp = gETAccountOperationSearch1WithHttpInfo(id);
        return localVarResp.getData();
    }

    /**
     *  Finds an accountOperation given an id.  
     *  Finds an accountOperation given an id.  
     * @param id  id id of the account operation  (optional)
     * @return ApiResponse&lt;AccountOperationResponseDto&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>  Account operation response  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<AccountOperationResponseDto> gETAccountOperationSearch1WithHttpInfo(Long id) throws ApiException {
        okhttp3.Call localVarCall = gETAccountOperationSearch1ValidateBeforeCall(id, null);
        Type localVarReturnType = new TypeToken<AccountOperationResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Finds an accountOperation given an id.   (asynchronously)
     *  Finds an accountOperation given an id.  
     * @param id  id id of the account operation  (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>  Account operation response  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETAccountOperationSearch1Async(Long id, final ApiCallback<AccountOperationResponseDto> _callback) throws ApiException {

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

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

        okhttp3.Call localVarCall = gETIBaseVersion95Call(_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 gETIBaseVersion95() throws ApiException {
        ApiResponse<ActionStatus> localVarResp = gETIBaseVersion95WithHttpInfo();
        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> gETIBaseVersion95WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = gETIBaseVersion95ValidateBeforeCall(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 gETIBaseVersion95Async(final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETIBaseVersion95ValidateBeforeCall(_callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTAccountOperationAddLitigation1
     * @param litigationRequestDto  postData The litigation&#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 pOSTAccountOperationAddLitigation1Call(LitigationRequestDto litigationRequestDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = litigationRequestDto;

        // create path and map variables
        String localVarPath = "/accountOperation/addLitigation";

        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 pOSTAccountOperationAddLitigation1ValidateBeforeCall(LitigationRequestDto litigationRequestDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTAccountOperationAddLitigation1Call(litigationRequestDto, _callback);
        return localVarCall;

    }

    /**
     *  Add a new litigation  
     *  Add a new litigation  
     * @param litigationRequestDto  postData The litigation&#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 pOSTAccountOperationAddLitigation1(LitigationRequestDto litigationRequestDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTAccountOperationAddLitigation1WithHttpInfo(litigationRequestDto);
        return localVarResp.getData();
    }

    /**
     *  Add a new litigation  
     *  Add a new litigation  
     * @param litigationRequestDto  postData The litigation&#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> pOSTAccountOperationAddLitigation1WithHttpInfo(LitigationRequestDto litigationRequestDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTAccountOperationAddLitigation1ValidateBeforeCall(litigationRequestDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Add a new litigation   (asynchronously)
     *  Add a new litigation  
     * @param litigationRequestDto  postData The litigation&#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 pOSTAccountOperationAddLitigation1Async(LitigationRequestDto litigationRequestDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTAccountOperationAddLitigation1ValidateBeforeCall(litigationRequestDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTAccountOperationCancelLitigation1
     * @param litigationRequestDto  postData The litigation&#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 pOSTAccountOperationCancelLitigation1Call(LitigationRequestDto litigationRequestDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = litigationRequestDto;

        // create path and map variables
        String localVarPath = "/accountOperation/cancelLitigation";

        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 pOSTAccountOperationCancelLitigation1ValidateBeforeCall(LitigationRequestDto litigationRequestDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTAccountOperationCancelLitigation1Call(litigationRequestDto, _callback);
        return localVarCall;

    }

    /**
     *  Cancel a litigation  
     *  Cancel a litigation  
     * @param litigationRequestDto  postData The litigation&#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 pOSTAccountOperationCancelLitigation1(LitigationRequestDto litigationRequestDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTAccountOperationCancelLitigation1WithHttpInfo(litigationRequestDto);
        return localVarResp.getData();
    }

    /**
     *  Cancel a litigation  
     *  Cancel a litigation  
     * @param litigationRequestDto  postData The litigation&#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> pOSTAccountOperationCancelLitigation1WithHttpInfo(LitigationRequestDto litigationRequestDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTAccountOperationCancelLitigation1ValidateBeforeCall(litigationRequestDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Cancel a litigation   (asynchronously)
     *  Cancel a litigation  
     * @param litigationRequestDto  postData The litigation&#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 pOSTAccountOperationCancelLitigation1Async(LitigationRequestDto litigationRequestDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTAccountOperationCancelLitigation1ValidateBeforeCall(litigationRequestDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTAccountOperationCreate1
     * @param accountOperationDto  postData The account operation&#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 pOSTAccountOperationCreate1Call(AccountOperationDto accountOperationDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = accountOperationDto;

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

        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 pOSTAccountOperationCreate1ValidateBeforeCall(AccountOperationDto accountOperationDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTAccountOperationCreate1Call(accountOperationDto, _callback);
        return localVarCall;

    }

    /**
     *  Create a new account operation  
     *  Create a new account operation  
     * @param accountOperationDto  postData The account operation&#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 pOSTAccountOperationCreate1(AccountOperationDto accountOperationDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTAccountOperationCreate1WithHttpInfo(accountOperationDto);
        return localVarResp.getData();
    }

    /**
     *  Create a new account operation  
     *  Create a new account operation  
     * @param accountOperationDto  postData The account operation&#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> pOSTAccountOperationCreate1WithHttpInfo(AccountOperationDto accountOperationDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTAccountOperationCreate1ValidateBeforeCall(accountOperationDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create a new account operation   (asynchronously)
     *  Create a new account operation  
     * @param accountOperationDto  postData The account operation&#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 pOSTAccountOperationCreate1Async(AccountOperationDto accountOperationDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTAccountOperationCreate1ValidateBeforeCall(accountOperationDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTAccountOperationList1
     * @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 account operations  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTAccountOperationList1Call(PagingAndFiltering pagingAndFiltering, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = pagingAndFiltering;

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

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

    }

    /**
     *  List account operations matching a given criteria  
     *  List account operations matching a given criteria  
     * @param pagingAndFiltering  pagingAndFiltering Pagination and filtering criteria  (optional)
     * @return AccountOperationsResponseDto
     * @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 account operations  </td><td>  -  </td></tr>
     </table>
     */
    public AccountOperationsResponseDto pOSTAccountOperationList1(PagingAndFiltering pagingAndFiltering) throws ApiException {
        ApiResponse<AccountOperationsResponseDto> localVarResp = pOSTAccountOperationList1WithHttpInfo(pagingAndFiltering);
        return localVarResp.getData();
    }

    /**
     *  List account operations matching a given criteria  
     *  List account operations matching a given criteria  
     * @param pagingAndFiltering  pagingAndFiltering Pagination and filtering criteria  (optional)
     * @return ApiResponse&lt;AccountOperationsResponseDto&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 account operations  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<AccountOperationsResponseDto> pOSTAccountOperationList1WithHttpInfo(PagingAndFiltering pagingAndFiltering) throws ApiException {
        okhttp3.Call localVarCall = pOSTAccountOperationList1ValidateBeforeCall(pagingAndFiltering, null);
        Type localVarReturnType = new TypeToken<AccountOperationsResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  List account operations matching a given criteria   (asynchronously)
     *  List account operations 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 account operations  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTAccountOperationList1Async(PagingAndFiltering pagingAndFiltering, final ApiCallback<AccountOperationsResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTAccountOperationList1ValidateBeforeCall(pagingAndFiltering, _callback);
        Type localVarReturnType = new TypeToken<AccountOperationsResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTAccountOperationMatchOperations1
     * @param matchOperationRequestDto  postData The matching operation&#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 pOSTAccountOperationMatchOperations1Call(MatchOperationRequestDto matchOperationRequestDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = matchOperationRequestDto;

        // create path and map variables
        String localVarPath = "/accountOperation/matchOperations";

        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 pOSTAccountOperationMatchOperations1ValidateBeforeCall(MatchOperationRequestDto matchOperationRequestDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTAccountOperationMatchOperations1Call(matchOperationRequestDto, _callback);
        return localVarCall;

    }

    /**
     *  Match operations  
     *  Match operations  
     * @param matchOperationRequestDto  postData The matching operation&#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 pOSTAccountOperationMatchOperations1(MatchOperationRequestDto matchOperationRequestDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTAccountOperationMatchOperations1WithHttpInfo(matchOperationRequestDto);
        return localVarResp.getData();
    }

    /**
     *  Match operations  
     *  Match operations  
     * @param matchOperationRequestDto  postData The matching operation&#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> pOSTAccountOperationMatchOperations1WithHttpInfo(MatchOperationRequestDto matchOperationRequestDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTAccountOperationMatchOperations1ValidateBeforeCall(matchOperationRequestDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Match operations   (asynchronously)
     *  Match operations  
     * @param matchOperationRequestDto  postData The matching operation&#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 pOSTAccountOperationMatchOperations1Async(MatchOperationRequestDto matchOperationRequestDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTAccountOperationMatchOperations1ValidateBeforeCall(matchOperationRequestDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTAccountOperationUnMatchingOperations1
     * @param unMatchingOperationRequestDto  postData The unmatching operations 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 pOSTAccountOperationUnMatchingOperations1Call(UnMatchingOperationRequestDto unMatchingOperationRequestDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = unMatchingOperationRequestDto;

        // create path and map variables
        String localVarPath = "/accountOperation/unMatchingOperations";

        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 pOSTAccountOperationUnMatchingOperations1ValidateBeforeCall(UnMatchingOperationRequestDto unMatchingOperationRequestDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTAccountOperationUnMatchingOperations1Call(unMatchingOperationRequestDto, _callback);
        return localVarCall;

    }

    /**
     *  Unmatching operations  
     *  Unmatching operations  
     * @param unMatchingOperationRequestDto  postData The unmatching operations 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 pOSTAccountOperationUnMatchingOperations1(UnMatchingOperationRequestDto unMatchingOperationRequestDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTAccountOperationUnMatchingOperations1WithHttpInfo(unMatchingOperationRequestDto);
        return localVarResp.getData();
    }

    /**
     *  Unmatching operations  
     *  Unmatching operations  
     * @param unMatchingOperationRequestDto  postData The unmatching operations 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> pOSTAccountOperationUnMatchingOperations1WithHttpInfo(UnMatchingOperationRequestDto unMatchingOperationRequestDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTAccountOperationUnMatchingOperations1ValidateBeforeCall(unMatchingOperationRequestDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Unmatching operations   (asynchronously)
     *  Unmatching operations  
     * @param unMatchingOperationRequestDto  postData The unmatching operations 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 pOSTAccountOperationUnMatchingOperations1Async(UnMatchingOperationRequestDto unMatchingOperationRequestDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTAccountOperationUnMatchingOperations1ValidateBeforeCall(unMatchingOperationRequestDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pUTAccountOperationUpdatePaymentMethod1
     * @param customerAccountCode  customerAccountCode Customer account code  (optional)
     * @param aoId  aoId Account operation Id  (optional)
     * @param paymentMethod  paymentMethod Payment method  (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 pUTAccountOperationUpdatePaymentMethod1Call(String customerAccountCode, Long aoId, String paymentMethod, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/accountOperation/updatePaymentMethod";

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

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

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

        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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call pUTAccountOperationUpdatePaymentMethod1ValidateBeforeCall(String customerAccountCode, Long aoId, String paymentMethod, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pUTAccountOperationUpdatePaymentMethod1Call(customerAccountCode, aoId, paymentMethod, _callback);
        return localVarCall;

    }

    /**
     *  Update payment method for all customerAccount AO&#39;s if customerAccountCode is set.Or single AO if aoId is set.  
     *  Update payment method for all customerAccount AO&#39;s if customerAccountCode is set.Or single AO if aoId is set.  
     * @param customerAccountCode  customerAccountCode Customer account code  (optional)
     * @param aoId  aoId Account operation Id  (optional)
     * @param paymentMethod  paymentMethod Payment method  (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 pUTAccountOperationUpdatePaymentMethod1(String customerAccountCode, Long aoId, String paymentMethod) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pUTAccountOperationUpdatePaymentMethod1WithHttpInfo(customerAccountCode, aoId, paymentMethod);
        return localVarResp.getData();
    }

    /**
     *  Update payment method for all customerAccount AO&#39;s if customerAccountCode is set.Or single AO if aoId is set.  
     *  Update payment method for all customerAccount AO&#39;s if customerAccountCode is set.Or single AO if aoId is set.  
     * @param customerAccountCode  customerAccountCode Customer account code  (optional)
     * @param aoId  aoId Account operation Id  (optional)
     * @param paymentMethod  paymentMethod Payment method  (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> pUTAccountOperationUpdatePaymentMethod1WithHttpInfo(String customerAccountCode, Long aoId, String paymentMethod) throws ApiException {
        okhttp3.Call localVarCall = pUTAccountOperationUpdatePaymentMethod1ValidateBeforeCall(customerAccountCode, aoId, paymentMethod, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Update payment method for all customerAccount AO&#39;s if customerAccountCode is set.Or single AO if aoId is set.   (asynchronously)
     *  Update payment method for all customerAccount AO&#39;s if customerAccountCode is set.Or single AO if aoId is set.  
     * @param customerAccountCode  customerAccountCode Customer account code  (optional)
     * @param aoId  aoId Account operation Id  (optional)
     * @param paymentMethod  paymentMethod Payment method  (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 pUTAccountOperationUpdatePaymentMethod1Async(String customerAccountCode, Long aoId, String paymentMethod, final ApiCallback<ActionStatus> _callback) throws ApiException {

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

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

        okhttp3.Call localVarCall = user88Call(_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 user88() throws ApiException {
        ApiResponse<ActionStatus> localVarResp = user88WithHttpInfo();
        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> user88WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = user88ValidateBeforeCall(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 user88Async(final ApiCallback<ActionStatus> _callback) throws ApiException {

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