Subversion Repositories SmartDukaan

Rev

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

Rev 10968 Rev 11526
Line 2... Line 2...
2
 
2
 
3
import in.shop2020.datalogger.EventType;
3
import in.shop2020.datalogger.EventType;
4
import in.shop2020.model.v1.inventory.Warehouse;
4
import in.shop2020.model.v1.inventory.Warehouse;
5
import in.shop2020.model.v1.order.Attribute;
5
import in.shop2020.model.v1.order.Attribute;
6
import in.shop2020.model.v1.order.Order;
6
import in.shop2020.model.v1.order.Order;
-
 
7
import in.shop2020.model.v1.order.OrderSource;
7
import in.shop2020.model.v1.order.TransactionServiceException;
8
import in.shop2020.model.v1.order.TransactionServiceException;
8
import in.shop2020.model.v1.user.Address;
9
import in.shop2020.model.v1.user.Address;
9
import in.shop2020.model.v1.user.Cart;
10
import in.shop2020.model.v1.user.Cart;
10
import in.shop2020.model.v1.user.ShoppingCartException;
11
import in.shop2020.model.v1.user.ShoppingCartException;
11
import in.shop2020.serving.interceptors.TrackingInterceptor;
12
import in.shop2020.serving.interceptors.TrackingInterceptor;
Line 413... Line 414...
413
            try {
414
            try {
414
                firstSrcTime = Long.parseLong(getCookie(TrackingInterceptor.SRC_TIME_COOKIE, false, null));
415
                firstSrcTime = Long.parseLong(getCookie(TrackingInterceptor.SRC_TIME_COOKIE, false, null));
415
            } catch (Exception e) {
416
            } catch (Exception e) {
416
                log.warn("Unable to parse session src time cookie.", e);
417
                log.warn("Unable to parse session src time cookie.", e);
417
            }
418
            }
418
            txnId = userClient.createOrders(currentCartId, sessionSrc, sessionTime, firstSrc, firstSrcTime, currentUserId, emiSchemeId);
419
            txnId = userClient.createOrders(currentCartId, sessionSrc, sessionTime, firstSrc, firstSrcTime, currentUserId, emiSchemeId, OrderSource.WEBSITE.getValue());
419
		} catch (ShoppingCartException e1) {
420
		} catch (ShoppingCartException e1) {
420
			log.error("Error while creating orders from cart.", e1);
421
			log.error("Error while creating orders from cart.", e1);
421
			return false;
422
			return false;
422
		} catch (TException e) {
423
		} catch (TException e) {
423
			log.error("Thrift exception while creating orders from cart.", e);
424
			log.error("Thrift exception while creating orders from cart.", e);