| Line 236... |
Line 236... |
| 236 |
logisticinfo = logisticsClient.getLogisticsEstimation(entry.getValue().getId(),"110001",DeliveryType.COD);
|
236 |
logisticinfo = logisticsClient.getLogisticsEstimation(entry.getValue().getId(),"110001",DeliveryType.COD);
|
| 237 |
} catch (LogisticsServiceException e) {
|
237 |
} catch (LogisticsServiceException e) {
|
| 238 |
e.printStackTrace();
|
238 |
e.printStackTrace();
|
| 239 |
continue;
|
239 |
continue;
|
| 240 |
}
|
240 |
}
|
| - |
|
241 |
catch (TTransportException e) {
|
| - |
|
242 |
logisticsServiceClient = new LogisticsClient("logistics_service_prod_server_host","logistics_service_prod_server_port");
|
| - |
|
243 |
logisticsClient = logisticsServiceClient.getClient();
|
| - |
|
244 |
}
|
| 241 |
jsonRequest.append("{\"skuId\":"+"\""+entry.getValue().getSkuAtflipkart()+
|
245 |
jsonRequest.append("{\"skuId\":"+"\""+entry.getValue().getSkuAtflipkart()+
|
| 242 |
"\","+"\"attributeValues\""+":"+
|
246 |
"\","+"\"attributeValues\""+":"+
|
| 243 |
"{\"procurement_sla\""+":"+"\""+logisticinfo.getShippingTime()+
|
247 |
"{\"procurement_sla\""+":"+"\""+logisticinfo.getShippingTime()+
|
| 244 |
"\","+"\"stock_count\""+":"+"\""+stock+"\""+"}}");
|
248 |
"\","+"\"stock_count\""+":"+"\""+stock+"\""+"}}");
|
| 245 |
item = aliveItemsMap.get(entry.getValue().getId());
|
249 |
item = aliveItemsMap.get(entry.getValue().getId());
|