package com.crm.pay.service;

import com.crm.pay.entity.callback.exlink.ExlinkDigitalPayCallbackEntity;
import com.crm.rely.backend.model.entity.finance.deposit.FinanceDepositAddEntity;

import java.util.Map;

/**
 * @program:
 * @description:
 * @author: houn
 * @create: 2023-11-30 10:44
 */
public interface ExlinkDigitalPayService {

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

    /**
     * 回调
     *
     * @param callbackEntity
     * @throws ServiceException
     */
    Map<String, Object> callback(ExlinkDigitalPayCallbackEntity callbackEntity) throws Exception;
}
