public enum PaymentResponse extends Enum<PaymentResponse>
| Enum Constant and Description |
|---|
DECLINE |
DO_NOT_HONOR |
DUPLICATE_TRANSACTION |
EXPIRED_CARD |
INSUFFICIENT_FUNDS |
INVALID_AMOUNT |
INVALID_CARD |
LOST_OR_STOLEN_CARD |
OTHER |
PROCESSING_ERROR |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
static PaymentResponse |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PaymentResponse[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PaymentResponse INVALID_CARD
public static final PaymentResponse EXPIRED_CARD
public static final PaymentResponse LOST_OR_STOLEN_CARD
public static final PaymentResponse DO_NOT_HONOR
public static final PaymentResponse INSUFFICIENT_FUNDS
public static final PaymentResponse DECLINE
public static final PaymentResponse PROCESSING_ERROR
public static final PaymentResponse INVALID_AMOUNT
public static final PaymentResponse DUPLICATE_TRANSACTION
public static final PaymentResponse OTHER
public static PaymentResponse[] values()
for (PaymentResponse c : PaymentResponse.values()) System.out.println(c);
public static PaymentResponse 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 String getDescription()
Copyright © 2010-2015. All Rights Reserved.