ti2-tourplan 1.0.16 → 1.0.18

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/index.js CHANGED
@@ -383,9 +383,7 @@ class Plugin {
383
383
  type: 'extended-option',
384
384
  options: [{ value: 'SG', label: 'Single' }, { value: 'DB', label: 'Double' }, { value: 'TW', label: 'Twin' }, { value: 'QD', label: 'Quad' }],
385
385
  }],
386
- requiredForAvailability: true,
387
386
  requiredForCalendar: true,
388
- requiredForBooking: true,
389
387
  }, {
390
388
  id: 'chargeUnitQuanity', // secondary charge unit (SCU) quantity
391
389
  description: 'number of nights or days or hours depending on charge unit',
@@ -659,6 +657,8 @@ class Plugin {
659
657
  payload: {
660
658
  quoteName,
661
659
  quoteId,
660
+ // existingQuoteId,
661
+ // existingLineId,
662
662
  optionId,
663
663
  startDate,
664
664
  reference,
@@ -666,7 +666,7 @@ class Plugin {
666
666
  paxConfigs: [{ roomType: 'DB', adults: 2 }, { roomType: 'TW', children: 2 }]
667
667
  */
668
668
  paxConfigs,
669
- passengers,
669
+ // passengers,
670
670
  /*
671
671
  The number of second charge units required (second charge units are discussed
672
672
  in the OptionInfo section). Should only be specified for options that have SCUs.
@@ -721,6 +721,7 @@ class Plugin {
721
721
  id: R.path(['AddServiceReply', 0, 'BookingId', 0], replyObj),
722
722
  reference: R.path(['AddServiceReply', 0, 'Ref', 0], replyObj),
723
723
  linePrice: R.path(['AddServiceReply', 0, 'Services', 0, 'Service', 0, 'LinePrice', 0], replyObj),
724
+ lineId: R.path(['AddServiceReply', 0, 'ServiceLineId', 0], replyObj),
724
725
  },
725
726
  };
726
727
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2-tourplan",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "description": "Tourplan's TI2 Plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -41,9 +41,12 @@ const translateTPOption = ({ optionsGroupedBySupplierId, supplierData }) => {
41
41
  // Guides, Accommodation, Transfers, Entrance Fees, Meals, Other
42
42
  // category: R.path([0, 'OptGeneral', 0, 'ButtonName', 0], optionsGroupedBySupplierId),
43
43
  options: optionsGroupedBySupplierId.map(option => {
44
+ const comment = R.path(['OptGeneral', 0, 'Comment', 0], option);
44
45
  const keyData = {
45
46
  optionId: R.path(['Opt', 0], option),
46
- optionName: R.path(['OptGeneral', 0, 'Description', 0], option),
47
+ optionName: `${R.path(['OptGeneral', 0, 'Description', 0], option)}${
48
+ comment ? `-${comment}` : ''
49
+ }`,
47
50
  };
48
51
  /*
49
52
  SType: One character that specifies the service type of the