Merged in feat/sw-1688-list-breakfast (pull request #1615)
Feat/sw-1688 list breakfast Approved-by: Pontus Dreij
This commit is contained in:
@@ -4,7 +4,7 @@ export interface AncillaryCardProps {
|
||||
imageUrl: string
|
||||
imageOpacity?: number
|
||||
price: {
|
||||
total: number
|
||||
totalPrice: number
|
||||
currency: string
|
||||
text?: string
|
||||
included?: boolean
|
||||
|
||||
@@ -2,14 +2,19 @@ import type { z } from "zod"
|
||||
|
||||
import type { BookingConfirmation } from "@/types/trpc/routers/booking/confirmation"
|
||||
import type { CreditCard, User } from "@/types/user"
|
||||
import type { ancillaryPackagesSchema } from "@/server/routers/hotels/output"
|
||||
import type {
|
||||
ancillaryPackagesSchema,
|
||||
packagesSchema,
|
||||
} from "@/server/routers/hotels/output"
|
||||
|
||||
export type Ancillaries = z.output<typeof ancillaryPackagesSchema>
|
||||
export type Ancillary = Ancillaries[number]
|
||||
export type SelectedAncillary = Ancillary["ancillaryContent"][number]
|
||||
export type Packages = z.output<typeof packagesSchema>
|
||||
|
||||
export interface AncillariesProps extends Pick<BookingConfirmation, "booking"> {
|
||||
ancillaries: Ancillaries | null
|
||||
packages: Packages | null
|
||||
user: User | null
|
||||
savedCreditCards: CreditCard[] | null
|
||||
refId: string
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
export enum BreakfastPackageEnum {
|
||||
FREE_MEMBER_BREAKFAST = "BRF0",
|
||||
FREE_CHILD_BREAKFAST = "BRFINF",
|
||||
REGULAR_BREAKFAST = "BRF1",
|
||||
SPECIAL_PACKAGE_BREAKFAST = "F01S",
|
||||
ANCILLARY_REGULAR_BREAKFAST = "BRF2",
|
||||
ANCILLARY_CHILD_PAYING_BREAKFAST = "BRF2C",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user