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, and the payment was authorized. * **paymentPending**: the shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow, like voucher payments where the shopper completes the payment in a physical shop. * **refused**: the session has been refused, because of too many refused payment attempts. The shopper can no longer complete the payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. The shopper can no longer complete the payment with this session. By default, the session expires one hour after it is created.
-
-
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)
-
-