Skip to content

Commit

Permalink
Adding the condition for DigiLocker (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahil-tarento authored Mar 21, 2024
1 parent f86fc18 commit 5141801
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public PullURIResponse generateURIResponse(String digiLockerHmac, String request
} catch (IOException e) {
logger.error("Not able to process the request requestBody: " + requestBody, e);
responseStatus.setStatus("0");
response.getDocDetails().setDocContent("Document is not available.");
return response;
}
CertificateAddInfoDTO certificateAddInfoDTO = new CertificateAddInfoDTO();
Expand Down Expand Up @@ -105,6 +106,7 @@ public PullURIResponse generateURIResponse(String digiLockerHmac, String request
if ((CollectionUtils.isEmpty(userEnrollmentInfo)) || (CollectionUtils.isNotEmpty(userEnrollmentInfo) && userEnrollmentInfo.size() > 1)) {
logger.error("Issue with getting the userEnrollment List" + userEnrollmentInfo);
response.setResponseStatus(new ResponseStatus("0", dateFormat.format(new Date()), request.getTxn()));
response.getDocDetails().setDocContent("Document is not available.");
return response;
} else {
URIResponseDocDetails docDetails = response.getDocDetails();
Expand Down Expand Up @@ -209,6 +211,7 @@ public PullDocResponse generateDocResponse(String digiLockerHmac, String request
} catch (IOException e) {
logger.error("Not able to process the request requestBody: " + requestBody, e);
responseStatus.setStatus("0");
response.getDocDetails().setDocContent("Document is not available.");
return response;
}
CertificateAddInfoDTO certificateAddInfoDTO = new CertificateAddInfoDTO();
Expand Down

0 comments on commit 5141801

Please sign in to comment.