Class RatePlan

java.lang.Object
travel.wink.sdk.extranet.model.RatePlan

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-11-28T12:49:23.711911876+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(UUID identifier)
    • getIdentifier

      @Nonnull @NotNull @Valid public @NotNull @Valid UUID getIdentifier()
      Rate plan identifier
      Returns:
      identifier
    • setIdentifier

      public void setIdentifier(UUID identifier)
    • hotelIdentifier

      public RatePlan hotelIdentifier(UUID hotelIdentifier)
    • getHotelIdentifier

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

      public void setHotelIdentifier(UUID 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(DowPatternGroup availableDaysOfWeek)
    • getAvailableDaysOfWeek

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

      public void setAvailableDaysOfWeek(DowPatternGroup availableDaysOfWeek)
    • arrivalDaysOfWeek

      public RatePlan arrivalDaysOfWeek(DowPatternGroup arrivalDaysOfWeek)
    • getArrivalDaysOfWeek

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

      public void setArrivalDaysOfWeek(DowPatternGroup arrivalDaysOfWeek)
    • departureDaysOfWeek

      public RatePlan departureDaysOfWeek(DowPatternGroup departureDaysOfWeek)
    • getDepartureDaysOfWeek

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

      public void setDepartureDaysOfWeek(DowPatternGroup departureDaysOfWeek)
    • requiredDaysOfWeek

      public RatePlan requiredDaysOfWeek(DowPatternGroup requiredDaysOfWeek)
    • getRequiredDaysOfWeek

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

      public void setRequiredDaysOfWeek(DowPatternGroup requiredDaysOfWeek)
    • earlyCheckInCharge

      public RatePlan earlyCheckInCharge(VariableCharge earlyCheckInCharge)
    • getEarlyCheckInCharge

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

      public void setEarlyCheckInCharge(VariableCharge earlyCheckInCharge)
    • lateCheckOutCharge

      public RatePlan lateCheckOutCharge(VariableCharge lateCheckOutCharge)
    • getLateCheckOutCharge

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

      public void setLateCheckOutCharge(VariableCharge 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(VariableCharge singleOccupancyRateModifier)
    • getSingleOccupancyRateModifier

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

      public void setSingleOccupancyRateModifier(VariableCharge singleOccupancyRateModifier)
    • extraPaxRateModifier

      public RatePlan extraPaxRateModifier(VariableCharge extraPaxRateModifier)
    • getExtraPaxRateModifier

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

      public void setExtraPaxRateModifier(VariableCharge extraPaxRateModifier)
    • extraChildRateModifier

      public RatePlan extraChildRateModifier(VariableCharge extraChildRateModifier)
    • getExtraChildRateModifier

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

      public void setExtraChildRateModifier(VariableCharge 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