Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.61 KB | None | 0 0
  1.  private Map<String, Object> buildPayload(final Map.Entry<User, List<VerificationDocumentRejectEvent>> entry)
  2.     {
  3.         final Map<LocalizedField, LocalizedField> rejectedDocuments = entry.getValue().stream()
  4.                 .collect(Collectors.toMap(this::getDocumentType, this::getRejectReason, (first, last) -> last));
  5.        
  6.         final HashMap<String, Object> payload = new HashMap<>();
  7.        
  8.         payload.put(NotificationKey.NAME, notificationDataManager.getUserName(entry.getKey()));
  9.         payload.put(NotificationKey.REJECTED_DOCUMENTS, rejectedDocuments);
  10.        
  11.         return payload;
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement