Package com.adyen.model.tapi
Class MobileData
- java.lang.Object
-
- com.adyen.model.tapi.MobileData
-
public class MobileData extends Object
Mobile phone is used as a payment instrument for the transaction. Information related to the mobile for the payment transaction.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_GEOLOCATIONstatic StringJSON_PROPERTY_MASKED_M_S_I_S_D_Nstatic StringJSON_PROPERTY_MOBILE_COUNTRY_CODEstatic StringJSON_PROPERTY_MOBILE_NETWORK_CODEstatic StringJSON_PROPERTY_PROTECTED_MOBILE_DATAstatic StringJSON_PROPERTY_SENSITIVE_MOBILE_DATA
-
Constructor Summary
Constructors Constructor Description MobileData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this MobileData object is equal to o.static MobileDatafromJson(String jsonString)Create an instance of MobileData given an JSON stringMobileDatageolocation(Geolocation geolocation)geolocationMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.GeolocationgetGeolocation()Get geolocationIntegergetMaskedMSISDN()Masked Mobile Subscriber Integrated Service Digital Network.IntegergetMobileCountryCode()Identifies the country of a mobile phone operator.IntegergetMobileNetworkCode()Identifies the mobile phone operator inside a country.StringgetProtectedMobileData()Sensitive information related to the mobile phone, protected by CMS.SensitiveMobileDatagetSensitiveMobileData()Get sensitiveMobileDatainthashCode()MobileDataincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.MobileDatamaskedMSISDN(Integer maskedMSISDN)Masked Mobile Subscriber Integrated Service Digital Network.MobileDatamobileCountryCode(Integer mobileCountryCode)Identifies the country of a mobile phone operator.MobileDatamobileNetworkCode(Integer mobileNetworkCode)Identifies the mobile phone operator inside a country.MobileDataprotectedMobileData(String protectedMobileData)Sensitive information related to the mobile phone, protected by CMS.MobileDatasensitiveMobileData(SensitiveMobileData sensitiveMobileData)sensitiveMobileDatavoidsetGeolocation(Geolocation geolocation)geolocationvoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetMaskedMSISDN(Integer maskedMSISDN)Masked Mobile Subscriber Integrated Service Digital Network.voidsetMobileCountryCode(Integer mobileCountryCode)Identifies the country of a mobile phone operator.voidsetMobileNetworkCode(Integer mobileNetworkCode)Identifies the mobile phone operator inside a country.voidsetProtectedMobileData(String protectedMobileData)Sensitive information related to the mobile phone, protected by CMS.voidsetSensitiveMobileData(SensitiveMobileData sensitiveMobileData)sensitiveMobileDataStringtoJson()Convert an instance of MobileData to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_MOBILE_COUNTRY_CODE
public static final String JSON_PROPERTY_MOBILE_COUNTRY_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MOBILE_NETWORK_CODE
public static final String JSON_PROPERTY_MOBILE_NETWORK_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MASKED_M_S_I_S_D_N
public static final String JSON_PROPERTY_MASKED_M_S_I_S_D_N
- See Also:
- Constant Field Values
-
JSON_PROPERTY_GEOLOCATION
public static final String JSON_PROPERTY_GEOLOCATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PROTECTED_MOBILE_DATA
public static final String JSON_PROPERTY_PROTECTED_MOBILE_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SENSITIVE_MOBILE_DATA
public static final String JSON_PROPERTY_SENSITIVE_MOBILE_DATA
- See Also:
- Constant Field Values
-
-
Method Detail
-
mobileCountryCode
public MobileData mobileCountryCode(Integer mobileCountryCode)
Identifies the country of a mobile phone operator. If data available.- Parameters:
mobileCountryCode- Identifies the country of a mobile phone operator. If data available.- Returns:
- the current
MobileDatainstance, allowing for method chaining
-
getMobileCountryCode
public Integer getMobileCountryCode()
Identifies the country of a mobile phone operator. If data available. minimum: 3 maximum: 3- Returns:
- mobileCountryCode Identifies the country of a mobile phone operator. If data available.
-
setMobileCountryCode
public void setMobileCountryCode(Integer mobileCountryCode)
Identifies the country of a mobile phone operator. If data available.- Parameters:
mobileCountryCode- Identifies the country of a mobile phone operator. If data available.
-
mobileNetworkCode
public MobileData mobileNetworkCode(Integer mobileNetworkCode)
Identifies the mobile phone operator inside a country. If data available.- Parameters:
mobileNetworkCode- Identifies the mobile phone operator inside a country. If data available.- Returns:
- the current
MobileDatainstance, allowing for method chaining
-
getMobileNetworkCode
public Integer getMobileNetworkCode()
Identifies the mobile phone operator inside a country. If data available. minimum: 2 maximum: 3- Returns:
- mobileNetworkCode Identifies the mobile phone operator inside a country. If data available.
-
setMobileNetworkCode
public void setMobileNetworkCode(Integer mobileNetworkCode)
Identifies the mobile phone operator inside a country. If data available.- Parameters:
mobileNetworkCode- Identifies the mobile phone operator inside a country. If data available.
-
maskedMSISDN
public MobileData maskedMSISDN(Integer maskedMSISDN)
Masked Mobile Subscriber Integrated Service Digital Network. If data available.- Parameters:
maskedMSISDN- Masked Mobile Subscriber Integrated Service Digital Network. If data available.- Returns:
- the current
MobileDatainstance, allowing for method chaining
-
getMaskedMSISDN
public Integer getMaskedMSISDN()
Masked Mobile Subscriber Integrated Service Digital Network. If data available.- Returns:
- maskedMSISDN Masked Mobile Subscriber Integrated Service Digital Network. If data available.
-
setMaskedMSISDN
public void setMaskedMSISDN(Integer maskedMSISDN)
Masked Mobile Subscriber Integrated Service Digital Network. If data available.- Parameters:
maskedMSISDN- Masked Mobile Subscriber Integrated Service Digital Network. If data available.
-
geolocation
public MobileData geolocation(Geolocation geolocation)
geolocation- Parameters:
geolocation-- Returns:
- the current
MobileDatainstance, allowing for method chaining
-
getGeolocation
public Geolocation getGeolocation()
Get geolocation- Returns:
- geolocation
-
setGeolocation
public void setGeolocation(Geolocation geolocation)
geolocation- Parameters:
geolocation-
-
protectedMobileData
public MobileData protectedMobileData(String protectedMobileData)
Sensitive information related to the mobile phone, protected by CMS. SensitiveMobileData.- Parameters:
protectedMobileData- Sensitive information related to the mobile phone, protected by CMS. SensitiveMobileData.- Returns:
- the current
MobileDatainstance, allowing for method chaining
-
getProtectedMobileData
public String getProtectedMobileData()
Sensitive information related to the mobile phone, protected by CMS. SensitiveMobileData.- Returns:
- protectedMobileData Sensitive information related to the mobile phone, protected by CMS. SensitiveMobileData.
-
setProtectedMobileData
public void setProtectedMobileData(String protectedMobileData)
Sensitive information related to the mobile phone, protected by CMS. SensitiveMobileData.- Parameters:
protectedMobileData- Sensitive information related to the mobile phone, protected by CMS. SensitiveMobileData.
-
sensitiveMobileData
public MobileData sensitiveMobileData(SensitiveMobileData sensitiveMobileData)
sensitiveMobileData- Parameters:
sensitiveMobileData-- Returns:
- the current
MobileDatainstance, allowing for method chaining
-
getSensitiveMobileData
public SensitiveMobileData getSensitiveMobileData()
Get sensitiveMobileData- Returns:
- sensitiveMobileData
-
setSensitiveMobileData
public void setSensitiveMobileData(SensitiveMobileData sensitiveMobileData)
sensitiveMobileData- Parameters:
sensitiveMobileData-
-
includeNullValues
public MobileData includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this MobileData object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static MobileData fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of MobileData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MobileData
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to MobileData
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of MobileData to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-