VisitDoneEvent
v1.0.0

Event represents when a commercial visit has been completed in the Legacy Stack.

Details

This event is emitted after a commmercial visit has been completed in the Legacy (v1) platform.

It is consumed by the Billing Service which enriches it before emitting a VisitNeedsToBeBilled event.

Consumer / Producer Diagram

Event Example

VisitDoneEvent Schema (json)
{
  "version": "0",
  "id": "3d2560f5-1d73-182a-3d52-7d741da5b1ac",
  "detail-type": "VisitDoneEvent",
  "source": "flatsy.service.legacy",
  "account": "221760190323",
  "time": "2023-04-13T08:05:48Z",
  "region": "eu-west-3",
  "resources": [],
  "detail": {
    "metadata": {
      "application": "System",
      "service": "flatsy.service.legacy",
      "actor": "System",
      "actorID": "System",
      "entity": "Unknown",
      "correlationID": null,
      "entityID": "Unknown"
    },
    "data": {
      "visit": {
        "id": "294ef85f-c4d5-477c-a182-35f7836bdf24",
        "date": "2023-04-13T07:45:00Z",
        "createdAt": "2023-04-12T08:19:31.711888Z",
        "flatguideId": "951ce989-9bd9-4a6f-8f0a-3a73512235e3",
        "propertyVisits": [
          {
            "propertyId": "8013562e-10f6-4562-a0df-e61961e8d8d2",
            "visitId": "294ef85f-c4d5-477c-a182-35f7836bdf24",
            "reportStatus": "draft",
            "reportStatusUpdatedAt": "2023-04-13T08:05:26.849487Z"
          }
        ],
        "visitorVisits": [
          {
            "visitId": "294ef85f-c4d5-477c-a182-35f7836bdf24",
            "askedPropertyId": "8013562e-10f6-4562-a0df-e61961e8d8d2",
            "status": "visit.status.done",
            "initialDate": "2023-04-13T07:45:00Z",
            "visitor": {
              "email": "nahihajar@gmail.com",
              "firstName": "Hajar",
              "lastName": "NAHI",
              "phone": "+33627582601",
              "fields": { "files": {} }
            },
            "statusUpdatedAt": "2023-04-13T08:05:29.871998Z",
            "creator": "ByAgency"
          }
        ],
        "propertySummary": {
          "id": "8013562e-10f6-4562-a0df-e61961e8d8d2",
          "displayAddress": "8 All. des Jasmins, 31700 Mondonville",
          "ownerPictureUrl": "https://cdn.filestackcontent.com/oIDfIxJ6QHKhpJ1ToLQP?policy=eyJoYW5kbGUiOiJvSURmSXhKNlFIS2hwSjFUb0xRUCIsImNhbGwiOlsicmVhZCJdLCJleHBpcnkiOjQ3NzM3MzU4NDd9&signature=fda45de0d753030e5a491ad218e9931d0425275ca7fdb0750ce17e762d3d87df",
          "latitude": 43.6748238,
          "longitude": 1.2890095,
          "externalRef": "DE LA TOUR 1206",
          "doorNumber": "1206",
          "rentSell": "property.basics.rentsell.rent"
        },
        "durationMinutes": 15
      },
      "_type": "flatsy.model.VisitDoneEvent",
      "dtype": "VisitDoneEvent"
    }
  }
}
Edit this pageLast updated on 2023/11/3