Merged in chore/move-enter-details (pull request #2778)
Chore/move enter details Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { CurrencyEnum } from "@scandic-hotels/common/constants/currency"
|
||||
import { trackEvent } from "@scandic-hotels/common/tracking/base"
|
||||
import { trackEvent } from "@scandic-hotels/tracking/base"
|
||||
import { BreakfastPackageEnum } from "@scandic-hotels/trpc/enums/breakfast"
|
||||
|
||||
import type { PackageSchema } from "@scandic-hotels/trpc/types/bookingConfirmation"
|
||||
@@ -35,13 +35,17 @@ export function trackMyStayPageLink(ctaName: string) {
|
||||
})
|
||||
}
|
||||
|
||||
type LateArrivalGuarantee = "mandatory" | "yes" | "no" | "na"
|
||||
|
||||
export function trackGlaSaveCardAttempt(
|
||||
hotelId: string,
|
||||
savedCreditCard: CreditCard | undefined,
|
||||
lateArrivalGuarantee: LateArrivalGuarantee
|
||||
) {
|
||||
export function trackGlaSaveCardAttempt({
|
||||
hotelId,
|
||||
hasSavedCreditCard,
|
||||
creditCardType,
|
||||
lateArrivalGuarantee,
|
||||
}: {
|
||||
hotelId: string
|
||||
hasSavedCreditCard: boolean
|
||||
creditCardType?: string
|
||||
lateArrivalGuarantee: "mandatory" | "yes" | "no" | "na"
|
||||
}) {
|
||||
trackEvent({
|
||||
event: "glaCardSaveAttempt",
|
||||
hotelInfo: {
|
||||
@@ -51,8 +55,8 @@ export function trackGlaSaveCardAttempt(
|
||||
},
|
||||
paymentInfo: {
|
||||
status: "glacardsaveattempt",
|
||||
isSavedCreditCard: !!savedCreditCard,
|
||||
type: savedCreditCard?.cardType,
|
||||
isSavedCreditCard: hasSavedCreditCard,
|
||||
type: creditCardType,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user