uapi-json 1.14.9 → 1.14.10

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uapi-json",
3
- "version": "1.14.9",
3
+ "version": "1.14.10",
4
4
  "description": "Travelport Universal API",
5
5
  "main": "src/",
6
6
  "files": [
@@ -45,7 +45,7 @@
45
45
  "node-errors-helpers": "^1.0.0",
46
46
  "pretty-data": "^0.40.0",
47
47
  "promise-retry": "^1.1.1",
48
- "xml2js": "^0.4.23"
48
+ "xml2js": "^0.5.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "chai": "^4.3.7",
@@ -98,6 +98,7 @@ const AirRuntimeError = createErrorClass(
98
98
  errorTypes.RuntimeError
99
99
  );
100
100
  Object.assign(AirRuntimeError, createErrorsList({
101
+ NoSeatsAvailable: 'No seats available',
101
102
  PNRSyncFailed: 'Unexpected System Error. PNR(s) sync failed',
102
103
  SegmentBookingFailed: 'Failed to book on or more segments',
103
104
  SegmentWaitlisted: 'One or more segments is waitlisted, not allowed',
@@ -507,6 +507,8 @@ const AirErrorHandler = function (rsp) {
507
507
  }
508
508
  const pcc = utils.getErrorPcc(rsp.faultstring);
509
509
  switch (code) {
510
+ case '20':
511
+ throw new AirRuntimeError.NoSeatsAvailable(rsp);
510
512
  case '345':
511
513
  case '1512':
512
514
  if (pcc !== null) {