Package com.adyen.model.checkout
Class SessionResultResponse
- java.lang.Object
-
- com.adyen.model.checkout.SessionResultResponse
-
public class SessionResultResponse extends Object
SessionResultResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSessionResultResponse.StatusEnumThe status of the session.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_STATUS
-
Constructor Summary
Constructors Constructor Description SessionResultResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this SessionResultResponse object is equal to o.static SessionResultResponsefromJson(String jsonString)Create an instance of SessionResultResponse given an JSON stringStringgetId()A unique identifier of the session.SessionResultResponse.StatusEnumgetStatus()The status of the session.inthashCode()SessionResultResponseid(String id)A unique identifier of the session.voidsetId(String id)A unique identifier of the session.voidsetStatus(SessionResultResponse.StatusEnum status)The status of the session.SessionResultResponsestatus(SessionResultResponse.StatusEnum status)The status of the session.StringtoJson()Convert an instance of SessionResultResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public SessionResultResponse id(String id)
A unique identifier of the session.- Parameters:
id-- Returns:
- the current
SessionResultResponseinstance, 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
SessionResultResponseinstance, 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.
-
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
-
-