| Line 1... |
Line 1... |
| 1 |
package in.shop2020.mobileapi.serving.controllers;
|
1 |
package in.shop2020.mobileapi.serving.controllers;
|
| 2 |
|
2 |
|
| 3 |
import in.shop2020.mobileapi.serving.pojos.NotificationPojo;
|
- |
|
| 4 |
import in.shop2020.mobileapi.serving.pojos.RedirectPojo;
|
3 |
import in.shop2020.mobileapi.serving.pojos.RedirectPojo;
|
| 5 |
import in.shop2020.mobileapi.serving.services.ContentServingService;
|
4 |
import in.shop2020.mobileapi.serving.services.ContentServingService;
|
| 6 |
import in.shop2020.mobileapi.serving.utils.PojoPopulator;
|
5 |
import in.shop2020.mobileapi.serving.utils.PojoPopulator;
|
| 7 |
import in.shop2020.mobileapi.serving.utils.SnippetType;
|
6 |
import in.shop2020.mobileapi.serving.utils.SnippetType;
|
| 8 |
import in.shop2020.model.v1.catalog.CatalogService.Client;
|
7 |
import in.shop2020.model.v1.catalog.CatalogService.Client;
|
| Line 121... |
Line 120... |
| 121 |
UserClient userServiceClient = new UserClient();
|
120 |
UserClient userServiceClient = new UserClient();
|
| 122 |
UserContextService.Client userClient = userServiceClient.getClient();
|
121 |
UserContextService.Client userClient = userServiceClient.getClient();
|
| 123 |
cartMsg = userClient.addItemToCart(id, itemId, 1, -1);
|
122 |
cartMsg = userClient.addItemToCart(id, itemId, 1, -1);
|
| 124 |
if (!("".equals(cartMsg))) {
|
123 |
if (!("".equals(cartMsg))) {
|
| 125 |
String emailId = this.request.getParameter("emailId");
|
124 |
String emailId = this.request.getParameter("emailId");
|
| - |
|
125 |
log.info("this.request.getParameter(\"emailId\")" + this.request.getParameter("emailId"));
|
| 126 |
if(emailId==null || emailId.equals("")){
|
126 |
if(emailId==null || emailId.equals("")){
|
| 127 |
rp.setMessage("Item is currently out of stock");
|
127 |
rp.setMessage("Item is currently out of stock");
|
| 128 |
} else {
|
128 |
} else {
|
| 129 |
try {
|
129 |
try {
|
| 130 |
CatalogClient catalogClientService;
|
130 |
CatalogClient catalogClientService;
|