diff --git a/projects/common-platform-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/CommonPlatformHearing.kt b/projects/common-platform-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/CommonPlatformHearing.kt index 2573adcc63..de708f19bd 100644 --- a/projects/common-platform-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/CommonPlatformHearing.kt +++ b/projects/common-platform-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/CommonPlatformHearing.kt @@ -20,7 +20,7 @@ data class Hearing( data class ProsecutionCase( val id: String, - val initiationCode: String, + val initiationCode: String? = null, val prosecutionCaseIdentifier: ProsecutionCaseIdentifier, val defendants: List, val caseStatus: String? = null, @@ -48,7 +48,7 @@ data class Defendant( data class Offence( val id: String, val offenceDefinitionId: String? = null, - val offenceCode: String, + val offenceCode: String? = null, val offenceTitle: String, val wording: String, val offenceLegislation: String,