Package com.adyen.model.checkout
Enum SessionResultResponse.StatusEnum
- java.lang.Object
-
- java.lang.Enum<SessionResultResponse.StatusEnum>
-
- com.adyen.model.checkout.SessionResultResponse.StatusEnum
-
- All Implemented Interfaces:
Serializable,Comparable<SessionResultResponse.StatusEnum>
- Enclosing class:
- SessionResultResponse
public static enum SessionResultResponse.StatusEnum extends Enum<SessionResultResponse.StatusEnum>
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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SessionResultResponse.StatusEnumfromValue(String value)StringgetValue()StringtoString()static SessionResultResponse.StatusEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static SessionResultResponse.StatusEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVE
public static final SessionResultResponse.StatusEnum ACTIVE
-
CANCELED
public static final SessionResultResponse.StatusEnum CANCELED
-
COMPLETED
public static final SessionResultResponse.StatusEnum COMPLETED
-
EXPIRED
public static final SessionResultResponse.StatusEnum EXPIRED
-
PAYMENTPENDING
public static final SessionResultResponse.StatusEnum PAYMENTPENDING
-
REFUSED
public static final SessionResultResponse.StatusEnum REFUSED
-
-
Method Detail
-
values
public static SessionResultResponse.StatusEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SessionResultResponse.StatusEnum c : SessionResultResponse.StatusEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SessionResultResponse.StatusEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public String getValue()
-
toString
public String toString()
- Overrides:
toStringin classEnum<SessionResultResponse.StatusEnum>
-
fromValue
public static SessionResultResponse.StatusEnum fromValue(String value)
-
-