BookingReassigned
v2.0.0

Event represents when a Booking has been reassigned for a Mission

Details

This event is emitted when a Booking has been reassigned for a Mission.

It is consumed by the Dispatch Service to notify third parties of the reassignment.

Related Events

None

Consumer / Producer Diagram

Event Example

BookingReassigned Schema (json)
{
    "version": "0",
    "id": "676ddc84-11d2-587b-34a3-bb0d7c1ac7f3",
    "detail-type": "BookingReassigned",
    "source": "flatsy.service.mission",
    "account": "221760190323",
    "time": "2023-04-13T07:37:58Z",
    "region": "eu-west-3",
    "resources": [],
    "detail": {
        "metadata": {
            "application": "System",
            "service": "flatsy.service.mission",
            "actor": "System",
            "actorID": null,
            "entity": "Booking",
            "correlationID": null,
            "entityID": "873940cd-76db-77831-b32c-03cda359098a"
        },
        "data": {
            "booking": {
                "id": "873940cd-76db-77831-b32c-03cda359098a",
                "mission": {
                    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
                    "type": "INSPECTION"
                },
                "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"
                },
                "attendee":{
                    "firstName": "Olivier",
                    "lastName": "Dupont",
                    "email": "odupont@example.com",
                    "phoneNumber": "+33678901234"

                },
                "code": "1234",
                "property": {"id":"873940cd-76db-77831-b32c-03cda3590123"}
            },
            "previous": {
                "id": "873940cd-76db-77831-b32c-03cda359098a",
                "mission": {
                    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
                    "type": "INSPECTION"
                },
                "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": "12345678-4321-1234-5678-7986d7154321",
                    "type": "FLATGUIDE"
                },
                "attendee":{
                    "firstName": "Olivier",
                    "lastName": "Dupont",
                    "email": "odupont@example.com",
                    "phoneNumber": "+33678901234"

                },
                "code": "1234",
                "property": {"id":"873940cd-76db-77831-b32c-03cda3590123"}
            }
        }
    }
  }
  
Edit this pageLast updated on 2024/1/22