BookingAttended
v2.0.0

Event represents when a Booking has been attended, the viewing/inspection has occured

Details

This event is emitted when a Booking has been attended, the viewing/inspection has occured, more specifically when the Flatguide has entered the confirmation code provided by the Attendee.

It is consumed by the Billing Service to be billed. It is consumed by the Dispatch Service to notify attendees of Reporst to be filled.

Related Events

None

Consumer / Producer Diagram

Event Example

BookingAttended Schema (json)
{
    "version": "0",
    "id": "676ddc84-11d2-587b-34a3-bb0d7c1ac7f3",
    "detail-type": "BookingAttended",
    "source": "flatsy.service.mission",
    "account": "221760190323",
    "time": "2023-05-15T12:37:58Z",
    "region": "eu-west-3",
    "resources": [],
    "detail": {
        "metadata": {
            "application": "flatguide",
            "service": "flatsy.service.mission",
            "actor": "Flatguide",
            "actorID": "f2bb4633-95ba-4e94-a53a-7986d7150a3d",
            "entity": "Booking",
            "correlationID": null,
            "entityID": "873940cd-76db-77831-b32c-03cda359098a"
        },
        "data": {
            "booking": {
                "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
                "mission": {
                    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
                    "type": "INSPECTION"
                },
                "property": {
                    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
                },
                "agent": {
                    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
                    "type": "FLATGUIDE"
                },
                "attendee": {
                    "firstName": "Olivier",
                    "lastName": "Dupont",
                    "email": "odupont@example.com",
                    "phoneNumber": "+33678901234"
                },
                "startsAt": "2023-10-31T13:40:31.415Z",
                "code": "4578",
                "state": "DONE",
                "durationInMinutes": 30,
                "createdAt": "2023-12-30T10:00:00+02:00",
                "updatedAt": "2023-12-30T10:00:00+02:00"
            },
            "previous": {
                "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
                "mission": {
                    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
                    "type": "INSPECTION"
                },
                "property": {
                    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
                },
                "agent": {
                    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
                    "type": "FLATGUIDE"
                },
                "attendee": {
                    "firstName": "Olivier",
                    "lastName": "Dupont",
                    "email": "odupont@example.com",
                    "phoneNumber": "+33678901234"
                },
                "startsAt": "2023-10-31T13:40:31.415Z",
                "code": "4578",
                "state": "CONFIRMED",
                "durationInMinutes": 30,
                "createdAt": "2023-12-30T10:00:00+02:00",
                "updatedAt": "2023-12-30T10:00:00+02:00"
            }
        }
    }
}
Edit this pageLast updated on 2023/11/8