Class ReceiptService

java.lang.Object
com.ntu.fdae.group1.bto.services.booking.ReceiptService
All Implemented Interfaces:
IReceiptService

public class ReceiptService extends Object implements IReceiptService
Service for generating booking receipts in the BTO Management System.

This service is responsible for assembling booking receipt information by: - Retrieving applicant details from the user repository - Retrieving project details from the project repository - Combining booking, applicant, and project information into a receipt

The service follows the Service Layer pattern, encapsulating business logic related to receipt generation and providing a clean API for controllers.

  • Constructor Details

    • ReceiptService

      public ReceiptService(IUserRepository userRepo, IProjectRepository projRepo)
      Constructs a ReceiptService with required repositories.
      Parameters:
      userRepo - Repository for accessing user data
      projRepo - Repository for accessing project data
      Throws:
      NullPointerException - if either repository is null
  • Method Details