diff --git a/src/main/kotlin/no/nav/eessi/pensjon/shared/api/PrefillDataModel.kt b/src/main/kotlin/no/nav/eessi/pensjon/shared/api/PrefillDataModel.kt index ea18a9109..decfb8f37 100644 --- a/src/main/kotlin/no/nav/eessi/pensjon/shared/api/PrefillDataModel.kt +++ b/src/main/kotlin/no/nav/eessi/pensjon/shared/api/PrefillDataModel.kt @@ -11,13 +11,17 @@ import no.nav.eessi.pensjon.utils.mapJsonToAny * * services: pdl, person, pen, maybe joark, eux-basis. */ -class PersonId(val norskIdent: String, - val aktorId: String) +data class PersonInfo(val norskIdent: String, + val aktorId: String, + val reservert: Boolean? = true, + val epostKrr: String? = null, + val telefonKrr:String? = null +) data class PrefillDataModel( val penSaksnummer: String? = null, - val bruker: PersonId, - val avdod: PersonId?, + val bruker: PersonInfo, + val avdod: PersonInfo?, val sedType: SedType, val buc: BucType, val vedtakId: String? = null, @@ -29,7 +33,7 @@ data class PrefillDataModel( val refTilPerson: ReferanseTilPerson? = null, var melding: String? = null, val partSedAsJson: MutableMap = mutableMapOf() - ) { +) { override fun toString(): String { return "DataModel: SedType: ${sedType.name}, bucType: $buc, penSakId: $penSaksnummer, vedtakId: $vedtakId, euxCaseId: $euxCaseID"