Merged in feat/SW-1149-handle-status-polling (pull request #1562)
Feat/SW-1149 handle status polling * feat(SW-1149): move terms and conditions sections to separate component and added copy * feat(SW-1149): Added client component to handle success callback for payment flow * fix: check for bookingCompleted status as well * feat(SW-1587): use alert instead of toast for showing payment errors * fix: added enum for payment callback status * fix: proper way of checking for multiple statuses * fix: update schema type * fix: use localised link to customer service * fix: update to use enum for status strings Approved-by: Arvid Norlin
This commit is contained in:
@@ -88,17 +88,17 @@ export type Guest = z.output<typeof guestSchema>
|
||||
|
||||
export const packageSchema = z
|
||||
.object({
|
||||
type: z.string().nullable(),
|
||||
type: z.string().nullish(),
|
||||
description: nullableStringValidator,
|
||||
code: z.string().nullable().default(""),
|
||||
code: nullableStringValidator,
|
||||
price: z.object({
|
||||
unit: z.number().int().nullable(),
|
||||
unit: z.number().int().nullish(),
|
||||
unitPrice: z.number(),
|
||||
totalPrice: z.number().nullable(),
|
||||
totalUnit: z.number().int().nullable(),
|
||||
totalPrice: z.number().nullish(),
|
||||
totalUnit: z.number().int().nullish(),
|
||||
currency: z.string().default(""),
|
||||
}),
|
||||
comment: z.string().nullable().optional(),
|
||||
comment: z.string().nullish(),
|
||||
})
|
||||
.transform((packageData) => ({
|
||||
type: packageData.type,
|
||||
|
||||
Reference in New Issue
Block a user