[IMP]pms_api_rest: added firstCheckin and createDate fields in folio info datamodel

This commit is contained in:
braisab
2023-04-25 12:07:58 +02:00
committed by Darío Lodeiros
parent 9c9ead1d8d
commit 8be8614044
2 changed files with 4 additions and 0 deletions

View File

@@ -24,7 +24,9 @@ class PmsFolioInfo(Datamodel):
amountTotal = fields.Float(required=False, allow_none=True)
reservationType = fields.String(required=False, allow_none=True)
pendingAmount = fields.Float(required=False, allow_none=True)
firstCheckin = fields.String(required=False, allow_none=True)
lastCheckout = fields.String(required=False, allow_none=True)
createDate = fields.String(required=False, allow_none=True)
pmsPropertyId = fields.Integer(required=False, allow_none=True)
partnerId = fields.Integer(required=False, allow_none=True)
reservations = fields.List(

View File

@@ -57,7 +57,9 @@ class PmsFolioService(Component):
amountTotal=round(folio.amount_total, 2),
reservationType=folio.reservation_type,
pendingAmount=folio.pending_amount,
firstCheckin=str(folio.first_checkin),
lastCheckout=str(folio.last_checkout),
createDate=folio.create_date.isoformat(),
internalComment=folio.internal_comment
if folio.internal_comment
else None,