OSID Logo
OSID Specifications
billing package
Version 3.1.0
Interfaceosid.billing.CustomerQuery
Implementsosid.OsidObjectQuery
osid.OsidTemporalQuery
Used Byosid.billing.BusinessQuery
osid.billing.CustomerQuerySession
osid.billing.CustomerSearchSession
osid.billing.CustomerSmartBusinessSession
osid.billing.EntryQuery
osid.billing.payment.PayerQuery
osid.billing.payment.PaymentQuery
Description

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

MethodmatchResourceId
Description

Sets the resource Id for this query.

Parametersosid.id.IdresourceId a resource Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT resourceId is null
Compliancemandatory This method must be implemented.
MethodclearResourceIdTerms
Description

Clears the resource Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsResourceQuery
Description

Tests if a ResourceQuery is available.

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

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

Returnosid.resource.ResourceQuery a resource query
ErrorsUNIMPLEMENTED supportsResourceQuery() is false
Complianceoptional This method must be implemented if supportsResourceQuery() is true.
MethodclearResourceTerms
Description

Clears the resource terms.

Compliancemandatory This method must be implemented.
MethodmatchCustomerNumber
Description

Matches customer numbers.

Parametersstringnumber a customer number
osid.type.TypestringMatchType a string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT number not of stringMatchType
NULL_ARGUMENT number or stringMatchType is null
Compliancemandatory This method must be implemented.
MethodmatchAnyCustomerNumber
Description

Matches customers with any number.

Parametersbooleanmatch true to match customers with any number, false to match customers with no number
Compliancemandatory This method must be implemented.
MethodclearCustomerNumberTerms
Description

Clears the customer number.

Compliancemandatory This method must be implemented.
MethodmatchActivityId
Description

Sets the activity Id for this query to match customers that have a financial activity.

Parametersosid.id.IdactivityId an activity Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT activityId is null
Compliancemandatory This method must be implemented.
MethodclearActivityIdTerms
Description

Clears the activity Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsActivityQuery
Description

Tests if an ActivityQuery is available.

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

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

Returnosid.financials.ActivityQuery an activity query
ErrorsUNIMPLEMENTED supportsActivityQuery() is false
Complianceoptional This method must be implemented if supportsActivityQuery() is true.
MethodmatchAnyActivity
Description

Matches customers that have any financial activity.

Parametersbooleanmatch true to match customers with any activity, false to match customers with no activity
Compliancemandatory This method must be implemented.
MethodclearActivityTerms
Description

Clears the activity 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.
MethodgetCustomerQueryRecord
Description

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

Parametersosid.type.TypecustomerRecordType a customer record type
Returnosid.billing.records.CustomerQueryRecord the customer query record
ErrorsNULL_ARGUMENT customerRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(customerRecordType) is false
Compliancemandatory This method must be implemented.