PrasannPradeepPatil / Booking-Website

0 stars 2 forks source link

Email API enhancement to integrate hotel booking #46

Closed ahamad-s closed 2 years ago

ahamad-s commented 2 years ago

Description : The existing API performs operations like generating an otp for the flight booking process. Now when the authentication is applied for hotel bookings as well along with that the API sends a confirmation mail for both the bookings with respective booking details.

Acceptance Criteria: This takes the input fields like email of the customer, the type of mail to be sent and the booking details and is called via payment API or post confirmation API with respective type field.

Input request: { "emailAdd":"", "customerName":"", "mailType":"", "source":"", "destination":"", "bookingCity":"", "dateOfBooking":"", "referenceNumber":"" }

output response: { "emailStatus":"", "otpCode":"", "errorCode":"" }