Merged in fix/SW-2565-tracking-guarantee-status (pull request #2502)
fix(SW-2565): change status to paymentStatus * fix(SW-2565): change status to paymentStatus Approved-by: Erik Tiekstra Approved-by: Matilda Landström
This commit is contained in:
@@ -86,6 +86,7 @@ export function getTracking(
|
||||
const isFlexBooking =
|
||||
booking.rateDefinition.cancellationRule ===
|
||||
CancellationRuleEnum.CancellableBefore6PM
|
||||
const isGuaranteedFlexBooking = booking.guaranteeInfo && isFlexBooking
|
||||
|
||||
const ancillaries: TrackingSDKAncillaries = rooms
|
||||
.flatMap((r) => r.packages)
|
||||
@@ -167,15 +168,13 @@ export function getTracking(
|
||||
? "yes"
|
||||
: "no"
|
||||
: "na",
|
||||
guaranteedProduct: booking.guaranteeInfo && isFlexBooking ? "room" : "na",
|
||||
guaranteedProduct: isGuaranteedFlexBooking ? "room" : "na",
|
||||
}
|
||||
|
||||
const paymentInfo: TrackingSDKPaymentInfo = {
|
||||
paymentStatus: "confirmed",
|
||||
status:
|
||||
booking.guaranteeInfo && isFlexBooking
|
||||
? "glacardsaveconfirmed"
|
||||
: undefined,
|
||||
paymentStatus: isGuaranteedFlexBooking
|
||||
? "glacardsaveconfirmed"
|
||||
: "confirmed",
|
||||
type:
|
||||
booking.guaranteeInfo?.cardType ?? paymentInfoSessionData?.paymentMethod,
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ export type TrackingSDKPaymentInfo = {
|
||||
isedcc?: string
|
||||
isSavedCard?: boolean
|
||||
isCreditCard?: boolean
|
||||
paymentStatus?: "confirmed"
|
||||
paymentStatus?: "confirmed" | "glacardsaveconfirmed"
|
||||
paymentType?: string
|
||||
type?: string
|
||||
status?: string
|
||||
|
||||
Reference in New Issue
Block a user