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.
*/
public ApiResponse queryWithHttpInfo(String productCode, String bizScene, String accountBookId, String agreementNo, CustomizedParams customizedParams) throws ApiException {
okhttp3.Call localVarCall = queryValidateBeforeCall(productCode, bizScene, accountBookId, agreementNo, 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 productCode 产品码。固定为SATF_FUND_BOOK (optional)
* @param bizScene 场景码。固定为DEFAULT (optional)
* @param accountBookId 记账本ID (optional)
* @param agreementNo 协议号。 若是基于协议的记账本,则agreement_no必传; 若是自创建的记账本,则agreement_no不传; (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(String productCode, String bizScene, String accountBookId, String agreementNo, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = queryValidateBeforeCall(productCode, bizScene, accountBookId, agreementNo, _callback, null);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public okhttp3.Call queryAsync(String productCode, String bizScene, String accountBookId, String agreementNo, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException {
okhttp3.Call localVarCall = queryValidateBeforeCall(productCode, bizScene, accountBookId, agreementNo, _callback, customizedParams);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for subscribe
* @param alipayFundAccountbookNotifySubscribeModel (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 subscribeCall(AlipayFundAccountbookNotifySubscribeModel alipayFundAccountbookNotifySubscribeModel, 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() : alipayFundAccountbookNotifySubscribeModel;
// create path and map variables
String localVarPath = "/v3/alipay/fund/accountbook/notify/subscribe";
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 subscribeValidateBeforeCall(AlipayFundAccountbookNotifySubscribeModel alipayFundAccountbookNotifySubscribeModel, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException {
okhttp3.Call localVarCall = subscribeCall(alipayFundAccountbookNotifySubscribeModel, _callback, customizedParams);
return localVarCall;
}
/**
* 记账本通知订阅接口
* ISV通过此接口订阅指定记账本的入金和出金通知。目前只有非OpenAPI方式的充值通知(比如大额来账、贷款入金)
* @param alipayFundAccountbookNotifySubscribeModel (optional)
* @return AlipayFundAccountbookNotifySubscribeResponseModel
* @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 AlipayFundAccountbookNotifySubscribeResponseModel subscribe(AlipayFundAccountbookNotifySubscribeModel alipayFundAccountbookNotifySubscribeModel) throws ApiException {
ApiResponse localVarResp = subscribeWithHttpInfo(alipayFundAccountbookNotifySubscribeModel, null);
return localVarResp.getData();
}
public AlipayFundAccountbookNotifySubscribeResponseModel subscribe(AlipayFundAccountbookNotifySubscribeModel alipayFundAccountbookNotifySubscribeModel, CustomizedParams customizedParams) throws ApiException {
ApiResponse localVarResp = subscribeWithHttpInfo(alipayFundAccountbookNotifySubscribeModel, customizedParams);
return localVarResp.getData();
}
/**
* 记账本通知订阅接口
* ISV通过此接口订阅指定记账本的入金和出金通知。目前只有非OpenAPI方式的充值通知(比如大额来账、贷款入金)
* @param alipayFundAccountbookNotifySubscribeModel (optional)
* @return ApiResponse<AlipayFundAccountbookNotifySubscribeResponseModel>
* @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 subscribeWithHttpInfo(AlipayFundAccountbookNotifySubscribeModel alipayFundAccountbookNotifySubscribeModel, CustomizedParams customizedParams) throws ApiException {
okhttp3.Call localVarCall = subscribeValidateBeforeCall(alipayFundAccountbookNotifySubscribeModel, 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通过此接口订阅指定记账本的入金和出金通知。目前只有非OpenAPI方式的充值通知(比如大额来账、贷款入金)
* @param alipayFundAccountbookNotifySubscribeModel (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 subscribeAsync(AlipayFundAccountbookNotifySubscribeModel alipayFundAccountbookNotifySubscribeModel, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = subscribeValidateBeforeCall(alipayFundAccountbookNotifySubscribeModel, _callback, null);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public okhttp3.Call subscribeAsync(AlipayFundAccountbookNotifySubscribeModel alipayFundAccountbookNotifySubscribeModel, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException {
okhttp3.Call localVarCall = subscribeValidateBeforeCall(alipayFundAccountbookNotifySubscribeModel, _callback, customizedParams);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for unsubscribe
* @param alipayFundAccountbookNotifyUnsubscribeModel (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 unsubscribeCall(AlipayFundAccountbookNotifyUnsubscribeModel alipayFundAccountbookNotifyUnsubscribeModel, 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() : alipayFundAccountbookNotifyUnsubscribeModel;
// create path and map variables
String localVarPath = "/v3/alipay/fund/accountbook/notify/unsubscribe";
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 unsubscribeValidateBeforeCall(AlipayFundAccountbookNotifyUnsubscribeModel alipayFundAccountbookNotifyUnsubscribeModel, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException {
okhttp3.Call localVarCall = unsubscribeCall(alipayFundAccountbookNotifyUnsubscribeModel, _callback, customizedParams);
return localVarCall;
}
/**
* 记账本通知取消订阅接口
* ISV通过此接口取消订阅指定记账本的入金和出金通知
* @param alipayFundAccountbookNotifyUnsubscribeModel (optional)
* @return AlipayFundAccountbookNotifyUnsubscribeResponseModel
* @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 AlipayFundAccountbookNotifyUnsubscribeResponseModel unsubscribe(AlipayFundAccountbookNotifyUnsubscribeModel alipayFundAccountbookNotifyUnsubscribeModel) throws ApiException {
ApiResponse localVarResp = unsubscribeWithHttpInfo(alipayFundAccountbookNotifyUnsubscribeModel, null);
return localVarResp.getData();
}
public AlipayFundAccountbookNotifyUnsubscribeResponseModel unsubscribe(AlipayFundAccountbookNotifyUnsubscribeModel alipayFundAccountbookNotifyUnsubscribeModel, CustomizedParams customizedParams) throws ApiException {
ApiResponse localVarResp = unsubscribeWithHttpInfo(alipayFundAccountbookNotifyUnsubscribeModel, customizedParams);
return localVarResp.getData();
}
/**
* 记账本通知取消订阅接口
* ISV通过此接口取消订阅指定记账本的入金和出金通知
* @param alipayFundAccountbookNotifyUnsubscribeModel (optional)
* @return ApiResponse<AlipayFundAccountbookNotifyUnsubscribeResponseModel>
* @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 unsubscribeWithHttpInfo(AlipayFundAccountbookNotifyUnsubscribeModel alipayFundAccountbookNotifyUnsubscribeModel, CustomizedParams customizedParams) throws ApiException {
okhttp3.Call localVarCall = unsubscribeValidateBeforeCall(alipayFundAccountbookNotifyUnsubscribeModel, 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 alipayFundAccountbookNotifyUnsubscribeModel (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 unsubscribeAsync(AlipayFundAccountbookNotifyUnsubscribeModel alipayFundAccountbookNotifyUnsubscribeModel, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = unsubscribeValidateBeforeCall(alipayFundAccountbookNotifyUnsubscribeModel, _callback, null);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public okhttp3.Call unsubscribeAsync(AlipayFundAccountbookNotifyUnsubscribeModel alipayFundAccountbookNotifyUnsubscribeModel, final ApiCallback _callback, CustomizedParams customizedParams) throws ApiException {
okhttp3.Call localVarCall = unsubscribeValidateBeforeCall(alipayFundAccountbookNotifyUnsubscribeModel, _callback, customizedParams);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
}