Example #1
0
        public static WeixinResult SetNoDelivery(string orderId)
        {
            TkDebug.AssertArgumentNullOrEmpty(orderId, "orderId", null);

            string         url     = WeUtil.GetUrl(WeShopConst.SET_DELIVERY_URL);
            WeBillDelivery request = new WeBillDelivery(orderId);
            WeixinResult   result  = WeUtil.PostToUri(url, request.WriteJson(), new WeixinResult());

            return(result);
        }
Example #2
0
        public static WeixinResult SetDelivery(string orderId, WeDeliveryCompany deliveryCompany,
                                               string deliveryTrackNo, bool isOthers)
        {
            TkDebug.AssertArgumentNullOrEmpty(orderId, "orderId", null);
            TkDebug.AssertArgumentNullOrEmpty(deliveryTrackNo, "deliveryTrackNo", null);

            string         url     = WeUtil.GetUrl(WeShopConst.SET_DELIVERY_URL);
            WeBillDelivery request =
                new WeBillDelivery(orderId, isOthers, deliveryCompany, deliveryTrackNo);
            var result = WeUtil.PostToUri(url, request.WriteJson(), new WeixinResult());

            return(result);
        }
Example #3
0
        public static WeixinResult SetDelivery(string orderId, WeDeliveryCompany deliveryCompany,
            string deliveryTrackNo, bool isOthers)
        {
            TkDebug.AssertArgumentNullOrEmpty(orderId, "orderId", null);
            TkDebug.AssertArgumentNullOrEmpty(deliveryTrackNo, "deliveryTrackNo", null);

            string url = WeUtil.GetUrl(WeShopConst.SET_DELIVERY_URL);
            WeBillDelivery request =
                new WeBillDelivery(orderId, isOthers, deliveryCompany, deliveryTrackNo);
            var result = WeUtil.PostToUri(url, request.WriteJson(), new WeixinResult());
            return result;
        }
Example #4
0
        public static WeixinResult SetNoDelivery(string orderId)
        {
            TkDebug.AssertArgumentNullOrEmpty(orderId, "orderId", null);

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