addedInput schema / properties / attachments
Added value: +{
+ "description": "Photos or plans of the job: JPEG, PNG, WebP or PDF, at most six of 10 MB each. Inline up to 4 MB each (8 MB a call), else by https address or upload_id. HEIC photos: send them as JPEG. Images are cleaned of where they were taken; a PDF is kept as sent.",
+ "items": {
+ "anyOf": [
+ {
+ "properties": {
+ "upload_id": {
+ "description": "What POST /v1/uploads answered, within its hour.",
+ "pattern": "^upl_[A-Za-z0-9_-]{16,48}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "upload_id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "data_base64": {
+ "description": "The file's bytes in base64: JPEG, PNG, WebP or PDF, up to 4 MB (8 MB in one call).",
+ "maxLength": 5592412,
+ "minLength": 4,
+ "type": "string"
+ },
+ "name": {
+ "description": "The file's name, for the business to recognise it.",
+ "maxLength": 200,
+ "type": "string"
+ }
+ },
+ "required": [
+ "data_base64"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "name": {
+ "maxLength": 200,
+ "type": "string"
+ },
+ "url": {
+ "description": "An https address the file can be fetched from, up to 10 MB.",
+ "format": "uri",
+ "maxLength": 2048,
+ "type": "string"
+ }
+ },
+ "required": [
+ "url"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "maxItems": 6,
+ "type": "array"
+}
addedInput schema / properties / payload / properties / fulfil
Added value: +{
+ "properties": {
+ "etaMin": {
+ "maximum": 1440,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "fee": {
+ "properties": {
+ "currency": {
+ "maxLength": 3,
+ "minLength": 3,
+ "type": "string"
+ },
+ "value": {
+ "description": "Minor units of the currency's own ISO 4217 exponent (minorUnits): 4500 is CA$45.00 or ₹45.00, ¥4,500 in JPY, 4.500 in KWD.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "value",
+ "currency"
+ ],
+ "type": "object"
+ },
+ "geo": {
+ "description": "The delivery address's point, when you have it: a ring zone is checked against it.",
+ "properties": {
+ "latitude": {
+ "maximum": 90,
+ "minimum": -90,
+ "type": "number"
+ },
+ "longitude": {
+ "maximum": 180,
+ "minimum": -180,
+ "type": "number"
+ }
+ },
+ "required": [
+ "latitude",
+ "longitude"
+ ],
+ "type": "object"
+ },
+ "method": {
+ "enum": [
+ "pickup",
+ "delivery",
+ "dine_in"
+ ],
+ "type": "string"
+ },
+ "slot": {
+ "properties": {
+ "end": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
+ "type": "string"
+ },
+ "start": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "start"
+ ],
+ "type": "object"
+ },
+ "zone": {
+ "properties": {
+ "name": {
+ "maxLength": 60,
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "method"
+ ],
+ "type": "object"
+}
addedInput schema / properties / payload / properties / kitchen
Added value: +{
+ "properties": {
+ "hold": {
+ "items": {
+ "enum": [
+ "allergens_unconfirmed",
+ "over_cap",
+ "made_to_order",
+ "owner_accepts"
+ ],
+ "type": "string"
+ },
+ "maxItems": 4,
+ "type": "array"
+ },
+ "instant": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "instant",
+ "hold"
+ ],
+ "type": "object"
+}
addedInput schema / properties / payload / properties / orderedItem / items / properties / brief
Added value: +{
+ "properties": {
+ "flavour": {
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ "message": {
+ "description": "The writing on it, within the length the business allows.",
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "servings": {
+ "maximum": 500,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+}
addedInput schema / properties / payload / properties / orderedItem / items / properties / note
Added value: +{
+ "maxLength": 140,
+ "type": "string"
+}
addedInput schema / properties / payload / properties / orderedItem / items / properties / options
Added value: +{
+ "items": {
+ "properties": {
+ "choiceId": {
+ "maxLength": 64,
+ "minLength": 1,
+ "type": "string"
+ },
+ "groupId": {
+ "maxLength": 64,
+ "minLength": 1,
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 120,
+ "type": "string"
+ },
+ "portion": {
+ "description": "On an item made in halves: whole, left or right.",
+ "enum": [
+ "whole",
+ "left",
+ "right"
+ ],
+ "type": "string"
+ },
+ "priceDelta": {
+ "properties": {
+ "currency": {
+ "maxLength": 3,
+ "minLength": 3,
+ "type": "string"
+ },
+ "value": {
+ "description": "Minor units of the currency's own ISO 4217 exponent (minorUnits): 4500 is CA$45.00 or ₹45.00, ¥4,500 in JPY, 4.500 in KWD.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "value",
+ "currency"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "groupId",
+ "choiceId"
+ ],
+ "type": "object"
+ },
+ "maxItems": 40,
+ "type": "array"
+}
addedInput schema / properties / payload / properties / progress
Added value: +{
+ "properties": {
+ "at": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
+ "type": "string"
+ },
+ "etaAt": {
+ "description": "When it expects it ready, or at the door.",
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
+ "type": "string"
+ },
+ "stage": {
+ "enum": [
+ "preparing",
+ "ready",
+ "out_for_delivery"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "stage",
+ "at"
+ ],
+ "type": "object"
+}
addedInput schema / properties / payload / properties / tip
Added value: +{
+ "properties": {
+ "amount": {
+ "properties": {
+ "currency": {
+ "maxLength": 3,
+ "minLength": 3,
+ "type": "string"
+ },
+ "value": {
+ "description": "Minor units of the currency's own ISO 4217 exponent (minorUnits): 4500 is CA$45.00 or ₹45.00, ¥4,500 in JPY, 4.500 in KWD.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "value",
+ "currency"
+ ],
+ "type": "object"
+ },
+ "percent": {
+ "maximum": 50,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+}