public enum ShipOverrideType extends Enum<ShipOverrideType>
Enum Constant and Description |
---|
ADDITIONAL
A charge that is added to the default shipping charge
|
NONE
None specified
|
OVERRIDE
A charge that overrides the default shipping charge
|
Modifier and Type | Method and Description |
---|---|
static ShipOverrideType |
fromText(String text)
Attempt to create a ShipOverrideType by text value
|
String |
getText()
Retrieve the Jet API value
|
String |
toString() |
static ShipOverrideType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShipOverrideType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShipOverrideType NONE
public static final ShipOverrideType OVERRIDE
public static final ShipOverrideType ADDITIONAL
public static ShipOverrideType[] values()
for (ShipOverrideType c : ShipOverrideType.values()) System.out.println(c);
public static ShipOverrideType 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 ShipOverrideType fromText(String text) throws IllegalArgumentException
text
- valueIllegalArgumentException
- if text is not foundpublic String getText()
public String toString()
toString
in class Enum<ShipOverrideType>
Copyright © 2017. All rights reserved.