Package com.adyen.model.recurring
Class PermitResult
- java.lang.Object
-
- com.adyen.model.recurring.PermitResult
-
public class PermitResult extends Object
PermitResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPermitResult.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_RESULT_KEYstatic StringSERIALIZED_NAME_TOKEN
-
Constructor Summary
Constructors Constructor Description PermitResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static PermitResultfromJson(String jsonString)Create an instance of PermitResult given an JSON stringStringgetResultKey()The key to link permit requests to permit results.StringgetToken()The permit token which is used to make payments by the partner company.inthashCode()PermitResultresultKey(String resultKey)voidsetResultKey(String resultKey)voidsetToken(String token)StringtoJson()Convert an instance of PermitResult to an JSON stringPermitResulttoken(String token)StringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_RESULT_KEY
public static final String SERIALIZED_NAME_RESULT_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOKEN
public static final String SERIALIZED_NAME_TOKEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
resultKey
public PermitResult resultKey(String resultKey)
-
getResultKey
public String getResultKey()
The key to link permit requests to permit results.- Returns:
- resultKey
-
setResultKey
public void setResultKey(String resultKey)
-
token
public PermitResult token(String token)
-
getToken
public String getToken()
The permit token which is used to make payments by the partner company.- Returns:
- token
-
setToken
public void setToken(String token)
-
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 PermitResult
-
fromJson
public static PermitResult fromJson(String jsonString) throws IOException
Create an instance of PermitResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PermitResult
- Throws:
IOException- if the JSON string is invalid with respect to PermitResult
-
toJson
public String toJson()
Convert an instance of PermitResult to an JSON string- Returns:
- JSON string
-
-