Class UserDonate

java.lang.Object
application.user.UserDonate

public class UserDonate extends Object
Use case for handling donations made by a user to an organization. Creates a Donation and persists it to the database.
  • Constructor Details

    • UserDonate

      public UserDonate()
      Creates a new UserDonate with a default DonationDao.
  • Method Details

    • execute

      public void execute(User user, Organization org, BigDecimal amount)
      Executes the donation use case by creating and saving a donation.
      Parameters:
      user - the user making the donation
      org - the organization receiving the donation
      amount - the donation amount in NOK