Merged in fix/STAY-2-GLA-cancelled (pull request #3109)

Fix/STAY-2 GLA cancelled

* fix: show toast on cancelling GLA flow

* fix: show the ancillary GLA errors as inline alerts


Approved-by: Bianca Widstam
Approved-by: Erik Tiekstra
This commit is contained in:
Christel Westerberg
2025-11-12 08:29:05 +00:00
parent 2c044de187
commit c3b71a05d9
9 changed files with 236 additions and 136 deletions

View File

@@ -1,3 +1,4 @@
import type { AlertTypeEnum } from "@scandic-hotels/common/constants/alert"
import type {
ancillaryPackagesSchema,
packagesSchema,
@@ -24,6 +25,12 @@ export interface AddedAncillariesProps {
booking: Room
}
export interface AncillaryItem {
code: string
quantity: number
comment: string | undefined
}
export interface AddAncillaryFlowModalProps {
booking: Room
packages: Packages | null
@@ -34,15 +41,20 @@ export interface AddAncillaryFlowModalProps {
export interface SelectQuantityStepProps {
user: User | null
}
export interface AncillaryErrorMessage {
type: AlertTypeEnum
message: string
}
export interface ConfirmationStepProps {
savedCreditCards: CreditCard[] | null
user: User | null
error: AncillaryErrorMessage | null
}
export interface StepsProps {
user: User | null
savedCreditCards: CreditCard[] | null
error: AncillaryErrorMessage | null
}
export interface ActionButtonsProps {