@odynn/awayz-core 0.5.6 → 0.5.7

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,10 +1,10 @@
1
- var r = /* @__PURE__ */ ((e) => (e.SIGN_IN = "auth/user-login", e.SIGN_UP = "auth/sign-up", e.ME = "user", e.RESEND_VERIFICATION_EMAIL = "auth/resend-verification-email", e.UPDATE_USER_DETAILS = "account/update/user", e.CONFIRM_EMAIL = "account/verifyAccount", e.FORGOT_PASSWORD = "email/sendVeri", e.RESEND_OTP = "email/sendForgotPasswordVerification", e.RESET_PASSWORD = "account/updateUserPassword", e.REQUEST_LIMIT = "user/request-limit", e.APPLE_SOCIAL_SIGN_UP = "tp/apple/get/user", e.GOOGLE_SOCIAL_SIGN_UP = "tp/google/get/user", e.UPDATE_USER = "account/details/addUserDetails", e.ACKNOWLEDGEMENT = "account/update/userAcknowledgement", e.REGIONS = "user/region", e.UPDATE_USER_REGION = "/account/update/userRegion", e.UPDATE_PASSENGER_DETAILS = "/account/awayz", e.REFRESH_TOKEN = "auth/refresh-token", e.EXCHANGE_TOKEN = "user/exchange-token", e.REFRESH_EMBED_TOKEN = "user/refresh-token", e.OAUTH_INITIATE = "user/oauth2/initiate", e.OAUTH_CALLBACK = "user/oauth2/callback", e))(r || {}), _ = /* @__PURE__ */ ((e) => (e.CURRENCY_CONVERSION = "currency/convert", e))(_ || {}), a = /* @__PURE__ */ ((e) => (e.USER_AWARDS = "user/rewards", e.LINKED_USER_AWARDS = "user/rewards/user-linked", e.USER_CARDS = "user/cards", e.ADD_USER_CARDS = "user/cards/add", e.REMOVE_USER_CARDS = "user/cards/remove", e.BANKS = "banks", e.CARDS = "cards", e))(a || {}), S = /* @__PURE__ */ ((e) => (e.TRIPS = "user/trips", e.ADD_BOOKING = "user/trips/add-booking-to-trip", e.REMOVE_BOOKING = "user/trips/remove-booking-from-trip", e.UNCATEGORISED_BOOKINGS = "/user/trips/get-uncategorized-bookings", e))(S || {}), R = /* @__PURE__ */ ((e) => (e.USER_HOTEL_BOOKINGS = "/user/bookings/hotels", e.USER_FLIGHT_BOOKINGS = "/user/bookings/flights", e.INITIATE_FLIGHT_CANCEL = "/duffel/flights/initiate-order-cancellation", e.CONFIRM_FLIGHT_CANCEL = "/duffel/flights/confirm-order-cancellation", e.CANCEL_HOTEL_BOOKING = "/duffel/hotels/cancel", e))(R || {}), I = /* @__PURE__ */ ((e) => (e.POINTS_PER_CENT = "/user/rewards/points-per-cent", e))(I || {}), O = /* @__PURE__ */ ((e) => (e.USER_PREFERENCES = "/user/user-preferences", e))(O || {});
1
+ var r = /* @__PURE__ */ ((e) => (e.SIGN_IN = "auth/user-login", e.SIGN_UP = "auth/sign-up", e.ME = "user", e.RESEND_VERIFICATION_EMAIL = "auth/resend-verification-email", e.UPDATE_USER_DETAILS = "account/update/user", e.CONFIRM_EMAIL = "account/verifyAccount", e.FORGOT_PASSWORD = "email/sendVeri", e.RESEND_OTP = "email/sendForgotPasswordVerification", e.RESET_PASSWORD = "account/updateUserPassword", e.REQUEST_LIMIT = "user/request-limit", e.APPLE_SOCIAL_SIGN_UP = "tp/apple/get/user", e.GOOGLE_SOCIAL_SIGN_UP = "tp/google/get/user", e.UPDATE_USER = "account/details/addUserDetails", e.ACKNOWLEDGEMENT = "account/update/userAcknowledgement", e.REGIONS = "user/region", e.UPDATE_USER_REGION = "/account/update/userRegion", e.UPDATE_PASSENGER_DETAILS = "/account/awayz", e.REFRESH_TOKEN = "auth/refresh-token", e.EXCHANGE_TOKEN = "user/exchange-token", e.REFRESH_EMBED_TOKEN = "user/refresh-token", e.OAUTH_INITIATE = "user/oauth2/initiate", e.OAUTH_CALLBACK = "user/oauth2/callback", e))(r || {}), a = /* @__PURE__ */ ((e) => (e.CURRENCY_CONVERSION = "currency/convert", e))(a || {}), _ = /* @__PURE__ */ ((e) => (e.USER_AWARDS = "user/rewards", e.LINKED_USER_AWARDS = "user/rewards/user-linked", e.USER_CARDS = "user/cards", e.ADD_USER_CARDS = "user/cards/add", e.REMOVE_USER_CARDS = "user/cards/remove", e.BANKS = "banks", e.CARDS = "cards", e))(_ || {}), S = /* @__PURE__ */ ((e) => (e.TRIPS = "user/trips", e.ADD_BOOKING = "user/trips/add-booking-to-trip", e.REMOVE_BOOKING = "user/trips/remove-booking-from-trip", e.UNCATEGORISED_BOOKINGS = "/user/trips/get-uncategorized-bookings", e))(S || {}), R = /* @__PURE__ */ ((e) => (e.USER_HOTEL_BOOKINGS = "/user/bookings/hotels", e.USER_FLIGHT_BOOKINGS = "/user/bookings/flights", e.INITIATE_FLIGHT_CANCEL = "/duffel/flights/initiate-order-cancellation", e.CONFIRM_FLIGHT_CANCEL = "/duffel/flights/confirm-order-cancellation", e.CANCEL_HOTEL_BOOKING = "/duffel/hotels/cancel", e.ACTION_AIRLINE_CHANGES = "/user/bookings/flights/action-airline-initiated-changes", e))(R || {}), I = /* @__PURE__ */ ((e) => (e.POINTS_PER_CENT = "/user/rewards/points-per-cent", e))(I || {}), N = /* @__PURE__ */ ((e) => (e.USER_PREFERENCES = "/user/user-preferences", e))(N || {});
2
2
  export {
3
3
  r as EAuthEndpoints,
4
4
  R as EBookingEndpoints,
5
- _ as ECurrencyEndpoints,
5
+ a as ECurrencyEndpoints,
6
6
  S as EMyTripsEndpoints,
7
- O as EPreferencesEndpoints,
7
+ N as EPreferencesEndpoints,
8
8
  I as ERewardsEndpoints,
9
- a as EWalletEndpoints
9
+ _ as EWalletEndpoints
10
10
  };
