raiseHTTPException(status_code=400,detail="Invalid class type")
iflen(seat_numbers)!=number_of_tickets:
raiseHTTPException(status_code=400,detail="Number of seat numbers must match the number of tickets")
forseat_numberinseat_numbers:
ifseat_numberinbooked_seats:
raiseHTTPException(status_code=400,detail=f"Seat number {seat_number} is already booked")
booked_seats.append(seat_number)
payload=f"{class_type} class ticket : booking: {number_of_tickets} tickets by {user_name} for seat numbers {seat_numbers} having telephone number {user_phone} whose age is {user_age}",