OSID Logo
OSID Specifications
billing package
Version 3.1.0
Interfaceosid.billing.PeriodQuery
Implementsosid.OsidObjectQuery
Used Byosid.billing.BusinessQuery
osid.billing.EntryQuery
osid.billing.PeriodQuerySession
osid.billing.PeriodSearchSession
osid.billing.PeriodSmartBusinessSession
osid.billing.payment.PaymentQuery
Description

This is the query for searching periods. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchDisplayLabel
Description

Adds a display label for this query.

Parametersstringlabel label string to match
osid.type.TypestringMatchType the label match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT label not of stringMatchType
NULL_ARGUMENT label or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
Compliancemandatory This method must be implemented.
MethodmatchAnyDisplayLabel
Description

Matches a display label that has any value.

Parametersbooleanmatch true to match customers with any label, false to match assets with no title
Compliancemandatory This method must be implemented.
MethodclearDisplayLabelTerms
Description

Clears the display label query terms.

Compliancemandatory This method must be implemented.
MethodmatchOpenDate
Description

Matches the open date between the given range inclusive.

Parametersosid.calendaring.DateTimelow low date range
osid.calendaring.DateTimehigh high date range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
Compliancemandatory This method must be implemented.
MethodmatchAnyOpenDate
Description

Matches a period that has any open date assigned.

Parametersbooleanmatch true to match periods with any open date, false to match events with no open date
Compliancemandatory This method must be implemented.
MethodclearOpenDateTerms
Description

Clears the open date query terms.

Compliancemandatory This method must be implemented.
MethodmatchCloseDate
Description

Matches the close date between the given range inclusive.

Parametersosid.calendaring.DateTimelow low date range
osid.calendaring.DateTimehigh high date range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
Compliancemandatory This method must be implemented.
MethodmatchAnyCloseDate
Description

Matches a period that has any close date assigned.

Parametersbooleanmatch true to match periods with any close date, false to match events with no close date
Compliancemandatory This method must be implemented.
MethodclearCloseDateTerms
Description

Clears the close date query terms.

Compliancemandatory This method must be implemented.
MethodmatchBillingDate
Description

Matches the billing date between the given range inclusive.

Parametersosid.calendaring.DateTimelow low date range
osid.calendaring.DateTimehigh high date range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
Compliancemandatory This method must be implemented.
MethodmatchAnyBillingDate
Description

Matches a period that has any billing date assigned.

Parametersbooleanmatch true to match periods with any billing date, false to match events with no billing date
Compliancemandatory This method must be implemented.
MethodclearBillingDateTerms
Description

Clears the billing date query terms.

Compliancemandatory This method must be implemented.
MethodmatchDueDate
Description

Matches the due date between the given range inclusive.

Parametersosid.calendaring.DateTimelow low date range
osid.calendaring.DateTimehigh high date range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
Compliancemandatory This method must be implemented.
MethodmatchAnyDueDate
Description

Matches a period that has any due date assigned.

Parametersbooleanmatch true to match periods with any due date, false to match events with no due date
Compliancemandatory This method must be implemented.
MethodclearDueDateTerms
Description

Clears the due date query terms.

Compliancemandatory This method must be implemented.
MethodmatchBusinessId
Description

Sets the business Id for this query to match periods assigned to businesses.

Parametersosid.id.IdbusinessId the business Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT businessId is null
Compliancemandatory This method must be implemented.
MethodclearBusinessIdTerms
Description

Clears the business Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsBusinessQuery
Description

Tests if a BusinessQuery is available.

Returnboolean true if a business query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetBusinessQuery
Description

Gets the query for a business. Multiple retrievals produce a nested OR term.

Returnosid.billing.BusinessQuery the business query
ErrorsUNIMPLEMENTED supportsBusinessQuery() is false
Complianceoptional This method must be implemented if supportsBusinessQuery() is true.
MethodclearBusinessTerms
Description

Clears the business query terms.

Compliancemandatory This method must be implemented.
MethodgetPeriodQueryRecord
Description

Gets the period query record corresponding to the given Period record Type .Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypeperiodRecordType a period record type
Returnosid.billing.records.PeriodQueryRecord the period query record
ErrorsNULL_ARGUMENT periodRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(periodRecordType) is false
Compliancemandatory This method must be implemented.