/// <summary> /// This method is used to get the entire order with all its relevant information. Including its /// deliveries, rows, credits and addresses. /// </summary> /// <param name="orderId">Checkout order id of the specified order.</param> /// <returns></returns> public async Task <Order> GetOrder(long orderId) { var url = new Uri($"/api/v1/orders/{orderId}", UriKind.Relative); var orderResponse = await _sveaHttpClient.HttpGet <OrderResponseObject>(url); var order = new Order(orderResponse, _sveaHttpClient); return(order); }
public async Task <Data> GetOrder(long orderId) { var url = new Uri($"/api/orders/{orderId}", UriKind.Relative); var data = await _sveaHttpClient.HttpGet <Data>(url); return(data); }