package com.crm.pay.service;

import com.crm.pay.dto.finance.withdraw.automatic.FinanceWithdrawNepayDto;
import com.crm.pay.entity.callback.NePayCallbackEntity;
import com.crm.pay.entity.finance.withdraw.automatic.FinanceWithdrawInfoEntity;
import com.crm.pay.entity.finance.withdraw.automatic.FinanceWithdrawNepayEntity;
import com.crm.rely.backend.model.entity.finance.deposit.FinanceDepositAddEntity;
import com.crm.rely.backend.model.entity.finance.deposit.FinanceMerchantDepositAddEntity;

public interface NePayService {

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

    String pay(FinanceMerchantDepositAddEntity balanceSaveEntity) throws Exception;

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


    FinanceWithdrawNepayDto withdrawInfo(FinanceWithdrawInfoEntity entity) throws Exception;

    String withdraw(FinanceWithdrawNepayEntity entity) throws Exception;

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

}
