mts-booking-library 1.2.2 → 1.2.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.
@@ -91,6 +91,7 @@ var JourneyBooking = /** @class */ (function (_super) {
91
91
  var cartDate = new Date(cart.bookingDueDate);
92
92
  if (cartDate > new Date()) {
93
93
  _this.cart = cart;
94
+ _this.cartId = cart.id;
94
95
  _this.bookingDueDate = cartDate; // See Booking class
95
96
  // Fill the booking process status
96
97
  _this.bookingStepsToStatus = new Map(Object.entries(cart.stepsToStatus).map(function (_a) {
@@ -116,6 +117,7 @@ var JourneyBooking = /** @class */ (function (_super) {
116
117
  // Put actions that have to be done when timer expires here
117
118
  _this.bookingStepsToStatus = new Map();
118
119
  _this.cart = undefined;
120
+ _this.cartId = undefined;
119
121
  _this.bookingDueDate = undefined; // See Booking class
120
122
  _this.onCartExpiration();
121
123
  }, expiringDate.valueOf() - new Date().valueOf());
@@ -102,6 +102,7 @@ var ServiceBooking = /** @class */ (function (_super) {
102
102
  var cartDate = new Date(cart.bookingDueDate);
103
103
  if (cartDate > new Date()) {
104
104
  _this.cart = cart;
105
+ _this.cartId = cart.id;
105
106
  _this.bookingDueDate = cartDate; // See Booking class
106
107
  // Fill the booking process status
107
108
  _this.bookingStepsToStatus = new Map(Object.entries(cart.stepsToStatus).map(function (_a) {
@@ -126,6 +127,7 @@ var ServiceBooking = /** @class */ (function (_super) {
126
127
  localStorage.removeItem("cartId");
127
128
  // Put actions that have to be done when timer expires here
128
129
  _this.cart = undefined;
130
+ _this.cartId = undefined;
129
131
  _this.bookingDueDate = undefined; // See Booking class
130
132
  _this.onCartExpiration();
131
133
  }, expiringDate.valueOf() - new Date().valueOf());
@@ -91,6 +91,7 @@ var SubscriptionBooking = /** @class */ (function (_super) {
91
91
  var cartDate = new Date(cart.bookingDueDate);
92
92
  if (cartDate > new Date()) {
93
93
  _this.cart = cart;
94
+ _this.cartId = cart.id;
94
95
  _this.bookingDueDate = cartDate; // See Booking class
95
96
  // Fill the booking process status
96
97
  _this.bookingStepsToStatus = new Map(Object.entries(cart.stepsToStatus).map(function (_a) {
@@ -116,6 +117,7 @@ var SubscriptionBooking = /** @class */ (function (_super) {
116
117
  // Put actions that have to be done when timer expires here
117
118
  _this.bookingStepsToStatus = new Map();
118
119
  _this.cart = undefined;
120
+ _this.cartId = undefined;
119
121
  _this.bookingDueDate = undefined; // See Booking class
120
122
  _this.onCartExpiration();
121
123
  }, expiringDate.valueOf() - new Date().valueOf());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mts-booking-library",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Library for use MyTicketSolution Booking API",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",