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

public class Booking extends Object
Represents a booking made by an applicant for a flat in a BTO project.

A booking is created after a successful application has been processed and the applicant has selected a specific flat unit. It serves as a record of the booking transaction between the applicant and HDB.

  • Constructor Details

    • Booking

      public Booking(String bookingId, String applicationId, String applicantNric, String projectId, FlatType bookedFlatType, LocalDate bookingDate)
      Constructs a new Booking with all required fields.
      Parameters:
      bookingId - Unique identifier for the booking
      applicationId - Reference to the associated application ID
      applicantNric - NRIC of the applicant who made the booking
      projectId - ID of the project where the flat is booked
      bookedFlatType - Type of flat that has been booked
      bookingDate - Date when the booking was made
  • Method Details

    • getBookingId

      public String getBookingId()
      Gets the unique identifier for this booking.
      Returns:
      The booking ID
    • getApplicationId

      public String getApplicationId()
      Gets the application ID associated with this booking.
      Returns:
      The application ID
    • getApplicantNric

      public String getApplicantNric()
      Gets the NRIC of the applicant who made this booking.
      Returns:
      The applicant's NRIC
    • getProjectId

      public String getProjectId()
      Gets the ID of the project where the flat is booked.
      Returns:
      The project ID
    • getBookedFlatType

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

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