Enum PaymentInstrument.StatusEnum
- java.lang.Object
-
- java.lang.Enum<PaymentInstrument.StatusEnum>
-
- com.adyen.model.configurationwebhooks.PaymentInstrument.StatusEnum
-
- All Implemented Interfaces:
Serializable,Comparable<PaymentInstrument.StatusEnum>
- Enclosing class:
- PaymentInstrument
public static enum PaymentInstrument.StatusEnum extends Enum<PaymentInstrument.StatusEnum>
The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **Active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **Requested**. Possible values: * **Active**: The payment instrument is active and can be used to make payments. * **Requested**: The payment instrument has been requested. This state is applicable for physical cards. * **Inactive**: The payment instrument is inactive and cannot be used to make payments. * **Suspended**: The payment instrument is temporarily suspended and cannot be used to make payments. * **Closed**: The payment instrument is permanently closed. This action cannot be undone. * **Stolen** * **Lost**
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PaymentInstrument.StatusEnumfromValue(String value)StringgetValue()StringtoString()static PaymentInstrument.StatusEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static PaymentInstrument.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 PaymentInstrument.StatusEnum ACTIVE
-
CLOSED
public static final PaymentInstrument.StatusEnum CLOSED
-
INACTIVE
public static final PaymentInstrument.StatusEnum INACTIVE
-
LOST
public static final PaymentInstrument.StatusEnum LOST
-
REQUESTED
public static final PaymentInstrument.StatusEnum REQUESTED
-
STOLEN
public static final PaymentInstrument.StatusEnum STOLEN
-
SUSPENDED
public static final PaymentInstrument.StatusEnum SUSPENDED
-
BLOCKED
public static final PaymentInstrument.StatusEnum BLOCKED
-
DISCARDED
public static final PaymentInstrument.StatusEnum DISCARDED
-
-
Method Detail
-
values
public static PaymentInstrument.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 (PaymentInstrument.StatusEnum c : PaymentInstrument.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 PaymentInstrument.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<PaymentInstrument.StatusEnum>
-
fromValue
public static PaymentInstrument.StatusEnum fromValue(String value)
-
-