MissionRequestedv2.0.0
Event represents when a Customer has created a Mission to be performed by Flatsy
Details
This event is emitted when a Customer has created a Mission to be performed by Flatsy.
Related Events
- Is followed by a "MissionRequestedToTeams" Notification being generated in the Notification Service through the Dispatch Service to let the Ops and CSM teams know that the mission is requested.
- Is followed by a "PropertyUpdated" event being generated in the Property Service as information gathered in the Mission must be saved in the Property record itself.
Consumer / Producer Diagram
Event Example
MissionRequested Schema (json)
{
"version": "0",
"id": "22b2929d-04a9-754e-053d-bb80778e0e18",
"detail-type": "MissionRequested",
"source": "flatsy.service.mission",
"account": "932239071841",
"time": "2023-05-11T06:53:44Z",
"region": "eu-west-3",
"resources": [],
"detail": {
"metadata": {
"application": "pro",
"service": "flatsy.service.mission",
"actor": "Customer",
"actorID": "5596f035-0359-4f94-bf37-2b3bb0e0926e",
"entity": "Mission",
"entityID": "eb2f1069-718b-4e6c-8346-de8c77d396e0",
"correlationID": null
},
"data": {
"mission": {
"id": "eb2f1069-718b-4e6c-8346-de8c77d396e0",
"version": "2.0",
"type": "INVENTORY",
"state": "REQUESTED",
"propertyId": "0a9fb7d1-bde3-4bf3-8e87-9de1f0d3ce47",
"customerId": "5596f035-0359-4f94-bf37-2b3bb0e0926e",
"createdAt": "2023-05-10 17:27:54.003391",
"updatedAt": "2023-05-10 17:27:54.003394",
"completedAt": null,
"instructions": "zrfzerfzerf",
"inventory": {
"type": "ENTRY",
"preferredDates": {
"startsAt": "2023-05-13",
"endsAt": "2023-05-18"
},
"visit": null,
"flatguide": null
},
"property": {
"location": {
"latitude": 45.3963019,
"longitude": 4.266468400000001,
"countryCode": "FR",
"postalCode": "75012",
"locality": "Unieux",
"route": null,
"streetAddress": "12 Rue des Boulets",
"streetNumber": null,
"entrance": null,
"unit": null,
"placeName": null,
"floorNumber": 2
},
"estateType": "PLOT",
"spaces": {
"residential": {
"livingSpace": 124
}
},
"structure": {
"rooms": {
"numberOfBedrooms": "2",
"numberOfRooms": 5
}
},
"publication": {
"reference": "4413327"
},
"features": {
"furnished": true
},
"energy": {
"heatingSource": {
"energyEquipmentKind": "GAS",
"isCommunal": true
},
"hotWaterSource": {
"energyEquipmentKind": "GAS",
"isCommunal": true
}
}
},
"tenants": [
{
"firstName": "Olivier",
"lastName": "Dupont",
"email": "thomas@flatsy.fr",
"address": "52 rue d'aboukir",
"postalCode": "75002",
"locality": "Paris"
},
{
"firstName": "Elise",
"lastName": "Dupont",
"email": "thomas@flatsy.fr",
"address": "52 rue d'aboukir",
"postalCode": "75002",
"locality": "Paris"
}
],
"landlord": {
"firstName": "fzefreferf",
"lastName": "erferfer",
"email": "fzerferf@frefef.com",
"address": null,
"postalCode": null,
"locality": null
},
"thirdParty": null
}
}
}
}Edit this pageLast updated on 2023/11/3
