package com.crm.pay.service;

import com.crm.pay.dto.finance.withdraw.automatic.FinanceWithdrawUGatePayDto;
import com.crm.pay.entity.callback.UGatePayCallbackEntity;
import com.crm.pay.entity.finance.withdraw.automatic.FinanceWithdrawInfoEntity;
import com.crm.pay.entity.finance.withdraw.automatic.FinanceWithdrawUGateEntity;
import com.crm.rely.backend.model.entity.finance.deposit.FinanceDepositAddEntity;
import com.crm.rely.backend.model.entity.finance.deposit.FinanceMerchantDepositAddEntity;

public interface UGatePayService {

    /**
     * 支付
     *
     * @param balanceSaveEntity
     * @return
     * @throws Exception
     */

    String pay(FinanceDepositAddEntity balanceSaveEntity) throws Exception;

    String pay(FinanceMerchantDepositAddEntity balanceSaveEntity) throws Exception;

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

    FinanceWithdrawUGatePayDto withdrawInfo(FinanceWithdrawInfoEntity entity) throws Exception;

    String withdraw(FinanceWithdrawUGateEntity entity) throws Exception;

}
