OSID Logo
OSID Specifications
billing package
Version 3.0.0
Release Candidate Preview
Interfaceosid.billing.Item
Implementsosid.OsidObject
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.

Returnboolean true 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_STATE hasAccount() is false
CompliancemandatoryThis method is must be implemented.
MethodgetAccount
Description

Gets the item account.

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

Tests if this item relates to s specific product.

Returnboolean true 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_STATE hasProduct() is false
CompliancemandatoryThis method is must be implemented.
MethodgetProduct
Description

Gets the product.

Returnosid.ordering.Productthe product
ErrorsILLEGAL_STATE hasProduct() 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.

Returnboolean true 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.

Returnboolean true 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_STATE isRecurring() 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_ARGUMENT itemRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(itemRecordType) is false
CompliancemandatoryThis method must be implemented.