Skip to content

Commit

Permalink
Merge pull request #1347 from navikt/custom_text_forlenget_behandling…
Browse files Browse the repository at this point in the history
…stid

Custom text in forlenget behandlingstid.
  • Loading branch information
oyvind-wedoe authored Feb 18, 2025
2 parents b1ed5c7 + 7e716de commit 8472ebb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ data class PreviewForlengetBehandlingstidInput(
val behandlingstidUnits: Int?,
val behandlingstidUnitTypeId: String?,
val behandlingstidDate: String?,
val customText: String?,
)
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ data class ForlengetBehandlingstidRequest(
val behandlingstidDate: String?,
val avsenderEnhetId: String,
val type: Type,
val customText: String?,
) {
data class Part(
val name: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class KabalJsonToPdfService(
previousBehandlingstidInfo: String?,
reason: String?,
behandlingstidDate: String?,
customText: String?,
): ByteArray {
val bytes = kabalJsonToPdfClient.getForlengetBehandlingstidPDF(
forlengetBehandlingstidRequest = ForlengetBehandlingstidRequest(
Expand All @@ -105,6 +106,7 @@ class KabalJsonToPdfService(
previousBehandlingstidInfo = previousBehandlingstidInfo,
reason = reason,
behandlingstidDate = behandlingstidDate,
customText = customText,
)
)
return bytes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ class PreviewService(
previousBehandlingstidInfo = input.previousBehandlingstidInfo,
reason = input.reason,
behandlingstidDate = input.behandlingstidDate,

)
customText = input.customText,
)
}

private fun PreviewSvarbrevAnonymousInput.toSvarbrev(): Svarbrev {
Expand Down

0 comments on commit 8472ebb

Please sign in to comment.