OSID Logo
OSID Specifications
ordering rules package
Version 3.1.0
Interfaceosid.ordering.rules.PriceEnabler
Implementsosid.OsidEnabler
Used Byosid.ordering.rules.PriceEnablerAdminSession
osid.ordering.rules.PriceEnablerList
osid.ordering.rules.PriceEnablerLookupSession
Description

A PriceEnabler describes the rules for making a Price effective.

MethodhasQuantityRange
Description

Tests if this price is restricted by quantity.

Returnboolean true if this price has a quantity range, false if this price is the same for any quantity
Compliancemandatory This method must be implemented.
MethodgetMinimumQuantity
Description

Gets the minium quantity for this price.

Returncardinal the quantity
ErrorsILLEGAL_STATE hasQuantityRange() is false
Compliancemandatory This method must be implemented.
MethodgetMaximumQuantity
Description

Gets the maximum quantity for this price.

Returncardinal the quantity
ErrorsILLEGAL_STATE hasQuantityRange() is false
Compliancemandatory This method must be implemented.
MethodgetPriceEnablerRecord
Description

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

Parametersosid.type.TypepriceEnablerRecordType the type of price enabler record to retrieve
Returnosid.ordering.rules.records.PriceEnablerRecord the price enabler record
ErrorsNULL_ARGUMENT priceEnablerRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(priceEnablerRecordType) is false
Compliancemandatory This method must be implemented.