public static UpdateOrderItemResult AddCoupon(Guid orderId, String barcode, CouponValidationResult couponData, Guid fulfilmentCenter, String ApiToken, String ApiServer) { return(Newtonsoft.Json.JsonConvert.DeserializeObject <UpdateOrderItemResult>(Factory.GetResponse("Orders/AddCoupon", "orderId=" + orderId + "&barcode=" + barcode + "&couponData=" + Newtonsoft.Json.JsonConvert.SerializeObject(couponData) + "&fulfilmentCenter=" + fulfilmentCenter + "", ApiToken, ApiServer), new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore })); }
public static UpdateOrderItemResult AddCoupon(Guid orderId, String barcode, CouponValidationResult couponData, Guid fulfilmentCenter, String ApiToken, String ApiServer) { return Newtonsoft.Json.JsonConvert.DeserializeObject<UpdateOrderItemResult>(Factory.GetResponse("Orders/AddCoupon", "orderId=" + orderId + "&barcode=" + barcode + "&couponData=" + Newtonsoft.Json.JsonConvert.SerializeObject(couponData) + "&fulfilmentCenter=" + fulfilmentCenter + "", ApiToken, ApiServer), new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }); }