Class TelephoneData

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    TelephoneDataResponse

    public class TelephoneData
    extends Object
    implements Serializable
    Represents the telephone information for a customer. This class contains attributes such as the telephone number, country code, telephone type, and whether the telephone is the primary contact. It is used in customer-related operations for storing and processing customer contact details.
    Author:
    tpapad
    See Also:
    Serialized Form
    • Constructor Detail

      • TelephoneData

        public TelephoneData()
        Default constructor required by Jackson for deserialization.
      • TelephoneData

        public TelephoneData​(String telephoneNumber,
                             String countryCode,
                             TelephoneTypeEnum telephoneType,
                             Boolean isPrimary)
        Constructs a new TelephoneData object with the specified values.
        Parameters:
        telephoneNumber - the telephone number of the customer
        countryCode - the country code of the telephone number
        telephoneType - the type of the telephone (e.g., MOBILE, HOME_PHONE)
        isPrimary - indicates if the telephone is the primary contact number
    • Method Detail

      • getTelephoneNumber

        public String getTelephoneNumber()
        Gets the telephone number.
        Returns:
        the telephone number
      • setTelephoneNumber

        public void setTelephoneNumber​(String telephoneNumber)
        Sets the telephone number.
        Parameters:
        telephoneNumber - the telephone number to set
      • getCountryCode

        public String getCountryCode()
        Gets the country code for the telephone number.
        Returns:
        the country code
      • setCountryCode

        public void setCountryCode​(String countryCode)
        Sets the country code for the telephone number.
        Parameters:
        countryCode - the country code to set
      • getTelephoneType

        public TelephoneTypeEnum getTelephoneType()
        Gets the type of the telephone.
        Returns:
        the telephone type
      • setTelephoneType

        public void setTelephoneType​(TelephoneTypeEnum telephoneType)
        Sets the type of the telephone.
        Parameters:
        telephoneType - the telephone type to set
      • getIsPrimary

        public Boolean getIsPrimary()
        Gets whether this telephone is the primary contact number.
        Returns:
        true if this telephone is the primary contact number, otherwise false
      • setIsPrimary

        public void setIsPrimary​(Boolean isPrimary)
        Sets whether this telephone is the primary contact number.
        Parameters:
        isPrimary - true if this telephone is the primary contact number, otherwise false
      • getIsVerified

        public Boolean getIsVerified()
        Gets whether this telephone is the primary contact number.
        Returns:
        true if this telephone is the primary contact number, otherwise false
      • setIsVerified

        public void setIsVerified​(Boolean verified)
        Sets whether this telephone is the primary contact number.
        Parameters:
        verified - true if this telephone is the primary contact number, otherwise false
      • getAttributes

        public List<EntityAttribute> getAttributes()
        Gets the list of general attributes for the telephone.
        Returns:
        the list of attributes
      • addAttribute

        public void addAttribute​(EntityAttribute entityAttribute)
        Adds an attribute to the list of telephone attributes.
        Parameters:
        entityAttribute - the attribute to add
      • toString

        public String toString()
        Returns a string representation of the TelephoneData object.
        Overrides:
        toString in class Object
        Returns:
        a string representation of the object