OSID Logo
OSID Specifications
acknowledgement package
Version 3.0.0
Release Candidate Preview
Interfaceosid.acknowledgement.BillingQuery
Implementsosid.OsidCatalogQuery
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.IdcreditIda credit Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT creditId is null
CompliancemandatoryThis method must be implemented.
MethodclearCreditIdTerms
Description

Clears all credit Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCreditQuery
Description

Tests if a credit query is available.

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

Gets the query for a billing.

Returnosid.acknowledgement.CreditQuerythe credit query
ErrorsUNIMPLEMENTED supportsCreditQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearCreditTerms
Description

Clears all credit terms.

CompliancemandatoryThis 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.IdbillingIda billing Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT billingId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorBillingIdTerms
Description

Clears all ancestor billing Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorBillingQuery
Description

Tests if a BillingQuery is available.

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

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

Returnosid.acknowledgement.BillingQuerythe billing query
ErrorsUNIMPLEMENTED supportsAncestorBillingQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearAncestorBillingTerms
Description

Clears all ancestor billing terms.

CompliancemandatoryThis 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.IdbillingIda billing Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT billingId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantBillingIdTerms
Description

Clears all descendant billing Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantBillingQuery
Description

Tests if a BillingQuery is available.

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

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

Returnosid.acknowledgement.BillingQuerythe billing query
ErrorsUNIMPLEMENTED supportsDescendantBillingQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearDescendantBillingTerms
Description

Clears all descendant billing terms.

CompliancemandatoryThis 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.TypebillingRecordTypea billing record type
Returnosid.acknowledgement.records.BillingQueryRecordthe billing query record
ErrorsNULL_ARGUMENT billingRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(billingRecordType) is false
CompliancemandatoryThis method must be implemented.