BookingCancelledv2.0.0
Event represents when a Booking has been cancelled for a Mission
Details
This event is emitted when a Booking has been cancelled for a Mission.
It is consumed by the Dispatch Service to notify third parties of the cancellation.
Related Events
None
Consumer / Producer Diagram
Event Example
BookingCancelled Schema (json)
{
"version": "0",
"id": "676ddc84-11d2-587b-34a3-bb0d7c1ac7f3",
"detail-type": "BookingCancelled",
"source": "flatsy.service.mission",
"account": "221760190323",
"time": "2023-04-13T07:37:58Z",
"region": "eu-west-3",
"resources": [],
"detail": {
"metadata": {
"application": "Pro",
"service": "flatsy.service.mission",
"actor": "Customer",
"actorID": "f2bb4633-95ba-4e94-a53a-7986d7150a3d",
"entity": "Booking",
"correlationID": null,
"entityID": "873940cd-76db-77831-b32c-03cda359098a"
},
"data": {
"booking": {
"id": "873940cd-76db-77831-b32c-03cda359098a",
"missionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"createdAt": "2023-05-01T10:02:54.156Z",
"updatedAt": "2023-05-11T15:10:34.891Z",
"startsAt": "2023-05-15T10:00:00Z",
"state": "CANCELLED_BY_CUSTOMER",
"durationInMinutes": 90,
"agent": {
"id": "ccca4633-95ba-4e94-a53a-7986d7151234",
"type": "FLATGUIDE"
}
},
"previous": {
"id": "873940cd-76db-77831-b32c-03cda359098a",
"missionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"createdAt": "2023-05-01T10:02:54.156Z",
"updatedAt": "2023-05-11T15:10:34.891Z",
"startsAt": "2023-05-15T10:00:00Z",
"state": "CONFIRMED",
"durationInMinutes": 90,
"agent": {
"id": "ccca4633-95ba-4e94-a53a-7986d7151234",
"type": "FLATGUIDE"
}
}
}
}
}
Edit this pageLast updated on 2023/11/3
