Day

public final class Day

Parameters

date

Date associated to the provided information.

available

True if the property is available on the date.

checkin

Enumeration indicating the capability of check-in on the date. CHECKIN_VALID: The associated date is valid for check in. CHECKIN_INVALID: Generic or Unknown reason for being not being a valid day for check in. CHECKIN_INVALID_DUE_TO_BEING_IN_PAST: The associated date is not valid for check in due to being in the past. CHECKIN_INVALID_DUE_TO_MIN_PRIOR_NOTIFICATION: The associated date is not valid for check in because checking in on this date would not meet the owner's minimum prior notification requirements. CHECKIN_INVALID_DUE_TO_MAX_FUTURE_BOOKING: The associated date is not valid for check in because it is too far in the future. CHECKIN_INVALID_DUE_TO_NOT_AVAILABLE: The associated date is not valid for check in because it is not available (ie. the date is already reserved). CHECKIN_INVALID_DUE_TO_NON_CHANGEOVER_DAY_OF_WEEK: The associated date is not valid for check in because it falls on a day of the week that check in is prohibited. CHECKIN_INVALID_DUE_TO_CHANGEOVER_EXCLUSION: The associated date is not valid for check in because check in was prohibited on that specific date. CHECKIN_INVALID_DUE_TO_MIN_STAY_NOT_ACHIEVABLE: The associated date is not valid for check in because checking in on this date does not satisfy the minimum stay duration. CHECKIN_INVALID_DUE_TO_NO_VALID_CHECKOUT_WITHIN_CONSTRAINTS: The associated date is not valid for check in because there is not an associated check out date that would allow the stay to satisfy stay constraints.

checkout

Enumeration indicating the capability of check-out on the date. CHECKOUT_VALID: The associated date is valid for check out. CHECKOUT_INVALID: The checkout validity value is invalid or unknown. CHECKOUT_INVALID_DUE_TO_NON_CHANGEOVER_DAY_OF_WEEK: The associated date is not valid for check out because it falls on a day of the week that check out is prohibited. CHECKOUT_INVALID_DUE_TO_CHANGEOVER_EXCLUSION: The associated date is not valid for check out because check out was prohibited on that specific date.

stayConstraints

Constructors

Link copied to clipboard
public Day Day(LocalDate date, Boolean available, String checkin, String checkout, StayConstraints stayConstraints)

Types

Link copied to clipboard
public final class Builder

Properties

Link copied to clipboard
@Valid()
private final Boolean available
Link copied to clipboard
@Valid()
private final String checkin
Link copied to clipboard
@Valid()
private final String checkout
Link copied to clipboard
private final LocalDate date
Link copied to clipboard
@Valid()
private final StayConstraints stayConstraints

Functions

Link copied to clipboard
public final static Day.Builder builder()
Link copied to clipboard
public final Boolean getAvailable()
Link copied to clipboard
public final String getCheckin()
Link copied to clipboard
public final String getCheckout()
Link copied to clipboard
public final LocalDate getDate()
Link copied to clipboard