Class SessionResultResponse


  • public class SessionResultResponse
    extends Object
    SessionResultResponse
    • Constructor Detail

      • SessionResultResponse

        public SessionResultResponse()
    • Method Detail

      • id

        public SessionResultResponse id​(String id)
        A unique identifier of the session.
        Parameters:
        id -
        Returns:
        the current SessionResultResponse instance, allowing for method chaining
      • getId

        public String getId()
        A unique identifier of the session.
        Returns:
        id
      • setId

        public void setId​(String id)
        A unique identifier of the session.
        Parameters:
        id -
      • status

        public SessionResultResponse status​(SessionResultResponse.StatusEnum status)
        The status of the session. The status included in the response doesn't get updated. Don't make the request again to check for payment status updates. Possible values: * **completed** – The shopper completed the payment. This means that the payment was authorized. * **paymentPending** – The shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow. * **refused** – The session has been refused, due to too many refused payment attempts. Shoppers can no longer complete the payment with this session. * **canceled** – The shopper canceled the payment. * **active** – The session is still active and can be paid. * **expired** – The session expired (default: 1 hour after session creation). Shoppers can no longer complete the payment with this session.
        Parameters:
        status -
        Returns:
        the current SessionResultResponse instance, allowing for method chaining
      • getStatus

        public SessionResultResponse.StatusEnum getStatus()
        The status of the session. The status included in the response doesn't get updated. Don't make the request again to check for payment status updates. Possible values: * **completed** – The shopper completed the payment. This means that the payment was authorized. * **paymentPending** – The shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow. * **refused** – The session has been refused, due to too many refused payment attempts. Shoppers can no longer complete the payment with this session. * **canceled** – The shopper canceled the payment. * **active** – The session is still active and can be paid. * **expired** – The session expired (default: 1 hour after session creation). Shoppers can no longer complete the payment with this session.
        Returns:
        status
      • setStatus

        public void setStatus​(SessionResultResponse.StatusEnum status)
        The status of the session. The status included in the response doesn't get updated. Don't make the request again to check for payment status updates. Possible values: * **completed** – The shopper completed the payment. This means that the payment was authorized. * **paymentPending** – The shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow. * **refused** – The session has been refused, due to too many refused payment attempts. Shoppers can no longer complete the payment with this session. * **canceled** – The shopper canceled the payment. * **active** – The session is still active and can be paid. * **expired** – The session expired (default: 1 hour after session creation). Shoppers can no longer complete the payment with this session.
        Parameters:
        status -
      • equals

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

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

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

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