OrderCompletedv71
Found on the "Serverlesspresso" Amazon EventBridge bus.
Barrista has cancelled or completed the order
OrderCompleted Schema (json)
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "OrderManager.OrderCompleted",
"definitions": {
"DrinkOrder": {
"properties": {
"drink": {
"type": "string"
},
"icon": {
"type": "string"
},
"modifiers": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"icon",
"modifiers",
"drink"
],
"type": "object"
},
"Order": {
"properties": {
"drinkOrder": {
"$ref": "#/definitions/DrinkOrder"
},
"orderNumber": {
"type": "number"
},
"orderState": {
"type": "string"
},
"userId": {
"type": "string"
}
},
"required": [
"drinkOrder",
"orderNumber",
"userId",
"orderState"
],
"type": "object"
},
"OrderManager.OrderCompleted": {
"properties": {
"actionUserId": {
"type": "string"
},
"order": {
"$ref": "#/definitions/Order"
},
"orderId": {
"type": "string"
},
"userId": {
"type": "string"
}
},
"required": [
"actionUserId",
"orderId",
"userId",
"order"
],
"type": "object"
}
},
"properties": {
"account": {
"type": "string"
},
"detail": {
"$ref": "#/definitions/OrderManager.OrderCompleted"
},
"detail-type": {
"type": "string"
},
"id": {
"type": "string"
},
"region": {
"type": "string"
},
"resources": {
"items": {
"type": "object"
},
"type": "array"
},
"source": {
"type": "string"
},
"time": {
"format": "date-time",
"type": "string"
},
"version": {
"type": "string"
}
},
"required": [
"detail-type",
"resources",
"detail",
"id",
"source",
"time",
"region",
"version",
"account"
],
"type": "object",
"x-amazon-events-detail-type": "OrderManager.OrderCompleted",
"x-amazon-events-source": "awsserverlessda.serverlesspresso"
}
Examples
1{
2 "openapi": "3.0.0",
3 "info": {
4 "version": "1.0.0",
5 "title": "OrderManager.OrderCompleted"
6 },
7 "paths": {},
8 "components": {
9 "schemas": {
10 "AWSEvent": {
11 "type": "object",
12 "required": [
13 "detail-type",
14 "resources",
15 "detail",
16 "id",
17 "source",
18 "time",
19 "region",
20 "version",
21 "account"
22 ],
23 "x-amazon-events-detail-type": "OrderManager.OrderCompleted",
24 "x-amazon-events-source": "awsserverlessda.serverlesspresso",
25 "properties": {
26 "detail": {
27 "$ref": "#/components/schemas/OrderManager.OrderCompleted"
28 },
29 "account": {
30 "type": "string"
31 },
32 "detail-type": {
33 "type": "string"
34 },
35 "id": {
36 "type": "string"
37 },
38 "region": {
39 "type": "string"
40 },
41 "resources": {
42 "type": "array",
43 "items": {
44 "type": "object"
45 }
46 },
47 "source": {
48 "type": "string"
49 },
50 "time": {
51 "type": "string",
52 "format": "date-time"
53 },
54 "version": {
55 "type": "string"
56 }
57 }
58 },
59 "OrderManager.OrderCompleted": {
60 "type": "object",
61 "required": [
62 "actionUserId",
63 "orderId",
64 "userId",
65 "order"
66 ],
67 "properties": {
68 "order": {
69 "$ref": "#/components/schemas/Order"
70 },
71 "actionUserId": {
72 "type": "string"
73 },
74 "orderId": {
75 "type": "string"
76 },
77 "userId": {
78 "type": "string"
79 }
80 }
81 },
82 "Order": {
83 "type": "object",
84 "required": [
85 "drinkOrder",
86 "orderNumber",
87 "userId",
88 "orderState"
89 ],
90 "properties": {
91 "drinkOrder": {
92 "$ref": "#/components/schemas/DrinkOrder"
93 },
94 "orderNumber": {
95 "type": "number"
96 },
97 "orderState": {
98 "type": "string"
99 },
100 "userId": {
101 "type": "string"
102 }
103 }
104 },
105 "DrinkOrder": {
106 "type": "object",
107 "required": [
108 "icon",
109 "modifiers",
110 "drink"
111 ],
112 "properties": {
113 "drink": {
114 "type": "string"
115 },
116 "icon": {
117 "type": "string"
118 },
119 "modifiers": {
120 "type": "array",
121 "items": {
122 "type": "string"
123 }
124 }
125 }
126 }
127 }
128 }
129}
Edit this pageLast updated on 2023/1/31