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

fix: Message model update #5

Merged
merged 1 commit into from
Nov 14, 2024
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 @@ -4,8 +4,6 @@
import it.gov.pagopa.notifier.model.Message;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

@Service
public class MessageMapperDTOToObject {

Expand All @@ -17,7 +15,6 @@ public Message map(MessageDTO messageDTO, String entityId){
.messageUrl(messageDTO.getMessageUrl())
.content(messageDTO.getContent())
.originId(messageDTO.getOriginId())
.elaborationDateTime(LocalDateTime.now())
.entityId(entityId)
.associatedPayment(true)
.build();
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/it/gov/pagopa/notifier/model/Message.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;


@Data
@Builder
Expand All @@ -18,6 +16,4 @@ public class Message {
private String content;
private String entityId;
private Boolean associatedPayment;
private LocalDateTime elaborationDateTime;

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public MessageDTO map(Message message){
.messageUrl(message.getMessageUrl())
.content(message.getContent())
.originId(message.getOriginId())
.associatedPayment(true)
.associatedPayment(message.getAssociatedPayment())
.build();

}
Expand Down
Loading