Subversion Repositories SmartDukaan

Rev

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

Rev 11923 Rev 11980
Line 8... Line 8...
8
import in.shop2020.model.v1.catalog.Item;
8
import in.shop2020.model.v1.catalog.Item;
9
import in.shop2020.model.v1.user.Cart;
9
import in.shop2020.model.v1.user.Cart;
10
import in.shop2020.model.v1.user.Line;
10
import in.shop2020.model.v1.user.Line;
11
import in.shop2020.model.v1.user.ShoppingCartException;
11
import in.shop2020.model.v1.user.ShoppingCartException;
12
import in.shop2020.model.v1.user.UserContextService;
12
import in.shop2020.model.v1.user.UserContextService;
-
 
13
import in.shop2020.serving.interceptors.UserInterceptor;
13
import in.shop2020.serving.services.ContentServingService;
14
import in.shop2020.serving.services.ContentServingService;
14
import in.shop2020.serving.utils.FormattingUtils;
15
import in.shop2020.serving.utils.FormattingUtils;
15
import in.shop2020.serving.utils.SnippetType;
16
import in.shop2020.serving.utils.SnippetType;
16
import in.shop2020.thrift.clients.CatalogClient;
17
import in.shop2020.thrift.clients.CatalogClient;
17
import in.shop2020.thrift.clients.UserClient;
18
import in.shop2020.thrift.clients.UserClient;
Line 83... Line 84...
83
		long cartId = userinfo.getCartId();
84
		long cartId = userinfo.getCartId();
84
 
85
 
85
		if(cartId != -1){
86
		if(cartId != -1){
86
			try {
87
			try {
87
				UserContextService.Client userClient = (new UserClient()).getClient();
88
				UserContextService.Client userClient = (new UserClient()).getClient();
-
 
89
				String cc = null; 
-
 
90
				if(userinfo.isPrivateDealUser() && !cookiesMap.containsKey(UserInterceptor.DEAL_COUPON_REMOVED)) {
-
 
91
					cc="saholicdeals";
-
 
92
				}
88
				List<String> cartResponse  = userClient.validateCart(cartId, sourceId);
93
				List<String> cartResponse  = userClient.validateCartWithDealerCoupon(cartId, cartId, cc);
89
				errorMsg = cartResponse.get(0);
94
				errorMsg = cartResponse.get(0);
90
				log.info("Cart Change/EMI Message rcvd from the service is:" + errorMsg);
95
				log.info("Cart Change/EMI Message rcvd from the service is:" + errorMsg);
91
				if(cartResponse.get(1)!=null & !cartResponse.get(1).equals("")){
96
				if(cartResponse.get(1)!=null & !cartResponse.get(1).equals("")){
92
					addActionMessage(cartResponse.get(1));
97
					addActionMessage(cartResponse.get(1));
93
				}
98
				}