Class AuthorisationDecisionRequest
- java.lang.Object
-
- com.adyen.model.relayedauthorizationwebhooks.AuthorisationDecisionRequest
-
public class AuthorisationDecisionRequest extends Object
AuthorisationDecisionRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_REASON_CODEstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_STATUS_CODE
-
Constructor Summary
Constructors Constructor Description AuthorisationDecisionRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this AuthorisationDecisionRequest object is equal to o.static AuthorisationDecisionRequestfromJson(String jsonString)Create an instance of AuthorisationDecisionRequest given an JSON stringStringgetReasonCode()The reason of the authorization decision.StringgetStatus()The status of the authorization decision.StringgetStatusCode()The code of the authorization decision.inthashCode()AuthorisationDecisionRequestreasonCode(String reasonCode)The reason of the authorization decision.voidsetReasonCode(String reasonCode)The reason of the authorization decision.voidsetStatus(String status)The status of the authorization decision.voidsetStatusCode(String statusCode)The code of the authorization decision.AuthorisationDecisionRequeststatus(String status)The status of the authorization decision.AuthorisationDecisionRequeststatusCode(String statusCode)The code of the authorization decision.StringtoJson()Convert an instance of AuthorisationDecisionRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_REASON_CODE
public static final String JSON_PROPERTY_REASON_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS_CODE
public static final String JSON_PROPERTY_STATUS_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
reasonCode
public AuthorisationDecisionRequest reasonCode(String reasonCode)
The reason of the authorization decision.- Parameters:
reasonCode- The reason of the authorization decision.- Returns:
- the current
AuthorisationDecisionRequestinstance, allowing for method chaining
-
getReasonCode
public String getReasonCode()
The reason of the authorization decision.- Returns:
- reasonCode The reason of the authorization decision.
-
setReasonCode
public void setReasonCode(String reasonCode)
The reason of the authorization decision.- Parameters:
reasonCode- The reason of the authorization decision.
-
status
public AuthorisationDecisionRequest status(String status)
The status of the authorization decision. Possible values: **Authorised** or **Refused**.- Parameters:
status- The status of the authorization decision. Possible values: **Authorised** or **Refused**.- Returns:
- the current
AuthorisationDecisionRequestinstance, allowing for method chaining
-
getStatus
public String getStatus()
The status of the authorization decision. Possible values: **Authorised** or **Refused**.- Returns:
- status The status of the authorization decision. Possible values: **Authorised** or **Refused**.
-
setStatus
public void setStatus(String status)
The status of the authorization decision. Possible values: **Authorised** or **Refused**.- Parameters:
status- The status of the authorization decision. Possible values: **Authorised** or **Refused**.
-
statusCode
public AuthorisationDecisionRequest statusCode(String statusCode)
The code of the authorization decision.- Parameters:
statusCode- The code of the authorization decision.- Returns:
- the current
AuthorisationDecisionRequestinstance, allowing for method chaining
-
getStatusCode
public String getStatusCode()
The code of the authorization decision.- Returns:
- statusCode The code of the authorization decision.
-
setStatusCode
public void setStatusCode(String statusCode)
The code of the authorization decision.- Parameters:
statusCode- The code of the authorization decision.
-
equals
public boolean equals(Object o)
Return true if this AuthorisationDecisionRequest object is equal to o.
-
fromJson
public static AuthorisationDecisionRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AuthorisationDecisionRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AuthorisationDecisionRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AuthorisationDecisionRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AuthorisationDecisionRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-