示例#1
0
        /// <summary>
        /// Update purchase order item, quantity, cost, pack size, pack quantity, in PENDING order only. Returns class that represents modified/recalculated purchase order header and modified purchase order item line
        /// </summary>
        /// <param name="updateItemParameter">Edit purchase order item class</param>
        /// <returns>Returns class that represents modified/recalculated purchase order header and modified purchase order item line</returns>
        public Update_PurchaseOrderItemResponse Update_PurchaseOrderItem(Update_PurchaseOrderItemParameter updateItemParameter)
        {
            var response = GetResponse("PurchaseOrder/Update_PurchaseOrderItem", "updateItemParameter=" + JsonFormatter.ConvertToJson(updateItemParameter) + "");

            return(JsonFormatter.ConvertFromJson <Update_PurchaseOrderItemResponse>(response));
        }
 public static Update_PurchaseOrderItemResponse Update_PurchaseOrderItem(Update_PurchaseOrderItemParameter updateItemParameter, String ApiToken, String ApiServer)
 {
     return Newtonsoft.Json.JsonConvert.DeserializeObject<Update_PurchaseOrderItemResponse>(Factory.GetResponse("PurchaseOrder/Update_PurchaseOrderItem", "updateItemParameter=" + Newtonsoft.Json.JsonConvert.SerializeObject(updateItemParameter) + "", ApiToken, ApiServer), new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore });
 }
示例#3
0
 public static Update_PurchaseOrderItemResponse Update_PurchaseOrderItem(Update_PurchaseOrderItemParameter updateItemParameter, String ApiToken, String ApiServer)
 {
     return(Newtonsoft.Json.JsonConvert.DeserializeObject <Update_PurchaseOrderItemResponse>(Factory.GetResponse("PurchaseOrder/Update_PurchaseOrderItem", "updateItemParameter=" + Newtonsoft.Json.JsonConvert.SerializeObject(updateItemParameter) + "", ApiToken, ApiServer), new JsonSerializerSettings {
             NullValueHandling = NullValueHandling.Ignore
         }));
 }
示例#4
0
        /// <summary>
        /// Update purchase order item, quantity, cost, pack size, pack quantity, in PENDING order only. Returns class that represents modified/recalculated purchase order header and modified purchase order item line
        /// </summary>
        /// <param name="updateItemParameter">Edit purchase order item class</param>
        /// <returns>Returns class that represents modified/recalculated purchase order header and modified purchase order item line</returns>
        public Update_PurchaseOrderItemResponse Update_PurchaseOrderItem(Update_PurchaseOrderItemParameter updateItemParameter)
        {
            var response = GetResponse("PurchaseOrder/Update_PurchaseOrderItem", "updateItemParameter=" + System.Net.WebUtility.UrlEncode(JsonFormatter.ConvertToJson(updateItemParameter)) + "");

            return(JsonFormatter.ConvertFromJson <Update_PurchaseOrderItemResponse>(response));
        }