@qite/tide-booking-component 1.4.15 → 1.4.16

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qite/tide-booking-component",
3
- "version": "1.4.15",
3
+ "version": "1.4.16",
4
4
  "description": "React Booking wizard & Booking product component for Tide",
5
5
  "main": "build/build-cjs/index.js",
6
6
  "module": "build/build-esm/index.js",
@@ -498,7 +498,6 @@ const bookingSlice = createSlice({
498
498
  },
499
499
  extraReducers: (builder) => {
500
500
  builder.addCase(fetchPackageDetails.fulfilled, (state, action) => {
501
- console.log("FETCHED PACKAGE DETAILS", action.payload);
502
501
  if (action.payload) {
503
502
  if (action.payload.errorCode) {
504
503
  console.error(
@@ -132,6 +132,8 @@ const Booking: React.FC<BookingProps> = ({
132
132
  const allotmentName = getStringFromParams(params, "allotmentName");
133
133
  const allotmentIds = getNumbersFromParams(params, "allotmentId");
134
134
  const tourCode = getStringFromParams(params, "tourCode");
135
+ const productCode = getStringFromParams(params, "productCode");
136
+ const productName = getStringFromParams(params, "productName");
135
137
  const bookingNumber = params.get("bookingNr") ?? undefined;
136
138
 
137
139
  if (typeof window !== "undefined") {
@@ -157,16 +159,10 @@ const Booking: React.FC<BookingProps> = ({
157
159
  tourCode,
158
160
  flightRouteId,
159
161
  vendorConfigurationId,
162
+ productCode,
163
+ productName,
160
164
  } as BookingAttributes;
161
165
 
162
- console.log("Setting booking attributes:", nextBookingAttrs);
163
- console.log("Current booking attributes:", bookingAttributes);
164
- console.log("Params:", {
165
- startDate,
166
- endDate,
167
- catalogueId,
168
- rooms,
169
- });
170
166
  if (
171
167
  !isNil(startDate) &&
172
168
  !isNil(endDate) &&
@@ -276,12 +272,6 @@ const Booking: React.FC<BookingProps> = ({
276
272
 
277
273
  useEffect(() => {
278
274
  if (!productAttributes || !bookingAttributes || !rooms?.length) {
279
- console.log(
280
- "Not all data available yet to fetch package",
281
- productAttributes,
282
- bookingAttributes,
283
- rooms
284
- );
285
275
  return;
286
276
  }
287
277
  // Fetch data
@@ -172,6 +172,8 @@ export interface BookingAttributes {
172
172
  includeFlights?: boolean;
173
173
  flightRouteId?: string | null;
174
174
  vendorConfigurationId?: number | null;
175
+ productCode?: string;
176
+ productName?: string;
175
177
  }
176
178
 
177
179
  export interface FlightLine {