Interface RatePlanService
- All Known Implementing Classes:
DefaultRatePlanService
public interface RatePlanService
Interface to handle operations related to rate plans
-
Method Summary
Modifier and TypeMethodDescriptiongetAppliedGuaranteeAmount(GuaranteeModel guaranteeToApply, BigDecimal roomRatePrice) Return amount to be paid as guarantee, applying the guarantee model on the price.getGuaranteeToApply(AccommodationOrderEntryGroupModel group, Date date) Return the correct guarantee to apply given the order entry group and the date when we want to apply itgetGuaranteeToApply(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 itgetRatePlanForCode(String ratePlanCode) Returns the RatePlanModel for a given code
-
Method Details
-
getGuaranteeToApply
Return the correct guarantee to apply given the order entry group and the date when we want to apply it- Parameters:
group- the groupdate- 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 groupstartingDate- the starting datecurrentDate- the current datedate- the date- Returns:
- guarantee to apply
-
getAppliedGuaranteeAmount
Return amount to be paid as guarantee, applying the guarantee model on the price.- Parameters:
guaranteeToApply- object of GuaranteeModelroomRatePrice- the price on which guarantee is to be applied- Returns:
- guarantee amount
-
getRatePlanForCode
Returns the RatePlanModel for a given code- Parameters:
ratePlanCode- the code of the ratePlan to get- Returns:
- the RatePlanModel corresponding to the given code
-