From e13f06a33a9842349bbda57c7cdc45734d7280ee Mon Sep 17 00:00:00 2001 From: Benjamin Seber Date: Sun, 29 Oct 2023 22:30:13 +0100 Subject: [PATCH] add VacationTypeUpdatedEventDTO --- .../VacationTypeUpdatedEventDTO.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 model-events/src/main/java/de/focus_shift/urlaubsverwaltung/extension/api/vacationtype/VacationTypeUpdatedEventDTO.java diff --git a/model-events/src/main/java/de/focus_shift/urlaubsverwaltung/extension/api/vacationtype/VacationTypeUpdatedEventDTO.java b/model-events/src/main/java/de/focus_shift/urlaubsverwaltung/extension/api/vacationtype/VacationTypeUpdatedEventDTO.java new file mode 100644 index 0000000..3192f0e --- /dev/null +++ b/model-events/src/main/java/de/focus_shift/urlaubsverwaltung/extension/api/vacationtype/VacationTypeUpdatedEventDTO.java @@ -0,0 +1,24 @@ +package de.focus_shift.urlaubsverwaltung.extension.api.vacationtype; + +import java.util.Locale; +import java.util.Map; +import java.util.UUID; +import lombok.Builder; +import lombok.NonNull; +import lombok.Value; +import lombok.extern.jackson.Jacksonized; + +@Value +@Builder +@Jacksonized +public class VacationTypeUpdatedEventDTO { + @NonNull UUID id; + @NonNull String tenantId; + @NonNull Long sourceId; + @NonNull String category; + boolean requiresApprovalToApply; + boolean requiresApprovalToCancel; + @NonNull String color; + boolean visibleToEveryone; + @NonNull Map label; +}