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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-09-08T16:32:00.316996+07:00[Asia/Bangkok]") public class Rate extends Object
Rate
  • Field Details

  • Constructor Details

    • Rate

      public Rate()
  • Method Details

    • identifier

      public Rate identifier(UUID identifier)
    • getIdentifier

      @Nullable @Valid public @Valid UUID getIdentifier()
      Unique record identifier.
      Returns:
      identifier
    • setIdentifier

      public void setIdentifier(UUID identifier)
    • hotelIdentifier

      public Rate hotelIdentifier(UUID hotelIdentifier)
    • getHotelIdentifier

      @Nullable @Valid public @Valid UUID getHotelIdentifier()
      Owner of daily rate.
      Returns:
      hotelIdentifier
    • setHotelIdentifier

      public void setHotelIdentifier(UUID hotelIdentifier)
    • rateSource

      public Rate rateSource(Rate.RateSourceEnum rateSource)
    • getRateSource

      @Nonnull @NotNull public @NotNull Rate.RateSourceEnum getRateSource()
      Indicate where this rate originated from. Leave as TRAVELIKO unless you are a channel manager and responsible for the property's rates externally of this payment.
      Returns:
      rateSource
    • setRateSource

      public void setRateSource(Rate.RateSourceEnum rateSource)
    • rate

      public Rate rate(MasterRateRate rate)
    • getRate

      @Nullable @Valid public @Valid MasterRateRate getRate()
      Get rate
      Returns:
      rate
    • setRate

      public void setRate(MasterRateRate rate)
    • master

      public Rate master(Boolean master)
    • getMaster

      @Nonnull @NotNull public @NotNull Boolean getMaster()
      This flag indicates whether this rate is available for this date.
      Returns:
      master
    • setMaster

      public void setMaster(Boolean master)
    • closedOnArrival

      public Rate closedOnArrival(Boolean closedOnArrival)
    • getClosedOnArrival

      @Nonnull @NotNull public @NotNull Boolean getClosedOnArrival()
      This flag indicates whether a guest can arrive at the property on this date.
      Returns:
      closedOnArrival
    • setClosedOnArrival

      public void setClosedOnArrival(Boolean closedOnArrival)
    • closedOnDeparture

      public Rate closedOnDeparture(Boolean closedOnDeparture)
    • getClosedOnDeparture

      @Nonnull @NotNull public @NotNull Boolean getClosedOnDeparture()
      This flag indicates whether a guest can leave the property on this date.
      Returns:
      closedOnDeparture
    • setClosedOnDeparture

      public void setClosedOnDeparture(Boolean closedOnDeparture)
    • date

      public Rate date(LocalDate date)
    • getDate

      @Nonnull @NotNull @Valid public @NotNull @Valid LocalDate getDate()
      The date this rate is applicable for.
      Returns:
      date
    • setDate

      public void setDate(LocalDate date)
    • quantity

      public Rate quantity(Integer quantity)
    • getQuantity

      @Nonnull @NotNull public @NotNull Integer getQuantity()
      Amount of rooms available for this date.
      Returns:
      quantity
    • setQuantity

      public void setQuantity(Integer quantity)
    • minOccupancy

      public Rate minOccupancy(Integer minOccupancy)
    • getMinOccupancy

      @Nonnull @NotNull @Min(1L) public @NotNull @Min(1L) Integer getMinOccupancy()
      Minimum number of guests allowed in a room type. minimum: 1
      Returns:
      minOccupancy
    • setMinOccupancy

      public void setMinOccupancy(Integer minOccupancy)
    • maxOccupancy

      public Rate maxOccupancy(Integer maxOccupancy)
    • getMaxOccupancy

      @Nonnull @NotNull @Min(1L) public @NotNull @Min(1L) Integer getMaxOccupancy()
      Maximum number of guest allowed in a room type. minimum: 1
      Returns:
      maxOccupancy
    • setMaxOccupancy

      public void setMaxOccupancy(Integer maxOccupancy)
    • maxChildOccupancy

      public Rate maxChildOccupancy(Integer maxChildOccupancy)
    • getMaxChildOccupancy

      @Nonnull @NotNull @Min(0L) public @NotNull @Min(0L) Integer getMaxChildOccupancy()
      Maximum number of children allowed in a room type. minimum: 0
      Returns:
      maxChildOccupancy
    • setMaxChildOccupancy

      public void setMaxChildOccupancy(Integer maxChildOccupancy)
    • maxAdultOccupancy

      public Rate maxAdultOccupancy(Integer maxAdultOccupancy)
    • getMaxAdultOccupancy

      @Nonnull @NotNull @Min(1L) public @NotNull @Min(1L) Integer getMaxAdultOccupancy()
      Maximum number of adults allowed in a room type. minimum: 1
      Returns:
      maxAdultOccupancy
    • setMaxAdultOccupancy

      public void setMaxAdultOccupancy(Integer maxAdultOccupancy)
    • includedAdultOccupancy

      public Rate includedAdultOccupancy(Integer includedAdultOccupancy)
    • getIncludedAdultOccupancy

      @Nonnull @NotNull @Min(0L) public @NotNull @Min(0L) Integer getIncludedAdultOccupancy()
      The number of pax the room price was meant for minimum: 0
      Returns:
      includedAdultOccupancy
    • setIncludedAdultOccupancy

      public void setIncludedAdultOccupancy(Integer includedAdultOccupancy)
    • includedChildOccupancy

      public Rate includedChildOccupancy(Integer includedChildOccupancy)
    • getIncludedChildOccupancy

      @Nonnull @NotNull @Min(0L) public @NotNull @Min(0L) Integer getIncludedChildOccupancy()
      The number of children the room price was meant for minimum: 0
      Returns:
      includedChildOccupancy
    • setIncludedChildOccupancy

      public void setIncludedChildOccupancy(Integer includedChildOccupancy)
    • minLengthOfStay

      public Rate minLengthOfStay(Integer minLengthOfStay)
    • getMinLengthOfStay

      @Nullable public Integer getMinLengthOfStay()
      Control the minimum length of stay at the day-level. This means that a guest arriving within this date range is required to stay at least these number of days in order to get this rate. Leave empty if you don't want to update this property.
      Returns:
      minLengthOfStay
    • setMinLengthOfStay

      public void setMinLengthOfStay(Integer minLengthOfStay)
    • maxLengthOfStay

      public Rate maxLengthOfStay(Integer maxLengthOfStay)
    • getMaxLengthOfStay

      @Nullable public Integer getMaxLengthOfStay()
      Control the maximum length of stay at the day-level. This means that a guest arriving within this date range is required to stay no longer than these number of days in order to get this rate. Leave empty if you don't want to update this property.
      Returns:
      maxLengthOfStay
    • setMaxLengthOfStay

      public void setMaxLengthOfStay(Integer maxLengthOfStay)
    • singleOccupancyRateModifier

      public Rate singleOccupancyRateModifier(RateSingleOccupancyRateModifier singleOccupancyRateModifier)
    • getSingleOccupancyRateModifier

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

      public void setSingleOccupancyRateModifier(RateSingleOccupancyRateModifier singleOccupancyRateModifier)
    • extraPaxRateModifier

      public Rate extraPaxRateModifier(RateExtraPaxRateModifier extraPaxRateModifier)
    • getExtraPaxRateModifier

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

      public void setExtraPaxRateModifier(RateExtraPaxRateModifier extraPaxRateModifier)
    • extraChildRateModifier

      public Rate extraChildRateModifier(RateExtraChildRateModifier extraChildRateModifier)
    • getExtraChildRateModifier

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

      public void setExtraChildRateModifier(RateExtraChildRateModifier extraChildRateModifier)
    • available

      public Rate available(Boolean available)
    • getAvailable

      @Nullable public Boolean getAvailable()
      Convenience data point that tells you if there is availability on this day. It tests that quantity is greater than 0, rate amount is valid and master flag is true.
      Returns:
      available
    • setAvailable

      public void setAvailable(Boolean available)
    • masterRateIdentifier

      public Rate masterRateIdentifier(UUID masterRateIdentifier)
    • getMasterRateIdentifier

      @Nonnull @NotNull @Valid public @NotNull @Valid UUID getMasterRateIdentifier()
      Master rate associated with this daily rate.
      Returns:
      masterRateIdentifier
    • setMasterRateIdentifier

      public void setMasterRateIdentifier(UUID masterRateIdentifier)
    • ratePlanIdentifier

      public Rate ratePlanIdentifier(UUID ratePlanIdentifier)
    • getRatePlanIdentifier

      @Nonnull @NotNull @Valid public @NotNull @Valid UUID getRatePlanIdentifier()
      Rate plan associated with this daily rate.
      Returns:
      ratePlanIdentifier
    • setRatePlanIdentifier

      public void setRatePlanIdentifier(UUID ratePlanIdentifier)
    • guestRoomIdentifier

      public Rate guestRoomIdentifier(UUID guestRoomIdentifier)
    • getGuestRoomIdentifier

      @Nonnull @NotNull @Valid public @NotNull @Valid UUID getGuestRoomIdentifier()
      Guest room associated with this daily rate.
      Returns:
      guestRoomIdentifier
    • setGuestRoomIdentifier

      public void setGuestRoomIdentifier(UUID guestRoomIdentifier)
    • 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