deleteBooking function

Future<ApiResponse<Object?>> deleteBooking(
  1. ExsitedClient client,
  2. Object bookingId, {
  3. bool? raiseOnError,
  4. String? responseFormat,
})

DELETE /api/{api_version}/booking/{booking_id}

Delete a booking; 204. The server deletes any order by this path, whatever its type.

No typed view: no 2xx response was recorded for it. Read response.map.

Implementation

Future<ApiResponse<Object?>> deleteBooking(
  ExsitedClient client,
  Object bookingId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendDeleteRequest(BookingsUrls.bookingById,
        pathParams: {'booking_id': bookingId},
        raiseOnError: raiseOnError,
        responseFormat: responseFormat);