package com.hzs.third.pay.service;

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

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

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

    /**
     * 收银台支付
     *
     * @param onlinePayment
     * @param dataSource
     * @return
     */
    AjaxResult compensationCallBack(String businessCode);
}
