In the OTA_HotelAvailNotifRQ messages, the RestrictionStatus element has an optional Restriction attribute. The possible values for Restriction are Master, Arrival, and Departure.
The combination of Restriction and Status attributes can be defined as:
Restriction | Status | Interpretation |
---|---|---|
Arrival | Open | Open to arrival |
Arrival | Close | Close to arrival |
Departure | Open | Open to departure |
Departure | Close | Close to departure |
Master | Open | Open to booking |
Master | Close | Close to booking |
For example, let's assume the following restrictions are sent to the client system for the below dates:
Restriction / Date | 2021-01-01 | 2021-01-02 | 2021-01-03 | 2021-01-04 | 2021-01-05 |
---|---|---|---|---|---|
Master | Open | Close | Open | Close | Open |
Arrival | Close | Open | Open | Close | Open |
Departure | Open | Open | Close | Open | Open |
Given the above restrictions -
Check-in date | Check-out Date | Allowed? | Reason |
---|---|---|---|
2021-01-03 | 2021-01-04 | Yes | - |
2021-01-01 | Any | No | - |
Any | 2021-01-03 | No | - |
2021-01-02 | Any | No | Since the restriction Master has status Close |
2021-01-03 | 2021-01-05 | No | Since the restriction Master has status Close on 2021-01-04 |