feat: SW-2028 Updated Guarantee notification

This commit is contained in:
Hrishikesh Vaipurkar
2025-03-26 17:18:34 +01:00
parent 13213efb29
commit 03deea1102
10 changed files with 72 additions and 20 deletions

View File

@@ -12,6 +12,7 @@ import {
BookingStatusEnum,
PAYMENT_METHOD_TITLES,
PaymentMethodEnum,
REDEMPTION,
} from "@/constants/booking"
import {
bookingConfirmation,
@@ -31,7 +32,7 @@ import useLang from "@/hooks/useLang"
import { trackPaymentEvent } from "@/utils/tracking"
import { bedTypeMap } from "../../utils"
import ConfirmBooking from "../Confirm"
import ConfirmBooking, { ConfirmBookingRedemption } from "../Confirm"
import PriceChangeDialog from "../PriceChangeDialog"
import GuaranteeDetails from "./GuaranteeDetails"
import { hasFlexibleRate, hasPrepaidRate, isPaymentMethodEnum } from "./helpers"
@@ -408,7 +409,9 @@ export default function PaymentClient({
onSubmit={methods.handleSubmit(handleSubmit)}
id={formId}
>
{hasOnlyFlexRates && !bookingMustBeGuaranteed ? (
{booking.searchType === REDEMPTION ? (
<ConfirmBookingRedemption />
) : hasOnlyFlexRates && !bookingMustBeGuaranteed ? (
<ConfirmBooking savedCreditCards={savedCreditCards} />
) : (
<>