Merge remote-tracking branch 'origin/develop' into feat/SW-415-select-room-card
This commit is contained in:
@@ -5,3 +5,48 @@ export enum BookingStatusEnum {
|
||||
}
|
||||
|
||||
export const BOOKING_CONFIRMATION_NUMBER = "bookingConfirmationNumber"
|
||||
|
||||
export enum PaymentMethodEnum {
|
||||
card = "card",
|
||||
swish = "swish",
|
||||
vipps = "vipps",
|
||||
mobilePay = "mobilePay",
|
||||
applePay = "applePay",
|
||||
googlePay = "googlePay",
|
||||
alipayPlus = "alipayPlus",
|
||||
weChatPay = "weChatPay",
|
||||
payPal = "payPal",
|
||||
klarna = "klarna",
|
||||
}
|
||||
|
||||
export const PAYMENT_METHOD_TITLES: Record<
|
||||
keyof typeof PaymentMethodEnum,
|
||||
string
|
||||
> = {
|
||||
card: "Credit card",
|
||||
swish: "Swish",
|
||||
vipps: "Vipps",
|
||||
mobilePay: "MobilePay",
|
||||
applePay: "Apple Pay",
|
||||
googlePay: "Google Pay",
|
||||
alipayPlus: "Alipay+",
|
||||
weChatPay: "WeChat Pay",
|
||||
payPal: "PayPal",
|
||||
klarna: "Klarna",
|
||||
}
|
||||
|
||||
export const PAYMENT_METHOD_ICONS: Record<
|
||||
keyof typeof PaymentMethodEnum,
|
||||
string
|
||||
> = {
|
||||
card: "/_static/icons/payment/mastercard.svg",
|
||||
swish: "/_static/icons/payment/swish.svg",
|
||||
vipps: "/_static/icons/payment/vipps.svg",
|
||||
mobilePay: "/_static/icons/payment/mobilepay.svg",
|
||||
applePay: "/_static/icons/payment/apple-pay.svg",
|
||||
googlePay: "/_static/icons/payment/google-pay.svg",
|
||||
alipayPlus: "/_static/icons/payment/alipay-plus.svg",
|
||||
weChatPay: "/_static/icons/payment/wechat-pay.svg",
|
||||
payPal: "/_static/icons/payment/paypal.svg",
|
||||
klarna: "/_static/icons/payment/klarna.svg",
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
export const bookingTermsAndConditions = {
|
||||
da: "https://www.scandichotels.dk/kundeservice/priser-og-bookingvilkar/vilkar-og-betingelser3",
|
||||
de: "https://www.scandichotels.de/kundenbetreuung/preise-und-richtlinien/reservierungsbedingungen",
|
||||
en: "https://www.scandichotels.com/customer-service/rates-and-policies/terms-conditions",
|
||||
fi: "https://www.scandichotels.fi/asiakaspalvelu/hinnat-ja-varausehdot/varausehdot",
|
||||
no: "https://www.scandichotels.no/kundeservice/priser-og-bestillingsvilkar/reservasjonsbetingelser",
|
||||
sv: "https://www.scandichotels.se/kundservice/priser-och-bokningsregler/bokningsregler",
|
||||
}
|
||||
|
||||
export const privacyPolicy = {
|
||||
da: "https://www.scandichotels.dk/kundeservice/priser-og-bookingvilkar/persondatapolitik",
|
||||
de: "https://www.scandichotels.de/kundenbetreuung/preise-und-richtlinien/reservierungsbedingungen",
|
||||
en: "https://www.scandichotels.com/customer-service/rates-and-policies/privacy-policy",
|
||||
fi: "https://www.scandichotels.fi/asiakaspalvelu/hinnat-ja-varausehdot/tietosuojaseloste",
|
||||
no: "https://www.scandichotels.no/kundeservice/priser-og-bestillingsvilkar/personvernpolicy",
|
||||
sv: "https://www.scandichotels.se/kundservice/priser-och-bokningsregler/integritetspolicy",
|
||||
}
|
||||
@@ -59,7 +59,7 @@ export const details = {
|
||||
}
|
||||
|
||||
// TODO: Translate paths
|
||||
export const payments = {
|
||||
export const payment = {
|
||||
en: `${hotelReservation.en}/payment`,
|
||||
sv: `${hotelReservation.sv}/payment`,
|
||||
no: `${hotelReservation.no}/payment`,
|
||||
@@ -78,24 +78,14 @@ export const selectHotelMap = {
|
||||
de: `${selectHotel.de}/map`,
|
||||
}
|
||||
|
||||
/** @type {import('@/types/routes').LangRoute} */
|
||||
export const payment = {
|
||||
en: `${hotelReservation.en}/payment`,
|
||||
sv: `${hotelReservation.sv}/betalning`,
|
||||
no: `${hotelReservation.no}/betaling`,
|
||||
fi: `${hotelReservation.fi}/maksu`,
|
||||
da: `${hotelReservation.da}/payment`,
|
||||
de: `${hotelReservation.de}/bezahlung`,
|
||||
}
|
||||
|
||||
/** @type {import('@/types/routes').LangRoute} */
|
||||
export const bookingConfirmation = {
|
||||
en: `${hotelReservation.en}/booking-confirmation`,
|
||||
sv: `${hotelReservation.sv}/bokningsbekraftelse`,
|
||||
sv: `${hotelReservation.sv}/booking-confirmation`,
|
||||
no: `${hotelReservation.no}/booking-confirmation`,
|
||||
fi: `${hotelReservation.fi}/varausvahvistus`,
|
||||
fi: `${hotelReservation.fi}/booking-confirmation`,
|
||||
da: `${hotelReservation.da}/booking-confirmation`,
|
||||
de: `${hotelReservation.de}/buchungsbesttigung`,
|
||||
de: `${hotelReservation.de}/booking-confirmation`,
|
||||
}
|
||||
|
||||
export const bookingFlow = [
|
||||
@@ -103,7 +93,8 @@ export const bookingFlow = [
|
||||
...Object.values(selectBed),
|
||||
...Object.values(breakfast),
|
||||
...Object.values(details),
|
||||
...Object.values(payments),
|
||||
...Object.values(payment),
|
||||
...Object.values(selectHotelMap),
|
||||
...Object.values(bookingConfirmation),
|
||||
...Object.values(selectRate),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user