-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flyttet pdfInnhold inn i dokument/domain & laget ny forhåndsvarsel pd…
…finnhold
- Loading branch information
1 parent
45f3929
commit f2ae0bd
Showing
27 changed files
with
75 additions
and
14 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
2 changes: 1 addition & 1 deletion
2
client/src/main/kotlin/no/nav/su/se/bakover/client/pdf/PdfGenerator.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
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
2 changes: 1 addition & 1 deletion
2
...ver/domain/brev/jsonRequest/PdfInnhold.kt → ...kotlin/dokument/domain/brev/PdfInnhold.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
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
1 change: 1 addition & 0 deletions
1
.../main/kotlin/no/nav/su/se/bakover/domain/brev/jsonRequest/AvsluttRevurderingPdfInnhold.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
1 change: 1 addition & 0 deletions
1
.../src/main/kotlin/no/nav/su/se/bakover/domain/brev/jsonRequest/ForhåndsvarselPdfInnhold.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
1 change: 1 addition & 0 deletions
1
...in/no/nav/su/se/bakover/domain/brev/jsonRequest/ForhåndsvarselTilbakekrevingPdfInnhold.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
1 change: 1 addition & 0 deletions
1
domain/src/main/kotlin/no/nav/su/se/bakover/domain/brev/jsonRequest/FritekstPdfInnhold.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
1 change: 1 addition & 0 deletions
1
...in/no/nav/su/se/bakover/domain/brev/jsonRequest/InnkallingTilKontrollsamtalePdfInnhold.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
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
1 change: 1 addition & 0 deletions
1
domain/src/main/kotlin/no/nav/su/se/bakover/domain/brev/jsonRequest/KlagePdfInnhold.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
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
1 change: 1 addition & 0 deletions
1
...tlin/no/nav/su/se/bakover/domain/brev/jsonRequest/PåminnelseNyStønadsperiodePdfInnhold.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
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
2 changes: 1 addition & 1 deletion
2
...in/kotlin/no/nav/su/se/bakover/domain/brev/søknad/lukk/trukket/TrukketSøknadPdfInnhold.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
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
45 changes: 45 additions & 0 deletions
45
...e/src/main/kotlin/tilbakekreving/infrastructure/ForhåndsvarsleTilbakekrevingPdfInnhold.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,45 @@ | ||
@file:Suppress("unused") | ||
|
||
package tilbakekreving.infrastructure | ||
|
||
import dokument.domain.PdfTemplateMedDokumentNavn | ||
import dokument.domain.brev.PdfInnhold | ||
import no.nav.su.se.bakover.domain.brev.beregning.BrevTilbakekrevingInfo | ||
import no.nav.su.se.bakover.domain.brev.jsonRequest.PersonaliaPdfInnhold | ||
|
||
/** | ||
* @param dagensDato brukes øverst til venstre i brevet for å datere det. | ||
*/ | ||
class ForhåndsvarsleTilbakekrevingPdfInnhold( | ||
val personalia: PersonaliaPdfInnhold, | ||
val saksbehandlerNavn: String, | ||
val fritekst: String, | ||
val bruttoTilbakekreving: String, | ||
val nettoTilbakekreving: String, | ||
val tilbakekreving: List<BrevTilbakekrevingInfo>, | ||
val dagensDato: String, | ||
) : PdfInnhold() { | ||
override val pdfTemplate = PdfTemplateMedDokumentNavn.ForhåndsvarselTilbakekreving | ||
|
||
// companion object { | ||
// fun fromBrevCommand( | ||
// fritekst: String, | ||
// kravgrunnlag: Kravgrunnlag, | ||
// personalia: PersonaliaPdfInnhold, | ||
// saksbehandlerNavn: String, | ||
// clock: Clock, | ||
// ): ForhåndsvarsleTilbakekrevingPdfInnhold { | ||
// TODO() | ||
// // return ForhåndsvarsleTilbakekrevingPdfInnhold( | ||
// // personalia = personalia, | ||
// // saksbehandlerNavn = saksbehandlerNavn, | ||
// // fritekst = fritekst, | ||
// // bruttoTilbakekreving = TODO(), | ||
// // tilbakekreving = TODO(), | ||
// // // Denne formateres annerledes enn i personalia, selvom begge deler er dagens dato. 2021-01-01 vil gi 01.01.2021 i personalia, mens 1. januar 2021 i dette feltet. | ||
// // // TODO jah: Kanskje vi kan bruke denne i su-pdfgen? https://github.com/navikt/pdfgen/blob/master/src/main/kotlin/no/nav/pdfgen/template/Helpers.kt | ||
// // dagensDato = LocalDate.now(clock).toString(), | ||
// // ) | ||
// } | ||
// } | ||
} |
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