Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Map<String, Object> buildPayload(final Map.Entry<User, List<VerificationDocumentRejectEvent>> entry)
- {
- final Map<LocalizedField, LocalizedField> rejectedDocuments = entry.getValue().stream()
- .collect(Collectors.toMap(this::getDocumentType, this::getRejectReason, (first, last) -> last));
- final HashMap<String, Object> payload = new HashMap<>();
- payload.put(NotificationKey.NAME, notificationDataManager.getUserName(entry.getKey()));
- payload.put(NotificationKey.REJECTED_DOCUMENTS, rejectedDocuments);
- return payload;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement