-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bort fra data class i API - take2 #1351
base: main
Are you sure you want to change the base?
Conversation
…l class, for å ha meir kontroll
…også litt malplassert, så da kan vi like godt duplisere
…andre data class i dsl-modulen
brevbaker-dsl/src/main/kotlin/no/nav/pensjon/brev/template/IncludeAttachment.kt
Outdated
Show resolved
Hide resolved
brevbaker-dsl/src/main/kotlin/no/nav/pensjon/brev/template/LanguageCombination.kt
Outdated
Show resolved
Hide resolved
brevbaker-dsl/src/main/kotlin/no/nav/pensjon/brev/template/LanguageSettings.kt
Outdated
Show resolved
Hide resolved
@@ -78,8 +93,15 @@ sealed class UnaryOperation<In, out Out> : Operation() { | |||
} | |||
|
|||
abstract class BinaryOperation<in In1, in In2, out Out>(val doc: Documentation? = null) : Operation() { | |||
data class Documentation(val name: String, val syntax: Notation) { | |||
class Documentation @InternKonstruktoer constructor(val name: String, val syntax: Notation) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jeg lurer på om akkuratt denne klassen burde ha public konstruktør. Om vi skal oppfordre til tilpasning av brevbaker gjennom operasjoner.
import no.nav.pensjon.brev.template.dsl.textExpr | ||
import no.nav.pensjon.brevbaker.api.model.Kroner | ||
|
||
data class KronerText(val kroner: Expression<Kroner>, val fontType: Element.OutlineContent.ParagraphContent.Text.FontType = Element.OutlineContent.ParagraphContent.Text.FontType.PLAIN) : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Er denne flyttet fordi det kun er etterlatte som bruker den?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nei, brukast også i pensjonsmaler. Men det kjentes litt rart og inkonsekvent at dette var den einaste frasa vi hadde i biblioteket, så da trur eg det er betre å duplisere.
…eita i prodkoden utan å kåle til for testane våre
No description provided.