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

import com.jeesharp.business.modules.pay.api.PayBillChannelApi;
import com.jeesharp.business.modules.pay.bill.dto.PayBillApplyResultDTO;
import com.jeesharp.business.modules.pay.bill.dto.PayBillFundFlowApplyRequestDTO;
import com.jeesharp.business.modules.pay.bill.dto.PayBillTradeApplyRequestDTO;
import com.jeesharp.business.modules.pay.bill.support.PayWechatBillClient;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * {@link PayBillChannelApi} 实现。
 *
 * @author jeesharp
 * @since 2026-06-12
 */
@Service
@AllArgsConstructor
public class PayBillChannelApiImpl implements PayBillChannelApi {

    private final PayWechatBillClient payWechatBillClient;

    @Override
    public PayBillApplyResultDTO applyTradeBill(PayBillTradeApplyRequestDTO request) {
        return payWechatBillClient.applyTradeBill(request);
    }

    @Override
    public PayBillApplyResultDTO applyFundFlowBill(PayBillFundFlowApplyRequestDTO request) {
        return payWechatBillClient.applyFundFlowBill(request);
    }
}
