Skip to content

Commit b07b0b8

Browse files
m-houstonnhsd-david-wass
authored andcommitted
CCM-12281: Extend documentation and examples for ManagementInformation in OAS spec
1 parent 0b4e6a5 commit b07b0b8

File tree

4 files changed

+38
-30
lines changed

4 files changed

+38
-30
lines changed

specification/api/components/examples/createMI/requests/createMIRequest.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"data": {
33
"attributes": {
4-
"cost": 10.25,
54
"groupId": "abc123",
6-
"lineItem": "Letter",
5+
"lineItem": "envelope-business-standard",
76
"quantity": 22,
87
"specificationId": "da0b1495-c7cb-468c-9d81-07dee089d728",
98
"stockRemaining": 2000,

specification/api/components/examples/createMI/responses/createMIResponse.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"data": {
33
"attributes": {
4-
"cost": 10.25,
54
"groupId": "abc123",
6-
"lineItem": "Letter",
5+
"lineItem": "envelope-business-standard",
76
"quantity": 22,
87
"specificationId": "da0b1495-c7cb-468c-9d81-07dee089d728",
98
"stockRemaining": 2000,

specification/api/components/schemas/miData.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,32 @@ properties:
99
attributes:
1010
type: object
1111
properties:
12-
specificationId:
13-
type: string
14-
example: 2WL5eYSWGzCHlGmzNxuqVusPxDg
15-
groupId:
12+
lineItem:
13+
description: "A line item reference that should match an invoice line item"
1614
type: string
17-
example: abc123
15+
example: envelope-business-standard
1816
timestamp:
17+
description: "The effective date of the activity being reported"
1918
type: string
2019
format: date-time
2120
example: "2023-11-17T14:27:51.413Z"
22-
lineItem:
23-
type: string
24-
example: Letter
2521
quantity:
22+
description: "The quantity of the line item being reported"
2623
type: number
2724
example: 22
28-
cost:
29-
type: number
30-
description: "Total Amount"
31-
example: 10.25
25+
specificationId:
26+
description: "A specification ID provided in the Letter request that this MI relates to"
27+
type: string
28+
example: da0b1495-c7cb-468c-9d81-07dee089d728
29+
groupId:
30+
description: "A group ID provided in the Letter request that this MI relates to"
31+
type: string
32+
example: abc123
3233
stockRemaining:
34+
description: "Stock remaining for this line item, where applicable"
3335
type: number
34-
description: "Stock remaining for this line item"
3536
example: 20000
37+
required:
38+
- lineItem
39+
- timestamp
40+
- quantity

specification/api/components/schemas/miItem.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,32 @@ properties:
99
attributes:
1010
type: object
1111
properties:
12-
specificationId:
13-
type: string
14-
example: da0b1495-c7cb-468c-9d81-07dee089d728
15-
groupId:
12+
lineItem:
13+
description: "A line item reference that should match an invoice line item"
1614
type: string
17-
example: abc123
15+
example: envelope-business-standard
1816
timestamp:
17+
description: "The effective date of the activity being reported"
1918
type: string
2019
format: date-time
2120
example: "2023-11-17T14:27:51.413Z"
22-
lineItem:
23-
type: string
24-
example: Letter
2521
quantity:
22+
description: "The quantity of the line item being reported"
2623
type: number
2724
example: 22
28-
cost:
29-
type: number
30-
description: "Total Amount"
31-
example: 10.25
25+
specificationId:
26+
description: "A specification ID provided in the Letter request that this MI relates to"
27+
type: string
28+
example: da0b1495-c7cb-468c-9d81-07dee089d728
29+
groupId:
30+
description: "A group ID provided in the Letter request that this MI relates to"
31+
type: string
32+
example: abc123
3233
stockRemaining:
34+
description: "Stock remaining for this line item, where applicable"
3335
type: number
34-
description: "Stock remaining for this line item"
3536
example: 20000
37+
required:
38+
- lineItem
39+
- timestamp
40+
- quantity

0 commit comments

Comments
 (0)