Merge pull request #251 from Kitzanos/feature/GEPAFINBE-192

GEPAFINBE-192 (Fix the Custom validation on NDG quick response from 400 to 200 status code)
This commit is contained in:
Rinaldo
2025-03-24 15:54:43 +01:00
committed by GitHub
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