OSID Logo
OSID Specifications
billing package
Version 3.1.0
Interfaceosid.billing.Period
Implementsosid.OsidObject
Used Byosid.billing.Entry
osid.billing.PeriodAdminSession
osid.billing.PeriodList
osid.billing.PeriodLookupSession
osid.billing.payment.Payment
osid.billing.payment.Summary
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.DisplayText the period label
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetOpenDate
Description

Gets the open date.

Returnosid.calendaring.DateTime the open date
ErrorsILLEGAL_STATE hasOpenDate() is false
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetCloseDate
Description

Gets the close date.

Returnosid.calendaring.DateTime the close date
ErrorsILLEGAL_STATE hasCloseDate() is false
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetBillingDate
Description

Gets the billing date.

Returnosid.calendaring.DateTime the billing date
ErrorsILLEGAL_STATE hasBillingDate() is false
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetDueDate
Description

Gets the due date.

Returnosid.calendaring.DateTime the due date
ErrorsILLEGAL_STATE hasDueDate() is false
Compliancemandatory This 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.TypeperiodRecordType the type of period record to retrieve
Returnosid.billing.records.PeriodRecord the period record
ErrorsNULL_ARGUMENT periodRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(periodRecordType) is false
Compliancemandatory This method must be implemented.