-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flyttet klasser som kun brukes av PdlKlient over i external.pdl
- Loading branch information
1 parent
beb3649
commit 7b2ac84
Showing
5 changed files
with
43 additions
and
53 deletions.
There are no files selected for viewing
24 changes: 0 additions & 24 deletions
24
...n/no/nav/pensjon/opptjening/omsorgsopptjening/start/innlesning/barnetrygd/domain/Ident.kt
This file was deleted.
Oops, something went wrong.
37 changes: 11 additions & 26 deletions
37
...av/pensjon/opptjening/omsorgsopptjening/start/innlesning/barnetrygd/external/pdl/Ident.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 |
---|---|---|
@@ -1,31 +1,16 @@ | ||
package no.nav.pensjon.opptjening.omsorgsopptjening.start.innlesning.barnetrygd.external.pdl | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties | ||
sealed class Ident { | ||
abstract val ident: String | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
internal data class IdenterResponse( | ||
val data: IdenterDataResponse? = null, | ||
private val errors: List<PdlError>? = null | ||
) { | ||
val error: PdlError? = errors?.firstOrNull() | ||
} | ||
sealed class FolkeregisterIdent : Ident() { | ||
|
||
internal data class IdenterDataResponse( | ||
val hentIdenter: HentIdenter? = null | ||
) | ||
|
||
internal data class HentIdenter( | ||
val identer: List<IdentInformasjon> | ||
) | ||
|
||
internal data class IdentInformasjon( | ||
val ident: String, | ||
val gruppe: IdentGruppe | ||
) | ||
|
||
enum class IdentGruppe { | ||
AKTORID, | ||
FOLKEREGISTERIDENT, | ||
NPID | ||
} | ||
data class Gjeldende( | ||
override val ident: String | ||
) : FolkeregisterIdent() | ||
|
||
data class Historisk( | ||
override val ident: String | ||
) : FolkeregisterIdent() | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...sning/barnetrygd/domain/IdentHistorikk.kt → ...barnetrygd/external/pdl/IdentHistorikk.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
31 changes: 31 additions & 0 deletions
31
...on/opptjening/omsorgsopptjening/start/innlesning/barnetrygd/external/pdl/IdentResponse.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,31 @@ | ||
package no.nav.pensjon.opptjening.omsorgsopptjening.start.innlesning.barnetrygd.external.pdl | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
internal data class IdenterResponse( | ||
val data: IdenterDataResponse? = null, | ||
private val errors: List<PdlError>? = null | ||
) { | ||
val error: PdlError? = errors?.firstOrNull() | ||
} | ||
|
||
internal data class IdenterDataResponse( | ||
val hentIdenter: HentIdenter? = null | ||
) | ||
|
||
internal data class HentIdenter( | ||
val identer: List<IdentInformasjon> | ||
) | ||
|
||
internal data class IdentInformasjon( | ||
val ident: String, | ||
val gruppe: IdentGruppe | ||
) | ||
|
||
enum class IdentGruppe { | ||
AKTORID, | ||
FOLKEREGISTERIDENT, | ||
NPID | ||
} | ||
|
2 changes: 0 additions & 2 deletions
2
...sjon/opptjening/omsorgsopptjening/start/innlesning/barnetrygd/external/pdl/PdlResponse.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