package com.tuling.tulingmall.ordercurr.component.trade.alipay.service;


import com.tuling.tulingmall.ordercurr.component.trade.alipay.model.builder.AlipayTradePayRequestBuilder;
import com.tuling.tulingmall.ordercurr.component.trade.alipay.model.builder.AlipayTradePrecreateRequestBuilder;
import com.tuling.tulingmall.ordercurr.component.trade.alipay.model.builder.AlipayTradeQueryRequestBuilder;
import com.tuling.tulingmall.ordercurr.component.trade.alipay.model.builder.AlipayTradeRefundRequestBuilder;
import com.tuling.tulingmall.ordercurr.component.trade.alipay.model.result.AlipayF2FPayResult;
import com.tuling.tulingmall.ordercurr.component.trade.alipay.model.result.AlipayF2FPrecreateResult;
import com.tuling.tulingmall.ordercurr.component.trade.alipay.model.result.AlipayF2FQueryResult;
import com.tuling.tulingmall.ordercurr.component.trade.alipay.model.result.AlipayF2FRefundResult;

/**
 * Created by liuyangkly on 15/7/29.
 */
public interface AlipayTradeService {

    // 当面付2.0流程支付
    public AlipayF2FPayResult tradePay(AlipayTradePayRequestBuilder builder);

    // 当面付2.0消费查询
    public AlipayF2FQueryResult queryTradeResult(AlipayTradeQueryRequestBuilder builder);

    // 当面付2.0消费退款
    public AlipayF2FRefundResult tradeRefund(AlipayTradeRefundRequestBuilder builder);

    // 当面付2.0预下单(生成二维码)
    public AlipayF2FPrecreateResult tradePrecreate(AlipayTradePrecreateRequestBuilder builder);
}
