BeeCloud.BCPay.BCRefundQueryByCondition C# (CSharp) Метод

BCRefundQueryByCondition() публичный статический Метод

退款订单查询
public static BCRefundQueryByCondition ( BCQueryRefundParameter para ) : List
para BeeCloud.Model.BCQueryRefundParameter
Результат List
        public static List<BCRefund> BCRefundQueryByCondition(BCQueryRefundParameter para)
        {
            Random random = new Random();
            string payQueryUrl = BCPrivateUtil.getHost() + BCConstants.version + BCConstants.refundsURL;

            string paraString = prepareRefundQueryByConditionParameters(para);

            try
            {
                string url = payQueryUrl + "?para=" + HttpUtility.UrlEncode(paraString, Encoding.UTF8);
                HttpWebResponse response = BCPrivateUtil.CreateGetHttpResponse(url, BCCache.Instance.networkTimeout);
                string respString = BCPrivateUtil.GetResponseString(response);
                return handleRefundQueryByConditionResult(respString, para.needDetail);
            }
            catch (Exception e)
            {
                var ex = new BCException(e.Message);
                throw ex;
            }
        }