Class ViasPhoneNumber


  • public class ViasPhoneNumber
    extends Object
    ViasPhoneNumber
    • Constructor Detail

      • ViasPhoneNumber

        public ViasPhoneNumber()
    • Method Detail

      • getPhoneCountryCode

        public String getPhoneCountryCode()
        The two-character country code of the phone number. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL').
        Returns:
        phoneCountryCode
      • setPhoneCountryCode

        public void setPhoneCountryCode​(String phoneCountryCode)
      • getPhoneNumber

        public String getPhoneNumber()
        The phone number. >The inclusion of the phone number country code is not necessary.
        Returns:
        phoneNumber
      • setPhoneNumber

        public void setPhoneNumber​(String phoneNumber)
      • getPhoneType

        public ViasPhoneNumber.PhoneTypeEnum getPhoneType()
        The type of the phone number. >The following values are permitted: `Landline`, `Mobile`, `SIP`, `Fax`.
        Returns:
        phoneType
      • equals

        public boolean equals​(Object o)
        Return true if this ViasPhoneNumber object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static ViasPhoneNumber fromJson​(String jsonString)
                                        throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of ViasPhoneNumber given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of ViasPhoneNumber
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to ViasPhoneNumber
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of ViasPhoneNumber to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException