Class RoomStaySupplier
java.lang.Object
travel.wink.sdk.extranet.booking.model.RoomStaySupplier
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-06-26T20:17:36.846722567+07:00[Asia/Bangkok]",
comments="Generator version: 7.13.0")
public class RoomStaySupplier
extends Object
RoomStaySupplier
-
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(CancellationPolicyLightweightSupplier activeCancellationPolicy) addPerkTypesItem(PerkLightweightSupplier perkTypesItem) bedroomConfiguration(BedroomConfigurationSupplier bedroomConfiguration) cancellable(Boolean cancellable) cancellableByHotel(Boolean cancellableByHotel) cancellableWithPotentialCharge(Boolean cancellableWithPotentialCharge) booleanextraCharges(ExtraChargesSupplier extraCharges) @NotNull @Valid CancellationPolicyLightweightSupplierBased 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 BedroomConfigurationSupplierDesired 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 ExtraChargesSupplierRate plan-level extra chargesGet guests@Valid CustomMonetaryAmountGet internalTotal@Valid List<@Valid PerkLightweightSupplier> List of perks that came with the master rate@NotNull @Valid PropertyPolicySupplierProperty policy information.@NotNull @Valid StayRateSuppliergetPrice()Price details@NotNull @Valid RoomConfigurationPriceRatePlanSupplierRate plan used for this stayGet rateSource@NotNull @Valid GuestRoomLightweightSuppliergetRoom()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 PerkLightweightSupplier> perkTypes) policy(PropertyPolicySupplier policy) price(StayRateSupplier price) rateSource(String rateSource) roomNights(Long roomNights) roomRateIdentifier(UUID roomRateIdentifier) roomRateInternalName(String roomRateInternalName) voidsetActiveCancellationPolicy(CancellationPolicyLightweightSupplier activeCancellationPolicy) voidvoidsetBedroomConfiguration(BedroomConfigurationSupplier bedroomConfiguration) voidsetCancellable(Boolean cancellable) voidsetCancellableByHotel(Boolean cancellableByHotel) voidsetCancellableWithPotentialCharge(Boolean cancellableWithPotentialCharge) voidsetChildren(Integer children) voidsetEndDate(LocalDate endDate) voidsetExtraCharges(ExtraChargesSupplier extraCharges) voidvoidsetInternalTotal(CustomMonetaryAmount internalTotal) voidsetPerkTypes(List<@Valid PerkLightweightSupplier> perkTypes) voidsetPolicy(PropertyPolicySupplier policy) voidsetPrice(StayRateSupplier 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
-
RoomStaySupplier
public RoomStaySupplier()
-
-
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 RoomStaySupplier bedroomConfiguration(@Nonnull BedroomConfigurationSupplier bedroomConfiguration) -
getBedroomConfiguration
@Nonnull @NotNull @Valid public @NotNull @Valid BedroomConfigurationSupplier 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
@Nonnull @NotNull @Valid public @NotNull @Valid RoomConfigurationPriceRatePlanSupplier 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 RoomStaySupplier activeCancellationPolicy(@Nonnull CancellationPolicyLightweightSupplier activeCancellationPolicy) -
getActiveCancellationPolicy
@Nonnull @NotNull @Valid public @NotNull @Valid CancellationPolicyLightweightSupplier 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 CancellationPolicyLightweightSupplier activeCancellationPolicy) -
cancellable
-
getCancellable
-
setCancellable
-
cancellableByHotel
-
getCancellableByHotel
-
setCancellableByHotel
-
cancellableWithPotentialCharge
public RoomStaySupplier 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 RoomStaySupplier 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
-