package com.hzs.third.pay.service;

import com.hzs.common.core.domain.R;
import com.hzs.common.core.enums.EDataSource;
import com.hzs.common.domain.third.pay.TOnlinePayment;

/**
 * 京东支付服务
 */
public interface IJdPayService {

    /**
     * 扫码支付
     *
     * @param onlinePayment
     * @return
     */
    R<String> scanPay(TOnlinePayment onlinePayment);

    /**
     * 银行卡支付
     *
     * @param onlinePayment
     * @param bindCode
     * @return
     */
    R<String> bankPay(TOnlinePayment onlinePayment, String bindCode);

    /**
     * 收银台支付
     *
     * @param onlinePayment
     * @param dataSource
     * @return
     */
    R<String> cashRegister(TOnlinePayment onlinePayment, EDataSource dataSource);

}
