ti2-tourplan 1.0.27 → 1.0.28

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
@@ -609,7 +609,12 @@ class Plugin {
609
609
  BookingId: R.prop('BookingId', bookingHeader),
610
610
  });
611
611
  const bookingReply = await this.callTourplan(getBookingPayload);
612
- return R.path(['GetBookingReply'], bookingReply);
612
+ const booking = R.path(['GetBookingReply'], bookingReply);
613
+ const Services = R.pathOr([], ['Services', 'Service'], booking);
614
+ return {
615
+ ...booking,
616
+ Services: Array.isArray(Services) ? Services : [Services],
617
+ };
613
618
  }, { concurrency: 10 });
614
619
  return {
615
620
  bookings,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2-tourplan",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "Tourplan's TI2 Plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {