package com.crm.pay.service;

import com.crm.pay.dto.finance.withdraw.automatic.FinanceWithdrawPartnerDto;
import com.crm.pay.entity.callback.PartnerPayCallbackEntity;
import com.crm.pay.entity.finance.withdraw.automatic.FinanceWithdrawInfoEntity;
import com.crm.pay.entity.finance.withdraw.automatic.FinanceWithdrawPartnerEntity;
import com.crm.rely.backend.model.entity.finance.deposit.FinanceDepositAddEntity;

public interface PartnerPayService {

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

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

    FinanceWithdrawPartnerDto withdrawInfo(FinanceWithdrawInfoEntity entity) throws Exception;

    String withdraw(FinanceWithdrawPartnerEntity entity) throws Exception;

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

}
