deleteReservation method
Delete an expired reservation.
May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException. May throw BadGatewayException. May throw NotFoundException. May throw GatewayTimeoutException. May throw TooManyRequestsException. May throw ConflictException.
Parameter reservationId
:
Unique reservation ID, e.g. '1234567'
Implementation
Future<DeleteReservationResponse> deleteReservation({
required String reservationId,
}) async {
ArgumentError.checkNotNull(reservationId, 'reservationId');
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/prod/reservations/${Uri.encodeComponent(reservationId)}',
exceptionFnMap: _exceptionFns,
);
return DeleteReservationResponse.fromJson(response);
}