OSID Logo
OSID Specifications
billing package
Version 3.0.0
Interfaceosid.billing.ItemForm
Implementsosid.OsidObjectForm
Implemented Byosid.billing.batch.ItemBatchForm
Used Byosid.billing.ItemAdminSession
Description

This is the form for creating and updating Items . Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the ItemAdminSession . For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetCategoryMetadata
Description

Gets the metadata for the category.

Returnosid.Metadatametadata for the category
CompliancemandatoryThis method must be implemented.
MethodsetCategory
Description

Sets the category.

Parametersosid.id.IdcategoryIdthe new category
ErrorsINVALID_ARGUMENTcategoryId is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTcategoryId is null
CompliancemandatoryThis method must be implemented.
MethodclearCategory
Description

Removes the category.

ErrorsNO_ACCESSMetadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetAccountMetadata
Description

Gets the metadata for the general ledger account.

Returnosid.Metadatametadata for the account
CompliancemandatoryThis method must be implemented.
MethodsetAccount
Description

Sets the general ledger account.

Parametersosid.id.IdaccountIdthe new account
ErrorsINVALID_ARGUMENTaccountId is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTaccountId is null
CompliancemandatoryThis method must be implemented.
MethodclearAccount
Description

Removes the account.

ErrorsNO_ACCESSMetadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetProductMetadata
Description

Gets the metadata for the product.

Returnosid.Metadatametadata for the product
CompliancemandatoryThis method must be implemented.
MethodsetProduct
Description

Sets the product.

Parametersosid.id.IdproductIdthe new product
ErrorsINVALID_ARGUMENTproductId is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTproductId is null
CompliancemandatoryThis method must be implemented.
MethodclearProduct
Description

Removes the product.

ErrorsNO_ACCESSMetadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetAmountMetadata
Description

Gets the metadata for the amount.

Returnosid.Metadatametadata for the amount
CompliancemandatoryThis method must be implemented.
MethodsetAmount
Description

Sets the amount.

Parametersosid.financials.Currencyamountthe new amount
ErrorsINVALID_ARGUMENTamount is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTamount is null
CompliancemandatoryThis method must be implemented.
MethodclearAmount
Description

Removes the amount.

ErrorsNO_ACCESSMetadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetDebitMetadata
Description

Gets the metadata for the debit flag.

Returnosid.Metadatametadata for the debit
CompliancemandatoryThis method must be implemented.
MethodsetAmount
Description

Sets the debit flag.

Parametersbooleandebittrue for a debit, false for a credit
ErrorsINVALID_ARGUMENTdebit is invalid
NO_ACCESSMetadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearDebit
Description

Removes the debit flag.

ErrorsNO_ACCESSMetadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetRecurringIntervalMetadata
Description

Gets the metadata for the recurring interval.

Returnosid.Metadatametadata for the recurring interval
CompliancemandatoryThis method must be implemented.
MethodsetRecurringInterval
Description

Sets the recurring interval.

Parametersosid.calendaring.Durationintervalthe new interval
ErrorsINVALID_ARGUMENTinterval is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTinterval is null
CompliancemandatoryThis method must be implemented.
MethodclearRecurringInterval
Description

Removes the recurring interval and sets the item as a one-time charge.

ErrorsNO_ACCESSMetadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetItemFormRecord
Description

Gets the ItemFormRecord corresponding to the given item record Type .

Parametersosid.type.TypeitemRecordTypean item record type
Returnosid.billing.records.ItemFormRecordthe item form record
ErrorsNULL_ARGUMENTitemRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(itemRecordType) is false
CompliancemandatoryThis method must be implemented.