Package main.domain.models.purchases
Class Participant
java.lang.Object
main.domain.models.purchases.Participant
Represents a participant in a transaction, including email, name, and tax ID.
This class is designed to create generic Payment emails, accommodating both
user CPF and business CNPJ.
-
Constructor Summary
ConstructorDescriptionParticipant
(String email, String name, String taxId) Participant
(User customer) Constructs a new Participant based on a user's information. -
Method Summary
Modifier and TypeMethodDescriptionemail()
Returns the email of the participant.static Participant
self()
Creates a Participant representing the Event Management Business itself.toString()
-
Constructor Details
-
Participant
-
Participant
Constructs a new Participant based on a user's information.- Parameters:
customer
- the user whose information is used to create the participant
-
-
Method Details
-
self
Creates a Participant representing the Event Management Business itself.- Returns:
- a new Participant object representing the business
-
email
-
toString
-