public enum ExchangeRateErrorReason extends Enum<ExchangeRateErrorReason>
Java class for ExchangeRateError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="ExchangeRateError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="INVALID_CURRENCY_CODE"/>
<enumeration value="UNSUPPORTED_CURRENCY_CODE"/>
<enumeration value="CURRENCY_CODE_ALREADY_EXISTS"/>
<enumeration value="INVALID_EXCHANGE_RATE"/>
<enumeration value="EXCHANGE_RATE_NOT_FOUND"/>
<enumeration value="CANNOT_DELETE_EXCHANGE_RATE_WITH_ACTIVE_RATE_CARDS"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CANNOT_DELETE_EXCHANGE_RATE_WITH_ACTIVE_RATE_CARDS
The exchange rate cannot be deleted as it is still being used by active rate cards.
|
CURRENCY_CODE_ALREADY_EXISTS
The currency code already exists.
|
EXCHANGE_RATE_NOT_FOUND
The exchange rate value is not found.
|
INVALID_CURRENCY_CODE
The currency code is invalid and does not follow ISO 4217.
|
INVALID_EXCHANGE_RATE
The exchange rate value is invalid.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
UNSUPPORTED_CURRENCY_CODE
The currency code is not supported.
|
| Modifier and Type | Method and Description |
|---|---|
static ExchangeRateErrorReason |
fromValue(String v) |
String |
value() |
static ExchangeRateErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExchangeRateErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExchangeRateErrorReason INVALID_CURRENCY_CODE
public static final ExchangeRateErrorReason UNSUPPORTED_CURRENCY_CODE
public static final ExchangeRateErrorReason CURRENCY_CODE_ALREADY_EXISTS
public static final ExchangeRateErrorReason INVALID_EXCHANGE_RATE
ExchangeRate.refreshRate is
ExchangeRateRefreshRate.FIXED, the ExchangeRate.exchangeRate should be larger
than 0. Otherwise it is invalid.public static final ExchangeRateErrorReason EXCHANGE_RATE_NOT_FOUND
ExchangeRate.refreshRate is
ExchangeRateRefreshRate.DAILY or ExchangeRateRefreshRate.MONTHLY, the
ExchangeRate.exchangeRate should be assigned by Google. It is not found if Google
cannot find such an exchange rate.public static final ExchangeRateErrorReason CANNOT_DELETE_EXCHANGE_RATE_WITH_ACTIVE_RATE_CARDS
public static final ExchangeRateErrorReason UNKNOWN
public static ExchangeRateErrorReason[] values()
for (ExchangeRateErrorReason c : ExchangeRateErrorReason.values()) System.out.println(c);
public static ExchangeRateErrorReason 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 ExchangeRateErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.