package com.hzs.third.pay.service;

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

import java.util.Map;
import java.util.TreeMap;

/**
 * 通联支付服务
 */
public interface IAllInPayService {

    /**
     * 创建app跳转code
     *
     * @param onlinePayment
     * @return
     */
    R<String> createCode(TOnlinePayment onlinePayment);

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

    /**
     * 发送请求
     *
     * @param url
     * @param params
     * @return
     * @throws Exception
     */
    Map<String, String> doRequest(String url, TreeMap<String, String> params) throws Exception;

}
