This repository has been archived by the owner on Jul 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 382
/
Copy pathevents.yaml
57 lines (53 loc) · 1.81 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
54
55
56
57
openapi: "3.0.2"
info:
title: Warehouse events
version: 1.0.0
license:
name: MIT-0
paths: {}
components:
schemas:
PackageCreated:
x-amazon-event-source: ecommerce.warehouse
x-amazon-events-detail-type: PackageCreated
description: Event emitted when an order is packaged and ready to be shipped
allOf:
- $ref: "../../shared/resources/schemas.yaml#/EventBridgeHeader"
- type: object
properties:
detail:
type: object
required:
- orderId
- products
properties:
orderId:
type: string
format: uuid
description: Identifier for the order relative to the package
example: b2d0c356-f92b-4629-a87f-786331c2842f
products:
type: array
items:
$ref: "../../shared/resources/schemas.yaml#/Product"
PackagingFailed:
x-amazon-event-source: ecommerce.warehouse
x-amazon-events-detail-type: PackagingFailed
description: |
Event emitted when the warehouse service failed to create a package for an order.
This could be due to multiple reasons, but often because all the products are not available
in stock.
allOf:
- $ref: "../../shared/resources/schemas.yaml#/EventBridgeHeader"
- type: object
properties:
detail:
type: object
required:
- orderId
properties:
orderId:
type: string
format: uuid
description: Identifier for the order relative to the packaging request
example: b2d0c356-f92b-4629-a87f-786331c2842f