コード例 #1
0
        /// <summary>
        /// Update purchase order header, only if status is not Delivered. Returns modified/recalculated purchase order header
        /// </summary>
        /// <param name="updateParameter">Update purchase order header class</param>
        /// <returns>Returns modified/recalculated purchase order header</returns>
        public PurchaseOrderHeader Update_PurchaseOrderHeader(Update_PurchaseOrderHeaderParameter updateParameter)
        {
            var response = GetResponse("PurchaseOrder/Update_PurchaseOrderHeader", "updateParameter=" + JsonFormatter.ConvertToJson(updateParameter) + "");

            return(JsonFormatter.ConvertFromJson <PurchaseOrderHeader>(response));
        }
コード例 #2
0
        /// <summary>
        /// Update purchase order header, only if status is not Delivered. Returns modified/recalculated purchase order header
        /// </summary>
        /// <param name="updateParameter">Update purchase order header class</param>
        /// <returns>Returns modified/recalculated purchase order header</returns>
        public PurchaseOrderHeader Update_PurchaseOrderHeader(Update_PurchaseOrderHeaderParameter updateParameter)
        {
            var response = GetResponse("PurchaseOrder/Update_PurchaseOrderHeader", "updateParameter=" + System.Net.WebUtility.UrlEncode(JsonFormatter.ConvertToJson(updateParameter)) + "");

            return(JsonFormatter.ConvertFromJson <PurchaseOrderHeader>(response));
        }
コード例 #3
0
 public static PurchaseOrderHeader Update_PurchaseOrderHeader(Update_PurchaseOrderHeaderParameter updateParameter, String ApiToken, String ApiServer)
 {
     return Newtonsoft.Json.JsonConvert.DeserializeObject<PurchaseOrderHeader>(Factory.GetResponse("PurchaseOrder/Update_PurchaseOrderHeader", "updateParameter=" + Newtonsoft.Json.JsonConvert.SerializeObject(updateParameter) + "", ApiToken, ApiServer), new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore });
 }
コード例 #4
0
 public static PurchaseOrderHeader Update_PurchaseOrderHeader(Update_PurchaseOrderHeaderParameter updateParameter, Guid ApiToken, String ApiServer)
 {
     return(Newtonsoft.Json.JsonConvert.DeserializeObject <PurchaseOrderHeader>(Factory.GetResponse("PurchaseOrder/Update_PurchaseOrderHeader", "updateParameter=" + Newtonsoft.Json.JsonConvert.SerializeObject(updateParameter, serializerSettings) + "", ApiToken, ApiServer), new JsonSerializerSettings {
         NullValueHandling = NullValueHandling.Ignore
     }));
 }