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

com.alipay.api.AlipayClient Maven / Gradle / Ivy

Go to download

Alipay openapi SDK for Java Copyright © 2018 杭州蚂蚁金服 All rights reserved. 版权所有 (C)杭州蚂蚁金服 http://open.alipay.com

There is a newer version: 4.39.218.ALL
Show newest version
/**
 * Alipay.com Inc. Copyright (c) 2004-2012 All Rights Reserved.
 */
package com.alipay.api;

import java.util.Map;

/**
 * @author runzhi
 */
public interface AlipayClient {

    /**
     * @param 
     * @param request
     * @return
     * @throws AlipayApiException
     */
     T execute(AlipayRequest request) throws AlipayApiException;

    /**
     * @param 
     * @param request
     * @return
     * @throws AlipayApiException
     */
     T execute(AlipayRequest request,
                                         String authToken) throws AlipayApiException;

    /**
     * @param request
     * @param accessToken
     * @param appAuthToken
     * @return
     * @throws AlipayApiException
     */
     T execute(AlipayRequest request, String accessToken,
                                         String appAuthToken) throws AlipayApiException;

     T execute(AlipayRequest request, String accessToken,
                                         String appAuthToken, String targetAppId) throws AlipayApiException;

    /**
     * @param 
     * @param request
     * @return
     * @throws AlipayApiException
     */
     T pageExecute(AlipayRequest request) throws AlipayApiException;

    /**
     * SDK客户端调用生成sdk字符串
     *
     * @param 
     * @param request
     * @return
     * @throws AlipayApiException
     */
     T sdkExecute(AlipayRequest request) throws AlipayApiException;

    /**
     * @param request
     * @return
     * @throws AlipayApiException
     */
     T pageExecute(AlipayRequest request,
                                             String method) throws AlipayApiException;

    /**
     * 移动客户端同步结果返回解析的参考工具方法
     *
     * @param result       移动客户端SDK同步返回的结果map,一般包含resultStatus,result和memo三个key
     * @param requsetClazz 接口请求request类,如App支付传入 AlipayTradeAppPayRequest.class
     * @return 同步返回结果的response对象
     * @throws AlipayApiException
     */
    > TR parseAppSyncResult(Map result,
                                                                                   Class requsetClazz) throws AlipayApiException;

    /**
     * 批量调用
     *
     * @param request
     * @return
     * @throws AlipayApiException
     */
    BatchAlipayResponse execute(BatchAlipayRequest request) throws AlipayApiException;

    /**
     * 证书类型调用
     *
     * @param 
     * @param request
     * @return
     * @throws AlipayApiException
     */
     T certificateExecute(AlipayRequest request) throws AlipayApiException;

    /**
     * @param request
     * @param 
     * @return
     * @throws AlipayApiException
     */
     T certificateExecute(AlipayRequest request,
                                                    String authToken) throws AlipayApiException;

    /**
     * @param request
     * @param accessToken
     * @param appAuthToken
     * @param 
     * @return
     * @throws AlipayApiException
     */
     T certificateExecute(AlipayRequest request, String accessToken,
                                                    String appAuthToken) throws AlipayApiException;

     T certificateExecute(AlipayRequest request, String accessToken,
                                                    String appAuthToken, String targetAppId) throws AlipayApiException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy