public enum OrderStatus extends Enum<OrderStatus>
| Enum Constant and Description |
|---|
_UNKNOWN
Unknown values will be mapped by this enum member
|
APPROVED
The customer approved the payment through the PayPal wallet or another form of guest or unbranded payment.
|
COMPLETED
The intent of the Order was completed and a `payments` resource was created.
|
CREATED
The order was created with the specified context.
|
PAYER_ACTION_REQUIRED
The order requires an action from the payer (e.g.
|
SAVED
The order was saved and persisted.
|
VOIDED
All purchase units in the order are voided.
|
| Modifier and Type | Method and Description |
|---|---|
static OrderStatus |
constructFromString(String toConvert)
Returns the enum member associated with the given string value.
|
static OrderStatus |
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<OrderStatus> toConvert)
Convert list of OrderStatus values to list of string values.
|
String |
value()
Returns the string value associated with the enum member.
|
static OrderStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OrderStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OrderStatus CREATED
public static final OrderStatus SAVED
public static final OrderStatus APPROVED
public static final OrderStatus VOIDED
public static final OrderStatus COMPLETED
public static final OrderStatus PAYER_ACTION_REQUIRED
public static final OrderStatus _UNKNOWN
public static OrderStatus[] values()
for (OrderStatus c : OrderStatus.values()) System.out.println(c);
public static OrderStatus 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 OrderStatus 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 OrderStatus fromString(String toConvert)
toConvert - String value to get enum member.public String value()
public String toString()
toString in class Enum<OrderStatus>public static List<String> toValue(List<OrderStatus> toConvert)
toConvert - The list of OrderStatus values to convert.Copyright © 2025. All rights reserved.