Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 支付宝开放平台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.AlipayOpenSearchBoxApplyDefaultResponse;
import com.alipay.v3.model.AlipayOpenSearchBoxApplyModel;
import com.alipay.v3.model.AlipayOpenSearchBoxApplyResponseModel;
import com.alipay.v3.model.AlipayOpenSearchBoxBatchqueryDefaultResponse;
import com.alipay.v3.model.AlipayOpenSearchBoxBatchqueryModel;
import com.alipay.v3.model.AlipayOpenSearchBoxBatchqueryResponseModel;
import com.alipay.v3.model.AlipayOpenSearchBoxConsultDefaultResponse;
import com.alipay.v3.model.AlipayOpenSearchBoxConsultModel;
import com.alipay.v3.model.AlipayOpenSearchBoxConsultResponseModel;
import com.alipay.v3.model.AlipayOpenSearchBoxModifyDefaultResponse;
import com.alipay.v3.model.AlipayOpenSearchBoxModifyModel;
import com.alipay.v3.model.AlipayOpenSearchBoxModifyResponseModel;
import com.alipay.v3.model.AlipayOpenSearchBoxOfflineDefaultResponse;
import com.alipay.v3.model.AlipayOpenSearchBoxOfflineModel;
import com.alipay.v3.model.AlipayOpenSearchBoxOnlineDefaultResponse;
import com.alipay.v3.model.AlipayOpenSearchBoxOnlineModel;
import com.alipay.v3.model.AlipayOpenSearchBoxQueryDefaultResponse;
import com.alipay.v3.model.AlipayOpenSearchBoxQueryResponseModel;
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 AlipayOpenSearchBoxApi {
private ApiClient localVarApiClient;
private int localHostIndex;
private String localCustomBaseUrl;
public AlipayOpenSearchBoxApi() {
this(Configuration.getDefaultApiClient());
}
public AlipayOpenSearchBoxApi(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 apply
* @param alipayOpenSearchBoxApplyModel (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 applyCall(AlipayOpenSearchBoxApplyModel alipayOpenSearchBoxApplyModel, 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() : alipayOpenSearchBoxApplyModel;
// create path and map variables
String localVarPath = "/v3/alipay/open/search/box/apply";
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 applyValidateBeforeCall(AlipayOpenSearchBoxApplyModel alipayOpenSearchBoxApplyModel, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException {
okhttp3.Call localVarCall = applyCall(alipayOpenSearchBoxApplyModel, _callback, customizedParams);
return localVarCall;
}
/**
* 申请创建搜索直达配置
* 申请创建搜索直达配置,相关概念说明及准入条件详见 <a href=\"https://opendocs.alipay.com/mini/03fjba\"> 搜索直达 </a> 通过该接口创建搜索直达,满足准入门槛时,创建后立马生效。
* @param alipayOpenSearchBoxApplyModel (optional)
* @return AlipayOpenSearchBoxApplyResponseModel
* @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 AlipayOpenSearchBoxApplyResponseModel apply(AlipayOpenSearchBoxApplyModel alipayOpenSearchBoxApplyModel) throws ApiException {
ApiResponse localVarResp = applyWithHttpInfo(alipayOpenSearchBoxApplyModel, null);
return localVarResp.getData();
}
public AlipayOpenSearchBoxApplyResponseModel apply(AlipayOpenSearchBoxApplyModel alipayOpenSearchBoxApplyModel, CustomizedParams customizedParams) throws ApiException {
ApiResponse localVarResp = applyWithHttpInfo(alipayOpenSearchBoxApplyModel, customizedParams);
return localVarResp.getData();
}
/**
* 申请创建搜索直达配置
* 申请创建搜索直达配置,相关概念说明及准入条件详见 <a href=\"https://opendocs.alipay.com/mini/03fjba\"> 搜索直达 </a> 通过该接口创建搜索直达,满足准入门槛时,创建后立马生效。
* @param alipayOpenSearchBoxApplyModel (optional)
* @return ApiResponse<AlipayOpenSearchBoxApplyResponseModel>
* @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 applyWithHttpInfo(AlipayOpenSearchBoxApplyModel alipayOpenSearchBoxApplyModel, CustomizedParams customizedParams) throws ApiException {
okhttp3.Call localVarCall = applyValidateBeforeCall(alipayOpenSearchBoxApplyModel, 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)
* 申请创建搜索直达配置,相关概念说明及准入条件详见 <a href=\"https://opendocs.alipay.com/mini/03fjba\"> 搜索直达 </a> 通过该接口创建搜索直达,满足准入门槛时,创建后立马生效。
* @param alipayOpenSearchBoxApplyModel (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 applyAsync(AlipayOpenSearchBoxApplyModel alipayOpenSearchBoxApplyModel, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = applyValidateBeforeCall(alipayOpenSearchBoxApplyModel, _callback, null);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public okhttp3.Call applyAsync(AlipayOpenSearchBoxApplyModel alipayOpenSearchBoxApplyModel, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException {
okhttp3.Call localVarCall = applyValidateBeforeCall(alipayOpenSearchBoxApplyModel, _callback, customizedParams);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for batchquery
* @param alipayOpenSearchBoxBatchqueryModel (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 batchqueryCall(AlipayOpenSearchBoxBatchqueryModel alipayOpenSearchBoxBatchqueryModel, 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() : alipayOpenSearchBoxBatchqueryModel;
// create path and map variables
String localVarPath = "/v3/alipay/open/search/box/batchquery";
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 batchqueryValidateBeforeCall(AlipayOpenSearchBoxBatchqueryModel alipayOpenSearchBoxBatchqueryModel, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException {
okhttp3.Call localVarCall = batchqueryCall(alipayOpenSearchBoxBatchqueryModel, _callback, customizedParams);
return localVarCall;
}
/**
* 批量查询搜索直达配置列表
* 批量查询商户已开通搜索直达的小程序及直达信息(搜索直达名称和id)
* @param alipayOpenSearchBoxBatchqueryModel (optional)
* @return AlipayOpenSearchBoxBatchqueryResponseModel
* @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 AlipayOpenSearchBoxBatchqueryResponseModel batchquery(AlipayOpenSearchBoxBatchqueryModel alipayOpenSearchBoxBatchqueryModel) throws ApiException {
ApiResponse localVarResp = batchqueryWithHttpInfo(alipayOpenSearchBoxBatchqueryModel, null);
return localVarResp.getData();
}
public AlipayOpenSearchBoxBatchqueryResponseModel batchquery(AlipayOpenSearchBoxBatchqueryModel alipayOpenSearchBoxBatchqueryModel, CustomizedParams customizedParams) throws ApiException {
ApiResponse localVarResp = batchqueryWithHttpInfo(alipayOpenSearchBoxBatchqueryModel, customizedParams);
return localVarResp.getData();
}
/**
* 批量查询搜索直达配置列表
* 批量查询商户已开通搜索直达的小程序及直达信息(搜索直达名称和id)
* @param alipayOpenSearchBoxBatchqueryModel (optional)
* @return ApiResponse<AlipayOpenSearchBoxBatchqueryResponseModel>
* @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 batchqueryWithHttpInfo(AlipayOpenSearchBoxBatchqueryModel alipayOpenSearchBoxBatchqueryModel, CustomizedParams customizedParams) throws ApiException {
okhttp3.Call localVarCall = batchqueryValidateBeforeCall(alipayOpenSearchBoxBatchqueryModel, 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)
* 批量查询商户已开通搜索直达的小程序及直达信息(搜索直达名称和id)
* @param alipayOpenSearchBoxBatchqueryModel (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 batchqueryAsync(AlipayOpenSearchBoxBatchqueryModel alipayOpenSearchBoxBatchqueryModel, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = batchqueryValidateBeforeCall(alipayOpenSearchBoxBatchqueryModel, _callback, null);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public okhttp3.Call batchqueryAsync(AlipayOpenSearchBoxBatchqueryModel alipayOpenSearchBoxBatchqueryModel, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException {
okhttp3.Call localVarCall = batchqueryValidateBeforeCall(alipayOpenSearchBoxBatchqueryModel, _callback, customizedParams);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for consult
* @param alipayOpenSearchBoxConsultModel (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 consultCall(AlipayOpenSearchBoxConsultModel alipayOpenSearchBoxConsultModel, 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() : alipayOpenSearchBoxConsultModel;
// create path and map variables
String localVarPath = "/v3/alipay/open/search/box/consult";
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 consultValidateBeforeCall(AlipayOpenSearchBoxConsultModel alipayOpenSearchBoxConsultModel, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException {
okhttp3.Call localVarCall = consultCall(alipayOpenSearchBoxConsultModel, _callback, customizedParams);
return localVarCall;
}
/**
* 搜索直达创建预校验
* 用于对搜索直达创建申请的入参和条件进行提前判断校验。 具体准入条件参考<a href=\"https://opendocs.alipay.com/pre-open/0311q3#%E5%87%86%E5%85%A5%E6%9D%A1%E4%BB%B6\">搜索直达准入条件</a>
* @param alipayOpenSearchBoxConsultModel (optional)
* @return AlipayOpenSearchBoxConsultResponseModel
* @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 AlipayOpenSearchBoxConsultResponseModel consult(AlipayOpenSearchBoxConsultModel alipayOpenSearchBoxConsultModel) throws ApiException {
ApiResponse localVarResp = consultWithHttpInfo(alipayOpenSearchBoxConsultModel, null);
return localVarResp.getData();
}
public AlipayOpenSearchBoxConsultResponseModel consult(AlipayOpenSearchBoxConsultModel alipayOpenSearchBoxConsultModel, CustomizedParams customizedParams) throws ApiException {
ApiResponse localVarResp = consultWithHttpInfo(alipayOpenSearchBoxConsultModel, customizedParams);
return localVarResp.getData();
}
/**
* 搜索直达创建预校验
* 用于对搜索直达创建申请的入参和条件进行提前判断校验。 具体准入条件参考<a href=\"https://opendocs.alipay.com/pre-open/0311q3#%E5%87%86%E5%85%A5%E6%9D%A1%E4%BB%B6\">搜索直达准入条件</a>
* @param alipayOpenSearchBoxConsultModel (optional)
* @return ApiResponse<AlipayOpenSearchBoxConsultResponseModel>
* @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 consultWithHttpInfo(AlipayOpenSearchBoxConsultModel alipayOpenSearchBoxConsultModel, CustomizedParams customizedParams) throws ApiException {
okhttp3.Call localVarCall = consultValidateBeforeCall(alipayOpenSearchBoxConsultModel, 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)
* 用于对搜索直达创建申请的入参和条件进行提前判断校验。 具体准入条件参考<a href=\"https://opendocs.alipay.com/pre-open/0311q3#%E5%87%86%E5%85%A5%E6%9D%A1%E4%BB%B6\">搜索直达准入条件</a>
* @param alipayOpenSearchBoxConsultModel (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 consultAsync(AlipayOpenSearchBoxConsultModel alipayOpenSearchBoxConsultModel, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = consultValidateBeforeCall(alipayOpenSearchBoxConsultModel, _callback, null);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public okhttp3.Call consultAsync(AlipayOpenSearchBoxConsultModel alipayOpenSearchBoxConsultModel, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException {
okhttp3.Call localVarCall = consultValidateBeforeCall(alipayOpenSearchBoxConsultModel, _callback, customizedParams);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for modify
* @param alipayOpenSearchBoxModifyModel (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(AlipayOpenSearchBoxModifyModel alipayOpenSearchBoxModifyModel, 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() : alipayOpenSearchBoxModifyModel;
// create path and map variables
String localVarPath = "/v3/alipay/open/search/box/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(AlipayOpenSearchBoxModifyModel alipayOpenSearchBoxModifyModel, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException {
okhttp3.Call localVarCall = modifyCall(alipayOpenSearchBoxModifyModel, _callback, customizedParams);
return localVarCall;
}
/**
* 修改搜索直达配置
* 修改搜索直达配置模块,配置对应的模块参考:<a href=\"https://opendocs.alipay.com/mini/03fjba#%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E\"> 搜索直达模块说明 </a>
* @param alipayOpenSearchBoxModifyModel (optional)
* @return AlipayOpenSearchBoxModifyResponseModel
* @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 AlipayOpenSearchBoxModifyResponseModel modify(AlipayOpenSearchBoxModifyModel alipayOpenSearchBoxModifyModel) throws ApiException {
ApiResponse localVarResp = modifyWithHttpInfo(alipayOpenSearchBoxModifyModel, null);
return localVarResp.getData();
}
public AlipayOpenSearchBoxModifyResponseModel modify(AlipayOpenSearchBoxModifyModel alipayOpenSearchBoxModifyModel, CustomizedParams customizedParams) throws ApiException {
ApiResponse localVarResp = modifyWithHttpInfo(alipayOpenSearchBoxModifyModel, customizedParams);
return localVarResp.getData();
}
/**
* 修改搜索直达配置
* 修改搜索直达配置模块,配置对应的模块参考:<a href=\"https://opendocs.alipay.com/mini/03fjba#%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E\"> 搜索直达模块说明 </a>
* @param alipayOpenSearchBoxModifyModel (optional)
* @return ApiResponse<AlipayOpenSearchBoxModifyResponseModel>
* @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(AlipayOpenSearchBoxModifyModel alipayOpenSearchBoxModifyModel, CustomizedParams customizedParams) throws ApiException {
okhttp3.Call localVarCall = modifyValidateBeforeCall(alipayOpenSearchBoxModifyModel, 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)
* 修改搜索直达配置模块,配置对应的模块参考:<a href=\"https://opendocs.alipay.com/mini/03fjba#%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E\"> 搜索直达模块说明 </a>
* @param alipayOpenSearchBoxModifyModel (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(AlipayOpenSearchBoxModifyModel alipayOpenSearchBoxModifyModel, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = modifyValidateBeforeCall(alipayOpenSearchBoxModifyModel, _callback, null);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public okhttp3.Call modifyAsync(AlipayOpenSearchBoxModifyModel alipayOpenSearchBoxModifyModel, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException {
okhttp3.Call localVarCall = modifyValidateBeforeCall(alipayOpenSearchBoxModifyModel, _callback, customizedParams);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for offline
* @param alipayOpenSearchBoxOfflineModel (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 offlineCall(AlipayOpenSearchBoxOfflineModel alipayOpenSearchBoxOfflineModel, 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() : alipayOpenSearchBoxOfflineModel;
// create path and map variables
String localVarPath = "/v3/alipay/open/search/box/offline";
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 offlineValidateBeforeCall(AlipayOpenSearchBoxOfflineModel alipayOpenSearchBoxOfflineModel, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException {
okhttp3.Call localVarCall = offlineCall(alipayOpenSearchBoxOfflineModel, _callback, customizedParams);
return localVarCall;
}
/**
* 下架搜索直达
* 若不需要运营搜索直达时,可调用次接口下架搜索直达
* @param alipayOpenSearchBoxOfflineModel (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 offline(AlipayOpenSearchBoxOfflineModel alipayOpenSearchBoxOfflineModel) throws ApiException {
ApiResponse