generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PI-2103: Added get by nsiId * PI-2103: Added get by nsiId * PI-2303: Used CompletableFuture.allOf instead
- Loading branch information
Showing
22 changed files
with
496 additions
and
69 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
180 changes: 180 additions & 0 deletions
180
...s/court-case-and-delius/src/dev/resources/simulations/__files/get_single_nsi_C123456.json
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 |
---|---|---|
@@ -0,0 +1,180 @@ | ||
{ | ||
"nsiId": 0, | ||
"nsiType": { | ||
"code": "NSITYPE", | ||
"description": "NSI Type desc" | ||
}, | ||
"nsiOutcome": { | ||
"code": "BRE01", | ||
"description": "this NSI is in breach" | ||
}, | ||
"requirement": { | ||
"requirementId": 93, | ||
"requirementNotes": "notes", | ||
"commencementDate": "2024-01-01", | ||
"startDate": "2024-01-02", | ||
"terminationDate": "2024-01-03", | ||
"expectedStartDate": "2024-01-04", | ||
"expectedEndDate": "2024-01-05", | ||
"createdDatetime": "2023-12-31T12:00:00Z", | ||
"active": true, | ||
"requirementTypeSubCategory": { | ||
"code": "Sub", | ||
"description": "Sub cat" | ||
}, | ||
"requirementTypeMainCategory": { | ||
"code": "Main", | ||
"description": "Main cat" | ||
}, | ||
"adRequirementTypeMainCategory": { | ||
"code": "AdMain", | ||
"description": "AdMain cat" | ||
}, | ||
"adRequirementTypeSubCategory": { | ||
"code": "AdSub", | ||
"description": "AdSub cat" | ||
}, | ||
"terminationReason": { | ||
"code": "R1", | ||
"description": "Released" | ||
}, | ||
"length": 3, | ||
"lengthUnit": "months", | ||
"restrictive": false, | ||
"softDeleted": false | ||
}, | ||
"nsiStatus": { | ||
"code": "SLI01", | ||
"description": "Active" | ||
}, | ||
"statusDateTime": "2024-07-01T12:00:00+01:00", | ||
"actualStartDate": "2024-07-26", | ||
"expectedStartDate": "2024-01-01", | ||
"actualEndDate": "2024-07-26", | ||
"expectedEndDate": "2024-07-25", | ||
"referralDate": "2024-07-27", | ||
"length": 7, | ||
"lengthUnit": "Months", | ||
"nsiManagers": [ | ||
{ | ||
"probationArea": { | ||
"probationAreaId": 78, | ||
"code": "N52", | ||
"description": "West Midlands Region", | ||
"organisation": { | ||
"code": "ORG1", | ||
"description": "Org 1" | ||
} | ||
}, | ||
"team": { | ||
"code": "T1", | ||
"description": "Team1", | ||
"telephone": "123", | ||
"localDeliveryUnit": { | ||
"code": "London", | ||
"description": "LN1" | ||
}, | ||
"district": { | ||
"code": "London", | ||
"description": "LN1" | ||
}, | ||
"borough": { | ||
"code": "LN1", | ||
"description": "Default" | ||
}, | ||
"teamType": { | ||
"code": "London", | ||
"description": "LN1" | ||
}, | ||
"startDate": "2024-07-26" | ||
}, | ||
"staff": { | ||
"username": "JoeBloggs", | ||
"staffCode": "N01ABBA", | ||
"staffIdentifier": 80, | ||
"staff": { | ||
"forenames": "Bob Micheal", | ||
"surname": "Smith" | ||
}, | ||
"teams": [], | ||
"probationArea": { | ||
"probationAreaId": 78, | ||
"code": "N52", | ||
"description": "West Midlands Region", | ||
"organisation": { | ||
"code": "ORG1", | ||
"description": "Org 1" | ||
} | ||
} | ||
}, | ||
"startDate": "2024-07-26" | ||
}, | ||
{ | ||
"probationArea": { | ||
"probationAreaId": 78, | ||
"code": "N52", | ||
"description": "West Midlands Region", | ||
"organisation": { | ||
"code": "ORG1", | ||
"description": "Org 1" | ||
} | ||
}, | ||
"team": { | ||
"code": "T1", | ||
"description": "Team1", | ||
"telephone": "123", | ||
"localDeliveryUnit": { | ||
"code": "London", | ||
"description": "LN1" | ||
}, | ||
"district": { | ||
"code": "London", | ||
"description": "LN1" | ||
}, | ||
"borough": { | ||
"code": "LN1", | ||
"description": "Default" | ||
}, | ||
"teamType": { | ||
"code": "London", | ||
"description": "LN1" | ||
}, | ||
"startDate": "2024-07-26" | ||
}, | ||
"staff": { | ||
"username": "JoeBloggs", | ||
"staffCode": "N01ABBA", | ||
"staffIdentifier": 80, | ||
"staff": { | ||
"forenames": "Bob Micheal", | ||
"surname": "Smith" | ||
}, | ||
"teams": [], | ||
"probationArea": { | ||
"probationAreaId": 78, | ||
"code": "N52", | ||
"description": "West Midlands Region", | ||
"organisation": { | ||
"code": "ORG1", | ||
"description": "Org 1" | ||
} | ||
} | ||
}, | ||
"startDate": "2024-07-19", | ||
"endDate": "2024-07-25" | ||
} | ||
], | ||
"notes": "notes", | ||
"intendedProvider": { | ||
"probationAreaId": 78, | ||
"code": "N52", | ||
"description": "West Midlands Region", | ||
"organisation": { | ||
"code": "ORG1", | ||
"description": "Org 1" | ||
} | ||
}, | ||
"active": true, | ||
"softDeleted": false, | ||
"externalReference": "external ref" | ||
} |
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
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
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
Oops, something went wrong.