@Transactional public class PurchaseRules extends Object implements IPurchaseRules
Constructor and Description |
---|
PurchaseRules() |
Modifier and Type | Method and Description |
---|---|
void |
checkBeforePurchase(IPurchaseDTO purchase,
String sessionId)
Called before to save the purchase.
|
public void checkBeforePurchase(IPurchaseDTO purchase, String sessionId) throws PurchaseOutOfStock, PurchaseSessionExpired
checkBeforePurchase
in interface IPurchaseRules
purchase
- the purchasesessionId
- the session idPurchaseOutOfStock
PurchaseSessionExpired
Copyright © 2020 City of Paris. All rights reserved.