csharp/52ABP/Yoyosoft-abp-modules/src/Yoyo.Abp.Alipay/IAlipayHelper.cs

IAlipayHelper.cs
using System;
using System.Threading.Tasks;
using Abp.Dependency;
using Alipay.AopSdk.AspnetCore;
using Alipay.AopSdk.Core.Domain;
using Alipay.AopSdk.Core.Response;
using Alipay.AopSdk.F2FPay.Business;
using Alipay.AopSdk.F2FPay.Domain;
using Microsoft.AspNetCore.Http;
using Yoyo.Abp.FTF;
using Yoyo.Abp.Other;
using Yoyo.Abp.WapPay;
using Yoyo.Abp.WebPay;

namespace Yoyo.Abp
{
    /// 
    /// 支付宝支付
    /// 
    public interface IAlipayHelper : ISingletonDependency
    {
        /// 
        /// 面对面支付(异步消息通知),返回生成的图片二维码byte数组
        /// 
        /// 支付信息
        /// 异步消息通知地址
        /// 面对面支付配置信息(不填则使用全局配置的)
        /// 二维码图片字节数组
        Task FTFPay(AlipayTradePrecreateContentBuilder input, string asyncNotifyUrl, FTFConfig fTFConfig = null);

        /// 
        /// 面对面支付(轮询),返回生成的图片二维码byte数组
        /// 
        /// 支付信息
        /// 轮询的回调函数
        /// 面对面支付配置信息(不填则使用全局配置的)
        /// 
        Task FTFPay(AlipayTradePrecreateContentBuilder input, Action loopQueryAction, FTFConfig fTFConfig = null);

        /// 
        /// 面对面支付结果查询
        /// 
        /// 
        /// 
        Task FTFQuery(string outTradeNo);

        /// 
        /// PC Web 支付
        /// 
        /// 支付信息和回调通知信息
        /// 支付选项,如果为空则使用添加时内置的
        /// 
        Task WebPay(WebPayInput input, AlipayOptions options = null);

        /// 
        /// 手机Web支付
        /// 
        /// 支付信息和回调通知信息
        /// 支付选项,如果为空则使用添加时内置的
        /// 
        Task WapPay(WapPayInput input, AlipayOptions options = null);

        /// 
        /// 订单查询
        /// 
        /// 查询数据
        /// 
        Task Query(OrderQueryInput input);
        /// 
        /// 订单查询
        /// 
        /// 查询数据
        /// 
        Task Query(AlipayTradeQueryModel input);
        /// 
        /// 订单查询
        /// 
        /// 商户系统订单编码
        /// 支付宝订单编码
        /// 
        Task Query(string tradeNo, string alipayTradeNo);


        /// 
        /// 订单退款
        /// 
        /// 退款数据
        /// 
        Task Refund(RefundInput input);
        /// 
        /// 订单退款
        /// 
        /// 退款数据
        /// 
        Task Refund(AlipayTradeRefundModel input);

        /// 
        /// 订单退款
        /// 
        /// 商户订单号
        /// 支付宝交易号
        /// 退款金额
        /// 退款原因
        /// 退款单号
        /// 
        Task Refund(string tradeno, string alipayTradeNo, string refundAmount, string refundReason, string refundNo);

        /// 
        /// 订单退款查询
        /// 
        /// 查询数据
        /// 
        Task RefundQuery(RefundQueryInput input);

        /// 
        /// 订单退款查询
        /// 
        /// 查询数据
        /// 
        Task RefundQuery(AlipayTradeFastpayRefundQueryModel input);

        /// 
        /// 订单退款查询
        /// 
        /// 商户订单号
        /// 支付宝交易号
        /// 退款单号
        /// 
        Task RefundQuery(string tradeno, string alipayTradeNo, string refundNo);

        /// 
		/// 关闭订单
		/// 
		/// 关闭订单数据
		/// 
        Task OrderClose(OrderCloseInput input);
        /// 
        /// 关闭订单
        /// 
		/// 关闭订单数据
        /// 
        Task OrderClose(AlipayTradeCloseModel input);
        /// 
        /// 关闭订单
        /// 
        /// 商户订单号
        /// 支付宝交易号
        /// 
        Task OrderClose(string tradeNo, string alipayTradeNo);


        /// 
        /// 校验,在支付同步回调中 或 支付异步回调通知
        /// 
        /// 
        Task PayRequestCheck(HttpRequest request);
    }
}