|
Changes since the last release |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ebay.soap.eBLBaseComponents.AmountType
public class AmountType
An eBay-defined complex type for specifying monetary amounts.
A double value (e.g., 1.00 or 1.0) is meaningful as a monetary amount when accompanied by a specification of the currency, in which case the value specifies the amount in that currency. An AmountType expresses both the value (a double) and the currency.
The AmountType data type is typically used to specify details such as prices, fees, costs, and payments. In some cases, a whole number (i.e., without a period) can be passed or returned as a monetary value. This is necessary to support certain currencies that are only expressed as whole numbers.
Because a double is used to represent the amount, this also means whole monetary amounts may be returned with only one 0 after the decimal. For example, a dollar value could be returned as 1.0 instead of 1.00 in calls like AddItem.
Java class for AmountType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="AmountType"> <simpleContent> <extension base="<http://www.w3.org/2001/XMLSchema>double"> <attribute name="currencyID" use="required" type="{urn:ebay:apis:eBLBaseComponents}CurrencyCodeType" /> </extension> </simpleContent> </complexType>
Field Summary | |
---|---|
protected CurrencyCodeType |
currencyID
|
protected double |
value
|
Constructor Summary | |
---|---|
AmountType()
|
Method Summary | |
---|---|
CurrencyCodeType |
getCurrencyID()
Gets the value of the currencyID property. |
double |
getValue()
Gets the value of the value property. |
void |
setCurrencyID(CurrencyCodeType value)
Sets the value of the currencyID property. |
void |
setValue(double value)
Sets the value of the value property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double value
protected CurrencyCodeType currencyID
Constructor Detail |
---|
public AmountType()
Method Detail |
---|
public double getValue()
public void setValue(double value)
public CurrencyCodeType getCurrencyID()
CurrencyCodeType
public void setCurrencyID(CurrencyCodeType value)
value
- allowed object is
CurrencyCodeType
|
Changes since the last release |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The information contained in this document is proprietary and confidential.
Use of this information and the eBay API requires a Non-Disclosure Agreement (NDA) between the user and eBay Inc.
For information regarding a qualifying NDA, contact Developer Relations:
developer-relations@ebay.com
© 2004-2009 eBay Inc. All rights reserved.