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 **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone.
-
-
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
-
SUSPENDED
public static final PaymentInstrument.StatusEnum SUSPENDED
-
-
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)
-
-