Package org.killbill.billing.payment.api
Enum PaymentResponse
- java.lang.Object
-
- java.lang.Enum<PaymentResponse>
-
- org.killbill.billing.payment.api.PaymentResponse
-
- All Implemented Interfaces:
Serializable,Comparable<PaymentResponse>
public enum PaymentResponse extends Enum<PaymentResponse>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DECLINEDO_NOT_HONORDUPLICATE_TRANSACTIONEXPIRED_CARDINSUFFICIENT_FUNDSINVALID_AMOUNTINVALID_CARDLOST_OR_STOLEN_CARDOTHERPROCESSING_ERROR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()static PaymentResponsevalueOf(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.
-
-
-
Enum Constant Detail
-
INVALID_CARD
public static final PaymentResponse INVALID_CARD
-
EXPIRED_CARD
public static final PaymentResponse EXPIRED_CARD
-
LOST_OR_STOLEN_CARD
public static final PaymentResponse LOST_OR_STOLEN_CARD
-
DO_NOT_HONOR
public static final PaymentResponse DO_NOT_HONOR
-
INSUFFICIENT_FUNDS
public static final PaymentResponse INSUFFICIENT_FUNDS
-
DECLINE
public static final PaymentResponse DECLINE
-
PROCESSING_ERROR
public static final PaymentResponse PROCESSING_ERROR
-
INVALID_AMOUNT
public static final PaymentResponse INVALID_AMOUNT
-
DUPLICATE_TRANSACTION
public static final PaymentResponse DUPLICATE_TRANSACTION
-
OTHER
public static final PaymentResponse OTHER
-
-
Method Detail
-
values
public static PaymentResponse[] 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 (PaymentResponse c : PaymentResponse.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PaymentResponse 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
-
getDescription
public String getDescription()
-
-