Class Phone
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.payments.postpayments.requests.unreferencedrefundrequest.destination.common.accountholder.common.phone.Phone
-
public final class Phone extends java.lang.Objectphone The account holder's phone number.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPhone.PhoneBuilder
-
Constructor Summary
Constructors Constructor Description Phone()Phone(CountryCode countryCode, java.lang.String number)Creates a newPhoneinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Phone.PhoneBuilderbuilder()booleanequals(java.lang.Object o)CountryCodegetCountryCode()The international dialing code for the account holder's address country, as an ITU-T E.164 code.java.lang.StringgetNumber()The digits for the phone number, not including the country_code.inthashCode()voidsetCountryCode(CountryCode countryCode)The international dialing code for the account holder's address country, as an ITU-T E.164 code.voidsetNumber(java.lang.String number)The digits for the phone number, not including the country_code.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Phone
public Phone()
-
Phone
public Phone(CountryCode countryCode, java.lang.String number)
Creates a newPhoneinstance.- Parameters:
countryCode- The international dialing code for the account holder's address country, as an ITU-T E.164 code. [Required] [ 1 .. 7 ] charactersnumber- The digits for the phone number, not including the country_code. [Required] [ 6 .. 25 ] characters
-
-
Method Detail
-
builder
public static Phone.PhoneBuilder builder()
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-