public enum ProductErrorReason extends Enum<ProductErrorReason>
Java class for ProductError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="ProductError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="TEMPLATE_NOT_FOUND"/>
<enumeration value="MALFORMED_PRODUCT_ID"/>
<enumeration value="BAD_PRODUCT_ID_FEATURE"/>
<enumeration value="BAD_PRODUCT_TEMPLATE_ID"/>
<enumeration value="CANNOT_UPDATE_ARCHIVED_PRODUCT"/>
<enumeration value="QUERY_TOO_LARGE"/>
<enumeration value="PRODUCT_TEMPLATE_ID_IS_NOT_ZERO"/>
<enumeration value="INVALID_RATE"/>
<enumeration value="INVALID_CURRENCY"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
BAD_PRODUCT_ID_FEATURE
The product ID does not match the expanded features configured in its product template.
|
BAD_PRODUCT_TEMPLATE_ID
The product template ID specified in the parameters does not match the product template ID
implied in the product ID.
|
CANNOT_UPDATE_ARCHIVED_PRODUCT
Cannot update an archived product.
|
INVALID_CURRENCY
When not using sales management, the currency code for
products must be the
same as the network default currency code. |
INVALID_RATE
When not using sales management,
products cannot have zero-value rates. |
MALFORMED_PRODUCT_ID
The product ID is not correctly formed.
|
PRODUCT_TEMPLATE_ID_IS_NOT_ZERO
When not using sales management,
products should not have
product templates. |
QUERY_TOO_LARGE
The query is too large to be processed.
|
TEMPLATE_NOT_FOUND
The specified template is not found.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static ProductErrorReason |
fromValue(String v) |
String |
value() |
static ProductErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProductErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProductErrorReason TEMPLATE_NOT_FOUND
public static final ProductErrorReason MALFORMED_PRODUCT_ID
public static final ProductErrorReason BAD_PRODUCT_ID_FEATURE
public static final ProductErrorReason BAD_PRODUCT_TEMPLATE_ID
public static final ProductErrorReason CANNOT_UPDATE_ARCHIVED_PRODUCT
public static final ProductErrorReason QUERY_TOO_LARGE
public static final ProductErrorReason PRODUCT_TEMPLATE_ID_IS_NOT_ZERO
products should not have
product templates.public static final ProductErrorReason INVALID_RATE
products cannot have zero-value rates.public static final ProductErrorReason INVALID_CURRENCY
products must be the
same as the network default currency code.public static final ProductErrorReason UNKNOWN
public static ProductErrorReason[] values()
for (ProductErrorReason c : ProductErrorReason.values()) System.out.println(c);
public static ProductErrorReason 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 String value()
public static ProductErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.