-
Notifications
You must be signed in to change notification settings - Fork 3
/
events.yaml
121 lines (121 loc) · 2.77 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
events:
# A event type for rejected Stripe webhook events
stripeWebhookEventRejected:
attributes:
id:
type: string
format: UUIDv4
auto: true
specversion:
type: string
default: "0.3"
enum:
- "0.3"
type:
type: string
default: "example.stripewebhook.rejected"
enum:
- "example.stripewebhook.rejected"
source:
type: string
enum:
- "functions/fulfillment"
- "functions/cancellation"
time:
type: string
format: RFC3339
auto: true
data:
type: object
properties:
header:
type: string
description: the header of the webhook event
body:
type: string
description: the body of the webhook event
errMessage:
type: string
description: returned error message
# A event type for processed orders
orderProcessed:
attributes:
id:
type: string
format: UUIDv4
auto: true
specversion:
type: string
default: "0.3"
enum:
- "0.3"
type:
type: string
default: "example.order.processed"
enum:
- "example.order.processed"
source:
type: string
enum:
- "functions/fulfillment"
- "functions/cancellation"
time:
type: string
format: RFC3339
auto: true
data:
type: object
properties:
orderId:
type: string
description: order id
email:
type: string
description: email address
paymentErrType:
type: string
description: error type of failed payment
enum:
- INTERNAL
- CARD_ERROR
- NONE
paymentErrMessage:
type: string
description: error message of failed payment
# A event type for sent emails
emailSent:
attributes:
id:
type: string
format: UUIDv4
auto: true
specversion:
type: string
default: "0.3"
enum:
- "0.3"
type:
type: string
default: "example.email.sent"
enum:
- "example.email.sent"
source:
type: string
default: "functions/email"
enum:
- "functions/email"
time:
type: string
format: RFC3339
auto: true
data:
type: object
properties:
orderId:
type: string
description: order id
email:
type: string
description: email address
metadata:
packageName: example_events