Class RatePlan

java.lang.Object
travel.wink.sdk.booking.engine.model.RatePlan

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-05-28T13:49:18.655773+07:00[Asia/Bangkok]") public class RatePlan extends Object
An optional rate plan can be applied to the add-on. The rate plan can help to create availability restrictions.
  • Field Details

  • Constructor Details

    • RatePlan

      public RatePlan()
  • Method Details

    • identifier

      public RatePlan identifier(String identifier)
    • getIdentifier

      @Nullable public String getIdentifier()
      Identifier
      Returns:
      identifier
    • setIdentifier

      public void setIdentifier(String identifier)
    • hotelIdentifier

      public RatePlan hotelIdentifier(String hotelIdentifier)
    • getHotelIdentifier

      @Nonnull @NotNull public @NotNull String getHotelIdentifier()
      Hotel Identifier
      Returns:
      hotelIdentifier
    • setHotelIdentifier

      public void setHotelIdentifier(String hotelIdentifier)
    • name

      public RatePlan name(String name)
    • getName

      @Nonnull @NotNull public @NotNull String getName()
      Provides the name of the rate plan.
      Returns:
      name
    • setName

      public void setName(String name)
    • prepaid

      public RatePlan prepaid(Boolean prepaid)
    • getPrepaid

      @Nonnull @NotNull public @NotNull Boolean getPrepaid()
      When true, indicates if the rate is a prepaid rate.
      Returns:
      prepaid
    • setPrepaid

      public void setPrepaid(Boolean prepaid)
    • enabled

      public RatePlan enabled(Boolean enabled)
    • getEnabled

      @Nonnull @NotNull public @NotNull Boolean getEnabled()
      Whether rate plan is active or not.
      Returns:
      enabled
    • setEnabled

      public void setEnabled(Boolean enabled)
    • breakfast

      public RatePlan breakfast(Boolean breakfast)
    • getBreakfast

      @Nonnull @NotNull public @NotNull Boolean getBreakfast()
      When true, indicates breakfast is included.
      Returns:
      breakfast
    • setBreakfast

      public void setBreakfast(Boolean breakfast)
    • brunch

      public RatePlan brunch(Boolean brunch)
    • getBrunch

      @Nonnull @NotNull public @NotNull Boolean getBrunch()
      When true, indicates brunch is included.
      Returns:
      brunch
    • setBrunch

      public void setBrunch(Boolean brunch)
    • lunch

      public RatePlan lunch(Boolean lunch)
    • getLunch

      @Nonnull @NotNull public @NotNull Boolean getLunch()
      When true, indicates lunch is included.
      Returns:
      lunch
    • setLunch

      public void setLunch(Boolean lunch)
    • dinner

      public RatePlan dinner(Boolean dinner)
    • getDinner

      @Nonnull @NotNull public @NotNull Boolean getDinner()
      When true, indicates dinner is included.
      Returns:
      dinner
    • setDinner

      public void setDinner(Boolean dinner)
    • allInclusive

      public RatePlan allInclusive(Boolean allInclusive)
    • getAllInclusive

      @Nonnull @NotNull public @NotNull Boolean getAllInclusive()
      Everything included except alcohol
      Returns:
      allInclusive
    • setAllInclusive

      public void setAllInclusive(Boolean allInclusive)
    • allInclusivePlusAlcohol

      public RatePlan allInclusivePlusAlcohol(Boolean allInclusivePlusAlcohol)
    • getAllInclusivePlusAlcohol

      @Nonnull @NotNull public @NotNull Boolean getAllInclusivePlusAlcohol()
      Everything included with alcohol
      Returns:
      allInclusivePlusAlcohol
    • setAllInclusivePlusAlcohol

      public void setAllInclusivePlusAlcohol(Boolean allInclusivePlusAlcohol)
    • sellStartDate

      public RatePlan sellStartDate(LocalDate sellStartDate)
    • getSellStartDate

      @Nullable @Valid public @Valid LocalDate getSellStartDate()
      Set a start date for when to start selling this rate. When sellStartDate and sellEndDate are set, this rate is only available for sale within that date range.
      Returns:
      sellStartDate
    • setSellStartDate

      public void setSellStartDate(LocalDate sellStartDate)
    • sellEndDate

      public RatePlan sellEndDate(LocalDate sellEndDate)
    • getSellEndDate

      @Nullable @Valid public @Valid LocalDate getSellEndDate()
      Set an end date for when to finish selling this rate. When sellStartDate and sellEndDate are set, this rate is only available for sale within that date range.
      Returns:
      sellEndDate
    • setSellEndDate

      public void setSellEndDate(LocalDate sellEndDate)
    • stayStartDate

      public RatePlan stayStartDate(LocalDate stayStartDate)
    • getStayStartDate

      @Nullable @Valid public @Valid LocalDate getStayStartDate()
      Set a start date for when the guest can visit. When stayStartDate and stayEndDate are set, this rate is only available for stay within that date range.
      Returns:
      stayStartDate
    • setStayStartDate

      public void setStayStartDate(LocalDate stayStartDate)
    • stayEndDate

      public RatePlan stayEndDate(LocalDate stayEndDate)
    • getStayEndDate

      @Nullable @Valid public @Valid LocalDate getStayEndDate()
      Set an end date for when the guest can visit. When stayStartDate and stayEndDate are set, this rate is only available for stay within that date range.
      Returns:
      stayEndDate
    • setStayEndDate

      public void setStayEndDate(LocalDate stayEndDate)
    • loyaltyPointsAccrue

      public RatePlan loyaltyPointsAccrue(Boolean loyaltyPointsAccrue)
    • getLoyaltyPointsAccrue

      @Nullable public Boolean getLoyaltyPointsAccrue()
      Property honors loyalty points with this rate plan.
      Returns:
      loyaltyPointsAccrue
    • setLoyaltyPointsAccrue

      public void setLoyaltyPointsAccrue(Boolean loyaltyPointsAccrue)
    • maxAdvanceBookingOffset

      public RatePlan maxAdvanceBookingOffset(Integer maxAdvanceBookingOffset)
    • getMaxAdvanceBookingOffset

      @Nullable public Integer getMaxAdvanceBookingOffset()
      Maximum days before the arrival date for which this rate plan may be booked.
      Returns:
      maxAdvanceBookingOffset
    • setMaxAdvanceBookingOffset

      public void setMaxAdvanceBookingOffset(Integer maxAdvanceBookingOffset)
    • minAdvanceBookingOffset

      public RatePlan minAdvanceBookingOffset(Integer minAdvanceBookingOffset)
    • getMinAdvanceBookingOffset

      @Nullable public Integer getMinAdvanceBookingOffset()
      Minimum days before the arrival date for which this rate plan may be booked.
      Returns:
      minAdvanceBookingOffset
    • setMinAdvanceBookingOffset

      public void setMinAdvanceBookingOffset(Integer minAdvanceBookingOffset)
    • minTotalOccupancy

      public RatePlan minTotalOccupancy(Integer minTotalOccupancy)
    • getMinTotalOccupancy

      @Nullable public Integer getMinTotalOccupancy()
      Defines the minimum number of total occupants required for this rate plan.
      Returns:
      minTotalOccupancy
    • setMinTotalOccupancy

      public void setMinTotalOccupancy(Integer minTotalOccupancy)
    • maxTotalOccupancy

      public RatePlan maxTotalOccupancy(Integer maxTotalOccupancy)
    • getMaxTotalOccupancy

      @Nullable public Integer getMaxTotalOccupancy()
      Defines the maximum number of total occupants required for this rate plan.
      Returns:
      maxTotalOccupancy
    • setMaxTotalOccupancy

      public void setMaxTotalOccupancy(Integer maxTotalOccupancy)
    • minLOS

      public RatePlan minLOS(Integer minLOS)
    • getMinLOS

      @Nullable public Integer getMinLOS()
      Indicates the minimum length of stay required for this rate plan.
      Returns:
      minLOS
    • setMinLOS

      public void setMinLOS(Integer minLOS)
    • maxLOS

      public RatePlan maxLOS(Integer maxLOS)
    • getMaxLOS

      @Nullable public Integer getMaxLOS()
      Indicates the maximum length of stay.
      Returns:
      maxLOS
    • setMaxLOS

      public void setMaxLOS(Integer maxLOS)
    • minAge

      public RatePlan minAge(Integer minAge)
    • getMinAge

      @Nullable public Integer getMinAge()
      The minimum age to qualify for this rate plan.
      Returns:
      minAge
    • setMinAge

      public void setMinAge(Integer minAge)
    • maxAge

      public RatePlan maxAge(Integer maxAge)
    • getMaxAge

      @Nullable public Integer getMaxAge()
      The maximum age to qualify for this rate plan.
      Returns:
      maxAge
    • setMaxAge

      public void setMaxAge(Integer maxAge)
    • ratePlanLevelFees

      public RatePlan ratePlanLevelFees(List<RatePlanLevelFee> ratePlanLevelFees)
    • addRatePlanLevelFeesItem

      public RatePlan addRatePlanLevelFeesItem(RatePlanLevelFee ratePlanLevelFeesItem)
    • getRatePlanLevelFees

      @Nullable @Valid public @Valid List<RatePlanLevelFee> getRatePlanLevelFees()
      This can be a one-time fee such as a cleaning fee
      Returns:
      ratePlanLevelFees
    • setRatePlanLevelFees

      public void setRatePlanLevelFees(List<RatePlanLevelFee> ratePlanLevelFees)
    • availableDaysOfWeek

      public RatePlan availableDaysOfWeek(RatePlanAvailableDaysOfWeek availableDaysOfWeek)
    • getAvailableDaysOfWeek

      @Nullable @Valid public @Valid RatePlanAvailableDaysOfWeek getAvailableDaysOfWeek()
      Get availableDaysOfWeek
      Returns:
      availableDaysOfWeek
    • setAvailableDaysOfWeek

      public void setAvailableDaysOfWeek(RatePlanAvailableDaysOfWeek availableDaysOfWeek)
    • arrivalDaysOfWeek

      public RatePlan arrivalDaysOfWeek(RatePlanArrivalDaysOfWeek arrivalDaysOfWeek)
    • getArrivalDaysOfWeek

      @Nullable @Valid public @Valid RatePlanArrivalDaysOfWeek getArrivalDaysOfWeek()
      Get arrivalDaysOfWeek
      Returns:
      arrivalDaysOfWeek
    • setArrivalDaysOfWeek

      public void setArrivalDaysOfWeek(RatePlanArrivalDaysOfWeek arrivalDaysOfWeek)
    • departureDaysOfWeek

      public RatePlan departureDaysOfWeek(RatePlanDepartureDaysOfWeek departureDaysOfWeek)
    • getDepartureDaysOfWeek

      @Nullable @Valid public @Valid RatePlanDepartureDaysOfWeek getDepartureDaysOfWeek()
      Get departureDaysOfWeek
      Returns:
      departureDaysOfWeek
    • setDepartureDaysOfWeek

      public void setDepartureDaysOfWeek(RatePlanDepartureDaysOfWeek departureDaysOfWeek)
    • requiredDaysOfWeek

      public RatePlan requiredDaysOfWeek(RatePlanRequiredDaysOfWeek requiredDaysOfWeek)
    • getRequiredDaysOfWeek

      @Nullable @Valid public @Valid RatePlanRequiredDaysOfWeek getRequiredDaysOfWeek()
      Get requiredDaysOfWeek
      Returns:
      requiredDaysOfWeek
    • setRequiredDaysOfWeek

      public void setRequiredDaysOfWeek(RatePlanRequiredDaysOfWeek requiredDaysOfWeek)
    • earlyCheckInCharge

      public RatePlan earlyCheckInCharge(RatePlanEarlyCheckInCharge earlyCheckInCharge)
    • getEarlyCheckInCharge

      @Nullable @Valid public @Valid RatePlanEarlyCheckInCharge getEarlyCheckInCharge()
      Get earlyCheckInCharge
      Returns:
      earlyCheckInCharge
    • setEarlyCheckInCharge

      public void setEarlyCheckInCharge(RatePlanEarlyCheckInCharge earlyCheckInCharge)
    • lateCheckOutCharge

      public RatePlan lateCheckOutCharge(RatePlanLateCheckOutCharge lateCheckOutCharge)
    • getLateCheckOutCharge

      @Nullable @Valid public @Valid RatePlanLateCheckOutCharge getLateCheckOutCharge()
      Get lateCheckOutCharge
      Returns:
      lateCheckOutCharge
    • setLateCheckOutCharge

      public void setLateCheckOutCharge(RatePlanLateCheckOutCharge lateCheckOutCharge)
    • cancellationPolicyIdentifier

      public RatePlan cancellationPolicyIdentifier(String cancellationPolicyIdentifier)
    • getCancellationPolicyIdentifier

      @Nonnull @NotNull public @NotNull String getCancellationPolicyIdentifier()
      The cancellation policy for this rate plan.
      Returns:
      cancellationPolicyIdentifier
    • setCancellationPolicyIdentifier

      public void setCancellationPolicyIdentifier(String cancellationPolicyIdentifier)
    • cancellationPolicy

      public RatePlan cancellationPolicy(CancellationPolicy cancellationPolicy)
    • getCancellationPolicy

      @Nullable @Valid public @Valid CancellationPolicy getCancellationPolicy()
      Get cancellationPolicy
      Returns:
      cancellationPolicy
    • setCancellationPolicy

      public void setCancellationPolicy(CancellationPolicy cancellationPolicy)
    • cancellationPolicyExceptions

      public RatePlan cancellationPolicyExceptions(CancellationPolicyExceptions cancellationPolicyExceptions)
    • getCancellationPolicyExceptions

      @Nullable @Valid public @Valid CancellationPolicyExceptions getCancellationPolicyExceptions()
      Get cancellationPolicyExceptions
      Returns:
      cancellationPolicyExceptions
    • setCancellationPolicyExceptions

      public void setCancellationPolicyExceptions(CancellationPolicyExceptions cancellationPolicyExceptions)
    • singleOccupancyRateModifier

      public RatePlan singleOccupancyRateModifier(RatePlanSingleOccupancyRateModifier singleOccupancyRateModifier)
    • getSingleOccupancyRateModifier

      @Nullable @Valid public @Valid RatePlanSingleOccupancyRateModifier getSingleOccupancyRateModifier()
      Get singleOccupancyRateModifier
      Returns:
      singleOccupancyRateModifier
    • setSingleOccupancyRateModifier

      public void setSingleOccupancyRateModifier(RatePlanSingleOccupancyRateModifier singleOccupancyRateModifier)
    • extraPaxRateModifier

      public RatePlan extraPaxRateModifier(RatePlanExtraPaxRateModifier extraPaxRateModifier)
    • getExtraPaxRateModifier

      @Nullable @Valid public @Valid RatePlanExtraPaxRateModifier getExtraPaxRateModifier()
      Get extraPaxRateModifier
      Returns:
      extraPaxRateModifier
    • setExtraPaxRateModifier

      public void setExtraPaxRateModifier(RatePlanExtraPaxRateModifier extraPaxRateModifier)
    • extraChildRateModifier

      public RatePlan extraChildRateModifier(RatePlanExtraChildRateModifier extraChildRateModifier)
    • getExtraChildRateModifier

      @Nullable @Valid public @Valid RatePlanExtraChildRateModifier getExtraChildRateModifier()
      Get extraChildRateModifier
      Returns:
      extraChildRateModifier
    • setExtraChildRateModifier

      public void setExtraChildRateModifier(RatePlanExtraChildRateModifier extraChildRateModifier)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object