Interface DealBundleTemplateService
- All Known Implementing Classes:
DefaultDealBundleTemplateService
public interface DealBundleTemplateService
DealBundleTemplate Service interface which provides functionality for the DealBundleTemplates.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanabstractOrderIsDeal(AbstractOrderModel abstractOrderModel) Abstract order is deal.getDealBundleTemplateById(String dealBundleTemplateId) Returns the DealBundleTemplateModel corresponding to the given dealBundleTemplateIdbooleanisDealBundleOrder(String orderCode) Checks if an order is a deal: an order is a deal if it is present at least one entry with anAccommodationBundleTemplateModeland at least one entry with aBundleTemplateModel, and if the rootBundle of all the entries is the same.
-
Method Details
-
getDealBundleTemplateById
Returns the DealBundleTemplateModel corresponding to the given dealBundleTemplateId- Parameters:
dealBundleTemplateId- the id of the DealBundleTemplate- Returns:
- the DealBundleTemplateModel corresponding to the given id, null if no DealBundleTemplates are found.
-
isDealBundleOrder
Checks if an order is a deal: an order is a deal if it is present at least one entry with anAccommodationBundleTemplateModeland at least one entry with aBundleTemplateModel, and if the rootBundle of all the entries is the same.- Parameters:
orderCode- as the order code- Returns:
- true if the order is a deal, false otherwise
-
abstractOrderIsDeal
Abstract order is deal.- Parameters:
abstractOrderModel- the abstract order model- Returns:
- true, if successful
-