Created
January 31, 2025 22:23
-
-
Save enisinanaj/aed9128bea5c1f7245ebe0f1aae29af9 to your computer and use it in GitHub Desktop.
Reservation Payload Type
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface StayIdentifier { | |
hotelId: string | uuid | number, | |
reservationNumbe": string, | |
externalReservationNumber: string, | |
roomNumber: string | |
}; | |
interface StayTime { | |
arrivalDate: string | Date, | |
arrivalTime: string, // "15:30" | |
depatureDate: string | Date, | |
depatureTime: string // "11:00" | |
} | |
interface Address { | |
address1: string, | |
postalCode: string, | |
city: string, | |
country: string, | |
type: 'GUEST' | 'BILLING'; | |
} | |
interface GuerstProfile { | |
profileType: 'GUEST' | 'PAYER', | |
salutation?: string, // salutation from external system | |
firstName: string, | |
lastName: string, | |
email?: string, | |
addresses?: Address[], | |
phone?: number, | |
language: string | ISO6391.getAllCodes(), | |
guestNumber: string | |
} | |
interface ReservationProfile = { | |
stayIdentifier: StayIdentifier, | |
stayTime: StayTime, | |
guest: GuestProfile, | |
status: 'OPEN' | 'CANCELLED' | 'CHECKED_IN' | 'EXPECTED' | 'NO_SHOW' | 'CHECKED_OUT', | |
allowOnlineCheckIn: boolean, | |
allowOnlineCheckOut: boolean, | |
sourceSystem: string, | |
roomAvailable: boolean | |
} | |
export default ReservationProfile; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment