getOrderLine function

Future<ApiResponse<OrderLine>> getOrderLine(
  1. ExsitedClient client,
  2. Object orderId,
  3. Object lineUuid, {
  4. Map<String, Object?>? queryParams,
  5. bool? raiseOnError,
  6. String? responseFormat,
})

GET /api/{api_version}/orders/{order_id}/lines/{line_uuid}

Implementation

Future<ApiResponse<OrderLine>> getOrderLine(
  ExsitedClient client,
  Object orderId,
  Object lineUuid, {
  Map<String, Object?>? queryParams,
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(OrdersUrls.orderLine,
        pathParams: {'order_id': orderId, 'line_uuid': lineUuid},
        queryParams: queryParams,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: OrderLine.fromMap);