OSID Logo
OSID Specifications
billing package
Version 3.0.0
Release Candidate Preview
Interfaceosid.billing.Period
Implementsosid.OsidObject
Description

A Period represents a billing period.

MethodgetDisplayLabel
Description

Gets a display label for this period which may be less formal than the display name.

Returnosid.locale.DisplayTextthe period label
CompliancemandatoryThis method must be implemented.
MethodhasOpenDate
Description

Tests if this period has an open date.

Returnboolean true if there is an open date associated with this period, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetOpenDate
Description

Gets the open date.

Returnosid.calendaring.DateTimethe open date
ErrorsILLEGAL_STATE hasOpenDate() is false
CompliancemandatoryThis method must be implemented.
MethodhasCloseDate
Description

Tests if this period has a close date.

Returnboolean true if there is a close date associated with this period, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCloseDate
Description

Gets the close date.

Returnosid.calendaring.DateTimethe close date
ErrorsILLEGAL_STATE hasCloseDate() is false
CompliancemandatoryThis method must be implemented.
MethodhasBillingDate
Description

Tests if this period has a billing date.

Returnboolean true if there is a billing date associated with this period, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetBillingDate
Description

Gets the billing date.

Returnosid.calendaring.DateTimethe billing date
ErrorsILLEGAL_STATE hasBillingDate() is false
CompliancemandatoryThis method must be implemented.
MethodhasDueDate
Description

Tests if this period has a due date.

Returnboolean true if there is a due date associated with this period, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetDueDate
Description

Gets the due date.

Returnosid.calendaring.DateTimethe due date
ErrorsILLEGAL_STATE hasDueDate() is false
CompliancemandatoryThis method must be implemented.
MethodgetPeriodRecord
Description

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

Parametersosid.type.TypeperiodRecordTypethe type of period record to retrieve
Returnosid.billing.records.PeriodRecordthe period record
ErrorsNULL_ARGUMENT periodRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(periodRecordType) is false
CompliancemandatoryThis method must be implemented.