| Line 168... |
Line 168... |
| 168 |
for(Line line : cart.getLines()) {
|
168 |
for(Line line : cart.getLines()) {
|
| 169 |
CartLinePojo linepojo = new CartLinePojo();
|
169 |
CartLinePojo linepojo = new CartLinePojo();
|
| 170 |
catalogClient = new CatalogClient().getClient();
|
170 |
catalogClient = new CatalogClient().getClient();
|
| 171 |
Item item = catalogClient.getItem(line.getItemId());
|
171 |
Item item = catalogClient.getItem(line.getItemId());
|
| 172 |
linepojo.setDealText(line.isSetDealText()? line.getDealText() : item.getBestDealText());
|
172 |
linepojo.setDealText(line.isSetDealText()? line.getDealText() : item.getBestDealText());
|
| 173 |
linepojo.setDataProtectionAvailable(getCatalogCleint(catalogClient).getPrefferedInsurerForItem(line.getItemId(), InsurerType.DATA)>0);
|
173 |
//linepojo.setDataProtectionAvailable(getCatalogCleint(catalogClient).getPrefferedInsurerForItem(line.getItemId(), InsurerType.DATA)>0);
|
| 174 |
linepojo.setTheftInsuranceAvailable(getCatalogCleint(catalogClient).getPrefferedInsurerForItem(line.getItemId(), InsurerType.DEVICE)>0);
|
174 |
//linepojo.setTheftInsuranceAvailable(getCatalogCleint(catalogClient).getPrefferedInsurerForItem(line.getItemId(), InsurerType.DEVICE)>0);
|
| 175 |
linepojo.setItemId(line.getItemId());
|
175 |
linepojo.setItemId(line.getItemId());
|
| 176 |
linepojo.setActualPrice(line.getActualPrice());
|
176 |
linepojo.setActualPrice(line.getActualPrice());
|
| 177 |
linepojo.setDataProtectionAmount(line.getDataProtectionAmount());
|
177 |
linepojo.setDataProtectionAmount(line.getDataProtectionAmount());
|
| 178 |
linepojo.setDataProtectionInsurer(line.getDataProtectionInsurer());
|
178 |
linepojo.setDataProtectionInsurer(line.getDataProtectionInsurer());
|
| 179 |
linepojo.setDiscountedPrice(line.getDiscountedPrice());
|
179 |
linepojo.setDiscountedPrice(line.getDiscountedPrice());
|