tripstorekrabi-shared 1.14.7 → 1.14.9

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/booking.js +8 -0
  2. package/package.json +1 -1
package/booking.js CHANGED
@@ -4,6 +4,7 @@ import utc from 'dayjs/plugin/utc.js';
4
4
  import timezone from 'dayjs/plugin/timezone.js';
5
5
  import { PAY_ON_TOUR, calculateTotalOperatorPrice } from './price.js';
6
6
  import { nanoid } from 'nanoid';
7
+ import { isHotelPickup } from './utils.js';
7
8
 
8
9
  dayjs.extend(advancedFormat);
9
10
  dayjs.extend(utc);
@@ -280,6 +281,13 @@ export function getStartingPointMessage(booking, product) {
280
281
 
281
282
  text += '. Please watch out for the staff of ' + booking.operator + '.';
282
283
 
284
+ if (booking.googleMapLocation?.length > 0) {
285
+ text += `\n\n${isHotelPickup(booking.startingPointDescription)
286
+ ? 'PICKUP COORDINATES ON GOOGLE MAP'
287
+ : 'MEETING COORDINATES ON GOOGLE MAP'
288
+ }:\n${booking.googleMapLocation}`;
289
+ }
290
+
283
291
  if (product?.whatToBring?.length > 0) {
284
292
  text += '\n\nWHAT TO BRING: ' + product.whatToBring;
285
293
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tripstorekrabi-shared",
3
- "version": "1.14.7",
3
+ "version": "1.14.9",
4
4
  "description": "Shared library for Trip Store Krabi",
5
5
  "author": "Stefan Sommer <tonprince@gmail.com>",
6
6
  "repository": {