Class RoomStay

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-05-31T13:46:06.807293+07:00[Asia/Bangkok]") public class RoomStay extends Object
All information about the room that was booked.
  • Field Details

  • Constructor Details

    • RoomStay

      public RoomStay()
  • Method Details

    • policy

      public RoomStay policy(PropertyPolicy policy)
    • getPolicy

      @Nullable @Valid public @Valid PropertyPolicy getPolicy()
      Get policy
      Returns:
      policy
    • setPolicy

      public void setPolicy(PropertyPolicy policy)
    • room

      public RoomStay room(GuestRoom room)
    • getRoom

      @Nullable @Valid public @Valid GuestRoom getRoom()
      Get room
      Returns:
      room
    • setRoom

      public void setRoom(GuestRoom room)
    • rooms

      public RoomStay rooms(Integer rooms)
    • getRooms

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

      public void setRooms(Integer rooms)
    • bedType

      public RoomStay bedType(String bedType)
    • getBedType

      @Nullable public String getBedType()
      Supported OTA specification `BED` code. See [OTA reference data](#operation/showAvailableCodesForCategory)
      Returns:
      bedType
    • setBedType

      public void setBedType(String bedType)
    • adults

      public RoomStay adults(Integer adults)
    • getAdults

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

      public void setAdults(Integer adults)
    • children

      public RoomStay children(Integer children)
    • getChildren

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

      public void setChildren(Integer children)
    • startDate

      public RoomStay startDate(LocalDate startDate)
    • getStartDate

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

      public void setStartDate(LocalDate startDate)
    • endDate

      public RoomStay endDate(LocalDate endDate)
    • getEndDate

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

      public void setEndDate(LocalDate endDate)
    • price

      public RoomStay price(StayRate price)
    • getPrice

      @Nullable @Valid public @Valid StayRate getPrice()
      Get price
      Returns:
      price
    • setPrice

      public void setPrice(StayRate price)
    • roomRateIdentifier

      public RoomStay roomRateIdentifier(String roomRateIdentifier)
    • getRoomRateIdentifier

      @Nullable public String getRoomRateIdentifier()
      Master rate identifier
      Returns:
      roomRateIdentifier
    • setRoomRateIdentifier

      public void setRoomRateIdentifier(String roomRateIdentifier)
    • roomRateInternalName

      public RoomStay roomRateInternalName(String roomRateInternalName)
    • getRoomRateInternalName

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

      public void setRoomRateInternalName(String roomRateInternalName)
    • ratePlan

      public RoomStay ratePlan(RatePlan ratePlan)
    • getRatePlan

      @Nullable @Valid public @Valid RatePlan getRatePlan()
      Get ratePlan
      Returns:
      ratePlan
    • setRatePlan

      public void setRatePlan(RatePlan ratePlan)
    • perkTypes

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

      public RoomStay addPerkTypesItem(RoomStay.PerkTypesEnum perkTypesItem)
    • getPerkTypes

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

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

      public RoomStay extraCharges(ExtraCharges extraCharges)
    • getExtraCharges

      @Nullable @Valid public @Valid ExtraCharges getExtraCharges()
      Get extraCharges
      Returns:
      extraCharges
    • setExtraCharges

      public void setExtraCharges(ExtraCharges extraCharges)
    • activeCancellationPolicy

      public RoomStay activeCancellationPolicy(CancellationPolicy activeCancellationPolicy)
    • getActiveCancellationPolicy

      @Nullable @Valid public @Valid CancellationPolicy getActiveCancellationPolicy()
      Get activeCancellationPolicy
      Returns:
      activeCancellationPolicy
    • setActiveCancellationPolicy

      public void setActiveCancellationPolicy(CancellationPolicy activeCancellationPolicy)
    • cancellableWithPotentialCharge

      public RoomStay cancellableWithPotentialCharge(Boolean cancellableWithPotentialCharge)
    • getCancellableWithPotentialCharge

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

      public void setCancellableWithPotentialCharge(Boolean cancellableWithPotentialCharge)
    • userSpecifiedCurrencyTotal

      public RoomStay userSpecifiedCurrencyTotal(MoneySetUserSpecifiedCurrencyTotal userSpecifiedCurrencyTotal)
    • getUserSpecifiedCurrencyTotal

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

      public void setUserSpecifiedCurrencyTotal(MoneySetUserSpecifiedCurrencyTotal userSpecifiedCurrencyTotal)
    • cancellable

      public RoomStay cancellable(Boolean cancellable)
    • getCancellable

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

      public void setCancellable(Boolean cancellable)
    • cancellableByHotel

      public RoomStay cancellableByHotel(Boolean cancellableByHotel)
    • getCancellableByHotel

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

      public void setCancellableByHotel(Boolean cancellableByHotel)
    • sourceTotal

      public RoomStay sourceTotal(MoneySetSourceTotal sourceTotal)
    • getSourceTotal

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

      public void setSourceTotal(MoneySetSourceTotal sourceTotal)
    • internalTotal

      public RoomStay internalTotal(MoneySetInternalTotal internalTotal)
    • getInternalTotal

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

      public void setInternalTotal(MoneySetInternalTotal internalTotal)
    • rateSource

      public RoomStay rateSource(RoomStay.RateSourceEnum rateSource)
    • getRateSource

      @Nullable public RoomStay.RateSourceEnum getRateSource()
      Get rateSource
      Returns:
      rateSource
    • setRateSource

      public void setRateSource(RoomStay.RateSourceEnum rateSource)
    • roomNights

      public RoomStay 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 RoomStay guests(Integer guests)
    • getGuests

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

      public void setGuests(Integer guests)
    • 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