Changes since
the last release

com.ebay.soap.eBLBaseComponents
Class AmountType

java.lang.Object
  extended by com.ebay.soap.eBLBaseComponents.AmountType
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RefundLineType

public class AmountType
extends java.lang.Object
implements java.io.Serializable

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>
 

See Also:
Serialized Form

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

value

protected double value

currencyID

protected CurrencyCodeType currencyID
Constructor Detail

AmountType

public AmountType()
Method Detail

getValue

public double getValue()
Gets the value of the value property.


setValue

public void setValue(double value)
Sets the value of the value property.


getCurrencyID

public CurrencyCodeType getCurrencyID()
Gets the value of the currencyID property.

Returns:
possible object is CurrencyCodeType

setCurrencyID

public void setCurrencyID(CurrencyCodeType value)
Sets the value of the currencyID property.

Parameters:
value - allowed object is CurrencyCodeType

Changes since
the last release

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.