package com.crm.pay.service;

import com.crm.pay.dto.finance.withdraw.automatic.FinanceWithdrawAllLandDto;
import com.crm.pay.entity.callback.AllLandPayCallbackEntity;
import com.crm.pay.entity.finance.withdraw.automatic.FinanceWithdrawAllLandEntity;
import com.crm.pay.entity.finance.withdraw.automatic.FinanceWithdrawInfoEntity;
import com.crm.rely.backend.model.entity.finance.deposit.FinanceDepositAddEntity;
import com.crm.rely.backend.model.entity.finance.deposit.FinanceMerchantDepositAddEntity;

public interface AllLandPayService {

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

    String pay(FinanceMerchantDepositAddEntity balanceSaveEntity) throws Exception;

    /**
     * 回调
     *
     * @param callbackEntity
     * @throws Exception
     */
    String callback(AllLandPayCallbackEntity callbackEntity, String payType) throws Exception;

    FinanceWithdrawAllLandDto withdrawInfo(FinanceWithdrawInfoEntity entity) throws Exception;

    String withdraw(FinanceWithdrawAllLandEntity entity) throws Exception;

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

}
