Class AuthorisationDecisionResponse
- java.lang.Object
-
- com.adyen.model.relayedauthorizationwebhooks.AuthorisationDecisionResponse
-
public class AuthorisationDecisionResponse extends Object
AuthorisationDecisionResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuthorisationDecisionResponse.StatusEnumThe status of the authorization.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_REFUSAL_REASONstatic StringJSON_PROPERTY_STATUS
-
Constructor Summary
Constructors Constructor Description AuthorisationDecisionResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this AuthorisationDecisionResponse object is equal to o.static AuthorisationDecisionResponsefromJson(String jsonString)Create an instance of AuthorisationDecisionResponse given an JSON stringStringgetRefusalReason()The reason for refusing the authorization.AuthorisationDecisionResponse.StatusEnumgetStatus()The status of the authorization.inthashCode()AuthorisationDecisionResponserefusalReason(String refusalReason)The reason for refusing the authorization.voidsetRefusalReason(String refusalReason)The reason for refusing the authorization.voidsetStatus(AuthorisationDecisionResponse.StatusEnum status)The status of the authorization.AuthorisationDecisionResponsestatus(AuthorisationDecisionResponse.StatusEnum status)The status of the authorization.StringtoJson()Convert an instance of AuthorisationDecisionResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_REFUSAL_REASON
public static final String JSON_PROPERTY_REFUSAL_REASON
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
refusalReason
public AuthorisationDecisionResponse refusalReason(String refusalReason)
The reason for refusing the authorization.- Parameters:
refusalReason- The reason for refusing the authorization.- Returns:
- the current
AuthorisationDecisionResponseinstance, allowing for method chaining
-
getRefusalReason
public String getRefusalReason()
The reason for refusing the authorization.- Returns:
- refusalReason The reason for refusing the authorization.
-
setRefusalReason
public void setRefusalReason(String refusalReason)
The reason for refusing the authorization.- Parameters:
refusalReason- The reason for refusing the authorization.
-
status
public AuthorisationDecisionResponse status(AuthorisationDecisionResponse.StatusEnum status)
The status of the authorization. Possible values: * **Authorised** * **Refused** For more information, refer to [Use relayed authorization](https://docs.adyen.com/issuing/authorisation/relayed-authorisation/).- Parameters:
status- The status of the authorization. Possible values: * **Authorised** * **Refused** For more information, refer to [Use relayed authorization](https://docs.adyen.com/issuing/authorisation/relayed-authorisation/).- Returns:
- the current
AuthorisationDecisionResponseinstance, allowing for method chaining
-
getStatus
public AuthorisationDecisionResponse.StatusEnum getStatus()
The status of the authorization. Possible values: * **Authorised** * **Refused** For more information, refer to [Use relayed authorization](https://docs.adyen.com/issuing/authorisation/relayed-authorisation/).- Returns:
- status The status of the authorization. Possible values: * **Authorised** * **Refused** For more information, refer to [Use relayed authorization](https://docs.adyen.com/issuing/authorisation/relayed-authorisation/).
-
setStatus
public void setStatus(AuthorisationDecisionResponse.StatusEnum status)
The status of the authorization. Possible values: * **Authorised** * **Refused** For more information, refer to [Use relayed authorization](https://docs.adyen.com/issuing/authorisation/relayed-authorisation/).- Parameters:
status- The status of the authorization. Possible values: * **Authorised** * **Refused** For more information, refer to [Use relayed authorization](https://docs.adyen.com/issuing/authorisation/relayed-authorisation/).
-
equals
public boolean equals(Object o)
Return true if this AuthorisationDecisionResponse object is equal to o.
-
fromJson
public static AuthorisationDecisionResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AuthorisationDecisionResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AuthorisationDecisionResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AuthorisationDecisionResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AuthorisationDecisionResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-