Class TelephoneData
- java.lang.Object
-
- com.inteliqua.rest.customer.payload.telephone.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 Summary
Constructors Constructor Description TelephoneData()Default constructor required by Jackson for deserialization.TelephoneData(String telephoneNumber, String countryCode, TelephoneTypeEnum telephoneType, Boolean isPrimary)Constructs a newTelephoneDataobject with the specified values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(EntityAttribute entityAttribute)Adds an attribute to the list of telephone attributes.List<EntityAttribute>getAttributes()Gets the list of general attributes for the telephone.StringgetCountryCode()Gets the country code for the telephone number.BooleangetIsPrimary()Gets whether this telephone is the primary contact number.BooleangetIsVerified()Gets whether this telephone is the primary contact number.StringgetTelephoneNumber()Gets the telephone number.TelephoneTypeEnumgetTelephoneType()Gets the type of the telephone.voidsetCountryCode(String countryCode)Sets the country code for the telephone number.voidsetIsPrimary(Boolean isPrimary)Sets whether this telephone is the primary contact number.voidsetIsVerified(Boolean verified)Sets whether this telephone is the primary contact number.voidsetTelephoneNumber(String telephoneNumber)Sets the telephone number.voidsetTelephoneType(TelephoneTypeEnum telephoneType)Sets the type of the telephone.StringtoString()Returns a string representation of theTelephoneDataobject.
-
-
-
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 newTelephoneDataobject with the specified values.- Parameters:
telephoneNumber- the telephone number of the customercountryCode- the country code of the telephone numbertelephoneType- 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:
trueif this telephone is the primary contact number, otherwisefalse
-
setIsPrimary
public void setIsPrimary(Boolean isPrimary)
Sets whether this telephone is the primary contact number.- Parameters:
isPrimary-trueif this telephone is the primary contact number, otherwisefalse
-
getIsVerified
public Boolean getIsVerified()
Gets whether this telephone is the primary contact number.- Returns:
trueif this telephone is the primary contact number, otherwisefalse
-
setIsVerified
public void setIsVerified(Boolean verified)
Sets whether this telephone is the primary contact number.- Parameters:
verified-trueif this telephone is the primary contact number, otherwisefalse
-
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
-
-