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:
Tobias Johansson
2025-03-20 07:38:29 +00:00
parent 200ed55a2c
commit ac493fe325
25 changed files with 384 additions and 155 deletions

View File

@@ -712,6 +712,7 @@
"Surprise!": "Overraskelse!",
"Surprises": "Surprises",
"TUI Points": "TUI Points",
"Taking longer than usual": "Tager længere end normalt",
"Tell us what information and updates you'd like to receive, and how, by clicking the link below.": "Fortæl os, hvilke oplysninger og opdateringer du gerne vil modtage, og hvordan, ved at klikke på linket nedenfor.",
"Terms and conditions": "Vilkår og betingelser",
"Thank you": "Tak",
@@ -786,6 +787,7 @@
"View your booking": "Se din booking",
"Visiting address": "Besøgsadresse",
"Voucher": "Voucher",
"We are still confirming your booking. This is usually a matter of minutes and we do apologise for the wait. Please check your inbox for a booking confirmation email and if you still haven't received it by end of day, please contact our <link>customer support</link>.": "Vi er stadig bekræftende din booking. Dette er normalt en sak, der tager få minutter, og vi beklager ventetiden. Bedes du tjekke din indbakke for en booking bekræftelsesmail og hvis du stadig ikke har modtaget den indtil kl. 17.00, bedes du kontakte vores <link>kundesupport</link>.",
"We could not add a card right now, please try again later.": "Vi kunne ikke tilføje et kort lige nu. Prøv venligst igen senere.",
"We could not connect your accounts": "We could not connect your accounts",
"We could not connect your accounts to give you access. Please contact us and well help you resolve this issue.": "We could not connect your accounts to give you access. Please contact us and well help you resolve this issue.",

View File

@@ -711,6 +711,7 @@
"Surprise!": "Überraschung!",
"Surprises": "Surprises",
"TUI Points": "TUI Points",
"Taking longer than usual": "Länger als normal",
"Tell us what information and updates you'd like to receive, and how, by clicking the link below.": "Teilen Sie uns mit, welche Informationen und Updates Sie wie erhalten möchten, indem Sie auf den unten stehenden Link klicken.",
"Terms and conditions": "Geschäftsbedingungen",
"Thank you": "Danke",
@@ -784,6 +785,7 @@
"View your booking": "Ihre Buchung ansehen",
"Visiting address": "Besuchsadresse",
"Voucher": "Gutschein",
"We are still confirming your booking. This is usually a matter of minutes and we do apologise for the wait. Please check your inbox for a booking confirmation email and if you still haven't received it by end of day, please contact our <link>customer support</link>.": "Wir bestätigen Ihre Buchung noch. Dies dauert normalerweise nur wenige Minuten und wir bitten um Ihr Verständnis. Bitte überprüfen Sie Ihre E-Mail-Postfach für eine Buchungsbestätigung und wenn Sie die E-Mail noch nicht erhalten haben, kontaktieren Sie uns bitte bis zum Ende des Tages unter <link>Kundensupport</link>.",
"We could not add a card right now, please try again later.": "Wir konnten momentan keine Karte hinzufügen. Bitte versuchen Sie es später noch einmal.",
"We could not connect your accounts": "We could not connect your accounts",
"We could not connect your accounts to give you access. Please contact us and well help you resolve this issue.": "We could not connect your accounts to give you access. Please contact us and well help you resolve this issue.",

View File

@@ -710,6 +710,7 @@
"Surprise!": "Surprise!",
"Surprises": "Surprises",
"TUI Points": "TUI Points",
"Taking longer than usual": "Taking longer than usual",
"Tell us what information and updates you'd like to receive, and how, by clicking the link below.": "Tell us what information and updates you'd like to receive, and how, by clicking the link below.",
"Terms and conditions": "Terms and conditions",
"Thank you": "Thank you",
@@ -782,6 +783,7 @@
"View your booking": "View your booking",
"Visiting address": "Visiting address",
"Voucher": "Voucher",
"We are still confirming your booking. This is usually a matter of minutes and we do apologise for the wait. Please check your inbox for a booking confirmation email and if you still haven't received it by end of day, please contact our <link>customer support</link>.": "We are still confirming your booking. This is usually a matter of minutes and we do apologise for the wait. Please check your inbox for a booking confirmation email and if you still haven't received it by end of day, please contact our <link>customer support</link>.",
"We could not add a card right now, please try again later.": "We could not add a card right now, please try again later.",
"We could not connect your accounts": "We could not connect your accounts",
"We could not connect your accounts to give you access. Please contact us and well help you resolve this issue.": "We could not connect your accounts to give you access. Please contact us and well help you resolve this issue.",

View File

