package com.ruoyi.pay.type.ali.service;


import com.ruoyi.response.ResponseData;

import java.math.BigDecimal;

/**
 * @author liuyao
 * Created by Mr.Loe on 2019-01-08
 */
public interface AliPayService {


    /**
     * 支付宝支付
     *
     * @param orderNo
     * @param amount
     * @param returnUrl
     * @return
     */
    ResponseData aliPayUserPay(String orderNo, BigDecimal amount, String returnUrl,Long orderId);

    /**
     * 支付宝退款
     * @param orderNo
     * @param aliReturnPayId
     * @param price
     * @return
     */
    ResponseData alipayRefund(String orderNo, String aliReturnPayId, BigDecimal price);


    /**
     * h5支付宝支付
     *
     * @param orderNo
     * @param amount
     * @param returnUrl
     * @return
     */
    ResponseData aliH5Pay(String orderNo, BigDecimal amount, String returnUrl,Long objectId);

}
