forked from ministryofjustice/visit-scheduler
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvisit-scheduler-event-specification.yaml
93 lines (91 loc) · 2.58 KB
/
visit-scheduler-event-specification.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
asyncapi: 2.2.0
info:
title: Visit Scheduler Microservice Events
version: '1'
description: Events posted by the *Visit Scheduler* microservice
contact:
name: Visit Someone in Prison Team
email: [email protected]
servers:
production:
url: hmpps-domain-events-prod.live-1.cloud-platform.service.justice.gov.uk
protocol: sqs
description: Production Environment
pre-production:
url: hmpps-domain-events-preprod.live-1.cloud-platform.service.justice.gov.uk
protocol: sqs
description: Pre-production Environment
test:
url: hmpps-domain-events-dev.live-1.cloud-platform.service.justice.gov.uk
protocol: sqs
description: Test Environment
channels:
prison-visit.booked:
description: Prison Visit Booked
publish:
message:
$ref: '#/components/messages/visit-event'
bindings:
sns:
is: notification service
prison-visit.cancelled:
description: Prison Visit Cancelled
publish:
message:
$ref: '#/components/messages/visit-event'
bindings:
sns:
is: notification service
components:
messages:
visit-event:
payload:
$ref: '#/components/schemas/VisitEvent'
schemas:
VisitEvent:
type: object
description: Visit Event Object
properties:
eventType:
$ref: '#/components/schemas/VisitEventType'
version:
type: integer
description: Event signature version
detailUrl:
type: string
description: Location of further details
occuredAt:
type: string
format: datetime
description: Timestamp this event occurred
visitType:
$ref: '#/components/schemas/VisitType'
prisonerId:
type: string
description: Id of prisoner being visited
additionalInformation:
$ref: '#/components/schemas/AdditionalInformation'
AdditionalInformation:
type: object
description: Additional Information for this visit event
properties:
visitId:
type: string
description: Unique identifier for this visit
NOMISvisitId:
type: string
description: NOMIS's identifier for this visit
VisitType:
type: string
description: Visit Type
enum:
- social
- family
- official
- legal
VisitEventType:
type: string
description: Set of possible visit event types
enum:
- prison-visit.booked
- prison-visit.cancelled