Skip to content

Commit

Permalink
F - Oppdaterer PrefillDataModel med PersonInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
dskarpas committed Nov 1, 2024
1 parent 46f4d07 commit 3c59cd7
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -29,7 +33,7 @@ data class PrefillDataModel(
val refTilPerson: ReferanseTilPerson? = null,
var melding: String? = null,
val partSedAsJson: MutableMap<String, String> = mutableMapOf()
) {
) {

override fun toString(): String {
return "DataModel: SedType: ${sedType.name}, bucType: $buc, penSakId: $penSaksnummer, vedtakId: $vedtakId, euxCaseId: $euxCaseID"
Expand Down

0 comments on commit 3c59cd7

Please sign in to comment.