public enum CompanyCreditStatusErrorReason extends Enum<CompanyCreditStatusErrorReason>
Java class for CompanyCreditStatusError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="CompanyCreditStatusError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="COMPANY_CREDIT_STATUS_CHANGE_NOT_ALLOWED"/>
<enumeration value="CANNOT_USE_CREDIT_STATUS_SETTING"/>
<enumeration value="CANNOT_USE_ADVANCED_CREDIT_STATUS_SETTING"/>
<enumeration value="UNACCEPTABLE_COMPANY_CREDIT_STATUS_FOR_ORDER"/>
<enumeration value="UNACCEPTABLE_COMPANY_CREDIT_STATUS_FOR_LINE_ITEM"/>
<enumeration value="CANNOT_BLOCK_COMPANY_TOO_MANY_APPROVED_ORDERS"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CANNOT_BLOCK_COMPANY_TOO_MANY_APPROVED_ORDERS
The company cannot be blocked because there are more than 200 approved
orders of the company.
|
CANNOT_USE_ADVANCED_CREDIT_STATUS_SETTING
The network has not been enabled for the Advanced credit status
settings for companies.
|
CANNOT_USE_CREDIT_STATUS_SETTING
The network has not been enabled for editing credit status settings for
companies.
|
COMPANY_CREDIT_STATUS_CHANGE_NOT_ALLOWED
The user's role does not have permission to change
Company.creditStatus from the default value. |
UNACCEPTABLE_COMPANY_CREDIT_STATUS_FOR_LINE_ITEM
A line item cannot be created for the order because the
Order.advertiserId or {Order#agencyId} it is associated with has
Company.creditStatus that is not ACTIVE or
ON_HOLD. |
UNACCEPTABLE_COMPANY_CREDIT_STATUS_FOR_ORDER
An order cannot be created or updated because the
Order.advertiserId or the Order.agencyId it is associated
with has Company.creditStatus that is not ACTIVE or
ON_HOLD. |
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static CompanyCreditStatusErrorReason |
fromValue(String v) |
String |
value() |
static CompanyCreditStatusErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompanyCreditStatusErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompanyCreditStatusErrorReason COMPANY_CREDIT_STATUS_CHANGE_NOT_ALLOWED
Company.creditStatus from the default value. The default value is
Company.CreditStatus#ACTIVE for the Basic credit status setting
and Company.CreditStatus#ON_HOLD for the Advanced credit status
setting.public static final CompanyCreditStatusErrorReason CANNOT_USE_CREDIT_STATUS_SETTING
public static final CompanyCreditStatusErrorReason CANNOT_USE_ADVANCED_CREDIT_STATUS_SETTING
Company.creditStatus must be either
ACTIVE or INACTIVE.public static final CompanyCreditStatusErrorReason UNACCEPTABLE_COMPANY_CREDIT_STATUS_FOR_ORDER
Order.advertiserId or the Order.agencyId it is associated
with has Company.creditStatus that is not ACTIVE or
ON_HOLD.public static final CompanyCreditStatusErrorReason UNACCEPTABLE_COMPANY_CREDIT_STATUS_FOR_LINE_ITEM
Order.advertiserId or {Order#agencyId} it is associated with has
Company.creditStatus that is not ACTIVE or
ON_HOLD.public static final CompanyCreditStatusErrorReason CANNOT_BLOCK_COMPANY_TOO_MANY_APPROVED_ORDERS
public static final CompanyCreditStatusErrorReason UNKNOWN
public static CompanyCreditStatusErrorReason[] values()
for (CompanyCreditStatusErrorReason c : CompanyCreditStatusErrorReason.values()) System.out.println(c);
public static CompanyCreditStatusErrorReason 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 CompanyCreditStatusErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.