/// <summary> /// Delete purchase order item line from PENDING order. Returns recalculated/modified purchase order header /// </summary> /// <param name="deleteItemParameter">Delete purchase order item parameter</param> /// <returns>Returns recalculated/modified purchase order header</returns> public PurchaseOrderHeader Delete_PurchaseOrderItem(Delete_PurchaseOrderItemParameter deleteItemParameter) { var response = GetResponse("PurchaseOrder/Delete_PurchaseOrderItem", "deleteItemParameter=" + JsonFormatter.ConvertToJson(deleteItemParameter) + ""); return(JsonFormatter.ConvertFromJson <PurchaseOrderHeader>(response)); }
public static PurchaseOrderHeader Delete_PurchaseOrderItem(Delete_PurchaseOrderItemParameter deleteItemParameter, String ApiToken, String ApiServer) { return Newtonsoft.Json.JsonConvert.DeserializeObject<PurchaseOrderHeader>(Factory.GetResponse("PurchaseOrder/Delete_PurchaseOrderItem", "deleteItemParameter=" + Newtonsoft.Json.JsonConvert.SerializeObject(deleteItemParameter) + "", ApiToken, ApiServer), new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }); }
public static PurchaseOrderHeader Delete_PurchaseOrderItem(Delete_PurchaseOrderItemParameter deleteItemParameter, String ApiToken, String ApiServer) { return(Newtonsoft.Json.JsonConvert.DeserializeObject <PurchaseOrderHeader>(Factory.GetResponse("PurchaseOrder/Delete_PurchaseOrderItem", "deleteItemParameter=" + Newtonsoft.Json.JsonConvert.SerializeObject(deleteItemParameter) + "", ApiToken, ApiServer), new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore })); }
/// <summary> /// Delete purchase order item line from PENDING order. Returns recalculated/modified purchase order header /// </summary> /// <param name="deleteItemParameter">Delete purchase order item parameter</param> /// <returns>Returns recalculated/modified purchase order header</returns> public PurchaseOrderHeader Delete_PurchaseOrderItem(Delete_PurchaseOrderItemParameter deleteItemParameter) { var response = GetResponse("PurchaseOrder/Delete_PurchaseOrderItem", "deleteItemParameter=" + System.Net.WebUtility.UrlEncode(JsonFormatter.ConvertToJson(deleteItemParameter)) + ""); return(JsonFormatter.ConvertFromJson <PurchaseOrderHeader>(response)); }