public interface Price extends OsidRule, Subjugateable
A Price.
| Modifier and Type | Method and Description |
|---|---|
Currency |
getAmount()
Gets the amount.
|
Resource |
getDemographic()
Gets the resource representing the demographic.
|
Id |
getDemographicId()
Gets the resource
Id representing the demographic. |
long |
getMaximumQuantity()
Gets the maximum quantity for this price.
|
long |
getMinimumQuantity()
Gets the minium quantity for this price.
|
PriceRecord |
getPriceRecord(Type priceRecordType)
Gets the price record corresponding to the given
Product
record Type. |
PriceSchedule |
getPriceSchedule()
Gets the price schedule to which this price belongs.
|
Id |
getPriceScheduleId()
Gets the price schedule
Id to which this price belongs. |
Duration |
getRecurringInterval()
Gets the recurring interval.
|
boolean |
hasDemographic()
Tests if this price is restricted by demographic.
|
boolean |
hasQuantityRange()
Tests if this price is restricted by quantity.
|
boolean |
isRecurring()
Tests if this price has a recurring charge.
|
getDescription, getDisplayName, getGenusType, isOfGenusTypegetId, isCurrentgetRecordTypes, hasRecordTypegetProperties, getPropertiesByRecordTypeisActive, isDisabled, isEnabled, isOperationalId getPriceScheduleId()
Id to which this price belongs. Id mandatory - This method must be implemented. PriceSchedule getPriceSchedule() throws OperationFailedException
OperationFailedException - unable to complete requestmandatory - This method must be implemented. boolean hasQuantityRange()
true if this price has a quantity range,
false if this price is the same for any quantitymandatory - This method must be implemented. long getMinimumQuantity()
IllegalStateException - hasQuantityRange()
is false mandatory - This method must be implemented. long getMaximumQuantity()
IllegalStateException - hasQuantityRange()
is false mandatory - This method must be implemented. boolean hasDemographic()
true if this price has a demographic,
false otherwisemandatory - This method must be implemented. Id getDemographicId()
Id representing the demographic. Id IllegalStateException - hasDemographic()
is false mandatory - This method must be implemented. Resource getDemographic() throws OperationFailedException
IllegalStateException - hasDemographic()
is false OperationFailedException - unable to complete requestmandatory - This method must be implemented. Currency getAmount()
mandatory - This method must be implemented. boolean isRecurring()
true if this price is recurring, false
if one-timemandatory - This method must be implemented. Duration getRecurringInterval()
IllegalStateException - isRecurring() is
false mandatory - This method must be implemented. PriceRecord getPriceRecord(Type priceRecordType) throws OperationFailedException
Product
record Type. This method is used to retrieve an
object implementing the requested record. The priceRecordType
may be the Type returned in
getRecordTypes() or any of its parents in a Type
hierarchy where hasRecordType(priceRecordType)
is true .priceRecordType - the type of price record to retrieveNullArgumentException - priceRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(priceRecordType) is false mandatory - This method must be implemented.