tripstorekrabi-shared 1.19.2 → 1.19.3

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 +9 -8
  2. package/package.json +1 -1
package/booking.js CHANGED
@@ -379,6 +379,7 @@ export function createTodos(booking, product) {
379
379
  if (booking.startingPointDescription === NO_PICKUP_HOTEL_YET) {
380
380
  todos.pickupHotel = "missing";
381
381
  }
382
+
382
383
  if (
383
384
  booking.roomNumber !== NO_ROOM &&
384
385
  booking.roomNumber !== IN_HOUSE &&
@@ -420,33 +421,33 @@ export function createTodos(booking, product) {
420
421
 
421
422
  if (isAirportPickup(booking.startingPointDescription)) {
422
423
  if (!booking.flight) {
423
- todos.airportPickupFlightDetails = "missing";
424
+ todos.inboundFlightDetails = "missing";
424
425
  } else if (!booking.flightConfirmed) {
425
- todos.airportPickupFlightDetails = "sendToOperator";
426
+ todos.inboundFlightDetails = "sendToOperator";
426
427
  }
427
428
  }
428
429
 
429
430
  if (isAirportDropOff(booking.productDescription)) {
430
431
  if (!booking.flight) {
431
- todos.airportDropoffFlightDetails = "missing";
432
+ todos.outboundFlightDetails = "missing";
432
433
  } else if (!booking.flightConfirmed) {
433
- todos.airportDropoffFlightDetails = "sendToOperator";
434
+ todos.outboundFlightDetails = "sendToOperator";
434
435
  }
435
436
  }
436
437
 
437
438
  if (isTrainStation(booking.startingPointDescription)) {
438
439
  if (!booking.train) {
439
- todos.railwayPickupTrainDetails = "missing";
440
+ todos.inboundTrainDetails = "missing";
440
441
  } else if (!booking.trainConfirmed) {
441
- todos.railwayPickupTrainDetails = "sendToOperator";
442
+ todos.inboundTrainDetails = "sendToOperator";
442
443
  }
443
444
  }
444
445
 
445
446
  if (isTrainStation(booking.productDescription)) {
446
447
  if (!booking.train) {
447
- todos.railwayDropoffTrainDetails = "missing";
448
+ todos.outboundTrainDetails = "missing";
448
449
  } else if (!booking.trainConfirmed) {
449
- todos.railwayDropoffTrainDetails = "sendToOperator";
450
+ todos.outboundTrainDetails = "sendToOperator";
450
451
  }
451
452
  }
452
453
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tripstorekrabi-shared",
3
- "version": "1.19.2",
3
+ "version": "1.19.3",
4
4
  "description": "Shared library for Trip Store Krabi",
5
5
  "author": "Stefan Sommer <tonprince@gmail.com>",
6
6
  "repository": {