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.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
ecb954c
commit eea32f2
Showing
15 changed files
with
207 additions
and
43 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
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
15 changes: 15 additions & 0 deletions
15
projects/cas2-and-delius/src/dev/resources/messages/application-status-updated.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,15 @@ | ||
{ | ||
"eventType": "applications.cas2.application.status-updated", | ||
"version": 1, | ||
"description": "A CAS2 application has been updated", | ||
"detailUrl": "http://localhost:{wiremock.port}/approved-premises-api/events/cas2/application-status-updated/1", | ||
"occurredAt": "2020-01-01T12:34:56Z[Europe/London]", | ||
"personReference": { | ||
"identifiers": [ | ||
{ | ||
"type": "CRN", | ||
"value": "A000001" | ||
} | ||
] | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...cts/cas2-and-delius/src/dev/resources/simulations/__files/application-status-updated.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,15 @@ | ||
{ | ||
"id": "1", | ||
"timestamp": "2020-01-01T12:34:56Z[Europe/London]", | ||
"eventType": "applications.cas2.application.status-updated", | ||
"eventDetails": { | ||
"applicationId": "00000000-0000-0000-0000-000000000001", | ||
"applicationUrl": "https://example.com/application/00000000-0000-0000-0000-000000000001", | ||
"updatedAt": "2020-01-01T12:34:56Z[Europe/London]", | ||
"newStatus": { | ||
"name": "moreInfoRequested", | ||
"label": "More information requested", | ||
"description": "More information about the application has been requested from the POM (Prison Offender Manager)." | ||
} | ||
} | ||
} |
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
6 changes: 6 additions & 0 deletions
6
...rc/main/kotlin/uk/gov/justice/digital/hmpps/client/approvedpremises/EventDetailsClient.kt
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,9 +1,15 @@ | ||
package uk.gov.justice.digital.hmpps.client.approvedpremises | ||
|
||
import org.springframework.web.service.annotation.GetExchange | ||
import uk.gov.justice.digital.hmpps.client.approvedpremises.model.ApplicationStatusUpdated | ||
import uk.gov.justice.digital.hmpps.client.approvedpremises.model.ApplicationSubmitted | ||
import uk.gov.justice.digital.hmpps.client.approvedpremises.model.EventDetails | ||
import java.net.URI | ||
|
||
interface EventDetailsClient { | ||
@GetExchange | ||
fun getApplicationSubmittedDetails(uri: URI): EventDetails<ApplicationSubmitted> | ||
|
||
@GetExchange | ||
fun getApplicationStatusUpdatedDetails(uri: URI): EventDetails<ApplicationStatusUpdated> | ||
} |
7 changes: 7 additions & 0 deletions
7
...in/kotlin/uk/gov/justice/digital/hmpps/client/approvedpremises/model/ApplicationStatus.kt
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,7 @@ | ||
package uk.gov.justice.digital.hmpps.client.approvedpremises.model | ||
|
||
data class ApplicationStatus( | ||
val name: String, | ||
val label: String, | ||
val description: String, | ||
) |
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.