feat: tracking - added discount property and some basics for paymentInfo

This commit is contained in:
Linus Flood
2025-01-08 08:50:50 +01:00
parent 501c6be22a
commit 519795acac
6 changed files with 41 additions and 4 deletions

View File

@@ -13,6 +13,7 @@ import {
TrackingChannelEnum,
type TrackingSDKHotelInfo,
type TrackingSDKPageData,
type TrackingSDKPaymentInfo,
} from "@/types/components/tracking"
import { CurrencyEnum } from "@/types/enums/currency"
@@ -69,6 +70,10 @@ export default async function BookingConfirmation({
bnr: booking.confirmationNumber ?? undefined,
}
const paymentInfo: TrackingSDKPaymentInfo = {
paymentStatus: "confirmed",
}
return (
<>
<Confirmation booking={booking} hotel={hotel} room={room} />
@@ -76,6 +81,7 @@ export default async function BookingConfirmation({
<TrackingSDK
pageData={initialPageTrackingData}
hotelInfo={initialHotelsTrackingData}
// paymentInfo={null}
/>
</Suspense>
</>