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 =
|
const isFlexBooking =
|
||||||
booking.rateDefinition.cancellationRule ===
|
booking.rateDefinition.cancellationRule ===
|
||||||
CancellationRuleEnum.CancellableBefore6PM
|
CancellationRuleEnum.CancellableBefore6PM
|
||||||
|
const isGuaranteedFlexBooking = booking.guaranteeInfo && isFlexBooking
|
||||||
|
|
||||||
const ancillaries: TrackingSDKAncillaries = rooms
|
const ancillaries: TrackingSDKAncillaries = rooms
|
||||||
.flatMap((r) => r.packages)
|
.flatMap((r) => r.packages)
|
||||||
@@ -167,15 +168,13 @@ export function getTracking(
|
|||||||
? "yes"
|
? "yes"
|
||||||
: "no"
|
: "no"
|
||||||
: "na",
|
: "na",
|
||||||
guaranteedProduct: booking.guaranteeInfo && isFlexBooking ? "room" : "na",
|
guaranteedProduct: isGuaranteedFlexBooking ? "room" : "na",
|
||||||
}
|
}
|
||||||
|
|
||||||
const paymentInfo: TrackingSDKPaymentInfo = {
|
const paymentInfo: TrackingSDKPaymentInfo = {
|
||||||
paymentStatus: "confirmed",
|
paymentStatus: isGuaranteedFlexBooking
|
||||||
status:
|
? "glacardsaveconfirmed"
|
||||||
booking.guaranteeInfo && isFlexBooking
|
: "confirmed",
|
||||||
? "glacardsaveconfirmed"
|
|
||||||
: undefined,
|
|
||||||
type:
|
type:
|
||||||
booking.guaranteeInfo?.cardType ?? paymentInfoSessionData?.paymentMethod,
|
booking.guaranteeInfo?.cardType ?? paymentInfoSessionData?.paymentMethod,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ export type TrackingSDKPaymentInfo = {
|
|||||||
isedcc?: string
|
isedcc?: string
|
||||||
isSavedCard?: boolean
|
isSavedCard?: boolean
|
||||||
isCreditCard?: boolean
|
isCreditCard?: boolean
|
||||||
paymentStatus?: "confirmed"
|
paymentStatus?: "confirmed" | "glacardsaveconfirmed"
|
||||||
paymentType?: string
|
paymentType?: string
|
||||||
type?: string
|
type?: string
|
||||||
status?: string
|
status?: string
|
||||||
|
|||||||
Reference in New Issue
Block a user