Class StoredValueVoidResponse


  • public class StoredValueVoidResponse
    extends Object
    StoredValueVoidResponse
    • Constructor Detail

      • StoredValueVoidResponse

        public StoredValueVoidResponse()
    • Method Detail

      • currentBalance

        public StoredValueVoidResponse currentBalance​(Amount currentBalance)
        currentBalance
        Parameters:
        currentBalance -
        Returns:
        the current StoredValueVoidResponse instance, allowing for method chaining
      • getCurrentBalance

        public Amount getCurrentBalance()
        currentBalance
        Returns:
        currentBalance
      • setCurrentBalance

        public void setCurrentBalance​(Amount currentBalance)
        currentBalance
        Parameters:
        currentBalance -
      • pspReference

        public StoredValueVoidResponse pspReference​(String pspReference)
        Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request.
        Parameters:
        pspReference -
        Returns:
        the current StoredValueVoidResponse instance, allowing for method chaining
      • getPspReference

        public String getPspReference()
        Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request.
        Returns:
        pspReference
      • setPspReference

        public void setPspReference​(String pspReference)
        Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request.
        Parameters:
        pspReference -
      • refusalReason

        public StoredValueVoidResponse refusalReason​(String refusalReason)
        If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values.
        Parameters:
        refusalReason -
        Returns:
        the current StoredValueVoidResponse instance, allowing for method chaining
      • getRefusalReason

        public String getRefusalReason()
        If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values.
        Returns:
        refusalReason
      • setRefusalReason

        public void setRefusalReason​(String refusalReason)
        If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values.
        Parameters:
        refusalReason -
      • resultCode

        public StoredValueVoidResponse resultCode​(StoredValueVoidResponse.ResultCodeEnum resultCode)
        The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks.
        Parameters:
        resultCode -
        Returns:
        the current StoredValueVoidResponse instance, allowing for method chaining
      • getResultCode

        public StoredValueVoidResponse.ResultCodeEnum getResultCode()
        The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks.
        Returns:
        resultCode
      • setResultCode

        public void setResultCode​(StoredValueVoidResponse.ResultCodeEnum resultCode)
        The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks.
        Parameters:
        resultCode -
      • thirdPartyRefusalReason

        public StoredValueVoidResponse thirdPartyRefusalReason​(String thirdPartyRefusalReason)
        Raw refusal reason received from the third party, where available
        Parameters:
        thirdPartyRefusalReason -
        Returns:
        the current StoredValueVoidResponse instance, allowing for method chaining
      • getThirdPartyRefusalReason

        public String getThirdPartyRefusalReason()
        Raw refusal reason received from the third party, where available
        Returns:
        thirdPartyRefusalReason
      • setThirdPartyRefusalReason

        public void setThirdPartyRefusalReason​(String thirdPartyRefusalReason)
        Raw refusal reason received from the third party, where available
        Parameters:
        thirdPartyRefusalReason -
      • equals

        public boolean equals​(Object o)
        Return true if this StoredValueVoidResponse object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static StoredValueVoidResponse fromJson​(String jsonString)
                                                throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of StoredValueVoidResponse given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of StoredValueVoidResponse
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to StoredValueVoidResponse
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of StoredValueVoidResponse to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException