Class BookingReceiptInfo

java.lang.Object
com.ntu.fdae.group1.bto.models.booking.BookingReceiptInfo

public class BookingReceiptInfo extends Object
Data Transfer Object (DTO) containing all information needed for a booking receipt.

This class consolidates information from various sources (booking, applicant, project) into a single object that can be used to display or print a booking receipt. It serves as a comprehensive record of a booking transaction.

The BookingReceiptInfo includes: - Receipt identification details - Booking information - Applicant information - Project and flat details - Financial information including prices and payment deadlines

  • Constructor Details

    • BookingReceiptInfo

      public BookingReceiptInfo(String applicantName, String applicantNric, int applicantAge, MaritalStatus applicantMaritalStatus, String bookedFlatType, String projectName, String projectNeighborhood, String bookingId, LocalDate bookingDate)
      Constructor for BookingReceiptInfo.
      Parameters:
      applicantName - Full name of the applicant
      applicantNric - NRIC of the applicant
      applicantAge - Age of the applicant
      applicantMaritalStatus - Marital status of the applicant
      bookedFlatType - Type of flat that has been booked
      projectName - Name of the project
      projectNeighborhood - Location or address of the project
      bookingId - Reference to the booking ID
      bookingDate - Date when the booking was made
  • Method Details

    • getApplicantName

      public String getApplicantName()
      Gets the full name of the applicant.
      Returns:
      The applicant's name
    • getApplicantNric

      public String getApplicantNric()
      Gets the NRIC of the applicant.
      Returns:
      The applicant's NRIC
    • getApplicantAge

      public int getApplicantAge()
      Gets the age of the applicant.
      Returns:
      The applicant's age
    • getApplicantMaritalStatus

      public MaritalStatus getApplicantMaritalStatus()
      Gets the marital status of the applicant.
      Returns:
      The applicant's marital status
    • getBookedFlatType

      public String getBookedFlatType()
      Gets the type of flat that has been booked.
      Returns:
      The booked flat type
    • getProjectName

      public String getProjectName()
      Gets the name of the project.
      Returns:
      The project name
    • getProjectNeighborhood

      public String getProjectNeighborhood()
      Gets the location or address of the project.
      Returns:
      The project neighborhood
    • getBookingId

      public String getBookingId()
      Gets the booking ID associated with this receipt.
      Returns:
      The booking ID
    • getBookingDate

      public LocalDate getBookingDate()
      Gets the date when the booking was made.
      Returns:
      The booking date