action just_eat_put_orders_order_id_deliverystate_onitsway { label: "Update order with driver on its way details" description: "The _on its way_ callback should be sent when the driver departs the restaurant with the customer's order. It should contain an ETA that records when the driver expects to arrive at the customer's address." provider: just_eat method: PUT path: "/orders/{orderId}/deliverystate/onitsway" encoding: json input: { type: "object" properties: { EstimatedArrivalTime: { type: "string" format: "date-time" description: "This should represent the delivery partner's best guess at when the driver will arrive at the customer's address. In other words, it should not just contain the delivery 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 on its ways timestamp." } orderId: { type: "string" } } required: ["orderId"] additionalProperties: false } output: { type: "object" additionalProperties: true } }