All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alipay.v3.api.AlipayIserviceCcmAgentApi Maven / Gradle / Ivy

There is a newer version: 3.1.6.ALL
Show newest version
/*
 * 支付宝开放平台API
 * 支付宝开放平台v3协议文档
 *
 * The version of the OpenAPI document: 2022-12-23
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.alipay.v3.api;

import com.alipay.v3.ApiCallback;
import com.alipay.v3.ApiClient;
import com.alipay.v3.ApiException;
import com.alipay.v3.ApiResponse;
import com.alipay.v3.Configuration;
import com.alipay.v3.Pair;
import com.alipay.v3.ProgressRequestBody;
import com.alipay.v3.ProgressResponseBody;
import com.alipay.v3.util.AlipayLogger;
import com.alipay.v3.util.model.CustomizedParams;

import com.google.common.base.Strings;
import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import com.alipay.v3.model.AlipayIserviceCcmAgentCreateDefaultResponse;
import com.alipay.v3.model.AlipayIserviceCcmAgentCreateModel;
import com.alipay.v3.model.AlipayIserviceCcmAgentCreateResponseModel;
import com.alipay.v3.model.AlipayIserviceCcmAgentDeleteDefaultResponse;
import com.alipay.v3.model.AlipayIserviceCcmAgentGetDefaultResponse;
import com.alipay.v3.model.AlipayIserviceCcmAgentGetResponseModel;
import com.alipay.v3.model.AlipayIserviceCcmAgentModifyDefaultResponse;
import com.alipay.v3.model.AlipayIserviceCcmAgentModifyModel;
import com.alipay.v3.model.AlipayIserviceCcmAgentQueryDefaultResponse;
import com.alipay.v3.model.AlipayIserviceCcmAgentQueryModel;
import com.alipay.v3.model.AlipayIserviceCcmAgentQueryResponseModel;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.ws.rs.core.GenericType;

public class AlipayIserviceCcmAgentApi {
    private ApiClient localVarApiClient;
    private int localHostIndex;
    private String localCustomBaseUrl;

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

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

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

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

    public int getHostIndex() {
        return localHostIndex;
    }

    public void setHostIndex(int hostIndex) {
        this.localHostIndex = hostIndex;
    }

    public String getCustomBaseUrl() {
        return localCustomBaseUrl;
    }

    public void setCustomBaseUrl(String customBaseUrl) {
        this.localCustomBaseUrl = customBaseUrl;
    }

    /**
     * Build call for create
     * @param alipayIserviceCcmAgentCreateModel  (optional)
     * @param _callback Callback for upload/download progress
     * @param customizedParams
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     
Status Code Description Response Headers
200 common response -
0 请求失败 -
*/ public okhttp3.Call createCall(AlipayIserviceCcmAgentCreateModel alipayIserviceCcmAgentCreateModel, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = (customizedParams != null && !Strings.isNullOrEmpty(customizedParams.getBodyContent())) ? customizedParams.getBodyContent() : alipayIserviceCcmAgentCreateModel; // create path and map variables String localVarPath = "/v3/alipay/iservice/ccm/agent/create"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } if (customizedParams != null) { //额外query参数 if (customizedParams.getQueryParams() != null && customizedParams.getQueryParams().size() > 0) { for (Map.Entry entry : customizedParams.getQueryParams().entrySet()) { localVarQueryParams.addAll(localVarApiClient.parameterToPair(entry.getKey(), entry.getValue())); } } if (!Strings.isNullOrEmpty(customizedParams.getAppAuthToken())) { localVarHeaderParams.put("alipay-app-auth-token", customizedParams.getAppAuthToken()); } //额外非全局header参数 if (customizedParams.getHeaderParams() != null && customizedParams.getHeaderParams().size() > 0) { localVarHeaderParams.putAll(customizedParams.getHeaderParams()); } } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createValidateBeforeCall(AlipayIserviceCcmAgentCreateModel alipayIserviceCcmAgentCreateModel, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException { okhttp3.Call localVarCall = createCall(alipayIserviceCcmAgentCreateModel, _callback, customizedParams); return localVarCall; } /** * 新增客服接口 * 新增一个CCM客服 * @param alipayIserviceCcmAgentCreateModel (optional) * @return AlipayIserviceCcmAgentCreateResponseModel * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 common response -
0 请求失败 -
*/ public AlipayIserviceCcmAgentCreateResponseModel create(AlipayIserviceCcmAgentCreateModel alipayIserviceCcmAgentCreateModel) throws ApiException { ApiResponse localVarResp = createWithHttpInfo(alipayIserviceCcmAgentCreateModel, null); return localVarResp.getData(); } public AlipayIserviceCcmAgentCreateResponseModel create(AlipayIserviceCcmAgentCreateModel alipayIserviceCcmAgentCreateModel, CustomizedParams customizedParams) throws ApiException { ApiResponse localVarResp = createWithHttpInfo(alipayIserviceCcmAgentCreateModel, customizedParams); return localVarResp.getData(); } /** * 新增客服接口 * 新增一个CCM客服 * @param alipayIserviceCcmAgentCreateModel (optional) * @return ApiResponse<AlipayIserviceCcmAgentCreateResponseModel> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 common response -
0 请求失败 -
*/ public ApiResponse createWithHttpInfo(AlipayIserviceCcmAgentCreateModel alipayIserviceCcmAgentCreateModel, CustomizedParams customizedParams) throws ApiException { okhttp3.Call localVarCall = createValidateBeforeCall(alipayIserviceCcmAgentCreateModel, null, customizedParams); try { Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } catch (ApiException e) { try { e.setErrorObject(localVarApiClient.getJSON().getGson().fromJson(e.getResponseBody(), new TypeToken(){}.getType())); } catch (Exception ex) { AlipayLogger.logBizWarn(ex); } throw e; } } /** * 新增客服接口 (asynchronously) * 新增一个CCM客服 * @param alipayIserviceCcmAgentCreateModel (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
Status Code Description Response Headers
200 common response -
0 请求失败 -
*/ public okhttp3.Call createAsync(AlipayIserviceCcmAgentCreateModel alipayIserviceCcmAgentCreateModel, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createValidateBeforeCall(alipayIserviceCcmAgentCreateModel, _callback, null); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public okhttp3.Call createAsync(AlipayIserviceCcmAgentCreateModel alipayIserviceCcmAgentCreateModel, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException { okhttp3.Call localVarCall = createValidateBeforeCall(alipayIserviceCcmAgentCreateModel, _callback, customizedParams); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for delete * @param id 客服id (optional) * @param _callback Callback for upload/download progress * @param customizedParams * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 common response -
0 请求失败 -
*/ public okhttp3.Call deleteCall(String id, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/v3/alipay/iservice/ccm/agent/delete"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (id != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("id", id)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } if (customizedParams != null) { //额外query参数 if (customizedParams.getQueryParams() != null && customizedParams.getQueryParams().size() > 0) { for (Map.Entry entry : customizedParams.getQueryParams().entrySet()) { localVarQueryParams.addAll(localVarApiClient.parameterToPair(entry.getKey(), entry.getValue())); } } if (!Strings.isNullOrEmpty(customizedParams.getAppAuthToken())) { localVarHeaderParams.put("alipay-app-auth-token", customizedParams.getAppAuthToken()); } //额外非全局header参数 if (customizedParams.getHeaderParams() != null && customizedParams.getHeaderParams().size() > 0) { localVarHeaderParams.putAll(customizedParams.getHeaderParams()); } } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteValidateBeforeCall(String id, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException { okhttp3.Call localVarCall = deleteCall(id, _callback, customizedParams); return localVarCall; } /** * 删除客服接口 * 管理员删除一个客服 * @param id 客服id (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 common response -
0 请求失败 -
*/ public Object delete(String id) throws ApiException { ApiResponse localVarResp = deleteWithHttpInfo(id, null); return localVarResp.getData(); } public Object delete(String id, CustomizedParams customizedParams) throws ApiException { ApiResponse localVarResp = deleteWithHttpInfo(id, customizedParams); return localVarResp.getData(); } /** * 删除客服接口 * 管理员删除一个客服 * @param id 客服id (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 common response -
0 请求失败 -
*/ public ApiResponse deleteWithHttpInfo(String id, CustomizedParams customizedParams) throws ApiException { okhttp3.Call localVarCall = deleteValidateBeforeCall(id, null, customizedParams); try { Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } catch (ApiException e) { try { e.setErrorObject(localVarApiClient.getJSON().getGson().fromJson(e.getResponseBody(), new TypeToken(){}.getType())); } catch (Exception ex) { AlipayLogger.logBizWarn(ex); } throw e; } } /** * 删除客服接口 (asynchronously) * 管理员删除一个客服 * @param id 客服id (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
Status Code Description Response Headers
200 common response -
0 请求失败 -
*/ public okhttp3.Call deleteAsync(String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteValidateBeforeCall(id, _callback, null); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public okhttp3.Call deleteAsync(String id, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException { okhttp3.Call localVarCall = deleteValidateBeforeCall(id, _callback, customizedParams); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for get * @param id 客服id (optional) * @param jobNumber 客服工号 (optional) * @param userChannel 客服账号渠道, ALIPAY:支付宝账号 user_channel和external_user_id必须配对使用 (optional) * @param externalUserId 客服账号id,当user_channel=ALIPAY时,此id为支付宝2088id external_user_id和user_channel必须配对使用 (optional) * @param _callback Callback for upload/download progress * @param customizedParams * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 common response -
0 请求失败 -
*/ public okhttp3.Call getCall(String id, String jobNumber, String userChannel, String externalUserId, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/v3/alipay/iservice/ccm/agent/get"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (id != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("id", id)); } if (jobNumber != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("job_number", jobNumber)); } if (userChannel != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("user_channel", userChannel)); } if (externalUserId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("external_user_id", externalUserId)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } if (customizedParams != null) { //额外query参数 if (customizedParams.getQueryParams() != null && customizedParams.getQueryParams().size() > 0) { for (Map.Entry entry : customizedParams.getQueryParams().entrySet()) { localVarQueryParams.addAll(localVarApiClient.parameterToPair(entry.getKey(), entry.getValue())); } } if (!Strings.isNullOrEmpty(customizedParams.getAppAuthToken())) { localVarHeaderParams.put("alipay-app-auth-token", customizedParams.getAppAuthToken()); } //额外非全局header参数 if (customizedParams.getHeaderParams() != null && customizedParams.getHeaderParams().size() > 0) { localVarHeaderParams.putAll(customizedParams.getHeaderParams()); } } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getValidateBeforeCall(String id, String jobNumber, String userChannel, String externalUserId, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException { okhttp3.Call localVarCall = getCall(id, jobNumber, userChannel, externalUserId, _callback, customizedParams); return localVarCall; } /** * 查询客服详情 * ISV或商户查询获取某个客服的详细信息 * @param id 客服id (optional) * @param jobNumber 客服工号 (optional) * @param userChannel 客服账号渠道, ALIPAY:支付宝账号 user_channel和external_user_id必须配对使用 (optional) * @param externalUserId 客服账号id,当user_channel=ALIPAY时,此id为支付宝2088id external_user_id和user_channel必须配对使用 (optional) * @return AlipayIserviceCcmAgentGetResponseModel * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 common response -
0 请求失败 -
*/ public AlipayIserviceCcmAgentGetResponseModel get(String id, String jobNumber, String userChannel, String externalUserId) throws ApiException { ApiResponse localVarResp = getWithHttpInfo(id, jobNumber, userChannel, externalUserId, null); return localVarResp.getData(); } public AlipayIserviceCcmAgentGetResponseModel get(String id, String jobNumber, String userChannel, String externalUserId, CustomizedParams customizedParams) throws ApiException { ApiResponse localVarResp = getWithHttpInfo(id, jobNumber, userChannel, externalUserId, customizedParams); return localVarResp.getData(); } /** * 查询客服详情 * ISV或商户查询获取某个客服的详细信息 * @param id 客服id (optional) * @param jobNumber 客服工号 (optional) * @param userChannel 客服账号渠道, ALIPAY:支付宝账号 user_channel和external_user_id必须配对使用 (optional) * @param externalUserId 客服账号id,当user_channel=ALIPAY时,此id为支付宝2088id external_user_id和user_channel必须配对使用 (optional) * @return ApiResponse<AlipayIserviceCcmAgentGetResponseModel> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 common response -
0 请求失败 -
*/ public ApiResponse getWithHttpInfo(String id, String jobNumber, String userChannel, String externalUserId, CustomizedParams customizedParams) throws ApiException { okhttp3.Call localVarCall = getValidateBeforeCall(id, jobNumber, userChannel, externalUserId, null, customizedParams); try { Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } catch (ApiException e) { try { e.setErrorObject(localVarApiClient.getJSON().getGson().fromJson(e.getResponseBody(), new TypeToken(){}.getType())); } catch (Exception ex) { AlipayLogger.logBizWarn(ex); } throw e; } } /** * 查询客服详情 (asynchronously) * ISV或商户查询获取某个客服的详细信息 * @param id 客服id (optional) * @param jobNumber 客服工号 (optional) * @param userChannel 客服账号渠道, ALIPAY:支付宝账号 user_channel和external_user_id必须配对使用 (optional) * @param externalUserId 客服账号id,当user_channel=ALIPAY时,此id为支付宝2088id external_user_id和user_channel必须配对使用 (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
Status Code Description Response Headers
200 common response -
0 请求失败 -
*/ public okhttp3.Call getAsync(String id, String jobNumber, String userChannel, String externalUserId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getValidateBeforeCall(id, jobNumber, userChannel, externalUserId, _callback, null); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public okhttp3.Call getAsync(String id, String jobNumber, String userChannel, String externalUserId, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException { okhttp3.Call localVarCall = getValidateBeforeCall(id, jobNumber, userChannel, externalUserId, _callback, customizedParams); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for modify * @param alipayIserviceCcmAgentModifyModel (optional) * @param _callback Callback for upload/download progress * @param customizedParams * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 common response -
0 请求失败 -
*/ public okhttp3.Call modifyCall(AlipayIserviceCcmAgentModifyModel alipayIserviceCcmAgentModifyModel, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = (customizedParams != null && !Strings.isNullOrEmpty(customizedParams.getBodyContent())) ? customizedParams.getBodyContent() : alipayIserviceCcmAgentModifyModel; // create path and map variables String localVarPath = "/v3/alipay/iservice/ccm/agent/modify"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } if (customizedParams != null) { //额外query参数 if (customizedParams.getQueryParams() != null && customizedParams.getQueryParams().size() > 0) { for (Map.Entry entry : customizedParams.getQueryParams().entrySet()) { localVarQueryParams.addAll(localVarApiClient.parameterToPair(entry.getKey(), entry.getValue())); } } if (!Strings.isNullOrEmpty(customizedParams.getAppAuthToken())) { localVarHeaderParams.put("alipay-app-auth-token", customizedParams.getAppAuthToken()); } //额外非全局header参数 if (customizedParams.getHeaderParams() != null && customizedParams.getHeaderParams().size() > 0) { localVarHeaderParams.putAll(customizedParams.getHeaderParams()); } } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call modifyValidateBeforeCall(AlipayIserviceCcmAgentModifyModel alipayIserviceCcmAgentModifyModel, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException { okhttp3.Call localVarCall = modifyCall(alipayIserviceCcmAgentModifyModel, _callback, customizedParams); return localVarCall; } /** * 更新客服接口 * 管理员修改客服信息 * @param alipayIserviceCcmAgentModifyModel (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 common response -
0 请求失败 -
*/ public Object modify(AlipayIserviceCcmAgentModifyModel alipayIserviceCcmAgentModifyModel) throws ApiException { ApiResponse localVarResp = modifyWithHttpInfo(alipayIserviceCcmAgentModifyModel, null); return localVarResp.getData(); } public Object modify(AlipayIserviceCcmAgentModifyModel alipayIserviceCcmAgentModifyModel, CustomizedParams customizedParams) throws ApiException { ApiResponse localVarResp = modifyWithHttpInfo(alipayIserviceCcmAgentModifyModel, customizedParams); return localVarResp.getData(); } /** * 更新客服接口 * 管理员修改客服信息 * @param alipayIserviceCcmAgentModifyModel (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 common response -
0 请求失败 -
*/ public ApiResponse modifyWithHttpInfo(AlipayIserviceCcmAgentModifyModel alipayIserviceCcmAgentModifyModel, CustomizedParams customizedParams) throws ApiException { okhttp3.Call localVarCall = modifyValidateBeforeCall(alipayIserviceCcmAgentModifyModel, null, customizedParams); try { Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } catch (ApiException e) { try { e.setErrorObject(localVarApiClient.getJSON().getGson().fromJson(e.getResponseBody(), new TypeToken(){}.getType())); } catch (Exception ex) { AlipayLogger.logBizWarn(ex); } throw e; } } /** * 更新客服接口 (asynchronously) * 管理员修改客服信息 * @param alipayIserviceCcmAgentModifyModel (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
Status Code Description Response Headers
200 common response -
0 请求失败 -
*/ public okhttp3.Call modifyAsync(AlipayIserviceCcmAgentModifyModel alipayIserviceCcmAgentModifyModel, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = modifyValidateBeforeCall(alipayIserviceCcmAgentModifyModel, _callback, null); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public okhttp3.Call modifyAsync(AlipayIserviceCcmAgentModifyModel alipayIserviceCcmAgentModifyModel, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException { okhttp3.Call localVarCall = modifyValidateBeforeCall(alipayIserviceCcmAgentModifyModel, _callback, customizedParams); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for query * @param alipayIserviceCcmAgentQueryModel (optional) * @param _callback Callback for upload/download progress * @param customizedParams * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 common response -
0 请求失败 -
*/ public okhttp3.Call queryCall(AlipayIserviceCcmAgentQueryModel alipayIserviceCcmAgentQueryModel, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = (customizedParams != null && !Strings.isNullOrEmpty(customizedParams.getBodyContent())) ? customizedParams.getBodyContent() : alipayIserviceCcmAgentQueryModel; // create path and map variables String localVarPath = "/v3/alipay/iservice/ccm/agent/query"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } if (customizedParams != null) { //额外query参数 if (customizedParams.getQueryParams() != null && customizedParams.getQueryParams().size() > 0) { for (Map.Entry entry : customizedParams.getQueryParams().entrySet()) { localVarQueryParams.addAll(localVarApiClient.parameterToPair(entry.getKey(), entry.getValue())); } } if (!Strings.isNullOrEmpty(customizedParams.getAppAuthToken())) { localVarHeaderParams.put("alipay-app-auth-token", customizedParams.getAppAuthToken()); } //额外非全局header参数 if (customizedParams.getHeaderParams() != null && customizedParams.getHeaderParams().size() > 0) { localVarHeaderParams.putAll(customizedParams.getHeaderParams()); } } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call queryValidateBeforeCall(AlipayIserviceCcmAgentQueryModel alipayIserviceCcmAgentQueryModel, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException { okhttp3.Call localVarCall = queryCall(alipayIserviceCcmAgentQueryModel, _callback, customizedParams); return localVarCall; } /** * 客服查询接口 * 根据指定的查询条件查询客服列表 * @param alipayIserviceCcmAgentQueryModel (optional) * @return AlipayIserviceCcmAgentQueryResponseModel * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 common response -
0 请求失败 -
*/ public AlipayIserviceCcmAgentQueryResponseModel query(AlipayIserviceCcmAgentQueryModel alipayIserviceCcmAgentQueryModel) throws ApiException { ApiResponse localVarResp = queryWithHttpInfo(alipayIserviceCcmAgentQueryModel, null); return localVarResp.getData(); } public AlipayIserviceCcmAgentQueryResponseModel query(AlipayIserviceCcmAgentQueryModel alipayIserviceCcmAgentQueryModel, CustomizedParams customizedParams) throws ApiException { ApiResponse localVarResp = queryWithHttpInfo(alipayIserviceCcmAgentQueryModel, customizedParams); return localVarResp.getData(); } /** * 客服查询接口 * 根据指定的查询条件查询客服列表 * @param alipayIserviceCcmAgentQueryModel (optional) * @return ApiResponse<AlipayIserviceCcmAgentQueryResponseModel> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 common response -
0 请求失败 -
*/ public ApiResponse queryWithHttpInfo(AlipayIserviceCcmAgentQueryModel alipayIserviceCcmAgentQueryModel, CustomizedParams customizedParams) throws ApiException { okhttp3.Call localVarCall = queryValidateBeforeCall(alipayIserviceCcmAgentQueryModel, null, customizedParams); try { Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } catch (ApiException e) { try { e.setErrorObject(localVarApiClient.getJSON().getGson().fromJson(e.getResponseBody(), new TypeToken(){}.getType())); } catch (Exception ex) { AlipayLogger.logBizWarn(ex); } throw e; } } /** * 客服查询接口 (asynchronously) * 根据指定的查询条件查询客服列表 * @param alipayIserviceCcmAgentQueryModel (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
Status Code Description Response Headers
200 common response -
0 请求失败 -
*/ public okhttp3.Call queryAsync(AlipayIserviceCcmAgentQueryModel alipayIserviceCcmAgentQueryModel, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = queryValidateBeforeCall(alipayIserviceCcmAgentQueryModel, _callback, null); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public okhttp3.Call queryAsync(AlipayIserviceCcmAgentQueryModel alipayIserviceCcmAgentQueryModel, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException { okhttp3.Call localVarCall = queryValidateBeforeCall(alipayIserviceCcmAgentQueryModel, _callback, customizedParams); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } }