OSID Logo
OSID Specifications
acknowledgement package
Version 3.1.0
Interfaceosid.acknowledgement.BillingQuery
Implementsosid.OsidCatalogQuery
Used Byosid.acknowledgement.BillingQuery
osid.acknowledgement.BillingQuerySession
osid.acknowledgement.BillingSearchSession
osid.acknowledgement.CreditQuery
Description

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

MethodmatchCreditId
Description

Sets the credit Id for this query to match credits assigned to billings.

Parametersosid.id.IdcreditId a credit Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT creditId is null
Compliancemandatory This method must be implemented.
MethodclearCreditIdTerms
Description

Clears all credit Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsCreditQuery
Description

Tests if a credit query is available.

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

Gets the query for a billing.

Returnosid.acknowledgement.CreditQuery the credit query
ErrorsUNIMPLEMENTED supportsCreditQuery() is false
Complianceoptional This method must be implemented if supportsCreditQuery() is true.
MethodmatchAnyCredit
Description

Matches billings with any credit.

Parametersbooleanmatch true to match billings with any credit, false to match billings with no credits
Compliancemandatory This method must be implemented.
MethodclearCreditTerms
Description

Clears all credit terms.

Compliancemandatory This method must be implemented.
MethodmatchAncestorBillingId
Description

Sets the billing Id for this query to match billings that have the specified billing as an ancestor.

Parametersosid.id.IdbillingId a billing Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT billingId is null
Compliancemandatory This method must be implemented.
MethodclearAncestorBillingIdTerms
Description

Clears all ancestor billing Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAncestorBillingQuery
Description

Tests if a BillingQuery is available.

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

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

Returnosid.acknowledgement.BillingQuery the billing query
ErrorsUNIMPLEMENTED supportsAncestorBillingQuery() is false
Complianceoptional This method must be implemented if supportsAncestorBillingQuery() is true.
MethodmatchAnyAncestorBilling
Description

Matches billings with any ancestor.

Parametersbooleanmatch true to match billings with any ancestor, false to match root billings
Compliancemandatory This method must be implemented.
MethodclearAncestorBillingTerms
Description

Clears all ancestor billing terms.

Compliancemandatory This method must be implemented.
MethodmatchDescendantBillingId
Description

Sets the billing Id for this query to match billings that have the specified billing as a descendant.

Parametersosid.id.IdbillingId a billing Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT billingId is null
Compliancemandatory This method must be implemented.
MethodclearDescendantBillingIdTerms
Description

Clears all descendant billing Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsDescendantBillingQuery
Description

Tests if a BillingQuery is available.

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

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

Returnosid.acknowledgement.BillingQuery the billing query
ErrorsUNIMPLEMENTED supportsDescendantBillingQuery() is false
Complianceoptional This method must be implemented if supportsDescendantBillingQuery() is true.
MethodmatchAnyDescendantBilling
Description

Matches billings with any descendant.

Parametersbooleanmatch true to match billings with any descendant, false to match leaf billings
Compliancemandatory This method must be implemented.
MethodclearDescendantBillingTerms
Description

Clears all descendant billing terms.

Compliancemandatory This method must be implemented.
MethodgetBillingQueryRecord
Description

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

Parametersosid.type.TypebillingRecordType a billing record type
Returnosid.acknowledgement.records.BillingQueryRecord the billing query record
ErrorsNULL_ARGUMENT billingRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(billingRecordType) is false
Compliancemandatory This method must be implemented.