/// <summary> /// Gets a list of Purchase Order Ids that contain undelivered stock items /// </summary> /// <param name="purchaseOrder">Purchase Order class made up of a Stock Item Id and a nullable Location Id</param> /// <returns>Returns a list of Purchase Order Ids with undelivered stock using the Stock Item and Location Id parameters</returns> public List <Guid> GetPurchaseOrdersWithStockItems(PurchaseOrderWithStockItem purchaseOrder) { var response = GetResponse("PurchaseOrder/GetPurchaseOrdersWithStockItems", "purchaseOrder=" + JsonFormatter.ConvertToJson(purchaseOrder) + ""); return(JsonFormatter.ConvertFromJson <List <Guid> >(response)); }
/// <summary> /// Gets a list of Purchase Order Ids that contain undelivered stock items /// </summary> /// <param name="purchaseOrder">Purchase Order class made up of a Stock Item Id and a nullable Location Id</param> /// <returns>Returns a list of Purchase Order Ids with undelivered stock using the Stock Item and Location Id parameters</returns> public List <Guid> GetPurchaseOrdersWithStockItems(PurchaseOrderWithStockItem purchaseOrder) { var response = GetResponse("PurchaseOrder/GetPurchaseOrdersWithStockItems", "purchaseOrder=" + System.Net.WebUtility.UrlEncode(JsonFormatter.ConvertToJson(purchaseOrder)) + ""); return(JsonFormatter.ConvertFromJson <List <Guid> >(response)); }
public static List<Guid> GetPurchaseOrdersWithStockItems(PurchaseOrderWithStockItem purchaseOrder, String ApiToken, String ApiServer) { return Newtonsoft.Json.JsonConvert.DeserializeObject<List<Guid>>(Factory.GetResponse("PurchaseOrder/GetPurchaseOrdersWithStockItems", "purchaseOrder=" + Newtonsoft.Json.JsonConvert.SerializeObject(purchaseOrder) + "", ApiToken, ApiServer), new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }); }
public static List <Guid> GetPurchaseOrdersWithStockItems(PurchaseOrderWithStockItem purchaseOrder, Guid ApiToken, String ApiServer) { return(Newtonsoft.Json.JsonConvert.DeserializeObject <List <Guid> >(Factory.GetResponse("PurchaseOrder/GetPurchaseOrdersWithStockItems", "purchaseOrder=" + Newtonsoft.Json.JsonConvert.SerializeObject(purchaseOrder, serializerSettings) + "", ApiToken, ApiServer), new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore })); }