ti2-tourplan 1.0.17 → 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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2-tourplan",
3
- "version": "1.0.17",
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