OSID Logo
OSID Specifications
billing package
Version 3.0.0
Release Candidate Preview
Interfaceosid.billing.BusinessQuery
Implementsosid.OsidCatalogQuery
Description

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

MethodmatchCustomerId
Description

Sets the customer Id for this query to match customers that have a related customer.

Parametersosid.id.IdcustomerIda customer Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT customerId is null
CompliancemandatoryThis method must be implemented.
MethodclearCustomerIdTerms
Description

Clears the customer Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCustomerQuery
Description

Tests if a CustomerQuery is available.

Returnboolean true if a customer query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCustomerQuery
Description

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

Returnosid.billing.CustomerQuerythe customer query
ErrorsUNIMPLEMENTED supportsCustomerQuery() is false
ComplianceoptionalThis method must be implemented if supportsCustomerQuery() is true.
MethodmatchAnyCustomer
Description

Matches businesses that have any customer.

Parametersbooleanmatch true to match customers with any customer, false to match customers with no customer
CompliancemandatoryThis method must be implemented.
MethodclearCustomerTerms
Description

Clears the customer query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchItemId
Description

Sets the item Id for this query.

Parametersosid.id.IditemIdan item Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT itemId is null
CompliancemandatoryThis method must be implemented.
MethodclearItemIdTerms
Description

Clears the item Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsItemQuery
Description

Tests if an ItemQuery is available.

Returnboolean true if an item query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetItemQuery
Description

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

Returnosid.billing.ItemQuerythe item query
ErrorsUNIMPLEMENTED supportsItemQuery() is false
ComplianceoptionalThis method must be implemented if supportsItemQuery() is true.
MethodmatchAnyItem
Description

Matches businesses that have any item.

Parametersbooleanmatch true to match businesses with any item, false to match businesses with no items
CompliancemandatoryThis method must be implemented.
MethodclearItemTerms
Description

Clears the item query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCategoryId
Description

Sets the catalog Id for this query.

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

Clears the category Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCategoryQuery
Description

Tests if a CategoryQuery is available.

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

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

Returnosid.billing.CategoryQuerythe category query
ErrorsUNIMPLEMENTED supportsCategoryQuery() is false
ComplianceoptionalThis method must be implemented if supportsCategoryQuery() is true.
MethodmatchAnyCategory
Description

Matches businesses that have any category.

Parametersbooleanmatch true to match customers with any category, false to match customers with no category
CompliancemandatoryThis method must be implemented.
MethodclearCategoryTerms
Description

Clears the category query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchEntryId
Description

Sets the entry Id for this query.

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

Clears the entry Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsEntryQuery
Description

Tests if an EntryQuery is available.

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

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

Returnosid.billing.EntryQuerythe entry query
ErrorsUNIMPLEMENTED supportsEntryQuery() is false
ComplianceoptionalThis method must be implemented if supportsEntryQuery() is true.
MethodmatchAnyEntry
Description

Matches businesses that have any entry.

Parametersbooleanmatch true to match businesses with any entry, false to match businesses with no entries
CompliancemandatoryThis method must be implemented.
MethodclearEntryTerms
Description

Clears the entry query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPeriodId
Description

Sets the period Id for this query to match catalogs containing terms.

Parametersosid.id.IdperiodIdthe period Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT periodId is null
CompliancemandatoryThis method must be implemented.
MethodclearPeriodIdTerms
Description

Clears the period Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsPeriodQuery
Description

Tests if a PeriodQuery is available.

Returnboolean true if a period query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetPeriodQuery
Description

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

Returnosid.billing.PeriodQuerythe period query
ErrorsUNIMPLEMENTED supportsPeriodQuery() is false
ComplianceoptionalThis method must be implemented if supportsPeriodQuery() is true.
MethodmatchAnyPeriod
Description

Matches businesses that have any period.

Parametersbooleanmatch true to match businesses with any period, false to match customers with no period
CompliancemandatoryThis method must be implemented.
MethodclearPeriodTerms
Description

Clears the period query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAncestorBusinessId
Description

Sets the business Id for this query to match businesses that have the specified business as an ancestor.

Parametersosid.id.IdbusinessIda business Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT businessId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorBusinessIdTerms
Description

Clears the ancestor business Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorBusinessQuery
Description

Tests if a BusinessQuery is available.

Returnboolean true if a business query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAncestorBusinessQuery
Description

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

Returnosid.billing.BusinessQuerythe business query
ErrorsUNIMPLEMENTED supportsAncestorBusinessQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorBusinessQuery() is true.
MethodmatchAnyAncestorBusiness
Description

Matches businesses with any business ancestor.

Parametersbooleanmatch true to match businesses with any ancestor, false to match root businesses
CompliancemandatoryThis method must be implemented.
MethodclearAncestorBusinessTerms
Description

Clears the ancestor business query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDescendantBusinessId
Description

Sets the business Id for this query to match businesses that have the specified business as an descendant.

Parametersosid.id.IdbusinessIda business Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT businessId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantBusinessIdTerms
Description

Clears the descendant business Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantBusinessQuery
Description

Tests if a BusinessQuery is available.

Returnboolean true if a business query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetDescendantBusinessQuery
Description

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

Returnosid.billing.BusinessQuerythe business query
ErrorsUNIMPLEMENTED supportsDescendantBusinessQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantBusinessQuery() is true.
MethodmatchAnyDescendantBusiness
Description

Matches businesses with any descendant business.

Parametersbooleanmatch true to match businesses with any descendant, false to match leaf businesses
CompliancemandatoryThis method must be implemented.
MethodclearDescendantBusinessTerms
Description

Clears the descendant business query terms.

CompliancemandatoryThis method must be implemented.
MethodgetBusinessQueryRecord
Description

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

Parametersosid.type.TypebusinessRecordTypea business record type
Returnosid.billing.records.BusinessQueryRecordthe business query record
ErrorsNULL_ARGUMENT businessRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(businessRecordType) is false
CompliancemandatoryThis method must be implemented.