generated from ministryofjustice/hmpps-template-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated to return actual results from PLP
- Loading branch information
1 parent
1363411
commit 967ef23
Showing
3 changed files
with
19 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
114 changes: 18 additions & 96 deletions
114
src/test/resources/expected-responses/plp-review-schedule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,98 +1,20 @@ | ||
[ | ||
{ | ||
"reference": "91130fff-d6ce-4ead-8461-1507140a2ae0", | ||
"reviewDateFrom": "2024-11-11", | ||
"reviewDateTo": "2025-01-11", | ||
"status": "COMPLETED", | ||
"calculationRule": "BETWEEN_12_AND_60_MONTHS_TO_SERVE", | ||
"createdBy": "auser_gen", | ||
"createdByDisplayName": "Albert User", | ||
"createdAt": "2024-12-11T18:40:39.268Z", | ||
"createdAtPrison": "BXI", | ||
"updatedBy": "auser_gen", | ||
"updatedByDisplayName": "Albert User", | ||
"updatedAt": "2024-12-11T18:40:38.268Z", | ||
"updatedAtPrison": "BXI", | ||
"version": 4 | ||
}, | ||
{ | ||
"reference": "91130fff-d6ce-4ead-8461-1507140a2ae0", | ||
"reviewDateFrom": "2024-11-11", | ||
"reviewDateTo": "2025-01-11", | ||
"status": "SCHEDULED", | ||
"calculationRule": "BETWEEN_12_AND_60_MONTHS_TO_SERVE", | ||
"createdBy": "auser_gen", | ||
"createdByDisplayName": "Albert User", | ||
"createdAt": "2024-12-11T18:40:39.256Z", | ||
"createdAtPrison": "BXI", | ||
"updatedBy": "auser_gen", | ||
"updatedByDisplayName": "Albert User", | ||
"updatedAt": "2024-12-11T18:40:36.256Z", | ||
"updatedAtPrison": "BXI", | ||
"version": 3 | ||
}, | ||
{ | ||
"reference": "91130fff-d6ce-4ead-8461-1507140a2ae0", | ||
"reviewDateFrom": "2024-11-11", | ||
"reviewDateTo": "2025-01-11", | ||
"status": "EXEMPT_PRISONER_DRUG_OR_ALCOHOL_DEPENDENCY", | ||
"calculationRule": "BETWEEN_12_AND_60_MONTHS_TO_SERVE", | ||
"createdBy": "auser_gen", | ||
"createdByDisplayName": "Albert User", | ||
"createdAt": "2024-12-11T18:40:39.244Z", | ||
"createdAtPrison": "BXI", | ||
"updatedBy": "auser_gen", | ||
"updatedByDisplayName": "Albert User", | ||
"updatedAt": "2024-12-11T18:40:36.244Z", | ||
"updatedAtPrison": "BXI", | ||
"version": 2 | ||
}, | ||
{ | ||
"reference": "91130fff-d6ce-4ead-8461-1507140a2ae0", | ||
"reviewDateFrom": "2024-11-11", | ||
"reviewDateTo": "2025-01-11", | ||
"status": "SCHEDULED", | ||
"calculationRule": "BETWEEN_12_AND_60_MONTHS_TO_SERVE", | ||
"createdBy": "auser_gen", | ||
"createdByDisplayName": "Albert User", | ||
"createdAt": "2024-12-11T18:40:39.229Z", | ||
"createdAtPrison": "BXI", | ||
"updatedBy": "auser_gen", | ||
"updatedByDisplayName": "Albert User", | ||
"updatedAt": "2024-12-11T18:40:35.229Z", | ||
"updatedAtPrison": "BXI", | ||
"version": 1 | ||
}, | ||
{ | ||
"reference": "3eba9e8a-9144-408f-b4bf-2692aa4c2c97", | ||
"reviewDateFrom": "2024-11-11", | ||
"reviewDateTo": "2025-01-11", | ||
"status": "COMPLETED", | ||
"calculationRule": "BETWEEN_12_AND_60_MONTHS_TO_SERVE", | ||
"createdBy": "auser_gen", | ||
"createdByDisplayName": "Albert User", | ||
"createdAt": "2024-12-11T18:40:39.214Z", | ||
"createdAtPrison": "BXI", | ||
"updatedBy": "auser_gen", | ||
"updatedByDisplayName": "Albert User", | ||
"updatedAt": "2024-12-11T18:40:34.214Z", | ||
"updatedAtPrison": "BXI", | ||
"version": 2 | ||
}, | ||
{ | ||
"reference": "3eba9e8a-9144-408f-b4bf-2692aa4c2c97", | ||
"reviewDateFrom": "2024-11-11", | ||
"reviewDateTo": "2025-01-11", | ||
"status": "SCHEDULED", | ||
"calculationRule": "BETWEEN_12_AND_60_MONTHS_TO_SERVE", | ||
"createdBy": "auser_gen", | ||
"createdByDisplayName": "Albert User", | ||
"createdAt": "2024-12-11T18:40:39.087Z", | ||
"createdAtPrison": "BXI", | ||
"updatedBy": "auser_gen", | ||
"updatedByDisplayName": "Albert User", | ||
"updatedAt": "2024-12-11T18:40:33.086Z", | ||
"updatedAtPrison": "BXI", | ||
"version": 1 | ||
"reviewSchedules": [ | ||
{ | ||
"createdBy": "asmith_gen", | ||
"createdByDisplayName": "Alex Smith", | ||
"createdAt": "2023-06-19T09:39:44Z", | ||
"createdAtPrison": "BXI", | ||
"updatedBy": "asmith_gen", | ||
"updatedByDisplayName": "Alex Smith", | ||
"updatedAt": "2023-06-19T09:39:44Z", | ||
"updatedAtPrison": "BXI", | ||
"reference": "c88a6c48-97e2-4c04-93b5-98619966447b", | ||
"reviewDateFrom": "2023-11-19", | ||
"reviewDateTo": "2023-12-19", | ||
"status": "SCHEDULED", | ||
"calculationRule": "PRISONER_READMISSION", | ||
"version": 0 | ||
} | ||
] | ||
} | ||
] |