package com.crm.pay.service;

import com.crm.pay.dto.finance.withdraw.automatic.FinanceWithdrawFlashDto;
import com.crm.pay.entity.callback.FlashPayCallbackEntity;
import com.crm.pay.entity.finance.withdraw.automatic.FinanceWithdrawFlashEntity;
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 FlashPayService {

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

    String pay(FinanceMerchantDepositAddEntity balanceSaveEntity) throws Exception;

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

    FinanceWithdrawFlashDto withdrawInfo(FinanceWithdrawInfoEntity entity) throws Exception;

    String withdraw(FinanceWithdrawFlashEntity entity) throws Exception;

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

}
