package com.tzy.framework.pay.service;

import com.tzy.framework.pay.dto.PaymentInfoResponseDto;
import com.tzy.framework.pay.dto.PaymentRequestDto;
import com.tzy.framework.pay.dto.RefundRequestDto;
import com.tzy.framework.pay.dto.ResultMap;

public interface BaoFooPayService {

    /**
     * 下单
     * @param payRequestBody
     * @throws Exception
     */
    public ResultMap unifiedOrder(PaymentRequestDto payRequestBody);

    /**
     * 查询
     * @param paymentRequestDto
     * @return
     * @throws Exception
     */
    public PaymentInfoResponseDto queryOrder(PaymentRequestDto paymentRequestDto);

    /**
     * 退款
     * @param refundRequestDto
     * @throws Exception
     */
    public ResultMap refund(RefundRequestDto refundRequestDto);

    /**
     * 退款查询
     * @param refundRequestDto
     * @return
     */
    public ResultMap refundQuery( RefundRequestDto refundRequestDto);

}
