Interface DealBundleTemplateService

All Known Implementing Classes:
DefaultDealBundleTemplateService

public interface DealBundleTemplateService
DealBundleTemplate Service interface which provides functionality for the DealBundleTemplates.
  • Method Details

    • getDealBundleTemplateById

      DealBundleTemplateModel getDealBundleTemplateById(String dealBundleTemplateId)
      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

      boolean isDealBundleOrder(String orderCode)
      Checks if an order is a deal: an order is a deal if it is present at least one entry with an AccommodationBundleTemplateModel and at least one entry with a BundleTemplateModel, 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

      boolean abstractOrderIsDeal(AbstractOrderModel abstractOrderModel)
      Abstract order is deal.
      Parameters:
      abstractOrderModel - the abstract order model
      Returns:
      true, if successful