Done ticket GEPAFINBE-192 Fixed NDG in-progress response case and updated status code to 200.

This commit is contained in:
piyushkag
2025-03-24 19:29:43 +05:30
parent ce21dc23f6
commit 1aabc0bb81
4 changed files with 32 additions and 2 deletions

View File

@@ -171,8 +171,9 @@ public class AppointmentDao {
HubEntity hub = hubRepository.findByHubId(application.getHubId());
loginToOdessa(hub, application);
startAsyncNdgProcessing(applicationId);
throw new CustomValidationException(Status.SUCCESS, Translator.toLocale(GepafinConstant.NDG_GENERATION_IS_IN_PROGRESS));
return ndgResponse;
}
private HubEntity loginToOdessa(HubEntity hub, ApplicationEntity application) {
try {
//code to generate token with payload having "iat" epoch timestamp and secret key with no expiry and send in below method call