package com.fs.wx.order.service;


import com.fs.wx.order.dto.OrderQueryRequest;
import com.fs.wx.order.dto.OrderQueryResponse;

public interface OrderQueryService {

    /**
     * Queries an order using either lowOrderId or upOrderId.
     *
     * @param request The request object containing query parameters.
     *                The 'sign' field will be calculated internally.
     * @return The order query response.
     * @throws IllegalArgumentException if required parameters are missing.
     * @throws RuntimeException if the API call fails or returns an error status.
     */
    OrderQueryResponse queryOrder(OrderQueryRequest request);

}
