| Line 19... |
Line 19... |
| 19 |
import javax.servlet.http.HttpSession;
|
19 |
import javax.servlet.http.HttpSession;
|
| 20 |
|
20 |
|
| 21 |
import in.shop2020.model.v1.catalog.Amazonlisted;
|
21 |
import in.shop2020.model.v1.catalog.Amazonlisted;
|
| 22 |
import in.shop2020.model.v1.catalog.CatalogServiceException;
|
22 |
import in.shop2020.model.v1.catalog.CatalogServiceException;
|
| 23 |
import in.shop2020.model.v1.catalog.Item;
|
23 |
import in.shop2020.model.v1.catalog.Item;
|
| - |
|
24 |
import in.shop2020.model.v1.inventory.AmazonFbaInventorySnapshot;
|
| 24 |
import in.shop2020.model.v1.inventory.AmazonInventorySnapshot;
|
25 |
import in.shop2020.model.v1.inventory.AmazonInventorySnapshot;
|
| 25 |
import in.shop2020.model.v1.catalog.CatalogService.Client;
|
26 |
import in.shop2020.model.v1.catalog.CatalogService.Client;
|
| 26 |
import in.shop2020.model.v1.inventory.InventoryServiceException;
|
27 |
import in.shop2020.model.v1.inventory.InventoryServiceException;
|
| 27 |
import in.shop2020.model.v1.order.AmazonOrder;
|
28 |
import in.shop2020.model.v1.order.AmazonOrder;
|
| 28 |
import in.shop2020.support.utils.ReportsUtils;
|
29 |
import in.shop2020.support.utils.ReportsUtils;
|
| Line 285... |
Line 286... |
| 285 |
catch (Exception e){
|
286 |
catch (Exception e){
|
| 286 |
return null;
|
287 |
return null;
|
| 287 |
}
|
288 |
}
|
| 288 |
}
|
289 |
}
|
| 289 |
|
290 |
|
| 290 |
public long getFbaInventoryForAmazonItem(String itemId) throws NumberFormatException, TException {
|
291 |
public List<AmazonFbaInventorySnapshot> getFbaInventoryForAmazonItem(String itemId) throws NumberFormatException, TException {
|
| 291 |
InventoryClient inventoryServiceClient = new InventoryClient();
|
292 |
InventoryClient inventoryServiceClient = new InventoryClient();
|
| 292 |
try {
|
293 |
try {
|
| 293 |
return inventoryServiceClient.getClient().getAmazonFbaItemInventory(Long.valueOf(itemId));
|
294 |
return inventoryServiceClient.getClient().getAmazonFbaItemInventory(Long.valueOf(itemId));
|
| 294 |
}
|
295 |
}
|
| 295 |
catch (Exception e){
|
296 |
catch (Exception e){
|
| 296 |
return 0;
|
297 |
return null;
|
| 297 |
}
|
298 |
}
|
| 298 |
}
|
299 |
}
|
| 299 |
|
300 |
|
| 300 |
public Long getTimetoShip(String itemId) throws LogisticsServiceException, TException{
|
301 |
public Long getTimetoShip(String itemId) throws LogisticsServiceException, TException{
|
| 301 |
LogisticsClient logisticsClient = new LogisticsClient();
|
302 |
LogisticsClient logisticsClient = new LogisticsClient();
|