package com.crm.pay.service;

import com.crm.pay.dto.finance.withdraw.automatic.FinanceWithdrawPartnerTwDto;
import com.crm.pay.entity.callback.PartnerTwPayCallbackEntity;
import com.crm.pay.entity.finance.withdraw.automatic.FinanceWithdrawInfoEntity;
import com.crm.pay.entity.finance.withdraw.automatic.FinanceWithdrawPartnerTwEntity;
import com.crm.rely.backend.model.entity.finance.deposit.FinanceDepositAddEntity;

public interface PartnerTwPayService {

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

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

    FinanceWithdrawPartnerTwDto withdrawInfo(FinanceWithdrawInfoEntity entity) throws Exception;

    String withdraw(FinanceWithdrawPartnerTwEntity entity) throws Exception;

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

}
