Class Phone


  • public final class Phone
    extends java.lang.Object
    phone The account holder's phone number.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Phone.PhoneBuilder  
    • Constructor Summary

      Constructors 
      Constructor Description
      Phone()  
      Phone​(CountryCode countryCode, java.lang.String number)
      Creates a new Phone instance.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Phone.PhoneBuilder builder()  
      boolean equals​(java.lang.Object o)  
      CountryCode getCountryCode()
      The international dialing code for the account holder's address country, as an ITU-T E.164 code.
      java.lang.String getNumber()
      The digits for the phone number, not including the country_code.
      int hashCode()  
      void setCountryCode​(CountryCode countryCode)
      The international dialing code for the account holder's address country, as an ITU-T E.164 code.
      void setNumber​(java.lang.String number)
      The digits for the phone number, not including the country_code.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Phone

        public Phone()
      • Phone

        public Phone​(CountryCode countryCode,
                     java.lang.String number)
        Creates a new Phone instance.
        Parameters:
        countryCode - The international dialing code for the account holder's address country, as an ITU-T E.164 code. [Required] [ 1 .. 7 ] characters
        number - The digits for the phone number, not including the country_code. [Required] [ 6 .. 25 ] characters
    • Method Detail

      • getCountryCode

        public CountryCode getCountryCode()
        The international dialing code for the account holder's address country, as an ITU-T E.164 code. [Required] [ 1 .. 7 ] characters
      • getNumber

        public java.lang.String getNumber()
        The digits for the phone number, not including the country_code. [Required] [ 6 .. 25 ] characters
      • setCountryCode

        public void setCountryCode​(CountryCode countryCode)
        The international dialing code for the account holder's address country, as an ITU-T E.164 code. [Required] [ 1 .. 7 ] characters
      • setNumber

        public void setNumber​(java.lang.String number)
        The digits for the phone number, not including the country_code. [Required] [ 6 .. 25 ] characters
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object