public enum ShipExceptionType extends Enum<ShipExceptionType>
Enum Constant and Description |
---|
EXCLUSIVE
The product should only be shipped using the shipping method or
shipping level provided
|
INCLUDE
The product will be priced normally under the Jet.com pricing algorithm.
|
RESTRICTED
The product cannot be shipped using the shipping method or shipping
level provided
|
Modifier and Type | Method and Description |
---|---|
static ShipExceptionType |
fromText(String text)
Attempt to create a ShipExceptionType by text value
|
String |
getText()
Retrieve the Jet API value
|
String |
toString() |
static ShipExceptionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShipExceptionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShipExceptionType EXCLUSIVE
public static final ShipExceptionType RESTRICTED
public static final ShipExceptionType INCLUDE
public static ShipExceptionType[] values()
for (ShipExceptionType c : ShipExceptionType.values()) System.out.println(c);
public static ShipExceptionType 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 ShipExceptionType fromText(String text) throws IllegalArgumentException
text
- valueIllegalArgumentException
- if text is not foundpublic String getText()
public String toString()
toString
in class Enum<ShipExceptionType>
Copyright © 2017. All rights reserved.