Skip to content

Commit

Permalink
Removed not null constraint to policy id and added kycexchange except…
Browse files Browse the repository at this point in the history
…ion handler.
  • Loading branch information
mahammedtaheer committed Jan 4, 2023
1 parent 1b14b57 commit fc14c88
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
import io.mosip.authentication.core.indauth.dto.AuthResponseDTO;
import io.mosip.authentication.core.indauth.dto.EKycAuthResponseDTO;
import io.mosip.authentication.core.indauth.dto.EKycResponseDTO;
import io.mosip.authentication.core.indauth.dto.KycAuthResponseDTO;
import io.mosip.authentication.core.indauth.dto.EncryptedKycRespDTO;
import io.mosip.authentication.core.indauth.dto.KycExchangeResponseDTO;
import io.mosip.authentication.core.indauth.dto.ResponseDTO;
import io.mosip.authentication.core.logger.IdaLogger;
import io.mosip.authentication.core.otp.dto.OtpResponseDTO;
Expand Down Expand Up @@ -374,6 +375,13 @@ private static Object frameErrorResponse(String requestReceived, String type, Li
otpResponseDTO.setErrors(errors);
otpResponseDTO.setResponseTime(responseTime);
return otpResponseDTO;
case "kyc-exchange":
KycExchangeResponseDTO kycExchangeResponseDTO = new KycExchangeResponseDTO();
kycExchangeResponseDTO.setErrors(errors);
kycExchangeResponseDTO.setResponseTime(responseTime);
EncryptedKycRespDTO encryptedKycRespDTO = new EncryptedKycRespDTO();
kycExchangeResponseDTO.setResponse(encryptedKycRespDTO);
return kycExchangeResponseDTO;
case "internal":
if (Objects.nonNull(type) && type.equalsIgnoreCase(IdAuthCommonConstants.OTP)) {
OtpResponseDTO internalotpresponsedto = new OtpResponseDTO();
Expand Down Expand Up @@ -421,11 +429,6 @@ private static Object frameErrorResponse(String requestReceived, String type, Li
hotlistResponseDto.setResponseTime(responseTime);
return hotlistResponseDto;
}





default:
AuthResponseDTO authResp = new AuthResponseDTO();
ResponseDTO res = new ResponseDTO();
Expand Down
2 changes: 1 addition & 1 deletion db_scripts/mosip_ida/ddl/ida-misp_license_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ CREATE TABLE ida.misp_license_data (
misp_commence_on timestamp NOT NULL,
misp_expires_on timestamp,
misp_status character varying(36) NOT NULL,
policy_id character varying(50) NOT NULL,
policy_id character varying(50),
cr_by character varying(256) NOT NULL,
cr_dtimes timestamp NOT NULL,
upd_by character varying(256),
Expand Down

0 comments on commit fc14c88

Please sign in to comment.