public enum ReasonCode extends Enum<ReasonCode>
| Enum Constant and Description |
|---|
_UNKNOWN
Unknown values will be mapped by this enum member
|
CURRENCY_MISMATCH
The transaction is declined due to a currency mismatch.
|
INTERNAL_SERVER_ERROR
An internal server error has occurred.
|
PAYEE_ACCOUNT_RESTRICTED
The payee account is not in good standing and cannot receive payments.
|
PAYER_ACCOUNT_RESTRICTED
The payer account is not in good standing and cannot make payments.
|
PAYER_CANNOT_PAY
Payer cannot pay for this transaction.
|
PAYMENT_DENIED
PayPal declined the payment due to one or more customer issues.
|
SENDING_LIMIT_EXCEEDED
The transaction exceeds the payer's sending limit.
|
TRANSACTION_RECEIVING_LIMIT_EXCEEDED
The transaction exceeds the receiver's receiving limit.
|
| Modifier and Type | Method and Description |
|---|---|
static ReasonCode |
constructFromString(String toConvert)
Returns the enum member associated with the given string value.
|
static ReasonCode |
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<ReasonCode> toConvert)
Convert list of ReasonCode values to list of string values.
|
String |
value()
Returns the string value associated with the enum member.
|
static ReasonCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReasonCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReasonCode PAYMENT_DENIED
public static final ReasonCode INTERNAL_SERVER_ERROR
public static final ReasonCode PAYEE_ACCOUNT_RESTRICTED
public static final ReasonCode PAYER_ACCOUNT_RESTRICTED
public static final ReasonCode PAYER_CANNOT_PAY
public static final ReasonCode SENDING_LIMIT_EXCEEDED
public static final ReasonCode TRANSACTION_RECEIVING_LIMIT_EXCEEDED
public static final ReasonCode CURRENCY_MISMATCH
public static final ReasonCode _UNKNOWN
public static ReasonCode[] values()
for (ReasonCode c : ReasonCode.values()) System.out.println(c);
public static ReasonCode 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 ReasonCode 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 ReasonCode fromString(String toConvert)
toConvert - String value to get enum member.public String value()
public String toString()
toString in class Enum<ReasonCode>public static List<String> toValue(List<ReasonCode> toConvert)
toConvert - The list of ReasonCode values to convert.Copyright © 2026. All rights reserved.