public enum OrderStatus extends java.lang.Enum<OrderStatus>
| Enum Constant and Description |
|---|
CANCELED
The order has been canceled, possibly because the user or the account have ceased to exist
|
DRAFT
The order has been saved by the seller, but has not yet been sent to the buyer to approve
|
PAYMENT_CANCELED
The order is finished because the payment was not done
|
PAYMENT_DENIED
The order is finished because the payment was denied
|
PENDING_BUYER
Negotiation pending of buyer's action
|
PENDING_PAYMENT
The order is pending for a payment authorization to finish
|
PENDING_SELLER
Negotiation pending of seller's action
|
REALIZED
Negotiation realized
|
REJECTED_BY_BUYER
Negotiation rejected by buyer
|
REJECTED_BY_SELLER
Negotiation rejected by seller
|
SHOPPING_CART
The order is just a shopping cart, possibly temporary, as hasn't been checked out yet
|
| Modifier and Type | Method and Description |
|---|---|
static OrderStatus |
valueOf(java.lang.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 DRAFT
public static final OrderStatus SHOPPING_CART
public static final OrderStatus PENDING_BUYER
public static final OrderStatus PENDING_SELLER
public static final OrderStatus PENDING_PAYMENT
public static final OrderStatus PAYMENT_CANCELED
public static final OrderStatus PAYMENT_DENIED
public static final OrderStatus REJECTED_BY_BUYER
public static final OrderStatus REJECTED_BY_SELLER
public static final OrderStatus REALIZED
public static final OrderStatus CANCELED
public static OrderStatus[] values()
for (OrderStatus c : OrderStatus.values()) System.out.println(c);
public static OrderStatus valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null