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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactiveCancellationPolicy(CancellationPolicyLightweightBooker activeCancellationPolicy) addPerkTypesItem(PerkLightweightBooker perkTypesItem) bedroomConfiguration(BedroomConfigurationBooker bedroomConfiguration) cancellable(Boolean cancellable) cancellableByHotel(Boolean cancellableByHotel) cancellableWithPotentialCharge(Boolean cancellableWithPotentialCharge) booleanextraCharges(ExtraChargesBooker extraCharges) @NotNull @Valid CancellationPolicyLightweightBookerBased 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@NotNull IntegerThe actual amount of adults as determined by the hotel's policy.@NotNull @Valid BedroomConfigurationBookerDesired bedroom layoutGet cancellableGet cancellableByHotelGet cancellableWithPotentialCharge@NotNull IntegerThe actual amount of children as determined by the hotel's policy.@NotNull @Valid LocalDateStay end date@NotNull @Valid ExtraChargesBookerRate plan-level extra chargesGet guests@Valid CustomMonetaryAmountGet internalTotal@Valid List<@Valid PerkLightweightBooker> List of perks that came with the master rate@NotNull @Valid PropertyPolicyBookerProperty policy information.@NotNull @Valid StayRateBookergetPrice()Price details@NotNull @Valid RoomConfigurationPriceRatePlanBookerRate plan used for this stayGet rateSource@NotNull @Valid GuestRoomLightweightBookergetRoom()Guest room details.Total number of nights the guest stays at the hotel.@NotNull @Valid @Size(min=1) UUIDMaster rate identifier@NotNull @Size(min=1) StringMaster rate internal name@NotNull IntegergetRooms()Number of rooms.@Valid CustomMonetaryAmountGet sourceTotal@NotNull @Valid LocalDateStay start date@Valid CustomMonetaryAmountGet userSpecifiedCurrencyTotalinthashCode()internalTotal(CustomMonetaryAmount internalTotal) perkTypes(List<@Valid PerkLightweightBooker> perkTypes) policy(PropertyPolicyBooker policy) price(StayRateBooker price) ratePlan(RoomConfigurationPriceRatePlanBooker ratePlan) rateSource(String rateSource) roomNights(Long roomNights) roomRateIdentifier(UUID roomRateIdentifier) roomRateInternalName(String roomRateInternalName) voidsetActiveCancellationPolicy(CancellationPolicyLightweightBooker activeCancellationPolicy) voidvoidsetBedroomConfiguration(BedroomConfigurationBooker bedroomConfiguration) voidsetCancellable(Boolean cancellable) voidsetCancellableByHotel(Boolean cancellableByHotel) voidsetCancellableWithPotentialCharge(Boolean cancellableWithPotentialCharge) voidsetChildren(Integer children) voidsetEndDate(LocalDate endDate) voidsetExtraCharges(ExtraChargesBooker extraCharges) voidvoidsetInternalTotal(CustomMonetaryAmount internalTotal) voidsetPerkTypes(List<@Valid PerkLightweightBooker> perkTypes) voidsetPolicy(PropertyPolicyBooker policy) voidsetPrice(StayRateBooker price) voidvoidsetRateSource(String rateSource) voidvoidsetRoomNights(Long roomNights) voidsetRoomRateIdentifier(UUID roomRateIdentifier) voidsetRoomRateInternalName(String roomRateInternalName) voidvoidsetSourceTotal(CustomMonetaryAmount sourceTotal) voidsetStartDate(LocalDate startDate) voidsetUserSpecifiedCurrencyTotal(CustomMonetaryAmount userSpecifiedCurrencyTotal) sourceTotal(CustomMonetaryAmount sourceTotal) toString()userSpecifiedCurrencyTotal(CustomMonetaryAmount userSpecifiedCurrencyTotal)
-
Field Details
-
JSON_PROPERTY_POLICY
- See Also:
-
JSON_PROPERTY_ROOM
- See Also:
-
JSON_PROPERTY_ROOMS
- See Also:
-
JSON_PROPERTY_BEDROOM_CONFIGURATION
- See Also:
-
JSON_PROPERTY_ADULTS
- See Also:
-
JSON_PROPERTY_CHILDREN
- See Also:
-
JSON_PROPERTY_START_DATE
- See Also:
-
JSON_PROPERTY_END_DATE
- See Also:
-
JSON_PROPERTY_PRICE
- See Also:
-
JSON_PROPERTY_ROOM_RATE_IDENTIFIER
- See Also:
-
JSON_PROPERTY_ROOM_RATE_INTERNAL_NAME
- See Also:
-
JSON_PROPERTY_RATE_PLAN
- See Also:
-
JSON_PROPERTY_PERK_TYPES
- See Also:
-
JSON_PROPERTY_EXTRA_CHARGES
- See Also:
-
JSON_PROPERTY_ACTIVE_CANCELLATION_POLICY
- See Also:
-
JSON_PROPERTY_CANCELLABLE
- See Also:
-
JSON_PROPERTY_CANCELLABLE_BY_HOTEL
- See Also:
-
JSON_PROPERTY_CANCELLABLE_WITH_POTENTIAL_CHARGE
- See Also:
-
JSON_PROPERTY_ROOM_NIGHTS
- See Also:
-
JSON_PROPERTY_GUESTS
- See Also:
-
JSON_PROPERTY_RATE_SOURCE
- See Also:
-
JSON_PROPERTY_SOURCE_TOTAL
- See Also:
-
JSON_PROPERTY_USER_SPECIFIED_CURRENCY_TOTAL
- See Also:
-
JSON_PROPERTY_INTERNAL_TOTAL
- See Also:
-
-
Constructor Details
-
RoomStayBooker
public RoomStayBooker()
-
-
Method Details
-
policy
-
getPolicy
Property policy information.- Returns:
- policy
-
setPolicy
-
room
-
getRoom
Guest room details.- Returns:
- room
-
setRoom
-
rooms
-
getRooms
Number of rooms. Always 1 since we switched to creating one booking per room.- Returns:
- rooms
-
setRooms
-
bedroomConfiguration
public RoomStayBooker bedroomConfiguration(@Nonnull BedroomConfigurationBooker bedroomConfiguration) -
getBedroomConfiguration
@Nonnull @NotNull @Valid public @NotNull @Valid BedroomConfigurationBooker getBedroomConfiguration()Desired bedroom layout- Returns:
- bedroomConfiguration
-
setBedroomConfiguration
-
adults
-
getAdults
The actual amount of adults as determined by the hotel's policy.- Returns:
- adults
-
setAdults
-
children
-
getChildren
The actual amount of children as determined by the hotel's policy.- Returns:
- children
-
setChildren
-
startDate
-
getStartDate
Stay start date- Returns:
- startDate
-
setStartDate
-
endDate
-
getEndDate
Stay end date- Returns:
- endDate
-
setEndDate
-
price
-
getPrice
Price details- Returns:
- price
-
setPrice
-
roomRateIdentifier
-
getRoomRateIdentifier
@Nonnull @NotNull @Valid @Size(min=1) public @NotNull @Valid @Size(min=1) UUID getRoomRateIdentifier()Master rate identifier- Returns:
- roomRateIdentifier
-
setRoomRateIdentifier
-
roomRateInternalName
-
getRoomRateInternalName
Master rate internal name- Returns:
- roomRateInternalName
-
setRoomRateInternalName
-
ratePlan
-
getRatePlan
Rate plan used for this stay- Returns:
- ratePlan
-
setRatePlan
-
perkTypes
-
addPerkTypesItem
-
getPerkTypes
List of perks that came with the master rate- Returns:
- perkTypes
-
setPerkTypes
-
extraCharges
-
getExtraCharges
Rate plan-level extra charges- Returns:
- extraCharges
-
setExtraCharges
-
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
-
getCancellable
-
setCancellable
-
cancellableByHotel
-
getCancellableByHotel
-
setCancellableByHotel
-
cancellableWithPotentialCharge
public RoomStayBooker cancellableWithPotentialCharge(@Nullable Boolean cancellableWithPotentialCharge) -
getCancellableWithPotentialCharge
Get cancellableWithPotentialCharge- Returns:
- cancellableWithPotentialCharge
-
setCancellableWithPotentialCharge
-
roomNights
-
getRoomNights
Total number of nights the guest stays at the hotel. -1 indicates there is an error.- Returns:
- roomNights
-
setRoomNights
-
guests
-
getGuests
-
setGuests
-
rateSource
-
getRateSource
-
setRateSource
-
sourceTotal
-
getSourceTotal
Get sourceTotal- Returns:
- sourceTotal
-
setSourceTotal
-
userSpecifiedCurrencyTotal
public RoomStayBooker userSpecifiedCurrencyTotal(@Nullable CustomMonetaryAmount userSpecifiedCurrencyTotal) -
getUserSpecifiedCurrencyTotal
Get userSpecifiedCurrencyTotal- Returns:
- userSpecifiedCurrencyTotal
-
setUserSpecifiedCurrencyTotal
public void setUserSpecifiedCurrencyTotal(@Nullable CustomMonetaryAmount userSpecifiedCurrencyTotal) -
internalTotal
-
getInternalTotal
Get internalTotal- Returns:
- internalTotal
-
setInternalTotal
-
equals
-
hashCode
-
toString
-