Package com.adyen.model.recurring
Class TokenDetails
- java.lang.Object
-
- com.adyen.model.recurring.TokenDetails
-
public class TokenDetails extends Object
TokenDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTokenDetails.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_TOKEN_DATAstatic StringSERIALIZED_NAME_TOKEN_DATA_TYPE
-
Constructor Summary
Constructors Constructor Description TokenDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static TokenDetailsfromJson(String jsonString)Create an instance of TokenDetails given an JSON stringMap<String,String>getTokenData()Get tokenDataStringgetTokenDataType()Get tokenDataTypeinthashCode()TokenDetailsputTokenDataItem(String key, String tokenDataItem)voidsetTokenData(Map<String,String> tokenData)voidsetTokenDataType(String tokenDataType)StringtoJson()Convert an instance of TokenDetails to an JSON stringTokenDetailstokenData(Map<String,String> tokenData)TokenDetailstokenDataType(String tokenDataType)StringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_TOKEN_DATA
public static final String SERIALIZED_NAME_TOKEN_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOKEN_DATA_TYPE
public static final String SERIALIZED_NAME_TOKEN_DATA_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
tokenData
public TokenDetails tokenData(Map<String,String> tokenData)
-
putTokenDataItem
public TokenDetails putTokenDataItem(String key, String tokenDataItem)
-
tokenDataType
public TokenDetails tokenDataType(String tokenDataType)
-
getTokenDataType
public String getTokenDataType()
Get tokenDataType- Returns:
- tokenDataType
-
setTokenDataType
public void setTokenDataType(String tokenDataType)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to TokenDetails
-
fromJson
public static TokenDetails fromJson(String jsonString) throws IOException
Create an instance of TokenDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TokenDetails
- Throws:
IOException- if the JSON string is invalid with respect to TokenDetails
-
toJson
public String toJson()
Convert an instance of TokenDetails to an JSON string- Returns:
- JSON string
-
-