Пример #1
0
        /// <summary>
        /// Method adds purchase order item to an existing PENDING order. Items can only be added to PENDING purchase orders. Returns class that represents modified/recalculated purchase order header and modified purchase order item line
        /// </summary>
        /// <param name="addItemParameter">Add purchase item parameter class</param>
        /// <returns>Returns class that represents modified/recalculated purchase order header and modified purchase order item line</returns>
        public Update_PurchaseOrderItemResponse Add_PurchaseOrderItem(Add_PurchaseOrderItemParameter addItemParameter)
        {
            var response = GetResponse("PurchaseOrder/Add_PurchaseOrderItem", "addItemParameter=" + JsonFormatter.ConvertToJson(addItemParameter) + "");

            return(JsonFormatter.ConvertFromJson <Update_PurchaseOrderItemResponse>(response));
        }
Пример #2
0
 public static Update_PurchaseOrderItemResponse Add_PurchaseOrderItem(Add_PurchaseOrderItemParameter addItemParameter, String ApiToken, String ApiServer)
 {
     return Newtonsoft.Json.JsonConvert.DeserializeObject<Update_PurchaseOrderItemResponse>(Factory.GetResponse("PurchaseOrder/Add_PurchaseOrderItem", "addItemParameter=" + Newtonsoft.Json.JsonConvert.SerializeObject(addItemParameter) + "", ApiToken, ApiServer), new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore });
 }
Пример #3
0
 public static Update_PurchaseOrderItemResponse Add_PurchaseOrderItem(Add_PurchaseOrderItemParameter addItemParameter, String ApiToken, String ApiServer)
 {
     return(Newtonsoft.Json.JsonConvert.DeserializeObject <Update_PurchaseOrderItemResponse>(Factory.GetResponse("PurchaseOrder/Add_PurchaseOrderItem", "addItemParameter=" + Newtonsoft.Json.JsonConvert.SerializeObject(addItemParameter) + "", ApiToken, ApiServer), new JsonSerializerSettings {
             NullValueHandling = NullValueHandling.Ignore
         }));
 }
Пример #4
0
        /// <summary>
        /// Method adds purchase order item to an existing PENDING order. Items can only be added to PENDING purchase orders. Returns class that represents modified/recalculated purchase order header and modified purchase order item line
        /// </summary>
        /// <param name="addItemParameter">Add purchase item parameter class</param>
        /// <returns>Returns class that represents modified/recalculated purchase order header and modified purchase order item line</returns>
        public Update_PurchaseOrderItemResponse Add_PurchaseOrderItem(Add_PurchaseOrderItemParameter addItemParameter)
        {
            var response = GetResponse("PurchaseOrder/Add_PurchaseOrderItem", "addItemParameter=" + System.Net.WebUtility.UrlEncode(JsonFormatter.ConvertToJson(addItemParameter)) + "");

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