Subversion Repositories SmartDukaan

Rev

Rev 21476 | Rev 21495 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21476 Rev 21483
Line 119... Line 119...
119
	})
119
	})
120
	@RequestMapping(value = ProfitMandiConstants.URL_PARSE_OTP, method=RequestMethod.POST,produces = MediaType.APPLICATION_JSON_VALUE)
120
	@RequestMapping(value = ProfitMandiConstants.URL_PARSE_OTP, method=RequestMethod.POST,produces = MediaType.APPLICATION_JSON_VALUE)
121
	public ResponseEntity<?> parseOTP (@RequestBody String message) {
121
	public ResponseEntity<?> parseOTP (@RequestBody String message) {
122
		String numberOnly= message.replaceAll("[^0-9]", "");
122
		String numberOnly= message.replaceAll("[^0-9]", "");
123
		if(numberOnly.length() !=5) {
123
		if(numberOnly.length() !=5) {
124
			responseSender.badRequest(new ProfitMandiBusinessException(null, null, ""));
124
			return responseSender.badRequest(new ProfitMandiBusinessException(null, null, ""));
125
		}
125
		}
126
		return responseSender.ok(numberOnly);
126
		return responseSender.ok(numberOnly);
127
	}
127
	}
128
 
128
 
129
 
129