package com.crm.pay.service;

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

/**
 * @program:
 * @description:
 * @author: houn
 * @create: 2024-04-29 10:44
 */
public interface PayOkService {

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

    /**
     * 回调
     *
     * @param callbackEntity
     * @throws ServiceException
     */
    void callback(PayOkCallbackEntity callbackEntity, String jsonBody, String payType) throws Exception;
}
