Exemple #1
0
 public static UpdateOrderItemResult AddOrderItem(Guid orderId, Guid itemId, String channelSKU, Guid fulfilmentCenter, Int32 quantity, LinePricingRequest linePricing, String ApiToken, String ApiServer)
 {
     return(Newtonsoft.Json.JsonConvert.DeserializeObject <UpdateOrderItemResult>(Factory.GetResponse("Orders/AddOrderItem", "orderId=" + orderId + "&itemId=" + itemId + "&channelSKU=" + channelSKU + "&fulfilmentCenter=" + fulfilmentCenter + "&quantity=" + quantity + "&linePricing=" + Newtonsoft.Json.JsonConvert.SerializeObject(linePricing, serializerSettings) + "", ApiToken, ApiServer), new JsonSerializerSettings {
         NullValueHandling = NullValueHandling.Ignore
     }));
 }
 public static UpdateOrderItemResult AddOrderItem(Guid orderId, Guid itemId, String channelSKU, Guid fulfilmentCenter, Int32 quantity, LinePricingRequest linePricing, String ApiToken, String ApiServer)
 {
     return Newtonsoft.Json.JsonConvert.DeserializeObject<UpdateOrderItemResult>(Factory.GetResponse("Orders/AddOrderItem", "orderId=" + orderId + "&itemId=" + itemId + "&channelSKU=" + channelSKU + "&fulfilmentCenter=" + fulfilmentCenter + "&quantity=" + quantity + "&linePricing=" + Newtonsoft.Json.JsonConvert.SerializeObject(linePricing) + "", ApiToken, ApiServer), new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore });
 }