Skip to content

Commit a1c7921

Browse files
author
Bingjie Liu
committed
Undo changes
1 parent 0a873b7 commit a1c7921

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/models/hmpps/CaseDetail.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ data class Name(
1919
)
2020

2121
data class CaseSentence(
22-
val sentenceDate: String? = null,
22+
val date: String? = null,
2323
val sentencingCourt: SentencingCourt? = null,
2424
val releaseDate: String? = null,
2525
)

src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/models/probationintegrationepf/EPFCaseDetail.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ data class EPFCaseDetail(
2525
gender = this.gender,
2626
sentence =
2727
CaseSentence(
28-
sentenceDate = this.sentence?.sentenceDate,
28+
date = this.sentence?.date,
2929
sentencingCourt = SentencingCourt(this.sentence?.sentencingCourt?.name),
3030
releaseDate = this.sentence?.releaseDate,
3131
),

src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/helpers/CaseDetailsHelper.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fun generateCaseDetail(): CaseDetail {
1717
),
1818
dateOfBirth = "2000-03-01",
1919
gender = null,
20-
sentence = CaseSentence(sentenceDate = "2021-03-03", sentencingCourt = SentencingCourt("Fakecourt"), releaseDate = "2021-10-10"),
20+
sentence = CaseSentence(date = "2021-03-03", sentencingCourt = SentencingCourt("Fakecourt"), releaseDate = "2021-10-10"),
2121
responsibleProvider =
2222
ResponsibleProvider(
2323
code = "999000ABC",

0 commit comments

Comments
 (0)