| Line 14... |
Line 14... |
| 14 |
import in.shop2020.model.v1.user.Line;
|
14 |
import in.shop2020.model.v1.user.Line;
|
| 15 |
import in.shop2020.model.v1.user.User;
|
15 |
import in.shop2020.model.v1.user.User;
|
| 16 |
import in.shop2020.model.v1.user.UserCommunication;
|
16 |
import in.shop2020.model.v1.user.UserCommunication;
|
| 17 |
import in.shop2020.model.v1.user.UserCommunicationException;
|
17 |
import in.shop2020.model.v1.user.UserCommunicationException;
|
| 18 |
import in.shop2020.model.v1.user.UserContextException;
|
18 |
import in.shop2020.model.v1.user.UserContextException;
|
| 19 |
import in.shop2020.model.v1.user.UserState;
|
- |
|
| 20 |
import in.shop2020.serving.auth.CRMAuthorizingRealm;
|
19 |
import in.shop2020.serving.auth.CRMAuthorizingRealm;
|
| 21 |
import in.shop2020.thrift.clients.CRMClient;
|
20 |
import in.shop2020.thrift.clients.CRMClient;
|
| 22 |
import in.shop2020.thrift.clients.TransactionClient;
|
21 |
import in.shop2020.thrift.clients.TransactionClient;
|
| 23 |
import in.shop2020.thrift.clients.UserClient;
|
22 |
import in.shop2020.thrift.clients.UserClient;
|
| 24 |
import in.shop2020.util.CRMConstants;
|
23 |
import in.shop2020.util.CRMConstants;
|
| Line 284... |
Line 283... |
| 284 |
}
|
283 |
}
|
| 285 |
}
|
284 |
}
|
| 286 |
|
285 |
|
| 287 |
private void loadCartDetails() throws UserContextException, TException {
|
286 |
private void loadCartDetails() throws UserContextException, TException {
|
| 288 |
userContextServiceClient = new UserClient().getClient();
|
287 |
userContextServiceClient = new UserClient().getClient();
|
| 289 |
UserState userState = userContextServiceClient.getUserState(user
|
- |
|
| 290 |
.getUserId());
|
- |
|
| 291 |
lastLogin = new Date(userState.getLastLogin()).toString();
|
288 |
lastLogin = new Date(user.getLastLogin()).toString();
|
| 292 |
Cart cart = null;
|
289 |
Cart cart = null;
|
| 293 |
|
290 |
|
| 294 |
try {
|
291 |
try {
|
| 295 |
cart = userContextServiceClient.getCurrentCart(user.getUserId());
|
292 |
cart = userContextServiceClient.getCurrentCart(user.getUserId());
|
| 296 |
if (cart.getCouponCode() != null) {
|
293 |
if (cart.getCouponCode() != null) {
|