Class RoomStayBooker

java.lang.Object
travel.wink.sdk.booking.model.RoomStayBooker

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-01-26T12:29:20.072836560+07:00[Asia/Bangkok]") public class RoomStayBooker extends Object
All information about the room that was booked.
  • Field Details

  • Constructor Details

    • RoomStayBooker

      public RoomStayBooker()
  • Method Details

    • policy

      public RoomStayBooker policy(PropertyPolicyBooker policy)
    • getPolicy

      @Nonnull @NotNull @Valid public @NotNull @Valid PropertyPolicyBooker getPolicy()
      Get policy
      Returns:
      policy
    • setPolicy

      public void setPolicy(PropertyPolicyBooker policy)
    • room

      public RoomStayBooker room(GuestRoomBooker room)
    • getRoom

      @Nonnull @NotNull @Valid public @NotNull @Valid GuestRoomBooker getRoom()
      Get room
      Returns:
      room
    • setRoom

      public void setRoom(GuestRoomBooker room)
    • rooms

      public RoomStayBooker rooms(Integer rooms)
    • getRooms

      @Nonnull @NotNull public @NotNull Integer getRooms()
      Number of rooms. Always 1 since we switched to creating one booking per room.
      Returns:
      rooms
    • setRooms

      public void setRooms(Integer rooms)
    • bedroomConfiguration

      public RoomStayBooker bedroomConfiguration(BedroomConfigurationBooker bedroomConfiguration)
    • getBedroomConfiguration

      @Nonnull @NotNull @Valid public @NotNull @Valid BedroomConfigurationBooker getBedroomConfiguration()
      Get bedroomConfiguration
      Returns:
      bedroomConfiguration
    • setBedroomConfiguration

      public void setBedroomConfiguration(BedroomConfigurationBooker bedroomConfiguration)
    • adults

      public RoomStayBooker adults(Integer adults)
    • getAdults

      @Nonnull @NotNull public @NotNull Integer getAdults()
      The actual amount of adults as determined by the hotel's policy.
      Returns:
      adults
    • setAdults

      public void setAdults(Integer adults)
    • children

      public RoomStayBooker children(Integer children)
    • getChildren

      @Nonnull @NotNull public @NotNull Integer getChildren()
      The actual amount of children as determined by the hotel's policy.
      Returns:
      children
    • setChildren

      public void setChildren(Integer children)
    • startDate

      public RoomStayBooker startDate(LocalDate startDate)
    • getStartDate

      @Nonnull @NotNull @Valid public @NotNull @Valid LocalDate getStartDate()
      Stay start date
      Returns:
      startDate
    • setStartDate

      public void setStartDate(LocalDate startDate)
    • endDate

      public RoomStayBooker endDate(LocalDate endDate)
    • getEndDate

      @Nonnull @NotNull @Valid public @NotNull @Valid LocalDate getEndDate()
      Stay end date
      Returns:
      endDate
    • setEndDate

      public void setEndDate(LocalDate endDate)
    • price

      public RoomStayBooker price(StayRateBooker price)
    • getPrice

      @Nonnull @NotNull @Valid public @NotNull @Valid StayRateBooker getPrice()
      Get price
      Returns:
      price
    • setPrice

      public void setPrice(StayRateBooker price)
    • roomRateIdentifier

      public RoomStayBooker roomRateIdentifier(UUID roomRateIdentifier)
    • getRoomRateIdentifier

      @Nonnull @NotNull @Valid public @NotNull @Valid UUID getRoomRateIdentifier()
      Master rate identifier
      Returns:
      roomRateIdentifier
    • setRoomRateIdentifier

      public void setRoomRateIdentifier(UUID roomRateIdentifier)
    • roomRateInternalName

      public RoomStayBooker roomRateInternalName(String roomRateInternalName)
    • getRoomRateInternalName

      @Nonnull @NotNull public @NotNull String getRoomRateInternalName()
      Master rate internal name
      Returns:
      roomRateInternalName
    • setRoomRateInternalName

      public void setRoomRateInternalName(String roomRateInternalName)
    • ratePlan

      public RoomStayBooker ratePlan(RatePlanBooker ratePlan)
    • getRatePlan

      @Nonnull @NotNull @Valid public @NotNull @Valid RatePlanBooker getRatePlan()
      Get ratePlan
      Returns:
      ratePlan
    • setRatePlan

      public void setRatePlan(RatePlanBooker ratePlan)
    • perkTypes

      public RoomStayBooker perkTypes(List<RoomStayBooker.PerkTypesEnum> perkTypes)
    • addPerkTypesItem

      public RoomStayBooker addPerkTypesItem(RoomStayBooker.PerkTypesEnum perkTypesItem)
    • getPerkTypes

      @Nullable public List<RoomStayBooker.PerkTypesEnum> getPerkTypes()
      List of perks that came with the master rate
      Returns:
      perkTypes
    • setPerkTypes

      public void setPerkTypes(List<RoomStayBooker.PerkTypesEnum> perkTypes)
    • extraCharges

      public RoomStayBooker extraCharges(ExtraChargesBooker extraCharges)
    • getExtraCharges

      @Nonnull @NotNull @Valid public @NotNull @Valid ExtraChargesBooker getExtraCharges()
      Get extraCharges
      Returns:
      extraCharges
    • setExtraCharges

      public void setExtraCharges(ExtraChargesBooker extraCharges)
    • activeCancellationPolicy

      public RoomStayBooker activeCancellationPolicy(CancellationPolicyBooker activeCancellationPolicy)
    • getActiveCancellationPolicy

      @Nonnull @NotNull @Valid public @NotNull @Valid CancellationPolicyBooker getActiveCancellationPolicy()
      Get activeCancellationPolicy
      Returns:
      activeCancellationPolicy
    • setActiveCancellationPolicy

      public void setActiveCancellationPolicy(CancellationPolicyBooker activeCancellationPolicy)
    • cancellableByHotel

      public RoomStayBooker cancellableByHotel(Boolean cancellableByHotel)
    • getCancellableByHotel

      @Nullable public Boolean getCancellableByHotel()
      Get cancellableByHotel
      Returns:
      cancellableByHotel
    • setCancellableByHotel

      public void setCancellableByHotel(Boolean cancellableByHotel)
    • cancellableWithPotentialCharge

      public RoomStayBooker cancellableWithPotentialCharge(Boolean cancellableWithPotentialCharge)
    • getCancellableWithPotentialCharge

      @Nullable public Boolean getCancellableWithPotentialCharge()
      Get cancellableWithPotentialCharge
      Returns:
      cancellableWithPotentialCharge
    • setCancellableWithPotentialCharge

      public void setCancellableWithPotentialCharge(Boolean cancellableWithPotentialCharge)
    • cancellable

      public RoomStayBooker cancellable(Boolean cancellable)
    • getCancellable

      @Nullable public Boolean getCancellable()
      Get cancellable
      Returns:
      cancellable
    • setCancellable

      public void setCancellable(Boolean cancellable)
    • roomNights

      public RoomStayBooker roomNights(Long roomNights)
    • getRoomNights

      @Nullable public Long getRoomNights()
      Total number of nights the guest stays at the hotel. -1 indicates there is an error.
      Returns:
      roomNights
    • setRoomNights

      public void setRoomNights(Long roomNights)
    • guests

      public RoomStayBooker guests(Integer guests)
    • getGuests

      @Nullable public Integer getGuests()
      Get guests
      Returns:
      guests
    • setGuests

      public void setGuests(Integer guests)
    • sourceTotal

      public RoomStayBooker sourceTotal(CustomMonetaryAmount sourceTotal)
    • getSourceTotal

      @Nullable @Valid public @Valid CustomMonetaryAmount getSourceTotal()
      Get sourceTotal
      Returns:
      sourceTotal
    • setSourceTotal

      public void setSourceTotal(CustomMonetaryAmount sourceTotal)
    • rateSource

      public RoomStayBooker rateSource(String rateSource)
    • getRateSource

      @Nullable public String getRateSource()
      Get rateSource
      Returns:
      rateSource
    • setRateSource

      public void setRateSource(String rateSource)
    • userSpecifiedCurrencyTotal

      public RoomStayBooker userSpecifiedCurrencyTotal(CustomMonetaryAmount userSpecifiedCurrencyTotal)
    • getUserSpecifiedCurrencyTotal

      @Nullable @Valid public @Valid CustomMonetaryAmount getUserSpecifiedCurrencyTotal()
      Get userSpecifiedCurrencyTotal
      Returns:
      userSpecifiedCurrencyTotal
    • setUserSpecifiedCurrencyTotal

      public void setUserSpecifiedCurrencyTotal(CustomMonetaryAmount userSpecifiedCurrencyTotal)
    • internalTotal

      public RoomStayBooker internalTotal(CustomMonetaryAmount internalTotal)
    • getInternalTotal

      @Nullable @Valid public @Valid CustomMonetaryAmount getInternalTotal()
      Get internalTotal
      Returns:
      internalTotal
    • setInternalTotal

      public void setInternalTotal(CustomMonetaryAmount internalTotal)
    • 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