Merged in fix/refactor-currency-display (pull request #3434)

fix(SW-3616): Handle EuroBonus point type everywhere

* Add tests to formatPrice

* formatPrice

* More work replacing config with api points type

* More work replacing config with api points type

* More fixing with currency

* maybe actually fixed it

* Fix MyStay

* Clean up

* Fix comments

* Merge branch 'master' into fix/refactor-currency-display

* Fix calculateTotalPrice for EB points + SF points + cash


Approved-by: Joakim Jäderberg
This commit is contained in:
Anton Gunnarsson
2026-01-15 09:32:17 +00:00
parent c61ddaf94d
commit 16fbdb7ae0
59 changed files with 729 additions and 282 deletions

View File

@@ -1,5 +1,6 @@
import { CurrencyEnum } from "@scandic-hotels/common/constants/currency"
import { HotelPin } from "../types"
import { PointType } from "@scandic-hotels/common/constants/pointType"
export const hotelPins: HotelPin[] = [
{
@@ -15,6 +16,7 @@ export const hotelPins: HotelPin[] = [
voucherPrice: null,
rateType: "Regular",
currency: "SEK",
pointsType: PointType.SCANDIC,
amenities: [
{
filter: "Hotel facilities",
@@ -90,6 +92,7 @@ export const hotelPins: HotelPin[] = [
voucherPrice: null,
rateType: "Regular",
currency: "SEK",
pointsType: PointType.SCANDIC,
amenities: [
{
filter: "Hotel facilities",
@@ -168,6 +171,7 @@ export const hotelPins: HotelPin[] = [
voucherPrice: null,
rateType: "Regular",
currency: "CC",
pointsType: PointType.SCANDIC,
amenities: [
{
filter: "Hotel facilities",
@@ -242,6 +246,7 @@ export const hotelPins: HotelPin[] = [
voucherPrice: null,
rateType: "Regular",
currency: "Points",
pointsType: PointType.SCANDIC,
amenities: [
{
filter: "None",
@@ -316,6 +321,7 @@ export const hotelPins: HotelPin[] = [
voucherPrice: 1,
rateType: "Regular",
currency: "Voucher",
pointsType: PointType.SCANDIC,
amenities: [
{
filter: "Hotel facilities",