OSID Logo
OSID Specifications
ordering package
Version 3.0.0
Release Candidate Preview
Interfaceosid.ordering.Product
Implementsosid.OsidObject
Description

A Product represents something ordered.

MethodgetCode
Description

Gets the product code.

Returnstringa product code
CompliancemandatoryThis method must be implemented.
MethodgetPriceScheduleIds
Description

Gets the price schedule Ids.

Returnosid.id.IdLista price schedule Id
CompliancemandatoryThis method must be implemented.
MethodgetPriceSchedules
Description

Gets the price schedules.

Returnosid.ordering.PriceScheduleListthe price schedules
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodhasAvailability
Description

Tests if an availability is available for this product.

Returnboolean true if an available is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAvailability
Description

Gets the availability.

Returncardinalthe availability
ErrorsILLEGAL_STATE hasAvailability() is false
CompliancemandatoryThis method must be implemented.
MethodgetProductRecord
Description

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

Parametersosid.type.TypeproductRecordTypethe type of product record to retrieve
Returnosid.ordering.records.ProductRecordthe product record
ErrorsNULL_ARGUMENT productRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(productRecordType) is false
CompliancemandatoryThis method must be implemented.