package com.crm.pay.service;

import com.crm.pay.dto.finance.withdraw.automatic.FinanceWithdrawMtpayDto;
import com.crm.pay.entity.callback.MtPayCallbackEntity;
import com.crm.pay.entity.finance.withdraw.automatic.FinanceWithdrawInfoEntity;
import com.crm.pay.entity.finance.withdraw.automatic.FinanceWithdrawMtpayEntity;
import com.crm.rely.backend.model.entity.finance.deposit.FinanceDepositAddEntity;

public interface MtPayService {

    /**
     * 支付
     * @param balanceSaveEntity
     * @return
     * @throws Exception
     */
    String pay(FinanceDepositAddEntity balanceSaveEntity) throws Exception;

    /**
     * 回调
     * @param callbackEntity
     * @throws Exception
     */
    String callback(MtPayCallbackEntity callbackEntity)throws Exception;

    FinanceWithdrawMtpayDto withdrawInfo(FinanceWithdrawInfoEntity entity) throws Exception;

    String withdraw(FinanceWithdrawMtpayEntity entity) throws Exception;

    String withdrawCallback(Integer withdrawType, MtPayCallbackEntity callbackEntity) throws Exception;

}
