Class BookingReceiptInfo
java.lang.Object
com.ntu.fdae.group1.bto.models.booking.BookingReceiptInfo
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 Summary
ConstructorsConstructorDescriptionBookingReceiptInfo
(String applicantName, String applicantNric, int applicantAge, MaritalStatus applicantMaritalStatus, String bookedFlatType, String projectName, String projectNeighborhood, String bookingId, LocalDate bookingDate) Constructor for BookingReceiptInfo. -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the age of the applicant.Gets the marital status of the applicant.Gets the full name of the applicant.Gets the NRIC of the applicant.Gets the type of flat that has been booked.Gets the date when the booking was made.Gets the booking ID associated with this receipt.Gets the name of the project.Gets the location or address of the project.
-
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 applicantapplicantNric
- NRIC of the applicantapplicantAge
- Age of the applicantapplicantMaritalStatus
- Marital status of the applicantbookedFlatType
- Type of flat that has been bookedprojectName
- Name of the projectprojectNeighborhood
- Location or address of the projectbookingId
- Reference to the booking IDbookingDate
- Date when the booking was made
-
-
Method Details
-
getApplicantName
Gets the full name of the applicant.- Returns:
- The applicant's name
-
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
Gets the marital status of the applicant.- Returns:
- The applicant's marital status
-
getBookedFlatType
Gets the type of flat that has been booked.- Returns:
- The booked flat type
-
getProjectName
Gets the name of the project.- Returns:
- The project name
-
getProjectNeighborhood
Gets the location or address of the project.- Returns:
- The project neighborhood
-
getBookingId
Gets the booking ID associated with this receipt.- Returns:
- The booking ID
-
getBookingDate
Gets the date when the booking was made.- Returns:
- The booking date
-