Class RoomStayBooker

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-06-26T20:16:53.154776164+07:00[Asia/Bangkok]", comments="Generator version: 7.13.0") public class RoomStayBooker extends Object
RoomStayBooker
  • Field Details

  • Constructor Details

    • RoomStayBooker

      public RoomStayBooker()
  • Method Details

    • policy

      public RoomStayBooker policy(@Nonnull PropertyPolicyBooker policy)
    • getPolicy

      @Nonnull @NotNull @Valid public @NotNull @Valid PropertyPolicyBooker getPolicy()
      Property policy information.
      Returns:
      policy
    • setPolicy

      public void setPolicy(@Nonnull PropertyPolicyBooker policy)
    • room

      public RoomStayBooker room(@Nonnull GuestRoomLightweightBooker room)
    • getRoom

      @Nonnull @NotNull @Valid public @NotNull @Valid GuestRoomLightweightBooker getRoom()
      Guest room details.
      Returns:
      room
    • setRoom

      public void setRoom(@Nonnull GuestRoomLightweightBooker room)
    • rooms

      public RoomStayBooker rooms(@Nonnull 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(@Nonnull Integer rooms)
    • bedroomConfiguration

      public RoomStayBooker bedroomConfiguration(@Nonnull BedroomConfigurationBooker bedroomConfiguration)
    • getBedroomConfiguration

      @Nonnull @NotNull @Valid public @NotNull @Valid BedroomConfigurationBooker getBedroomConfiguration()
      Desired bedroom layout
      Returns:
      bedroomConfiguration
    • setBedroomConfiguration

      public void setBedroomConfiguration(@Nonnull BedroomConfigurationBooker bedroomConfiguration)
    • adults

      public RoomStayBooker adults(@Nonnull 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(@Nonnull Integer adults)
    • children

      public RoomStayBooker children(@Nonnull 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(@Nonnull Integer children)
    • startDate

      public RoomStayBooker startDate(@Nonnull LocalDate startDate)
    • getStartDate

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

      public void setStartDate(@Nonnull LocalDate startDate)
    • endDate

      public RoomStayBooker endDate(@Nonnull LocalDate endDate)
    • getEndDate

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

      public void setEndDate(@Nonnull LocalDate endDate)
    • price

      public RoomStayBooker price(@Nonnull StayRateBooker price)
    • getPrice

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

      public void setPrice(@Nonnull StayRateBooker price)
    • roomRateIdentifier

      public RoomStayBooker roomRateIdentifier(@Nonnull UUID roomRateIdentifier)
    • getRoomRateIdentifier

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

      public void setRoomRateIdentifier(@Nonnull UUID roomRateIdentifier)
    • roomRateInternalName

      public RoomStayBooker roomRateInternalName(@Nonnull String roomRateInternalName)
    • getRoomRateInternalName

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

      public void setRoomRateInternalName(@Nonnull String roomRateInternalName)
    • ratePlan

      public RoomStayBooker ratePlan(@Nonnull RoomConfigurationPriceRatePlanBooker ratePlan)
    • getRatePlan

      @Nonnull @NotNull @Valid public @NotNull @Valid RoomConfigurationPriceRatePlanBooker getRatePlan()
      Rate plan used for this stay
      Returns:
      ratePlan
    • setRatePlan

      public void setRatePlan(@Nonnull RoomConfigurationPriceRatePlanBooker ratePlan)
    • perkTypes

      public RoomStayBooker perkTypes(@Nullable List<@Valid PerkLightweightBooker> perkTypes)
    • addPerkTypesItem

      public RoomStayBooker addPerkTypesItem(PerkLightweightBooker perkTypesItem)
    • getPerkTypes

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

      public void setPerkTypes(@Nullable List<@Valid PerkLightweightBooker> perkTypes)
    • extraCharges

      public RoomStayBooker extraCharges(@Nonnull ExtraChargesBooker extraCharges)
    • getExtraCharges

      @Nonnull @NotNull @Valid public @NotNull @Valid ExtraChargesBooker getExtraCharges()
      Rate plan-level extra charges
      Returns:
      extraCharges
    • setExtraCharges

      public void setExtraCharges(@Nonnull ExtraChargesBooker extraCharges)
    • activeCancellationPolicy

      public RoomStayBooker activeCancellationPolicy(@Nonnull CancellationPolicyLightweightBooker activeCancellationPolicy)
    • getActiveCancellationPolicy

      @Nonnull @NotNull @Valid public @NotNull @Valid CancellationPolicyLightweightBooker getActiveCancellationPolicy()
      Based on the itinerary, the cancellation policy could be taken directly from the rate plan or it could be a policy exception also listed on the rate plan
      Returns:
      activeCancellationPolicy
    • setActiveCancellationPolicy

      public void setActiveCancellationPolicy(@Nonnull CancellationPolicyLightweightBooker activeCancellationPolicy)
    • cancellable

      public RoomStayBooker cancellable(@Nullable Boolean cancellable)
    • getCancellable

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

      public void setCancellable(@Nullable Boolean cancellable)
    • cancellableByHotel

      public RoomStayBooker cancellableByHotel(@Nullable Boolean cancellableByHotel)
    • getCancellableByHotel

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

      public void setCancellableByHotel(@Nullable Boolean cancellableByHotel)
    • cancellableWithPotentialCharge

      public RoomStayBooker cancellableWithPotentialCharge(@Nullable Boolean cancellableWithPotentialCharge)
    • getCancellableWithPotentialCharge

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

      public void setCancellableWithPotentialCharge(@Nullable Boolean cancellableWithPotentialCharge)
    • roomNights

      public RoomStayBooker roomNights(@Nullable 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(@Nullable Long roomNights)
    • guests

      public RoomStayBooker guests(@Nullable Integer guests)
    • getGuests

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

      public void setGuests(@Nullable Integer guests)
    • rateSource

      public RoomStayBooker rateSource(@Nullable String rateSource)
    • getRateSource

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

      public void setRateSource(@Nullable String rateSource)
    • sourceTotal

      public RoomStayBooker sourceTotal(@Nullable CustomMonetaryAmount sourceTotal)
    • getSourceTotal

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

      public void setSourceTotal(@Nullable CustomMonetaryAmount sourceTotal)
    • userSpecifiedCurrencyTotal

      public RoomStayBooker userSpecifiedCurrencyTotal(@Nullable CustomMonetaryAmount userSpecifiedCurrencyTotal)
    • getUserSpecifiedCurrencyTotal

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

      public void setUserSpecifiedCurrencyTotal(@Nullable CustomMonetaryAmount userSpecifiedCurrencyTotal)
    • internalTotal

      public RoomStayBooker internalTotal(@Nullable CustomMonetaryAmount internalTotal)
    • getInternalTotal

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

      public void setInternalTotal(@Nullable 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