// Create A Note For An Order public OrderNote Create(int orderId, OrderNote newData) { return Post(apiEndpoint: String.Format("orders/{0}/notes", orderId), toSerialize: new OrderNoteBundle { Content = newData }).Content; }
// Update An Order Note public OrderNote Update(int orderId, int noteId, OrderNote newData) { return Put(apiEndpoint: String.Format("orders/{0}/notes/{1}", orderId, noteId), toSerialize: new OrderNoteBundle { Content = newData }).Content; }
/// <summary> /// Update An Order Note /// </summary> /// <param name="orderId">The identifier of Order</param> /// <param name="noteId">The identifier of Note</param> /// <param name="newData">Order Note object to be udpated</param> /// <returns></returns> public async Task<OrderNote> Update(int orderId, int noteId, OrderNote newData) { var endPoint = String.Format("orders/{0}/notes/{1}", orderId, noteId); var bundle = new OrderNoteBundle { Content = newData }; return (await Put(endPoint, toSerialize: bundle)).Content; }