Package travel.wink.sdk.booking.model
Class RoomStayBooker
java.lang.Object
travel.wink.sdk.booking.model.RoomStayBooker
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-04-12T17:36:27.832341431+07:00[Asia/Bangkok]")
public class RoomStayBooker
extends Object
All information about the room that was booked.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumList of perks that came with the master rate -
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(CancellationPolicyBooker activeCancellationPolicy) addPerkTypesItem(RoomStayBooker.PerkTypesEnum perkTypesItem) bedroomConfiguration(BedroomConfigurationBooker bedroomConfiguration) cancellable(Boolean cancellable) cancellableByHotel(Boolean cancellableByHotel) cancellableWithPotentialCharge(Boolean cancellableWithPotentialCharge) booleanextraCharges(ExtraChargesBooker extraCharges) @NotNull @Valid CancellationPolicyBookerGet activeCancellationPolicy@NotNull IntegerThe actual amount of adults as determined by the hotel's policy.@NotNull @Valid BedroomConfigurationBookerGet bedroomConfigurationGet cancellableGet cancellableByHotelGet cancellableWithPotentialCharge@NotNull IntegerThe actual amount of children as determined by the hotel's policy.@NotNull @Valid LocalDateStay end date@NotNull @Valid ExtraChargesBookerGet extraChargesGet guests@Valid MoneysBookerGet internalTotalList of perks that came with the master rate@NotNull @Valid PropertyPolicyBookerGet policy@NotNull @Valid StayRateBookergetPrice()Get price@NotNull @Valid RatePlanBookerGet ratePlanGet rateSource@NotNull @Valid GuestRoomBookergetRoom()Get roomTotal number of nights the guest stays at the hotel.@NotNull @Valid UUIDMaster rate identifier@NotNull StringMaster rate internal name@NotNull IntegergetRooms()Number of rooms.@Valid MoneysBookerGet sourceTotal@NotNull @Valid LocalDateStay start date@Valid MoneysBookerGet userSpecifiedCurrencyTotalinthashCode()internalTotal(MoneysBooker internalTotal) perkTypes(List<RoomStayBooker.PerkTypesEnum> perkTypes) policy(PropertyPolicyBooker policy) price(StayRateBooker price) ratePlan(RatePlanBooker ratePlan) rateSource(String rateSource) room(GuestRoomBooker room) roomNights(Long roomNights) roomRateIdentifier(UUID roomRateIdentifier) roomRateInternalName(String roomRateInternalName) voidsetActiveCancellationPolicy(CancellationPolicyBooker activeCancellationPolicy) voidvoidsetBedroomConfiguration(BedroomConfigurationBooker bedroomConfiguration) voidsetCancellable(Boolean cancellable) voidsetCancellableByHotel(Boolean cancellableByHotel) voidsetCancellableWithPotentialCharge(Boolean cancellableWithPotentialCharge) voidsetChildren(Integer children) voidsetEndDate(LocalDate endDate) voidsetExtraCharges(ExtraChargesBooker extraCharges) voidvoidsetInternalTotal(MoneysBooker internalTotal) voidsetPerkTypes(List<RoomStayBooker.PerkTypesEnum> perkTypes) voidsetPolicy(PropertyPolicyBooker policy) voidsetPrice(StayRateBooker price) voidsetRatePlan(RatePlanBooker ratePlan) voidsetRateSource(String rateSource) voidsetRoom(GuestRoomBooker room) voidsetRoomNights(Long roomNights) voidsetRoomRateIdentifier(UUID roomRateIdentifier) voidsetRoomRateInternalName(String roomRateInternalName) voidvoidsetSourceTotal(MoneysBooker sourceTotal) voidsetStartDate(LocalDate startDate) voidsetUserSpecifiedCurrencyTotal(MoneysBooker userSpecifiedCurrencyTotal) sourceTotal(MoneysBooker sourceTotal) toString()userSpecifiedCurrencyTotal(MoneysBooker 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_ROOM_NIGHTS
- See Also:
-
JSON_PROPERTY_CANCELLABLE_BY_HOTEL
- See Also:
-
JSON_PROPERTY_CANCELLABLE_WITH_POTENTIAL_CHARGE
- See Also:
-
JSON_PROPERTY_SOURCE_TOTAL
- See Also:
-
JSON_PROPERTY_USER_SPECIFIED_CURRENCY_TOTAL
- See Also:
-
JSON_PROPERTY_INTERNAL_TOTAL
- See Also:
-
JSON_PROPERTY_RATE_SOURCE
- See Also:
-
JSON_PROPERTY_GUESTS
- See Also:
-
-
Constructor Details
-
RoomStayBooker
public RoomStayBooker()
-
-
Method Details
-
policy
-
getPolicy
Get policy- Returns:
- policy
-
setPolicy
-
room
-
getRoom
Get room- Returns:
- room
-
setRoom
-
rooms
-
getRooms
Number of rooms. Always 1 since we switched to creating one booking per room.- Returns:
- rooms
-
setRooms
-
bedroomConfiguration
-
getBedroomConfiguration
@Nonnull @NotNull @Valid public @NotNull @Valid BedroomConfigurationBooker getBedroomConfiguration()Get bedroomConfiguration- 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
Get price- Returns:
- price
-
setPrice
-
roomRateIdentifier
-
getRoomRateIdentifier
Master rate identifier- Returns:
- roomRateIdentifier
-
setRoomRateIdentifier
-
roomRateInternalName
-
getRoomRateInternalName
Master rate internal name- Returns:
- roomRateInternalName
-
setRoomRateInternalName
-
ratePlan
-
getRatePlan
Get ratePlan- Returns:
- ratePlan
-
setRatePlan
-
perkTypes
-
addPerkTypesItem
-
getPerkTypes
List of perks that came with the master rate- Returns:
- perkTypes
-
setPerkTypes
-
extraCharges
-
getExtraCharges
Get extraCharges- Returns:
- extraCharges
-
setExtraCharges
-
activeCancellationPolicy
-
getActiveCancellationPolicy
@Nonnull @NotNull @Valid public @NotNull @Valid CancellationPolicyBooker getActiveCancellationPolicy()Get activeCancellationPolicy- Returns:
- activeCancellationPolicy
-
setActiveCancellationPolicy
-
cancellable
-
getCancellable
Get cancellable- Returns:
- cancellable
-
setCancellable
-
roomNights
-
getRoomNights
Total number of nights the guest stays at the hotel. -1 indicates there is an error.- Returns:
- roomNights
-
setRoomNights
-
cancellableByHotel
-
getCancellableByHotel
Get cancellableByHotel- Returns:
- cancellableByHotel
-
setCancellableByHotel
-
cancellableWithPotentialCharge
-
getCancellableWithPotentialCharge
Get cancellableWithPotentialCharge- Returns:
- cancellableWithPotentialCharge
-
setCancellableWithPotentialCharge
-
sourceTotal
-
getSourceTotal
Get sourceTotal- Returns:
- sourceTotal
-
setSourceTotal
-
userSpecifiedCurrencyTotal
-
getUserSpecifiedCurrencyTotal
Get userSpecifiedCurrencyTotal- Returns:
- userSpecifiedCurrencyTotal
-
setUserSpecifiedCurrencyTotal
-
internalTotal
-
getInternalTotal
Get internalTotal- Returns:
- internalTotal
-
setInternalTotal
-
rateSource
-
getRateSource
Get rateSource- Returns:
- rateSource
-
setRateSource
-
guests
-
getGuests
Get guests- Returns:
- guests
-
setGuests
-
equals
-
hashCode
public int hashCode() -
toString
-