public enum ShippingServiceLevel extends Enum<ShippingServiceLevel>
Enum Constant and Description |
---|
ELEVEN_TO_20_DAY |
EXPEDITED
Expedited shipping
|
FIVE_TO_10_DAY |
NEXT_DAY
Ships overnight
|
NONE
Not Specified
|
PRIORITY |
SCHEDULED
Scheduled?
|
SCHEDULED_11_TO_20_DAY |
SECOND_DAY
Ships 2 day
|
STANDARD
Standard shipping
|
Modifier and Type | Method and Description |
---|---|
static ShippingServiceLevel |
fromText(String text)
Attempt to create a ServiceLevel by text value
|
String |
getText()
Retrieve the Jet API value
|
String |
toString() |
static ShippingServiceLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShippingServiceLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShippingServiceLevel NONE
public static final ShippingServiceLevel SECOND_DAY
public static final ShippingServiceLevel NEXT_DAY
public static final ShippingServiceLevel SCHEDULED
public static final ShippingServiceLevel EXPEDITED
public static final ShippingServiceLevel STANDARD
public static final ShippingServiceLevel PRIORITY
public static final ShippingServiceLevel FIVE_TO_10_DAY
public static final ShippingServiceLevel ELEVEN_TO_20_DAY
public static final ShippingServiceLevel SCHEDULED_11_TO_20_DAY
public static ShippingServiceLevel[] values()
for (ShippingServiceLevel c : ShippingServiceLevel.values()) System.out.println(c);
public static ShippingServiceLevel 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 ShippingServiceLevel fromText(String text) throws IllegalArgumentException
text
- valueIllegalArgumentException
- if text is not foundpublic String getText()
public String toString()
toString
in class Enum<ShippingServiceLevel>
Copyright © 2017. All rights reserved.