Merged in feat/sw-2323-find-booking3 (pull request #1928)
Feat/sw-2323 New Find booking endpoint * wip * wip Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -6,6 +6,7 @@ import { Typography } from "@scandic-hotels/design-system/Typography"
|
|||||||
import { env } from "@/env/server"
|
import { env } from "@/env/server"
|
||||||
import { dt } from "@/lib/dt"
|
import { dt } from "@/lib/dt"
|
||||||
import {
|
import {
|
||||||
|
findBooking,
|
||||||
getAncillaryPackages,
|
getAncillaryPackages,
|
||||||
getBookingConfirmation,
|
getBookingConfirmation,
|
||||||
getLinkedReservations,
|
getLinkedReservations,
|
||||||
@@ -15,6 +16,7 @@ import {
|
|||||||
} from "@/lib/trpc/memoizedRequests"
|
} from "@/lib/trpc/memoizedRequests"
|
||||||
import { decrypt } from "@/server/routers/utils/encryption"
|
import { decrypt } from "@/server/routers/utils/encryption"
|
||||||
|
|
||||||
|
import { auth } from "@/auth"
|
||||||
import AdditionalInfoForm from "@/components/HotelReservation/FindMyBooking/AdditionalInfoForm"
|
import AdditionalInfoForm from "@/components/HotelReservation/FindMyBooking/AdditionalInfoForm"
|
||||||
import accessBooking, {
|
import accessBooking, {
|
||||||
ACCESS_GRANTED,
|
ACCESS_GRANTED,
|
||||||
@@ -32,6 +34,7 @@ import Image from "@/components/Image"
|
|||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
import { setLang } from "@/i18n/serverContext"
|
import { setLang } from "@/i18n/serverContext"
|
||||||
import MyStayProvider from "@/providers/MyStay"
|
import MyStayProvider from "@/providers/MyStay"
|
||||||
|
import { isValidSession } from "@/utils/session"
|
||||||
import { getCurrentWebUrl } from "@/utils/url"
|
import { getCurrentWebUrl } from "@/utils/url"
|
||||||
|
|
||||||
import styles from "./page.module.css"
|
import styles from "./page.module.css"
|
||||||
@@ -55,8 +58,43 @@ export default async function MyStay({
|
|||||||
return notFound()
|
return notFound()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const session = await auth()
|
||||||
|
const isLoggedIn = isValidSession(session)
|
||||||
|
|
||||||
const [confirmationNumber, lastName] = value.split(",")
|
const [confirmationNumber, lastName] = value.split(",")
|
||||||
const bookingConfirmation = await getBookingConfirmation(confirmationNumber)
|
const bv = cookies().get("bv")?.value
|
||||||
|
let bookingConfirmation
|
||||||
|
if (isLoggedIn) {
|
||||||
|
bookingConfirmation = await getBookingConfirmation(confirmationNumber)
|
||||||
|
} else if (bv) {
|
||||||
|
const params = new URLSearchParams(bv)
|
||||||
|
const firstName = params.get("firstName")
|
||||||
|
const email = params.get("email")
|
||||||
|
|
||||||
|
if (firstName && email) {
|
||||||
|
bookingConfirmation = await findBooking(
|
||||||
|
confirmationNumber,
|
||||||
|
lastName,
|
||||||
|
firstName,
|
||||||
|
email
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
return (
|
||||||
|
<RenderAdditionalInfoForm
|
||||||
|
confirmationNumber={confirmationNumber}
|
||||||
|
lastName={lastName}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return (
|
||||||
|
<RenderAdditionalInfoForm
|
||||||
|
confirmationNumber={confirmationNumber}
|
||||||
|
lastName={lastName}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
if (!bookingConfirmation) {
|
if (!bookingConfirmation) {
|
||||||
return notFound()
|
return notFound()
|
||||||
}
|
}
|
||||||
@@ -64,7 +102,7 @@ export default async function MyStay({
|
|||||||
const { additionalData, booking, hotel, roomCategories } = bookingConfirmation
|
const { additionalData, booking, hotel, roomCategories } = bookingConfirmation
|
||||||
|
|
||||||
const user = await getProfileSafely()
|
const user = await getProfileSafely()
|
||||||
const bv = cookies().get("bv")?.value
|
|
||||||
const intl = await getIntl()
|
const intl = await getIntl()
|
||||||
|
|
||||||
const access = accessBooking(booking.guest, lastName, user, bv)
|
const access = accessBooking(booking.guest, lastName, user, bv)
|
||||||
@@ -232,3 +270,22 @@ export default async function MyStay({
|
|||||||
|
|
||||||
return notFound()
|
return notFound()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function RenderAdditionalInfoForm({
|
||||||
|
confirmationNumber,
|
||||||
|
lastName,
|
||||||
|
}: {
|
||||||
|
confirmationNumber: string
|
||||||
|
lastName: string
|
||||||
|
}) {
|
||||||
|
return (
|
||||||
|
<main className={styles.main}>
|
||||||
|
<div className={styles.form}>
|
||||||
|
<AdditionalInfoForm
|
||||||
|
confirmationNumber={confirmationNumber}
|
||||||
|
lastName={lastName}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import { Typography } from "@scandic-hotels/design-system/Typography"
|
|||||||
import { env } from "@/env/server"
|
import { env } from "@/env/server"
|
||||||
import { dt } from "@/lib/dt"
|
import { dt } from "@/lib/dt"
|
||||||
import {
|
import {
|
||||||
|
findBooking,
|
||||||
getAncillaryPackages,
|
getAncillaryPackages,
|
||||||
getBookingConfirmation,
|
getBookingConfirmation,
|
||||||
getLinkedReservations,
|
getLinkedReservations,
|
||||||
@@ -15,6 +16,7 @@ import {
|
|||||||
} from "@/lib/trpc/memoizedRequests"
|
} from "@/lib/trpc/memoizedRequests"
|
||||||
import { decrypt } from "@/server/routers/utils/encryption"
|
import { decrypt } from "@/server/routers/utils/encryption"
|
||||||
|
|
||||||
|
import { auth } from "@/auth"
|
||||||
import AdditionalInfoForm from "@/components/HotelReservation/FindMyBooking/AdditionalInfoForm"
|
import AdditionalInfoForm from "@/components/HotelReservation/FindMyBooking/AdditionalInfoForm"
|
||||||
import accessBooking, {
|
import accessBooking, {
|
||||||
ACCESS_GRANTED,
|
ACCESS_GRANTED,
|
||||||
@@ -32,6 +34,7 @@ import Image from "@/components/Image"
|
|||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
import { setLang } from "@/i18n/serverContext"
|
import { setLang } from "@/i18n/serverContext"
|
||||||
import MyStayProvider from "@/providers/MyStay"
|
import MyStayProvider from "@/providers/MyStay"
|
||||||
|
import { isValidSession } from "@/utils/session"
|
||||||
import { getCurrentWebUrl } from "@/utils/url"
|
import { getCurrentWebUrl } from "@/utils/url"
|
||||||
|
|
||||||
import styles from "./page.module.css"
|
import styles from "./page.module.css"
|
||||||
@@ -54,9 +57,42 @@ export default async function MyStay({
|
|||||||
if (!value) {
|
if (!value) {
|
||||||
return notFound()
|
return notFound()
|
||||||
}
|
}
|
||||||
|
const session = await auth()
|
||||||
|
const isLoggedIn = isValidSession(session)
|
||||||
|
|
||||||
const [confirmationNumber, lastName] = value.split(",")
|
const [confirmationNumber, lastName] = value.split(",")
|
||||||
const bookingConfirmation = await getBookingConfirmation(confirmationNumber)
|
const bv = cookies().get("bv")?.value
|
||||||
|
let bookingConfirmation
|
||||||
|
if (isLoggedIn) {
|
||||||
|
bookingConfirmation = await getBookingConfirmation(confirmationNumber)
|
||||||
|
} else if (bv) {
|
||||||
|
const params = new URLSearchParams(bv)
|
||||||
|
const firstName = params.get("firstName")
|
||||||
|
const email = params.get("email")
|
||||||
|
|
||||||
|
if (firstName && email) {
|
||||||
|
bookingConfirmation = await findBooking(
|
||||||
|
confirmationNumber,
|
||||||
|
lastName,
|
||||||
|
firstName,
|
||||||
|
email
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
return (
|
||||||
|
<RenderAdditionalInfoForm
|
||||||
|
confirmationNumber={confirmationNumber}
|
||||||
|
lastName={lastName}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return (
|
||||||
|
<RenderAdditionalInfoForm
|
||||||
|
confirmationNumber={confirmationNumber}
|
||||||
|
lastName={lastName}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
if (!bookingConfirmation) {
|
if (!bookingConfirmation) {
|
||||||
return notFound()
|
return notFound()
|
||||||
}
|
}
|
||||||
@@ -64,7 +100,6 @@ export default async function MyStay({
|
|||||||
const { additionalData, booking, hotel, roomCategories } = bookingConfirmation
|
const { additionalData, booking, hotel, roomCategories } = bookingConfirmation
|
||||||
|
|
||||||
const user = await getProfileSafely()
|
const user = await getProfileSafely()
|
||||||
const bv = cookies().get("bv")?.value
|
|
||||||
const intl = await getIntl()
|
const intl = await getIntl()
|
||||||
|
|
||||||
const access = accessBooking(booking.guest, lastName, user, bv)
|
const access = accessBooking(booking.guest, lastName, user, bv)
|
||||||
@@ -232,3 +267,22 @@ export default async function MyStay({
|
|||||||
|
|
||||||
return notFound()
|
return notFound()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function RenderAdditionalInfoForm({
|
||||||
|
confirmationNumber,
|
||||||
|
lastName,
|
||||||
|
}: {
|
||||||
|
confirmationNumber: string
|
||||||
|
lastName: string
|
||||||
|
}) {
|
||||||
|
return (
|
||||||
|
<main className={styles.main}>
|
||||||
|
<div className={styles.form}>
|
||||||
|
<AdditionalInfoForm
|
||||||
|
confirmationNumber={confirmationNumber}
|
||||||
|
lastName={lastName}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|||||||
@@ -6,13 +6,16 @@ import { Typography } from "@scandic-hotels/design-system/Typography"
|
|||||||
|
|
||||||
import { dt } from "@/lib/dt"
|
import { dt } from "@/lib/dt"
|
||||||
import {
|
import {
|
||||||
|
findBooking,
|
||||||
getAncillaryPackages,
|
getAncillaryPackages,
|
||||||
getBookingConfirmation,
|
getBookingConfirmation,
|
||||||
getProfileSafely,
|
getProfileSafely,
|
||||||
} from "@/lib/trpc/memoizedRequests"
|
} from "@/lib/trpc/memoizedRequests"
|
||||||
import { decrypt } from "@/server/routers/utils/encryption"
|
import { decrypt } from "@/server/routers/utils/encryption"
|
||||||
|
|
||||||
|
import { auth } from "@/auth"
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
|
import { isValidSession } from "@/utils/session"
|
||||||
|
|
||||||
import AdditionalInfoForm from "../../FindMyBooking/AdditionalInfoForm"
|
import AdditionalInfoForm from "../../FindMyBooking/AdditionalInfoForm"
|
||||||
import accessBooking, {
|
import accessBooking, {
|
||||||
@@ -33,15 +36,48 @@ export async function Receipt({ refId }: { refId: string }) {
|
|||||||
if (!value) {
|
if (!value) {
|
||||||
return notFound()
|
return notFound()
|
||||||
}
|
}
|
||||||
|
const session = await auth()
|
||||||
|
const isLoggedIn = isValidSession(session)
|
||||||
|
|
||||||
const [confirmationNumber, lastName] = value.split(",")
|
const [confirmationNumber, lastName] = value.split(",")
|
||||||
const bookingConfirmation = await getBookingConfirmation(confirmationNumber)
|
const bv = cookies().get("bv")?.value
|
||||||
|
let bookingConfirmation
|
||||||
|
if (isLoggedIn) {
|
||||||
|
bookingConfirmation = await getBookingConfirmation(confirmationNumber)
|
||||||
|
} else if (bv) {
|
||||||
|
const params = new URLSearchParams(bv)
|
||||||
|
const firstName = params.get("firstName")
|
||||||
|
const email = params.get("email")
|
||||||
|
|
||||||
|
if (firstName && email) {
|
||||||
|
bookingConfirmation = await findBooking(
|
||||||
|
confirmationNumber,
|
||||||
|
lastName,
|
||||||
|
firstName,
|
||||||
|
email
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
return (
|
||||||
|
<RenderAdditionalInfoForm
|
||||||
|
confirmationNumber={confirmationNumber}
|
||||||
|
lastName={lastName}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return (
|
||||||
|
<RenderAdditionalInfoForm
|
||||||
|
confirmationNumber={confirmationNumber}
|
||||||
|
lastName={lastName}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
if (!bookingConfirmation) {
|
if (!bookingConfirmation) {
|
||||||
return notFound()
|
return notFound()
|
||||||
}
|
}
|
||||||
|
|
||||||
const { booking, hotel, room } = bookingConfirmation
|
const { booking, hotel, room } = bookingConfirmation
|
||||||
const user = await getProfileSafely()
|
const user = await getProfileSafely()
|
||||||
const bv = cookies().get("bv")?.value
|
|
||||||
const intl = await getIntl()
|
const intl = await getIntl()
|
||||||
|
|
||||||
const access = accessBooking(booking.guest, lastName, user, bv)
|
const access = accessBooking(booking.guest, lastName, user, bv)
|
||||||
@@ -166,3 +202,22 @@ export async function Receipt({ refId }: { refId: string }) {
|
|||||||
|
|
||||||
return notFound()
|
return notFound()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function RenderAdditionalInfoForm({
|
||||||
|
confirmationNumber,
|
||||||
|
lastName,
|
||||||
|
}: {
|
||||||
|
confirmationNumber: string
|
||||||
|
lastName: string
|
||||||
|
}) {
|
||||||
|
return (
|
||||||
|
<main className={styles.main}>
|
||||||
|
<div className={styles.form}>
|
||||||
|
<AdditionalInfoForm
|
||||||
|
confirmationNumber={confirmationNumber}
|
||||||
|
lastName={lastName}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|||||||
@@ -60,6 +60,9 @@ export namespace endpoints {
|
|||||||
export function booking(confirmationNumber: string) {
|
export function booking(confirmationNumber: string) {
|
||||||
return `${bookings}/${confirmationNumber}`
|
return `${bookings}/${confirmationNumber}`
|
||||||
}
|
}
|
||||||
|
export function find(confirmationNumber: string) {
|
||||||
|
return `${bookings}/${confirmationNumber}/find`
|
||||||
|
}
|
||||||
export function cancel(confirmationNumber: string) {
|
export function cancel(confirmationNumber: string) {
|
||||||
return `${bookings}/${confirmationNumber}/cancel`
|
return `${bookings}/${confirmationNumber}/cancel`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -141,6 +141,20 @@ export const getBookingConfirmation = cache(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
export const findBooking = cache(async function getMemoizedFindBooking(
|
||||||
|
confirmationNumber: string,
|
||||||
|
lastName: string,
|
||||||
|
firstName: string,
|
||||||
|
email: string
|
||||||
|
) {
|
||||||
|
return serverClient().booking.findBooking({
|
||||||
|
confirmationNumber,
|
||||||
|
lastName,
|
||||||
|
firstName,
|
||||||
|
email,
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
export const getLinkedReservations = cache(
|
export const getLinkedReservations = cache(
|
||||||
async function getMemoizedLinkedReservations(input: LinkedReservationsInput) {
|
async function getMemoizedLinkedReservations(input: LinkedReservationsInput) {
|
||||||
return serverClient().booking.linkedReservations(input)
|
return serverClient().booking.linkedReservations(input)
|
||||||
|
|||||||
@@ -184,6 +184,14 @@ export const getLinkedReservationsInput = z.object({
|
|||||||
),
|
),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
export const findBookingInput = z.object({
|
||||||
|
confirmationNumber: z.string(),
|
||||||
|
firstName: z.string(),
|
||||||
|
lastName: z.string(),
|
||||||
|
email: z.string(),
|
||||||
|
lang: z.nativeEnum(Lang).optional(),
|
||||||
|
})
|
||||||
|
|
||||||
export type LinkedReservationsInput = z.input<typeof getLinkedReservationsInput>
|
export type LinkedReservationsInput = z.input<typeof getLinkedReservationsInput>
|
||||||
|
|
||||||
export const getBookingStatusInput = confirmationNumberInput
|
export const getBookingStatusInput = confirmationNumberInput
|
||||||
|
|||||||
@@ -11,12 +11,13 @@ import { getHotel } from "../hotels/utils"
|
|||||||
import { encrypt } from "../utils/encryption"
|
import { encrypt } from "../utils/encryption"
|
||||||
import {
|
import {
|
||||||
createRefIdInput,
|
createRefIdInput,
|
||||||
|
findBookingInput,
|
||||||
getBookingInput,
|
getBookingInput,
|
||||||
getBookingStatusInput,
|
getBookingStatusInput,
|
||||||
getLinkedReservationsInput,
|
getLinkedReservationsInput,
|
||||||
} from "./input"
|
} from "./input"
|
||||||
import { createBookingSchema } from "./output"
|
import { createBookingSchema } from "./output"
|
||||||
import { getBookedHotelRoom, getBooking } from "./utils"
|
import { findBooking, getBookedHotelRoom, getBooking } from "./utils"
|
||||||
|
|
||||||
export const bookingQueryRouter = router({
|
export const bookingQueryRouter = router({
|
||||||
get: safeProtectedServiceProcedure
|
get: safeProtectedServiceProcedure
|
||||||
@@ -69,6 +70,66 @@ export const bookingQueryRouter = router({
|
|||||||
|
|
||||||
metricsGetBooking.success()
|
metricsGetBooking.success()
|
||||||
|
|
||||||
|
return {
|
||||||
|
...hotelData,
|
||||||
|
booking,
|
||||||
|
room: getBookedHotelRoom(
|
||||||
|
hotelData.roomCategories,
|
||||||
|
booking.roomTypeCode
|
||||||
|
),
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
findBooking: safeProtectedServiceProcedure
|
||||||
|
.input(findBookingInput)
|
||||||
|
|
||||||
|
.query(async function ({
|
||||||
|
ctx,
|
||||||
|
input: { confirmationNumber, lastName, firstName, email },
|
||||||
|
}) {
|
||||||
|
const findBookingCounter = createCounter("trpc.booking", "findBooking")
|
||||||
|
const metricsFindBooking = findBookingCounter.init({ confirmationNumber })
|
||||||
|
|
||||||
|
metricsFindBooking.start()
|
||||||
|
|
||||||
|
const booking = await findBooking(
|
||||||
|
confirmationNumber,
|
||||||
|
ctx.lang,
|
||||||
|
ctx.serviceToken,
|
||||||
|
lastName,
|
||||||
|
firstName,
|
||||||
|
email
|
||||||
|
)
|
||||||
|
|
||||||
|
if (!booking) {
|
||||||
|
metricsFindBooking.dataError(
|
||||||
|
`Fail to find booking data for ${confirmationNumber}`,
|
||||||
|
{ confirmationNumber }
|
||||||
|
)
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
|
const hotelData = await getHotel(
|
||||||
|
{
|
||||||
|
hotelId: booking.hotelId,
|
||||||
|
isCardOnlyPayment: false,
|
||||||
|
language: ctx.lang,
|
||||||
|
},
|
||||||
|
ctx.serviceToken
|
||||||
|
)
|
||||||
|
|
||||||
|
if (!hotelData) {
|
||||||
|
metricsFindBooking.dataError(
|
||||||
|
`Failed to find hotel data for ${booking.hotelId}`,
|
||||||
|
{
|
||||||
|
hotelId: booking.hotelId,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
throw serverErrorByStatus(404)
|
||||||
|
}
|
||||||
|
|
||||||
|
metricsFindBooking.success()
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...hotelData,
|
...hotelData,
|
||||||
booking,
|
booking,
|
||||||
|
|||||||
@@ -78,6 +78,63 @@ export async function getBooking(
|
|||||||
return booking.data
|
return booking.data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export async function findBooking(
|
||||||
|
confirmationNumber: string,
|
||||||
|
lang: Lang,
|
||||||
|
token: string,
|
||||||
|
lastName?: string,
|
||||||
|
firstName?: string,
|
||||||
|
email?: string
|
||||||
|
) {
|
||||||
|
const findBookingCounter = createCounter("booking", "find")
|
||||||
|
const metricsGetBooking = findBookingCounter.init({
|
||||||
|
confirmationNumber,
|
||||||
|
lastName,
|
||||||
|
firstName,
|
||||||
|
email,
|
||||||
|
})
|
||||||
|
|
||||||
|
metricsGetBooking.start()
|
||||||
|
|
||||||
|
const apiResponse = await api.post(
|
||||||
|
api.endpoints.v1.Booking.find(confirmationNumber),
|
||||||
|
{
|
||||||
|
headers: {
|
||||||
|
Authorization: `Bearer ${token}`,
|
||||||
|
},
|
||||||
|
body: {
|
||||||
|
lastName,
|
||||||
|
firstName,
|
||||||
|
email,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{ language: toApiLang(lang) }
|
||||||
|
)
|
||||||
|
|
||||||
|
if (!apiResponse.ok) {
|
||||||
|
await metricsGetBooking.httpError(apiResponse)
|
||||||
|
|
||||||
|
// If the booking is not found, return null.
|
||||||
|
// This scenario is expected to happen when a logged in user trying to access a booking that doesn't belong to them.
|
||||||
|
if (apiResponse.status === 400) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
|
throw serverErrorByStatus(apiResponse.status, apiResponse)
|
||||||
|
}
|
||||||
|
|
||||||
|
const apiJson = await apiResponse.json()
|
||||||
|
const booking = bookingConfirmationSchema.safeParse(apiJson)
|
||||||
|
if (!booking.success) {
|
||||||
|
metricsGetBooking.validationError(booking.error)
|
||||||
|
throw badRequestError()
|
||||||
|
}
|
||||||
|
|
||||||
|
metricsGetBooking.success()
|
||||||
|
|
||||||
|
return booking.data
|
||||||
|
}
|
||||||
|
|
||||||
export async function cancelBooking(
|
export async function cancelBooking(
|
||||||
confirmationNumber: string,
|
confirmationNumber: string,
|
||||||
language: Lang,
|
language: Lang,
|
||||||
|
|||||||
Reference in New Issue
Block a user