@@ -1,11 +1,11 @@
1
- import { useQuery as a, useMutation as s } from "@tanstack/react-query";
1
+ import { useQuery as l, useMutation as c } from "@tanstack/react-query";
2
2
  import "../../arrayExtensions-DlcBOj5a.js";
3
- import { E as t } from "../../AccountService-CtMwRIoL.js";
3
+ import { E as o } from "../../AccountService-CtMwRIoL.js";
4
4
  import "react";
5
5
  import "react/jsx-runtime";
6
6
  import "../../context/AwayzContext.js";
7
- import { awayzClient as n } from "../../configs/awayzClient.js";
8
- import { EBookingType as e } from "../../services/trips/TripService.types.js";
7
+ import { awayzClient as q } from "../../configs/awayzClient.js";
8
+ import { EBookingType as i } from "../../services/trips/TripService.types.js";
9
9
  import "../../services/noRetryInstance.js";
10
10
  import '../../assets/_styles5.css';import '../../assets/_styles4.css';import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';/* empty css */
11
11
  /* empty css */
@@ -13,80 +13,102 @@ import "react-i18next";
13
13
  /* empty css */
14
14
  /* empty css */
15
15
  /* empty css */
16
- import { BookingService as o } from "../../services/bookings/BookingService.js";
17
- const A = (r, i) => {
16
+ import { BookingService as t } from "../../services/bookings/BookingService.js";
17
+ const W = (r, e) => {
18
18
  const {
19
- data: l,
20
- isError: c,
21
- error: u
22
- } = a({
23
- queryKey: [t.BOOKING, r, e.HOTEL],
24
- queryFn: () => o.getHotelBooking(r),
25
- enabled: i === e.HOTEL && !!r
26
- }), {
27
- data: m,
28
- isError: B,
19
+ data: u,
20
+ isError: m,
29
21
  error: E
30
- } = a({
31
- queryKey: [t.BOOKING, r, e.FLIGHT],
32
- queryFn: () => o.getFlightBooking(r),
33
- enabled: i === e.FLIGHT && !!r
22
+ } = l({
23
+ queryKey: [o.BOOKING, r, i.HOTEL],
24
+ queryFn: () => t.getHotelBooking(r),
25
+ enabled: e === i.HOTEL && !!r
26
+ }), {
27
+ data: n,
28
+ isError: g,
29
+ error: B
30
+ } = l({
31
+ queryKey: [o.BOOKING, r, i.FLIGHT],
32
+ queryFn: () => t.getFlightBooking(r),
33
+ enabled: e === i.FLIGHT && !!r
34
34
  }), {
35
- mutate: g,
36
- isPending: O,
37
- isError: y,
38
- error: p,
35
+ mutate: C,
36
+ isPending: h,
37
+ isError: p,
38
+ error: F,
39
39
  isSuccess: f
40
- } = s({
40
+ } = c({
41
41
  mutationFn: async () => {
42
- if (i === e.FLIGHT)
43
- return o.initiateCancelFlightBooking(r);
42
+ if (e === i.FLIGHT)
43
+ return t.initiateCancelFlightBooking(r);
44
44
  throw new Error("Not supported for hotel bookings");
45
45
  },
46
46
  onSuccess: () => {
47
- n.invalidateQueries({
48
- queryKey: [t.BOOKING, r, i]
49
- });
47
+ a();
50
48
  }
51
49
  }), {
52
- mutate: C,
53
- isPending: F,
54
- isError: K,
55
- error: H,
56
- isSuccess: h
57
- } = s({
50
+ mutate: O,
51
+ isPending: H,
52
+ isError: S,
53
+ error: G,
54
+ isSuccess: y
55
+ } = c({
58
56
  mutationFn: async () => {
59
- if (i === e.FLIGHT)
60
- return o.confirmCancelFlightBooking(r);
61
- if (i === e.HOTEL)
62
- return o.cancelHotelBooking(r);
57
+ if (e === i.FLIGHT)
58
+ return t.confirmCancelFlightBooking(r);
59
+ if (e === i.HOTEL)
60
+ return t.cancelHotelBooking(r);
61
+ },
62
+ onSuccess: () => {
63
+ a();
64
+ }
65
+ }), {
66
+ mutate: L,
67
+ isPending: A,
68
+ isError: K,
69
+ error: d
70
+ } = c({
71
+ mutationFn: async (s) => {
72
+ if (e === i.FLIGHT && (n != null && n.airlineInitiatedChanges))
73
+ return t.actionAirlineChanges({
74
+ bookingId: r,
75
+ acceptChanges: s,
76
+ aicId: n.airlineInitiatedChanges[0].id
77
+ });
78
+ throw new Error("Not supported for hotel bookings");
63
79
  },
64
80
  onSuccess: () => {
65
- n.invalidateQueries({
66
- queryKey: [t.BOOKING, r, i]
67
- }), n.invalidateQueries({
68
- queryKey: [t.TRIPS]
69
- }), n.invalidateQueries({
70
- queryKey: [t.UNCATEGORISED_BOOKINGS]
71
- });
81
+ a();
72
82
  }
73
- }), G = c || B, S = u || E;
83
+ }), a = () => {
84
+ [
85
+ [o.BOOKING, r, e],
86
+ [o.TRIPS],
87
+ [o.UNCATEGORISED_BOOKINGS]
88
+ ].forEach((s) => {
89
+ q.invalidateQueries({ queryKey: s });
90
+ });
91
+ }, I = m || g, N = E || B;
74
92
  return {
75
- details: i === e.HOTEL ? l : m,
76
- isError: G,
77
- error: S,
78
- initiateCancellation: g,
79
- isInitiatingCancellation: O,
80
- isInitiateCancellationError: y,
81
- initiateCancellationError: p,
93
+ details: e === i.HOTEL ? u : n,
94
+ isError: I,
95
+ error: N,
96
+ initiateCancellation: C,
97
+ isInitiatingCancellation: h,
98
+ isInitiateCancellationError: p,
99
+ initiateCancellationError: F,
82
100
  isInitiateCancellationSuccess: f,
83
- cancelBooking: C,
84
- isCancelingBooking: F,
85
- isCancelBookingError: K,
86
- cancelBookingError: H,
87
- isCancelBookingSuccess: h
101
+ cancelBooking: O,
102
+ isCancellingBooking: H,
103
+ isCancelBookingError: S,
104
+ cancelBookingError: G,
105
+ isCancelBookingSuccess: y,
106
+ actionAirlineChanges: L,
107
+ isActionAirlineChangesPending: A,
108
+ isActionAirlineChangesError: K,
109
+ actionAirlineChangesError: d
88
110
  };
89
111
  };
90
112
  export {
91
- A as useBookingManagement
113
+ W as useBookingManagement
92
114
  };
@@ -1,53 +1,53 @@
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-CtMwRIoL.js";
1
+ import { EBookingEndpoints as i } from "../../configs/endpoints.js";
2
+ import { c } from "../../AccountService-CtMwRIoL.js";
4
3
  import "../../services/noRetryInstance.js";
5
4
  import "../../arrayExtensions-DlcBOj5a.js";
6
5
  import "react";
7
- import { EBookingEndpoints as c } from "../../configs/endpoints.js";
8
6
  import "react/jsx-runtime";
9
7
  import "../../context/AwayzContext.js";
10
8
  import "../../configs/awayzClient.js";
11
9
  import "@tanstack/react-query";
12
- import { EBookingType as n } from "../../services/trips/TripService.types.js";
10
+ import { EBookingType as t } from "../../services/trips/TripService.types.js";
11
+ import { useBookingManagement as r } from "./useBookingManagement.js";
13
12
  import '../../assets/_styles5.css';import '../../assets/_styles4.css';import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';/* empty css */
14
13
  /* empty css */
15
14
  import "react-i18next";
16
15
  /* empty css */
17
16
  /* empty css */
18
17
  /* empty css */
18
+ import { renderHook as a, waitFor as n } from "../../tests/TestWrapper.js";
19
19
  import { d as s, v as u, t as l, g as e } from "../../vi.ClIskdbk-k6t29WRA.js";
20
- 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":[{}],"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" }, _ = {
21
- success: d,
22
- data: m,
23
- metadata: g
24
- }, 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 = {
25
- data: h,
26
- message: v,
27
- success: y,
20
+ const d = { _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" }, m = "Flight booking found", g = !0, _ = { internalRequestId: "f6b54196-4d33-434d-9800-d9dc72a074ab" }, h = {
21
+ data: d,
22
+ message: m,
23
+ success: g,
24
+ metadata: _
25
+ }, v = !0, y = /* @__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":[{}],"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"}'), H = { internalRequestId: "818a9940-57ee-444e-923c-d0d6fc2bc82d" }, f = {
26
+ success: v,
27
+ data: y,
28
28
  metadata: H
29
29
  };
30
30
  s("useBookingManagement", () => {
31
- u.mocked(i.get).mockImplementation((o) => o.includes(c.USER_HOTEL_BOOKINGS) ? Promise.resolve({
32
- data: _
33
- }) : o.includes(c.USER_FLIGHT_BOOKINGS) ? Promise.resolve({
31
+ u.mocked(c.get).mockImplementation((o) => o.includes(i.USER_HOTEL_BOOKINGS) ? Promise.resolve({
34
32
  data: f
35
- }) : Promise.resolve({ data: {} })), u.mocked(i.post).mockImplementation((o) => o.includes(c.CANCEL_HOTEL_BOOKING) ? Promise.resolve({
33
+ }) : o.includes(i.USER_FLIGHT_BOOKINGS) ? Promise.resolve({
34
+ data: h
35
+ }) : Promise.resolve({ data: {} })), u.mocked(c.post).mockImplementation((o) => o.includes(i.CANCEL_HOTEL_BOOKING) ? Promise.resolve({
36
36
  data: { success: !0 }
37
- }) : Promise.resolve({ data: {} })), u.mocked(i.put).mockImplementation(() => Promise.resolve({ data: { success: !0 } })), s("Hotel Booking Management", () => {
37
+ }) : Promise.resolve({ data: {} })), u.mocked(c.put).mockImplementation(() => Promise.resolve({ data: { success: !0 } })), s("Hotel Booking Management", () => {
38
38
  l("Can fetch hotel booking by id", async () => {
39
- const { result: o } = t(
40
- () => a("684887c537d26f7b107a760a", n.HOTEL)
39
+ const { result: o } = a(
40
+ () => r("684887c537d26f7b107a760a", t.HOTEL)
41
41
  );
42
- await r(() => {
42
+ await n(() => {
43
43
  var p;
44
44
  e(o.current.details).toBeDefined(), e((p = o.current.details) == null ? void 0 : p.id).toBe("684887c537d26f7b107a760a");
45
45
  });
46
46
  }), l("Has correct structure for hotel booking details", async () => {
47
- const { result: o } = t(
48
- () => a("684887c537d26f7b107a760a", n.HOTEL)
47
+ const { result: o } = a(
48
+ () => r("684887c537d26f7b107a760a", t.HOTEL)
49
49
  );
50
- await r(() => {
50
+ await n(() => {
51
51
  e(o.current.details).toBeDefined(), e(o.current.details).toMatchObject({
52
52
  id: "684887c537d26f7b107a760a",
53
53
  name: e.any(String),
@@ -97,29 +97,29 @@ s("useBookingManagement", () => {
97
97
  });
98
98
  });
99
99
  }), l("Can cancel hotel booking", async () => {
100
- const { result: o } = t(
101
- () => a("684887c537d26f7b107a760a", n.HOTEL)
100
+ const { result: o } = a(
101
+ () => r("684887c537d26f7b107a760a", t.HOTEL)
102
102
  );
103
- o.current.cancelBooking(), await r(() => {
104
- e(o.current.isCancelingBooking).toBe(!1), e(o.current.isCancelBookingError).toBe(!1), e(i.post).toHaveBeenCalledWith(
105
- `${c.CANCEL_HOTEL_BOOKING}/684887c537d26f7b107a760a`
103
+ o.current.cancelBooking(), await n(() => {
104
+ e(o.current.isCancellingBooking).toBe(!1), e(o.current.isCancelBookingError).toBe(!1), e(c.post).toHaveBeenCalledWith(
105
+ `${i.CANCEL_HOTEL_BOOKING}/684887c537d26f7b107a760a`
106
106
  );
107
107
  });
108
108
  });
109
109
  }), s("Flight Booking Management", () => {
110
110
  l("Can fetch flight booking by id", async () => {
111
- const { result: o } = t(
112
- () => a("6811290ef16af25943018944", n.FLIGHT)
111
+ const { result: o } = a(
112
+ () => r("6811290ef16af25943018944", t.FLIGHT)
113
113
  );
114
- await r(() => {
114
+ await n(() => {
115
115
  var p;
116
116
  e(o.current.details).toBeDefined(), e((p = o.current.details) == null ? void 0 : p.id).toBe("6811290ef16af25943018944");
117
117
  });
118
118
  }), l("Has correct structure for flight booking details", async () => {
119
- const { result: o } = t(
120
- () => a("6811290ef16af25943018944", n.FLIGHT)
119
+ const { result: o } = a(
120
+ () => r("6811290ef16af25943018944", t.FLIGHT)
121
121
  );
122
- await r(() => {
122
+ await n(() => {
123
123
  e(o.current.details).toBeDefined(), e(o.current.details).toMatchObject({
124
124
  id: "6811290ef16af25943018944",
125
125
  taxAmount: e.any(Number),
@@ -177,21 +177,21 @@ s("useBookingManagement", () => {
177
177
  });
178
178
  });
179
179
  }), l("Can initiate cancellation of flight booking", async () => {
180
- const { result: o } = t(
181
- () => a("6811290ef16af25943018944", n.FLIGHT)
180
+ const { result: o } = a(
181
+ () => r("6811290ef16af25943018944", t.FLIGHT)
182
182
  );
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`
183
+ o.current.initiateCancellation(), await n(() => {
184
+ e(o.current.isInitiatingCancellation).toBe(!1), e(o.current.isInitiateCancellationError).toBe(!1), e(c.put).toHaveBeenCalledWith(
185
+ `${i.INITIATE_FLIGHT_CANCEL}/6811290ef16af25943018944`
186
186
  );
187
187
  });
188
188
  }), l("Can confirm cancellation of flight booking", async () => {
189
- const { result: o } = t(
190
- () => a("6811290ef16af25943018944", n.FLIGHT)
189
+ const { result: o } = a(
190
+ () => r("6811290ef16af25943018944", t.FLIGHT)
191
191
  );
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`
192
+ o.current.cancelBooking(), await n(() => {
193
+ e(o.current.isCancellingBooking).toBe(!1), e(o.current.isCancelBookingError).toBe(!1), e(c.put).toHaveBeenCalledWith(
194
+ `${i.CONFIRM_FLIGHT_CANCEL}/6811290ef16af25943018944`
195
195
  );
196
196
  });
197
197
  });
@@ -45,7 +45,8 @@ export declare enum EBookingEndpoints {
45
45
  USER_FLIGHT_BOOKINGS = "/user/bookings/flights",
46
46
  INITIATE_FLIGHT_CANCEL = "/duffel/flights/initiate-order-cancellation",
47
47
  CONFIRM_FLIGHT_CANCEL = "/duffel/flights/confirm-order-cancellation",
48
- CANCEL_HOTEL_BOOKING = "/duffel/hotels/cancel"
48
+ CANCEL_HOTEL_BOOKING = "/duffel/hotels/cancel",
49
+ ACTION_AIRLINE_CHANGES = "/user/bookings/flights/action-airline-initiated-changes"
49
50
  }
50
51
  export declare enum ERewardsEndpoints {
51
52
  POINTS_PER_CENT = "/user/rewards/points-per-cent"
@@ -45,7 +45,7 @@ export interface IUseBookingManagement {
45
45
  /**
46
46
  * Indicates if the cancel booking request is pending
47
47
  */
48
- isCancelingBooking: boolean;
48
+ isCancellingBooking: boolean;
49
49
  /**
50
50
  * Indicates if there was an error while canceling the booking
51
51
  */
@@ -54,4 +54,22 @@ export interface IUseBookingManagement {
54
54
  * The error object if there was an error while canceling the booking
55
55
  */
56
56
  cancelBookingError: Error | null;
57
+ /**
58
+ * Function to handle airline initiated changes
59
+ * This is **ONLY** used for flight bookings
60
+ * @param accept - Whether to accept or reject the changes
61
+ */
62
+ actionAirlineChanges: (accept: boolean) => void;
63
+ /**
64
+ * Indicates if the action airline changes request is pending
65
+ */
66
+ isActionAirlineChangesPending: boolean;
67
+ /**
68
+ * Indicates if there was an error while handling airline initiated changes
69
+ */
70
+ isActionAirlineChangesError: boolean;
71
+ /**
72
+ * The error object if there was an error while handling airline initiated changes
73
+ */
74
+ actionAirlineChangesError: Error | null;
57
75
  }
@@ -1,10 +1,11 @@
1
- import { IFlightBookingDetails, IHotelBookingDetails } from './BookingService.types';
1
+ import { IActionAirlineChangesRequest, IFlightBookingDetails, IHotelBookingDetails } from './BookingService.types';
2
2
  declare class _BookingService {
3
3
  getHotelBooking: (bookingId: string) => Promise<IHotelBookingDetails>;
4
4
  getFlightBooking: (bookingId: string) => Promise<IFlightBookingDetails>;
5
5
  initiateCancelFlightBooking: (bookingId: string) => Promise<any>;
6
6
  confirmCancelFlightBooking: (bookingId: string) => Promise<any>;
7
7
  cancelHotelBooking: (bookingId: string) => Promise<any>;
8
+ actionAirlineChanges: ({ bookingId, acceptChanges, aicId }: IActionAirlineChangesRequest) => Promise<any>;
8
9
  }
9
10
  export declare const BookingService: _BookingService;
10
11
  export {};
@@ -1,4 +1,4 @@
1
- import { IAirport, ICoordinates } from '@type-op/shared';
1
+ import { IAirport, ICoordinates, ISlice } from '@type-op/shared';
2
2
  export interface IGuest {
3
3
  familyName: string;
4
4
  givenName: string;
@@ -80,6 +80,7 @@ export interface IFlightBookingDetails {
80
80
  }[];
81
81
  flights: IFlight[];
82
82
  availableActions: string[];
83
+ airlineInitiatedChanges: IAirlineInitiatedChanges[];
83
84
  }
84
85
  export interface IFlight {
85
86
  origin: IAirport;
@@ -90,3 +91,20 @@ export interface IFlight {
90
91
  durationInMinutes: number;
91
92
  reference: string;
92
93
  }
94
+ export interface IActionAirlineChangesRequest {
95
+ bookingId: string;
96
+ acceptChanges: boolean;
97
+ aicId: string;
98
+ }
99
+ export interface IAirlineInitiatedChanges {
100
+ id: string;
101
+ availableActions: string[];
102
+ travelAgentTicket?: string;
103
+ actionTakenAt?: string;
104
+ actionTaken?: string;
105
+ orderId: string;
106
+ createdAt: string;
107
+ updatedAt: string;
108
+ added: ISlice[];
109
+ removed: ISlice[];
110
+ }
@@ -1,8 +1,8 @@
1
1
  var u = Object.defineProperty;
2
2
  var _ = (n, e, a) => e in n ? u(n, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : n[e] = a;
3
- var c = (n, e, a) => _(n, typeof e != "symbol" ? e + "" : e, a);
3
+ var i = (n, e, a) => _(n, typeof e != "symbol" ? e + "" : e, a);
4
4
  import "../../arrayExtensions-DlcBOj5a.js";
5
- import { c as i, b as m } from "../../AccountService-CtMwRIoL.js";
5
+ import { c, b as l } from "../../AccountService-CtMwRIoL.js";
6
6
  import "react";
7
7
  import { EBookingEndpoints as d } from "../../configs/endpoints.js";
8
8
  const p = (n) => {
@@ -15,9 +15,9 @@ const p = (n) => {
15
15
  };
16
16
  class g {
17
17
  constructor() {
18
- c(this, "getHotelBooking", async (e) => {
18
+ i(this, "getHotelBooking", async (e) => {
19
19
  var s;
20
- const { data: a } = await i.get(
20
+ const { data: a } = await c.get(
21
21
  `${d.USER_HOTEL_BOOKINGS}/${e}`
22
22
  ), o = a.data.accommodation.rooms[0].rates[0];
23
23
  return {
@@ -51,10 +51,10 @@ class g {
51
51
  longitude: a.data.accommodation.location.geographic_coordinates.longitude
52
52
  },
53
53
  images: a.data.accommodation.photos.map((r) => r.url),
54
- guests: a.data.guests.map((r, l) => ({
54
+ guests: a.data.guests.map((r, m) => ({
55
55
  familyName: r.family_name,
56
56
  givenName: r.given_name,
57
- type: a.data.guest_types[l].type
57
+ type: a.data.guest_types[m].type
58
58
  })),
59
59
  numberOfRooms: (s = a.data.rooms) == null ? void 0 : s.length,
60
60
  cancellationTimeline: o.cancellation_timeline.map(
@@ -66,8 +66,8 @@ class g {
66
66
  )
67
67
  };
68
68
  });
69
- c(this, "getFlightBooking", async (e) => {
70
- const { data: a } = await i.get(
69
+ i(this, "getFlightBooking", async (e) => {
70
+ const { data: a } = await c.get(
71
71
  `${d.USER_FLIGHT_BOOKINGS}/${e}`
72
72
  );
73
73
  return {
@@ -118,30 +118,46 @@ class g {
118
118
  numberOfStops: t.segments.length - 1,
119
119
  reference: a.data.booking_reference,
120
120
  durationInMinutes: p(t.duration),
121
- origin: m(t.origin),
122
- destination: m(t.destination)
121
+ origin: l(t.origin),
122
+ destination: l(t.destination)
123
123
  })),
124
- availableActions: a.data.available_actions
124
+ availableActions: a.data.available_actions,
125
+ airlineInitiatedChanges: l(a.data.airline_initiated_changes) || []
125
126
  };
126
127
  });
127
- c(this, "initiateCancelFlightBooking", async (e) => {
128
- const { data: a } = await i.put(
128
+ i(this, "initiateCancelFlightBooking", async (e) => {
129
+ const { data: a } = await c.put(
129
130
  `${d.INITIATE_FLIGHT_CANCEL}/${e}`
130
131
  );
131
132
  return a.success;
132
133
  });
133
- c(this, "confirmCancelFlightBooking", async (e) => {
134
- const { data: a } = await i.put(
134
+ i(this, "confirmCancelFlightBooking", async (e) => {
135
+ const { data: a } = await c.put(
135
136
  `${d.CONFIRM_FLIGHT_CANCEL}/${e}`
136
137
  );
137
138
  return a.success;
138
139
  });
139
- c(this, "cancelHotelBooking", async (e) => {
140
- const { data: a } = await i.post(
140
+ i(this, "cancelHotelBooking", async (e) => {
141
+ const { data: a } = await c.post(
141
142
  `${d.CANCEL_HOTEL_BOOKING}/${e}`
142
143
  );
143
144
  return a.success;
144
145
  });
146
+ i(this, "actionAirlineChanges", async ({
147
+ bookingId: e,
148
+ acceptChanges: a,
149
+ aicId: o
150
+ }) => {
151
+ const { data: t } = await c.post(
152
+ d.ACTION_AIRLINE_CHANGES,
153
+ {
154
+ booking_id: e,
155
+ action_taken: a ? "accept" : "reject",
156
+ aic_id: o
157
+ }
158
+ );
159
+ return t.success;
160
+ });
145
161
  }
146
162
  }
147
163
  const A = new g();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odynn/awayz-core",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"