Example #1
0
 /// <summary>
 /// Updates a order with new data, such as changed <see cref="Types.OrderRow"/> rows.
 /// </summary>
 /// <param name="orderId">The OrderId to update. Use <see cref="Types.Data.OrderId"/>.</param>
 /// <param name="order">The order you want to update the fields for.</param>
 /// <returns>An updated <see cref="Types.Data"/> with the latest response from Svea ekonomi</returns>
 public async Task <Types.Data> Update(long orderId, Types.Order order)
 {
     return(await Put <Types.Data>($"/api/orders/{orderId}", order));
 }
Example #2
0
 /// <summary>
 /// Attempts to create an Order in Svea Ekonomis system.
 /// </summary>
 /// <param name="order">The order to create</param>
 /// <returns>A <see cref="Types.Data"/> containing the response from Svea Ekonomi.</returns>
 public async Task <Types.Data> Create(Types.Order order)
 {
     return(await Post <Types.Data>("/api/orders/", order));
 }