tripstorekrabi-shared 1.7.7 → 1.7.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.
- package/package.json +1 -1
- package/utils.js +11 -1
package/package.json
CHANGED
package/utils.js
CHANGED
|
@@ -297,7 +297,13 @@ export function getBookingSummary(booking, options = {}) {
|
|
|
297
297
|
|
|
298
298
|
if (booking.productDescription && booking.operator && booking.departureDate && booking.schedule && booking.leadTraveller) {
|
|
299
299
|
let departureDate = dayjs(booking.departureDate.toDate()).tz("Asia/Bangkok").format("DD.MM.YYYY");
|
|
300
|
-
summary += booking.productDescription + ", " + departureDate
|
|
300
|
+
summary += booking.productDescription + ", " + departureDate;
|
|
301
|
+
|
|
302
|
+
if (!options.hideOperator) {
|
|
303
|
+
summary += ", " + booking.operator;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
summary += ", " + booking.adults + ", " + booking.children + ", "
|
|
301
307
|
+ booking.infants + ", " + booking.leadTraveller;
|
|
302
308
|
|
|
303
309
|
if (booking.startingPointDescription) {
|
|
@@ -521,6 +527,10 @@ export function isAirbnbBooking(referenceNumber) {
|
|
|
521
527
|
return referenceNumber.startsWith("Airbnb-");
|
|
522
528
|
}
|
|
523
529
|
|
|
530
|
+
export function isAirAsiaBooking(referenceNumber) {
|
|
531
|
+
return referenceNumber.startsWith("AirAsia-");
|
|
532
|
+
}
|
|
533
|
+
|
|
524
534
|
export function isKKdayBooking(referenceNumber) {
|
|
525
535
|
return referenceNumber.startsWith("KKday-");
|
|
526
536
|
}
|