@@ -711,6 +711,7 @@
"Surprise!": "Yllätys!",
"Surprises": "Surprises",
"TUI Points": "TUI Points",
"Taking longer than usual": "Tällainen kestää pidemmän aikaa kuin normaalisti",
"Tell us what information and updates you'd like to receive, and how, by clicking the link below.": "Kerro meille, mitä tietoja ja päivityksiä haluat saada ja miten, napsauttamalla alla olevaa linkkiä.",
"Terms and conditions": "Säännöt ja ehdot",
"Thank you": "Kiitos",
@@ -784,6 +785,7 @@
"View your booking": "Näytä varauksesi",
"Visiting address": "Käyntiosoite",
"Voucher": "Ravintolakuponki",
"We are still confirming your booking. This is usually a matter of minutes and we do apologise for the wait. Please check your inbox for a booking confirmation email and if you still haven't received it by end of day, please contact our <link>customer support</link>.": "Olemme vielä vahvistamassa varauksessasi. Tämä tavallisesti kestää muutaman minuutin, ja me olemme pahoillamme siitä odotusaikaa. Tarkista postilaatikkoosi varauksen vahvistamiseksi ja jos et ole vielä saanut sitä päivän loppuun mennessä, ota yhteyttä <link>asiakaspalveluumme</link>.",
"We could not add a card right now, please try again later.": "Emme voineet lisätä korttia juuri nyt. Yritä myöhemmin uudelleen.",
"We could not connect your accounts": "We could not connect your accounts",
"We could not connect your accounts to give you access. Please contact us and well help you resolve this issue.": "We could not connect your accounts to give you access. Please contact us and well help you resolve this issue.",

View File

@@ -708,6 +708,7 @@
"Surprise!": "Overraskelse!",
"Surprises": "Surprises",
"TUI Points": "TUI Points",
"Taking longer than usual": "Tar lenger tid enn normalt",
"Tell us what information and updates you'd like to receive, and how, by clicking the link below.": "Fortell oss hvilken informasjon og hvilke oppdateringer du ønsker å motta, og hvordan, ved å klikke på lenken nedenfor.",
"Terms and conditions": "Vilkår og betingelser",
"Thank you": "Takk",
@@ -780,6 +781,7 @@
"View your booking": "Se din bestilling",
"Visiting address": "Besøksadresse",
"Voucher": "Voucher",
"We are still confirming your booking. This is usually a matter of minutes and we do apologise for the wait. Please check your inbox for a booking confirmation email and if you still haven't received it by end of day, please contact our <link>customer support</link>.": "Vi bekrefter din bestilling. Dette gjør vi normalt i løpet av noen minutter, og vi beklager ventetiden. Vennligst sjekk e-posten din for en bestillingsbekreftelsesmail og hvis du ikke har mottatt den før kl. 17.00, vennligst kontakt vår <link>kundesupport</link>.",
"We could not add a card right now, please try again later.": "Vi kunne ikke legge til et kort akkurat nå. Prøv igjen senere.",
"We could not connect your accounts": "We could not connect your accounts",
"We could not connect your accounts to give you access. Please contact us and well help you resolve this issue.": "We could not connect your accounts to give you access. Please contact us and well help you resolve this issue.",

View File

@@ -709,6 +709,7 @@
"Surprise!": "Överraskning!",
"Surprises": "Surprises",
"TUI Points": "TUI Points",
"Taking longer than usual": "Tar längre tid än vanligt",
"Tell us what information and updates you'd like to receive, and how, by clicking the link below.": "Berätta för oss vilken information och vilka uppdateringar du vill få och hur genom att klicka på länken nedan.",
"Terms and conditions": "Allmänna villkor",
"Thank you": "Tack",
@@ -782,6 +783,7 @@
"View your booking": "Visa din bokning",
"Visiting address": "Besöksadress",
"Voucher": "Kupong",
"We are still confirming your booking. This is usually a matter of minutes and we do apologise for the wait. Please check your inbox for a booking confirmation email and if you still haven't received it by end of day, please contact our <link>customer support</link>.": "Vi bekräftar din bokning. Detta gör vi normalt inom några minuter, och vi beklagar denna väntan. Vänligen kontrollera din inkorg för en bokningsbekräftelse och om du inte har fått detta senare på dagen, vänligen kontakta vår <link>kundsupport</link>.",
"We could not add a card right now, please try again later.": "Vi kunde inte lägga till ett kort just nu, vänligen försök igen senare.",
"We could not connect your accounts": "We could not connect your accounts",
"We could not connect your accounts to give you access. Please contact us and well help you resolve this issue.": "We could not connect your accounts to give you access. Please contact us and well help you resolve this issue.",