Package com.mypurecloud.sdk.v2.model
Class PhoneNumber
java.lang.Object
com.mypurecloud.sdk.v2.model.PhoneNumber
- All Implemented Interfaces:
Serializable
PhoneNumber
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptsSMS(Boolean acceptsSMS) Whether this phone number can accept SMS messages.countryCode(String countryCode) The detected country code from the provided phone number.The displayed form of the phone number string.The E164-formatted form of the provided phone number.booleanAn optional extension for the provided phone number.getE164()inthashCode()normalizationCountryCode(String normalizationCountryCode) The country code that will be used for E164 conversion of a provided phone number.voidsetAcceptsSMS(Boolean acceptsSMS) voidsetCountryCode(String countryCode) voidsetDisplay(String display) voidvoidsetExtension(Long extension) voidsetNormalizationCountryCode(String normalizationCountryCode) voidsetUserInput(String userInput) toString()The user-inputted phone number string that was provided to the display field on write.
-
Constructor Details
-
PhoneNumber
public PhoneNumber() -
PhoneNumber
-
-
Method Details
-
display
The displayed form of the phone number string. Users should input the phone number in this field, but it will be altered by the API on write. If the phone number can be read as E164, the value will be replaced with international formatted-version of the number. If the number cannot be read as E164, the value will be preserved as-is. In both cases, the provided input string will be copied to the userInput field. Max: 512 characters. -
getDisplay
-
setDisplay
-
extension
An optional extension for the provided phone number. -
getExtension
-
setExtension
-
acceptsSMS
Whether this phone number can accept SMS messages. -
getAcceptsSMS
-
setAcceptsSMS
-
normalizationCountryCode
The country code that will be used for E164 conversion of a provided phone number. If the country code is omitted from the provided phone number, the country code provided in this field will be used during the E164 conversion attempt. If this field is left empty, the default country code for any provided phone number that does not explicitly include a country code is assumed to be +1 (North America). -
getNormalizationCountryCode
-
setNormalizationCountryCode
-
userInput
The user-inputted phone number string that was provided to the display field on write. This field is not user-writeable and will always be set by the system. -
getUserInput
-
setUserInput
-
e164
The E164-formatted form of the provided phone number. This field is not user-writeable and will only be set when the provided phone number could be read as E164. -
getE164
-
setE164
-
countryCode
The detected country code from the provided phone number. This field is not user-writeable and will only be set when the provided phone number could be read as E164. Max: 4 characters. -
getCountryCode
-
setCountryCode
-
equals
-
hashCode
public int hashCode() -
toString
-