Package com.adyen.model.marketpayaccount
Class ViasPhoneNumber
- java.lang.Object
-
- com.adyen.model.marketpayaccount.ViasPhoneNumber
-
public class ViasPhoneNumber extends Object
ViasPhoneNumber
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classViasPhoneNumber.PhoneTypeEnumThe type of the phone number.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_PHONE_COUNTRY_CODEstatic StringJSON_PROPERTY_PHONE_NUMBERstatic StringJSON_PROPERTY_PHONE_TYPE
-
Constructor Summary
Constructors Constructor Description ViasPhoneNumber()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this ViasPhoneNumber object is equal to o.static ViasPhoneNumberfromJson(String jsonString)Create an instance of ViasPhoneNumber given an JSON stringStringgetPhoneCountryCode()The two-character country code of the phone number.StringgetPhoneNumber()The phone number.ViasPhoneNumber.PhoneTypeEnumgetPhoneType()The type of the phone number.inthashCode()ViasPhoneNumberphoneCountryCode(String phoneCountryCode)ViasPhoneNumberphoneNumber(String phoneNumber)ViasPhoneNumberphoneType(ViasPhoneNumber.PhoneTypeEnum phoneType)voidsetPhoneCountryCode(String phoneCountryCode)voidsetPhoneNumber(String phoneNumber)voidsetPhoneType(ViasPhoneNumber.PhoneTypeEnum phoneType)StringtoJson()Convert an instance of ViasPhoneNumber to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_PHONE_COUNTRY_CODE
public static final String JSON_PROPERTY_PHONE_COUNTRY_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PHONE_NUMBER
public static final String JSON_PROPERTY_PHONE_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PHONE_TYPE
public static final String JSON_PROPERTY_PHONE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
phoneCountryCode
public ViasPhoneNumber phoneCountryCode(String phoneCountryCode)
-
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)
-
phoneNumber
public ViasPhoneNumber phoneNumber(String phoneNumber)
-
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)
-
phoneType
public ViasPhoneNumber phoneType(ViasPhoneNumber.PhoneTypeEnum phoneType)
-
getPhoneType
public ViasPhoneNumber.PhoneTypeEnum getPhoneType()
The type of the phone number. >The following values are permitted: `Landline`, `Mobile`, `SIP`, `Fax`.- Returns:
- phoneType
-
setPhoneType
public void setPhoneType(ViasPhoneNumber.PhoneTypeEnum phoneType)
-
equals
public boolean equals(Object o)
Return true if this ViasPhoneNumber object is equal to o.
-
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
-
-