Class PersonRequest
- java.lang.Object
-
- com.inteliqua.rest.customer.payload.person.payload.PersonBasicPayload
-
- com.inteliqua.rest.customer.payload.person.request.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 Summary
Constructors Constructor Description PersonRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAddress(AddressData addressData)Adds an address to the address list.voidaddConsent(PersonConsentDataBasicPayload consent)Adds a consent to the consent list.voidaddEmail(EmailData emailData)Adds an email to the email list.voidaddTag(AssignTagBasicPayload tag)Adds a tag to the tag list.voidaddTelephone(TelephoneData telephoneData)Adds a telephone to the telephone list.List<AddressData>getAddressList()Gets the list of addresses associated with the person.List<PersonConsentDataBasicPayload>getConsentList()Gets the list of consents associated with the person.List<EmailData>getEmailList()Gets the list of emails associated with the person.List<AssignTagBasicPayload>getTagList()Gets the list of tags assigned to the person.List<TelephoneData>getTelephoneList()Gets the list of telephone numbers associated with the person.-
Methods inherited from class com.inteliqua.rest.customer.payload.person.payload.PersonBasicPayload
addAttribute, getAttributes, getDateOfBirth, getFirstName, getGender, getLanguageCode, getLastName, getNameDayDay, getNameDayMonth, getRegistrationDate, getRegistrationSource, getRegistrationStoreCode, getSalutationCode, getYearOfBirth, setDateOfBirth, setFirstName, setGender, setLanguageCode, setLastName, setNameDayDay, setNameDayMonth, setRegistrationDate, setRegistrationSource, setRegistrationStoreCode, setSalutationCode, setYearOfBirth, toString
-
-
-
-
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
-
-