ti2-tourplan 1.0.74 → 1.0.76

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.
@@ -67,6 +67,7 @@
67
67
  <CanUpdate>N</CanUpdate>
68
68
  <CanAccept>N</CanAccept>
69
69
  <LocationCode>LON</LocationCode>
70
+ <Status>OK</Status>
70
71
  <ServiceExtras>
71
72
  <ServiceExtra>
72
73
  <SequenceNumber>1</SequenceNumber>
@@ -3349,6 +3349,7 @@ Object {
3349
3349
  "quantity": 4,
3350
3350
  "serviceLineId": "745684",
3351
3351
  "startDate": "2025-08-13",
3352
+ "status": "OK",
3352
3353
  "supplierId": "SANLON",
3353
3354
  "supplierName": "Sanderson",
3354
3355
  },
package/index.js CHANGED
@@ -310,11 +310,10 @@ class BuyerPlugin {
310
310
  const replyObj = await this.callTourplan({
311
311
  model, endpoint, axios, xmlOptions: defaultXmlOptions,
312
312
  });
313
- console.log(replyObj)
314
313
  assert(R.path(['AuthenticationReply'], replyObj) === '');
315
314
  return true;
316
315
  } catch (err) {
317
- console.log(err.message);
316
+ console.error(err.message);
318
317
  return false;
319
318
  }
320
319
  }
@@ -933,7 +932,7 @@ class BuyerPlugin {
933
932
  });
934
933
  return newBooking;
935
934
  } catch (err) {
936
- console.log('error in searchBooking', err.message);
935
+ console.error('error in searchBooking', err.message);
937
936
  return null;
938
937
  }
939
938
  }, { concurrency: 10 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2-tourplan",
3
- "version": "1.0.74",
3
+ "version": "1.0.76",
4
4
  "description": "Tourplan's TI2 Plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -36,7 +36,7 @@
36
36
  "jsonwebtoken": "^8.5.1",
37
37
  "moment": "^2.29.1",
38
38
  "ramda": "^0.27.1",
39
- "ti2": "^1.0.90",
39
+ "ti2": "^1.0.92",
40
40
  "underscore": "^1.13.4",
41
41
  "xml-js": "^1.6.11",
42
42
  "xml2js": "^0.4.23"
@@ -50,6 +50,7 @@ const resolvers = {
50
50
  paxConfigs: R.path(['paxConfigs']),
51
51
  linePrice: R.path(['LinePrice']),
52
52
  quantity: R.path(['SCUqty']),
53
+ status: R.path(['Status']),
53
54
  },
54
55
  PaxConfig: {
55
56
  roomType: px => {