Subversion Repositories SmartDukaan

Rev

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

Rev 2457 Rev 2942
Line 179... Line 179...
179
		Cart cart;
179
		Cart cart;
180
		UserContextServiceClient userContextServiceClient = null;
180
		UserContextServiceClient userContextServiceClient = null;
181
		try {
181
		try {
182
			userContextServiceClient = new UserContextServiceClient();
182
			userContextServiceClient = new UserContextServiceClient();
183
		} catch (Exception e) {
183
		} catch (Exception e) {
184
			e.printStackTrace();
184
			log.error("Unable to initialize user context service client", e);
-
 
185
			throw new ShoppingCartException(100, "Unable to initialize the user service client");
185
		}
186
		}
186
		in.shop2020.model.v1.user.UserContextService.Client userClient = userContextServiceClient.getClient();
187
		in.shop2020.model.v1.user.UserContextService.Client userClient = userContextServiceClient.getClient();
187
		cart = userClient.getCart(cartId);
188
		cart = userClient.getCart(cartId);
188
		
189
		
189
		if(cart.getCouponCode() == null)  {
190
		if(cart.getCouponCode() == null)  {