public enum BaseRateErrorReason extends Enum<BaseRateErrorReason>
Java class for BaseRateError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="BaseRateError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="INVALID_CURRENCY_CODE"/>
<enumeration value="PRODUCT_TEMPLATE_ARCHIVED"/>
<enumeration value="PRODUCT_PACKAGE_ITEM_ARCHIVED"/>
<enumeration value="CANNOT_QUERY_ON_MULTIPLE_TYPES"/>
<enumeration value="PRODUCT_PACKAGE_RATE_CARD_ASSOCIATION_MISSING"/>
<enumeration value="UNSUPPORTED_OPERATION"/>
<enumeration value="PRODUCT_PACKAGE_ACTIVE"/>
<enumeration value="PRODUCT_TEMPLATE_BASE_RATE_NOT_FOUND"/>
<enumeration value="PRODUCT_BASE_RATE_EXISTS"/>
<enumeration value="INVALID_RATE_CARD_CHANNEL"/>
<enumeration value="ZERO_MARKETPLACE_RATE_NOT_SUPPORTED"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CANNOT_QUERY_ON_MULTIPLE_TYPES
The PQL statement can only contain one of
productTemplateId,
productId or productPackageItemId. |
INVALID_CURRENCY_CODE
The currency code is invalid.
|
INVALID_RATE_CARD_CHANNEL
|
PRODUCT_BASE_RATE_EXISTS
Cannot delete a base rate on a product template if its products still
have base rates on this rate card.
|
PRODUCT_PACKAGE_ACTIVE
Cannot delete a product package item base rate when its product package
is active.
|
PRODUCT_PACKAGE_ITEM_ARCHIVED
Cannot create or activate a product package item base rate if the product
package item is archived.
|
PRODUCT_PACKAGE_RATE_CARD_ASSOCIATION_MISSING
Product package must be associated with the rate card of the product
package item base rate.
|
PRODUCT_TEMPLATE_ARCHIVED
Cannot create or activate a base rate if the product template is
archived.
|
PRODUCT_TEMPLATE_BASE_RATE_NOT_FOUND
Cannot create a base rate to a product if its product template does not
have a base rate on this rate card.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested
API version.
|
UNSUPPORTED_OPERATION
Indicates that the requested operation is not supported.
|
ZERO_MARKETPLACE_RATE_NOT_SUPPORTED
Marketplace does not support
base rates with zero-value rates. |
| Modifier and Type | Method and Description |
|---|---|
static BaseRateErrorReason |
fromValue(String v) |
String |
value() |
static BaseRateErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BaseRateErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BaseRateErrorReason INVALID_CURRENCY_CODE
public static final BaseRateErrorReason PRODUCT_TEMPLATE_ARCHIVED
public static final BaseRateErrorReason PRODUCT_PACKAGE_ITEM_ARCHIVED
public static final BaseRateErrorReason CANNOT_QUERY_ON_MULTIPLE_TYPES
productTemplateId,
productId or productPackageItemId.public static final BaseRateErrorReason PRODUCT_PACKAGE_RATE_CARD_ASSOCIATION_MISSING
public static final BaseRateErrorReason UNSUPPORTED_OPERATION
public static final BaseRateErrorReason PRODUCT_PACKAGE_ACTIVE
public static final BaseRateErrorReason PRODUCT_TEMPLATE_BASE_RATE_NOT_FOUND
public static final BaseRateErrorReason PRODUCT_BASE_RATE_EXISTS
public static final BaseRateErrorReason INVALID_RATE_CARD_CHANNEL
rate cards should only have Marketplace
Product/ProductTemplate base rates.
Non-Marketplace rate cards should use traditional base rates.public static final BaseRateErrorReason ZERO_MARKETPLACE_RATE_NOT_SUPPORTED
base rates with zero-value rates.public static final BaseRateErrorReason UNKNOWN
public static BaseRateErrorReason[] values()
for (BaseRateErrorReason c : BaseRateErrorReason.values()) System.out.println(c);
public static BaseRateErrorReason 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 BaseRateErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.