public class ExchangeRate extends Object implements Serializable
ExchangeRate represents a currency which is one of the
Network.secondaryCurrencyCodes, and the latest exchange rate
between this currency and
Network.currencyCode.| Constructor and Description |
|---|
ExchangeRate() |
ExchangeRate(Long id,
String currencyCode,
ExchangeRateRefreshRate refreshRate,
ExchangeRateDirection direction,
Long exchangeRate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCurrencyCode()
Gets the currencyCode value for this ExchangeRate.
|
static org.apache.axis.encoding.Deserializer |
getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Deserializer
|
ExchangeRateDirection |
getDirection()
Gets the direction value for this ExchangeRate.
|
Long |
getExchangeRate()
Gets the exchangeRate value for this ExchangeRate.
|
Long |
getId()
Gets the id value for this ExchangeRate.
|
ExchangeRateRefreshRate |
getRefreshRate()
Gets the refreshRate value for this ExchangeRate.
|
static org.apache.axis.encoding.Serializer |
getSerializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Serializer
|
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Return type metadata object
|
int |
hashCode() |
void |
setCurrencyCode(String currencyCode)
Sets the currencyCode value for this ExchangeRate.
|
void |
setDirection(ExchangeRateDirection direction)
Sets the direction value for this ExchangeRate.
|
void |
setExchangeRate(Long exchangeRate)
Sets the exchangeRate value for this ExchangeRate.
|
void |
setId(Long id)
Sets the id value for this ExchangeRate.
|
void |
setRefreshRate(ExchangeRateRefreshRate refreshRate)
Sets the refreshRate value for this ExchangeRate.
|
String |
toString() |
public ExchangeRate()
public ExchangeRate(Long id, String currencyCode, ExchangeRateRefreshRate refreshRate, ExchangeRateDirection direction, Long exchangeRate)
public Long getId()
ExchangeRate. This attribute is readonly
and is assigned by Google when
an exchange rate is created.public void setId(Long id)
id - * The ID of the ExchangeRate. This attribute is readonly
and is assigned by Google when
an exchange rate is created.public String getCurrencyCode()
exchangeRate is related
to. The exchangeRate is
between currencyCode and Network.currencyCode.
This attribute is required for
creation and then is readonly.public void setCurrencyCode(String currencyCode)
currencyCode - * The currency code that the exchangeRate is related
to. The exchangeRate is
between currencyCode and Network.currencyCode.
This attribute is required for
creation and then is readonly.public ExchangeRateRefreshRate getRefreshRate()
public void setRefreshRate(ExchangeRateRefreshRate refreshRate)
refreshRate - * The refresh rate at which the exchange rate is updated. This
attribute is required.public ExchangeRateDirection getDirection()
exchangeRate is in. It determines
whether the
exchangeRate is from currencyCode
to Network.currencyCode, or from
Network.currencyCode to currencyCode.
This attribute is required.public void setDirection(ExchangeRateDirection direction)
direction - * The direction that the exchangeRate is in. It determines
whether the
exchangeRate is from currencyCode
to Network.currencyCode, or from
Network.currencyCode to currencyCode.
This attribute is required.public Long getExchangeRate()
refreshRate and in
the direction. The value
is stored as the exchange rate times 10,000,000,000
truncated to a long. When the
refreshRate is ExchangeRateRefreshRate.FIXED,
this attribute is required. When
it is not, this attribute is readonly and is assigned
by Google with the exchange rate for the
latest time period.public void setExchangeRate(Long exchangeRate)
exchangeRate - * The latest exchange rate at the refreshRate and in
the direction. The value
is stored as the exchange rate times 10,000,000,000
truncated to a long. When the
refreshRate is ExchangeRateRefreshRate.FIXED,
this attribute is required. When
it is not, this attribute is readonly and is assigned
by Google with the exchange rate for the
latest time period.public static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
Copyright © 2018. All Rights Reserved.