public enum CaptureStatus extends Enum<CaptureStatus>
| Enum Constant and Description |
|---|
_UNKNOWN
Unknown values will be mapped by this enum member
|
COMPLETED
The funds for this captured payment were credited to the payee's PayPal account.
|
DECLINED
The funds could not be captured.
|
FAILED
There was an error while capturing payment.
|
PARTIALLY_REFUNDED
An amount less than this captured payment's amount was partially refunded to the payer.
|
PENDING
The funds for this captured payment was not yet credited to the payee's PayPal account.
|
REFUNDED
An amount greater than or equal to this captured payment's amount was refunded to the payer.
|
| Modifier and Type | Method and Description |
|---|---|
static CaptureStatus |
constructFromString(String toConvert)
Returns the enum member associated with the given string value.
|
static CaptureStatus |
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<CaptureStatus> toConvert)
Convert list of CaptureStatus values to list of string values.
|
String |
value()
Returns the string value associated with the enum member.
|
static CaptureStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CaptureStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CaptureStatus COMPLETED
public static final CaptureStatus DECLINED
public static final CaptureStatus PARTIALLY_REFUNDED
public static final CaptureStatus PENDING
public static final CaptureStatus REFUNDED
public static final CaptureStatus FAILED
public static final CaptureStatus _UNKNOWN
public static CaptureStatus[] values()
for (CaptureStatus c : CaptureStatus.values()) System.out.println(c);
public static CaptureStatus 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 CaptureStatus 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 CaptureStatus fromString(String toConvert)
toConvert - String value to get enum member.public String value()
public String toString()
toString in class Enum<CaptureStatus>public static List<String> toValue(List<CaptureStatus> toConvert)
toConvert - The list of CaptureStatus values to convert.Copyright © 2025. All rights reserved.