action just_eat_put_orders_order_id_deliverystate_driverunassigned { label: "Update order with driver unassigned details" description: "The _driver unassigned_ callback should be sent when a driver is unassigned from the order. It may details about the reason for cancelling the assignment, the driver details, and any newer at restaurant and customer estimations." provider: just_eat method: PUT path: "/orders/{orderId}/deliverystate/driverunassigned" encoding: json input: { type: "object" properties: { Comment: { type: "string" description: "This should represent the comment on the unassignment." } DriverContactNumber: { type: "string" description: "This should represent the driver's contact number." } DriverName: { type: "string" description: "This should represent the driver's name." } EtaAtDeliveryAddress: { type: "string" format: "date-time" description: "This should represent the delivery partner's best guess at when the driver will arrive at the delivery address." } EtaAtRestaurant: { type: "string" format: "date-time" description: "This should represent the delivery partner's best guess at when the driver will arrive at the restaurant. In other words, it should not just contain the pick-up time initially requested by Just Eat." } "Location:": { type: "object" description: "GeoLocation object containing latitude and longitude values." required: ["Latitude", "Longitude"] properties: { Accuracy: { type: "number" format: "double" description: "This should represent the accuracy of driver's location." } Heading: { type: "number" format: "double" description: "This should represent the degree of heading direction, for example, 0 is north, 90 is east." } Latitude: { type: "number" format: "double" description: "This should represent the latitude of the driver's location." } Longitude: { type: "number" format: "double" description: "This should represent the longitude of the driver's location." } Speed: { type: "number" format: "double" description: "This should represent the travel speed of the driver." } } } Reason: { type: "string" description: "This should represent the delivery partner's reason for unassigning themselves from the order." } TimeStampWithUtcOffset: { type: "string" format: "date-time" description: "This should represent the driver unassigned timestamp." } UnassignedBy: { type: "string" description: "This should represent the actor who triggered unassignment." } orderId: { type: "string" } } required: ["orderId"] additionalProperties: false } output: { type: "object" additionalProperties: true } }