package com.jeequan.jeepay.core.interfaces.paychannel;

import cn.hutool.core.lang.Pair;
import com.jeequan.jeepay.core.entity.ChannelAccountCashoutRecord;
import com.jeequan.jeepay.core.model.cashout.CashoutRetMsg;
import com.jeequan.jeepay.core.model.context.MchAppConfigContext;

/**
* 渠道账号操作service
*
* @author terrfly
*
* @date 2022/11/09 08:59
*/
public interface IChannelAccountService {

    /** 获取到接口code **/
    String getIfCode();

    /** 查询分账账户余额  **/
    Pair<String, Long> queryBalanceAmount(MchAppConfigContext mchAppConfigContext, String ifCode);

    /** 账户提现  **/
    CashoutRetMsg cashout(ChannelAccountCashoutRecord cashoutRecord, MchAppConfigContext mchAppConfigContext, String ifCode);

    /** 账户提现查询  **/
    CashoutRetMsg cashoutQuery(ChannelAccountCashoutRecord cashoutRecord, MchAppConfigContext mchAppConfigContext, String ifCode);

}
