Enum OrderStatus
- java.lang.Object
-
- java.lang.Enum<OrderStatus>
-
- org.cyclos.model.marketplace.webshoporders.OrderStatus
-
- All Implemented Interfaces:
Serializable,Comparable<OrderStatus>,HasMessageKey
public enum OrderStatus extends Enum<OrderStatus> implements HasMessageKey
Order Status for WebShop orders.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPLETEDThe order was completed because was accepted by the seller (and optionally by the buyer) and the payment was done.DISPOSEDThe order has been disposed, possibly because the user or the account have ceased to existDRAFTThe order has been saved by the seller, but has not yet been sent to the buyer to approvePAYMENT_CANCELEDThe order is finished because the payment was not donePAYMENT_DENIEDThe order is finished because the payment was deniedPAYMENT_EXPIREDThe order is finished because the payment has automatically expiredPAYMENT_PENDINGThe order is pending for a payment authorization to finishPENDING_BUYERNegotiation pending of buyer's actionPENDING_SELLERNegotiation pending of seller's actionREJECTED_BY_BUYERNegotiation rejected by buyerREJECTED_BY_SELLERNegotiation rejected by sellerSHOPPING_CARTThe order is just a shopping cart, possibly temporary, as hasn't been checked out yet
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static OrderStatusvalueOf(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.
-
-
-
Enum Constant Detail
-
DRAFT
public static final OrderStatus DRAFT
The order has been saved by the seller, but has not yet been sent to the buyer to approve
-
SHOPPING_CART
public static final OrderStatus SHOPPING_CART
The order is just a shopping cart, possibly temporary, as hasn't been checked out yet
-
PENDING_BUYER
public static final OrderStatus PENDING_BUYER
Negotiation pending of buyer's action
-
PENDING_SELLER
public static final OrderStatus PENDING_SELLER
Negotiation pending of seller's action
-
PAYMENT_PENDING
public static final OrderStatus PAYMENT_PENDING
The order is pending for a payment authorization to finish
-
PAYMENT_CANCELED
public static final OrderStatus PAYMENT_CANCELED
The order is finished because the payment was not done
-
PAYMENT_DENIED
public static final OrderStatus PAYMENT_DENIED
The order is finished because the payment was denied
-
PAYMENT_EXPIRED
public static final OrderStatus PAYMENT_EXPIRED
The order is finished because the payment has automatically expired
-
REJECTED_BY_BUYER
public static final OrderStatus REJECTED_BY_BUYER
Negotiation rejected by buyer
-
REJECTED_BY_SELLER
public static final OrderStatus REJECTED_BY_SELLER
Negotiation rejected by seller
-
COMPLETED
public static final OrderStatus COMPLETED
The order was completed because was accepted by the seller (and optionally by the buyer) and the payment was done.
-
DISPOSED
public static final OrderStatus DISPOSED
The order has been disposed, possibly because the user or the account have ceased to exist
-
-
Method Detail
-
values
public static OrderStatus[] 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 (OrderStatus c : OrderStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OrderStatus 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
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
-