Interface RatePlanService

All Known Implementing Classes:
DefaultRatePlanService

public interface RatePlanService
Interface to handle operations related to rate plans
  • Method Details

    • getGuaranteeToApply

      GuaranteeModel getGuaranteeToApply(AccommodationOrderEntryGroupModel group, Date date)
      Return the correct guarantee to apply given the order entry group and the date when we want to apply it
      Parameters:
      group - the group
      date - the date
      Returns:
      guarantee to apply
    • getGuaranteeToApply

      GuaranteeModel getGuaranteeToApply(AccommodationOrderEntryGroupModel group, Date startingDate, Date currentDate)
      Return the correct guarantee to apply given the order entry group and the date when we want to apply it
      Parameters:
      group - the group
      startingDate - the starting date
      currentDate - the current date
      date - the date
      Returns:
      guarantee to apply
    • getAppliedGuaranteeAmount

      Double getAppliedGuaranteeAmount(GuaranteeModel guaranteeToApply, BigDecimal roomRatePrice)
      Return amount to be paid as guarantee, applying the guarantee model on the price.
      Parameters:
      guaranteeToApply - object of GuaranteeModel
      roomRatePrice - the price on which guarantee is to be applied
      Returns:
      guarantee amount
    • getRatePlanForCode

      RatePlanModel getRatePlanForCode(String ratePlanCode)
      Returns the RatePlanModel for a given code
      Parameters:
      ratePlanCode - the code of the ratePlan to get
      Returns:
      the RatePlanModel corresponding to the given code