action just_eat_put_orders_order_id_deliverystate_driverassigned { label: "Update order with driver assigned details" description: "The _driver assigned_ callback should be sent when a driver is assigned to the order. It should communicate important details about the driver - and also an estimated time for the driver to arrive at the restaurant and delivery address." provider: just_eat method: PUT path: "/orders/{orderId}/deliverystate/driverassigned" encoding: json input: { type: "object" properties: { 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." } } } TimeStampWithUtcOffset: { type: "string" format: "date-time" description: "This should represent the driver assigned timestamp." } VehicleDetails: { type: "object" properties: { Vehicle: { type: "string" } VehicleRegistration: { type: "string" } } } orderId: { type: "string" } } required: ["orderId"] additionalProperties: false } output: { type: "object" additionalProperties: true } }