-
Notifications
You must be signed in to change notification settings - Fork 1
/
pos-system.yaml
322 lines (322 loc) · 9.58 KB
/
pos-system.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
---
components:
schemas:
FraudJson:
x-ep-schema-version: "1.0.1"
x-ep-schema-state-id: "2"
x-ep-schema-version-id: "214i3tb6xk0"
$schema: "https://json-schema.org/draft/2019-09/schema"
x-ep-schema-id: "6rovhe1ekbi"
x-ep-schema-state-name: "RELEASED"
x-ep-schema-name: "FraudJson"
title: "Fraud"
type: "object"
properties:
fraudSubtype:
type: "string"
fraudType:
type: "string"
customerId:
description: "Persons's Id"
type: "string"
description:
description: "Description"
type: "string"
location:
type: "string"
fraudDate:
description: "day in CCYY-MM-DD format"
type: "string"
minimum: 0
x-ep-schema-version-displayname: ""
$id: "https://example.com/person.schema.json"
Product:
x-ep-schema-version: "0.1.0"
x-ep-schema-state-id: "2"
x-ep-schema-version-id: "p83dnb1n6zx"
$schema: "http://json-schema.org/draft-06/schema#"
x-ep-schema-id: "xjf6cclo2zq"
x-ep-schema-state-name: "RELEASED"
x-ep-schema-name: "Product"
type: "object"
properties:
quantity:
type: "integer"
price:
type: "number"
description:
type: "string"
currency:
type: "string"
sku:
type: "string"
required:
- "description"
- "sku"
- "quantity"
- "price"
- "currency"
x-ep-schema-version-displayname: ""
Retail Order:
x-ep-schema-version: "0.1.3"
x-ep-schema-state-id: "2"
x-ep-schema-version-id: "c7rj8u701zf"
x-ep-schema-id: "56y2520tfhd"
x-ep-schema-state-name: "RELEASED"
x-ep-schema-name: "Retail Order"
type: "object"
properties:
price:
type: "number"
minimum: 0
billTo:
type: "object"
properties:
zip:
type: "string"
address:
type: "string"
city:
type: "string"
name:
type: "string"
state:
type: "string"
name:
type: "string"
sku:
type: "string"
shipTo:
type: "object"
properties:
zip:
type: "string"
address:
type: "string"
city:
type: "string"
name:
type: "string"
state:
type: "string"
x-ep-schema-version-displayname: ""
messages:
Product:
x-ep-event-id: "b5e0uy0ugh8"
x-ep-event-version-displayname: ""
x-ep-event-version-id: "ou0w4y1ofox"
payload:
$ref: "#/components/schemas/Product"
x-ep-event-version: "0.1.2"
x-ep-event-name: "Product"
description: "An item for sale in the Acme-Retail store. Can be used for inventory\
\ updates, or price changes distribution."
schemaFormat: "application/vnd.aai.asyncapi+json;version=2.0.0"
contentType: "application/json"
x-ep-event-state-id: "2"
x-ep-event-state-name: "RELEASED"
Fraud:
x-ep-event-id: "wu6sahq3cf9"
x-ep-event-version-displayname: ""
x-ep-event-version-id: "z8747lodogt"
payload:
$ref: "#/components/schemas/FraudJson"
x-ep-event-version: "1.0.0"
x-ep-event-name: "Fraud"
description: "**Real Time Data Product**\n\nThe result of constant data analysis\
\ of sales, behavioral and historical data, the Fraud event indicates when\
\ there is a high likelihood of fraud occuring. "
schemaFormat: "application/vnd.aai.asyncapi+json;version=2.0.0"
contentType: "application/json"
x-ep-event-state-id: "2"
x-ep-event-state-name: "RELEASED"
Retail Order:
x-ep-event-id: "iebb6091oia"
x-ep-event-version-displayname: ""
x-ep-event-version-id: "dep8gt7o2gh"
payload:
$ref: "#/components/schemas/Retail Order"
x-ep-event-version: "0.1.2"
x-ep-event-name: "Retail Order"
description: "State change information about a single product order, from birth\
\ (regardless if from a store, mobile application or 3rd party) until fulfillment.\n\
\nA single product order typically contain multiple products."
schemaFormat: "application/vnd.aai.asyncapi+json;version=2.0.0"
contentType: "application/json"
x-ep-event-state-id: "2"
x-ep-event-state-name: "RELEASED"
channels:
acmeRetail/hr/fraud/{fraudVerbs}/v1/{fraudSubtype}/{fraudId}:
x-ep-event-name: "Fraud"
publish:
bindings:
solace:
bindingVersion: 0.3.0
destinations:
- destinationType: queue
x-ep-class-of-service: "silver"
queue:
name: CreatedFraudEvents
topicSubscriptions:
- person/*/created
- destinationType: queue
x-ep-class-of-service: "gold"
queue:
name: UpdatedFraudEvents
topicSubscriptions:
- person/*/updated
message:
$ref: "#/components/messages/Fraud"
parameters:
fraudSubtype:
schema:
type: "string"
x-ep-parameter-name: "fraudSubtype"
fraudVerbs:
schema:
type: "string"
x-ep-parameter-name: "fraudVerbs"
fraudId:
schema:
type: "string"
x-ep-parameter-name: "fraudId"
acmeRetail/eeg/product/{productVerb}/v1/{department}/{upcCode}:
x-ep-event-name: "Product"
publish:
bindings:
solace:
destinations:
- destinationType: "queue"
queue:
name: "pointOfSale.product.added"
topicSubscriptions:
- "acmeRetail/eeg/product/added/v1/*/*"
bindingVersion: "0.3.0"
message:
$ref: "#/components/messages/Product"
parameters:
productVerb:
schema:
type: "string"
enum:
- "added"
- "priceUpdated"
- "removed"
- "tempUnavail"
x-ep-enum-version-displayname: ""
x-ep-enum-version: "0.1.1"
x-ep-enum-name: "Product Verbs"
x-ep-enum-state-id: "2"
x-ep-enum-version-id: "wx9mntgo8j9"
x-ep-enum-id: "lglmeto2qf1"
x-ep-parameter-name: "productVerb"
department:
schema:
type: "string"
enum:
- "100"
- "110"
- "120"
- "130"
- "200"
- "300"
x-ep-enum-version-displayname: ""
x-ep-enum-version: "0.1.1"
x-ep-enum-name: "Store Department"
x-ep-enum-state-id: "2"
x-ep-enum-version-id: "8vdekrw7000"
x-ep-enum-id: "wk0u8gj1gof"
x-ep-parameter-name: "department"
upcCode:
schema:
type: "string"
x-ep-parameter-name: "upcCode"
acmeRetail/storeOps/retailOrder/{retailOrderVerb}/v1/{storeLocation}/{customerId}/{orderId}:
x-ep-event-name: "Retail Order"
subscribe:
message:
$ref: "#/components/messages/Retail Order"
parameters:
retailOrderVerb:
schema:
type: "string"
enum:
- "customerInitiated"
- "customerCancelled"
- "customerCompleted"
- "customerPaid"
- "onlineInitiated"
- "onlineCancelled"
- "onlineCompleted"
- "onlinePaid"
- "onlineFulfilled"
x-ep-enum-version-displayname: ""
x-ep-enum-version: "0.1.1"
x-ep-enum-name: "Retail Order Verbs"
x-ep-enum-state-id: "2"
x-ep-enum-version-id: "k70r9gzotup"
x-ep-enum-id: "1jz60cjk8te"
x-ep-parameter-name: "retailOrderVerb"
storeLocation:
schema:
type: "string"
enum:
- "3487"
- "3488"
- "3489"
- "3490"
- "3491"
- "3492"
- "3493"
- "3494"
- "3495"
- "3496"
- "3497"
- "3498"
- "3499"
- "3500"
- "3501"
- "3502"
- "3503"
- "3504"
- "3505"
- "3506"
- "3507"
- "3508"
- "3509"
- "3555"
- "Mobile Application"
- "Test Data Generation"
- "Inhouse Traffic"
- "Partner"
x-ep-enum-version-displayname: ""
x-ep-enum-version: "0.1.1"
x-ep-enum-name: "Store Locations"
x-ep-enum-state-id: "2"
x-ep-enum-version-id: "14b52568tje"
x-ep-enum-id: "ez2h4g7z0bd"
x-ep-parameter-name: "storeLocation"
orderId:
schema:
type: "string"
x-ep-parameter-name: "orderId"
customerId:
schema:
type: "string"
x-ep-parameter-name: "customerId"
asyncapi: "2.5.0"
info:
x-ep-application-version: "0.1.5"
x-ep-application-version-id: "vnfb6qp2gnm"
x-ep-application-id: "ln7rsri66vi"
description: "UPDATED ! Commercial off-the-shelf (COTS) Point of Sale (PoS) system that serves\
\ checkout areas for all stores within acme-retail. Receives Product events\
\ from supply chain management domain to allow for price updates and restrictions\
\ on purchases. Emits Retail Order events that allow for analytics and supply\
\ chain management decisions."
x-ep-state-name: "RELEASED"
title: "Point of Sale System"
x-ep-application-domain-id: "x41tjb0rvck"
version: "0.1.5"
x-ep-state-id: "2"
x-ep-application-domain-name: "AcmeRetail - Store Operations"