Example #1
0
 public static WeixinResult Close(string orderId)
 {
     string url = WeUtil.GetUrl(WeShopConst.CLOSE_BILL_URL);
     WeBillId request = new WeBillId(orderId);
     var result = WeUtil.PostToUri(url, request.WriteJson(), new WeixinResult());
     return result;
 }
Example #2
0
        public static WeBill QueryById(string orderId)
        {
            TkDebug.AssertArgumentNullOrEmpty(orderId, "orderId", null);

            string   url     = WeUtil.GetUrl(WeShopConst.BILL_ID_URL);
            WeBillId request = new WeBillId(orderId);
            var      result  = WeUtil.PostToUri(url, request.WriteJson(), new WeBillOrder());

            return(result.Order);
        }
Example #3
0
        public static WeixinResult Close(string orderId)
        {
            TkDebug.AssertArgumentNullOrEmpty(orderId, "orderId", null);

            string   url     = WeUtil.GetUrl(WeShopConst.CLOSE_BILL_URL);
            WeBillId request = new WeBillId(orderId);
            var      result  = WeUtil.PostToUri(url, request.WriteJson(), new WeixinResult());

            return(result);
        }
Example #4
0
        public static WeBill QueryById(string orderId)
        {
            TkDebug.AssertArgumentNullOrEmpty(orderId, "orderId", null);

            string url = WeUtil.GetUrl(WeShopConst.BILL_ID_URL);
            WeBillId request = new WeBillId(orderId);
            var result = WeUtil.PostToUri(url, request.WriteJson(), new WeBillOrder());
            return result.Order;
        }
Example #5
0
        public static WeixinResult Close(string orderId)
        {
            TkDebug.AssertArgumentNullOrEmpty(orderId, "orderId", null);

            string url = WeUtil.GetUrl(WeShopConst.CLOSE_BILL_URL);
            WeBillId request = new WeBillId(orderId);
            var result = WeUtil.PostToUri(url, request.WriteJson(), new WeixinResult());
            return result;
        }