OSID Logo
OSID Specifications
ordering package
Version 3.1.0
Interfaceosid.ordering.Item
Implementsosid.OsidRelationship
Used Byosid.ordering.ItemAdminSession
osid.ordering.ItemList
Description

A Item represents a collection of orders. Like all OSID objects, a Item is identified by its Id and any persisted references should use the Id.

An Item may have multiple unit prices for different types of currencies, such as one for payment and one for credits. Each line item cost type should be lined up with the unit price type.

MethodgetOrderId
Description

Gets the order Id for this item.

Returnosid.id.Id the order Id
Compliancemandatory This method must be implemented.
MethodgetOrder
Description

Gets the order for this item.

Returnosid.ordering.Order the order
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodisDerived
Description

Tests if the item is a derived item as opposed to one that has been explicitly selected.

Returnboolean true if this item is derived, false otherwise
Compliancemandatory This method must be implemented.
MethodgetProductId
Description

Gets the product Id for this item.

Returnosid.id.Id the product Id
Compliancemandatory This method must be implemented.
MethodgetProduct
Description

Gets the product for this item.

Returnosid.ordering.Product the product
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetUnitPriceIds
Description

Gets the price Ids for this item.

Returnosid.id.IdList the price Ids
Compliancemandatory This method must be implemented.
MethodgetUnitPrices
Description

Gets the prices for this item. There may be different price types for a single item.

Returnosid.ordering.PriceList the prices
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetQuantity
Description

Gets the quantity of the product.

Returncardinal the quantity of the product
Compliancemandatory This method must be implemented.
MethodgetCosts
Description

Gets the line item costs.

Returnosid.ordering.CostList the costs.
Compliancemandatory This method must be implemented.
MethodgetItemRecord
Description

Gets the item record corresponding to the given Item record Type.This method is used to retrieve an object implementing the requested record. The itemRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(itemRecordType) is true.

Parametersosid.type.TypeitemRecordType the type of item record to retrieve
Returnosid.ordering.records.ItemRecord the item record
ErrorsNULL_ARGUMENT itemRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(itemRecordType) is false
Compliancemandatory This method must be implemented.