package com.jeequan.jeepay.thirdparty.channel.kqpay;

import com.alibaba.fastjson.JSONObject;
import com.jeequan.jeepay.core.constants.CS;
import com.jeequan.jeepay.core.entity.MchApplyment;
import com.jeequan.jeepay.core.exception.BizException;
import com.jeequan.jeepay.core.model.applyment.PaywayFee;
import com.jeequan.jeepay.core.model.params.IsvParams;
import com.jeequan.jeepay.core.model.rqrs.mch.ChannelMchRq;
import com.jeequan.jeepay.core.model.rqrs.msg.ChannelRetMsg;
import com.jeequan.jeepay.core.model.rqrs.settle.ChannelSettleRq;
import com.jeequan.jeepay.thirdparty.channel.AbstractMchApiService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.tuple.MutablePair;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * TODO
 *
 * @author crystal
 * @date 2023/12/4 10:47
 */
@Service
@Slf4j
public class KqpayMchApiService extends AbstractMchApiService {


    @Override
    public String getIfCode() {
        return CS.IF_CODE.KQPAY;
    }

    /**
     * 是否支持当前接口 false 不支持
     * @return
     */
    @Override
    public boolean preCheck() {
        return false;
    }

    /**
     *
     * @param applyment
     * @param mchRq
     * @return
     */
    @Override
    public ChannelRetMsg appidAndPath(MchApplyment applyment, ChannelMchRq mchRq) {
        throw new BizException("快钱通道暂不支持线上操作方式，请联系客服报备处理");
    }

    /**
     * 结算记录查询
     * @param settleRq
     * @param isvNo
     * @param isvParams
     * @return
     */
    @Override
    public List<JSONObject> querySettleInfo(ChannelSettleRq settleRq, String isvNo, IsvParams isvParams) {
        return null;
    }
}
