package com.crm.pay.service;

import com.crm.pay.dto.finance.withdraw.automatic.FinanceWithdrawOzowDto;
import com.crm.pay.entity.callback.ozow.OzowCallbackEntity;
import com.crm.pay.entity.callback.ozow.OzowPayoutCallbackEntity;
import com.crm.pay.entity.callback.ozow.OzowPayoutWebhookEntity;
import com.crm.pay.entity.finance.withdraw.automatic.FinanceWithdrawInfoEntity;
import com.crm.pay.entity.finance.withdraw.automatic.FinanceWithdrawOzowEntity;
import com.crm.rely.backend.model.entity.finance.deposit.FinanceDepositAddEntity;

/**
 * @program: cwg-my-base
 * @description:
 * @author: houn
 * @create: 2024-10-31 10:44
 */
public interface OzowService {

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

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

    FinanceWithdrawOzowDto withdrawInfo(FinanceWithdrawInfoEntity entity) throws Exception;

    String withdraw(FinanceWithdrawOzowEntity entity) throws Exception;

    void withdrawCallback(Integer withdrawType, OzowPayoutCallbackEntity callbackEntity) throws Exception;

    String webhook(OzowPayoutWebhookEntity callbackEntity) throws Exception;
}
