describeReservation method

Future<DescribeReservationResponse> describeReservation({
  1. required String reservationId,
})

Get details for a reservation.

May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException. May throw BadGatewayException. May throw NotFoundException. May throw GatewayTimeoutException. May throw TooManyRequestsException.

Parameter reservationId : Unique reservation ID, e.g. '1234567'

Implementation

Future<DescribeReservationResponse> describeReservation({
  required String reservationId,
}) async {
  ArgumentError.checkNotNull(reservationId, 'reservationId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/prod/reservations/${Uri.encodeComponent(reservationId)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeReservationResponse.fromJson(response);
}