Skip to content

Commit

Permalink
TFP-5668: Forenkler kvittering kontrakten. (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsladek authored Jan 30, 2024
1 parent cf0bbea commit 6999c28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.UUID;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;

Expand All @@ -23,7 +24,7 @@ public class DokumentbestillingDto {
/**
* Kode for ytelsetypeES
*/
@NotNull
@NotNull @Valid
private YtelseType fagsakYtelseType;
/**
* Kode for hvilket dokument som er bestilt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@
* Brukes til å kvittere tilbake til bestilleren at brevet ble produsert, journalført og distribuert.
* @param behandlingUuid - referanse til behandling det ble bestillt brev for.
* @param dokumentbestillingUuid - en unik bestillings id som ble brukt ved bestilling.
* @param dokumentMal - dokument mal som ble brukt i bestillingen.
* @param journalpostId - journalpost id hvor brevet er arkivert.
* @param dokumentId - dokument id som identifiserer dokumentet i journalposten.
*/
public record DokumentKvitteringDto(@NotNull @Valid UUID behandlingUuid,
@NotNull @Valid UUID dokumentbestillingUuid,
@NotNull @Valid DokumentMal dokumentMal,
@NotNull @Pattern(regexp = "^[\\p{L}\\p{N}_.\\-]+$") String journalpostId,
@NotNull @Digits(integer = 12, fraction = 0) String dokumentId) {

Expand Down

0 comments on commit 6999c28

Please # to comment.