Skip to content

Commit 447f0b9

Browse files
CCM-11362 publish supplier v1 schema
1 parent 0669e5f commit 447f0b9

File tree

1 file changed

+118
-0
lines changed
  • docs/events/schemas/supplier-status

1 file changed

+118
-0
lines changed
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
{
2+
"$schema": "https://notify.nhs.uk/events/schemas/supplier-status/v1.json",
3+
"type": "object",
4+
"properties": {
5+
"id": {
6+
"type": "string",
7+
"format": "uuid",
8+
"description": "Unique ID for this event"
9+
},
10+
"source": {
11+
"type": "string",
12+
"description": "Source of the event"
13+
},
14+
"specversion": {
15+
"type": "string",
16+
"description": "Version of the event"
17+
},
18+
"type": {
19+
"type": "string",
20+
"description": "Type of event"
21+
},
22+
"plane": {
23+
"type": "string",
24+
"enum": ["data", "control"],
25+
"description": "Identification for target event"
26+
},
27+
"subject": {
28+
"type": "string",
29+
"format": "uuid",
30+
"description": "Original item plan ID"
31+
},
32+
"time": {
33+
"type": "string",
34+
"description": "Time the event was generated"
35+
},
36+
"datacontenttype": {
37+
"type": "string",
38+
"description": "Always application/json"
39+
},
40+
"dataschema": {
41+
"type": "string",
42+
"description": "Schema for this event"
43+
},
44+
"dataschemaversion": {
45+
"type": "string",
46+
"description": "Version of the schema"
47+
},
48+
"data": {
49+
"type": "object",
50+
"properties": {
51+
"nhsNumber": {
52+
"type": "string",
53+
"description": "Patient NHS number"
54+
},
55+
"delayedFallback": {
56+
"type": "boolean",
57+
"description": "Whether or not delayed fallback is enabled"
58+
},
59+
"sendingGroupId": {
60+
"type": "string",
61+
"description": "Sending group ID"
62+
},
63+
"clientId": {
64+
"type": "string",
65+
"description": "Client ID for the original message"
66+
},
67+
"campaignId": {
68+
"type": "string",
69+
"description": "Campaign ID for the original message"
70+
},
71+
"billingReference": {
72+
"type": "string",
73+
"description": "Billing reference from the original message"
74+
},
75+
"supplierStatus": {
76+
"type": "string",
77+
"description": "New supplier status"
78+
},
79+
"previousSupplierStatus": {
80+
"type": "string",
81+
"description": "Previous supplier status"
82+
},
83+
"requestItemId": {
84+
"type": "string",
85+
"description": "Request Item ID for the message that received a callback"
86+
},
87+
"requestItemPlanId": {
88+
"type": "string",
89+
"description": "Request Item Plan ID for the plan that received a callback"
90+
}
91+
},
92+
"required": [
93+
"nhsNumber",
94+
"delayedFallback",
95+
"sendingGroupId",
96+
"clientId",
97+
"campaignId",
98+
"supplierStatus",
99+
"previousSupplierStatus",
100+
"requestItemId",
101+
"requestItemPlanId"
102+
]
103+
}
104+
},
105+
"required": [
106+
"id",
107+
"source",
108+
"specversion",
109+
"type",
110+
"plane",
111+
"subject",
112+
"time",
113+
"datacontenttype",
114+
"dataschema",
115+
"dataschemaversion",
116+
"data"
117+
]
118+
}

0 commit comments

Comments
 (0)