Class PersonRequest

  • All Implemented Interfaces:
    EliquaAbstractRequestPayload
    Direct Known Subclasses:
    PersonCreateRequest

    public class PersonRequest
    extends PersonBasicPayload
    Represents the base request for a person, including email, telephone, address, consents, and tags associated with the person. This class can be extended for more specific use cases related to person management. It provides the foundation for managing multiple details related to a person in the system, including their communication details (email, telephone), consent preferences, and associated tags.
    Author:
    nikritikos
    • Constructor Detail

      • PersonRequest

        public PersonRequest()
    • Method Detail

      • getEmailList

        public List<EmailData> getEmailList()
        Gets the list of emails associated with the person.
        Returns:
        the list of email data
      • getTelephoneList

        public List<TelephoneData> getTelephoneList()
        Gets the list of telephone numbers associated with the person.
        Returns:
        the list of telephone data
      • getAddressList

        public List<AddressData> getAddressList()
        Gets the list of addresses associated with the person.
        Returns:
        the list of address data
      • addEmail

        public void addEmail​(EmailData emailData)
        Adds an email to the email list.
        Parameters:
        emailData - the email data to add
      • addTelephone

        public void addTelephone​(TelephoneData telephoneData)
        Adds a telephone to the telephone list.
        Parameters:
        telephoneData - the telephone data to add
      • addAddress

        public void addAddress​(AddressData addressData)
        Adds an address to the address list.
        Parameters:
        addressData - the address data to add
      • getConsentList

        public List<PersonConsentDataBasicPayload> getConsentList()
        Gets the list of consents associated with the person.
        Returns:
        the list of person consent data
      • addConsent

        public void addConsent​(PersonConsentDataBasicPayload consent)
        Adds a consent to the consent list.
        Parameters:
        consent - the consent data to add
      • getTagList

        public List<AssignTagBasicPayload> getTagList()
        Gets the list of tags assigned to the person.
        Returns:
        the list of person tags
      • addTag

        public void addTag​(AssignTagBasicPayload tag)
        Adds a tag to the tag list.
        Parameters:
        tag - the tag data to add