Class Phone

    • Field Detail

      • type

        @JsonPropertyDescription("A type of phone for a person. Includes a standard type (e.g. \'mobile\', \'home\') and an optional, custom type to further identify the type of phone.")
        private Type__2 type
        Type

        A type of phone for a person. Includes a standard type (e.g. 'mobile', 'home') and an optional, custom type to further identify the type of phone. (Required)

      • preference

        @JsonPropertyDescription("Specifies if the phone is preferred over others of the same type. Only one phone should be set to primary for a person.")
        private Object preference
        Preferred Phone

        Specifies if the phone is preferred over others of the same type. Only one phone should be set to primary for a person.

      • countryCallingCode

        @JsonPropertyDescription("The country calling code of telephone and/or mobile device when dialing internationally.")
        private Object countryCallingCode
        Country Calling Code

        The country calling code of telephone and/or mobile device when dialing internationally.

      • number

        @JsonPropertyDescription("The number assigned to the phone.")
        private String number
        Number

        The number assigned to the phone. (Required)

      • extension

        @JsonPropertyDescription("The extension used to connect to the phone when multiple phones share the same primary number.")
        private String extension
        Extension

        The extension used to connect to the phone when multiple phones share the same primary number.

    • Constructor Detail

      • Phone

        public Phone()
    • Method Detail

      • getType

        public Type__2 getType()
        Type

        A type of phone for a person. Includes a standard type (e.g. 'mobile', 'home') and an optional, custom type to further identify the type of phone. (Required)

      • setType

        public void setType​(Type__2 type)
        Type

        A type of phone for a person. Includes a standard type (e.g. 'mobile', 'home') and an optional, custom type to further identify the type of phone. (Required)

      • getPreference

        public Object getPreference()
        Preferred Phone

        Specifies if the phone is preferred over others of the same type. Only one phone should be set to primary for a person.

      • setPreference

        public void setPreference​(Object preference)
        Preferred Phone

        Specifies if the phone is preferred over others of the same type. Only one phone should be set to primary for a person.

      • withPreference

        public Phone withPreference​(Object preference)
      • getCountryCallingCode

        public Object getCountryCallingCode()
        Country Calling Code

        The country calling code of telephone and/or mobile device when dialing internationally.

      • setCountryCallingCode

        public void setCountryCallingCode​(Object countryCallingCode)
        Country Calling Code

        The country calling code of telephone and/or mobile device when dialing internationally.

      • withCountryCallingCode

        public Phone withCountryCallingCode​(Object countryCallingCode)
      • getNumber

        public String getNumber()
        Number

        The number assigned to the phone. (Required)

      • setNumber

        public void setNumber​(String number)
        Number

        The number assigned to the phone. (Required)

      • withNumber

        public Phone withNumber​(String number)
      • getExtension

        public String getExtension()
        Extension

        The extension used to connect to the phone when multiple phones share the same primary number.

      • setExtension

        public void setExtension​(String extension)
        Extension

        The extension used to connect to the phone when multiple phones share the same primary number.

      • withExtension

        public Phone withExtension​(String extension)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object