This commit is contained in:
Linus Flood
2025-01-10 11:36:23 +01:00
parent d57e3db34b
commit 08d5405cf1
7 changed files with 43 additions and 17 deletions

View File

@@ -105,15 +105,27 @@ export type TrackingSDKData = TrackingSDKPageData & {
pathName: string
}
export type PaymentEvent = {
type BasePaymentEvent = {
event: string
hotelId: string | null
hotelId: string | undefined
method?: string
isSavedCreditCard?: boolean
smsEnable?: boolean
}
export type PaymentAttemptStartEvent = BasePaymentEvent
export type PaymentCancelEvent = BasePaymentEvent
export type PaymentFailEvent = BasePaymentEvent & {
errorMessage?: string
}
export type PaymentEvent =
| PaymentAttemptStartEvent
| PaymentCancelEvent
| PaymentFailEvent
// Old tracking setup types:
// TODO: Remove this when we delete "current site"
export type TrackingProps = {