public enum OrderStatus extends Enum<OrderStatus>
Enum Constant and Description |
---|
ACK
order was acknowledged by merchant
|
COMPLETE
all parts of the order have shipped or cancelled
|
CREATED
order was created by Jet.com but not released for fulfillment
|
IN_PROGRESS
one part of the order has been shipped or cancelled
|
NONE
None specified
|
READY
order ready to be acknowledged by merchant
|
Modifier and Type | Method and Description |
---|---|
static OrderStatus |
fromText(String text)
Attempt to retrieve a OrderStatus by text value
|
String |
getText()
Retrieve the jet api text
|
String |
toString() |
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 NONE
public static final OrderStatus CREATED
public static final OrderStatus READY
public static final OrderStatus ACK
public static final OrderStatus IN_PROGRESS
public static final OrderStatus COMPLETE
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 fromText(String text) throws IllegalArgumentException
text
- valueIllegalArgumentException
- if text is not foundpublic String getText()
public String toString()
toString
in class Enum<OrderStatus>
Copyright © 2017. All rights reserved.