PMS – Protel

The table below shows the data relationship between PMI data elements/fields (target) and corresponding source data elements/fields (source). You will find the transformation/load rules meant to explain any programmatic manipulation and calculation applied in the adapter to get the desired data format and/or result in the PMI staging table where such have been applicable. An example of the source file data, format and structure is also attached below the table. This table will be updated whenever the source file or the adapter in question are changed throughout the interface life-cycle.

Interface name incl. versionComment
Protel_Hstat_Actual_V100File pattern hstat*
This interface is like the OTB interface with the exception that this imports the historical date where the OTB imports the future date.
Protel_Reshist_MarketCode_V001Imports from an XML file with file name pattern: ResHist*.xml
Similar to Protel_Resforc_MarketCode except that it looks for the Day elements within the ResHistory element.
Protel_Reshist_MarketCode_V002Imports from an XML file with file name pattern: ResHist*.xml
Does the same as V001 except that it handles a wrongly formatted XML
Protel_Reshist_RateCode_V001Similar to Reshist_MarketCode_V001 with the exception that instead of using the attribute from Market element it uses the attributes from RateCode and in the description it uses “Rate Code” instead of “Market Code”.
Protel_Reshist_RateCode_V002Similar to Reshist_RateCode_V001 except that it first does a preprocessing on the wrongly formatted XML file.
Protel_RevHistory_V001
Protel_Rev_V101
Interface name incl. versionComment
Protel_Hstat_Otb_V100File pattern hstat*
Protel_Resforc_V100Imports from an XML file.
This interface is currently not used.
Protel_Resforc_MarketCode_V001Imports from an XML file with file name pattern: ResForc*.xml
Protel_Resforc_RateCode_V001Imports from an XML file with file name pattern: ResForc*.xml
Same as Protel_Resforc_MarketCode_V001 with the exception that instead of using the attribute from Market element it uses the attributes from RateCode and in the description it uses “Rate Code” instead of “Market Code”.
ColumnName
1Not used
2Date
3Availableroom
4Not used
5Roomnights
6 – 11Not used
12Guestnights
13-15Not used
16Roomrevenue
#PMI data element (target)DescriptionMandatory / OptionalData transformation/load rulesData element (source)Comment
1DateTransaction Date/OTB DateMDirectly mapped from source fileDateIn the format dd.MM.yyyy
2DescriptionDescriptionODirectly mapped from source systemNot used
3RevenueRevenue without authority charge ratesMDirectly mapped from source fileRoomrevenue
4Room nightsNumber of room nightsMDirectly mapped from source fileRoomnights
5Guest nightsNumber of room guestsMDirectly mapped from source fileGuestnights
#PMI data element (target)DescriptionMandatory / OptionalData transformation/load rulesData element (source)Comment
1DateTransaction Date/OTB DateMDirectly mapped from source fileDate attribute from Day element
2DescriptionDescriptionODirectly mapped from source systemNot used
3RevenueRevenue without authority charge ratesMDirectly mapped from source fileRRev attribute from Day element
4Room nightsNumber of room nightsMDirectly mapped from source fileRn attribute from Day element
5Guest nightsNumber of room guestsMDirectly mapped from source fileAd attribute from Day elementAdults only
#PMI data element (target)DescriptionMandatory / OptionalData transformation/load rulesData element (source)Comment
1DateTransaction Date/OTB DateMDirectly mapped from source fileDate attribute from Day element
2DescriptionDescriptionODirectly mapped from source systemMarket code: {Code attribute}Where the code attribute comes from the Market element within the Day element.
3RevenueRevenue without authority charge ratesMDirectly mapped from source fileRRev attribute from Market element within Day element
4Room nightsNumber of room nightsMDirectly mapped from source fileRn attribute from Market element within Day element
5Guest nightsNumber of room guestsMDirectly mapped from source fileAd+Ch attribute from Market element within Day elementAdults + Children


Output examples for download:

  • Flat file CSV for Protel_Hstat interface:

File:Protel Hstat Otb V100.txt

  • XML file for Protel_ResForc interfaces

File:Protel ResForc.xml

Was this article helpful?

Related Articles