public enum CartOrigin extends Enum<CartOrigin> implements SphereEnumeration
Enum Constant and Description |
---|
CUSTOMER
The cart was created by the customer.
|
MERCHANT
The cart was created on behalf of the customer by a customer representative in the Merchant Center or a similar tool of the Merchant.
|
Modifier and Type | Method and Description |
---|---|
static CartOrigin |
defaultValue() |
static CartOrigin |
ofSphereValue(String value) |
static CartOrigin |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CartOrigin[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
findBySphereName, name, toSphereName
public static final CartOrigin CUSTOMER
public static final CartOrigin MERCHANT
public static CartOrigin[] values()
for (CartOrigin c : CartOrigin.values()) System.out.println(c);
public static CartOrigin 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 CartOrigin defaultValue()
public static CartOrigin ofSphereValue(String value)