PR Fixes
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user