@odynn/awayz-core 0.3.15 → 0.3.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,82 +1,197 @@
|
|
|
1
|
-
import { renderHook as
|
|
2
|
-
import { useBookingManagement as
|
|
3
|
-
import { c as
|
|
1
|
+
import { renderHook as t, waitFor as r } from "../../tests/TestWrapper.js";
|
|
2
|
+
import { useBookingManagement as a } from "./useBookingManagement.js";
|
|
3
|
+
import { c as i } from "../../AccountService-D_6U8vP6.js";
|
|
4
4
|
import "../../services/noRetryInstance.js";
|
|
5
5
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
6
6
|
import "react";
|
|
7
|
-
import { EBookingEndpoints as
|
|
7
|
+
import { EBookingEndpoints as c } from "../../configs/endpoints.js";
|
|
8
8
|
import "../../configs/awayzClient.js";
|
|
9
9
|
import "react/jsx-runtime";
|
|
10
10
|
import "../../context/AwayzContext.js";
|
|
11
11
|
import "@tanstack/react-query";
|
|
12
|
-
import { EBookingType as
|
|
12
|
+
import { EBookingType as n } from "../../services/trips/TripService.types.js";
|
|
13
13
|
import '../../assets/_styles5.css';import '../../assets/_styles4.css';import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';/* empty css */
|
|
14
14
|
/* empty css */
|
|
15
15
|
/* empty css */
|
|
16
16
|
/* empty css */
|
|
17
17
|
/* empty css */
|
|
18
|
-
import { d as s, v as u, t as
|
|
19
|
-
const d = !0, m = /* @__PURE__ */ JSON.parse('{"_id":"684887c537d26f7b107a760a","booking_id":"bok_0000AvQVt1LpHMWHbINGyv","user_id":"67d82b1c52c4a4dbe4e640c0","guest_types":[{"age":null,"type":"adult"},{"age":null,"type":"adult"}],"supported_loyalty_programme":"marriott_bonvoy","guests":[{"family_name":"Botha","given_name":"Adriaan","user_id":null},{"family_name":"terst","given_name":"test","user_id":null}],"check_out_date":"2025-07-15","loyalty_programme_account_number":null,"rooms":1,"accommodation":{"payment_instruction_supported":false,"check_in_information":{"check_out_before_time":"12:00","check_in_before_time":"00:00","check_in_after_time":"15:00"},"review_score":7.9,"rating":5,"supported_loyalty_programme":"marriott_bonvoy","photos":[{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/166/647/121/vierz-entrance-6310-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/3/0/183/668/598/rz-vierz-vienna-sunset-38389_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/166/647/149/vierz-lobby-0027-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/166/647/157/vierz-lobby-0026-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/166/647/141/vierz-exterior-6710-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/166/647/133/vierz-exterior-6299-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/193/507/721/o5JdVggTVkKFtvT1DItFaA_Elegant_hotel_lobby_light_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/194/16/89/fmg3QZ5Jq0eDuP4nJwcZ9A_Easter-Shooting-19_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/194/16/113/qlenNnrdUkm8b5LPQQfAg_Easter-Shooting-5_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/4/0/194/803/267/g4PwHPfbUGC0fKb009VIA_Art_museum_gallery_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/697/15/vierz-presidential-bedroom-8422-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/983/vierz-bedroom-6317-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/193/507/761/pdFLyxA5EeDMOsoaEtUmw_Guest_suite_entrance_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/154/548/928/rz-vierz-bedroom-34939_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/154/548/901/rz-vierz-bedroom-25588_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/157/805/321/rz-vierz-vierz-bedroom-15559-16137_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/193/507/690/OUEnemjKB0CEJjxOoOXxA_Private_lounge_experience_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/162/842/943/rz-vierz-symphony-bedroom-27894-95023_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/863/vierz-albertina-suite-4193-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/923/vierz-suite-6325-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/857/vierz-master-bedroom-2587-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/154/548/957/rz-vierz-junior-family-suite-37388-25341_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/963/vierz-suite-6335-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/951/vierz-suite-6331-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/957/vierz-suite-6333-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/997/vierz-suite-0011-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/990/vierz-suite-0023-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/875/vierz-albertina-dining-8426-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/697/3/vierz-presidential-living-8420-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/154/548/987/rz-vierz-presidential-suite-12713-39794_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/869/vierz-albertina-living-8425-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/936/vierz-suite-6328-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/943/vierz-suite-6329-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/929/vierz-suite-6324-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/157/805/645/rz-vierz-living-room-29570_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/157/805/657/rz-vierz-vierz-living-room-29938-84307_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/157/805/631/rz-vierz-vierz-living-room-41895-96289_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/157/805/665/rz-vierz-vierz-living-room-21235-09499_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/193/507/611/JawdUYtvK0mIfjiLnx4gYA_Intimate_hotel_suite_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/193/507/731/XLGF9v4OkC25CBu6ux7HQ_Luxury_lounge_seating_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/977/vierz-junior-2880-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/971/vierz-junior-2879-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/881/vierz-albertina-suite-8411-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/892/vierz-albertina-9033-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/898/vierz-albertina-9032-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/904/vierz-premium-9034-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/911/vierz-premium-9035-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/917/vierz-premium-9036-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/193/507/710/CpTJpzIYR0i4MOOdcoSJQ_Close-up_of_violin_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/66/35lGr9hhAkqVTgp6fCyvdA_Symphony_Violin_23059_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/193/507/751/4ZoR0Ivg9kWmtCaq2em8EQ_Elegant_suite_artwork_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/194/16/97/5S4hKYpLK0KjlHFGEWVRlw_Easter-Shooting-9_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/194/16/129/Rg2r3LALEy9wlAik7ryBA_Easter-Shooting-8_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/697/21/vierz-presidential-9031-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/887/vierz-albertina-9042-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/4/0/195/975/469/CbP50S8RGEiNCe9JWJ5sw_Dramatic_lighting_effect_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/4/0/195/975/497/fPEf3R7IJUKJkEIMORRpQ_Royal_ballroom_ceiling_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/162/843/343/rz-vierz-spa-suite-40141_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/4/0/194/803/288/YiRNIuydcUKDPeCFkGOvSQ_Exclusive_suite_interiors_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/4/0/194/803/311/n5AxlvAZaUuoJyv6ywG0jQ_Classic_architecture_view_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/4/0/194/803/361/B3ePfhiHESj91tmkFz3YA_Opulent_curtain_backdrop_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/4/0/194/803/336/Wsrfz2WACkqOIPaupELdw_Guest_enjoying_sunset_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/697/28/vierz-suite-0017-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/697/35/vierz-suite-0018-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/697/47/vierz-albertina-bathroom-8806-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/157/805/695/rz-vierz-vierz-main-bathroom-24479-38248_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/1/0/177/610/18/rz-vierz-main-bathroom-37139_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/697/41/vierz-bathroom-9043-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/1/0/177/610/26/rz-vierz-bathtub-16386_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/634/vierz-guestroom-6316-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/622/vierz-king-deluxe-8419-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/630/vierz-guestroom-6322-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/837/vierz-premium-deluxe-8823-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/642/vierz-king-premium-8418-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/618/vierz-twin-premium-8416-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/638/vierz-guestroom-6315-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/626/vierz-guestroom-6319-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/614/vierz-twin-deluxe-8417-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/154/548/232/rz-vierz-twin-guest-room-16635_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/154/548/273/rz-vierz-deluxe-room-bedroom-34538_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/847/vierz-pastamara-amenities-8814-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/646/vierz-premium-9039-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/650/vierz-premium-9038-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/662/vierz-guest-view-6339-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/654/vierz-premium-9037-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/154/548/252/rz-vierz-premium-guest-room-28590-12892_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/666/vierz-guest-view-6340-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/4/0/195/129/816/nnLtrdG87k2mY2ju6J096g_Easter-Shooting-15_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/680/vierz-bathroom-7118-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/684/vierz-guest-bathroom-2585-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/688/vierz-guest-bathroom-2586-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/782/vierz-club-lounge-7450-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/790/vierz-club-lounge-7451-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/770/vierz-club-lounge-7446-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/798/vierz-club-lounge-7453-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/778/vierz-club-lounge-7449-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/794/vierz-club-lounge-7452-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/1/0/177/800/13/rz-vierz-club-lounge-34358_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/1/0/177/800/17/rz-vierz-club-lounge-32465_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/1/0/177/800/21/rz-vierz-club-lounge-12689_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/866/vierz-bar-9487-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/862/vierz-dstrikt-steakhouse-1829-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/399/838/rz-vierz-josper-steak--fire-19136-43292_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/399/822/rz-vierz-josper-grill-beans-26692_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/399/800/rz-vierz-dry-gin-21450_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/166/509/537/rz-vierz-atmosphere-rooftop-23150-21549_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/97/zYxULMrSCEW0nUpWvM1eg_Atmosphere_Rooftop_29915_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/166/509/549/rz-vierz-d-bar-12475_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/166/509/521/rz-vierz-atmosphere-rooftop-32999-45914_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/166/509/567/rz-vierz-d-bar-27828_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/166/509/557/rz-vierz-d-bar-31643_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/3/0/179/261/600/rz-vierz-atmosphere-rooftop-29936-12789_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/3/0/179/261/594/rz-vierz-atmosphere-rooftop--13641-24498_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/3/0/182/764/240/rz-vierz-atmosphere-rooftop--38254-15441_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/3/0/179/261/604/rz-vierz-atmosphere-rooftop--40092-98172_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/3/0/179/261/608/rz-vierz-atmosphere-rooftop--21195-64954_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/830/vierz-bar-9486-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/153/heZggMucIkaGlTFOe3tuTg_vierz-dstrikt-steakhouse-8817_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/128/PRzNm4mTwkGe0UHCM0dMw_vierz-dstrikt-steakhouse-8820_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/177/nWULD9brwE284eqbUqFO1A_vierz-dstrikt-steakhouse-8818_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/826/vierz-bar-9482-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/199/BpdlaJeJKEu04gVtjPVmrQ_vierz-dstrikt-steakhouse-8821_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/222/BfaE9BMnG0qE9NEHZixa4A_vierz-dbar-8811_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/162/216/385/vierz-dstrikt-outside-8819_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/274/xl0gEuptz0eED35IlKf7bA_vierz-dstrikt-steakhouse-8807_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/248/oOXS9CC8L0C6yWyxcnI6IQ_vierz-cheesecake-8541_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/3/0/182/764/266/50579485-trcv201812_0325kl_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/194/16/105/gIwmWNOgoEWFINSMC9i3eA_Easter-Shooting-03_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/197/539/479/wulNBILXsk28GWAlrPZBQ_Breakfast_18417_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/197/539/494/VQRJkijAKEeOEOYXfhlkEg_Lunch_and_Dinner_27129_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/858/vierz-rooftop-bar-3601-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/872/vierz-pool-7296-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/883/vierz-fitness-center-8414-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/876/vierz-pool-7297-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/296/SMJxxxRO3E6kjfIDTVEIvQ_vierz-indoor-pool-8815_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/889/vierz-spa-suite-7305-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/162/843/309/vierz-spa-suite-8822-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/162/843/319/vierz-sauna-8824-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/162/843/335/rz-vierz-spa-suite-18269_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/318/mOG7Iu9DiEyZdm8x89WsXQ_vierz-crystal-foyer-6303_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/342/46syc0hmf0q747jnkgQpNw_vierz-crystal-ballroom-6308_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/361/dnAsuBd2Ee8fBGVgRwrmw_vierz-petite-palais-6305_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/161/460/8a536oe9akqni8qVSpiHmw_vierz-boardroom-2583_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/376/5qdgU8kWy0i9gdNoKC4u1A_vierz-crystal-foyer-6306_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/392/foHS8ILfeUKUqRpGs0pLUA_vierz-palais-6304_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/161/489/SuozDZGK3UC7FJESLnIqSQ_vierz-boardroom-2584_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/412/Fda7Ml0DZ02Xizt1JtA4Q_vierz-crystal-foyer-8542_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/161/512/yV0XzqjoVEmT9NeVAPOi5A_vierz-seminar-setup-8829_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/161/539/SJ1tQQ6I6U2b7IIqpF7gQ_vierz-boardroom-0046_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/161/572/26H1BaGroUaLHogB9kICEQ_vierz-refreshment-0043_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/161/600/VHWdMS5dnUSx4NpvCma0fg_vierz-rooftop-wedding-8424_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/161/624/yV5nXukqkGnxhCzREp5NA_vierz-crystal-0048_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/161/645/tzrK3J23kEqqsXvvWbMDsg_vierz-palais-0047_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/774/vierz-club-lounge-7447-hor-clsc_H.jpg"}],"ratings":[{"source":"northstar","value":5}],"key_collection":null,"rooms":[{"beds":null,"photos":null,"rates":[{"payment_instruction_allowed":false,"cancellation_timeline":[{"refund_amount":"531.00","currency":"EUR","before":"2025-06-24T10:00:00Z"}],"public_currency":"EUR","due_at_accommodation_currency":"EUR","due_at_accommodation_amount":null,"quantity_available":null,"public_amount":null,"deal_types":null,"loyalty_programme_required":false,"board_type":"room_only","supported_loyalty_programme":"marriott_bonvoy","available_payment_methods":["card"],"fee_amount":"0.00","tax_currency":"EUR","base_currency":"EUR","base_amount":"531.00","tax_amount":"0.00","fee_currency":"EUR","total_currency":"EUR","payment_type":"deposit","total_amount":"531.00","conditions":[{"title":"Cancellation","description":"cancel: changes not allowed non - refundable rate cancellation permitted up to 1 days after booking."},{"title":"Deposit","description":"Book 10 Days Before Arrival 531.00 Eur Deposit Due - 1 Days After Booking Credit Card Deposit Only"},{"title":"Other","description":"A Credit Card Is Required For Payment To Guarantee The Prepay Non-Refundable Non-Changeable Rate. Prepay Rates Will Be Charged The Full Cost Of The Reservation Within 24 Hours Of Making The Reservation. If Payment Is Unsuccessful Within 48 Hours Of Making The Reservation The Hotel Reserves The Right To Cancel The Reservation. Date Changes To The Reservation Are Not Allowed. Cancellation Will Result In Forfeiture Of The Prepayment. The Credit Card Used At The Time Of Making The Reservation Must Be Valid For The Entire Stay. After 2 People - 120.00 Eur Person Extra Person Person Night"},{"title":"Room detail","description":"Deluxe Guest Room 2 Twin Mini Fridge 38 Square Metre/409 Square Feet Wireless Internet Complimentary Coffee/Tea Maker Maximum Occupancy- 2 Guests"},{"title":"Property","description":"Location: Property Offers Check Out For Children/Unicef Program. Voluntary Participation Offered At Check-In."},{"title":"Room Hold Expiration Time","description":"BOOKING HELD UNTIL 00:00 LOCAL HOTEL TIME ON ARRIVAL DATE"}],"source":"travelport","id":"rat_0000AvQVl8YKcSy3cTSr56","code":null}],"name":"Full, No Changes, Deluxe, Guest Room, 2 Twin"}],"amenities":[{"description":"24-Hour Front Desk","type":"24_hour_front_desk"},{"description":"Concierge","type":"concierge"},{"description":"Spa","type":"spa"},{"description":"Gym","type":"gym"},{"description":"Swimming Pool","type":"pool"},{"description":"Room Service","type":"room_service"},{"description":"Wheelchair Access","type":"accessibility_mobility"},{"description":"Wi-Fi","type":"wifi"},{"description":"Childcare Services","type":"childcare_service"}],"brand":{"name":"The Ritz-Carlton","id":"bra_DQPneLbCejxRuxAqD7amaW"},"phone_number":"00000 000 000","chain":{"name":"Marriott International"},"email":"test-mode-accommodation@example.com","location":{"geographic_coordinates":{"latitude":48.202473,"longitude":16.376202},"address":{"line_one":"Schubertring 5-7","city_name":"Vienna","postal_code":"1010 ","country_code":"AT","region":null}},"description":"The Ritz-Carlton, Vienna, located in four historic 19th-century palaces combines legendary service with Austrian hospitality. The 201 luxurious guest rooms and suites are generously proportioned and stylishly furnished. The Ritz-Carlton Club Lounge on the 7th floor pampers its guests with personalized service as well as five culinary offers per day. The Ritz-Carlton Spa has elegantly appointed treatment suites, an 18m indoor pool and a range of amenities that invite our guests to unique spa experiences. Unique culinary delights await guests at the farm-to-table Dstrikt Steakhouse, during aperitivo time at Pastamara - Bar con Cucina and the elegant hotel bar D-bar. Located on the 8th floor rooftop terrace, the Atmosphere Rooftop Bar offers a breathtaking view over the city. Located in the heart of the city and only a short walk from the city park, the luxury hotel is the perfect starting point to discover Vienna.","name":"The Ritz-Carlton Vienna","id":"acc_0000AWPszvlu6zjbTePuxQ"},"confirmed_at":"2025-06-23T15:52:20.328139Z","check_in_date":"2025-07-14","phone_number":"+1 612 345 8516","cancelled_at":null,"email":"adriaanb98@gmail.com","users":["icu_0000Asbm8q0FlWOhf0fDUm"],"reference":"O4C6IS","metadata":null,"status":"booking confirmed"}'), _ = { internalRequestId: "818a9940-57ee-444e-923c-d0d6fc2bc82d" }, g = {
|
|
18
|
+
import { d as s, v as u, t as l, g as e } from "../../vi.ClIskdbk-k6t29WRA.js";
|
|
19
|
+
const d = !0, m = /* @__PURE__ */ JSON.parse('{"_id":"684887c537d26f7b107a760a","booking_id":"bok_0000AvQVt1LpHMWHbINGyv","user_id":"67d82b1c52c4a4dbe4e640c0","guest_types":[{"age":null,"type":"adult"},{"age":null,"type":"adult"}],"supported_loyalty_programme":"marriott_bonvoy","guests":[{"family_name":"Botha","given_name":"Adriaan","user_id":null},{"family_name":"terst","given_name":"test","user_id":null}],"check_out_date":"2025-07-15","loyalty_programme_account_number":null,"rooms":1,"accommodation":{"payment_instruction_supported":false,"check_in_information":{"check_out_before_time":"12:00","check_in_before_time":"00:00","check_in_after_time":"15:00"},"review_score":7.9,"rating":5,"supported_loyalty_programme":"marriott_bonvoy","photos":[{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/166/647/121/vierz-entrance-6310-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/3/0/183/668/598/rz-vierz-vienna-sunset-38389_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/166/647/149/vierz-lobby-0027-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/166/647/157/vierz-lobby-0026-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/166/647/141/vierz-exterior-6710-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/166/647/133/vierz-exterior-6299-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/193/507/721/o5JdVggTVkKFtvT1DItFaA_Elegant_hotel_lobby_light_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/194/16/89/fmg3QZ5Jq0eDuP4nJwcZ9A_Easter-Shooting-19_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/194/16/113/qlenNnrdUkm8b5LPQQfAg_Easter-Shooting-5_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/4/0/194/803/267/g4PwHPfbUGC0fKb009VIA_Art_museum_gallery_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/697/15/vierz-presidential-bedroom-8422-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/983/vierz-bedroom-6317-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/193/507/761/pdFLyxA5EeDMOsoaEtUmw_Guest_suite_entrance_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/154/548/928/rz-vierz-bedroom-34939_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/154/548/901/rz-vierz-bedroom-25588_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/157/805/321/rz-vierz-vierz-bedroom-15559-16137_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/193/507/690/OUEnemjKB0CEJjxOoOXxA_Private_lounge_experience_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/162/842/943/rz-vierz-symphony-bedroom-27894-95023_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/863/vierz-albertina-suite-4193-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/923/vierz-suite-6325-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/857/vierz-master-bedroom-2587-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/154/548/957/rz-vierz-junior-family-suite-37388-25341_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/963/vierz-suite-6335-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/951/vierz-suite-6331-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/957/vierz-suite-6333-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/997/vierz-suite-0011-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/990/vierz-suite-0023-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/875/vierz-albertina-dining-8426-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/697/3/vierz-presidential-living-8420-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/154/548/987/rz-vierz-presidential-suite-12713-39794_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/869/vierz-albertina-living-8425-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/936/vierz-suite-6328-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/943/vierz-suite-6329-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/929/vierz-suite-6324-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/157/805/645/rz-vierz-living-room-29570_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/157/805/657/rz-vierz-vierz-living-room-29938-84307_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/157/805/631/rz-vierz-vierz-living-room-41895-96289_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/157/805/665/rz-vierz-vierz-living-room-21235-09499_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/193/507/611/JawdUYtvK0mIfjiLnx4gYA_Intimate_hotel_suite_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/193/507/731/XLGF9v4OkC25CBu6ux7HQ_Luxury_lounge_seating_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/977/vierz-junior-2880-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/971/vierz-junior-2879-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/881/vierz-albertina-suite-8411-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/892/vierz-albertina-9033-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/898/vierz-albertina-9032-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/904/vierz-premium-9034-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/911/vierz-premium-9035-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/917/vierz-premium-9036-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/193/507/710/CpTJpzIYR0i4MOOdcoSJQ_Close-up_of_violin_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/66/35lGr9hhAkqVTgp6fCyvdA_Symphony_Violin_23059_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/193/507/751/4ZoR0Ivg9kWmtCaq2em8EQ_Elegant_suite_artwork_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/194/16/97/5S4hKYpLK0KjlHFGEWVRlw_Easter-Shooting-9_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/194/16/129/Rg2r3LALEy9wlAik7ryBA_Easter-Shooting-8_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/697/21/vierz-presidential-9031-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/887/vierz-albertina-9042-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/4/0/195/975/469/CbP50S8RGEiNCe9JWJ5sw_Dramatic_lighting_effect_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/4/0/195/975/497/fPEf3R7IJUKJkEIMORRpQ_Royal_ballroom_ceiling_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/162/843/343/rz-vierz-spa-suite-40141_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/4/0/194/803/288/YiRNIuydcUKDPeCFkGOvSQ_Exclusive_suite_interiors_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/4/0/194/803/311/n5AxlvAZaUuoJyv6ywG0jQ_Classic_architecture_view_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/4/0/194/803/361/B3ePfhiHESj91tmkFz3YA_Opulent_curtain_backdrop_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/4/0/194/803/336/Wsrfz2WACkqOIPaupELdw_Guest_enjoying_sunset_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/697/28/vierz-suite-0017-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/697/35/vierz-suite-0018-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/697/47/vierz-albertina-bathroom-8806-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/157/805/695/rz-vierz-vierz-main-bathroom-24479-38248_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/1/0/177/610/18/rz-vierz-main-bathroom-37139_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/697/41/vierz-bathroom-9043-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/1/0/177/610/26/rz-vierz-bathtub-16386_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/634/vierz-guestroom-6316-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/622/vierz-king-deluxe-8419-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/630/vierz-guestroom-6322-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/837/vierz-premium-deluxe-8823-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/642/vierz-king-premium-8418-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/618/vierz-twin-premium-8416-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/638/vierz-guestroom-6315-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/626/vierz-guestroom-6319-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/614/vierz-twin-deluxe-8417-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/154/548/232/rz-vierz-twin-guest-room-16635_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/154/548/273/rz-vierz-deluxe-room-bedroom-34538_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/696/847/vierz-pastamara-amenities-8814-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/646/vierz-premium-9039-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/650/vierz-premium-9038-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/662/vierz-guest-view-6339-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/654/vierz-premium-9037-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/154/548/252/rz-vierz-premium-guest-room-28590-12892_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/666/vierz-guest-view-6340-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/4/0/195/129/816/nnLtrdG87k2mY2ju6J096g_Easter-Shooting-15_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/680/vierz-bathroom-7118-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/684/vierz-guest-bathroom-2585-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/688/vierz-guest-bathroom-2586-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/782/vierz-club-lounge-7450-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/790/vierz-club-lounge-7451-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/770/vierz-club-lounge-7446-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/798/vierz-club-lounge-7453-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/778/vierz-club-lounge-7449-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/794/vierz-club-lounge-7452-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/1/0/177/800/13/rz-vierz-club-lounge-34358_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/1/0/177/800/17/rz-vierz-club-lounge-32465_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/1/0/177/800/21/rz-vierz-club-lounge-12689_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/866/vierz-bar-9487-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/862/vierz-dstrikt-steakhouse-1829-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/399/838/rz-vierz-josper-steak--fire-19136-43292_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/399/822/rz-vierz-josper-grill-beans-26692_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/399/800/rz-vierz-dry-gin-21450_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/166/509/537/rz-vierz-atmosphere-rooftop-23150-21549_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/97/zYxULMrSCEW0nUpWvM1eg_Atmosphere_Rooftop_29915_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/166/509/549/rz-vierz-d-bar-12475_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/166/509/521/rz-vierz-atmosphere-rooftop-32999-45914_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/166/509/567/rz-vierz-d-bar-27828_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/166/509/557/rz-vierz-d-bar-31643_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/3/0/179/261/600/rz-vierz-atmosphere-rooftop-29936-12789_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/3/0/179/261/594/rz-vierz-atmosphere-rooftop--13641-24498_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/3/0/182/764/240/rz-vierz-atmosphere-rooftop--38254-15441_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/3/0/179/261/604/rz-vierz-atmosphere-rooftop--40092-98172_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/3/0/179/261/608/rz-vierz-atmosphere-rooftop--21195-64954_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/830/vierz-bar-9486-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/153/heZggMucIkaGlTFOe3tuTg_vierz-dstrikt-steakhouse-8817_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/128/PRzNm4mTwkGe0UHCM0dMw_vierz-dstrikt-steakhouse-8820_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/177/nWULD9brwE284eqbUqFO1A_vierz-dstrikt-steakhouse-8818_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/826/vierz-bar-9482-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/199/BpdlaJeJKEu04gVtjPVmrQ_vierz-dstrikt-steakhouse-8821_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/222/BfaE9BMnG0qE9NEHZixa4A_vierz-dbar-8811_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/162/216/385/vierz-dstrikt-outside-8819_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/274/xl0gEuptz0eED35IlKf7bA_vierz-dstrikt-steakhouse-8807_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/248/oOXS9CC8L0C6yWyxcnI6IQ_vierz-cheesecake-8541_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/3/0/182/764/266/50579485-trcv201812_0325kl_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/5/0/194/16/105/gIwmWNOgoEWFINSMC9i3eA_Easter-Shooting-03_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/197/539/479/wulNBILXsk28GWAlrPZBQ_Breakfast_18417_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/197/539/494/VQRJkijAKEeOEOYXfhlkEg_Lunch_and_Dinner_27129_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/858/vierz-rooftop-bar-3601-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/872/vierz-pool-7296-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/883/vierz-fitness-center-8414-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/876/vierz-pool-7297-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/296/SMJxxxRO3E6kjfIDTVEIvQ_vierz-indoor-pool-8815_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/889/vierz-spa-suite-7305-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/162/843/309/vierz-spa-suite-8822-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/162/843/319/vierz-sauna-8824-hor-clsc_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/162/843/335/rz-vierz-spa-suite-18269_Classic-Hor_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/318/mOG7Iu9DiEyZdm8x89WsXQ_vierz-crystal-foyer-6303_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/342/46syc0hmf0q747jnkgQpNw_vierz-crystal-ballroom-6308_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/361/dnAsuBd2Ee8fBGVgRwrmw_vierz-petite-palais-6305_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/161/460/8a536oe9akqni8qVSpiHmw_vierz-boardroom-2583_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/376/5qdgU8kWy0i9gdNoKC4u1A_vierz-crystal-foyer-6306_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/392/foHS8ILfeUKUqRpGs0pLUA_vierz-palais-6304_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/161/489/SuozDZGK3UC7FJESLnIqSQ_vierz-boardroom-2584_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/160/412/Fda7Ml0DZ02Xizt1JtA4Q_vierz-crystal-foyer-8542_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/161/512/yV0XzqjoVEmT9NeVAPOi5A_vierz-seminar-setup-8829_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/161/539/SJ1tQQ6I6U2b7IIqpF7gQ_vierz-boardroom-0046_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/161/572/26H1BaGroUaLHogB9kICEQ_vierz-refreshment-0043_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/161/600/VHWdMS5dnUSx4NpvCma0fg_vierz-rooftop-wedding-8424_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/161/624/yV5nXukqkGnxhCzREp5NA_vierz-crystal-0048_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/189/161/645/tzrK3J23kEqqsXvvWbMDsg_vierz-palais-0047_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/7/0/148/115/774/vierz-club-lounge-7447-hor-clsc_H.jpg"}],"ratings":[{"source":"northstar","value":5}],"key_collection":null,"rooms":[{"beds":null,"photos":null,"rates":[{"payment_instruction_allowed":false,"cancellation_timeline":[{"refund_amount":"531.00","currency":"EUR","before":"2025-06-24T10:00:00Z"}],"public_currency":"EUR","due_at_accommodation_currency":"EUR","due_at_accommodation_amount":null,"quantity_available":null,"public_amount":null,"deal_types":null,"loyalty_programme_required":false,"board_type":"room_only","supported_loyalty_programme":"marriott_bonvoy","available_payment_methods":["card"],"fee_amount":"0.00","tax_currency":"EUR","base_currency":"EUR","base_amount":"531.00","tax_amount":"0.00","fee_currency":"EUR","total_currency":"EUR","payment_type":"deposit","total_amount":"531.00","conditions":[{"title":"Cancellation","description":"cancel: changes not allowed non - refundable rate cancellation permitted up to 1 days after booking."},{"title":"Deposit","description":"Book 10 Days Before Arrival 531.00 Eur Deposit Due - 1 Days After Booking Credit Card Deposit Only"},{"title":"Other","description":"A Credit Card Is Required For Payment To Guarantee The Prepay Non-Refundable Non-Changeable Rate. Prepay Rates Will Be Charged The Full Cost Of The Reservation Within 24 Hours Of Making The Reservation. If Payment Is Unsuccessful Within 48 Hours Of Making The Reservation The Hotel Reserves The Right To Cancel The Reservation. Date Changes To The Reservation Are Not Allowed. Cancellation Will Result In Forfeiture Of The Prepayment. The Credit Card Used At The Time Of Making The Reservation Must Be Valid For The Entire Stay. After 2 People - 120.00 Eur Person Extra Person Person Night"},{"title":"Room detail","description":"Deluxe Guest Room 2 Twin Mini Fridge 38 Square Metre/409 Square Feet Wireless Internet Complimentary Coffee/Tea Maker Maximum Occupancy- 2 Guests"},{"title":"Property","description":"Location: Property Offers Check Out For Children/Unicef Program. Voluntary Participation Offered At Check-In."},{"title":"Room Hold Expiration Time","description":"BOOKING HELD UNTIL 00:00 LOCAL HOTEL TIME ON ARRIVAL DATE"}],"source":"travelport","id":"rat_0000AvQVl8YKcSy3cTSr56","code":null}],"name":"Full, No Changes, Deluxe, Guest Room, 2 Twin"}],"amenities":[{"description":"24-Hour Front Desk","type":"24_hour_front_desk"},{"description":"Concierge","type":"concierge"},{"description":"Spa","type":"spa"},{"description":"Gym","type":"gym"},{"description":"Swimming Pool","type":"pool"},{"description":"Room Service","type":"room_service"},{"description":"Wheelchair Access","type":"accessibility_mobility"},{"description":"Wi-Fi","type":"wifi"},{"description":"Childcare Services","type":"childcare_service"}],"brand":{"name":"The Ritz-Carlton","id":"bra_DQPneLbCejxRuxAqD7amaW"},"phone_number":"00000 000 000","chain":{"name":"Marriott International"},"email":"test-mode-accommodation@example.com","location":{"geographic_coordinates":{"latitude":48.202473,"longitude":16.376202},"address":{"line_one":"Schubertring 5-7","city_name":"Vienna","postal_code":"1010 ","country_code":"AT","region":null}},"description":"The Ritz-Carlton, Vienna, located in four historic 19th-century palaces combines legendary service with Austrian hospitality. The 201 luxurious guest rooms and suites are generously proportioned and stylishly furnished. The Ritz-Carlton Club Lounge on the 7th floor pampers its guests with personalized service as well as five culinary offers per day. The Ritz-Carlton Spa has elegantly appointed treatment suites, an 18m indoor pool and a range of amenities that invite our guests to unique spa experiences. Unique culinary delights await guests at the farm-to-table Dstrikt Steakhouse, during aperitivo time at Pastamara - Bar con Cucina and the elegant hotel bar D-bar. Located on the 8th floor rooftop terrace, the Atmosphere Rooftop Bar offers a breathtaking view over the city. Located in the heart of the city and only a short walk from the city park, the luxury hotel is the perfect starting point to discover Vienna.","name":"The Ritz-Carlton Vienna","id":"acc_0000AWPszvlu6zjbTePuxQ"},"confirmed_at":"2025-06-23T15:52:20.328139Z","check_in_date":"2025-07-14","phone_number":"+1 612 345 8516","cancelled_at":null,"email":"adriaanb98@gmail.com","users":["icu_0000Asbm8q0FlWOhf0fDUm"],"reference":"O4C6IS","metadata":null,"status":"booking confirmed"}'), g = { internalRequestId: "818a9940-57ee-444e-923c-d0d6fc2bc82d" }, _ = {
|
|
20
20
|
success: d,
|
|
21
21
|
data: m,
|
|
22
|
-
metadata:
|
|
23
|
-
}, h = { _id: "6811290ef16af25943018944", order_id: "ord_0000AvQk8IXqiCE2o20e00", user_id: "67d82b1c52c4a4dbe4e640c0", void_window_ends_at: null, documents: [{ passenger_ids: ["pas_0000AvQjcLZRvVQivKWRxi"], unique_identifier: "1", type: "electronic_ticket" }], synced_at: "2025-06-23T18:32:48Z", available_actions: ["cancel", "change", "update"], airline_initiated_changes: [], cancellation: null, tax_currency: "USD", base_currency: "USD", base_amount: "77.49", tax_amount: "13.94", total_currency: "USD", offer_id: "off_0000AvQjcLqSuF2bm6U2U7", booking_reference: "GHNRHO", created_at: "2025-06-23T18:31:58.211428Z", payment_status: { paid_at: "2025-06-23T18:31:58Z", price_guarantee_expires_at: null, payment_required_by: null, awaiting_payment: !1 }, live_mode: !1, total_amount: "91.43", slices: [{ destination_type: "airport", origin_type: "airport", fare_brand_name: "Basic", segments: [{ origin_terminal: "2", destination_terminal: "1", aircraft: { iata_code: "773", name: "Boeing 777-300", id: "arc_00009VMF8AhXSSRnQDI6HE" }, departing_at: "2025-07-30T22:27:00", arriving_at: "2025-07-31T00:24:00", operating_carrier: { logo_symbol_url: "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/ZZ.svg", logo_lockup_url: null, conditions_of_carriage_url: "https://duffelairways.com/dummy-url/conditions-of-carriage", iata_code: "ZZ", name: "Duffel Airways", id: "arl_00009VME7D6ivUu8dn35WK" }, marketing_carrier: { logo_symbol_url: "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/ZZ.svg", logo_lockup_url: null, conditions_of_carriage_url: "https://duffelairways.com/dummy-url/conditions-of-carriage", iata_code: "ZZ", name: "Duffel Airways", id: "arl_00009VME7D6ivUu8dn35WK" }, stops: [], operating_carrier_flight_number: "9596", marketing_carrier_flight_number: "9596", distance: "1034.9960998474376", passengers: [{ baggages: [{ quantity: 1, type: "checked" }, { quantity: 1, type: "carry_on" }], cabin_class_marketing_name: "Economy", passenger_id: "pas_0000AvQjcLZRvVQivKWRxi", seat: null, cabin_class: "economy" }], duration: "PT1H57M", destination: { icao_code: "LFPG", iata_country_code: "FR", iata_city_code: "PAR", city_name: "Paris", iata_code: "CDG", latitude: 49.011244, longitude: 2.548962, city: { icao_code: null, iata_country_code: "FR", iata_city_code: "PAR", city_name: null, iata_code: "PAR", latitude: null, longitude: null, time_zone: null, type: "city", name: "Paris", id: "cit_par_fr" }, time_zone: "Europe/Paris", type: "airport", name: "Paris Charles de Gaulle Airport", id: "arp_cdg_fr" }, origin: { icao_code: "LOWW", iata_country_code: "AT", iata_city_code: "VIE", city_name: "Vienna", iata_code: "VIE", latitude: 48.113065, longitude: 16.568137, city: null, time_zone: "Europe/Vienna", type: "airport", name: "Vienna International Airport", id: "arp_vie_at" }, id: "seg_0000AvQjcLqSuF2bm6U2U5" }], conditions: { change_before_departure: { penalty_currency: "GBP", penalty_amount: "10.00", allowed: !0 } }, duration: "PT1H57M", destination: { icao_code: "LFPG", iata_country_code: "FR", iata_city_code: "PAR", city_name: "Paris", iata_code: "CDG", latitude: 49.011244, longitude: 2.548962, city: { icao_code: null, iata_country_code: "FR", iata_city_code: "PAR", city_name: null, iata_code: "PAR", latitude: null, longitude: null, time_zone: null, type: "city", name: "Paris", id: "cit_par_fr" }, time_zone: "Europe/Paris", type: "airport", name: "Paris Charles de Gaulle Airport", id: "arp_cdg_fr" }, origin: { icao_code: "LOWW", iata_country_code: "AT", iata_city_code: "VIE", city_name: "Vienna", iata_code: "VIE", latitude: 48.113065, longitude: 16.568137, city: null, time_zone: "Europe/Vienna", type: "airport", name: "Vienna International Airport", id: "arp_vie_at" }, id: "sli_0000AvQjcLqSuF2bm6U2U6" }], passengers: [{ born_on: "2007-04-29", loyalty_programme_accounts: [], family_name: "Botha", given_name: "Adriaan", gender: "m", infant_passenger_id: null, phone_number: "+12345642342", user_id: null, email: "adriaan.botha@typedev.co.za", title: "mr", type: "adult", id: "pas_0000AvQjcLZRvVQivKWRxi" }], conditions: { refund_before_departure: { penalty_currency: null, penalty_amount: null, allowed: !1 }, change_before_departure: { penalty_currency: "GBP", penalty_amount: "10.00", allowed: !0 } }, cancelled_at: null, changes: [], content: "managed", services: [], users: ["icu_0000Asbm8q0FlWOhf0fDUm"], metadata: null, type: "instant", owner: { logo_symbol_url: "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/ZZ.svg", logo_lockup_url: null, conditions_of_carriage_url: "https://duffelairways.com/dummy-url/conditions-of-carriage", iata_code: "ZZ", name: "Duffel Airways", id: "arl_00009VME7D6ivUu8dn35WK" }, id: "ord_0000AvQk8IXqiCE2o20e00", status: "flight confirmed" }, v = "Flight booking found",
|
|
22
|
+
metadata: g
|
|
23
|
+
}, h = { _id: "6811290ef16af25943018944", order_id: "ord_0000AvQk8IXqiCE2o20e00", user_id: "67d82b1c52c4a4dbe4e640c0", void_window_ends_at: null, documents: [{ passenger_ids: ["pas_0000AvQjcLZRvVQivKWRxi"], unique_identifier: "1", type: "electronic_ticket" }], synced_at: "2025-06-23T18:32:48Z", available_actions: ["cancel", "change", "update"], airline_initiated_changes: [], cancellation: null, tax_currency: "USD", base_currency: "USD", base_amount: "77.49", tax_amount: "13.94", total_currency: "USD", offer_id: "off_0000AvQjcLqSuF2bm6U2U7", booking_reference: "GHNRHO", created_at: "2025-06-23T18:31:58.211428Z", payment_status: { paid_at: "2025-06-23T18:31:58Z", price_guarantee_expires_at: null, payment_required_by: null, awaiting_payment: !1 }, live_mode: !1, total_amount: "91.43", slices: [{ destination_type: "airport", origin_type: "airport", fare_brand_name: "Basic", segments: [{ origin_terminal: "2", destination_terminal: "1", aircraft: { iata_code: "773", name: "Boeing 777-300", id: "arc_00009VMF8AhXSSRnQDI6HE" }, departing_at: "2025-07-30T22:27:00", arriving_at: "2025-07-31T00:24:00", operating_carrier: { logo_symbol_url: "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/ZZ.svg", logo_lockup_url: null, conditions_of_carriage_url: "https://duffelairways.com/dummy-url/conditions-of-carriage", iata_code: "ZZ", name: "Duffel Airways", id: "arl_00009VME7D6ivUu8dn35WK" }, marketing_carrier: { logo_symbol_url: "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/ZZ.svg", logo_lockup_url: null, conditions_of_carriage_url: "https://duffelairways.com/dummy-url/conditions-of-carriage", iata_code: "ZZ", name: "Duffel Airways", id: "arl_00009VME7D6ivUu8dn35WK" }, stops: [], operating_carrier_flight_number: "9596", marketing_carrier_flight_number: "9596", distance: "1034.9960998474376", passengers: [{ baggages: [{ quantity: 1, type: "checked" }, { quantity: 1, type: "carry_on" }], cabin_class_marketing_name: "Economy", passenger_id: "pas_0000AvQjcLZRvVQivKWRxi", seat: null, cabin_class: "economy" }], duration: "PT1H57M", destination: { icao_code: "LFPG", iata_country_code: "FR", iata_city_code: "PAR", city_name: "Paris", iata_code: "CDG", latitude: 49.011244, longitude: 2.548962, city: { icao_code: null, iata_country_code: "FR", iata_city_code: "PAR", city_name: null, iata_code: "PAR", latitude: null, longitude: null, time_zone: null, type: "city", name: "Paris", id: "cit_par_fr" }, time_zone: "Europe/Paris", type: "airport", name: "Paris Charles de Gaulle Airport", id: "arp_cdg_fr" }, origin: { icao_code: "LOWW", iata_country_code: "AT", iata_city_code: "VIE", city_name: "Vienna", iata_code: "VIE", latitude: 48.113065, longitude: 16.568137, city: null, time_zone: "Europe/Vienna", type: "airport", name: "Vienna International Airport", id: "arp_vie_at" }, id: "seg_0000AvQjcLqSuF2bm6U2U5" }], conditions: { change_before_departure: { penalty_currency: "GBP", penalty_amount: "10.00", allowed: !0 } }, duration: "PT1H57M", destination: { icao_code: "LFPG", iata_country_code: "FR", iata_city_code: "PAR", city_name: "Paris", iata_code: "CDG", latitude: 49.011244, longitude: 2.548962, city: { icao_code: null, iata_country_code: "FR", iata_city_code: "PAR", city_name: null, iata_code: "PAR", latitude: null, longitude: null, time_zone: null, type: "city", name: "Paris", id: "cit_par_fr" }, time_zone: "Europe/Paris", type: "airport", name: "Paris Charles de Gaulle Airport", id: "arp_cdg_fr" }, origin: { icao_code: "LOWW", iata_country_code: "AT", iata_city_code: "VIE", city_name: "Vienna", iata_code: "VIE", latitude: 48.113065, longitude: 16.568137, city: null, time_zone: "Europe/Vienna", type: "airport", name: "Vienna International Airport", id: "arp_vie_at" }, id: "sli_0000AvQjcLqSuF2bm6U2U6" }], passengers: [{ born_on: "2007-04-29", loyalty_programme_accounts: [], family_name: "Botha", given_name: "Adriaan", gender: "m", infant_passenger_id: null, phone_number: "+12345642342", user_id: null, email: "adriaan.botha@typedev.co.za", title: "mr", type: "adult", id: "pas_0000AvQjcLZRvVQivKWRxi" }], conditions: { refund_before_departure: { penalty_currency: null, penalty_amount: null, allowed: !1 }, change_before_departure: { penalty_currency: "GBP", penalty_amount: "10.00", allowed: !0 } }, cancelled_at: null, changes: [], content: "managed", services: [], users: ["icu_0000Asbm8q0FlWOhf0fDUm"], metadata: null, type: "instant", owner: { logo_symbol_url: "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/ZZ.svg", logo_lockup_url: null, conditions_of_carriage_url: "https://duffelairways.com/dummy-url/conditions-of-carriage", iata_code: "ZZ", name: "Duffel Airways", id: "arl_00009VME7D6ivUu8dn35WK" }, id: "ord_0000AvQk8IXqiCE2o20e00", status: "flight confirmed" }, v = "Flight booking found", y = !0, H = { internalRequestId: "f6b54196-4d33-434d-9800-d9dc72a074ab" }, f = {
|
|
24
24
|
data: h,
|
|
25
25
|
message: v,
|
|
26
|
-
success:
|
|
27
|
-
metadata:
|
|
26
|
+
success: y,
|
|
27
|
+
metadata: H
|
|
28
28
|
};
|
|
29
29
|
s("useBookingManagement", () => {
|
|
30
|
-
u.mocked(
|
|
31
|
-
data:
|
|
32
|
-
}) : o.includes(
|
|
30
|
+
u.mocked(i.get).mockImplementation((o) => o.includes(c.USER_HOTEL_BOOKINGS) ? Promise.resolve({
|
|
31
|
+
data: _
|
|
32
|
+
}) : o.includes(c.USER_FLIGHT_BOOKINGS) ? Promise.resolve({
|
|
33
33
|
data: f
|
|
34
|
-
}) : Promise.resolve({ data: {} })), u.mocked(
|
|
34
|
+
}) : Promise.resolve({ data: {} })), u.mocked(i.post).mockImplementation((o) => o.includes(c.CANCEL_HOTEL_BOOKING) ? Promise.resolve({
|
|
35
35
|
data: { success: !0 }
|
|
36
|
-
}) : Promise.resolve({ data: {} })), u.mocked(
|
|
37
|
-
|
|
38
|
-
const { result: o } =
|
|
39
|
-
() =>
|
|
36
|
+
}) : Promise.resolve({ data: {} })), u.mocked(i.put).mockImplementation(() => Promise.resolve({ data: { success: !0 } })), s("Hotel Booking Management", () => {
|
|
37
|
+
l("Can fetch hotel booking by id", async () => {
|
|
38
|
+
const { result: o } = t(
|
|
39
|
+
() => a("684887c537d26f7b107a760a", n.HOTEL)
|
|
40
40
|
);
|
|
41
|
-
await
|
|
42
|
-
var
|
|
43
|
-
e(o.current.details).toBeDefined(), e((
|
|
41
|
+
await r(() => {
|
|
42
|
+
var p;
|
|
43
|
+
e(o.current.details).toBeDefined(), e((p = o.current.details) == null ? void 0 : p.id).toBe("684887c537d26f7b107a760a");
|
|
44
44
|
});
|
|
45
|
-
}),
|
|
46
|
-
const { result: o } =
|
|
47
|
-
() =>
|
|
45
|
+
}), l("Has correct structure for hotel booking details", async () => {
|
|
46
|
+
const { result: o } = t(
|
|
47
|
+
() => a("684887c537d26f7b107a760a", n.HOTEL)
|
|
48
48
|
);
|
|
49
|
-
|
|
50
|
-
e(o.current.
|
|
51
|
-
|
|
49
|
+
await r(() => {
|
|
50
|
+
e(o.current.details).toBeDefined(), e(o.current.details).toMatchObject({
|
|
51
|
+
id: "684887c537d26f7b107a760a",
|
|
52
|
+
name: e.any(String),
|
|
53
|
+
reference: e.any(String),
|
|
54
|
+
status: e.any(String),
|
|
55
|
+
description: e.any(String),
|
|
56
|
+
totalAmount: e.any(Number),
|
|
57
|
+
feeAmount: e.any(Number),
|
|
58
|
+
taxAmount: e.any(Number),
|
|
59
|
+
baseAmount: e.any(Number),
|
|
60
|
+
totalCurrency: e.any(String),
|
|
61
|
+
baseCurrency: e.any(String),
|
|
62
|
+
feeCurrency: e.any(String),
|
|
63
|
+
taxCurrency: e.any(String),
|
|
64
|
+
cancelledAt: null,
|
|
65
|
+
address: {
|
|
66
|
+
lineOne: e.any(String),
|
|
67
|
+
cityName: e.any(String),
|
|
68
|
+
postalCode: e.any(String),
|
|
69
|
+
countryCode: e.any(String),
|
|
70
|
+
region: null
|
|
71
|
+
},
|
|
72
|
+
checkinDate: e.any(String),
|
|
73
|
+
checkinAfterTime: e.any(String),
|
|
74
|
+
checkoutDate: e.any(String),
|
|
75
|
+
checkoutBeforeTime: e.any(String),
|
|
76
|
+
coordinates: {
|
|
77
|
+
latitude: 48.202473,
|
|
78
|
+
longitude: 16.376202
|
|
79
|
+
},
|
|
80
|
+
images: e.any(Array),
|
|
81
|
+
guests: e.arrayContaining([
|
|
82
|
+
e.objectContaining({
|
|
83
|
+
familyName: e.any(String),
|
|
84
|
+
givenName: e.any(String),
|
|
85
|
+
type: e.any(String)
|
|
86
|
+
})
|
|
87
|
+
]),
|
|
88
|
+
numberOfRooms: e.any(Number),
|
|
89
|
+
cancellationTimeline: e.arrayContaining([
|
|
90
|
+
e.objectContaining({
|
|
91
|
+
refundAmount: e.any(Number),
|
|
92
|
+
currency: e.any(String),
|
|
93
|
+
before: e.any(String)
|
|
94
|
+
})
|
|
95
|
+
])
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
}), l("Can cancel hotel booking", async () => {
|
|
99
|
+
const { result: o } = t(
|
|
100
|
+
() => a("684887c537d26f7b107a760a", n.HOTEL)
|
|
101
|
+
);
|
|
102
|
+
o.current.cancelBooking(), await r(() => {
|
|
103
|
+
e(o.current.isCancelingBooking).toBe(!1), e(o.current.isCancelBookingError).toBe(!1), e(i.post).toHaveBeenCalledWith(
|
|
104
|
+
`${c.CANCEL_HOTEL_BOOKING}/684887c537d26f7b107a760a`
|
|
52
105
|
);
|
|
53
106
|
});
|
|
54
107
|
});
|
|
55
108
|
}), s("Flight Booking Management", () => {
|
|
56
|
-
|
|
57
|
-
const { result: o } =
|
|
58
|
-
() =>
|
|
109
|
+
l("Can fetch flight booking by id", async () => {
|
|
110
|
+
const { result: o } = t(
|
|
111
|
+
() => a("6811290ef16af25943018944", n.FLIGHT)
|
|
112
|
+
);
|
|
113
|
+
await r(() => {
|
|
114
|
+
var p;
|
|
115
|
+
e(o.current.details).toBeDefined(), e((p = o.current.details) == null ? void 0 : p.id).toBe("6811290ef16af25943018944");
|
|
116
|
+
});
|
|
117
|
+
}), l("Has correct structure for flight booking details", async () => {
|
|
118
|
+
const { result: o } = t(
|
|
119
|
+
() => a("6811290ef16af25943018944", n.FLIGHT)
|
|
59
120
|
);
|
|
60
|
-
await
|
|
61
|
-
|
|
62
|
-
|
|
121
|
+
await r(() => {
|
|
122
|
+
e(o.current.details).toBeDefined(), e(o.current.details).toMatchObject({
|
|
123
|
+
id: "6811290ef16af25943018944",
|
|
124
|
+
taxAmount: e.any(Number),
|
|
125
|
+
extrasAmount: e.any(Number),
|
|
126
|
+
baseAmount: e.any(Number),
|
|
127
|
+
feeAmount: e.any(Number),
|
|
128
|
+
totalAmount: e.any(Number),
|
|
129
|
+
currency: e.any(String),
|
|
130
|
+
status: e.any(String),
|
|
131
|
+
conditions: {
|
|
132
|
+
changeBeforeDeparture: {
|
|
133
|
+
allowed: e.any(Boolean),
|
|
134
|
+
penaltyAmount: e.any(Number),
|
|
135
|
+
penaltyCurrency: e.any(String)
|
|
136
|
+
},
|
|
137
|
+
refundBeforeDeparture: {
|
|
138
|
+
allowed: e.any(Boolean),
|
|
139
|
+
penaltyAmount: null,
|
|
140
|
+
penaltyCurrency: null
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
class: e.any(String),
|
|
144
|
+
flightOfferId: e.any(String),
|
|
145
|
+
cancelledAt: null,
|
|
146
|
+
airlines: e.arrayContaining([
|
|
147
|
+
e.objectContaining({
|
|
148
|
+
name: e.any(String),
|
|
149
|
+
code: e.any(String),
|
|
150
|
+
logo: e.any(String)
|
|
151
|
+
})
|
|
152
|
+
]),
|
|
153
|
+
passengers: e.arrayContaining([
|
|
154
|
+
e.objectContaining({
|
|
155
|
+
id: e.any(String),
|
|
156
|
+
givenName: e.any(String),
|
|
157
|
+
familyName: e.any(String),
|
|
158
|
+
type: e.any(String),
|
|
159
|
+
title: e.any(String),
|
|
160
|
+
email: e.any(String),
|
|
161
|
+
gender: e.any(String),
|
|
162
|
+
phoneNumber: e.any(String)
|
|
163
|
+
})
|
|
164
|
+
]),
|
|
165
|
+
flights: e.arrayContaining([
|
|
166
|
+
e.objectContaining({
|
|
167
|
+
departingAt: e.any(String),
|
|
168
|
+
arrivingAt: e.any(String),
|
|
169
|
+
numberOfStops: e.any(Number),
|
|
170
|
+
reference: e.any(String),
|
|
171
|
+
durationInMinutes: e.any(String),
|
|
172
|
+
origin: e.any(Object),
|
|
173
|
+
destination: e.any(Object)
|
|
174
|
+
})
|
|
175
|
+
]),
|
|
176
|
+
availableActions: e.arrayContaining([e.any(String)])
|
|
177
|
+
});
|
|
63
178
|
});
|
|
64
|
-
}),
|
|
65
|
-
const { result: o } =
|
|
66
|
-
() =>
|
|
179
|
+
}), l("Can initiate cancellation of flight booking", async () => {
|
|
180
|
+
const { result: o } = t(
|
|
181
|
+
() => a("6811290ef16af25943018944", n.FLIGHT)
|
|
67
182
|
);
|
|
68
|
-
o.current.initiateCancellation(), await
|
|
69
|
-
e(o.current.isInitiatingCancellation).toBe(!1), e(o.current.isInitiateCancellationError).toBe(!1), e(
|
|
70
|
-
`${
|
|
183
|
+
o.current.initiateCancellation(), await r(() => {
|
|
184
|
+
e(o.current.isInitiatingCancellation).toBe(!1), e(o.current.isInitiateCancellationError).toBe(!1), e(i.put).toHaveBeenCalledWith(
|
|
185
|
+
`${c.INITIATE_FLIGHT_CANCEL}/6811290ef16af25943018944`
|
|
71
186
|
);
|
|
72
187
|
});
|
|
73
|
-
}),
|
|
74
|
-
const { result: o } =
|
|
75
|
-
() =>
|
|
188
|
+
}), l("Can confirm cancellation of flight booking", async () => {
|
|
189
|
+
const { result: o } = t(
|
|
190
|
+
() => a("6811290ef16af25943018944", n.FLIGHT)
|
|
76
191
|
);
|
|
77
|
-
o.current.cancelBooking(), await
|
|
78
|
-
e(o.current.isCancelingBooking).toBe(!1), e(o.current.isCancelBookingError).toBe(!1), e(
|
|
79
|
-
`${
|
|
192
|
+
o.current.cancelBooking(), await r(() => {
|
|
193
|
+
e(o.current.isCancelingBooking).toBe(!1), e(o.current.isCancelBookingError).toBe(!1), e(i.put).toHaveBeenCalledWith(
|
|
194
|
+
`${c.CONFIRM_FLIGHT_CANCEL}/6811290ef16af25943018944`
|
|
80
195
|
);
|
|
81
196
|
});
|
|
82
197
|
});
|
|
@@ -35,10 +35,15 @@ export interface IHotelBookingDetails {
|
|
|
35
35
|
checkinDate: string;
|
|
36
36
|
checkinAfterTime: string;
|
|
37
37
|
coordinates: ICoordinates;
|
|
38
|
+
cancellationTimeline: {
|
|
39
|
+
date: string;
|
|
40
|
+
time: string;
|
|
41
|
+
description: string;
|
|
42
|
+
}[];
|
|
38
43
|
}
|
|
39
44
|
export interface IFlightConditionDetails {
|
|
40
45
|
allowed: boolean;
|
|
41
|
-
penaltyAmount:
|
|
46
|
+
penaltyAmount: number | null;
|
|
42
47
|
penaltyCurrency: string | null;
|
|
43
48
|
}
|
|
44
49
|
export interface IFlightConditions {
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var u = (r, e, a) => e in r ? l(r, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : r[e] = a;
|
|
3
|
+
var c = (r, e, a) => u(r, typeof e != "symbol" ? e + "" : e, a);
|
|
4
4
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
5
5
|
import { c as i, b as s } from "../../AccountService-D_6U8vP6.js";
|
|
6
6
|
import "react";
|
|
7
|
-
import { EBookingEndpoints as
|
|
8
|
-
const
|
|
9
|
-
const e = /P((\d+)D)?T((\d+)H)?((\d+)M)?/, a =
|
|
7
|
+
import { EBookingEndpoints as d } from "../../configs/endpoints.js";
|
|
8
|
+
const _ = (r) => {
|
|
9
|
+
const e = /P((\d+)D)?T((\d+)H)?((\d+)M)?/, a = r.match(e);
|
|
10
10
|
if (a) {
|
|
11
|
-
const
|
|
12
|
-
return `${
|
|
11
|
+
const o = a[2] ? `${a[2]}d ` : "", t = a[4] ? `${a[4]}h ` : "", n = a[6] ? `${a[6]}m` : "";
|
|
12
|
+
return `${o}${t}${n}`.trim();
|
|
13
13
|
} else
|
|
14
|
-
return
|
|
14
|
+
return r;
|
|
15
15
|
};
|
|
16
|
-
class
|
|
16
|
+
class p {
|
|
17
17
|
constructor() {
|
|
18
|
-
|
|
18
|
+
c(this, "getHotelBooking", async (e) => {
|
|
19
19
|
const { data: a } = await i.get(
|
|
20
|
-
`${
|
|
21
|
-
);
|
|
20
|
+
`${d.USER_HOTEL_BOOKINGS}/${e}`
|
|
21
|
+
), o = a.data.accommodation.rooms[0].rates[0];
|
|
22
22
|
return {
|
|
23
23
|
id: a.data._id,
|
|
24
|
-
totalAmount: parseFloat(
|
|
25
|
-
feeAmount: parseFloat(
|
|
26
|
-
taxAmount: parseFloat(
|
|
27
|
-
baseAmount: parseFloat(
|
|
24
|
+
totalAmount: parseFloat(o.total_amount),
|
|
25
|
+
feeAmount: parseFloat(o.fee_amount),
|
|
26
|
+
taxAmount: parseFloat(o.tax_amount),
|
|
27
|
+
baseAmount: parseFloat(o.base_amount),
|
|
28
28
|
cancelledAt: a.data.cancelled_at,
|
|
29
|
-
totalCurrency:
|
|
30
|
-
baseCurrency:
|
|
31
|
-
feeCurrency:
|
|
32
|
-
taxCurrency:
|
|
29
|
+
totalCurrency: o.total_currency,
|
|
30
|
+
baseCurrency: o.base_currency,
|
|
31
|
+
feeCurrency: o.fee_currency,
|
|
32
|
+
taxCurrency: o.tax_currency,
|
|
33
33
|
status: a.data.status,
|
|
34
34
|
description: a.data.accommodation.description,
|
|
35
35
|
name: a.data.accommodation.name,
|
|
@@ -41,46 +41,70 @@ class _ {
|
|
|
41
41
|
countryCode: a.data.accommodation.location.address.country_code,
|
|
42
42
|
region: a.data.accommodation.location.address.region || null
|
|
43
43
|
},
|
|
44
|
-
checkinDate: a.data.
|
|
44
|
+
checkinDate: a.data.check_in_date,
|
|
45
45
|
checkinAfterTime: a.data.accommodation.check_in_information.check_in_after_time,
|
|
46
|
-
checkoutDate: a.data.
|
|
46
|
+
checkoutDate: a.data.check_out_date,
|
|
47
47
|
checkoutBeforeTime: a.data.accommodation.check_in_information.check_out_before_time,
|
|
48
48
|
coordinates: {
|
|
49
49
|
latitude: a.data.accommodation.location.geographic_coordinates.latitude,
|
|
50
50
|
longitude: a.data.accommodation.location.geographic_coordinates.longitude
|
|
51
51
|
},
|
|
52
|
-
images: a.data.
|
|
53
|
-
guests: a.data.guests.map((
|
|
54
|
-
familyName:
|
|
55
|
-
givenName:
|
|
56
|
-
type: a.data.guest_types[
|
|
52
|
+
images: a.data.accommodation.photos.map((n) => n.url),
|
|
53
|
+
guests: a.data.guests.map((n, m) => ({
|
|
54
|
+
familyName: n.family_name,
|
|
55
|
+
givenName: n.given_name,
|
|
56
|
+
type: a.data.guest_types[m].type
|
|
57
57
|
})),
|
|
58
|
-
numberOfRooms: a.data.rooms
|
|
58
|
+
numberOfRooms: a.data.rooms,
|
|
59
|
+
cancellationTimeline: o.cancellation_timeline.map(
|
|
60
|
+
(n) => ({
|
|
61
|
+
refundAmount: parseFloat(n.refund_amount),
|
|
62
|
+
currency: n.currency,
|
|
63
|
+
before: n.before
|
|
64
|
+
})
|
|
65
|
+
)
|
|
59
66
|
};
|
|
60
67
|
});
|
|
61
|
-
|
|
68
|
+
c(this, "getFlightBooking", async (e) => {
|
|
62
69
|
const { data: a } = await i.get(
|
|
63
|
-
`${
|
|
70
|
+
`${d.USER_FLIGHT_BOOKINGS}/${e}`
|
|
64
71
|
);
|
|
65
72
|
return {
|
|
66
73
|
id: a.data._id,
|
|
67
74
|
taxAmount: parseFloat(a.data.tax_amount),
|
|
68
|
-
extrasAmount: parseFloat(a.data.extras_amount),
|
|
75
|
+
extrasAmount: parseFloat(a.data.extras_amount ?? "0"),
|
|
69
76
|
baseAmount: parseFloat(a.data.base_amount),
|
|
70
|
-
feeAmount: parseFloat(a.data.fee_amount),
|
|
77
|
+
feeAmount: parseFloat(a.data.fee_amount ?? "0"),
|
|
71
78
|
totalAmount: parseFloat(a.data.total_amount),
|
|
72
79
|
currency: a.data.total_currency,
|
|
73
80
|
status: a.data.status,
|
|
74
|
-
conditions:
|
|
81
|
+
conditions: {
|
|
82
|
+
changeBeforeDeparture: {
|
|
83
|
+
allowed: a.data.conditions.change_before_departure.allowed,
|
|
84
|
+
penaltyAmount: a.data.conditions.change_before_departure.penalty_amount ? parseFloat(
|
|
85
|
+
a.data.conditions.change_before_departure.penalty_amount
|
|
86
|
+
) : null,
|
|
87
|
+
penaltyCurrency: a.data.conditions.change_before_departure.penalty_currency
|
|
88
|
+
},
|
|
89
|
+
refundBeforeDeparture: {
|
|
90
|
+
allowed: a.data.conditions.refund_before_departure.allowed,
|
|
91
|
+
penaltyAmount: a.data.conditions.refund_before_departure.penalty_amount ? parseFloat(
|
|
92
|
+
a.data.conditions.refund_before_departure.penalty_amount
|
|
93
|
+
) : null,
|
|
94
|
+
penaltyCurrency: a.data.conditions.refund_before_departure.penalty_currency
|
|
95
|
+
}
|
|
96
|
+
},
|
|
75
97
|
class: a.data.slices[0].fare_brand_name,
|
|
76
|
-
flightOfferId: a.data.
|
|
98
|
+
flightOfferId: a.data.offer_id,
|
|
77
99
|
cancelledAt: a.data.cancelled_at,
|
|
78
|
-
airlines: a.data.slices[0].segments.map(
|
|
79
|
-
|
|
80
|
-
|
|
100
|
+
airlines: a.data.slices[0].segments.map((t) => ({
|
|
101
|
+
name: t.operating_carrier.name,
|
|
102
|
+
code: t.operating_carrier.iata_code,
|
|
103
|
+
logo: t.operating_carrier.logo_symbol_url
|
|
104
|
+
})),
|
|
81
105
|
passengers: a.data.passengers.map((t) => ({
|
|
82
106
|
id: t.id,
|
|
83
|
-
givenName: t.
|
|
107
|
+
givenName: t.given_name,
|
|
84
108
|
familyName: t.family_name,
|
|
85
109
|
type: t.type,
|
|
86
110
|
title: t.title,
|
|
@@ -93,34 +117,34 @@ class _ {
|
|
|
93
117
|
arrivingAt: t.segments.getLast().arriving_at,
|
|
94
118
|
numberOfStops: t.segments.length - 1,
|
|
95
119
|
reference: a.data.booking_reference,
|
|
96
|
-
durationInMinutes:
|
|
120
|
+
durationInMinutes: _(t.duration),
|
|
97
121
|
origin: s(t.origin),
|
|
98
122
|
destination: s(t.destination)
|
|
99
123
|
})),
|
|
100
124
|
availableActions: a.data.available_actions
|
|
101
125
|
};
|
|
102
126
|
});
|
|
103
|
-
|
|
127
|
+
c(this, "initiateCancelFlightBooking", async (e) => {
|
|
104
128
|
const { data: a } = await i.put(
|
|
105
|
-
`${
|
|
129
|
+
`${d.INITIATE_FLIGHT_CANCEL}/${e}`
|
|
106
130
|
);
|
|
107
131
|
return a.success;
|
|
108
132
|
});
|
|
109
|
-
|
|
133
|
+
c(this, "confirmCancelFlightBooking", async (e) => {
|
|
110
134
|
const { data: a } = await i.put(
|
|
111
|
-
`${
|
|
135
|
+
`${d.CONFIRM_FLIGHT_CANCEL}/${e}`
|
|
112
136
|
);
|
|
113
137
|
return a.success;
|
|
114
138
|
});
|
|
115
|
-
|
|
139
|
+
c(this, "cancelHotelBooking", async (e) => {
|
|
116
140
|
const { data: a } = await i.post(
|
|
117
|
-
`${
|
|
141
|
+
`${d.CANCEL_HOTEL_BOOKING}/${e}`
|
|
118
142
|
);
|
|
119
143
|
return a.success;
|
|
120
144
|
});
|
|
121
145
|
}
|
|
122
146
|
}
|
|
123
|
-
const k = new
|
|
147
|
+
const k = new p();
|
|
124
148
|
export {
|
|
125
149
|
k as BookingService
|
|
126
150
|
};
|