Class UserDonate
java.lang.Object
application.user.UserDonate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(User user, Organization org, BigDecimal amount) Executes the donation use case by creating and saving a donation.
-
Constructor Details
-
UserDonate
public UserDonate()Creates a newUserDonatewith a defaultDonationDao.
-
-
Method Details
-
execute
Executes the donation use case by creating and saving a donation.- Parameters:
user- the user making the donationorg- the organization receiving the donationamount- the donation amount in NOK
-