Enum PaymentCaptureAttemptResultStatus
- java.lang.Object
-
- java.lang.Enum<PaymentCaptureAttemptResultStatus>
-
- com.broadleafcommerce.orderoperation.service.messaging.capture.PaymentCaptureAttemptResultStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<PaymentCaptureAttemptResultStatus>
public enum PaymentCaptureAttemptResultStatus extends Enum<PaymentCaptureAttemptResultStatus>
The types of results that could come from attempting to capture payment on a fulfillment.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILURE
One of the attempted capture transactions failed.INDETERMINATE_RESULT
One of the attempted capture transactions failed with an indeterminate result.SUCCESS
All of the attempted capture transactions succeeded.UNNECESSARY
There was a zero total, so capturing is not necessary.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PaymentCaptureAttemptResultStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static PaymentCaptureAttemptResultStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNNECESSARY
public static final PaymentCaptureAttemptResultStatus UNNECESSARY
There was a zero total, so capturing is not necessary.
-
INDETERMINATE_RESULT
public static final PaymentCaptureAttemptResultStatus INDETERMINATE_RESULT
One of the attempted capture transactions failed with an indeterminate result.
-
SUCCESS
public static final PaymentCaptureAttemptResultStatus SUCCESS
All of the attempted capture transactions succeeded.
-
FAILURE
public static final PaymentCaptureAttemptResultStatus FAILURE
One of the attempted capture transactions failed.
-
-
Method Detail
-
values
public static PaymentCaptureAttemptResultStatus[] 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 (PaymentCaptureAttemptResultStatus c : PaymentCaptureAttemptResultStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PaymentCaptureAttemptResultStatus 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
-
-