Interface CommerceItemService
-
- All Known Implementing Classes:
CommerceItemServiceImpl
public interface CommerceItemService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.math.BigDecimal
calculateTotalPrice(java.util.Collection<CommerceItem> items)
Sums prices of commerce items.java.util.Map<java.lang.String,java.lang.Object>
extractSpecs(SellerSKU sellerSKU)
Extracting specs of sku to list of maps.java.util.List<CommerceItemDTO>
mapItems(java.util.Collection<CommerceItem> items)
Maps items to DTOs.
-
-
-
Method Detail
-
calculateTotalPrice
java.math.BigDecimal calculateTotalPrice(java.util.Collection<CommerceItem> items)
Sums prices of commerce items.- Parameters:
items
- items- Returns:
- sum.
-
mapItems
java.util.List<CommerceItemDTO> mapItems(java.util.Collection<CommerceItem> items)
Maps items to DTOs.- Parameters:
items
- commerce items- Returns:
- list of dto
-
extractSpecs
java.util.Map<java.lang.String,java.lang.Object> extractSpecs(SellerSKU sellerSKU)
Extracting specs of sku to list of maps.- Parameters:
sellerSKU
- sellerSKU- Returns:
- map of specs
-
-