Skip to content
Snippets Groups Projects
Commit dd7ec570 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-6275 Setze ReplyOption

parent 44d6d35e
Branches
Tags
No related merge requests found
......@@ -171,13 +171,16 @@ public class ElsterTransferRemoteService {
}
PostfachNachricht getAntwort(AntwortDetails antwortDetails) {
LOG.info("Processing AntwortDetail {} with DownloadDate {}", antwortDetails, antwortDetails.getDownloadZeitpunkt());
var nachrichtBuilder = PostfachNachricht.builder()
.direction(PostfachNachricht.Direction.IN)
.mailBody(postfachProperties.getBody());
if (Objects.nonNull(antwortDetails.getZuordnungskriterium())) {
var nachrichtId = ObjectIdToUUIDConverter.toObjectId(antwortDetails.getZuordnungskriterium());
nachrichtBuilder.referencedNachricht(nachrichtId.toHexString());
nachrichtBuilder
.referencedNachricht(nachrichtId.toHexString())
.replyOption(PostfachNachricht.ReplyOption.POSSIBLE);
if (Objects.nonNull(antwortDetails.getAnhaenge())) {
nachrichtBuilder.attachments(antwortDetails.getAnhaenge().stream()
......@@ -231,8 +234,8 @@ public class ElsterTransferRemoteService {
return OzgCloudUploadFile.builder()
.fileName(downloadAnhangDetails.getDatei())
.fieldName(POSTFACH)
.contentType(downloadAnhangDetails.getMimeType())
.nachrichtReferenz(nachrichtId).build();
.contentType(downloadAnhangDetails.getMimeType()).build();
//.nachrichtReferenz(nachrichtId).build();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment