feat(SW-2879): Move BookingWidget to booking-flow package * Fix lockfile * Fix styling * a tiny little booking widget test * Tiny fixes * Merge branch 'master' into feat/sw-2879-booking-widget-to-booking-flow-package * Remove unused scripts * lint:fix * Merge branch 'master' into feat/sw-2879-booking-widget-to-booking-flow-package * Tiny lint fixes * update test * Update Input in booking-flow * Clean up comments etc * Merge branch 'master' into feat/sw-2879-booking-widget-to-booking-flow-package * Setup tracking context for booking-flow * Add missing use client * Fix temp tracking function * Pass booking to booking-widget * Remove comment * Add use client to booking widget tracking provider * Add use client to tracking functions * Merge branch 'master' into feat/sw-2879-booking-widget-to-booking-flow-package * Move debug page * Merge branch 'master' into feat/sw-2879-booking-widget-to-booking-flow-package * Merge branch 'master' into feat/sw-2879-booking-widget-to-booking-flow-package * Merge branch 'master' into feat/sw-2879-booking-widget-to-booking-flow-package Approved-by: Bianca Widstam
47 lines
1.2 KiB
TypeScript
47 lines
1.2 KiB
TypeScript
import type { Lang } from "../language"
|
|
|
|
export function selectRate(lang: Lang) {
|
|
return `/${lang}/hotelreservation/select-rate`
|
|
}
|
|
|
|
export function hotelreservation(lang: Lang) {
|
|
return `/${lang}/hotelreservation`
|
|
}
|
|
|
|
export function bookingConfirmation(lang: Lang) {
|
|
return `${hotelreservation(lang)}/booking-confirmation`
|
|
}
|
|
|
|
export function details(lang: Lang) {
|
|
return `${hotelreservation(lang)}/details`
|
|
}
|
|
|
|
export function selectHotel(lang: Lang) {
|
|
return `${hotelreservation(lang)}/select-hotel`
|
|
}
|
|
|
|
export function selectHotelMap(lang: Lang) {
|
|
return `${hotelreservation(lang)}/select-hotel/map`
|
|
}
|
|
|
|
export function selectRateWithParams(
|
|
lang: Lang,
|
|
hotelId: string,
|
|
fromdate: string,
|
|
todate: string
|
|
) {
|
|
return `${hotelreservation(lang)}/select-rate?room%5B0%5D.adults=1&fromdate=${fromdate}&todate=${todate}&hotel=${hotelId}`
|
|
}
|
|
|
|
export function alternativeHotels(lang: Lang) {
|
|
return `${hotelreservation(lang)}/alternative-hotels`
|
|
}
|
|
|
|
export function alternativeHotelsMap(lang: Lang) {
|
|
return `${hotelreservation(lang)}/alternative-hotels/map`
|
|
}
|
|
|
|
export function guaranteeCallback(lang: Lang) {
|
|
return `${hotelreservation(lang)}/gla-payment-callback`
|
|
}
|