Cancels an existing booking.
The cancelBooking() function returns a Promise that resolves when the specified booking is canceled.
Canceling a booking causes the following changes:
CANCELED.participantNotification properties.When cancelBooking() is invoked, the cancellation is validated against the service's bookings policy.
If cancelBooking() is invoked by a Bookings Admin, the service's bookings policy can be ignored by setting ignoreCancellationPolicy to true.
Note: Only users with Bookings Admin permissions can cancel other customers' bookings. You can override the permissions by setting the suppressAuth option to true.
ID of the booking to be canceled.
An object representing the available options for canceling a booking.