Package travel.wink.sdk.extranet.model
Class Rate
java.lang.Object
travel.wink.sdk.extranet.model.Rate
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-07-01T17:01:03.296785+07:00[Asia/Bangkok]")
public class Rate
extends Object
Rate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumIndicate where this rate originated from. -
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 TypeMethodDescriptionclosedOnArrival(Boolean closedOnArrival) closedOnDeparture(Boolean closedOnDeparture) booleanextraChildRateModifier(RateExtraChildRateModifier extraChildRateModifier) extraPaxRateModifier(RateExtraPaxRateModifier extraPaxRateModifier) Convenience data point that tells you if there is availability on this day.@NotNull BooleanThis flag indicates whether a guest can arrive at the property on this date.@NotNull BooleanThis flag indicates whether a guest can leave the property on this date.@NotNull @Valid LocalDategetDate()The date this rate is applicable for.@Valid RateExtraChildRateModifierGet extraChildRateModifier@Valid RateExtraPaxRateModifierGet extraPaxRateModifier@NotNull @Valid UUIDGuest room associated with this daily rate.@Valid UUIDOwner of daily rate.@Valid UUIDUnique record identifier.@NotNull @Min(0L) IntegerThe number of pax the room price was meant for minimum: 0@NotNull @Min(0L) IntegerThe number of children the room price was meant for minimum: 0@NotNull BooleanThis flag indicates whether this rate is available for this date.@NotNull @Valid UUIDMaster rate associated with this daily rate.@NotNull @Min(1L) IntegerMaximum number of adults allowed in a room type.@NotNull @Min(0L) IntegerMaximum number of children allowed in a room type.Control the maximum length of stay at the day-level.@NotNull @Min(1L) IntegerMaximum number of guest allowed in a room type.Control the minimum length of stay at the day-level.@NotNull @Min(1L) IntegerMinimum number of guests allowed in a room type.@NotNull IntegerAmount of rooms available for this date.@Valid MasterRateRategetRate()Get rate@NotNull @Valid UUIDRate plan associated with this daily rate.@NotNull Rate.RateSourceEnumIndicate where this rate originated from.Get singleOccupancyRateModifierguestRoomIdentifier(UUID guestRoomIdentifier) inthashCode()hotelIdentifier(UUID hotelIdentifier) identifier(UUID identifier) includedAdultOccupancy(Integer includedAdultOccupancy) includedChildOccupancy(Integer includedChildOccupancy) masterRateIdentifier(UUID masterRateIdentifier) maxAdultOccupancy(Integer maxAdultOccupancy) maxChildOccupancy(Integer maxChildOccupancy) maxLengthOfStay(Integer maxLengthOfStay) maxOccupancy(Integer maxOccupancy) minLengthOfStay(Integer minLengthOfStay) minOccupancy(Integer minOccupancy) rate(MasterRateRate rate) ratePlanIdentifier(UUID ratePlanIdentifier) rateSource(Rate.RateSourceEnum rateSource) voidsetAvailable(Boolean available) voidsetClosedOnArrival(Boolean closedOnArrival) voidsetClosedOnDeparture(Boolean closedOnDeparture) voidvoidsetExtraChildRateModifier(RateExtraChildRateModifier extraChildRateModifier) voidsetExtraPaxRateModifier(RateExtraPaxRateModifier extraPaxRateModifier) voidsetGuestRoomIdentifier(UUID guestRoomIdentifier) voidsetHotelIdentifier(UUID hotelIdentifier) voidsetIdentifier(UUID identifier) voidsetIncludedAdultOccupancy(Integer includedAdultOccupancy) voidsetIncludedChildOccupancy(Integer includedChildOccupancy) voidvoidsetMasterRateIdentifier(UUID masterRateIdentifier) voidsetMaxAdultOccupancy(Integer maxAdultOccupancy) voidsetMaxChildOccupancy(Integer maxChildOccupancy) voidsetMaxLengthOfStay(Integer maxLengthOfStay) voidsetMaxOccupancy(Integer maxOccupancy) voidsetMinLengthOfStay(Integer minLengthOfStay) voidsetMinOccupancy(Integer minOccupancy) voidsetQuantity(Integer quantity) voidsetRate(MasterRateRate rate) voidsetRatePlanIdentifier(UUID ratePlanIdentifier) voidsetRateSource(Rate.RateSourceEnum rateSource) voidsetSingleOccupancyRateModifier(RateSingleOccupancyRateModifier singleOccupancyRateModifier) singleOccupancyRateModifier(RateSingleOccupancyRateModifier singleOccupancyRateModifier) toString()
-
Field Details
-
JSON_PROPERTY_IDENTIFIER
- See Also:
-
JSON_PROPERTY_HOTEL_IDENTIFIER
- See Also:
-
JSON_PROPERTY_RATE_SOURCE
- See Also:
-
JSON_PROPERTY_RATE
- See Also:
-
JSON_PROPERTY_MASTER
- See Also:
-
JSON_PROPERTY_CLOSED_ON_ARRIVAL
- See Also:
-
JSON_PROPERTY_CLOSED_ON_DEPARTURE
- See Also:
-
JSON_PROPERTY_DATE
- See Also:
-
JSON_PROPERTY_QUANTITY
- See Also:
-
JSON_PROPERTY_MIN_OCCUPANCY
- See Also:
-
JSON_PROPERTY_MAX_OCCUPANCY
- See Also:
-
JSON_PROPERTY_MAX_CHILD_OCCUPANCY
- See Also:
-
JSON_PROPERTY_MAX_ADULT_OCCUPANCY
- See Also:
-
JSON_PROPERTY_INCLUDED_ADULT_OCCUPANCY
- See Also:
-
JSON_PROPERTY_INCLUDED_CHILD_OCCUPANCY
- See Also:
-
JSON_PROPERTY_MIN_LENGTH_OF_STAY
- See Also:
-
JSON_PROPERTY_MAX_LENGTH_OF_STAY
- See Also:
-
JSON_PROPERTY_SINGLE_OCCUPANCY_RATE_MODIFIER
- See Also:
-
JSON_PROPERTY_EXTRA_PAX_RATE_MODIFIER
- See Also:
-
JSON_PROPERTY_EXTRA_CHILD_RATE_MODIFIER
- See Also:
-
JSON_PROPERTY_AVAILABLE
- See Also:
-
JSON_PROPERTY_MASTER_RATE_IDENTIFIER
- See Also:
-
JSON_PROPERTY_RATE_PLAN_IDENTIFIER
- See Also:
-
JSON_PROPERTY_GUEST_ROOM_IDENTIFIER
- See Also:
-
-
Constructor Details
-
Rate
public Rate()
-
-
Method Details
-
identifier
-
getIdentifier
Unique record identifier.- Returns:
- identifier
-
setIdentifier
-
hotelIdentifier
-
getHotelIdentifier
Owner of daily rate.- Returns:
- hotelIdentifier
-
setHotelIdentifier
-
rateSource
-
getRateSource
Indicate where this rate originated from. Leave as TRAVELIKO unless you are a channel manager and responsible for the property's rates externally of this payment.- Returns:
- rateSource
-
setRateSource
-
rate
-
getRate
Get rate- Returns:
- rate
-
setRate
-
master
-
getMaster
This flag indicates whether this rate is available for this date.- Returns:
- master
-
setMaster
-
closedOnArrival
-
getClosedOnArrival
This flag indicates whether a guest can arrive at the property on this date.- Returns:
- closedOnArrival
-
setClosedOnArrival
-
closedOnDeparture
-
getClosedOnDeparture
This flag indicates whether a guest can leave the property on this date.- Returns:
- closedOnDeparture
-
setClosedOnDeparture
-
date
-
getDate
The date this rate is applicable for.- Returns:
- date
-
setDate
-
quantity
-
getQuantity
Amount of rooms available for this date.- Returns:
- quantity
-
setQuantity
-
minOccupancy
-
getMinOccupancy
Minimum number of guests allowed in a room type. minimum: 1- Returns:
- minOccupancy
-
setMinOccupancy
-
maxOccupancy
-
getMaxOccupancy
Maximum number of guest allowed in a room type. minimum: 1- Returns:
- maxOccupancy
-
setMaxOccupancy
-
maxChildOccupancy
-
getMaxChildOccupancy
Maximum number of children allowed in a room type. minimum: 0- Returns:
- maxChildOccupancy
-
setMaxChildOccupancy
-
maxAdultOccupancy
-
getMaxAdultOccupancy
Maximum number of adults allowed in a room type. minimum: 1- Returns:
- maxAdultOccupancy
-
setMaxAdultOccupancy
-
includedAdultOccupancy
-
getIncludedAdultOccupancy
The number of pax the room price was meant for minimum: 0- Returns:
- includedAdultOccupancy
-
setIncludedAdultOccupancy
-
includedChildOccupancy
-
getIncludedChildOccupancy
The number of children the room price was meant for minimum: 0- Returns:
- includedChildOccupancy
-
setIncludedChildOccupancy
-
minLengthOfStay
-
getMinLengthOfStay
Control the minimum length of stay at the day-level. This means that a guest arriving within this date range is required to stay at least these number of days in order to get this rate. Leave empty if you don't want to update this property.- Returns:
- minLengthOfStay
-
setMinLengthOfStay
-
maxLengthOfStay
-
getMaxLengthOfStay
Control the maximum length of stay at the day-level. This means that a guest arriving within this date range is required to stay no longer than these number of days in order to get this rate. Leave empty if you don't want to update this property.- Returns:
- maxLengthOfStay
-
setMaxLengthOfStay
-
singleOccupancyRateModifier
public Rate singleOccupancyRateModifier(RateSingleOccupancyRateModifier singleOccupancyRateModifier) -
getSingleOccupancyRateModifier
Get singleOccupancyRateModifier- Returns:
- singleOccupancyRateModifier
-
setSingleOccupancyRateModifier
public void setSingleOccupancyRateModifier(RateSingleOccupancyRateModifier singleOccupancyRateModifier) -
extraPaxRateModifier
-
getExtraPaxRateModifier
Get extraPaxRateModifier- Returns:
- extraPaxRateModifier
-
setExtraPaxRateModifier
-
extraChildRateModifier
-
getExtraChildRateModifier
Get extraChildRateModifier- Returns:
- extraChildRateModifier
-
setExtraChildRateModifier
-
available
-
getAvailable
Convenience data point that tells you if there is availability on this day. It tests that quantity is greater than 0, rate amount is valid and master flag is true.- Returns:
- available
-
setAvailable
-
masterRateIdentifier
-
getMasterRateIdentifier
Master rate associated with this daily rate.- Returns:
- masterRateIdentifier
-
setMasterRateIdentifier
-
ratePlanIdentifier
-
getRatePlanIdentifier
Rate plan associated with this daily rate.- Returns:
- ratePlanIdentifier
-
setRatePlanIdentifier
-
guestRoomIdentifier
-
getGuestRoomIdentifier
Guest room associated with this daily rate.- Returns:
- guestRoomIdentifier
-
setGuestRoomIdentifier
-
equals
-
hashCode
public int hashCode() -
toString
-