Skip to content

Commit

Permalink
[IMP] pms-api-rest: add reservation type to folio/x/reservations service
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpadin authored and DarioLodeiros committed Feb 16, 2024
1 parent 804aa92 commit 95bff2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pms_api_rest/datamodels/pms_reservation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 3 additions & 1 deletion pms_api_rest/services/pms_folio_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,

)
)

Expand Down

0 comments on commit 95bff2b

Please sign in to comment.