MakeOrderv63
Found on the "Serverlesspresso" Amazon EventBridge bus.
No matched rules or targets found for event.
MakeOrder Schema (json)
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "OrderManager.OrderCancelled",
"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.OrderCancelled": {
"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.OrderCancelled"
},
"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.OrderCancelled",
"x-amazon-events-source": "awsserverlessda.serverlesspresso"
}
Examples
1{
2 "openapi": "3.0.0",
3 "info": {
4 "version": "1.0.0",
5 "title": "OrderManager.MakeOrder"
6 },
7 "paths": {},
8 "components": {
9 "schemas": {
10 "AWSEvent": {
11 "type": "object",
12 "required": ["detail-type", "resources", "detail", "id", "source", "time", "region", "version", "account"],
13 "x-amazon-events-detail-type": "OrderManager.MakeOrder",
14 "x-amazon-events-source": "awsserverlessda.serverlesspresso",
15 "properties": {
16 "detail": {
17 "$ref": "#/components/schemas/OrderManager.MakeOrder"
18 },
19 "account": {
20 "type": "string"
21 },
22 "detail-type": {
23 "type": "string"
24 },
25 "id": {
26 "type": "string"
27 },
28 "region": {
29 "type": "string"
30 },
31 "resources": {
32 "type": "array",
33 "items": {
34 "type": "object"
35 }
36 },
37 "source": {
38 "type": "string"
39 },
40 "time": {
41 "type": "string",
42 "format": "date-time"
43 },
44 "version": {
45 "type": "string"
46 }
47 }
48 },
49 "OrderManager.MakeOrder": {
50 "type": "object",
51 "required": ["baristaUserId", "orderId"],
52 "properties": {
53 "baristaUserId": {
54 "type": "string",
55 "nullable": true
56 },
57 "orderId": {
58 "type": "string"
59 }
60 }
61 }
62 }
63 }
64 }
Edit this pageLast updated on 2023/1/31