feat: add packages info to summary
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { RoomPackageCodeEnum } from "../selectRate/roomFilter"
|
||||
import { Child } from "../selectRate/selectRate"
|
||||
|
||||
import { Packages } from "@/types/requests/packages"
|
||||
|
||||
interface Room {
|
||||
adults: number
|
||||
roomTypeCode: string
|
||||
@@ -16,7 +18,7 @@ export interface BookingData {
|
||||
}
|
||||
|
||||
type Price = {
|
||||
price: string
|
||||
price: number
|
||||
currency: string
|
||||
}
|
||||
|
||||
@@ -27,4 +29,5 @@ export type RoomsData = {
|
||||
adults: number
|
||||
children?: Child[]
|
||||
cancellationText: string
|
||||
packages: Packages | null
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ export interface BreakfastSelectionProps extends SectionProps {
|
||||
export interface DetailsProps extends SectionProps {}
|
||||
|
||||
export interface PaymentProps {
|
||||
roomPrice: string
|
||||
roomPrice: number
|
||||
otherPaymentOptions: string[]
|
||||
savedCreditCards: CreditCard[] | null
|
||||
mustBeGuaranteed: boolean
|
||||
|
||||
@@ -4,9 +4,12 @@ import {
|
||||
getBreakfastPackageInputSchema,
|
||||
getRoomPackagesInputSchema,
|
||||
} from "@/server/routers/hotels/input"
|
||||
import { getRoomPackagesSchema } from "@/server/routers/hotels/output"
|
||||
|
||||
export interface BreackfastPackagesInput
|
||||
extends z.input<typeof getBreakfastPackageInputSchema> {}
|
||||
|
||||
export interface PackagesInput
|
||||
extends z.input<typeof getRoomPackagesInputSchema> {}
|
||||
|
||||
export interface Packages extends z.output<typeof getRoomPackagesSchema> {}
|
||||
|
||||
Reference in New Issue
Block a user