feat(SW-2116): Use refId instead of confirmationNumber
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ import type {
|
||||
} from "@/types/trpc/routers/booking/confirmation"
|
||||
|
||||
export interface BookingConfirmationProps {
|
||||
confirmationNumber: string
|
||||
refId: string
|
||||
}
|
||||
|
||||
export interface BookingConfirmationRoom extends Room {
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
import type { z } from "zod"
|
||||
|
||||
import type { Room } from "@/types/hotel"
|
||||
import type { BookingConfirmation } from "@/types/trpc/routers/booking/confirmation"
|
||||
import type { linkedReservationSchema } from "@/server/routers/booking/output"
|
||||
|
||||
export interface LinkedReservationSchema
|
||||
extends z.output<typeof linkedReservationSchema> {}
|
||||
|
||||
export interface BookingConfirmationRoomsProps
|
||||
extends Pick<BookingConfirmation, "booking"> {
|
||||
@@ -14,5 +8,4 @@ export interface BookingConfirmationRoomsProps
|
||||
}
|
||||
checkInTime: string
|
||||
checkOutTime: string
|
||||
linkedReservations: LinkedReservationSchema[]
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
export interface LinkedReservationProps {
|
||||
checkInTime: string
|
||||
checkOutTime: string
|
||||
confirmationNumber: string
|
||||
refId: string
|
||||
roomIndex: number
|
||||
roomNumber: number
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ export const cancelStaySchema = z.object({
|
||||
rooms: z.array(
|
||||
z.object({
|
||||
checked: z.boolean(),
|
||||
confirmationNumber: z.string(),
|
||||
refId: z.string(),
|
||||
})
|
||||
),
|
||||
})
|
||||
|
||||
@@ -17,7 +17,6 @@ export interface AncillariesProps extends Pick<BookingConfirmation, "booking"> {
|
||||
packages: Packages | null
|
||||
user: User | null
|
||||
savedCreditCards: CreditCard[] | null
|
||||
refId: string
|
||||
}
|
||||
|
||||
export interface AddedAncillariesProps {
|
||||
@@ -41,7 +40,6 @@ export interface AncillaryGridModalProps {
|
||||
export interface AddAncillaryFlowModalProps
|
||||
extends Pick<BookingConfirmation, "booking"> {
|
||||
packages: Packages | null
|
||||
refId: string
|
||||
user: User | null
|
||||
savedCreditCards: CreditCard[] | null
|
||||
}
|
||||
|
||||
@@ -27,6 +27,7 @@ export interface Room {
|
||||
packages: BookingConfirmation["booking"]["packages"]
|
||||
formattedRoomCost: string
|
||||
rateDefinition: BookingConfirmation["booking"]["rateDefinition"]
|
||||
refId: string
|
||||
roomFeatures?: PackageSchema[] | null
|
||||
roomPoints: number
|
||||
roomPrice: number
|
||||
|
||||
@@ -30,6 +30,7 @@ export type Room = Pick<
|
||||
| "linkedReservations"
|
||||
| "multiRoom"
|
||||
| "rateDefinition"
|
||||
| "refId"
|
||||
| "reservationStatus"
|
||||
| "roomPoints"
|
||||
| "roomTypeCode"
|
||||
|
||||
Reference in New Issue
Block a user