Package travel.wink.sdk.events.model
Class RoomStay
java.lang.Object
travel.wink.sdk.events.model.RoomStay
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-07-01T17:00:52.890368+07:00[Asia/Bangkok]")
public class RoomStay
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 ratestatic enumGets or Sets rateSource -
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(CancellationPolicy activeCancellationPolicy) addPerkTypesItem(RoomStay.PerkTypesEnum perkTypesItem) cancellable(Boolean cancellable) cancellableByHotel(Boolean cancellableByHotel) cancellableWithPotentialCharge(Boolean cancellableWithPotentialCharge) booleanextraCharges(ExtraCharges extraCharges) @Valid CancellationPolicyGet activeCancellationPolicyThe actual amount of adults as determined by the hotel's policy.Supported OTA specification `BED` code.Get cancellableGet cancellableByHotelGet cancellableWithPotentialChargeThe actual amount of children as determined by the hotel's policy.@Valid LocalDateStay end date@Valid ExtraChargesGet extraChargesGet guests@Valid MoneySetInternalTotalGet internalTotalList of perks that came with the master rate@Valid PropertyPolicyGet policy@Valid StayRategetPrice()Get price@Valid RatePlanGet ratePlanGet rateSource@Valid GuestRoomgetRoom()Get roomTotal number of nights the guest stays at the hotel.@Valid UUIDMaster rate identifierMaster rate internal namegetRooms()Number of rooms.@Valid MoneySetSourceTotalGet sourceTotal@Valid LocalDateStay start dateGet userSpecifiedCurrencyTotalinthashCode()internalTotal(MoneySetInternalTotal internalTotal) perkTypes(List<RoomStay.PerkTypesEnum> perkTypes) policy(PropertyPolicy policy) rateSource(RoomStay.RateSourceEnum rateSource) roomNights(Long roomNights) roomRateIdentifier(UUID roomRateIdentifier) roomRateInternalName(String roomRateInternalName) voidsetActiveCancellationPolicy(CancellationPolicy activeCancellationPolicy) voidvoidsetBedType(String bedType) voidsetCancellable(Boolean cancellable) voidsetCancellableByHotel(Boolean cancellableByHotel) voidsetCancellableWithPotentialCharge(Boolean cancellableWithPotentialCharge) voidsetChildren(Integer children) voidsetEndDate(LocalDate endDate) voidsetExtraCharges(ExtraCharges extraCharges) voidvoidsetInternalTotal(MoneySetInternalTotal internalTotal) voidsetPerkTypes(List<RoomStay.PerkTypesEnum> perkTypes) voidsetPolicy(PropertyPolicy policy) voidvoidsetRatePlan(RatePlan ratePlan) voidsetRateSource(RoomStay.RateSourceEnum rateSource) voidvoidsetRoomNights(Long roomNights) voidsetRoomRateIdentifier(UUID roomRateIdentifier) voidsetRoomRateInternalName(String roomRateInternalName) voidvoidsetSourceTotal(MoneySetSourceTotal sourceTotal) voidsetStartDate(LocalDate startDate) voidsetUserSpecifiedCurrencyTotal(MoneySetUserSpecifiedCurrencyTotal userSpecifiedCurrencyTotal) sourceTotal(MoneySetSourceTotal sourceTotal) toString()userSpecifiedCurrencyTotal(MoneySetUserSpecifiedCurrencyTotal userSpecifiedCurrencyTotal)
-
Field Details
-
JSON_PROPERTY_POLICY
- See Also:
-
JSON_PROPERTY_ROOM
- See Also:
-
JSON_PROPERTY_ROOMS
- See Also:
-
JSON_PROPERTY_BED_TYPE
- 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_RATE_SOURCE
- See Also:
-
JSON_PROPERTY_SOURCE_TOTAL
- See Also:
-
JSON_PROPERTY_INTERNAL_TOTAL
- See Also:
-
JSON_PROPERTY_GUESTS
- 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_USER_SPECIFIED_CURRENCY_TOTAL
- See Also:
-
-
Constructor Details
-
RoomStay
public RoomStay()
-
-
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
-
bedType
-
getBedType
Supported OTA specification `BED` code. See [OTA geoname data](#operation/showAvailableCodesForCategory)- Returns:
- bedType
-
setBedType
-
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
Get activeCancellationPolicy- Returns:
- activeCancellationPolicy
-
setActiveCancellationPolicy
-
rateSource
-
getRateSource
Get rateSource- Returns:
- rateSource
-
setRateSource
-
sourceTotal
-
getSourceTotal
Get sourceTotal- Returns:
- sourceTotal
-
setSourceTotal
-
internalTotal
-
getInternalTotal
Get internalTotal- Returns:
- internalTotal
-
setInternalTotal
-
guests
-
getGuests
Get guests- Returns:
- guests
-
setGuests
-
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
-
userSpecifiedCurrencyTotal
public RoomStay userSpecifiedCurrencyTotal(MoneySetUserSpecifiedCurrencyTotal userSpecifiedCurrencyTotal) -
getUserSpecifiedCurrencyTotal
Get userSpecifiedCurrencyTotal- Returns:
- userSpecifiedCurrencyTotal
-
setUserSpecifiedCurrencyTotal
public void setUserSpecifiedCurrencyTotal(MoneySetUserSpecifiedCurrencyTotal userSpecifiedCurrencyTotal) -
equals
-
hashCode
public int hashCode() -
toString
-