| Line 103... |
Line 103... |
| 103 |
otpResponse.setMessage("Unable to verify OTP, please try again");
|
103 |
otpResponse.setMessage("Unable to verify OTP, please try again");
|
| 104 |
final ProfitMandiResponse<?> profitMandiResponse=new ProfitMandiResponse<>(LocalDateTime.now(), ProfitMandiConstants.URL_VERIFY_OTP , HttpStatus.INTERNAL_SERVER_ERROR.toString(), HttpStatus.INTERNAL_SERVER_ERROR, ResponseStatus.FAILURE, otpResponse);
|
104 |
final ProfitMandiResponse<?> profitMandiResponse=new ProfitMandiResponse<>(LocalDateTime.now(), ProfitMandiConstants.URL_VERIFY_OTP , HttpStatus.INTERNAL_SERVER_ERROR.toString(), HttpStatus.INTERNAL_SERVER_ERROR, ResponseStatus.FAILURE, otpResponse);
|
| 105 |
return new ResponseEntity<>(profitMandiResponse,HttpStatus.INTERNAL_SERVER_ERROR);
|
105 |
return new ResponseEntity<>(profitMandiResponse,HttpStatus.INTERNAL_SERVER_ERROR);
|
| 106 |
}
|
106 |
}
|
| 107 |
}
|
107 |
}
|
| 108 |
// @ApiOperation(value = "Parse OTP")
|
108 |
@ApiOperation(value = "Parse OTP")
|
| 109 |
// @RequestMapping(value = ProfitMandiConstants.URL_PARSE_OTP, method=RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE)
|
109 |
@RequestMapping(value = ProfitMandiConstants.URL_PARSE_OTP, method=RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE)
|
| 110 |
// public ResponseEntity<?> parseOTP (@RequestParam("message") String message) {
|
110 |
public ResponseEntity<?> parseOTP (@RequestParam("message") String message) {
|
| 111 |
// final ProfitMandiResponse<?> profitMandiResponse=new ProfitMandiResponse<>(ProfitMandiConstants.URL_PARSE_OTP, "322332");
|
111 |
final ProfitMandiResponse<?> profitMandiResponse=new ProfitMandiResponse<>(ProfitMandiConstants.URL_PARSE_OTP, "322332");
|
| 112 |
// return new ResponseEntity<>(profitMandiResponse, HttpStatus.OK);
|
112 |
return new ResponseEntity<>(profitMandiResponse, HttpStatus.OK);
|
| 113 |
// }
|
113 |
}
|
| 114 |
|
114 |
|
| 115 |
|
115 |
|
| 116 |
}
|
116 |
}
|