public enum OrderActionErrorReason extends Enum<OrderActionErrorReason>
Java class for OrderActionError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="OrderActionError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="PERMISSION_DENIED"/>
<enumeration value="NOT_APPLICABLE"/>
<enumeration value="IS_ARCHIVED"/>
<enumeration value="HAS_ENDED"/>
<enumeration value="CANNOT_APPROVE_WITH_UNRESERVED_LINE_ITEMS"/>
<enumeration value="CANNOT_DELETE_ORDER_WITH_DELIVERED_LINEITEMS"/>
<enumeration value="CANNOT_APPROVE_COMPANY_CREDIT_STATUS_NOT_ACTIVE"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CANNOT_APPROVE_COMPANY_CREDIT_STATUS_NOT_ACTIVE
Cannot approve because company credit status is not active.
|
CANNOT_APPROVE_WITH_UNRESERVED_LINE_ITEMS
|
CANNOT_DELETE_ORDER_WITH_DELIVERED_LINEITEMS
Deleting an
Order with delivered line items is not allowed |
HAS_ENDED
The
Order is past its end date, An OrderAction cannot
be applied to a order that has ended. |
IS_ARCHIVED
The
Order is archived, an OrderAction cannot be applied
to an archived order. |
NOT_APPLICABLE
The operation is not applicable for the current state of the
Order. |
PERMISSION_DENIED
The operation is not allowed due to lack of permissions.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static OrderActionErrorReason |
fromValue(String v) |
String |
value() |
static OrderActionErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OrderActionErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OrderActionErrorReason PERMISSION_DENIED
public static final OrderActionErrorReason NOT_APPLICABLE
Order.public static final OrderActionErrorReason IS_ARCHIVED
Order is archived, an OrderAction cannot be applied
to an archived order.public static final OrderActionErrorReason HAS_ENDED
Order is past its end date, An OrderAction cannot
be applied to a order that has ended.public static final OrderActionErrorReason CANNOT_APPROVE_WITH_UNRESERVED_LINE_ITEMS
public static final OrderActionErrorReason CANNOT_DELETE_ORDER_WITH_DELIVERED_LINEITEMS
Order with delivered line items is not allowedpublic static final OrderActionErrorReason CANNOT_APPROVE_COMPANY_CREDIT_STATUS_NOT_ACTIVE
public static final OrderActionErrorReason UNKNOWN
public static OrderActionErrorReason[] values()
for (OrderActionErrorReason c : OrderActionErrorReason.values()) System.out.println(c);
public static OrderActionErrorReason 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 OrderActionErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.