package com.crm.pay.service;


import com.crm.pay.dto.callback.otc365.cn.Otc365CnCallbackResponseDto;
import com.crm.rely.backend.model.entity.custom.info.CustomInfoEntity;
import com.crm.rely.backend.model.entity.finance.deposit.FinanceDepositAddEntity;

import java.util.Map;

/**
 * @program:
 * @description:
 * @author: houn
 * @create: 2021-01-21 10:44
 */
public interface Otc365CnV2Service {

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

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