Subversion Repositories SmartDukaan

Rev

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

Rev 21505 Rev 21510
Line 115... Line 115...
115
	@ApiImplicitParams({
115
	@ApiImplicitParams({
116
		@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", 
116
		@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", 
117
				required = true, dataType = "string", paramType = "header")
117
				required = true, dataType = "string", paramType = "header")
118
	})
118
	})
119
	@ApiOperation(value = "")
119
	@ApiOperation(value = "")
120
	public ResponseEntity<?> confirmRecharge(HttpServletRequest request, long rechargeAmount){
120
	public ResponseEntity<?> confirmRecharge(HttpServletRequest request, @RequestParam(value="rechargeAmount") long rechargeAmount){
121
		int userId = (int)request.getAttribute("userId");
121
		int userId = (int)request.getAttribute("userId");
122
		UserAccounts userAccount = null;
122
		UserAccounts userAccount = null;
123
		UserWallet wallet = null;
123
		UserWallet wallet = null;
124
		if (rechargeAmount <=0){
124
		if (rechargeAmount <=0){
125
			final ProfitMandiResponse<?> profitMandiResponse=new ProfitMandiResponse<>(LocalDateTime.now(), request.getRequestURL().toString() , HttpStatus.BAD_REQUEST.toString(), HttpStatus.BAD_REQUEST, ResponseStatus.SUCCESS, null);
125
			final ProfitMandiResponse<?> profitMandiResponse=new ProfitMandiResponse<>(LocalDateTime.now(), request.getRequestURL().toString() , HttpStatus.BAD_REQUEST.toString(), HttpStatus.BAD_REQUEST, ResponseStatus.SUCCESS, null);