Package com.adyen.model.recurring
Class PermitResult
- java.lang.Object
-
- com.adyen.model.recurring.PermitResult
-
public class PermitResult extends Object
PermitResult
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_RESULT_KEYstatic StringJSON_PROPERTY_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)Return true if this PermitResult object is equal to 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)The key to link permit requests to permit results.voidsetResultKey(String resultKey)The key to link permit requests to permit results.voidsetToken(String token)The permit token which is used to make payments by the partner company.StringtoJson()Convert an instance of PermitResult to an JSON stringPermitResulttoken(String token)The permit token which is used to make payments by the partner company.StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_RESULT_KEY
public static final String JSON_PROPERTY_RESULT_KEY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOKEN
public static final String JSON_PROPERTY_TOKEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
resultKey
public PermitResult resultKey(String resultKey)
The key to link permit requests to permit results.- Parameters:
resultKey-- Returns:
- the current
PermitResultinstance, allowing for method chaining
-
getResultKey
public String getResultKey()
The key to link permit requests to permit results.- Returns:
- resultKey
-
setResultKey
public void setResultKey(String resultKey)
The key to link permit requests to permit results.- Parameters:
resultKey-
-
token
public PermitResult token(String token)
The permit token which is used to make payments by the partner company.- Parameters:
token-- Returns:
- the current
PermitResultinstance, allowing for method chaining
-
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)
The permit token which is used to make payments by the partner company.- Parameters:
token-
-
equals
public boolean equals(Object o)
Return true if this PermitResult object is equal to o.
-
fromJson
public static PermitResult fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PermitResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PermitResult
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PermitResult
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PermitResult to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-