OSID Logo
OSID Specifications
billing package
Version 3.1.0
Interfaceosid.billing.ItemQuery
Implementsosid.OsidObjectQuery
Used Byosid.billing.BusinessQuery
osid.billing.EntryQuery
osid.billing.ItemQuerySession
osid.billing.ItemSearchSession
osid.billing.ItemSmartBusinessSession
Description

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

MethodmatchCategoryId
Description

Sets the category Id for this query.

Parametersosid.id.IdcategoryId a category Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT categoryId is null
Compliancemandatory This method must be implemented.
MethodclearCategoryIdTerms
Description

Clears the category Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsCategoryQuery
Description

Tests if a CategoryQuery is available.

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

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

Returnosid.billing.CategoryQuery a category query
ErrorsUNIMPLEMENTED supportsCategoryQuery() is false
Complianceoptional This method must be implemented if supportscategoryQuery() is true.
MethodclearCategoryTerms
Description

Clears the category terms.

Compliancemandatory This method must be implemented.
MethodmatchAccountId
Description

Sets the account Id for this query to match items that have a related financial account.

Parametersosid.id.IdaccountId an account Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT accountId is null
Compliancemandatory This method must be implemented.
MethodclearAccountIdTerms
Description

Clears the account Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAccountQuery
Description

Tests if an AccountQuery is available.

Returnboolean true if an account query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAccountQuery
Description

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

Returnosid.financials.AccountQuery the account query
ErrorsUNIMPLEMENTED supportsAccountQuery() is false
Complianceoptional This method must be implemented if supportsAccountQuery() is true.
MethodmatchAnyAccount
Description

Matches items that have any account.

Parametersbooleanmatch true to match items with any account, false to match items with no account
Compliancemandatory This method must be implemented.
MethodclearAccountTerms
Description

Clears the account terms.

Compliancemandatory This method must be implemented.
MethodmatchProductId
Description

Sets the product Id for this query to match items that have a related product.

Parametersosid.id.IdproductId a product Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT productId is null
Compliancemandatory This method must be implemented.
MethodclearProductIdTerms
Description

Clears the account Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsProductQuery
Description

Tests if a ProductQuery is available.

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

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

Returnosid.ordering.ProductQuery the product query
ErrorsUNIMPLEMENTED supportsProductQuery() is false
Complianceoptional This method must be implemented if supportsProductQuery() is true.
MethodmatchAnyProduct
Description

Matches items that have any product.

Parametersbooleanmatch true to match items with any product, false to match items with no product
Compliancemandatory This method must be implemented.
MethodclearProductTerms
Description

Clears the product terms.

Compliancemandatory This method must be implemented.
MethodmatchAmount
Description

Matches the amount between the given range inclusive.

Parametersosid.financials.Currencylow start of range
osid.financials.Currencyhigh end of range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT low is greater than high
NULL_ARGUMENT low or high is null
Compliancemandatory This method must be implemented.
MethodmatchAnyAmount
Description

Matches items that have any amount set.

Parametersbooleanmatch true to match items with any amount, false to match items with no amount
Compliancemandatory This method must be implemented.
MethodclearAmountTerms
Description

Clears the amount terms.

Compliancemandatory This method must be implemented.
MethodmatchDebit
Description

Matches items that have debit amounts.

Parametersbooleanmatch true to match items with a debit amount, false to match items with a credit amount
Compliancemandatory This method must be implemented.
MethodclearDebitTerms
Description

Clears the debit terms.

Compliancemandatory This method must be implemented.
MethodmatchRecurringInterval
Description

Matches the recurring interval between the given range inclusive.

Parametersosid.calendaring.Durationlow start of range
osid.calendaring.Durationhigh end of range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT low is greater than high
NULL_ARGUMENT low or high is null
Compliancemandatory This method must be implemented.
MethodmatchAnyRecurringInterval
Description

Matches items that have any recurring interval.

Parametersbooleanmatch true to match items with any recurring interval, false to match items with a one-time charge
Compliancemandatory This method must be implemented.
MethodclearRecurringIntervalTerms
Description

Clears the amount terms.

Compliancemandatory This method must be implemented.
MethodmatchEntryId
Description

Sets the entry Id for this query to match items that have a related entry.

Parametersosid.id.IdentryId an entry Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT entryId is null
Compliancemandatory This method must be implemented.
MethodclearEntryIdTerms
Description

Clears the entry Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsEntryQuery
Description

Tests if an EntryQuery is available.

Returnboolean true if an entry query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetEntryQuery
Description

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

Returnosid.billing.EntryQuery the entry query
ErrorsUNIMPLEMENTED supportsEntryQuery() is false
Complianceoptional This method must be implemented if supportsEntryQuery() is true.
MethodmatchAnyEntry
Description

Matches items that have any entry.

Parametersbooleanmatch true to match items with any entry. false to match items with no entry
Compliancemandatory This method must be implemented.
MethodclearEntryTerms
Description

Clears the entry terms.

Compliancemandatory This method must be implemented.
MethodmatchBusinessId
Description

Sets the business Id for this query to match customers 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 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 terms.

Compliancemandatory This method must be implemented.
MethodgetItemQueryRecord
Description

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

Parametersosid.type.TypeitemRecordType an item record type
Returnosid.billing.records.ItemQueryRecord the item query record
ErrorsNULL_ARGUMENT itemRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(itemRecordType) is false
Compliancemandatory This method must be implemented.