forked from aws-samples/aws-serverless-ecommerce-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
events.yaml
53 lines (49 loc) · 1.61 KB
/
events.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
openapi: "3.0.2"
info:
title: Orders events
version: 1.0.0
license:
name: MIT-0
paths: {}
components:
schemas:
OrderCreated:
x-amazon-events-source: ecommerce.order
x-amazon-events-detail-type: OrderCreated
description: Event emitted when an order is created.
allOf:
- $ref: "../../shared/resources/schemas.yaml#/EventBridgeHeader"
- type: object
properties:
detail:
$ref: "../../shared/resources/schemas.yaml#/Order"
OrderModified:
x-amazon-events-source: ecommerce.order
x-amazon-events-detail-type: OrderModified
description: Event emitted when an order is modified.
allOf:
- $ref: "../../shared/resources/schemas.yaml#/EventBridgeHeader"
- type: object
properties:
detail:
type: object
properties:
old:
$ref: "../../shared/resources/schemas.yaml#/Order"
new:
$ref: "../../shared/resources/schemas.yaml#/Order"
changed:
type: array
description: Array containing field names that were changed
items:
type: string
OrderDeleted:
x-amazon-events-source: ecommerce.order
x-amazon-events-detail-type: OrderDeleted
description: Event emitted when an order is deleted.
allOf:
- $ref: "../../shared/resources/schemas.yaml#/EventBridgeHeader"
- type: object
properties:
detail:
$ref: "../../shared/resources/schemas.yaml#/Order"