Exemplo n.º 1
0
        /// <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));
        }
Exemplo n.º 2
0
 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 });
 }
Exemplo n.º 3
0
 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
         }));
 }
Exemplo n.º 4
0
        /// <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));
        }