Skip to content
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

TFP-1674 Tilbakebetaling ønsker å sende saksbehandlerident #176

Merged
merged 1 commit into from
Feb 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public class TilbakebetalingBehandlingProsessEventDto extends BehandlingProsessE
@JsonDeserialize(using = LocalDateDeserializer.class)
private LocalDate førsteFeilutbetaling;
private BigDecimal feilutbetaltBeløp;
private String ansvarligSaksbehandlerIdent;

public TilbakebetalingBehandlingProsessEventDto() {
}
Expand All @@ -25,15 +26,21 @@ public TilbakebetalingBehandlingProsessEventDto() {
return feilutbetaltBeløp;
}

public String getAnsvarligSaksbehandlerIdent() {
return ansvarligSaksbehandlerIdent;
}

protected TilbakebetalingBehandlingProsessEventDto(Builder<?> builder) {
super(builder);
this.førsteFeilutbetaling = builder.førsteFeilutbetaling;
this.feilutbetaltBeløp = builder.feilutbetaltBeløp;
this.ansvarligSaksbehandlerIdent = builder.ansvarligSaksbehandlerIdent;
}

public static abstract class Builder<T extends Builder<T>> extends BehandlingProsessEventDto.Builder<T> {
private LocalDate førsteFeilutbetaling;
private BigDecimal feilutbetaltBeløp;
private String ansvarligSaksbehandlerIdent;

public T medFørsteFeilutbetaling(LocalDate førsteFeilutbetaling) {
this.førsteFeilutbetaling = førsteFeilutbetaling;
Expand All @@ -45,6 +52,11 @@ public static abstract class Builder<T extends Builder<T>> extends BehandlingPro
return self();
}

public T medAnsvarligSaksbehandlerIdent(String saksbehandlerIdent) {
this.ansvarligSaksbehandlerIdent = saksbehandlerIdent;
return self();
}

public TilbakebetalingBehandlingProsessEventDto build() {
return new TilbakebetalingBehandlingProsessEventDto(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public void testAksjonspunktEventRoundtrip() throws Exception {
.medFagsystem(Fagsystem.FPTILBAKE)
.medFeilutbetaltBeløp(BigDecimal.valueOf(20000L))
.medFørsteFeilutbetaling(LocalDate.now().minusMonths(4))
.medAnsvarligSaksbehandlerIdent("T12345")
.medAktørId("123457890123")
.medSaksnummer("9876543210")
.medYtelseTypeKode("FP")
Expand Down