/// <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)); }
/// <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)); }
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 }); }
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 })); }