| Line 160... |
Line 160... |
| 160 |
linepojo.setInsuranceAmount(line.getInsuranceAmount());
|
160 |
linepojo.setInsuranceAmount(line.getInsuranceAmount());
|
| 161 |
linepojo.setInsurer(line.getInsurer());
|
161 |
linepojo.setInsurer(line.getInsurer());
|
| 162 |
linepojo.setTheftInsuranceAvailable(catalogClient.getPrefferedInsurerForItem(line.getItemId(), InsurerType.DEVICE)>0);
|
162 |
linepojo.setTheftInsuranceAvailable(catalogClient.getPrefferedInsurerForItem(line.getItemId(), InsurerType.DEVICE)>0);
|
| 163 |
linepojo.setQuantity(line.getQuantity());
|
163 |
linepojo.setQuantity(line.getQuantity());
|
| 164 |
linepojo.setLogisticsInfo(in.shop2020.mobileapi.serving.services.LogisticsService.getLogisticsInfo(line.getItemId(), pincode));
|
164 |
linepojo.setLogisticsInfo(in.shop2020.mobileapi.serving.services.LogisticsService.getLogisticsInfo(line.getItemId(), pincode));
|
| - |
|
165 |
if(linepojo.getLogisticsInfo().getBusinessDays()==-1){
|
| - |
|
166 |
cartPojo.setLocationServiceable(false);
|
| - |
|
167 |
cartPojo.setLocationServiceableMessage("Location not serviceable. Please specify a different address");
|
| 165 |
|
168 |
}
|
| 166 |
try {
|
169 |
try {
|
| 167 |
CatalogClient csc = new CatalogClient();
|
170 |
CatalogClient csc = new CatalogClient();
|
| 168 |
Item item = csc.getClient().getItem(line.getItemId());
|
171 |
Item item = csc.getClient().getItem(line.getItemId());
|
| 169 |
linepojo.setName(item.getBrand() + " " + item.getModelName() + " " + item.getModelNumber());
|
172 |
linepojo.setName(item.getBrand() + " " + item.getModelName() + " " + item.getModelNumber());
|
| 170 |
linepojo.setColor(item.getColor());
|
173 |
linepojo.setColor(item.getColor());
|