Including bedtype
This commit is contained in:
@@ -19,7 +19,7 @@ export default async function BookingConfirmation({
|
|||||||
}: BookingConfirmationProps) {
|
}: BookingConfirmationProps) {
|
||||||
const bookingConfirmation = await bookingConfirmationPromise
|
const bookingConfirmation = await bookingConfirmationPromise
|
||||||
|
|
||||||
const { booking, hotel } = bookingConfirmation
|
const { booking, hotel, room } = bookingConfirmation
|
||||||
|
|
||||||
const arrivalDate = new Date(booking.checkInDate)
|
const arrivalDate = new Date(booking.checkInDate)
|
||||||
const departureDate = new Date(booking.checkOutDate)
|
const departureDate = new Date(booking.checkOutDate)
|
||||||
@@ -61,7 +61,7 @@ export default async function BookingConfirmation({
|
|||||||
totalPrice: booking.totalPrice,
|
totalPrice: booking.totalPrice,
|
||||||
//specialRoomType: getSpecialRoomType(booking.packages), TODO: Add
|
//specialRoomType: getSpecialRoomType(booking.packages), TODO: Add
|
||||||
//roomTypeName: booking.roomTypeCode ?? undefined, TODO: Do we get the name?
|
//roomTypeName: booking.roomTypeCode ?? undefined, TODO: Do we get the name?
|
||||||
//bedType: bedType?.description, TODO: Can we get bedType?
|
bedType: room?.bedType.name,
|
||||||
roomTypeCode: booking.roomTypeCode ?? undefined,
|
roomTypeCode: booking.roomTypeCode ?? undefined,
|
||||||
roomPrice: booking.roomPrice,
|
roomPrice: booking.roomPrice,
|
||||||
bnr: booking.confirmationNumber ?? undefined,
|
bnr: booking.confirmationNumber ?? undefined,
|
||||||
|
|||||||
Reference in New Issue
Block a user