OSID Logo
OSID Specifications
billing package
Version 3.0.0
Interfaceosid.billing.Item
Implementsosid.OsidObject
Used Byosid.billing.Entry
osid.billing.ItemAdminSession
osid.billing.ItemList
osid.billing.ItemLookupSession
Description

An Item is a product or service.

MethodgetCategoryId
Description

Gets the category Id .

Returnosid.id.Idthe category Id
CompliancemandatoryThis method is must be implemented.
MethodgetCategory
Description

Gets the item category.

Returnosid.billing.Categorythe category
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodhasAccount
Description

Tests if this item relates to s specific general ledger account.

Returnbooleantrue if this item has an account, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAccountId
Description

Gets the account Id .

Returnosid.id.Idthe account Id
ErrorsILLEGAL_STATEhasAccount() is false
CompliancemandatoryThis method is must be implemented.
MethodgetAccount
Description

Gets the item account.

Returnosid.financials.Accountthe account
ErrorsILLEGAL_STATEhasAccount() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodhasProduct
Description

Tests if this item relates to s specific product.

Returnbooleantrue if this item has a product, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetProductId
Description

Gets the product Id .

Returnosid.id.Idthe product Id
ErrorsILLEGAL_STATEhasProduct() is false
CompliancemandatoryThis method is must be implemented.
MethodgetProduct
Description

Gets the product.

Returnosid.ordering.Productthe product
ErrorsILLEGAL_STATEhasProduct() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetAmount
Description

Gets the amount of this item.

Returnosid.financials.Currencythe amount
CompliancemandatoryThis method must be implemented.
MethodisDebit
Description

Tests if the amount is a debit or a credit.

Returnbooleantrue if this item amount is a debit, false if it is a credit
CompliancemandatoryThis method must be implemented.
MethodisRecurring
Description

Tests if this item is a recurring charge.

Returnbooleantrue if this item is recurring, false if one-time
CompliancemandatoryThis method must be implemented.
MethodgetRecurringInterval
Description

Gets the recurring interval.

Returnosid.calendaring.Durationthe interval
ErrorsILLEGAL_STATEisRecurring() is false
CompliancemandatoryThis 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.TypeitemRecordTypethe type of item record to retrieve
Returnosid.billing.records.ItemRecordthe item record
ErrorsNULL_ARGUMENTitemRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(itemRecordType) is false
CompliancemandatoryThis method must be implemented.