public enum StoredPaymentSourceUsageType extends Enum<StoredPaymentSourceUsageType>
| Enum Constant and Description |
|---|
_UNKNOWN
Unknown values will be mapped by this enum member
|
DERIVED
Indicates that PayPal will derive the value of `FIRST` or `SUBSEQUENT` based on data available to PayPal.
|
FIRST
Indicates the Initial/First payment with a payment_source that is intended to be stored upon successful processing of the payment.
|
SUBSEQUENT
Indicates a payment using a stored payment_source which has been successfully used previously for a payment.
|
| Modifier and Type | Method and Description |
|---|---|
static StoredPaymentSourceUsageType |
constructFromString(String toConvert)
Returns the enum member associated with the given string value.
|
static StoredPaymentSourceUsageType |
fromString(String toConvert)
Returns the enum member associated with the given string value.
|
String |
toString()
Get string representation of this enum.
|
static List<String> |
toValue(List<StoredPaymentSourceUsageType> toConvert)
Convert list of StoredPaymentSourceUsageType values to list of string values.
|
String |
value()
Returns the string value associated with the enum member.
|
static StoredPaymentSourceUsageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StoredPaymentSourceUsageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StoredPaymentSourceUsageType FIRST
public static final StoredPaymentSourceUsageType SUBSEQUENT
public static final StoredPaymentSourceUsageType DERIVED
public static final StoredPaymentSourceUsageType _UNKNOWN
public static StoredPaymentSourceUsageType[] values()
for (StoredPaymentSourceUsageType c : StoredPaymentSourceUsageType.values()) System.out.println(c);
public static StoredPaymentSourceUsageType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static StoredPaymentSourceUsageType constructFromString(String toConvert) throws IOException
toConvert - String value to get enum member.IOException - when provided value is not mapped to any enum member.public static StoredPaymentSourceUsageType fromString(String toConvert)
toConvert - String value to get enum member.public String value()
public String toString()
toString in class Enum<StoredPaymentSourceUsageType>public static List<String> toValue(List<StoredPaymentSourceUsageType> toConvert)
toConvert - The list of StoredPaymentSourceUsageType values to convert.Copyright © 2025. All rights reserved.