package com.jeesharp.business.modules.pay.api;

import com.jeesharp.business.modules.pay.profitsharing.dto.PayProfitSharingReturnRequestDTO;
import com.jeesharp.business.modules.pay.profitsharing.dto.PayProfitSharingReturnResultDTO;

/**
 * 微信分账回退渠道跨模块 API。
 *
 * @author jeesharp
 * @since 2026-06-11
 */
public interface PayProfitSharingReturnChannelApi {

    /**
     * 请求分账回退（POST /v3/ecommerce/profitsharing/returnorders）。
     */
    PayProfitSharingReturnResultDTO applyReturn(PayProfitSharingReturnRequestDTO request);

    /**
     * 查询分账回退结果。
     */
    PayProfitSharingReturnResultDTO queryByOutReturnNo(String platformTenantId, String subMchId, String outReturnNo);
}
