NAME

eBay::API::XML::DataType::MeasureType

DESCRIPTION

Basic type for specifying measures and the system of measurement. A decimal value (e.g., 10.25) is meaningful as a measure when accompanied by a definition of the unit of measure (e.g., Pounds), in which case the value specifies the quantity of that unit. A MeasureType expresses both the value (a decimal) and, optionally, the unit and the system of measurement. Details such as shipping weights are specified as measure types.

SYNOPSIS

INHERITANCE

eBay::API::XML::DataType::MeasureType inherits from the eBay::API::XML::BaseDataType class

Subroutines:

setValue()

# Argument: 'xs:decimal'

getValue()

# Returns: 'xs:decimal'

setMeasurementSystem()

The system of measurement (e.g., English).

Calls: AddItem
RequiredInput: No

# Argument: 'ns:MeasurementSystemCodeType'

getMeasurementSystem()

Calls: GetItem
Returned: Conditionally
Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll

Calls: GetShippingDiscountProfiles
Returned: Conditionally

# Returns: 'ns:MeasurementSystemCodeType'

setUnit()

The unit of measure (e.g., lbs, oz, in). Currently ignored and assumed to be "inches" when used as input for PackageDepth, PackageWidth, PackageLength, WeightMajor, WeightMinor.

Calls: AddItem
RequiredInput: No

# Argument: 'xs:token'

getUnit()

Calls: GetItemShipping
       GetSellerTransactions
       GetShippingDiscountProfiles
Returned: Conditionally

Calls: GetItem
Returned: Conditionally
Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll

# Returns: 'xs:token'