@vendit-dev/thirdparty-adapters 0.7.20 → 0.7.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -313,7 +313,7 @@ var refineReservationData = function (infoTravelXML) {
313
313
  (SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeName),
314
314
  },
315
315
  reservations: groupedRooms.map(function (key, index) {
316
- var _a, _b, _c, _d, _e;
316
+ var _a, _b, _c, _d;
317
317
  var datas = groupedRooms[index];
318
318
  var roomsSortedByDate = datas.sort(function (a, b) {
319
319
  return new Date(a.RoomRateInformation.RoomDate).valueOf() -
@@ -357,7 +357,7 @@ var refineReservationData = function (infoTravelXML) {
357
357
  cmsProductName: roomsSortedByDate[0].RoomInformation.RoomTypeName ||
358
358
  BasicInformation.PackagePlanName,
359
359
  platform: tl_lincoln_ota_1.TL_LINCOLN_TO_VENDIT_OTA_MAP[(SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeCompanyName) || 'ANONYMOUS'] || (SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeCompanyName),
360
- otaNumber: "".concat(tl_lincoln_ota_1.TL_LINCOLN_TO_VENDIT_OTA_MAP[(SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeCompanyName) || 'ANONYMOUS'] || (SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeCompanyName), "|").concat((_e = "".concat(BasicInformation.TravelAgencyBookingNumber)) === null || _e === void 0 ? void 0 : _e.slice(-4)),
360
+ otaNumber: "".concat(tl_lincoln_ota_1.TL_LINCOLN_TO_VENDIT_OTA_MAP[(SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeCompanyName) || 'ANONYMOUS'] || (SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeCompanyName), "|").concat("".concat(BasicInformation.TravelAgencyBookingNumber)),
361
361
  externalRoomTypeCode: roomsSortedByDate[0].RoomInformation.NetRmTypeGroupCode,
362
362
  externalRoomTypeName: roomsSortedByDate[0].RoomInformation.RoomTypeName,
363
363
  type: reservationType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendit-dev/thirdparty-adapters",
3
- "version": "0.7.20",
3
+ "version": "0.7.22",
4
4
  "description": "Third party adapters between v-cloud and other PMS/CMS providers.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {