Merged in feat/SW-1078-rate-terms-scenarios (pull request #1500)

feat(SW-1078): mixed rate scenario

* feat(SW-1078): mixed rate scenario

* fix: change from css string modification to array join

* refactor: split out big reduce function into smaller parts

* fix: minor fixes and improvments

* fix: added room index map to localization string


Approved-by: Christian Andolf
This commit is contained in:
Tobias Johansson
2025-03-12 10:34:35 +00:00
parent 01740e3300
commit ad05f792fb
18 changed files with 264 additions and 10 deletions

View File

@@ -54,6 +54,7 @@ const rooms: RoomState[] = [
bedTypes: [],
breakfast: breakfastPackage,
breakfastIncluded: false,
cancellationRule: "",
cancellationText: "Non-refundable",
childrenInRoom: [{ bed: ChildBedMapEnum.IN_EXTRA_BED, age: 5 }],
guest: guestDetailsNonMember,
@@ -64,6 +65,7 @@ const rooms: RoomState[] = [
roomType: "Standard",
roomTypeCode: "QS",
isAvailable: true,
mustBeGuaranteed: false,
},
steps: {
[StepEnum.selectBed]: {
@@ -92,6 +94,7 @@ const rooms: RoomState[] = [
bedTypes: [],
breakfast: undefined,
breakfastIncluded: false,
cancellationRule: "",
cancellationText: "Non-refundable",
childrenInRoom: [],
guest: guestDetailsMember,
@@ -102,6 +105,7 @@ const rooms: RoomState[] = [
roomType: "Standard",
roomTypeCode: "QS",
isAvailable: true,
mustBeGuaranteed: false,
},
steps: {
[StepEnum.selectBed]: {