public class OfferService extends fr.paris.lutece.plugins.stock.service.impl.AbstractService implements IOfferService
Constructor and Description |
---|
OfferService() |
Modifier and Type | Method and Description |
---|---|
Offer |
findById(Integer offerId)
Returns offer
|
List<Offer> |
findByProduct(Integer productId)
List all offers for a product
|
Integer |
getQuantity(Integer offerId)
Return available quantity of offer
|
public List<Offer> findByProduct(Integer productId)
findByProduct
in interface IOfferService
productId
- product to findOffer
public Integer getQuantity(Integer offerId)
getQuantity
in interface IOfferService
offerId
- offer idpublic Offer findById(Integer offerId)
findById
in interface IOfferService
offerId
- id of offerCopyright © 2020 City of Paris. All rights reserved.