Esempio n. 1
0
        public static WeRefundQueryResponse RefundQuery(OrderType orderType, string orderId)
        {
            TkDebug.AssertArgumentNullOrEmpty(orderId, "orderId", null);

            WeRefundQueryRequest request = new WeRefundQueryRequest(orderType, orderId);

            return(PostData <WeRefundQueryResponse>(WePayConst.REFUND_QUERY_URL, request));
        }
        public static WeRefundQueryResponse RefundQuery(string orderId, WeOrderName orderName)
        {
            TkDebug.AssertArgumentNullOrEmpty(orderId, "orderId", null);

            string url = WeUtil.GetUrl(WePayConst.REFUND_QUERY_URL);
            WeRefundQueryRequest request = new WeRefundQueryRequest(orderId, orderName);
            var result = WeUtil.PostDataToUri(url, request.WriteXml(), new WeRefundQueryResponse());
            return result;
        }