changeBooking function

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

POST /api/{api_version}/booking/{booking_id}/change

Change a booking, body under booking: effective_date and lines. Only a booking-type order is accepted.

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

Implementation

Future<ApiResponse<Object?>> changeBooking(
  ExsitedClient client,
  Object bookingId,
  Object payload, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendPostRequest(BookingsUrls.bookingChange,
        pathParams: {'booking_id': bookingId},
        jsonBody: payload,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat);