tripstorekrabi-shared 1.7.8 → 1.8.0
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/package.json +1 -1
- package/utils.js +11 -3
package/package.json
CHANGED
package/utils.js
CHANGED
|
@@ -368,10 +368,14 @@ export function getItemSummary(item, product) {
|
|
|
368
368
|
if (item.startingPointId) {
|
|
369
369
|
let startingPointDescription = findStartingPoint(product, item.startingPointId).value;
|
|
370
370
|
if (isHotelPickup(startingPointDescription)) {
|
|
371
|
-
|
|
371
|
+
if (item.noHotelYet === true) {
|
|
372
|
+
summary += "Hotel pickup (hotel not known yet)";
|
|
373
|
+
} else {
|
|
374
|
+
summary += "Hotel pickup from " + item.pickupHotel;
|
|
372
375
|
|
|
373
|
-
|
|
374
|
-
|
|
376
|
+
if (item.roomNumber) {
|
|
377
|
+
summary += ` (${item.roomNumber})`;
|
|
378
|
+
}
|
|
375
379
|
}
|
|
376
380
|
} else {
|
|
377
381
|
summary += startingPointDescription;
|
|
@@ -527,6 +531,10 @@ export function isAirbnbBooking(referenceNumber) {
|
|
|
527
531
|
return referenceNumber.startsWith("Airbnb-");
|
|
528
532
|
}
|
|
529
533
|
|
|
534
|
+
export function isAirAsiaBooking(referenceNumber) {
|
|
535
|
+
return referenceNumber.startsWith("AirAsia-");
|
|
536
|
+
}
|
|
537
|
+
|
|
530
538
|
export function isKKdayBooking(referenceNumber) {
|
|
531
539
|
return referenceNumber.startsWith("KKday-");
|
|
532
540
|
}
|