use of com.salesmanager.shop.populator.catalog.ReadableProductPricePopulator in project shopizer by shopizer-ecommerce.
the class ReadableInventoryMapper method prices.
private List<ReadableProductPrice> prices(ProductAvailability source, MerchantStore store, Language language) throws ConversionException {
ReadableProductPricePopulator populator = null;
List<ReadableProductPrice> prices = new ArrayList<ReadableProductPrice>();
for (ProductPrice price : source.getPrices()) {
populator = new ReadableProductPricePopulator();
populator.setPricingService(pricingService);
ReadableProductPrice p = populator.populate(price, new ReadableProductPrice(), store, language);
prices.add(p);
}
return prices;
}
Aggregations