@odynn/awayz-core 0.3.11 → 0.3.13
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.
- package/dist/assets/_styles.css +1 -1
- package/dist/assets/_styles2.css +1 -1
- package/dist/assets/_styles3.css +1 -1
- package/dist/assets/_styles4.css +1 -1
- package/dist/assets/_styles5.css +1 -0
- package/dist/components/Bookings/FlightBooking/FlightBooking.js +2 -2
- package/dist/components/Bookings/HotelBooking/HotelBooking.js +2 -2
- package/dist/components/CashValue/CashValue.js +7 -5
- package/dist/components/CashValue/CashValue.stories.js +14 -13
- package/dist/components/Menu/Menu.js +11 -10
- package/dist/components/Wallet/Card/Card.js +35 -0
- package/dist/components/Wallet/Card/Card.stories.js +62 -0
- package/dist/components/index.js +6 -4
- package/dist/configs/endpoints.js +2 -2
- package/dist/hooks/useBookingManagement/useBookingManagement.js +57 -48
- package/dist/hooks/useBookingManagement/useBookingManagement.test.js +40 -39
- package/dist/hooks/useTripManagement/useTripManagement.js +4 -3
- package/dist/hooks/useTripManagement/useTripManagement.test.js +2 -1
- package/dist/hooks/useWallet/useWallet.js +52 -33
- package/dist/hooks/useWallet/useWallet.test.js +85 -15
- package/dist/hooks/useWallet/useWallet.types.js +1 -0
- package/dist/index-BC-KTkxU.js +1571 -0
- package/dist/index-CDh8vAM_.js +132 -0
- package/dist/lib/components/Wallet/Card/Card.d.ts +6 -0
- package/dist/lib/components/Wallet/Card/Card.stories.d.ts +14 -0
- package/dist/lib/components/index.d.ts +1 -0
- package/dist/lib/configs/endpoints.d.ts +2 -0
- package/dist/lib/hooks/useBookingManagement/mocks/HotelBooking200.json.d.ts +608 -67
- package/dist/lib/hooks/useBookingManagement/useBookingManagement.types.d.ts +8 -0
- package/dist/lib/hooks/useWallet/mocks/AllCardsResponse200.json.d.ts +177 -0
- package/dist/lib/hooks/useWallet/mocks/GetAllProgramsReponse200.json.d.ts +705 -0
- package/dist/lib/hooks/useWallet/mocks/UserCardsResponse200.json.d.ts +139 -0
- package/dist/lib/hooks/useWallet/useWallet.d.ts +2 -16
- package/dist/lib/hooks/useWallet/useWallet.types.d.ts +50 -0
- package/dist/lib/services/wallet/WalletService.d.ts +2 -0
- package/dist/lib/services/wallet/WalletService.types.d.ts +2 -5
- package/dist/main.js +20 -18
- package/dist/providers/AwayzProvider.js +4 -3
- package/dist/services/currency/CurrencyService.js +4 -3
- package/dist/services/wallet/WalletService.js +43 -63
- package/package.json +1 -1
- package/dist/index-COgXcb6p.js +0 -1696
- package/dist/lib/hooks/useWallet/mocks/CardsResponse.json.d.ts +0 -34
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { renderHook as r, waitFor as
|
|
1
|
+
import { renderHook as r, waitFor as l } from "../../tests/TestWrapper.js";
|
|
2
2
|
import { useBookingManagement as i } from "./useBookingManagement.js";
|
|
3
|
-
import { c as
|
|
3
|
+
import { c as t } from "../../AccountService-D_6U8vP6.js";
|
|
4
4
|
import "../../services/noRetryInstance.js";
|
|
5
5
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
6
6
|
import "react";
|
|
@@ -9,71 +9,72 @@ 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
|
|
13
|
-
import '../../assets/_styles4.css';import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';/* empty css */
|
|
12
|
+
import { EBookingType as c } from "../../services/trips/TripService.types.js";
|
|
13
|
+
import '../../assets/_styles5.css';import '../../assets/_styles4.css';import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';/* empty css */
|
|
14
|
+
/* empty css */
|
|
14
15
|
/* empty css */
|
|
15
16
|
/* empty css */
|
|
16
17
|
/* empty css */
|
|
17
|
-
import { d, v as
|
|
18
|
-
const s = "Hotel booking found", u = !0, m = { _id: "67f6c1dbbbc4c3c745210abb", user_id: "67d82b1c52c4a4dbe4e640c0", status: "availability confirmed", accommodation_id: "acc_0000AWPt1SGInbu4X9MWOg", number_of_guests: 2, rate_id: "rat_0000AsvJMj2fyryIptLP72", quote_id: "quo_0000AsvJOwZ3PPyHaFBszA", base_amount: "159.08", base_currency: "EUR", tax_amount: null, tax_currency: "EUR", fee_amount: "0.00", fee_currency: "EUR", total_amount: "159.08", total_currency: "EUR", check_in_date: "2025-04-29", check_out_date: "2025-04-30", images: ["https://travelport.leonardocontentcloud.com/imageRepo/7/0/141/226/276/VIENR_7187550009_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/721/311/VIENR_7830110131_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/721/406/VIENR_7831079802_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/721/413/VIENR_7830110068_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/750/603/VIENR_7836605121_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/750/617/VIENR_7836587109_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/750/623/VIENR_7836596533_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/141/226/280/VIENR_7187549817_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/750/589/VIENR_7836587064_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/721/365/VIENR_7830109308_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/152/865/319/VIENR_8279893960_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/152/865/342/VIENR_8279862750_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/721/303/VIENR_7830110109_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/721/423/VIENR_7830110088_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/152/865/325/VIENR_8279819269_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/152/865/307/VIENR_8279804316_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/152/865/312/VIENR_8279860525_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/152/865/334/VIENR_8279819315_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/153/641/860/VIENR_8454780814_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/155/931/795/VIENR_8549019991_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/721/339/VIENR_7830109664_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/721/386/VIENR_7830109180_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/721/444/VIENR_7830109282_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/721/393/VIENR_7830109711_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/721/331/VIENR_7830109210_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/721/454/VIENR_7830109964_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/721/345/VIENR_7831125904_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/721/294/VIENR_7830109970_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/721/358/VIENR_7830109736_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/721/464/VIENR_7830109689_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/721/319/VIENR_7830109259_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/721/399/VIENR_7830109928_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/750/599/VIENR_7836606896_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/750/609/VIENR_7830109997_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/750/585/VIENR_7836587084_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/750/581/VIENR_7836611335_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/721/433/VIENR_7830109875_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/750/634/VIENR_7836608919_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/721/325/VIENR_7830110062_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/750/629/VIENR_7836587030_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/721/373/VIENR_7830109903_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/147/750/595/VIENR_7836596445_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/7/0/164/563/809/VIENR_8953587933_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/3/0/183/490/977/VIENR_9897245093_H.jpg", "https://travelport.leonardocontentcloud.com/imageRepo/2/0/184/483/935/VIENR_8953599865_H.jpg"], rooms: [{ beds: [], photo: [], total_amount: "159.08", name: "Standard Room When You Arrive At The Hotel We Will Do Our Best To Meet Your Room Type" }], address: { line_one: "RECHTE WIENZEILE 87", city_name: "VIENNA", postal_code: "1050 ", country_code: "AT", region: null }, guests: [], created_at: "2025-04-09T18:52:11.461Z", updated_at: "2025-04-09T18:52:11.461Z", __v: 0 }, g = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
data:
|
|
24
|
-
message:
|
|
18
|
+
import { d as u, v as d, t as p, g as o } from "../../vi.ClIskdbk-k6t29WRA.js";
|
|
19
|
+
const _ = !0, m = /* @__PURE__ */ JSON.parse(`{"_id":"684887c537d26f7b107a760a","user_id":"67d82b1c52c4a4dbe4e640c0","status":"booking confirmed","accommodation_id":"acc_0000AWPsyOsgudiTBBrUqi","number_of_guests":2,"rate_id":"rat_0000AuzsdGumrUMQGeHvNI","quote_id":"quo_0000AuzseVOsUVaXTyx1pV","base_amount":"308.00","base_currency":"EUR","tax_amount":"0.00","tax_currency":"EUR","fee_amount":"0.00","fee_currency":"EUR","total_amount":"308.00","total_currency":"EUR","check_in_date":"2025-07-23","check_out_date":"2025-07-26","images":["https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/501/382/LeKbzo1CqEuxVhUQRaRQ_viehw-lobby-0094_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/501/406/Ud8UDgUvkOT7sNLIpcmrg_viehw-entrance-0091_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/501/310/6A6uzGUvU6cqN73tIVbJw_viehw-entrance-0092_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/501/333/m5EbhOx0mkaUb7SwsReyg_viehw-reception-0120_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/501/354/0zhyA4WU5kCMTCizi1Y12A_viehw-lobby-0093_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/501/456/D5UUaRSGBkqVcACOdxxIg_Living_Room-12240_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/501/510/Fwk5t6IHKUaALtJiwzLiKA_Hotel_Reception-11510_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/501/564/LXuUDB0BwkmRXyeqtH1ayA_Hotel_Lobby-31793_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/501/603/xpr1JPNwv0esnXrHDsSuOQ_Hotel_Reception_34812_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/20/EtppMsA20aP3Z8cByHY7g_Hotel_Lobby_13533_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/501/634/bu60iNuzQkWP1DzIz2BMFQ_Hotel_Reception_18664_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/71/R6fDbin4VE24vNtYBLgiMA_viehw-hotel-lobby-68094_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/534/999/9ulWu6NQ0C3mkofFBattA_viehw-hotel-lobby-95343_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/45/uyX0UMA1kmaYCzFQKpVrQ_viehw-hotel-lobby-15100_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/103/XVY8zofyLEiCJ8hg2dFmlQ_viehw-lobby-0096_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/139/0vtWkaGlqU649Zjt2dfPg_viehw-lobby-0095_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/734/WMa9NdZW0kyS7y6u8JqoUA_Hotel_Reception-16545_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/248/o59uKJOW7EKiJZPeEQMIoA_viehw-guestroom-0447_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/281/vt7SLowlaUiMrKXDtVofCw_viehw-guestroom-0085_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/224/HJFp8ureg020axpqaXNY3w_viehw-guestroom-0084_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/200/aqJhBbDlOE6SMNryepb2g_viehw-guestroom-0086_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/412/66N2K6Ce02gFn75ccoGXA_viehw-guestroom-0100_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/175/ThjLWYWAykSmmQjwktbmQ_viehw-guestroom-0098_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/379/rT6JtOkcu0y62C4Qe8X7g_viehw-guestroom-0097_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/314/14qX8SgadkaDE3cgsrcupg_viehw-guestroom-0111_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/445/0Qas98f7IUSM3TCJVJ4vgQ_viehw-guestroom-0109_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/347/CabAXJ1hikeLERdeHffcQ_viehw-guestroom-0110_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/513/X2niUh7jRECRDICYNBF5xg_Standard_Twin_Room_-36203_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/479/TcR226uFEqVDHCEDSSxg_Standard_Room_with_20973_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/762/xQ08S5habE2bPLqAbc4doQ_viehw-guestroom-0087_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/546/FsPivdsFRUy5LOl3rtaZaA_viehw-guestroom-0104_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/580/eGcPXXqFIUadEBFCZbdhRw_viehw-bathroom-0088_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/612/02qpVQOcnUuPH9vP3FONuA_viehw-bathroom-0089_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/639/aG0vcajTr0mZRL83e9Rdw_viehw-bathroom-8819_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/688/QlXrHiNxUu3jfIWe1CUsQ_viehw-junior-suite-0013_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/664/IVY7CDxlhUOoCzXs49kt6w_viehw-suite-0101_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/736/eVK1gj3i10it5hZW54dsJA_viehw-suite-0105_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/837/3FKsPYX8EiDvo7h72JR9g_viehw-suite-0113_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/788/zKaBqD7MkmN0DnylglA_viehw-presidential-suite-0014_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/908/ORHjrhX2R0mSQtKMQMlG3A_viehw-presidential-suite-0015_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/884/cMkwL1nB90mCuVLmdsGDw_viehw-presidential-suite-0016_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/712/5fvhREvNi0m925elvV9J4A_viehw-bathroom-0108_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/860/nPddcS0APU2zO5udjDcaIg_viehw-bathroom-0107_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/812/rtLXzMZqEylzEVYW0nk6A_viehw-bathroom-0119_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/932/RtslKBCkecpIEbRZh13A_viehw-lounge-0148_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/980/ADCEPIXNr0j5ZyRU8ZPug_viehw-lounge-0150_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/956/R6IBeBkEBkOJkMZndTBp2w_viehw-business-0011_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/8/5IUVWV2Qg0apRMf9i3rt9w_Business_Center-04699_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/108/he8UzHjxl06tP7Pb2r1p8A_viehw-wunderkammer-8294_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/73/XPqGQqlUup6QL1xIg_viehw-wunderkammer-0155_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/231/btUkzUUm0WMab9YWrX6bQ_viehw-wunderkammer-0132_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/40/LJ25hhEakeG44LfbvuWPg_viehw-wunderkammer-0133_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/143/Qzi0UYpbMEyUbYzcgujEvQ_viehw-lounge-0125_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/208/KLFnXwFahkyCi1AyVRClcA_viehw-dining-0126_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/256/vGf4Y9wGIUuD86kYN0qGoA_viehw-wunderkammer-0151_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/177/X8iMe6TWE2hRGD81R867A_viehw-wunderkammer-0152_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/352/1ZzZkQ21UW18UaeLKsOYA_viehw-wunderkammer-0153_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/378/szg4tXZkWEanmxSLwSPrng_Wunderkammer-29434_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/278/cn0m8vlJu0iIX2pq5uwJOQ_WUNDERKAMMER_36532_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/327/CkAdA1djnUiHhr8cPHnzBA_WUNDERKAMMER_28072_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/304/anOqSI0BGEK3vlDte9fZYg_WUNDERKAMMER_10444_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/551/dBQ0resalEazy4Wyzdwskg_viehw-dining-0129_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/430/l8eheB2BDEWNJfsZ5RfHvQ_viehw-wunderkammer-0154_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/406/lyy4kzewUkylnaGnv7VpOQ_Wunderkammer-18706_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/453/2M6lZn2k3EOZ2skxvs0EVw_viehw-wunderkammer-0131_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/478/mKP2LOz9UmAe88IdnIkrw_viehw-dining-0128_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/502/3ePnPV2I0mXmZ7GDgxsuA_viehw-fitness-7633_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/658/sCuhh0ONj0e2PVI2cVvAQ_viehw-fitness-0137_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/610/XgDbKXbfrEWN151hHYTBg_viehw-fitness-0139_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/526/dIdBk57bP0iv1DWHrOPcAQ_viehw-fitness-0136_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/577/7H3yx9XzLUCdjhkRoEAlA_Fitness_and_Wellness38511_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/642/Yoye9R7u0UuHj2UgLaLjdw_Fitness_and_Wellnes_23666_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/594/tau63GFarkCMsas4IpXFrg_viehw-sauna-0140_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/626/t8ZjSX5PKUpbKZ9veHuYQ_viehw-meeting-0141_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/670/HQx4gVC2UijzXe6LcRXg_viehw-meeting-0142_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/678/sLar4rouUeRU7kpiXzaug_viehw-meeting-0143_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/686/gHJacE0l20aqZzI0w9lPdw_viehw-meeting-0144_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/694/IqmBUBqUA06cXimLss0h8g_viehw-meeting-0145_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/702/pNJVCgnnT0qDcoBcQ5E4yg_viehw-meeting-0146_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/710/vFa5Y0mIaUWLuwNhyCz0Ew_viehw-meeting-0147_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/726/fAYu7kB4aEaXbXe7UdBK5g_Meeting_Room_Wien_23042_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/718/mQouADbAWUSO0BQIJY6Kg_Meeting_Room_Strass_26670_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/742/WtiQlvajkuagRNcSwWG7Q_Meeting_Strassburg_-41053_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/750/Nx5AeKVb4Uu9hOwcNOqkA_viehw-suite-0103_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/758/1GpLJxKTG0CbZ33pYox4jA_viehw-business-0123_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/766/WUzMMr50mx5V0K5zJxqQ_viehw-lounge-0149_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/774/xecxeypEo0CtCPQheAYanQ_viehw-suite-0118_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/192/288/6/EIrS32HHwE6zWBF55cWhYA_Seafood_Sunday_Brun12408_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/192/288/213/NwXBBty0uWmNP8nwZ1cA_Seafood_Sunday_Brun24417_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/192/288/98/suGs68G8QUC0AZgIfDKdlw_Sunday_Wunderbrun32045_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/192/288/127/iY3OpSzfoU7MA2dZrDICw_Wunderbrunch_27157_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/192/288/63/QY1u5bMWP0u6omIGikoCdA_French_Coffee_Break_18975_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/192/288/34/M3hmFvgh306aE8kaBVWalw_Asian_Coffee_Break_14141_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/192/288/237/2l3LxCxS0qnHj13mX0aug_Asian_Coffee_Break_19164_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/192/288/155/K5APDFpGpkGvPlXLSyuYoQ_French_Coffee_Break_41502_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/192/288/185/LKQw5aQzRkG6KbuYrmDNBA_Asian_Coffee_Break_25765_H.jpg","https://travelport.leonardocontentcloud.com/imageRepo/2/0/192/288/262/gYMWzFTIkYq03VFCh8vQ_Bavarian_Coffee_Brea35209_H.jpg"],"rooms":[{"beds":null,"photos":[],"total_amount":"308.00","name":"Full, No Changes, Classic Room, Guest Room, 1 King","cancellation_timeline":[{"refund_amount":"308.00","currency":"EUR","before":"2025-06-11T10:00:00Z"}]}],"address":{"line_one":"Linke Wienzeile/Ullmannstrasse 71","city_name":"Vienna","postal_code":"1150 ","country_code":"AT","region":null},"guests":[{"family_name":"Botha","given_name":"Adriaan","user_id":null},{"family_name":"Botha","given_name":"Charme","user_id":null}],"created_at":"2025-06-10T19:30:13.613Z","updated_at":"2025-06-10T19:31:11.872Z","__v":0,"booking_id":"bok_0000AuzsjsFKLae1SHiDQM","reference":"FUBZIM","data":{"guest_types":[{"age":null,"type":"adult"},{"age":null,"type":"adult"}],"guests":[{"family_name":"Botha","given_name":"Adriaan","user_id":null},{"family_name":"Botha","given_name":"Charme","user_id":null}],"supported_loyalty_programme":"marriott_bonvoy","check_out_date":"2025-07-26","loyalty_programme_account_number":null,"rooms":1,"accommodation":{"payment_instruction_supported":false,"check_in_information":{"check_out_before_time":"11:00","check_in_before_time":null,"check_in_after_time":"15:00"},"photos":[{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/501/382/LeKbzo1CqEuxVhUQRaRQ_viehw-lobby-0094_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/501/406/Ud8UDgUvkOT7sNLIpcmrg_viehw-entrance-0091_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/501/310/6A6uzGUvU6cqN73tIVbJw_viehw-entrance-0092_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/501/333/m5EbhOx0mkaUb7SwsReyg_viehw-reception-0120_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/501/354/0zhyA4WU5kCMTCizi1Y12A_viehw-lobby-0093_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/501/456/D5UUaRSGBkqVcACOdxxIg_Living_Room-12240_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/501/510/Fwk5t6IHKUaALtJiwzLiKA_Hotel_Reception-11510_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/501/564/LXuUDB0BwkmRXyeqtH1ayA_Hotel_Lobby-31793_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/501/603/xpr1JPNwv0esnXrHDsSuOQ_Hotel_Reception_34812_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/20/EtppMsA20aP3Z8cByHY7g_Hotel_Lobby_13533_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/501/634/bu60iNuzQkWP1DzIz2BMFQ_Hotel_Reception_18664_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/71/R6fDbin4VE24vNtYBLgiMA_viehw-hotel-lobby-68094_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/534/999/9ulWu6NQ0C3mkofFBattA_viehw-hotel-lobby-95343_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/45/uyX0UMA1kmaYCzFQKpVrQ_viehw-hotel-lobby-15100_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/103/XVY8zofyLEiCJ8hg2dFmlQ_viehw-lobby-0096_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/139/0vtWkaGlqU649Zjt2dfPg_viehw-lobby-0095_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/734/WMa9NdZW0kyS7y6u8JqoUA_Hotel_Reception-16545_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/248/o59uKJOW7EKiJZPeEQMIoA_viehw-guestroom-0447_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/281/vt7SLowlaUiMrKXDtVofCw_viehw-guestroom-0085_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/224/HJFp8ureg020axpqaXNY3w_viehw-guestroom-0084_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/200/aqJhBbDlOE6SMNryepb2g_viehw-guestroom-0086_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/412/66N2K6Ce02gFn75ccoGXA_viehw-guestroom-0100_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/175/ThjLWYWAykSmmQjwktbmQ_viehw-guestroom-0098_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/379/rT6JtOkcu0y62C4Qe8X7g_viehw-guestroom-0097_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/314/14qX8SgadkaDE3cgsrcupg_viehw-guestroom-0111_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/445/0Qas98f7IUSM3TCJVJ4vgQ_viehw-guestroom-0109_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/347/CabAXJ1hikeLERdeHffcQ_viehw-guestroom-0110_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/513/X2niUh7jRECRDICYNBF5xg_Standard_Twin_Room_-36203_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/479/TcR226uFEqVDHCEDSSxg_Standard_Room_with_20973_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/762/xQ08S5habE2bPLqAbc4doQ_viehw-guestroom-0087_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/546/FsPivdsFRUy5LOl3rtaZaA_viehw-guestroom-0104_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/580/eGcPXXqFIUadEBFCZbdhRw_viehw-bathroom-0088_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/612/02qpVQOcnUuPH9vP3FONuA_viehw-bathroom-0089_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/639/aG0vcajTr0mZRL83e9Rdw_viehw-bathroom-8819_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/688/QlXrHiNxUu3jfIWe1CUsQ_viehw-junior-suite-0013_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/664/IVY7CDxlhUOoCzXs49kt6w_viehw-suite-0101_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/736/eVK1gj3i10it5hZW54dsJA_viehw-suite-0105_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/837/3FKsPYX8EiDvo7h72JR9g_viehw-suite-0113_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/788/zKaBqD7MkmN0DnylglA_viehw-presidential-suite-0014_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/908/ORHjrhX2R0mSQtKMQMlG3A_viehw-presidential-suite-0015_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/884/cMkwL1nB90mCuVLmdsGDw_viehw-presidential-suite-0016_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/712/5fvhREvNi0m925elvV9J4A_viehw-bathroom-0108_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/860/nPddcS0APU2zO5udjDcaIg_viehw-bathroom-0107_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/812/rtLXzMZqEylzEVYW0nk6A_viehw-bathroom-0119_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/932/RtslKBCkecpIEbRZh13A_viehw-lounge-0148_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/980/ADCEPIXNr0j5ZyRU8ZPug_viehw-lounge-0150_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/535/956/R6IBeBkEBkOJkMZndTBp2w_viehw-business-0011_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/8/5IUVWV2Qg0apRMf9i3rt9w_Business_Center-04699_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/108/he8UzHjxl06tP7Pb2r1p8A_viehw-wunderkammer-8294_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/73/XPqGQqlUup6QL1xIg_viehw-wunderkammer-0155_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/231/btUkzUUm0WMab9YWrX6bQ_viehw-wunderkammer-0132_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/40/LJ25hhEakeG44LfbvuWPg_viehw-wunderkammer-0133_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/143/Qzi0UYpbMEyUbYzcgujEvQ_viehw-lounge-0125_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/208/KLFnXwFahkyCi1AyVRClcA_viehw-dining-0126_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/256/vGf4Y9wGIUuD86kYN0qGoA_viehw-wunderkammer-0151_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/177/X8iMe6TWE2hRGD81R867A_viehw-wunderkammer-0152_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/352/1ZzZkQ21UW18UaeLKsOYA_viehw-wunderkammer-0153_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/378/szg4tXZkWEanmxSLwSPrng_Wunderkammer-29434_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/278/cn0m8vlJu0iIX2pq5uwJOQ_WUNDERKAMMER_36532_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/327/CkAdA1djnUiHhr8cPHnzBA_WUNDERKAMMER_28072_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/304/anOqSI0BGEK3vlDte9fZYg_WUNDERKAMMER_10444_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/551/dBQ0resalEazy4Wyzdwskg_viehw-dining-0129_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/430/l8eheB2BDEWNJfsZ5RfHvQ_viehw-wunderkammer-0154_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/406/lyy4kzewUkylnaGnv7VpOQ_Wunderkammer-18706_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/453/2M6lZn2k3EOZ2skxvs0EVw_viehw-wunderkammer-0131_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/478/mKP2LOz9UmAe88IdnIkrw_viehw-dining-0128_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/502/3ePnPV2I0mXmZ7GDgxsuA_viehw-fitness-7633_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/658/sCuhh0ONj0e2PVI2cVvAQ_viehw-fitness-0137_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/610/XgDbKXbfrEWN151hHYTBg_viehw-fitness-0139_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/526/dIdBk57bP0iv1DWHrOPcAQ_viehw-fitness-0136_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/577/7H3yx9XzLUCdjhkRoEAlA_Fitness_and_Wellness38511_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/642/Yoye9R7u0UuHj2UgLaLjdw_Fitness_and_Wellnes_23666_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/594/tau63GFarkCMsas4IpXFrg_viehw-sauna-0140_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/626/t8ZjSX5PKUpbKZ9veHuYQ_viehw-meeting-0141_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/670/HQx4gVC2UijzXe6LcRXg_viehw-meeting-0142_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/678/sLar4rouUeRU7kpiXzaug_viehw-meeting-0143_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/686/gHJacE0l20aqZzI0w9lPdw_viehw-meeting-0144_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/694/IqmBUBqUA06cXimLss0h8g_viehw-meeting-0145_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/702/pNJVCgnnT0qDcoBcQ5E4yg_viehw-meeting-0146_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/710/vFa5Y0mIaUWLuwNhyCz0Ew_viehw-meeting-0147_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/726/fAYu7kB4aEaXbXe7UdBK5g_Meeting_Room_Wien_23042_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/718/mQouADbAWUSO0BQIJY6Kg_Meeting_Room_Strass_26670_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/742/WtiQlvajkuagRNcSwWG7Q_Meeting_Strassburg_-41053_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/750/Nx5AeKVb4Uu9hOwcNOqkA_viehw-suite-0103_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/758/1GpLJxKTG0CbZ33pYox4jA_viehw-business-0123_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/766/WUzMMr50mx5V0K5zJxqQ_viehw-lounge-0149_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/188/536/774/xecxeypEo0CtCPQheAYanQ_viehw-suite-0118_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/192/288/6/EIrS32HHwE6zWBF55cWhYA_Seafood_Sunday_Brun12408_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/192/288/213/NwXBBty0uWmNP8nwZ1cA_Seafood_Sunday_Brun24417_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/192/288/98/suGs68G8QUC0AZgIfDKdlw_Sunday_Wunderbrun32045_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/192/288/127/iY3OpSzfoU7MA2dZrDICw_Wunderbrunch_27157_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/192/288/63/QY1u5bMWP0u6omIGikoCdA_French_Coffee_Break_18975_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/192/288/34/M3hmFvgh306aE8kaBVWalw_Asian_Coffee_Break_14141_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/192/288/237/2l3LxCxS0qnHj13mX0aug_Asian_Coffee_Break_19164_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/192/288/155/K5APDFpGpkGvPlXLSyuYoQ_French_Coffee_Break_41502_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/192/288/185/LKQw5aQzRkG6KbuYrmDNBA_Asian_Coffee_Break_25765_H.jpg"},{"url":"https://travelport.leonardocontentcloud.com/imageRepo/2/0/192/288/262/gYMWzFTIkYq03VFCh8vQ_Bavarian_Coffee_Brea35209_H.jpg"}],"supported_loyalty_programme":"marriott_bonvoy","review_score":7.2,"ratings":[{"source":"northstar","value":4}],"rating":4,"key_collection":null,"rooms":[{"beds":null,"photos":null,"rates":[{"payment_instruction_allowed":false,"cancellation_timeline":[{"refund_amount":"308.00","currency":"EUR","before":"2025-06-11T10: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","available_payment_methods":["card"],"supported_loyalty_programme":"marriott_bonvoy","fee_amount":"0.00","tax_currency":"EUR","base_currency":"EUR","base_amount":"308.00","tax_amount":"0.00","fee_currency":"EUR","total_currency":"EUR","payment_type":"deposit","total_amount":"308.00","conditions":[{"title":"Cancellation","description":"cancel: changes not allowed non - refundable rate cancellation permitted up to 1 days after booking."},{"title":"Deposit","description":"Book 2 Days Before Arrival 308.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. Accommodation Minors Traveling Alone -Please Note That Children Below The Age Of 13 Are Not Allowed To Check-In At Our Property Without A Chaperon Of Legal Age. Adolescents Below The Age Of 16 Years Traveling By Themselves Are Required To Provide A Parental Authorization At Time Of Check-In. -Please Contact The Hotel Or The Reservations Department If You Need An Authorization Form. After 2 People - 45.00 Eur Person Extra Person Person Night Rollaway - 45.00 Eur Person Room Person Night"},{"title":"Room detail","description":"Classic Room 1 King Mini Fridge 23 Square Metre/247 Square Feet-25 Square Metre/269 Square Feet Wireless Internet Complimentary Coffee/Tea Maker Maximum Occupancy- 2 Guests"},{"title":"Property","description":"Location: All Rates At This Hotel Include Taxes"},{"title":"Room Hold Expiration Time","description":"BOOKING HELD UNTIL 00:00 LOCAL HOTEL TIME ON ARRIVAL DATE"}],"source":"travelport","id":"rat_0000AuzsdGumrUMQGeHvNI","code":null}],"name":"Full, No Changes, Classic Room, Guest Room, 1 King"}],"amenities":[{"description":"24-Hour Front Desk","type":"24_hour_front_desk"},{"description":"Concierge","type":"concierge"},{"description":"Spa","type":"spa"},{"description":"Gym","type":"gym"},{"description":"Wheelchair Access","type":"accessibility_mobility"},{"description":"Wi-Fi","type":"wifi"}],"brand":{"name":"Renaissance Hotel","id":"bra_udsvu8ojTxTvyjJwCr0GFc"},"phone_number":"00000 000 000","chain":{"name":"Marriott International"},"email":"test-mode-accommodation@example.com","location":{"geographic_coordinates":{"latitude":48.18439,"longitude":16.33039},"address":{"line_one":"Linke Wienzeile/Ullmannstrasse 71","city_name":"Vienna","postal_code":"1150 ","country_code":"AT","region":null}},"description":"Ideally located in a quiet section of Vienna, Renaissance Wien Hotel welcomes those traveling in Austria with thoughtful amenities and a prime location near the city center. Our 4-star hotel reveals the best of Vienna. The property is steps from the U-Bahn subway station and near popular attractions, including historic Schonbrunn Palace, the legendary Naschmarkt, and iconic St. Stephen's Cathedral. Recharge in stylishly redesigned, pet-friendly accommodations. Every room and suite features modern decor, indulgent bedding, mini-refrigerators, ample workstations and free Wi-Fi. Order from 24-hour room service or indulge at our outstanding restaurants. Work off the day in our hotel's fitness center and visit the sauna and salt room. For those planning events, our sophisticated venues are ideal for everything from business training sessions to romantic weddings. Visit Renaissance Wien Hotel and see why we are a TripAdvisor Certificate of Excellence winner and a GreenLeaders GreenPartner.","name":"Renaissance Wien Hotel","id":"acc_0000AWPsyOsgudiTBBrUqi"},"confirmed_at":"2025-06-10T19:31:11.750273Z","check_in_date":"2025-07-23","phone_number":"+1 585 456 7894","cancelled_at":null,"email":"adriaanb98@gmail.com","users":["icu_0000Asbm8q0FlWOhf0fDUm"],"reference":"FUBZIM","metadata":null,"status":"confirmed","id":"bok_0000AuzsjsFKLae1SHiDQM"}}`), s = { internalRequestId: "4e1b30ef-7579-4273-8e66-266225f76d95" }, g = {
|
|
20
|
+
success: _,
|
|
21
|
+
data: m,
|
|
22
|
+
metadata: s
|
|
23
|
+
}, h = { _id: "6811290ef16af25943018944", flight_offer_id: "off_0000AtaoutgusFy7zHL7pJ", user_id: "67d82b1c52c4a4dbe4e640c0", status: "flight confirmed", available_actions: ["cancel", "change", "update"], total_currency: "USD", arrival_date: "2025-05-28T21:46:00.000Z", base_amount: "196.19", extras_amount: "0.00", extras_currency: "USD", base_currency: "USD", conditions: { refund_before_departure: { penalty_currency: null, penalty_amount: null, allowed: !1 }, change_before_departure: { penalty_currency: "GBP", penalty_amount: "30.00", allowed: !0 } }, departure_date: "2025-05-28T18:54:00.000Z", passengers: [{ id: "pas_0000AtaoutTnf1TdKbCeNV", type: null }], slices: [{ carriers: { marketing: ["Duffel Airways"], operating: ["Duffel Airways"] }, id: "sli_0000AtaoutgusFy7zHL7pI", origin: "JFK", destination: "LAX", fare_brand_name: null }], tax_amount: "35.31", tax_currency: "USD", total_amount: "231.50", type: "instant", synced_at: "2025-04-29T19:31:52Z", order_id: "ord_0000AtapDdwhJRoTNzMZrU", booking_reference: "4LGE5O", cancelled_at: null, payment_status: { paid_at: "2025-04-29T19:31:52Z", price_guarantee_expires_at: null, payment_required_by: null, awaiting_payment: !1 }, documents: [{ passenger_ids: ["pas_0000AtaoutTnf1TdKbCeNV"], unique_identifier: "1", type: "electronic_ticket" }], services: [], createdAt: "2025-04-29T19:31:26.348Z", updatedAt: "2025-04-29T19:31:52.467Z", __v: 0, data: { void_window_ends_at: null, documents: [{ passenger_ids: ["pas_0000AtaoutTnf1TdKbCeNV"], unique_identifier: "1", type: "electronic_ticket" }], synced_at: "2025-04-29T19:31:52Z", available_actions: ["update"], airline_initiated_changes: [], cancellation: null, tax_currency: "USD", base_currency: "USD", base_amount: "196.19", tax_amount: "35.31", total_currency: "USD", offer_id: "off_0000AtaoutgusFy7zHL7pJ", booking_reference: "4LGE5O", created_at: "2025-04-29T19:31:52.316759Z", payment_status: { paid_at: "2025-04-29T19:31:52Z", price_guarantee_expires_at: null, payment_required_by: null, awaiting_payment: !1 }, live_mode: !1, total_amount: "231.50", 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-05-28T20:54:00", arriving_at: "2025-05-28T23:46: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: "2682", marketing_carrier_flight_number: "2682", distance: "3974.2717774447433", passengers: [{ baggages: [{ quantity: 1, type: "checked" }, { quantity: 1, type: "carry_on" }], cabin_class_marketing_name: "Economy", passenger_id: "pas_0000AtaoutTnf1TdKbCeNV", seat: null, cabin_class: "economy" }], duration: "PT5H52M", destination: { city_name: "Los Angeles", icao_code: "KLAX", iata_country_code: "US", iata_code: "LAX", iata_city_code: "LAX", latitude: 33.942045, longitude: -118.408263, city: { city_name: null, icao_code: null, iata_country_code: "US", iata_code: "LAX", iata_city_code: "LAX", latitude: null, longitude: null, time_zone: null, type: "city", name: "Los Angeles", id: "cit_lax_us" }, time_zone: "America/Los_Angeles", type: "airport", name: "Los Angeles International Airport", id: "arp_lax_us" }, origin: { city_name: "New York", icao_code: "KJFK", iata_country_code: "US", iata_code: "JFK", iata_city_code: "NYC", latitude: 40.640556, longitude: -73.778519, city: { city_name: null, icao_code: null, iata_country_code: "US", iata_code: "NYC", iata_city_code: "NYC", latitude: null, longitude: null, time_zone: null, type: "city", name: "New York", id: "cit_nyc_us" }, time_zone: "America/New_York", type: "airport", name: "John F. Kennedy International Airport", id: "arp_jfk_us" }, id: "seg_0000AtaoutgusFy7zHL7pH" }], conditions: { change_before_departure: { penalty_currency: "GBP", penalty_amount: "30.00", allowed: !0 } }, duration: "PT5H52M", destination: { city_name: "Los Angeles", icao_code: "KLAX", iata_country_code: "US", iata_code: "LAX", iata_city_code: "LAX", latitude: 33.942045, longitude: -118.408263, city: { city_name: null, icao_code: null, iata_country_code: "US", iata_code: "LAX", iata_city_code: "LAX", latitude: null, longitude: null, time_zone: null, type: "city", name: "Los Angeles", id: "cit_lax_us" }, time_zone: "America/Los_Angeles", type: "airport", name: "Los Angeles International Airport", id: "arp_lax_us" }, origin: { city_name: "New York", icao_code: "KJFK", iata_country_code: "US", iata_code: "JFK", iata_city_code: "NYC", latitude: 40.640556, longitude: -73.778519, city: { city_name: null, icao_code: null, iata_country_code: "US", iata_code: "NYC", iata_city_code: "NYC", latitude: null, longitude: null, time_zone: null, type: "city", name: "New York", id: "cit_nyc_us" }, time_zone: "America/New_York", type: "airport", name: "John F. Kennedy International Airport", id: "arp_jfk_us" }, id: "sli_0000AtaoutgusFy7zHL7pI" }], 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_0000AtaoutTnf1TdKbCeNV" }], conditions: { refund_before_departure: { penalty_currency: null, penalty_amount: null, allowed: !1 }, change_before_departure: { penalty_currency: "GBP", penalty_amount: "30.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_0000AtapDdwhJRoTNzMZrU" } }, v = "Flight booking found", R = !0, H = {
|
|
24
|
+
data: h,
|
|
25
|
+
message: v,
|
|
25
26
|
success: R
|
|
26
27
|
};
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
u("useBookingManagement", () => {
|
|
29
|
+
d.mocked(t.get).mockImplementation((e) => e.includes(a.USER_HOTEL_BOOKINGS) ? Promise.resolve({
|
|
29
30
|
data: g
|
|
30
31
|
}) : e.includes(a.USER_FLIGHT_BOOKINGS) ? Promise.resolve({
|
|
31
|
-
data:
|
|
32
|
-
}) : Promise.resolve({ data: {} })),
|
|
32
|
+
data: H
|
|
33
|
+
}) : Promise.resolve({ data: {} })), d.mocked(t.post).mockImplementation((e) => e.includes(a.CANCEL_HOTEL_BOOKING) ? Promise.resolve({
|
|
33
34
|
data: { success: !0 }
|
|
34
|
-
}) : Promise.resolve({ data: {} })),
|
|
35
|
-
|
|
35
|
+
}) : Promise.resolve({ data: {} })), d.mocked(t.put).mockImplementation(() => Promise.resolve({ data: { success: !0 } })), u("Hotel Booking Management", () => {
|
|
36
|
+
p("Can fetch hotel booking by id", async () => {
|
|
36
37
|
const { result: e } = r(
|
|
37
|
-
() => i("
|
|
38
|
+
() => i("684887c537d26f7b107a760a", c.HOTEL)
|
|
38
39
|
);
|
|
39
|
-
await
|
|
40
|
+
await l(() => {
|
|
40
41
|
var n;
|
|
41
|
-
|
|
42
|
+
o(e.current.details).toBeDefined(), o((n = e.current.details) == null ? void 0 : n.id).toBe("684887c537d26f7b107a760a");
|
|
42
43
|
});
|
|
43
|
-
}),
|
|
44
|
+
}), p("Can cancel hotel booking", async () => {
|
|
44
45
|
const { result: e } = r(
|
|
45
|
-
() => i("
|
|
46
|
+
() => i("684887c537d26f7b107a760a", c.HOTEL)
|
|
46
47
|
);
|
|
47
|
-
e.current.cancelBooking(), await
|
|
48
|
-
|
|
49
|
-
`${a.CANCEL_HOTEL_BOOKING}/
|
|
48
|
+
e.current.cancelBooking(), await l(() => {
|
|
49
|
+
o(e.current.isCancelingBooking).toBe(!1), o(e.current.isCancelBookingError).toBe(!1), o(t.post).toHaveBeenCalledWith(
|
|
50
|
+
`${a.CANCEL_HOTEL_BOOKING}/684887c537d26f7b107a760a`
|
|
50
51
|
);
|
|
51
52
|
});
|
|
52
53
|
});
|
|
53
|
-
}),
|
|
54
|
-
|
|
54
|
+
}), u("Flight Booking Management", () => {
|
|
55
|
+
p("Can fetch flight booking by id", async () => {
|
|
55
56
|
const { result: e } = r(
|
|
56
|
-
() => i("6811290ef16af25943018944",
|
|
57
|
+
() => i("6811290ef16af25943018944", c.FLIGHT)
|
|
57
58
|
);
|
|
58
|
-
await
|
|
59
|
+
await l(() => {
|
|
59
60
|
var n;
|
|
60
|
-
|
|
61
|
+
o(e.current.details).toBeDefined(), o((n = e.current.details) == null ? void 0 : n.id).toBe("6811290ef16af25943018944");
|
|
61
62
|
});
|
|
62
|
-
}),
|
|
63
|
+
}), p("Can initiate cancellation of flight booking", async () => {
|
|
63
64
|
const { result: e } = r(
|
|
64
|
-
() => i("6811290ef16af25943018944",
|
|
65
|
+
() => i("6811290ef16af25943018944", c.FLIGHT)
|
|
65
66
|
);
|
|
66
|
-
e.current.initiateCancellation(), await
|
|
67
|
-
|
|
67
|
+
e.current.initiateCancellation(), await l(() => {
|
|
68
|
+
o(e.current.isInitiatingCancellation).toBe(!1), o(e.current.isInitiateCancellationError).toBe(!1), o(t.put).toHaveBeenCalledWith(
|
|
68
69
|
`${a.INITIATE_FLIGHT_CANCEL}/6811290ef16af25943018944`
|
|
69
70
|
);
|
|
70
71
|
});
|
|
71
|
-
}),
|
|
72
|
+
}), p("Can confirm cancellation of flight booking", async () => {
|
|
72
73
|
const { result: e } = r(
|
|
73
|
-
() => i("6811290ef16af25943018944",
|
|
74
|
+
() => i("6811290ef16af25943018944", c.FLIGHT)
|
|
74
75
|
);
|
|
75
|
-
e.current.cancelBooking(), await
|
|
76
|
-
|
|
76
|
+
e.current.cancelBooking(), await l(() => {
|
|
77
|
+
o(e.current.isCancelingBooking).toBe(!1), o(e.current.isCancelBookingError).toBe(!1), o(t.put).toHaveBeenCalledWith(
|
|
77
78
|
`${a.CONFIRM_FLIGHT_CANCEL}/6811290ef16af25943018944`
|
|
78
79
|
);
|
|
79
80
|
});
|
|
@@ -7,7 +7,8 @@ import "react/jsx-runtime";
|
|
|
7
7
|
import "../../context/AwayzContext.js";
|
|
8
8
|
import { awayzClient as o } from "../../configs/awayzClient.js";
|
|
9
9
|
import "../../services/noRetryInstance.js";
|
|
10
|
-
import '../../assets/_styles4.css';import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';/* empty css */
|
|
10
|
+
import '../../assets/_styles5.css';import '../../assets/_styles4.css';import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';/* empty css */
|
|
11
|
+
/* empty css */
|
|
11
12
|
/* empty css */
|
|
12
13
|
/* empty css */
|
|
13
14
|
/* empty css */
|
|
@@ -19,7 +20,7 @@ const b = ({
|
|
|
19
20
|
throw new Error("Trip ID is required");
|
|
20
21
|
if (!a || Object.keys(a).length === 0)
|
|
21
22
|
throw new Error("Trip details must be provided for update");
|
|
22
|
-
},
|
|
23
|
+
}, rr = () => {
|
|
23
24
|
const { data: u = [] } = p({
|
|
24
25
|
queryKey: [
|
|
25
26
|
e.TRIPS,
|
|
@@ -239,6 +240,6 @@ const b = ({
|
|
|
239
240
|
};
|
|
240
241
|
};
|
|
241
242
|
export {
|
|
242
|
-
|
|
243
|
+
rr as useTripManagement,
|
|
243
244
|
b as validateUpdateTripArgs
|
|
244
245
|
};
|
|
@@ -11,7 +11,8 @@ import "../../configs/awayzClient.js";
|
|
|
11
11
|
import "@tanstack/react-query";
|
|
12
12
|
import { EBookingType as m } from "../../services/trips/TripService.types.js";
|
|
13
13
|
import "../../services/noRetryInstance.js";
|
|
14
|
-
import '../../assets/_styles4.css';import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';/* empty css */
|
|
14
|
+
import '../../assets/_styles5.css';import '../../assets/_styles4.css';import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';/* empty css */
|
|
15
|
+
/* empty css */
|
|
15
16
|
/* empty css */
|
|
16
17
|
/* empty css */
|
|
17
18
|
/* empty css */
|
|
@@ -1,65 +1,84 @@
|
|
|
1
|
-
import { useQuery as
|
|
1
|
+
import { useQuery as o, useMutation as n } from "@tanstack/react-query";
|
|
2
2
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
3
|
-
import { E as
|
|
3
|
+
import { E as t, a as s } from "../../AccountService-D_6U8vP6.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import { WalletService as
|
|
5
|
+
import { WalletService as a } from "../../services/wallet/WalletService.js";
|
|
6
6
|
import "react/jsx-runtime";
|
|
7
7
|
import "../../context/AwayzContext.js";
|
|
8
|
-
import { awayzClient as
|
|
8
|
+
import { awayzClient as i } from "../../configs/awayzClient.js";
|
|
9
9
|
import "../../services/noRetryInstance.js";
|
|
10
|
-
import '../../assets/_styles4.css';import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';/* empty css */
|
|
10
|
+
import '../../assets/_styles5.css';import '../../assets/_styles4.css';import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';/* empty css */
|
|
11
|
+
/* empty css */
|
|
11
12
|
/* empty css */
|
|
12
13
|
/* empty css */
|
|
13
14
|
/* empty css */
|
|
14
15
|
const b = () => {
|
|
15
|
-
const { data: r } =
|
|
16
|
-
queryKey: [
|
|
17
|
-
queryFn:
|
|
16
|
+
const { data: r } = o({
|
|
17
|
+
queryKey: [t.PROGRAMS],
|
|
18
|
+
queryFn: a.getAwards,
|
|
18
19
|
placeholderData: []
|
|
19
|
-
}), { data: u } =
|
|
20
|
-
queryKey: [
|
|
21
|
-
queryFn:
|
|
20
|
+
}), { data: u } = o({
|
|
21
|
+
queryKey: [t.BANKS],
|
|
22
|
+
queryFn: a.getBanks,
|
|
22
23
|
placeholderData: []
|
|
23
|
-
}), { data: l } =
|
|
24
|
-
queryKey: [
|
|
25
|
-
queryFn:
|
|
24
|
+
}), { data: l } = o({
|
|
25
|
+
queryKey: [t.CARDS],
|
|
26
|
+
queryFn: a.getCards,
|
|
26
27
|
placeholderData: []
|
|
27
|
-
}), { data:
|
|
28
|
-
queryKey: [
|
|
29
|
-
queryFn:
|
|
28
|
+
}), { data: c } = o({
|
|
29
|
+
queryKey: [t.USER_CARDS],
|
|
30
|
+
queryFn: a.getUserCards,
|
|
30
31
|
placeholderData: []
|
|
31
|
-
}), { mutate:
|
|
32
|
+
}), { mutate: y } = n({
|
|
32
33
|
mutationFn: async (e) => {
|
|
33
|
-
const {
|
|
34
|
-
|
|
34
|
+
const { mainProgram: g, awardsAmount: C } = e, m = r == null ? void 0 : r.find(
|
|
35
|
+
(S) => S.mainProgram === g
|
|
36
|
+
);
|
|
37
|
+
if (!m)
|
|
35
38
|
throw new Error("Program not found");
|
|
36
|
-
await
|
|
39
|
+
await a.setAwardPoints(m.mainProgram, C);
|
|
37
40
|
},
|
|
38
41
|
onSuccess: () => {
|
|
39
|
-
|
|
40
|
-
queryKey: [
|
|
42
|
+
i.invalidateQueries({
|
|
43
|
+
queryKey: [t.PROGRAMS]
|
|
41
44
|
});
|
|
42
45
|
}
|
|
43
|
-
}),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
}), { mutate: d } = n({
|
|
47
|
+
mutationFn: async (e) => {
|
|
48
|
+
await a.addCardsToWallet(e);
|
|
49
|
+
},
|
|
50
|
+
onSuccess: () => {
|
|
51
|
+
i.invalidateQueries({
|
|
52
|
+
queryKey: [t.USER_CARDS]
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}), { mutate: p } = n({
|
|
56
|
+
mutationFn: async (e) => {
|
|
57
|
+
await a.removeCardsFromWallet(e);
|
|
58
|
+
},
|
|
59
|
+
onSuccess: () => {
|
|
60
|
+
i.invalidateQueries({
|
|
61
|
+
queryKey: [t.USER_CARDS]
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
});
|
|
47
65
|
return {
|
|
48
66
|
allPrograms: r || [],
|
|
49
67
|
hotelPrograms: (r == null ? void 0 : r.filter(
|
|
50
|
-
(e) => e.category
|
|
68
|
+
(e) => e.category.includes(s.HOTEL)
|
|
51
69
|
)) || [],
|
|
52
70
|
airlinePrograms: (r == null ? void 0 : r.filter(
|
|
53
|
-
(e) => e.category
|
|
71
|
+
(e) => e.category.includes(s.AIRLINE)
|
|
54
72
|
)) || [],
|
|
55
73
|
bankPrograms: (r == null ? void 0 : r.filter(
|
|
56
|
-
(e) => e.category
|
|
74
|
+
(e) => e.category.includes(s.BANK)
|
|
57
75
|
)) || [],
|
|
58
|
-
updatePoints:
|
|
59
|
-
getProgramById: c,
|
|
76
|
+
updatePoints: y,
|
|
60
77
|
banks: u || [],
|
|
61
78
|
allCards: l || [],
|
|
62
|
-
userCards:
|
|
79
|
+
userCards: c || [],
|
|
80
|
+
addCards: d,
|
|
81
|
+
removeCards: p
|
|
63
82
|
};
|
|
64
83
|
};
|
|
65
84
|
export {
|