[IMP]pms-api-rest: added reservationType in folio.info datamodel

This commit is contained in:
braisab
2022-07-13 20:57:35 +02:00
committed by Darío Lodeiros
parent 8c22b167f2
commit 11edeeaf2f
2 changed files with 2 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ class PmsFolioInfo(Datamodel):
partnerEmail = fields.String(required=False, allow_none=True)
state = fields.String(required=False, allow_none=True)
amountTotal = fields.Float(required=False, allow_none=True)
reservationType = fields.String(required=False, allow_none=True)
class PmsFolioShortInfo(Datamodel):

View File

@@ -45,6 +45,7 @@ class PmsFolioService(Component):
folio.state
],
amountTotal=round(folio.amount_total, 2),
reservationType=folio.reservation_type,
)
else:
raise MissingError(_("Folio not found"))