Class AuthorisationDecisionResponse


  • public class AuthorisationDecisionResponse
    extends Object
    AuthorisationDecisionResponse
    • Constructor Detail

      • AuthorisationDecisionResponse

        public AuthorisationDecisionResponse()
    • 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 AuthorisationDecisionResponse instance, 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 AuthorisationDecisionResponse instance, 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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