Class RoomStaySupplier

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-04-06T14:58:42.579815638+07:00[Asia/Bangkok]") public class RoomStaySupplier extends Object
All information about the room that was booked.
  • Field Details

  • Constructor Details

    • RoomStaySupplier

      public RoomStaySupplier()
  • Method Details

    • policy

      public RoomStaySupplier policy(PropertyPolicySupplier policy)
    • getPolicy

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

      public void setPolicy(PropertyPolicySupplier policy)
    • room

      public RoomStaySupplier room(GuestRoomSupplier room)
    • getRoom

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

      public void setRoom(GuestRoomSupplier room)
    • rooms

      public RoomStaySupplier 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 RoomStaySupplier bedroomConfiguration(BedroomConfigurationSupplier bedroomConfiguration)
    • getBedroomConfiguration

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

      public void setBedroomConfiguration(BedroomConfigurationSupplier bedroomConfiguration)
    • adults

      public RoomStaySupplier 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 RoomStaySupplier 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 RoomStaySupplier 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 RoomStaySupplier 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 RoomStaySupplier price(StayRateSupplier price)
    • getPrice

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

      public void setPrice(StayRateSupplier price)
    • roomRateIdentifier

      public RoomStaySupplier 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 RoomStaySupplier roomRateInternalName(String roomRateInternalName)
    • getRoomRateInternalName

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

      public void setRoomRateInternalName(String roomRateInternalName)
    • ratePlan

      public RoomStaySupplier ratePlan(RatePlanSupplier ratePlan)
    • getRatePlan

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

      public void setRatePlan(RatePlanSupplier ratePlan)
    • perkTypes

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

      public RoomStaySupplier addPerkTypesItem(RoomStaySupplier.PerkTypesEnum perkTypesItem)
    • getPerkTypes

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

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

      public RoomStaySupplier extraCharges(ExtraChargesSupplier extraCharges)
    • getExtraCharges

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

      public void setExtraCharges(ExtraChargesSupplier extraCharges)
    • activeCancellationPolicy

      public RoomStaySupplier activeCancellationPolicy(CancellationPolicySupplier activeCancellationPolicy)
    • getActiveCancellationPolicy

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

      public void setActiveCancellationPolicy(CancellationPolicySupplier activeCancellationPolicy)
    • rateSource

      public RoomStaySupplier rateSource(String rateSource)
    • getRateSource

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

      public void setRateSource(String rateSource)
    • sourceTotal

      public RoomStaySupplier sourceTotal(MoneysSupplier sourceTotal)
    • getSourceTotal

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

      public void setSourceTotal(MoneysSupplier sourceTotal)
    • userSpecifiedCurrencyTotal

      public RoomStaySupplier userSpecifiedCurrencyTotal(MoneysSupplier userSpecifiedCurrencyTotal)
    • getUserSpecifiedCurrencyTotal

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

      public void setUserSpecifiedCurrencyTotal(MoneysSupplier userSpecifiedCurrencyTotal)
    • internalTotal

      public RoomStaySupplier internalTotal(MoneysSupplier internalTotal)
    • getInternalTotal

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

      public void setInternalTotal(MoneysSupplier internalTotal)
    • roomNights

      public RoomStaySupplier 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)
    • cancellableByHotel

      public RoomStaySupplier cancellableByHotel(Boolean cancellableByHotel)
    • getCancellableByHotel

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

      public void setCancellableByHotel(Boolean cancellableByHotel)
    • cancellableWithPotentialCharge

      public RoomStaySupplier cancellableWithPotentialCharge(Boolean cancellableWithPotentialCharge)
    • getCancellableWithPotentialCharge

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

      public void setCancellableWithPotentialCharge(Boolean cancellableWithPotentialCharge)
    • guests

      public RoomStaySupplier guests(Integer guests)
    • getGuests

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

      public void setGuests(Integer guests)
    • cancellable

      public RoomStaySupplier cancellable(Boolean cancellable)
    • getCancellable

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

      public void setCancellable(Boolean cancellable)
    • 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