ti2-tourplan 1.0.15 → 1.0.17

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.
Files changed (2) hide show
  1. package/index.js +6 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -92,13 +92,13 @@ class Plugin {
92
92
  const error = R.path(['Reply', 'ErrorReply', 0, 'Error', 0], replyObj);
93
93
  if (error) {
94
94
  const requestType = R.keys(model)[0];
95
- if (requestType.indexOf('2050 SCN Request denied for TEST connecting from') > -1
95
+ if (error.indexOf('2050 SCN Request denied for TEST connecting from') > -1
96
96
  && requestType === 'OptionInfoRequest'
97
97
  && endpoint.indexOf('actour') > -1
98
98
  ) {
99
99
  return 'useFixture';
100
100
  }
101
- throw new Error(`${requestType} failed: ${error}}`);
101
+ throw new Error(`${requestType} failed: ${error}`);
102
102
  }
103
103
  return R.path(['Reply'], replyObj);
104
104
  };
@@ -659,6 +659,8 @@ class Plugin {
659
659
  payload: {
660
660
  quoteName,
661
661
  quoteId,
662
+ // existingQuoteId,
663
+ // existingLineId,
662
664
  optionId,
663
665
  startDate,
664
666
  reference,
@@ -666,7 +668,7 @@ class Plugin {
666
668
  paxConfigs: [{ roomType: 'DB', adults: 2 }, { roomType: 'TW', children: 2 }]
667
669
  */
668
670
  paxConfigs,
669
- passengers,
671
+ // passengers,
670
672
  /*
671
673
  The number of second charge units required (second charge units are discussed
672
674
  in the OptionInfo section). Should only be specified for options that have SCUs.
@@ -721,6 +723,7 @@ class Plugin {
721
723
  id: R.path(['AddServiceReply', 0, 'BookingId', 0], replyObj),
722
724
  reference: R.path(['AddServiceReply', 0, 'Ref', 0], replyObj),
723
725
  linePrice: R.path(['AddServiceReply', 0, 'Services', 0, 'Service', 0, 'LinePrice', 0], replyObj),
726
+ lineId: R.path(['AddServiceReply', 0, 'ServiceLineId', 0], replyObj),
724
727
  },
725
728
  };
726
729
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2-tourplan",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "Tourplan's TI2 Plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {