Subversion Repositories SmartDukaan

Rev

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

Rev 22994 Rev 22997
Line 210... Line 210...
210
		walletService.addAmountToWallet(uc.getUserId(), insurancePolicy.getId(), WalletReferenceType.CASHBACK, "Cashback against insurance policy", 
210
		walletService.addAmountToWallet(uc.getUserId(), insurancePolicy.getId(), WalletReferenceType.CASHBACK, "Cashback against insurance policy", 
211
				taxableInsuranceMargin);
211
				taxableInsuranceMargin);
212
		LOGGER.info("requested url : " + request.getRequestURL().toString());
212
		LOGGER.info("requested url : " + request.getRequestURL().toString());
213
		JSONObject jsonObject = new JSONObject();
213
		JSONObject jsonObject = new JSONObject();
214
		jsonObject.append("policyNumber", insurancePolicy.getPolicyNumber());
214
		jsonObject.append("policyNumber", insurancePolicy.getPolicyNumber());
215
		return responseSender.ok(jsonObject);
215
		return responseSender.ok(jsonObject.toString());
216
	}
216
	}
217
	
217
	
218
	private void sendMailWithAttachments(String email, String subject, String body, List<File> attachments) throws Exception {
218
	private void sendMailWithAttachments(String email, String subject, String body, List<File> attachments) throws Exception {
219
 
219
 
220
    	MimeMessage message = mailSender.createMimeMessage();
220
    	MimeMessage message = mailSender.createMimeMessage();