feat: SW-1589 Booking code booking creation

This commit is contained in:
Hrishikesh Vaipurkar
2025-03-19 10:34:54 +01:00
parent dd3fed9423
commit eb2c4511c2
2 changed files with 4 additions and 0 deletions

View File

@@ -73,6 +73,7 @@ export default function PaymentClient({
const lang = useLang()
const intl = useIntl()
const searchParams = useSearchParams()
const bookingCode = searchParams.get("bookingCode")
const { booking, canProceedToPayment, rooms, totalPrice } =
useEnterDetailsStore((state) => ({
@@ -341,6 +342,7 @@ export default function PaymentClient({
memberPrice: room.roomRate.memberRate?.localPrice.pricePerStay,
publicPrice: room.roomRate.publicRate?.localPrice.pricePerStay,
},
bookingCode,
roomTypeCode: room.bedType!.roomTypeCode, // A selection has been made in order to get to this step.
smsConfirmationRequested: data.smsConfirmation,
specialRequest: {
@@ -361,6 +363,7 @@ export default function PaymentClient({
rooms,
booking,
isFlexRate,
bookingCode,
]
)