-
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.
- Loading branch information
Showing
4 changed files
with
69 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
dependencies { | ||
implementation(project(":common")) | ||
|
||
} | ||
|
||
configurations.all { | ||
// exclude JUnit 4 | ||
exclude(group = "junit", module = "junit") | ||
} |
50 changes: 50 additions & 0 deletions
50
meldekort/main/no/nav/tiltakspenger/libs/meldekort/MeldekortGrunnlagDTO.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,50 @@ | ||
package no.nav.tiltakspenger.libs.meldekort | ||
|
||
import java.time.LocalDate | ||
|
||
/** | ||
* Kontrakt mellom tiltakspenger-vedtak og tiltakspenger-meldekort-api | ||
*/ | ||
data class MeldekortGrunnlagDTO( | ||
val vedtakId: String, | ||
val sakId: String, | ||
val behandlingId: String, | ||
val status: StatusDTO, | ||
val vurderingsperiode: PeriodeDTO, | ||
val tiltak: List<TiltakDTO>, | ||
val personopplysninger: PersonopplysningerDTO, | ||
val utfallsperioder: List<UtfallsperiodeDTO>, | ||
) | ||
|
||
data class UtfallsperiodeDTO( | ||
val fom: String, | ||
val tom: String, | ||
val utfall: UtfallForPeriodeDTO, | ||
) | ||
|
||
enum class UtfallForPeriodeDTO { | ||
GIR_RETT_TILTAKSPENGER, | ||
GIR_IKKE_RETT_TILTAKSPENGER, | ||
} | ||
|
||
data class PersonopplysningerDTO( | ||
val fornavn: String, | ||
val etternavn: String, | ||
val ident: String, | ||
) | ||
|
||
enum class StatusDTO { | ||
AKTIV, | ||
IKKE_AKTIV, | ||
} | ||
|
||
data class TiltakDTO( | ||
val periodeDTO: PeriodeDTO, | ||
val typeKode: String, | ||
val antDagerIUken: Int, | ||
) | ||
|
||
data class PeriodeDTO( | ||
val fra: LocalDate, | ||
val til: LocalDate, | ||
) |
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