package com.crm.pay.service;

import com.crm.pay.entity.callback.AllbtpayCallbackEntity;
import com.crm.rely.backend.model.entity.custom.info.CustomInfoEntity;
import com.crm.rely.backend.model.entity.finance.deposit.FinanceDepositAddEntity;

/**
 * @program: cwg-my-base
 * @description:
 * @author: houn
 * @create: 2021-10-30 12:44
 */
public interface AllbtpayService {

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

    /**
     * 回调
     *
     * @param callbackEntity 回调实体
     * @throws Exception
     */
    void callback(AllbtpayCallbackEntity callbackEntity) throws Exception;
}
