@mirai/core 0.3.175 → 0.3.176
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/.env +7 -4
- package/build/components/Booking/Booking.js +1 -1
- package/build/components/Booking/Booking.js.map +1 -1
- package/build/components/Booking/Booking.l10n.js +0 -15
- package/build/components/Booking/Booking.l10n.js.map +1 -1
- package/build/components/Booking/Booking.module.css +0 -9
- package/build/components/Booking/components/Hotelverse/Hotelverse.js +1 -1
- package/build/components/Booking/components/Hotelverse/Hotelverse.js.map +1 -1
- package/build/components/Booking/partials/index.js +2 -13
- package/build/components/Booking/partials/index.js.map +1 -1
- package/build/components/Chat/Chat.constants.js +28 -0
- package/build/components/Chat/Chat.constants.js.map +1 -0
- package/build/components/Chat/Chat.js +231 -0
- package/build/components/Chat/Chat.js.map +1 -0
- package/build/components/Chat/Chat.l10n.js +24 -0
- package/build/components/Chat/Chat.l10n.js.map +1 -0
- package/build/components/Chat/Chat.module.css +90 -0
- package/build/components/Chat/Chat.theme.module.css +49 -0
- package/build/components/Chat/components/Avatar/Avatar.js +68 -0
- package/build/components/Chat/components/Avatar/Avatar.js.map +1 -0
- package/build/components/Chat/components/Avatar/Avatar.module.css +81 -0
- package/build/components/Chat/components/Avatar/__tests__/__snapshots__/Avatar.test.jsx.snap +97 -0
- package/build/components/Chat/components/Avatar/index.js +17 -0
- package/build/components/Chat/components/Avatar/index.js.map +1 -0
- package/build/components/Chat/components/Input/Input.js +72 -0
- package/build/components/Chat/components/Input/Input.js.map +1 -0
- package/build/components/Chat/components/Input/Input.l10n.js +15 -0
- package/build/components/Chat/components/Input/Input.l10n.js.map +1 -0
- package/build/components/Chat/components/Input/Input.module.css +19 -0
- package/build/components/Chat/components/Input/__tests__/__snapshots__/Input.test.jsx.snap +175 -0
- package/build/components/Chat/components/Input/index.js +17 -0
- package/build/components/Chat/components/Input/index.js.map +1 -0
- package/build/components/Chat/components/InputRich/InputRich.List.js +52 -0
- package/build/components/Chat/components/InputRich/InputRich.List.js.map +1 -0
- package/build/components/Chat/components/InputRich/InputRich.js +182 -0
- package/build/components/Chat/components/InputRich/InputRich.js.map +1 -0
- package/build/components/Chat/components/InputRich/InputRich.l10n.js +12 -0
- package/build/components/Chat/components/InputRich/InputRich.l10n.js.map +1 -0
- package/build/components/Chat/components/InputRich/InputRich.module.css +73 -0
- package/build/components/Chat/components/InputRich/__tests__/__snapshots__/InputRich.test.jsx.snap +275 -0
- package/build/components/Chat/components/InputRich/helpers/getVerboseList.js +20 -0
- package/build/components/Chat/components/InputRich/helpers/getVerboseList.js.map +1 -0
- package/build/components/Chat/components/InputRich/helpers/getVerboseOccupation.js +27 -0
- package/build/components/Chat/components/InputRich/helpers/getVerboseOccupation.js.map +1 -0
- package/build/components/Chat/components/InputRich/helpers/index.js +28 -0
- package/build/components/Chat/components/InputRich/helpers/index.js.map +1 -0
- package/build/components/Chat/components/InputRich/index.js +17 -0
- package/build/components/Chat/components/InputRich/index.js.map +1 -0
- package/build/components/Chat/components/Message/Message.constants.js +18 -0
- package/build/components/Chat/components/Message/Message.constants.js.map +1 -0
- package/build/components/Chat/components/Message/Message.js +104 -0
- package/build/components/Chat/components/Message/Message.js.map +1 -0
- package/build/components/Chat/components/Message/Message.module.css +126 -0
- package/build/components/Chat/components/Message/__tests__/__snapshots__/Message.test.jsx.snap +211 -0
- package/build/components/Chat/components/Message/components/Booking.js +63 -0
- package/build/components/Chat/components/Message/components/Booking.js.map +1 -0
- package/build/components/Chat/components/Message/components/Card.js +67 -0
- package/build/components/Chat/components/Message/components/Card.js.map +1 -0
- package/build/components/Chat/components/Message/components/Card.module.css +41 -0
- package/build/components/Chat/components/Message/components/Environment.js +58 -0
- package/build/components/Chat/components/Message/components/Environment.js.map +1 -0
- package/build/components/Chat/components/Message/components/Environment.module.css +22 -0
- package/build/components/Chat/components/Message/components/index.js +39 -0
- package/build/components/Chat/components/Message/components/index.js.map +1 -0
- package/build/components/Chat/components/Message/helpers/getActionIcon.js +13 -0
- package/build/components/Chat/components/Message/helpers/getActionIcon.js.map +1 -0
- package/build/components/Chat/components/Message/helpers/getTime.js +28 -0
- package/build/components/Chat/components/Message/helpers/getTime.js.map +1 -0
- package/build/components/Chat/components/Message/helpers/index.js +28 -0
- package/build/components/Chat/components/Message/helpers/index.js.map +1 -0
- package/build/components/Chat/components/Message/index.js +17 -0
- package/build/components/Chat/components/Message/index.js.map +1 -0
- package/build/components/Chat/components/Message/intents/BookingQuery.js +66 -0
- package/build/components/Chat/components/Message/intents/BookingQuery.js.map +1 -0
- package/build/components/Chat/components/Message/intents/HotelInfo.js +73 -0
- package/build/components/Chat/components/Message/intents/HotelInfo.js.map +1 -0
- package/build/components/Chat/components/Message/intents/Offers.js +57 -0
- package/build/components/Chat/components/Message/intents/Offers.js.map +1 -0
- package/build/components/Chat/components/Message/intents/Unknown.js +67 -0
- package/build/components/Chat/components/Message/intents/Unknown.js.map +1 -0
- package/build/components/Chat/components/Message/intents/index.js +50 -0
- package/build/components/Chat/components/Message/intents/index.js.map +1 -0
- package/build/components/Chat/components/Offline/Offline.js +22 -0
- package/build/components/Chat/components/Offline/Offline.js.map +1 -0
- package/build/components/Chat/components/Offline/Offline.module.css +3 -0
- package/build/components/Chat/components/Offline/index.js +17 -0
- package/build/components/Chat/components/Offline/index.js.map +1 -0
- package/build/components/Chat/components/index.js +61 -0
- package/build/components/Chat/components/index.js.map +1 -0
- package/build/components/Chat/helpers/getVerboseDate.js +18 -0
- package/build/components/Chat/helpers/getVerboseDate.js.map +1 -0
- package/build/components/Chat/helpers/index.js +17 -0
- package/build/components/Chat/helpers/index.js.map +1 -0
- package/build/components/Chat/index.js +17 -0
- package/build/components/Chat/index.js.map +1 -0
- package/build/components/Checkout/Checkout.js +20 -5
- package/build/components/Checkout/Checkout.js.map +1 -1
- package/build/components/Checkout/Checkout.module.css +14 -0
- package/build/components/Checkout/helpers/getFieldProps.js +3 -1
- package/build/components/Checkout/helpers/getFieldProps.js.map +1 -1
- package/build/components/Checkout/partials/Checkout.Confirmation.js +11 -7
- package/build/components/Checkout/partials/Checkout.Confirmation.js.map +1 -1
- package/build/components/Checkout/partials/Checkout.Form.js +23 -4
- package/build/components/Checkout/partials/Checkout.Form.js.map +1 -1
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Form.test.js.snap +932 -16
- package/build/components/Profile/components/Settings/Settings.Account.js +26 -8
- package/build/components/Profile/components/Settings/Settings.Account.js.map +1 -1
- package/build/components/Profile/components/Settings/Settings.module.css +4 -0
- package/build/components/Rates/Rates.constants.js +1 -0
- package/build/components/Rates/Rates.constants.js.map +1 -1
- package/build/components/Rates/Rates.js +2 -0
- package/build/components/Rates/Rates.js.map +1 -1
- package/build/components/Rates/components/Hotelverse/Hotelverse.js +1 -1
- package/build/components/Rates/components/Hotelverse/Hotelverse.js.map +1 -1
- package/build/components/Rates/components/Item/components/Features/Features.js +27 -2
- package/build/components/Rates/components/Item/components/Features/Features.js.map +1 -1
- package/build/components/Rates/components/Item/components/ModalInfo/ModalInfo.js +5 -1
- package/build/components/Rates/components/Item/components/ModalInfo/ModalInfo.js.map +1 -1
- package/build/components/Rates/components/Item/components/ModalRateInfo/ModalRateInfo.js +1 -1
- package/build/components/Rates/components/Item/components/ModalRateInfo/ModalRateInfo.js.map +1 -1
- package/build/components/Signup/Signup.js +24 -6
- package/build/components/Signup/Signup.js.map +1 -1
- package/build/components/Signup/Signup.module.css +4 -0
- package/build/components/Signup/__tests__/__snapshots__/Signup.test.js.snap +24 -9
- package/build/components/{Booking/partials/Booking.Others.js → __shared__/BookingTerms/BookingTerms.js} +17 -18
- package/build/components/__shared__/BookingTerms/BookingTerms.js.map +1 -0
- package/build/components/__shared__/BookingTerms/BookingTerms.l10n.js +27 -0
- package/build/components/__shared__/BookingTerms/BookingTerms.l10n.js.map +1 -0
- package/build/components/__shared__/BookingTerms/BookingTerms.module.css +42 -0
- package/build/components/{Booking/partials/__tests__/__snapshots__/Booking.Others.test.js.snap → __shared__/BookingTerms/__tests__/__snapshots__/BookingTerms.test.js.snap} +4 -8
- package/build/components/__shared__/BookingTerms/index.js +17 -0
- package/build/components/__shared__/BookingTerms/index.js.map +1 -0
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.js +52 -0
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.js.map +1 -0
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.l10n.js +62 -0
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.l10n.js.map +1 -0
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.module.css +8 -0
- package/build/components/__shared__/NotificationRequiredFields/index.js +17 -0
- package/build/components/__shared__/NotificationRequiredFields/index.js.map +1 -0
- package/build/components/__shared__/Payment/Payment.js +1 -1
- package/build/components/__shared__/Payment/Payment.js.map +1 -1
- package/build/components/__shared__/Payment/__tests__/__snapshots__/Payment.test.js.snap +302 -8
- package/build/components/__shared__/Payment/components/Card/Card.js +4 -0
- package/build/components/__shared__/Payment/components/Card/Card.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/__tests__/__snapshots__/Card.test.js.snap +23 -0
- package/build/components/__shared__/Payment/components/Card/helpers/formatValues.js +2 -0
- package/build/components/__shared__/Payment/components/Card/helpers/formatValues.js.map +1 -1
- package/build/components/__shared__/Payment/components/PCI/PCI.constants.js +1 -2
- package/build/components/__shared__/Payment/components/PCI/PCI.constants.js.map +1 -1
- package/build/components/__shared__/Payment/components/PCI/PCI.js +59 -56
- package/build/components/__shared__/Payment/components/PCI/PCI.js.map +1 -1
- package/build/components/__shared__/Payment/components/PCI/__tests__/__snapshots__/PCI.test.js.snap +15 -0
- package/build/components/__shared__/Payment/components/PCI/helpers/formatValues.js +2 -0
- package/build/components/__shared__/Payment/components/PCI/helpers/formatValues.js.map +1 -1
- package/build/components/__shared__/Payment/helpers/formatExpire.js +15 -0
- package/build/components/__shared__/Payment/helpers/formatExpire.js.map +1 -0
- package/build/components/__shared__/Payment/helpers/index.js +11 -0
- package/build/components/__shared__/Payment/helpers/index.js.map +1 -1
- package/build/components/__shared__/index.js +22 -0
- package/build/components/__shared__/index.js.map +1 -1
- package/build/components/helpers/ICON.js +13 -0
- package/build/components/helpers/ICON.js.map +1 -1
- package/build/components/index.js +2 -0
- package/build/components/index.js.map +1 -1
- package/build/services/Lisa/action.js +28 -0
- package/build/services/Lisa/action.js.map +1 -0
- package/build/services/Lisa/index.js +17 -0
- package/build/services/Lisa/index.js.map +1 -0
- package/build/services/Lisa/message.js +26 -0
- package/build/services/Lisa/message.js.map +1 -0
- package/build/services/Lisa/status.js +13 -0
- package/build/services/Lisa/status.js.map +1 -0
- package/build/services/Lisa/welcome.js +25 -0
- package/build/services/Lisa/welcome.js.map +1 -0
- package/build/services/Rates/__tests__/__mocks__/rates-response-cancel-types.json +21 -0
- package/build/services/Rates/__tests__/__mocks__/rates-response-no-taxes-no-local.json +6 -0
- package/build/services/Rates/__tests__/__mocks__/rates-response-no-taxes.json +4 -0
- package/build/services/Rates/__tests__/__mocks__/rates-response.json +6 -0
- package/build/services/Rates/extras.js +1 -1
- package/build/services/Rates/extras.js.map +1 -1
- package/build/services/Rates/helpers/getItems.js +1 -1
- package/build/services/Rates/helpers/getItems.js.map +1 -1
- package/build/services/Rates/helpers/parseBoards.js +1 -0
- package/build/services/Rates/helpers/parseBoards.js.map +1 -1
- package/build/services/index.js +11 -0
- package/build/services/index.js.map +1 -1
- package/package.json +1 -1
- package/public/App.Container.jsx +2 -0
- package/build/components/Booking/partials/Booking.Others.js.map +0 -1
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"id": "nonRefundable-No es posible cancelar sin penalización.",
|
|
29
29
|
"caption": null,
|
|
30
30
|
"name": "No reembolsable",
|
|
31
|
+
"paymentConditions": "Prepago de 100%: Pago seguro online",
|
|
31
32
|
"title": "No es posible cancelar sin penalización.",
|
|
32
33
|
"text": "El hotel, cuando reciba la reserva, cobrará en su tarjeta la totalidad del importe. No se admite devolución en caso de anulación, salida anticipada o no presentarse (la reserva sólo se mantendría la primera noche). Si el pago fuera denegado, el hotel anularía su reserva.",
|
|
33
34
|
"price": 0
|
|
@@ -36,6 +37,7 @@
|
|
|
36
37
|
"id": "specialConditions-No es posible cancelar sin penalización.",
|
|
37
38
|
"caption": null,
|
|
38
39
|
"name": "Condiciones especiales: Anular tendría cargo",
|
|
40
|
+
"paymentConditions": "Prepago de 30%: Pago seguro online",
|
|
39
41
|
"title": "No es posible cancelar sin penalización.",
|
|
40
42
|
"text": "Para que la reserva quede confirmada, se procederá a un cargo del 30% del importe de la reserva. Sólo entonces su confirmación automática tendrá validez. En caso de anular la reserva el hotel no devolverá el depósito abonado.",
|
|
41
43
|
"price": 36.5
|
|
@@ -44,6 +46,7 @@
|
|
|
44
46
|
"id": "freeCancellation-Cancelación sin cargo hasta 4 días antes de la llegada",
|
|
45
47
|
"caption": "hasta el 11 abr",
|
|
46
48
|
"name": "Anulación gratis",
|
|
49
|
+
"paymentConditions": "Hoy no pagarás nada. El 13-abr-2024 te cobraremos en tu tarjeta el importe correspondiente a 1 noche. Si quedara importe pendiente, lo abonarás en el establecimiento. Pago seguro online",
|
|
47
50
|
"title": "Cancelación sin cargo hasta 4 días antes de la llegada",
|
|
48
51
|
"text": "Pago diferido, en el momento de la reserva confirmaremos los datos de su tarjeta. El sistema, 3 días antes de la llegada realizará el cobro de 1 noche, en caso de no poderse realizar dicho pago la reserva quedará totalmente cancelada.\r\nSi cancelas o modificas hasta 4 días antes de la llegada, el hotel no cargará gastos. Si cancelas o modificas fuera del plazo se cargará el 100% de la primera noche. En caso de no show se cargará el 100% de la primera noche.",
|
|
49
52
|
"price": 73.13999999999999
|
|
@@ -255,6 +258,7 @@
|
|
|
255
258
|
"id": "nonRefundable-No es posible cancelar sin penalización.",
|
|
256
259
|
"caption": null,
|
|
257
260
|
"name": "No reembolsable",
|
|
261
|
+
"paymentConditions": "Prepago de 100%: Pago seguro online",
|
|
258
262
|
"title": "No es posible cancelar sin penalización.",
|
|
259
263
|
"text": "El hotel, cuando reciba la reserva, cobrará en su tarjeta la totalidad del importe. No se admite devolución en caso de anulación, salida anticipada o no presentarse (la reserva sólo se mantendría la primera noche). Si el pago fuera denegado, el hotel anularía su reserva.",
|
|
260
264
|
"price": 0
|
|
@@ -263,6 +267,7 @@
|
|
|
263
267
|
"id": "specialConditions-No es posible cancelar sin penalización.",
|
|
264
268
|
"caption": null,
|
|
265
269
|
"name": "Condiciones especiales: Anular tendría cargo",
|
|
270
|
+
"paymentConditions": "Prepago de 30%: Pago seguro online",
|
|
266
271
|
"title": "No es posible cancelar sin penalización.",
|
|
267
272
|
"text": "Para que la reserva quede confirmada, se procederá a un cargo del 30% del importe de la reserva. Sólo entonces su confirmación automática tendrá validez. En caso de anular la reserva el hotel no devolverá el depósito abonado.",
|
|
268
273
|
"price": 38.33999999999992
|
|
@@ -271,6 +276,7 @@
|
|
|
271
276
|
"id": "freeCancellation-Cancelación sin cargo hasta 4 días antes de la llegada",
|
|
272
277
|
"caption": "hasta el 11 abr",
|
|
273
278
|
"name": "Anulación gratis",
|
|
279
|
+
"paymentConditions": "Hoy no pagarás nada. El 13-abr-2024 te cobraremos en tu tarjeta el importe correspondiente a 1 noche. Si quedara importe pendiente, lo abonarás en el establecimiento. Pago seguro online",
|
|
274
280
|
"title": "Cancelación sin cargo hasta 4 días antes de la llegada",
|
|
275
281
|
"text": "Pago diferido, en el momento de la reserva confirmaremos los datos de su tarjeta. El sistema, 3 días antes de la llegada realizará el cobro de 1 noche, en caso de no poderse realizar dicho pago la reserva quedará totalmente cancelada.\r\nSi cancelas o modificas hasta 4 días antes de la llegada, el hotel no cargará gastos. Si cancelas o modificas fuera del plazo se cargará el 100% de la primera noche. En caso de no show se cargará el 100% de la primera noche.",
|
|
276
282
|
"price": 76.45999999999992
|
|
@@ -483,6 +489,7 @@
|
|
|
483
489
|
"id": "nonRefundable-No es posible cancelar sin penalización.",
|
|
484
490
|
"caption": null,
|
|
485
491
|
"name": "No reembolsable",
|
|
492
|
+
"paymentConditions": "Prepago de 100%: Pago seguro online",
|
|
486
493
|
"title": "No es posible cancelar sin penalización.",
|
|
487
494
|
"text": "El hotel, cuando reciba la reserva, cobrará en su tarjeta la totalidad del importe. No se admite devolución en caso de anulación, salida anticipada o no presentarse (la reserva sólo se mantendría la primera noche). Si el pago fuera denegado, el hotel anularía su reserva.",
|
|
488
495
|
"price": 0
|
|
@@ -491,6 +498,7 @@
|
|
|
491
498
|
"id": "specialConditions-No es posible cancelar sin penalización.",
|
|
492
499
|
"caption": null,
|
|
493
500
|
"name": "Condiciones especiales: Anular tendría cargo",
|
|
501
|
+
"paymentConditions": "Prepago de 30%: Pago seguro online",
|
|
494
502
|
"title": "No es posible cancelar sin penalización.",
|
|
495
503
|
"text": "Para que la reserva quede confirmada, se procederá a un cargo del 30% del importe de la reserva. Sólo entonces su confirmación automática tendrá validez. En caso de anular la reserva el hotel no devolverá el depósito abonado.",
|
|
496
504
|
"price": 42
|
|
@@ -499,6 +507,7 @@
|
|
|
499
507
|
"id": "freeCancellation-Cancelación sin cargo hasta 4 días antes de la llegada",
|
|
500
508
|
"caption": "hasta el 11 abr",
|
|
501
509
|
"name": "Anulación gratis",
|
|
510
|
+
"paymentConditions": "Hoy no pagarás nada. El 13-abr-2024 te cobraremos en tu tarjeta el importe correspondiente a 1 noche. Si quedara importe pendiente, lo abonarás en el establecimiento. Pago seguro online",
|
|
502
511
|
"title": "Cancelación sin cargo hasta 4 días antes de la llegada",
|
|
503
512
|
"text": "Pago diferido, en el momento de la reserva confirmaremos los datos de su tarjeta. El sistema, 3 días antes de la llegada realizará el cobro de 1 noche, en caso de no poderse realizar dicho pago la reserva quedará totalmente cancelada.\r\nSi cancelas o modificas hasta 4 días antes de la llegada, el hotel no cargará gastos. Si cancelas o modificas fuera del plazo se cargará el 100% de la primera noche. En caso de no show se cargará el 100% de la primera noche.",
|
|
504
513
|
"price": 83.62
|
|
@@ -716,6 +725,7 @@
|
|
|
716
725
|
"id": "nonRefundable-No es posible cancelar sin penalización.",
|
|
717
726
|
"caption": null,
|
|
718
727
|
"name": "No reembolsable",
|
|
728
|
+
"paymentConditions": "Prepago de 100%: Pago seguro online",
|
|
719
729
|
"title": "No es posible cancelar sin penalización.",
|
|
720
730
|
"text": "El hotel, cuando reciba la reserva, cobrará en su tarjeta la totalidad del importe. No se admite devolución en caso de anulación, salida anticipada o no presentarse (la reserva sólo se mantendría la primera noche). Si el pago fuera denegado, el hotel anularía su reserva.",
|
|
721
731
|
"price": 0
|
|
@@ -724,6 +734,7 @@
|
|
|
724
734
|
"id": "specialConditions-No es posible cancelar sin penalización.",
|
|
725
735
|
"caption": null,
|
|
726
736
|
"name": "Condiciones especiales: Anular tendría cargo",
|
|
737
|
+
"paymentConditions": "Prepago de 30%: Pago seguro online",
|
|
727
738
|
"title": "No es posible cancelar sin penalización.",
|
|
728
739
|
"text": "Para que la reserva quede confirmada, se procederá a un cargo del 30% del importe de la reserva. Sólo entonces su confirmación automática tendrá validez. En caso de anular la reserva el hotel no devolverá el depósito abonado.",
|
|
729
740
|
"price": 42.17999999999995
|
|
@@ -732,6 +743,7 @@
|
|
|
732
743
|
"id": "freeCancellation-Cancelación sin cargo hasta 4 días antes de la llegada",
|
|
733
744
|
"caption": "hasta el 11 abr",
|
|
734
745
|
"name": "Anulación gratis",
|
|
746
|
+
"paymentConditions": "Hoy no pagarás nada. El 13-abr-2024 te cobraremos en tu tarjeta el importe correspondiente a 1 noche. Si quedara importe pendiente, lo abonarás en el establecimiento. Pago seguro online",
|
|
735
747
|
"title": "Cancelación sin cargo hasta 4 días antes de la llegada",
|
|
736
748
|
"text": "Pago diferido, en el momento de la reserva confirmaremos los datos de su tarjeta. El sistema, 3 días antes de la llegada realizará el cobro de 1 noche, en caso de no poderse realizar dicho pago la reserva quedará totalmente cancelada.\r\nSi cancelas o modificas hasta 4 días antes de la llegada, el hotel no cargará gastos. Si cancelas o modificas fuera del plazo se cargará el 100% de la primera noche. En caso de no show se cargará el 100% de la primera noche.",
|
|
737
749
|
"price": 84.38
|
|
@@ -945,6 +957,7 @@
|
|
|
945
957
|
"id": "nonRefundable-No es posible cancelar sin penalización.",
|
|
946
958
|
"caption": null,
|
|
947
959
|
"name": "No reembolsable",
|
|
960
|
+
"paymentConditions": "Prepago de 100%: Pago seguro online",
|
|
948
961
|
"title": "No es posible cancelar sin penalización.",
|
|
949
962
|
"text": "El hotel, cuando reciba la reserva, cobrará en su tarjeta la totalidad del importe. No se admite devolución en caso de anulación, salida anticipada o no presentarse (la reserva sólo se mantendría la primera noche). Si el pago fuera denegado, el hotel anularía su reserva.",
|
|
950
963
|
"price": 0
|
|
@@ -953,6 +966,7 @@
|
|
|
953
966
|
"id": "specialConditions-No es posible cancelar sin penalización.",
|
|
954
967
|
"caption": null,
|
|
955
968
|
"name": "Condiciones especiales: Anular tendría cargo",
|
|
969
|
+
"paymentConditions": "Prepago de 30%: Pago seguro online",
|
|
956
970
|
"title": "No es posible cancelar sin penalización.",
|
|
957
971
|
"text": "Para que la reserva quede confirmada, se procederá a un cargo del 30% del importe de la reserva. Sólo entonces su confirmación automática tendrá validez. En caso de anular la reserva el hotel no devolverá el depósito abonado.",
|
|
958
972
|
"price": 44.24000000000001
|
|
@@ -961,6 +975,7 @@
|
|
|
961
975
|
"id": "freeCancellation-Cancelación sin cargo hasta 4 días antes de la llegada",
|
|
962
976
|
"caption": "hasta el 11 abr",
|
|
963
977
|
"name": "Anulación gratis",
|
|
978
|
+
"paymentConditions": "Hoy no pagarás nada. El 13-abr-2024 te cobraremos en tu tarjeta el importe correspondiente a 1 noche. Si quedara importe pendiente, lo abonarás en el establecimiento. Pago seguro online",
|
|
964
979
|
"title": "Cancelación sin cargo hasta 4 días antes de la llegada",
|
|
965
980
|
"text": "Pago diferido, en el momento de la reserva confirmaremos los datos de su tarjeta. El sistema, 3 días antes de la llegada realizará el cobro de 1 noche, en caso de no poderse realizar dicho pago la reserva quedará totalmente cancelada.\r\nSi cancelas o modificas hasta 4 días antes de la llegada, el hotel no cargará gastos. Si cancelas o modificas fuera del plazo se cargará el 100% de la primera noche. En caso de no show se cargará el 100% de la primera noche.",
|
|
966
981
|
"price": 88.25999999999999
|
|
@@ -1181,6 +1196,7 @@
|
|
|
1181
1196
|
"id": "nonRefundable-No es posible cancelar sin penalización.",
|
|
1182
1197
|
"caption": null,
|
|
1183
1198
|
"name": "No reembolsable",
|
|
1199
|
+
"paymentConditions": "Prepago de 100%: Pago seguro online",
|
|
1184
1200
|
"title": "No es posible cancelar sin penalización.",
|
|
1185
1201
|
"text": "El hotel, cuando reciba la reserva, cobrará en su tarjeta la totalidad del importe. No se admite devolución en caso de anulación, salida anticipada o no presentarse (la reserva sólo se mantendría la primera noche). Si el pago fuera denegado, el hotel anularía su reserva.",
|
|
1186
1202
|
"price": 0
|
|
@@ -1189,6 +1205,7 @@
|
|
|
1189
1205
|
"id": "specialConditions-No es posible cancelar sin penalización.",
|
|
1190
1206
|
"caption": null,
|
|
1191
1207
|
"name": "Condiciones especiales: Anular tendría cargo",
|
|
1208
|
+
"paymentConditions": "Prepago de 30%: Pago seguro online",
|
|
1192
1209
|
"title": "No es posible cancelar sin penalización.",
|
|
1193
1210
|
"text": "Para que la reserva quede confirmada, se procederá a un cargo del 30% del importe de la reserva. Sólo entonces su confirmación automática tendrá validez. En caso de anular la reserva el hotel no devolverá el depósito abonado.",
|
|
1194
1211
|
"price": 47.89999999999998
|
|
@@ -1197,6 +1214,7 @@
|
|
|
1197
1214
|
"id": "freeCancellation-Cancelación sin cargo hasta 4 días antes de la llegada",
|
|
1198
1215
|
"caption": "hasta el 11 abr",
|
|
1199
1216
|
"name": "Anulación gratis",
|
|
1217
|
+
"paymentConditions": "Hoy no pagarás nada. El 13-abr-2024 te cobraremos en tu tarjeta el importe correspondiente a 1 noche. Si quedara importe pendiente, lo abonarás en el establecimiento. Pago seguro online",
|
|
1200
1218
|
"title": "Cancelación sin cargo hasta 4 días antes de la llegada",
|
|
1201
1219
|
"text": "Pago diferido, en el momento de la reserva confirmaremos los datos de su tarjeta. El sistema, 3 días antes de la llegada realizará el cobro de 1 noche, en caso de no poderse realizar dicho pago la reserva quedará totalmente cancelada.\r\nSi cancelas o modificas hasta 4 días antes de la llegada, el hotel no cargará gastos. Si cancelas o modificas fuera del plazo se cargará el 100% de la primera noche. En caso de no show se cargará el 100% de la primera noche.",
|
|
1202
1220
|
"price": 95.70000000000005
|
|
@@ -1418,6 +1436,7 @@
|
|
|
1418
1436
|
"id": "nonRefundable-No es posible cancelar sin penalización.",
|
|
1419
1437
|
"caption": null,
|
|
1420
1438
|
"name": "No reembolsable",
|
|
1439
|
+
"paymentConditions": "Prepago de 100%: Pago seguro online",
|
|
1421
1440
|
"title": "No es posible cancelar sin penalización.",
|
|
1422
1441
|
"text": "El hotel, cuando reciba la reserva, cobrará en su tarjeta la totalidad del importe. No se admite devolución en caso de anulación, salida anticipada o no presentarse (la reserva sólo se mantendría la primera noche). Si el pago fuera denegado, el hotel anularía su reserva.",
|
|
1423
1442
|
"price": 0
|
|
@@ -1426,6 +1445,7 @@
|
|
|
1426
1445
|
"id": "specialConditions-No es posible cancelar sin penalización.",
|
|
1427
1446
|
"caption": null,
|
|
1428
1447
|
"name": "Condiciones especiales: Anular tendría cargo",
|
|
1448
|
+
"paymentConditions": "Prepago de 30%: Pago seguro online",
|
|
1429
1449
|
"title": "No es posible cancelar sin penalización.",
|
|
1430
1450
|
"text": "Para que la reserva quede confirmada, se procederá a un cargo del 30% del importe de la reserva. Sólo entonces su confirmación automática tendrá validez. En caso de anular la reserva el hotel no devolverá el depósito abonado.",
|
|
1431
1451
|
"price": 62.92000000000007
|
|
@@ -1434,6 +1454,7 @@
|
|
|
1434
1454
|
"id": "freeCancellation-Cancelación sin cargo hasta 4 días antes de la llegada",
|
|
1435
1455
|
"caption": "hasta el 11 abr",
|
|
1436
1456
|
"name": "Anulación gratis",
|
|
1457
|
+
"paymentConditions": "Hoy no pagarás nada. El 13-abr-2024 te cobraremos en tu tarjeta el importe correspondiente a 1 noche. Si quedara importe pendiente, lo abonarás en el establecimiento. Pago seguro online",
|
|
1437
1458
|
"title": "Cancelación sin cargo hasta 4 días antes de la llegada",
|
|
1438
1459
|
"text": "Pago diferido, en el momento de la reserva confirmaremos los datos de su tarjeta. El sistema, 3 días antes de la llegada realizará el cobro de 1 noche, en caso de no poderse realizar dicho pago la reserva quedará totalmente cancelada.\r\nSi cancelas o modificas hasta 4 días antes de la llegada, el hotel no cargará gastos. Si cancelas o modificas fuera del plazo se cargará el 100% de la primera noche. En caso de no show se cargará el 100% de la primera noche.",
|
|
1439
1460
|
"price": 125.66000000000008
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"id": "freeCancellation-Cancelación sin cargo hasta varias horas antes de la llegada.",
|
|
23
23
|
"caption": "hasta el 3 feb",
|
|
24
24
|
"name": "Anulación gratis",
|
|
25
|
+
"paymentConditions": "Pago en el establecimiento. Tarjeta de crédito sólo como garantía de la reserva. ",
|
|
25
26
|
"title": "Cancelación sin cargo hasta varias horas antes de la llegada.",
|
|
26
27
|
"text": "Esta reserva es cancelable hasta el 12:00 del 03-feb-2024. Si cancelas antes de la fecha límite no incurrirás en ningún cargo, en caso contrario se cargará al cliente el precio de 1ª noche para estancias inferiores a 7 noches o el precio de 3 noches para estancias superiores a 7 noches o más. En caso de no presentarse, el hotel cargará el importe total de su estancia. Se cobrará una tarifa de instalaciones por un monto de US $22, más 14,75% de impuestos por habitación por noche. Esta tarifa incluye: Wi-Fi de alta velocidad de cortesía, acceso de cortesía al gimnasio Blink (pase de un día), impresión por computadora disponible, periódicos digitales de cortesía con aplicación de lectura de prensa, café y té Nespresso en la habitación (suministros a pedido, botella de agua por estadía). descuento en la tarifa del aparcamiento, así como cupones de descuento del 10% en bolsos Macys y 15% Bloomingdaltes Big Brown, descuentos exclusivos en atracciones locales.\r\nLos impuestos (14,75%) sólo se incluyen en el precio total de la estancia en el siguiente paso.\r\nHay un impuesto de ocupación de $3.50 por habitación por noche que no está incluido en el precio total de la estadía como se muestra en el sitio web; sin embargo, se incluirá en la factura final.\r\nAl reservar más de 5 habitaciones, la política de cancelación y las condiciones que se aplicarán a la reserva variarán. Si las condiciones no son aceptadas por el cliente, el hotel se reserva el derecho de cancelar todas las reservas.",
|
|
27
28
|
"price": 0
|
|
@@ -109,6 +110,7 @@
|
|
|
109
110
|
"id": "freeCancellation-Cancelación sin cargo hasta varias horas antes de la llegada.",
|
|
110
111
|
"caption": "hasta el 3 feb",
|
|
111
112
|
"name": "Anulación gratis",
|
|
113
|
+
"paymentConditions": "Pago en el establecimiento. Tarjeta de crédito sólo como garantía de la reserva. ",
|
|
112
114
|
"title": "Cancelación sin cargo hasta varias horas antes de la llegada.",
|
|
113
115
|
"text": "Esta reserva es cancelable hasta el 12:00 del 03-feb-2024. Si cancelas antes de la fecha límite no incurrirás en ningún cargo, en caso contrario se cargará al cliente el precio de 1ª noche para estancias inferiores a 7 noches o el precio de 3 noches para estancias superiores a 7 noches o más. En caso de no presentarse, el hotel cargará el importe total de su estancia. Se cobrará una tarifa de instalaciones por un monto de US $22, más 14,75% de impuestos por habitación por noche. Esta tarifa incluye: Wi-Fi de alta velocidad de cortesía, acceso de cortesía al gimnasio Blink (pase de un día), impresión por computadora disponible, periódicos digitales de cortesía con aplicación de lectura de prensa, café y té Nespresso en la habitación (suministros a pedido, botella de agua por estadía). descuento en la tarifa del aparcamiento, así como cupones de descuento del 10% en bolsos Macys y 15% Bloomingdaltes Big Brown, descuentos exclusivos en atracciones locales.\r\nLos impuestos (14,75%) sólo se incluyen en el precio total de la estancia en el siguiente paso.\r\nHay un impuesto de ocupación de $3.50 por habitación por noche que no está incluido en el precio total de la estadía como se muestra en el sitio web; sin embargo, se incluirá en la factura final.\r\nAl reservar más de 5 habitaciones, la política de cancelación y las condiciones que se aplicarán a la reserva variarán. Si las condiciones no son aceptadas por el cliente, el hotel se reserva el derecho de cancelar todas las reservas.",
|
|
114
116
|
"price": 0
|
|
@@ -202,6 +204,7 @@
|
|
|
202
204
|
"id": "freeCancellation-Cancelación sin cargo hasta varias horas antes de la llegada.",
|
|
203
205
|
"caption": "hasta el 3 feb",
|
|
204
206
|
"name": "Anulación gratis",
|
|
207
|
+
"paymentConditions": "Pago en el establecimiento. Tarjeta de crédito sólo como garantía de la reserva. ",
|
|
205
208
|
"title": "Cancelación sin cargo hasta varias horas antes de la llegada.",
|
|
206
209
|
"text": "Esta reserva es cancelable hasta el 12:00 del 03-feb-2024. Si cancelas antes de la fecha límite no incurrirás en ningún cargo, en caso contrario se cargará al cliente el precio de 1ª noche para estancias inferiores a 7 noches o el precio de 3 noches para estancias superiores a 7 noches o más. En caso de no presentarse, el hotel cargará el importe total de su estancia. Se cobrará una tarifa de instalaciones por un monto de US $22, más 14,75% de impuestos por habitación por noche. Esta tarifa incluye: Wi-Fi de alta velocidad de cortesía, acceso de cortesía al gimnasio Blink (pase de un día), impresión por computadora disponible, periódicos digitales de cortesía con aplicación de lectura de prensa, café y té Nespresso en la habitación (suministros a pedido, botella de agua por estadía). descuento en la tarifa del aparcamiento, así como cupones de descuento del 10% en bolsos Macys y 15% Bloomingdaltes Big Brown, descuentos exclusivos en atracciones locales.\r\nLos impuestos (14,75%) sólo se incluyen en el precio total de la estancia en el siguiente paso.\r\nHay un impuesto de ocupación de $3.50 por habitación por noche que no está incluido en el precio total de la estadía como se muestra en el sitio web; sin embargo, se incluirá en la factura final.\r\nAl reservar más de 5 habitaciones, la política de cancelación y las condiciones que se aplicarán a la reserva variarán. Si las condiciones no son aceptadas por el cliente, el hotel se reserva el derecho de cancelar todas las reservas.",
|
|
207
210
|
"price": 0
|
|
@@ -295,6 +298,7 @@
|
|
|
295
298
|
"id": "freeCancellation-Cancelación sin cargo hasta varias horas antes de la llegada.",
|
|
296
299
|
"caption": "hasta el 3 feb",
|
|
297
300
|
"name": "Anulación gratis",
|
|
301
|
+
"paymentConditions": "Pago en el establecimiento. Tarjeta de crédito sólo como garantía de la reserva. ",
|
|
298
302
|
"title": "Cancelación sin cargo hasta varias horas antes de la llegada.",
|
|
299
303
|
"text": "Esta reserva es cancelable hasta el 12:00 del 03-feb-2024. Si cancelas antes de la fecha límite no incurrirás en ningún cargo, en caso contrario se cargará al cliente el precio de 1ª noche para estancias inferiores a 7 noches o el precio de 3 noches para estancias superiores a 7 noches o más. En caso de no presentarse, el hotel cargará el importe total de su estancia. Se cobrará una tarifa de instalaciones por un monto de US $22, más 14,75% de impuestos por habitación por noche. Esta tarifa incluye: Wi-Fi de alta velocidad de cortesía, acceso de cortesía al gimnasio Blink (pase de un día), impresión por computadora disponible, periódicos digitales de cortesía con aplicación de lectura de prensa, café y té Nespresso en la habitación (suministros a pedido, botella de agua por estadía). descuento en la tarifa del aparcamiento, así como cupones de descuento del 10% en bolsos Macys y 15% Bloomingdaltes Big Brown, descuentos exclusivos en atracciones locales.\r\nLos impuestos (14,75%) sólo se incluyen en el precio total de la estancia en el siguiente paso.\r\nHay un impuesto de ocupación de $3.50 por habitación por noche que no está incluido en el precio total de la estadía como se muestra en el sitio web; sin embargo, se incluirá en la factura final.\r\nAl reservar más de 5 habitaciones, la política de cancelación y las condiciones que se aplicarán a la reserva variarán. Si las condiciones no son aceptadas por el cliente, el hotel se reserva el derecho de cancelar todas las reservas.",
|
|
300
304
|
"price": 0
|
|
@@ -389,6 +393,7 @@
|
|
|
389
393
|
"id": "freeCancellation-Cancelación sin cargo hasta varias horas antes de la llegada.",
|
|
390
394
|
"caption": "hasta el 3 feb",
|
|
391
395
|
"name": "Anulación gratis",
|
|
396
|
+
"paymentConditions": "Pago en el establecimiento. Tarjeta de crédito sólo como garantía de la reserva. ",
|
|
392
397
|
"title": "Cancelación sin cargo hasta varias horas antes de la llegada.",
|
|
393
398
|
"text": "Esta reserva es cancelable hasta el 12:00 del 03-feb-2024. Si cancelas antes de la fecha límite no incurrirás en ningún cargo, en caso contrario se cargará al cliente el precio de 1ª noche para estancias inferiores a 7 noches o el precio de 3 noches para estancias superiores a 7 noches o más. En caso de no presentarse, el hotel cargará el importe total de su estancia. Se cobrará una tarifa de instalaciones por un monto de US $22, más 14,75% de impuestos por habitación por noche. Esta tarifa incluye: Wi-Fi de alta velocidad de cortesía, acceso de cortesía al gimnasio Blink (pase de un día), impresión por computadora disponible, periódicos digitales de cortesía con aplicación de lectura de prensa, café y té Nespresso en la habitación (suministros a pedido, botella de agua por estadía). descuento en la tarifa del aparcamiento, así como cupones de descuento del 10% en bolsos Macys y 15% Bloomingdaltes Big Brown, descuentos exclusivos en atracciones locales.\r\nLos impuestos (14,75%) sólo se incluyen en el precio total de la estancia en el siguiente paso.\r\nHay un impuesto de ocupación de $3.50 por habitación por noche que no está incluido en el precio total de la estadía como se muestra en el sitio web; sin embargo, se incluirá en la factura final.\r\nAl reservar más de 5 habitaciones, la política de cancelación y las condiciones que se aplicarán a la reserva variarán. Si las condiciones no son aceptadas por el cliente, el hotel se reserva el derecho de cancelar todas las reservas.",
|
|
394
399
|
"price": 0
|
|
@@ -482,6 +487,7 @@
|
|
|
482
487
|
"id": "freeCancellation-Cancelación sin cargo hasta varias horas antes de la llegada.",
|
|
483
488
|
"caption": "hasta el 3 feb",
|
|
484
489
|
"name": "Anulación gratis",
|
|
490
|
+
"paymentConditions": "Pago en el establecimiento. Tarjeta de crédito sólo como garantía de la reserva. ",
|
|
485
491
|
"title": "Cancelación sin cargo hasta varias horas antes de la llegada.",
|
|
486
492
|
"text": "Esta reserva es cancelable hasta el 12:00 del 03-feb-2024. Si cancelas antes de la fecha límite no incurrirás en ningún cargo, en caso contrario se cargará al cliente el precio de 1ª noche para estancias inferiores a 7 noches o el precio de 3 noches para estancias superiores a 7 noches o más. En caso de no presentarse, el hotel cargará el importe total de su estancia. Se cobrará una tarifa de instalaciones por un monto de US $22, más 14,75% de impuestos por habitación por noche. Esta tarifa incluye: Wi-Fi de alta velocidad de cortesía, acceso de cortesía al gimnasio Blink (pase de un día), impresión por computadora disponible, periódicos digitales de cortesía con aplicación de lectura de prensa, café y té Nespresso en la habitación (suministros a pedido, botella de agua por estadía). descuento en la tarifa del aparcamiento, así como cupones de descuento del 10% en bolsos Macys y 15% Bloomingdaltes Big Brown, descuentos exclusivos en atracciones locales.\r\nLos impuestos (14,75%) sólo se incluyen en el precio total de la estancia en el siguiente paso.\r\nHay un impuesto de ocupación de $3.50 por habitación por noche que no está incluido en el precio total de la estadía como se muestra en el sitio web; sin embargo, se incluirá en la factura final.\r\nAl reservar más de 5 habitaciones, la política de cancelación y las condiciones que se aplicarán a la reserva variarán. Si las condiciones no son aceptadas por el cliente, el hotel se reserva el derecho de cancelar todas las reservas.",
|
|
487
493
|
"price": 0
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"id": "freeCancellation-Cancellation with no penalty up to some hours before arrival.",
|
|
32
32
|
"caption": "until Feb 5",
|
|
33
33
|
"name": "Free cancellation",
|
|
34
|
+
"paymentConditions": "Pay at the property. Credit Card only as a booking guarantee. ",
|
|
34
35
|
"title": "Cancellation with no penalty up to some hours before arrival.",
|
|
35
36
|
"text": "If the reservation is cancelled after Feb 05, 2024 at 12:00, or in the event of a \"No Show\", one night will be charged to your credit card and the reservation will be automatically cancelled.",
|
|
36
37
|
"price": 0
|
|
@@ -335,6 +336,7 @@
|
|
|
335
336
|
"id": "freeCancellation-Cancellation with no penalty up to some hours before arrival.",
|
|
336
337
|
"caption": "until Feb 5",
|
|
337
338
|
"name": "Free cancellation",
|
|
339
|
+
"paymentConditions": "Pay at the property. Credit Card only as a booking guarantee. ",
|
|
338
340
|
"title": "Cancellation with no penalty up to some hours before arrival.",
|
|
339
341
|
"text": "If the reservation is cancelled after Feb 05, 2024 at 12:00, or in the event of a \"No Show\", one night will be charged to your credit card and the reservation will be automatically cancelled.",
|
|
340
342
|
"price": 0
|
|
@@ -642,6 +644,7 @@
|
|
|
642
644
|
"id": "freeCancellation-Cancellation with no penalty up to some hours before arrival.",
|
|
643
645
|
"caption": "until Feb 5",
|
|
644
646
|
"name": "Free cancellation",
|
|
647
|
+
"paymentConditions": "Pay at the property. Credit Card only as a booking guarantee. ",
|
|
645
648
|
"title": "Cancellation with no penalty up to some hours before arrival.",
|
|
646
649
|
"text": "If the reservation is cancelled after Feb 05, 2024 at 12:00, or in the event of a \"No Show\", one night will be charged to your credit card and the reservation will be automatically cancelled.",
|
|
647
650
|
"price": 0
|
|
@@ -952,6 +955,7 @@
|
|
|
952
955
|
"id": "freeCancellation-Cancellation with no penalty up to some hours before arrival.",
|
|
953
956
|
"caption": "until Feb 5",
|
|
954
957
|
"name": "Free cancellation",
|
|
958
|
+
"paymentConditions": "Pay at the property. Credit Card only as a booking guarantee. ",
|
|
955
959
|
"title": "Cancellation with no penalty up to some hours before arrival.",
|
|
956
960
|
"text": "If the reservation is cancelled after Feb 05, 2024 at 12:00, or in the event of a \"No Show\", one night will be charged to your credit card and the reservation will be automatically cancelled.",
|
|
957
961
|
"price": 0
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"id": "freeCancellation-Cancellation with no penalty up to 8 days prior to arrival",
|
|
14
14
|
"caption": "until Feb 11",
|
|
15
15
|
"name": "Free cancellation",
|
|
16
|
+
"paymentConditions": "Payment is made directly at the property; exceptions are stated in the cancellation policy for payments in advance. The hotel reserves the right to pre-authorize your card prior to arrival",
|
|
16
17
|
"title": "Cancellation with no penalty up to 8 days prior to arrival",
|
|
17
18
|
"text": "Cancellation with no penalty up to 8 days prior to arrival. Your booking must be guaranteed with a bank card. You may modify or cancel your booking at no extra cost up to 8 days before your check-in date. You must pay 7 days before arrival. Once the payment has been made, changes or cancellations are not permitted and there is no right to the reimbursement of the amount paid.\r\n\r\nFor this purpose, shortly before the payment date established in the conditions of your reservation you will receive an email from TPVvirtual@redsys.es (secure-payment e-commerce platform), through which you can proceed to the payment by clicking on the \"Start payment\" link. The link has temporary validity, so if once the validity period has expired you have not made the payment, your reservation will be automatically cancelled. If you still want to reserve, contact us (reservas@suitesviena.es). Notwithstanding the foregoing, in order to verify the validity of the card presented as a guarantee, Suites Viena Plaza de España reserves the right to pre-authorize the amount of the first night prior to the payment date established in the conditions of the offer. You can check our general conditions at https://www.suitesviena.com/files/Condiciones-generales-Suites-Viena.pdf",
|
|
18
19
|
"price": 0
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
"id": "freeCancellation-Cancellation with no penalty up to some hours before arrival.",
|
|
22
23
|
"caption": "until Feb 18",
|
|
23
24
|
"name": "Free cancellation",
|
|
25
|
+
"paymentConditions": "Pay on arrival at the property. Credit Card only as a booking guarantee. ",
|
|
24
26
|
"title": "Cancellation with no penalty up to some hours before arrival.",
|
|
25
27
|
"text": "Your booking must be guaranteed with a bank card. You can cancel or modify your reservation for free until 12:00 of the Feb 18, 2024. If you cancel your booking after the aforementioned time and date or in the event of a no-show, Suites Viena will charge the full amount of the first night on the bank card provided during the booking process. \r\n\r\nFor security reasons, if you are not the holder of the bank card, Suites Viena cannot authorise any charge on it. In this case, the bank card holder should immediately contact Suites Viena and provide supporting documentation proving ownership of the card as well as an authorisation for the booking to be charged to the card. Otherwise, the booking will be cancelled.\r\nNotwithstanding the foregoing, with the aim of proving the validity of the bank card presented as a guarantee, Suites Viena reserves the right to pre-authorise the cost of the first night prior to the date of charge established in the conditions of the offer. \r\nThe property also reserves the right to request payment for the first night within 24 hours prior to the arrival date.\r\n\r\nYou can check our general conditions at https://www.suitesviena.com/files/General-conditions-Suites-Viena.pdf",
|
|
26
28
|
"price": 79.61000000000001
|
|
@@ -138,6 +140,7 @@
|
|
|
138
140
|
],
|
|
139
141
|
"name": "Double/Twin Comfort Room",
|
|
140
142
|
"maxOccupation": 2,
|
|
143
|
+
"media": { "url3D": "", "urlVideo": "https://www.youtube.com/embed/qLs6RkmqPng?si=XTrf1CtIcCE3nKaR" },
|
|
141
144
|
"occupation": [{ "type": 2, "amount": 2 }]
|
|
142
145
|
},
|
|
143
146
|
{
|
|
@@ -176,6 +179,7 @@
|
|
|
176
179
|
"id": "freeCancellation-Cancellation with no penalty up to 8 days prior to arrival",
|
|
177
180
|
"caption": "until Feb 11",
|
|
178
181
|
"name": "Free cancellation",
|
|
182
|
+
"paymentConditions": "Payment is made directly at the property; exceptions are stated in the cancellation policy for payments in advance. The hotel reserves the right to pre-authorize your card prior to arrival",
|
|
179
183
|
"title": "Cancellation with no penalty up to 8 days prior to arrival",
|
|
180
184
|
"text": "Cancellation with no penalty up to 8 days prior to arrival. Your booking must be guaranteed with a bank card. You may modify or cancel your booking at no extra cost up to 8 days before your check-in date. You must pay 7 days before arrival. Once the payment has been made, changes or cancellations are not permitted and there is no right to the reimbursement of the amount paid.\r\n\r\nFor this purpose, shortly before the payment date established in the conditions of your reservation you will receive an email from TPVvirtual@redsys.es (secure-payment e-commerce platform), through which you can proceed to the payment by clicking on the \"Start payment\" link. The link has temporary validity, so if once the validity period has expired you have not made the payment, your reservation will be automatically cancelled. If you still want to reserve, contact us (reservas@suitesviena.es). Notwithstanding the foregoing, in order to verify the validity of the card presented as a guarantee, Suites Viena Plaza de España reserves the right to pre-authorize the amount of the first night prior to the payment date established in the conditions of the offer. You can check our general conditions at https://www.suitesviena.com/files/Condiciones-generales-Suites-Viena.pdf",
|
|
181
185
|
"price": 0
|
|
@@ -184,6 +188,7 @@
|
|
|
184
188
|
"id": "freeCancellation-Cancellation with no penalty up to some hours before arrival.",
|
|
185
189
|
"caption": "until Feb 18",
|
|
186
190
|
"name": "Free cancellation",
|
|
191
|
+
"paymentConditions": "Pay on arrival at the property. Credit Card only as a booking guarantee. ",
|
|
187
192
|
"title": "Cancellation with no penalty up to some hours before arrival.",
|
|
188
193
|
"text": "Your booking must be guaranteed with a bank card. You can cancel or modify your reservation for free until 12:00 of the Feb 18, 2024. If you cancel your booking after the aforementioned time and date or in the event of a no-show, Suites Viena will charge the full amount of the first night on the bank card provided during the booking process. \r\n\r\nFor security reasons, if you are not the holder of the bank card, Suites Viena cannot authorise any charge on it. In this case, the bank card holder should immediately contact Suites Viena and provide supporting documentation proving ownership of the card as well as an authorisation for the booking to be charged to the card. Otherwise, the booking will be cancelled.\r\nNotwithstanding the foregoing, with the aim of proving the validity of the bank card presented as a guarantee, Suites Viena reserves the right to pre-authorise the cost of the first night prior to the date of charge established in the conditions of the offer. \r\nThe property also reserves the right to request payment for the first night within 24 hours prior to the arrival date.\r\n\r\nYou can check our general conditions at https://www.suitesviena.com/files/General-conditions-Suites-Viena.pdf",
|
|
189
194
|
"price": 86.21999999999991
|
|
@@ -291,6 +296,7 @@
|
|
|
291
296
|
],
|
|
292
297
|
"name": "Superior Double Room",
|
|
293
298
|
"maxOccupation": 2,
|
|
299
|
+
"media": { "url3D": "", "urlVideo": "https://www.youtube.com/embed/xG3ERM_4KdE?si=ZKChtHZfhu63N7Fx" },
|
|
294
300
|
"occupation": [{ "type": 2, "amount": 2 }],
|
|
295
301
|
"size": "25 m²"
|
|
296
302
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extras.js","names":["_dataSources","require","_services","_constants","_helpers","RANGE","ROOM","GUEST","UNIT","EXTRA_TYPE","extras","clubDiscount","applyClubDiscount","currency","userCurrency","hotelCurrency","locale","offersAppliedBySelectedRoom","price","rooms","session","authorization","others","arguments","length","undefined","Promise","resolve","reject","language","split","params","Object","entries","accessClubToken","lang","totalPrice","filter","_ref","value","response","request","hostname","process","env","SERVICE_BOOKING","endpoint","concat","URLSearchParams","headers","catch","error","result","sortedExtrasIds","ServiceCurrency","exchange","id","draft","includedInOffer","map","ageCategory","guestType","conditionDetails","conditions","defaultQuantity","amount","description","text","included","guestsPresent","guestThreshold","name","title","nights","occupationsPresent","accommodationThreshold","perGuest","perNight","perRange","perReserve","perRoom","photo","image","priceOptionValues","priceOptions","showApplyNights","inputNights","showApplyPersons","inputGuests","taxesInformation","taxes","discounts","discount","basePrice","withTaxes","find","_ref2","option","type","percent","originalPrice","getValue","base","fromEntries","Array","from","_","indexAmount","indexNights","withoutTaxes","_ref3","getAmount","getPrice","normalize","baseValue","frequency","FREQUENCY","NIGHTLY","ONCE","priceType","PRICE_TYPE","exports"],"sources":["../../../src/services/Rates/extras.js"],"sourcesContent":["/* eslint-disable no-async-promise-executor */\nimport { request } from '@mirai/data-sources';\nimport { ServiceCurrency } from '@mirai/services';\n\nimport { EXTRA_TYPE, FREQUENCY, PRICE_TYPE } from './constants';\nimport { getPrice } from './helpers';\n\nconst { RANGE, ROOM, GUEST, UNIT } = EXTRA_TYPE;\n\nexport const extras = ({\n clubDiscount: applyClubDiscount,\n currency: userCurrency,\n hotelCurrency = userCurrency,\n locale,\n offersAppliedBySelectedRoom,\n price,\n rooms,\n session: { authorization } = {},\n ...others\n} = {}) =>\n new Promise(async (resolve, reject) => {\n if (!userCurrency || !locale) return reject();\n\n const language = locale?.split('-')[0];\n const params = Object.entries({\n applyClubDiscount,\n currency: userCurrency,\n ...others,\n accessClubToken: authorization,\n lang: language,\n rooms,\n offersAppliedBySelectedRoom,\n totalPrice: price,\n }).filter(([, value]) => value !== undefined);\n\n const response = await request({\n hostname: process.env.SERVICE_BOOKING,\n endpoint: `/request_extras_v2.json?${new URLSearchParams(params)}`,\n //TODO: back have to change the endpoint for don`t have remove this headers\n headers: { 'Content-Type': undefined, 'X-Requested-With': undefined },\n }).catch((error) => {\n reject(error);\n });\n\n if (!response || response.result === 'EXCEPTION') return reject({ error: 'Upss, something bad happened!' }); //TODO\n\n const { extras = {}, sortedExtrasIds = [] } = response;\n const currency = userCurrency || hotelCurrency;\n if (userCurrency !== hotelCurrency) await ServiceCurrency.exchange(currency);\n\n resolve({\n extras: sortedExtrasIds\n .filter((id) => {\n const { draft, includedInOffer } = extras[id] || {};\n\n return !draft || !includedInOffer;\n })\n .map((id) => {\n const {\n ageCategory: guestType,\n conditionDetails: conditions,\n defaultQuantity: amount,\n description: text,\n includedInOffer: included,\n guestsPresent: guestThreshold,\n name: title,\n nights,\n occupationsPresent: accommodationThreshold,\n perGuest,\n perNight,\n perRange,\n perReserve,\n perRoom,\n photo: image,\n priceOptionValues: priceOptions,\n showApplyNights: inputNights,\n showApplyPersons: inputGuests,\n taxesInformation: taxes,\n } = extras[id] || {};\n\n const { discounts: [discount] = [], value: { price: basePrice, withTaxes: price } = {} } =\n priceOptions.find(({ option }) => option === amount) || priceOptions[0];\n const type = perRoom ? ROOM : perRange ? RANGE : perReserve ? UNIT : perGuest ? GUEST : undefined;\n const { percent, value: { price: originalPrice } = {} } = discount || {};\n\n const getValue = (base = false) =>\n Object.fromEntries(\n Array.from({ length: amount }, (_, indexAmount) => [\n indexAmount + 1,\n Object.fromEntries(\n Array.from({ length: nights }, (_, indexNights) => {\n const amount = indexAmount + 1;\n const nights = indexNights + 1;\n const { value: { price, withTaxes, withoutTaxes: basePrice } = {} } =\n priceOptions.find(({ option }) => option === amount) || priceOptions[0];\n const taxes = withTaxes - basePrice;\n\n const getAmount = (value) =>\n getPrice({\n currency,\n hotelCurrency: base ? currency : hotelCurrency,\n normalize: false,\n price: type !== RANGE ? (perNight ? amount * nights * value : amount * value) : value,\n });\n\n return [\n nights,\n { basePrice: getAmount(basePrice), price: getAmount(price), taxes: getAmount(taxes) },\n ];\n }),\n ),\n ]),\n );\n\n return {\n accommodationThreshold,\n amount,\n baseValue: getValue(true),\n conditions: conditions ? conditions : undefined,\n discount: discount && { originalPrice, percent },\n frequency: perNight ? FREQUENCY.NIGHTLY : FREQUENCY.ONCE,\n id,\n image,\n included,\n inputGuests,\n inputNights,\n guestThreshold,\n nights,\n priceType: PRICE_TYPE[guestType],\n taxes: price !== basePrice ? taxes : undefined,\n text: text ? text : undefined,\n title,\n type,\n value: getValue(),\n };\n }),\n });\n });\n"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAEA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AALA;;AAOA,MAAM;EAAEI,KAAK;EAAEC,IAAI;EAAEC,KAAK;EAAEC;AAAK,CAAC,GAAGC,qBAAU;AAExC,MAAMC,MAAM,GAAG,SAAAA,CAAA;EAAA,IAAC;IACrBC,YAAY,EAAEC,iBAAiB;IAC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AI,EAAEA,IAAI,GAAGA,IAAI,GAAG1C,SAAS;UAC7B+C,KAAK;UACL0B,IAAI;UACJ3D,KAAK,EAAE8D,QAAQ,CAAC;QAClB,CAAC;MACH,CAAC;IACL,CAAC,CAAC;EACJ,CAAC,CAAC;AAAA;AAACoB,OAAA,CAAA/G,MAAA,GAAAA,MAAA"}
|
|
1
|
+
{"version":3,"file":"extras.js","names":["_dataSources","require","_services","_constants","_helpers","RANGE","ROOM","GUEST","UNIT","EXTRA_TYPE","extras","clubDiscount","applyClubDiscount","currency","userCurrency","hotelCurrency","locale","offersAppliedBySelectedRoom","price","rooms","session","authorization","others","arguments","length","undefined","Promise","resolve","reject","language","split","params","Object","entries","accessClubToken","lang","totalPrice","filter","_ref","value","response","request","hostname","process","env","SERVICE_BOOKING","endpoint","concat","URLSearchParams","headers","catch","error","result","sortedExtrasIds","ServiceCurrency","exchange","id","draft","includedInOffer","map","ageCategory","guestType","conditionDetails","conditions","defaultQuantity","amount","description","text","included","guestsPresent","guestThreshold","name","title","nights","occupationsPresent","accommodationThreshold","perGuest","perNight","perRange","perReserve","perRoom","photo","image","priceOptionValues","priceOptions","showApplyNights","inputNights","showApplyPersons","inputGuests","taxesInformation","taxes","discounts","discount","basePrice","withTaxes","find","_ref2","option","type","percent","originalPrice","getValue","base","fromEntries","Array","from","_","indexAmount","indexNights","withoutTaxes","_ref3","getAmount","getPrice","normalize","baseValue","frequency","FREQUENCY","NIGHTLY","ONCE","priceType","PRICE_TYPE","exports"],"sources":["../../../src/services/Rates/extras.js"],"sourcesContent":["/* eslint-disable no-async-promise-executor */\nimport { request } from '@mirai/data-sources';\nimport { ServiceCurrency } from '@mirai/services';\n\nimport { EXTRA_TYPE, FREQUENCY, PRICE_TYPE } from './constants';\nimport { getPrice } from './helpers';\n\nconst { RANGE, ROOM, GUEST, UNIT } = EXTRA_TYPE;\n\nexport const extras = ({\n clubDiscount: applyClubDiscount,\n currency: userCurrency,\n hotelCurrency = userCurrency,\n locale,\n offersAppliedBySelectedRoom,\n price,\n rooms,\n session: { authorization } = {},\n ...others\n} = {}) =>\n new Promise(async (resolve, reject) => {\n if (!userCurrency || !locale) return reject();\n\n const language = locale?.split('-')[0];\n const params = Object.entries({\n applyClubDiscount,\n currency: userCurrency,\n ...others,\n accessClubToken: authorization,\n lang: language,\n rooms,\n offersAppliedBySelectedRoom,\n totalPrice: price,\n }).filter(([, value]) => value !== undefined);\n\n const response = await request({\n hostname: process.env.SERVICE_BOOKING,\n endpoint: `/request_extras_v2.json?${new URLSearchParams(params)}`,\n //TODO: back have to change the endpoint for don`t have remove this headers\n headers: { 'Content-Type': undefined, 'X-Requested-With': undefined },\n }).catch((error) => {\n reject(error);\n });\n\n if (!response || response.result === 'EXCEPTION') return reject({ error: 'Upss, something bad happened!' }); //TODO\n\n const { extras = {}, sortedExtrasIds = [] } = response;\n const currency = userCurrency || hotelCurrency;\n if (userCurrency !== hotelCurrency) await ServiceCurrency.exchange(currency);\n\n resolve({\n extras: sortedExtrasIds\n .filter((id) => {\n const { draft, includedInOffer } = extras[id] || {};\n\n return includedInOffer || !draft;\n })\n .map((id) => {\n const {\n ageCategory: guestType,\n conditionDetails: conditions,\n defaultQuantity: amount,\n description: text,\n includedInOffer: included,\n guestsPresent: guestThreshold,\n name: title,\n nights,\n occupationsPresent: accommodationThreshold,\n perGuest,\n perNight,\n perRange,\n perReserve,\n perRoom,\n photo: image,\n priceOptionValues: priceOptions,\n showApplyNights: inputNights,\n showApplyPersons: inputGuests,\n taxesInformation: taxes,\n } = extras[id] || {};\n\n const { discounts: [discount] = [], value: { price: basePrice, withTaxes: price } = {} } =\n priceOptions.find(({ option }) => option === amount) || priceOptions[0];\n const type = perRoom ? ROOM : perRange ? RANGE : perReserve ? UNIT : perGuest ? GUEST : undefined;\n const { percent, value: { price: originalPrice } = {} } = discount || {};\n\n const getValue = (base = false) =>\n Object.fromEntries(\n Array.from({ length: amount }, (_, indexAmount) => [\n indexAmount + 1,\n Object.fromEntries(\n Array.from({ length: nights }, (_, indexNights) => {\n const amount = indexAmount + 1;\n const nights = indexNights + 1;\n const { value: { price, withTaxes, withoutTaxes: basePrice } = {} } =\n priceOptions.find(({ option }) => option === amount) || priceOptions[0];\n const taxes = withTaxes - basePrice;\n\n const getAmount = (value) =>\n getPrice({\n currency,\n hotelCurrency: base ? currency : hotelCurrency,\n normalize: false,\n price: type !== RANGE ? (perNight ? amount * nights * value : amount * value) : value,\n });\n\n return [\n nights,\n { basePrice: getAmount(basePrice), price: getAmount(price), taxes: getAmount(taxes) },\n ];\n }),\n ),\n ]),\n );\n\n return {\n accommodationThreshold,\n amount,\n baseValue: getValue(true),\n conditions: conditions ? conditions : undefined,\n discount: discount && { originalPrice, percent },\n frequency: perNight ? FREQUENCY.NIGHTLY : FREQUENCY.ONCE,\n id,\n image,\n included,\n inputGuests,\n inputNights,\n guestThreshold,\n nights,\n priceType: PRICE_TYPE[guestType],\n taxes: price !== basePrice ? taxes : undefined,\n text: text ? text : undefined,\n title,\n type,\n value: getValue(),\n };\n }),\n });\n });\n"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAEA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AALA;;AAOA,MAAM;EAAEI,KAAK;EAAEC,IAAI;EAAEC,KAAK;EAAEC;AAAK,CAAC,GAAGC,qBAAU;AAExC,MAAMC,MAAM,GAAG,SAAAA,CAAA;EAAA,IAAC;IACrBC,YAAY,EAAEC,iBAAiB;IAC/BC,QAAQ,EAAEC,YAAY;IACtBC,aAAa,GAAGD,YAAY;IAC5BE,MAAM;IACNC,2BAA2B;IAC3BC,KAAK;IACLC,KAAK;IACLC,OAAO,EAAE;MAAEC;IAAc,CAAC,GAAG,CAAC,CAAC;IAC/B,GAAGC;EACL,CAAC,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC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seAmenities","require","_parseBoards","_constants","DOUBLE","SINGLE","BED_TYPE","getItems","currency","currencyCode","hotelCurrency","measureUnit","unit","roomTypes","showLocalTaxes","fees","vatIncluded","taxes","arguments","length","undefined","Object","values","map","amountAvailable","availability","name","newInfoRoom","info","occupationOptions","description","roomTypeInfo","bedDistributions","bedType","galleryMedia","url3D","
|
|
1
|
+
{"version":3,"file":"getItems.js","names":["_parseAmenities","require","_parseBoards","_constants","DOUBLE","SINGLE","BED_TYPE","getItems","currency","currencyCode","hotelCurrency","measureUnit","unit","roomTypes","showLocalTaxes","fees","vatIncluded","taxes","arguments","length","undefined","Object","values","map","amountAvailable","availability","name","newInfoRoom","info","occupationOptions","description","roomTypeInfo","bedDistributions","bedType","galleryMedia","url3D","urlVideo","photos","roomSize","size","occupationQuantities","numFirstRangeChildren","minRange","numSecondRangeChildren","maxRange","numAdults","adults","numBabies","babies","totalChildren","children","posibilities","nights","nightsDeal","rates","maxOccupation","amenities","parseAmenities","bedDisposition","type","BED_DISPOSITION","bedTypes","reduce","result","next","forEach","amount","includes","parseBoards","images","photoAltDescription","alt","urlLarge","large","urlMediumRect","thumbnail","media","occupation","ages","filter","item","concat","UNIT","exports"],"sources":["../../../../src/services/Rates/helpers/getItems.js"],"sourcesContent":["import { parseAmenities } from './parseAmenities';\nimport { parseBoards } from './parseBoards';\nimport { BED_DISPOSITION, BED_TYPE, UNIT } from '../constants';\n\nconst { DOUBLE, SINGLE } = BED_TYPE;\n\nexport const getItems = ({\n currency,\n currencyCode: hotelCurrency,\n measureUnit: unit,\n roomTypes,\n showLocalTaxes: fees,\n vatIncluded: taxes,\n} = {}) =>\n Object.values(roomTypes).map(\n ({ amountAvailable: availability, name, newInfoRoom: info = {}, occupationOptions = {} } = {}) => {\n const {\n description,\n roomTypeInfo: {\n bedDistributions: bedType = [],\n galleryMedia: { url3D, urlVideo } = {},\n photos,\n roomSize: size,\n } = {},\n } = info;\n\n const {\n occupationQuantities: {\n numFirstRangeChildren: minRange = 0,\n numSecondRangeChildren: maxRange = 0,\n numAdults: adults = 0,\n numBabies: babies = 0,\n totalChildren: children = 0,\n } = {},\n posibilities: [{ nights: nightsDeal } = {}] = [],\n rates,\n } = Object.values(occupationOptions)[0] || {};\n\n const maxOccupation = adults + children;\n\n return {\n amenities: parseAmenities(info),\n availability,\n bedDisposition: bedType.map((type) => BED_DISPOSITION[type]),\n bedTypes: bedType.reduce((result, next) => {\n BED_DISPOSITION[next].forEach(({ amount, type } = {}) => {\n if ([DOUBLE, SINGLE].includes(type) && amount > 0) result[result.length ? 1 : 0] = type;\n });\n\n return result;\n }, []),\n ...parseBoards({ currency, fees, hotelCurrency, rates, taxes }),\n description,\n images: photos?.map(({ photoAltDescription: alt, urlLarge: large, urlMediumRect: thumbnail } = {}) => ({\n alt,\n large,\n thumbnail,\n })),\n name,\n nightsDeal,\n maxOccupation,\n media: url3D || urlVideo ? { url3D, urlVideo } : undefined,\n occupation: maxOccupation\n ? [\n adults > 0 ? { type: 2, amount: adults } : undefined,\n children > 0 ? { type: 3, ages: [minRange, maxRange], amount: children } : undefined,\n babies > 0 ? { type: 4, amount: babies } : undefined,\n ].filter((item) => !!item)\n : [],\n size: size ? `${size} ${UNIT[unit].size}` : undefined,\n };\n },\n );\n"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEA,MAAM;EAAEG,MAAM;EAAEC;AAAO,CAAC,GAAGC,mBAAQ;AAE5B,MAAMC,QAAQ,GAAG,SAAAA,CAAA;EAAA,IAAC;IACvBC,QAAQ;IACRC,YAAY,EAAEC,aAAa;IAC3BC,WAAW,EAAEC,IAAI;IACjBC,SAAS;IACTC,cAAc,EAAEC,IAAI;IACpBC,WAAW,EAAEC;EACf,CAAC,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAAA,OACJG,MA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GAAG,CAAC,GAAG;QAAES,IAAI,EAAE,CAAC;QAAEmB,IAAI,EAAE,CAACpC,QAAQ,EAAEE,QAAQ,CAAC;QAAEsB,MAAM,EAAEhB;MAAS,CAAC,GAAG9B,SAAS,EACpF4B,MAAM,GAAG,CAAC,GAAG;QAAEW,IAAI,EAAE,CAAC;QAAEO,MAAM,EAAElB;MAAO,CAAC,GAAG5B,SAAS,CACrD,CAAC2D,MAAM,CAAEC,IAAI,IAAK,CAAC,CAACA,IAAI,CAAC,GAC1B,EAAE;MACNzC,IAAI,EAAEA,IAAI,MAAA0C,MAAA,CAAM1C,IAAI,OAAA0C,MAAA,CAAIC,eAAI,CAACtE,IAAI,CAAC,CAAC2B,IAAI,IAAKnB;IAC9C,CAAC;EACH,CACF,CAAC;AAAA;AAAC+D,OAAA,CAAA5E,QAAA,GAAAA,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseBoards.js","names":["_getIncrements","require","_getPrice","_normalizePrice","_parseDiscount","VARIABLE_OFFER","parseBoards","_ref","currency","fees","hotelCurrency","rates","baseRates","taxes","cancellations","boards","Object","values","forEach","cancellationPolicyDeadline","cancelCaption","cancellationPolicyName","cancelName","cancellationPolicyText","cancelText","cancellationPolicyTooltip","cancelTitle","cancellationPolicyTypeEnum","cancelId","id","rateId","includedList","included","isClub","name","offer","paymentText","paymentConditions","pendingSecondsValid","countdown","rateWarnings","warnings","boardOptions","arguments","length","undefined","restrictions","entries","map","key","value","isVariableOffer","cancellation","find","concat","caption","title","text","push","discountPercentage","discountPricesBefore","offerDiscountPercentInCents","parseInt","filter","now","Date","cancellationId","setSeconds","getSeconds","Set","flat","_ref2","boardGroupName","detail","discounts","offersApplied","deals","originalAvgPrice","totalBasePrice","totalLocalTaxes","localTaxes","totalPriceOriginal","totalPriceWithTaxes","totalPrice","withTaxesAvgPrice","clientCodeDiscountPercentInCents","promoCodeValue","clientCodeTotal","promoCode","clubDiscountPercentInCents","clubValue","clubTotal","club","dealValue","offerTotal","deal","price","basePrice","withoutTaxes","originalPrice","Math","max","withTaxes","original","slice","getPrice","checkoutPrice","normalizePrice","dayPrice","discount","parseDiscount","offerDates","offerDay","_ref3","dayStandardFormat","date","variants","boardTranslation","detailName","getIncrements","exports"],"sources":["../../../../src/services/Rates/helpers/parseBoards.js"],"sourcesContent":["import { getIncrements } from './getIncrements';\nimport { getPrice } from './getPrice';\nimport { normalizePrice } from './normalizePrice';\nimport { parseDiscount } from './parseDiscount';\n\nconst VARIABLE_OFFER = 'OFFER_WARNING_ONLY_X_NIGHTS';\n\nexport const parseBoards = ({ currency, fees, hotelCurrency, rates: baseRates = {}, taxes }) => {\n const cancellations = [];\n const rates = [];\n const boards = [];\n\n Object.values(baseRates).forEach(\n ({\n // 1. cancellations\n cancellationPolicyDeadline: cancelCaption,\n cancellationPolicyName: cancelName,\n cancellationPolicyText: cancelText,\n cancellationPolicyTooltip: cancelTitle,\n cancellationPolicyTypeEnum: cancelId,\n // 2. rates\n id: rateId,\n includedList: included,\n isClub,\n name,\n offer = false,\n paymentText: paymentConditions,\n pendingSecondsValid: countdown,\n rateWarnings: warnings,\n // 3. boards\n boardOptions = {},\n } = {}) => {\n const restrictions = Object.entries(warnings).map(([key, value] = []) => ({\n isVariableOffer: key === VARIABLE_OFFER,\n value,\n }));\n // 1. get cancellations\n let cancellation = cancellations.find(({ id } = {}) => id === `${cancelId}-${cancelTitle}`);\n\n if (!cancellation) {\n cancellation = {\n caption: cancelCaption,\n id: `${cancelId}-${cancelTitle}`,\n name: cancelName,\n title: cancelTitle,\n text: cancelText,\n };\n cancellations.push(cancellation);\n }\n\n // 2. get rates\n const [discountPercentage] = Object.values(boardOptions)\n .map(({ discountPricesBefore: { offerDiscountPercentInCents: value = 0 } = {} } = {}) =>\n value !== null ? parseInt(value / 100) : undefined,\n )\n .filter((value) => value > 0);\n const now = new Date();\n\n rates.push({\n id: rateId,\n cancellationId: cancellation.id,\n countdown: countdown !== null ? now.setSeconds(now.getSeconds() + countdown) : undefined,\n discountPercentage,\n included: [...new Set(Object.values(included).flat())],\n isClub,\n name,\n offer,\n restrictions,\n });\n\n // 3. get boards\n Object.values(boardOptions).forEach(\n ({\n boardGroupName: name,\n detail,\n discountPricesBefore: discounts = {},\n id,\n offersApplied: deals,\n originalAvgPrice,\n totalBasePrice,\n totalLocalTaxes: localTaxes,\n totalPriceOriginal,\n totalPriceWithTaxes: totalPrice,\n withTaxesAvgPrice,\n }) => {\n const {\n clientCodeDiscountPercentInCents: promoCodeValue,\n clientCodeTotal: promoCode,\n clubDiscountPercentInCents: clubValue,\n clubTotal: club,\n offerDiscountPercentInCents: dealValue,\n offerTotal: deal,\n } = discounts;\n const price = taxes && fees ? totalPrice : totalPriceOriginal;\n const basePrice =\n totalBasePrice +\n (deal && dealValue ? deal.withoutTaxes * (dealValue / 10000) : 0) +\n (club && clubValue ? club.withoutTaxes * (clubValue / 10000) : 0) +\n (promoCode && promoCodeValue ? promoCode.withoutTaxes * (promoCodeValue / 10000) : 0);\n const originalPrice =\n (taxes\n ? Math.max(deal?.withTaxes || 0, club?.withTaxes || 0, promoCode?.withTaxes || 0)\n : Math.max(deal?.original || 0, club?.original || 0, promoCode?.original || 0)) || price;\n\n boards.push({\n cancellationId: cancellation.id,\n rateId,\n // rate info\n included: [...new Set(Object.values(included).flat())].slice(0, 3),\n paymentConditions,\n restrictions,\n // board info\n basePrice: getPrice({ currency, hotelCurrency, price: basePrice }),\n checkoutPrice: normalizePrice(totalPriceOriginal, currency),\n dayPrice: getPrice({ currency, hotelCurrency, price: taxes ? withTaxesAvgPrice : originalAvgPrice }),\n deals,\n discount: parseDiscount({ currency, hotelCurrency, ...discounts, originalPrice, totalPrice: price }),\n id,\n fees: getPrice({ currency, hotelCurrency, price: localTaxes }),\n name,\n offerDates: detail.filter(({ offerDay } = {}) => offerDay).map(({ dayStandardFormat: date }) => date),\n originalPrice: getPrice({ currency, hotelCurrency, price: originalPrice }),\n price: getPrice({ currency, hotelCurrency, price }),\n taxes: getPrice({\n currency,\n hotelCurrency,\n price: totalPrice - totalBasePrice - (fees ? localTaxes : 0),\n }),\n variants: detail\n .map(({ boardTranslation: name, dayStandardFormat: value } = {}) => ({ name, value }))\n .filter(({ name: detailName } = {}) => detailName !== name),\n });\n },\n );\n },\n );\n\n return { ...getIncrements({ cancellations, rates, boards }) };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAEA,MAAMI,cAAc,GAAG,6BAA6B;AAE7C,MAAMC,WAAW,GAAGC,IAAA,IAAqE;EAAA,IAApE;IAAEC,QAAQ;IAAEC,IAAI;IAAEC,aAAa;IAAEC,KAAK,EAAEC,SAAS,GAAG,CAAC,CAAC;IAAEC;EAAM,CAAC,GAAAN,IAAA;EACzF,MAAMO,aAAa,GAAG,EAAE;EACxB,MAAMH,KAAK,GAAG,EAAE;EAChB,MAAMI,MAAM,GAAG,EAAE;EAEjBC,MAAM,CAACC,MAAM,CAACL,SAAS,CAAC,CAACM,OAAO,CAC9B,YAkBW;IAAA,IAlBV;MACC;MACAC,0BAA0B,EAAEC,aAAa;MACzCC,sBAAsB,EAAEC,UAAU;MAClCC,sBAAsB,EAAEC,UAAU;MAClCC,yBAAyB,EAAEC,WAAW;MACtCC,0BAA0B,EAAEC,QAAQ;MACpC;MACAC,EAAE,EAAEC,MAAM;MACVC,YAAY,EAAEC,QAAQ;MACtBC,MAAM;MACNC,IAAI;MACJC,KAAK,GAAG,KAAK;MACbC,WAAW,EAAEC,iBAAiB;MAC9BC,mBAAmB,EAAEC,SAAS;MAC9BC,YAAY,EAAEC,QAAQ;MACtB;MACAC,YAAY,GAAG,CAAC;IAClB,CAAC,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;IACJ,MAAMG,YAAY,G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7D,CAAC,CAAC;QACFoC,QAAQ,EAAE3C,MAAM,CACbzB,GAAG,CAAC;UAAA,IAAC;YAAEqE,gBAAgB,EAAEnF,IAAI;YAAEgF,iBAAiB,EAAEhE;UAAM,CAAC,GAAAP,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;UAAA,OAAM;YAAET,IAAI;YAAEgB;UAAM,CAAC;QAAA,CAAC,CAAC,CACrFa,MAAM,CAAC;UAAA,IAAC;YAAE7B,IAAI,EAAEoF;UAAW,CAAC,GAAA3E,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;UAAA,OAAK2E,UAAU,KAAKpF,IAAI;QAAA;MAC9D,CAAC,CAAC;IACJ,CACF,CAAC;EACH,CACF,CAAC;EAED,OAAO;IAAE,GAAG,IAAAqF,4BAAa,EAAC;MAAEzG,aAAa;MAAEH,KAAK;MAAEI;IAAO,CAAC;EAAE,CAAC;AAC/D,CAAC;AAACyG,OAAA,CAAAlH,WAAA,GAAAA,WAAA"}
|
|
1
|
+
{"version":3,"file":"parseBoards.js","names":["_getIncrements","require","_getPrice","_normalizePrice","_parseDiscount","VARIABLE_OFFER","parseBoards","_ref","currency","fees","hotelCurrency","rates","baseRates","taxes","cancellations","boards","Object","values","forEach","cancellationPolicyDeadline","cancelCaption","cancellationPolicyName","cancelName","cancellationPolicyText","cancelText","cancellationPolicyTooltip","cancelTitle","cancellationPolicyTypeEnum","cancelId","id","rateId","includedList","included","isClub","name","offer","paymentText","paymentConditions","pendingSecondsValid","countdown","rateWarnings","warnings","boardOptions","arguments","length","undefined","restrictions","entries","map","key","value","isVariableOffer","cancellation","find","concat","caption","title","text","push","discountPercentage","discountPricesBefore","offerDiscountPercentInCents","parseInt","filter","now","Date","cancellationId","setSeconds","getSeconds","Set","flat","_ref2","boardGroupName","detail","discounts","offersApplied","deals","originalAvgPrice","totalBasePrice","totalLocalTaxes","localTaxes","totalPriceOriginal","totalPriceWithTaxes","totalPrice","withTaxesAvgPrice","clientCodeDiscountPercentInCents","promoCodeValue","clientCodeTotal","promoCode","clubDiscountPercentInCents","clubValue","clubTotal","club","dealValue","offerTotal","deal","price","basePrice","withoutTaxes","originalPrice","Math","max","withTaxes","original","slice","getPrice","checkoutPrice","normalizePrice","dayPrice","discount","parseDiscount","offerDates","offerDay","_ref3","dayStandardFormat","date","variants","boardTranslation","detailName","getIncrements","exports"],"sources":["../../../../src/services/Rates/helpers/parseBoards.js"],"sourcesContent":["import { getIncrements } from './getIncrements';\nimport { getPrice } from './getPrice';\nimport { normalizePrice } from './normalizePrice';\nimport { parseDiscount } from './parseDiscount';\n\nconst VARIABLE_OFFER = 'OFFER_WARNING_ONLY_X_NIGHTS';\n\nexport const parseBoards = ({ currency, fees, hotelCurrency, rates: baseRates = {}, taxes }) => {\n const cancellations = [];\n const rates = [];\n const boards = [];\n\n Object.values(baseRates).forEach(\n ({\n // 1. cancellations\n cancellationPolicyDeadline: cancelCaption,\n cancellationPolicyName: cancelName,\n cancellationPolicyText: cancelText,\n cancellationPolicyTooltip: cancelTitle,\n cancellationPolicyTypeEnum: cancelId,\n // 2. rates\n id: rateId,\n includedList: included,\n isClub,\n name,\n offer = false,\n paymentText: paymentConditions,\n pendingSecondsValid: countdown,\n rateWarnings: warnings,\n // 3. boards\n boardOptions = {},\n } = {}) => {\n const restrictions = Object.entries(warnings).map(([key, value] = []) => ({\n isVariableOffer: key === VARIABLE_OFFER,\n value,\n }));\n // 1. get cancellations\n let cancellation = cancellations.find(({ id } = {}) => id === `${cancelId}-${cancelTitle}`);\n\n if (!cancellation) {\n cancellation = {\n caption: cancelCaption,\n id: `${cancelId}-${cancelTitle}`,\n name: cancelName,\n paymentConditions,\n title: cancelTitle,\n text: cancelText,\n };\n cancellations.push(cancellation);\n }\n\n // 2. get rates\n const [discountPercentage] = Object.values(boardOptions)\n .map(({ discountPricesBefore: { offerDiscountPercentInCents: value = 0 } = {} } = {}) =>\n value !== null ? parseInt(value / 100) : undefined,\n )\n .filter((value) => value > 0);\n const now = new Date();\n\n rates.push({\n id: rateId,\n cancellationId: cancellation.id,\n countdown: countdown !== null ? now.setSeconds(now.getSeconds() + countdown) : undefined,\n discountPercentage,\n included: [...new Set(Object.values(included).flat())],\n isClub,\n name,\n offer,\n restrictions,\n });\n\n // 3. get boards\n Object.values(boardOptions).forEach(\n ({\n boardGroupName: name,\n detail,\n discountPricesBefore: discounts = {},\n id,\n offersApplied: deals,\n originalAvgPrice,\n totalBasePrice,\n totalLocalTaxes: localTaxes,\n totalPriceOriginal,\n totalPriceWithTaxes: totalPrice,\n withTaxesAvgPrice,\n }) => {\n const {\n clientCodeDiscountPercentInCents: promoCodeValue,\n clientCodeTotal: promoCode,\n clubDiscountPercentInCents: clubValue,\n clubTotal: club,\n offerDiscountPercentInCents: dealValue,\n offerTotal: deal,\n } = discounts;\n const price = taxes && fees ? totalPrice : totalPriceOriginal;\n const basePrice =\n totalBasePrice +\n (deal && dealValue ? deal.withoutTaxes * (dealValue / 10000) : 0) +\n (club && clubValue ? club.withoutTaxes * (clubValue / 10000) : 0) +\n (promoCode && promoCodeValue ? promoCode.withoutTaxes * (promoCodeValue / 10000) : 0);\n const originalPrice =\n (taxes\n ? Math.max(deal?.withTaxes || 0, club?.withTaxes || 0, promoCode?.withTaxes || 0)\n : Math.max(deal?.original || 0, club?.original || 0, promoCode?.original || 0)) || price;\n\n boards.push({\n cancellationId: cancellation.id,\n rateId,\n // rate info\n included: [...new Set(Object.values(included).flat())].slice(0, 3),\n paymentConditions,\n restrictions,\n // board info\n basePrice: getPrice({ currency, hotelCurrency, price: basePrice }),\n checkoutPrice: normalizePrice(totalPriceOriginal, currency),\n dayPrice: getPrice({ currency, hotelCurrency, price: taxes ? withTaxesAvgPrice : originalAvgPrice }),\n deals,\n discount: parseDiscount({ currency, hotelCurrency, ...discounts, originalPrice, totalPrice: price }),\n id,\n fees: getPrice({ currency, hotelCurrency, price: localTaxes }),\n name,\n offerDates: detail.filter(({ offerDay } = {}) => offerDay).map(({ dayStandardFormat: date }) => date),\n originalPrice: getPrice({ currency, hotelCurrency, price: originalPrice }),\n price: getPrice({ currency, hotelCurrency, price }),\n taxes: getPrice({\n currency,\n hotelCurrency,\n price: totalPrice - totalBasePrice - (fees ? localTaxes : 0),\n }),\n variants: detail\n .map(({ boardTranslation: name, dayStandardFormat: value } = {}) => ({ name, value }))\n .filter(({ name: detailName } = {}) => detailName !== name),\n });\n },\n );\n },\n );\n\n return { ...getIncrements({ cancellations, rates, boards }) };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAEA,MAAMI,cAAc,GAAG,6BAA6B;AAE7C,MAAMC,WAAW,GAAGC,IAAA,IAAqE;EAAA,IAApE;IAAEC,QAAQ;IAAEC,IAAI;IAAEC,aAAa;IAAEC,KAAK,EAAEC,SAAS,GAAG,CAAC,CAAC;IAAEC;EAAM,CAAC,GAAAN,IAAA;EACzF,MAAMO,aAAa,GAAG,EAAE;EACxB,MAAMH,KAAK,GAAG,EAAE;EAChB,MAAMI,MAAM,GAAG,EAAE;EAEjBC,MAAM,CAACC,MAAM,CAACL,SAAS,CAAC,CAACM,OAAO,CAC9B,YAkBW;IAAA,IAlBV;MACC;MACAC,0BAA0B,EAAEC,aAAa;MACzCC,sBAAsB,EAAEC,UAAU;MAClCC,sBAAsB,EAAEC,UAAU;MAClCC,yBAAyB,EAAEC,WAAW;MACtCC,0BAA0B,EAAEC,QAAQ;MACpC;MACAC,EAAE,EAAEC,MAAM;MACVC,YAAY,EAAEC,QAAQ;MACtBC,MAAM;MACNC,IAAI;MACJC,KAAK,GAAG,KAAK;MACbC,WAAW,EAAEC,iBAAiB;MAC9BC,mBAAmB,EAAEC,SAAS;MAC9BC,YAAY,EAAEC,QA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,CAAC,CAAC;QACnDnF,KAAK,EAAE,IAAA4F,kBAAQ,EAAC;UACdjG,QAAQ;UACRE,aAAa;UACbsF,KAAK,EAAEb,UAAU,GAAGL,cAAc,IAAIrE,IAAI,GAAGuE,UAAU,GAAG,CAAC;QAC7D,CAAC,CAAC;QACFoC,QAAQ,EAAE3C,MAAM,CACbzB,GAAG,CAAC;UAAA,IAAC;YAAEqE,gBAAgB,EAAEnF,IAAI;YAAEgF,iBAAiB,EAAEhE;UAAM,CAAC,GAAAP,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;UAAA,OAAM;YAAET,IAAI;YAAEgB;UAAM,CAAC;QAAA,CAAC,CAAC,CACrFa,MAAM,CAAC;UAAA,IAAC;YAAE7B,IAAI,EAAEoF;UAAW,CAAC,GAAA3E,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;UAAA,OAAK2E,UAAU,KAAKpF,IAAI;QAAA;MAC9D,CAAC,CAAC;IACJ,CACF,CAAC;EACH,CACF,CAAC;EAED,OAAO;IAAE,GAAG,IAAAqF,4BAAa,EAAC;MAAEzG,aAAa;MAAEH,KAAK;MAAEI;IAAO,CAAC;EAAE,CAAC;AAC/D,CAAC;AAACyG,OAAA,CAAAlH,WAAA,GAAAA,WAAA"}
|
package/build/services/index.js
CHANGED
|
@@ -25,6 +25,17 @@ Object.keys(_Engine).forEach(function (key) {
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
|
+
var _Lisa = require("./Lisa");
|
|
29
|
+
Object.keys(_Lisa).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _Lisa[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _Lisa[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
28
39
|
var _Rates = require("./Rates");
|
|
29
40
|
Object.keys(_Rates).forEach(function (key) {
|
|
30
41
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_Club","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_Engine","_Rates"],"sources":["../../src/services/index.js"],"sourcesContent":["export * from './Club';\nexport * from './Engine';\nexport * from './Rates';\n"],"mappings":";;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,KAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,KAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,KAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,OAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,OAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,OAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,OAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,
|
|
1
|
+
{"version":3,"file":"index.js","names":["_Club","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_Engine","_Lisa","_Rates"],"sources":["../../src/services/index.js"],"sourcesContent":["export * from './Club';\nexport * from './Engine';\nexport * from './Lisa';\nexport * from './Rates';\n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,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,MAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,MAAA,CAAAP,GAAA;IAAA;EAAA;AAAA"}
|
package/package.json
CHANGED
package/public/App.Container.jsx
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Booking.Others.js","names":["_dataSources","require","_locale","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_parseHtml","_Booking","style","_components","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","_extends","assign","bind","target","arguments","length","source","key","apply","Others","_ref","dataSource","cancelationPolicy","otherConditions","paymentsConditions","hotel","privacyPolicy","small","tracking","others","translate","useLocale","track","useMetrics","modal","setModal","useState","fieldProps","inline","createElement","Fragment","View","id","className","styles","group","Field","label","L10N","LABEL_PAYMENT_TERMS","value","parseHtml","LABEL_CANCELLATION_POLICY","summary","detail","Action","underline","onPress","noPrint","ACTION_MORE_INFO","LABEL_PRIVACY_POLICY","LABEL_PRIVACY_POLICY_DESCRIPTION","link","href","concat","linkPrivacy","LABEL_OTHERS_TERMS","Modal","title","visible","onClose","Text","exports","displayName","propTypes","PropTypes","shape","string","details","payment","bool"],"sources":["../../../../src/components/Booking/partials/Booking.Others.jsx"],"sourcesContent":["import { useMetrics } from '@mirai/data-sources';\nimport { useLocale } from '@mirai/locale';\nimport { Action, Modal, styles, Text, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useState } from 'react';\n\nimport { parseHtml } from '../../helpers/parseHtml';\nimport { L10N } from '../Booking.l10n';\nimport * as style from '../Booking.module.css';\nimport { Field } from '../components';\n\nconst Others = ({\n dataSource: { cancelationPolicy, otherConditions, paymentsConditions, hotel: { privacyPolicy } = {} } = {},\n small,\n tracking,\n ...others\n}) => {\n const { translate } = useLocale();\n const { track } = useMetrics();\n\n const [modal, setModal] = useState(false);\n\n const fieldProps = { inline: false, small };\n\n return (\n <>\n <View {...others} id=\"terms\" className={styles(style.group, style.others, others.className)}>\n {paymentsConditions && (\n <Field\n {...fieldProps}\n label={translate(L10N.LABEL_PAYMENT_TERMS)}\n value={parseHtml(paymentsConditions, { small })}\n />\n )}\n\n {cancelationPolicy && (\n <Field {...fieldProps} label={translate(L10N.LABEL_CANCELLATION_POLICY)} value={cancelationPolicy.summary}>\n {cancelationPolicy?.detail && (\n <Action inline small={small} underline onPress={() => setModal(true)} className={style.noPrint}>\n {translate(L10N.ACTION_MORE_INFO)}\n </Action>\n )}\n </Field>\n )}\n\n {privacyPolicy && (\n <Field\n {...fieldProps}\n label={translate(L10N.LABEL_PRIVACY_POLICY)}\n value={translate(L10N.LABEL_PRIVACY_POLICY_DESCRIPTION, {\n link: (\n <Action\n href={privacyPolicy}\n inline\n target=\"_blank\"\n small={small}\n underline\n onPress={() => track(`${tracking}:ACTION:PRIVACY_MORE_INFO`)}\n className={styles(style.linkPrivacy, style.noPrint)}\n >\n {translate(L10N.ACTION_MORE_INFO)}\n </Action>\n ),\n })}\n />\n )}\n {otherConditions && (\n <Field\n {...fieldProps}\n label={translate(L10N.LABEL_OTHERS_TERMS)}\n value={parseHtml(otherConditions, { small })}\n />\n )}\n </View>\n\n {cancelationPolicy?.detail && (\n <Modal title={translate(L10N.LABEL_CANCELLATION_POLICY)} visible={modal} onClose={() => setModal(false)}>\n <Text className={style.modal}>{cancelationPolicy.detail}</Text>\n </Modal>\n )}\n </>\n );\n};\n\nOthers.displayName = 'Mirai:Core:Booking:Others';\n\nOthers.propTypes = {\n dataSource: PropTypes.shape({\n cancelationPolicy: PropTypes.shape({\n summary: PropTypes.string,\n details: PropTypes.string,\n }),\n payment: PropTypes.string,\n paymentsConditions: PropTypes.string,\n }),\n small: PropT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