From 95bff2b89f04e21ca77971d5ae0be8a16796bac6 Mon Sep 17 00:00:00 2001 From: miguelpadin Date: Thu, 15 Feb 2024 14:46:27 +0000 Subject: [PATCH] [IMP] pms-api-rest: add reservation type to folio/x/reservations service --- pms_api_rest/datamodels/pms_reservation.py | 2 ++ pms_api_rest/services/pms_folio_service.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pms_api_rest/datamodels/pms_reservation.py b/pms_api_rest/datamodels/pms_reservation.py index 964e7c2414..3e60a8e3e6 100644 --- a/pms_api_rest/datamodels/pms_reservation.py +++ b/pms_api_rest/datamodels/pms_reservation.py @@ -31,6 +31,8 @@ class PmsReservationShortInfo(Datamodel): toAssign = fields.Boolean(required=False, allow_none=True) overbooking = fields.Boolean(required=False, allow_none=True) isBlocked = fields.Boolean(required=False, allow_none=True) + reservationType = fields.String(required=False, allow_none=True) + class PmsReservationInfo(Datamodel): diff --git a/pms_api_rest/services/pms_folio_service.py b/pms_api_rest/services/pms_folio_service.py index d9a2e66bf1..3c6b3f2d18 100644 --- a/pms_api_rest/services/pms_folio_service.py +++ b/pms_api_rest/services/pms_folio_service.py @@ -560,7 +560,9 @@ def get_folio_reservations(self, folio_id): else 0, toAssign=reservation.to_assign, overbooking=reservation.overbooking, - isBlocked=reservation.blocked + isBlocked=reservation.blocked, + reservationType=reservation.reservation_type, + ) )