package com.crm.pay.service;

import com.crm.pay.dto.finance.withdraw.automatic.FinanceWithdrawOfaDto;
import com.crm.pay.entity.callback.ofa.OfaPayCallbackEntity;
import com.crm.pay.entity.callback.ofa.OfaPayoutCallbackEntity;
import com.crm.pay.entity.finance.withdraw.automatic.FinanceWithdrawInfoEntity;
import com.crm.pay.entity.finance.withdraw.automatic.FinanceWithdrawOfaEntity;
import com.crm.rely.backend.model.entity.finance.deposit.FinanceDepositAddEntity;

/**
 * @description:
 * @author: houn
 * @create: 2024-10-03 23:44
 */
public interface OfaPayService {

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

    /**
     * 回调
     *
     * @param callbackEntity
     * @throws Exception
     */
    void callback(OfaPayCallbackEntity callbackEntity) throws Exception;


    FinanceWithdrawOfaDto withdrawInfo(FinanceWithdrawInfoEntity entity) throws Exception;

    String withdraw(FinanceWithdrawOfaEntity entity) throws Exception;

    void withdrawCallback(Integer withdrawType, OfaPayoutCallbackEntity callbackEntity) throws Exception;
}
