-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #662 from navikt/pdl_oppholdstilatelse
Pdl oppholdstilatelse
- Loading branch information
Showing
12 changed files
with
137 additions
and
17 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
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
43 changes: 43 additions & 0 deletions
43
src/main/kotlin/no/nav/medlemskap/domene/personhistorikk/Opphold.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,43 @@ | ||
package no.nav.medlemskap.domene.personhistorikk | ||
|
||
import java.time.LocalDate | ||
import java.time.LocalDateTime | ||
|
||
data class Opphold( | ||
val type: OppholdstillatelseType, | ||
val oppholdFra: LocalDate?, | ||
val oppholdTil: LocalDate?, | ||
val medtadata: OppholdMetadata, | ||
val folkeregistermetadata: Folkeregistermetadata | ||
) | ||
|
||
enum class OppholdstillatelseType { | ||
MIDLERTIDIG, | ||
PERMANENT, | ||
OPPLYSNING_MANGLER, | ||
__UNKNOWN_VALUE | ||
} | ||
|
||
data class OppholdMetadata( | ||
val historisk: Boolean, | ||
val master: String, | ||
val endringer: List<Endring> | ||
) | ||
|
||
data class Endring( | ||
val type: Endringstype, | ||
val kilde: String, | ||
val registrert: LocalDateTime, | ||
val registrertAv: String, | ||
val systemkilde: String | ||
|
||
) | ||
enum class Endringstype { | ||
OPPRETT, | ||
KORRIGER, | ||
OPPHOER, | ||
/** | ||
* This is a default enum value that will be used when attempting to deserialize unknown value. | ||
*/ | ||
__UNKNOWN_VALUE, | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,6 +139,7 @@ class PdlClientHentPersonTest { | |
} | ||
} | ||
], | ||
"opphold":[], | ||
"adressebeskyttelse": [], | ||
"sivilstand": [ | ||
{ | ||
|
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