OSID Logo
OSID Specifications
billing payment package
Version 3.0.0
Interfaceosid.billing.payment.PaymentQuery
Implementsosid.OsidObjectQuery
Used Byosid.billing.payment.PaymentQuerySession
osid.billing.payment.PaymentSearchSession
osid.billing.payment.PaymentSmartBusinessSession
Description

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

MethodmatchPayerId
Description

Sets the payer Id for this query.

Parametersosid.id.IdpayerIda payer Id
booleanmatchtrue if a positive match, false for a negative match
ErrorsNULL_ARGUMENTpayerId is null
CompliancemandatoryThis method must be implemented.
MethodclearPayerIdTerms
Description

Clears the payer Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsPayerQuery
Description

Tests if a PayerQuery is available.

Returnbooleantrue if a payer query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetPayerQuery
Description

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

Returnosid.billing.payment.PayerQuerythe payer query
ErrorsUNIMPLEMENTEDsupportsPayerQuery() is false
ComplianceoptionalThis method must be implemented if supportsPayerQuery() is true .
MethodclearPayerTerms
Description

Clears the payer terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCustomerId
Description

Sets the customer Id for this query.

Parametersosid.id.IdcustomerIda customer Id
booleanmatchtrue if a positive match, false for a negative match
ErrorsNULL_ARGUMENTcustomerId is null
CompliancemandatoryThis method must be implemented.
MethodclearCustomerIdTerms
Description

Clears the customer Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCustomerQuery
Description

Tests if a CustomereQuery is available.

Returnbooleantrue 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.CustomerQuerya customer query
ErrorsUNIMPLEMENTEDsupportsCustomerQuery() is false
ComplianceoptionalThis method must be implemented if supportsCustomerQuery() is true .
MethodclearCustomerTerms
Description

Clears the customer terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPeriodId
Description

Sets the biliing period Id for this query.

Parametersosid.id.IdperiodIda period Id
booleanmatchtrue if a positive match, false for a negative match
ErrorsNULL_ARGUMENTperiodId is null
CompliancemandatoryThis method must be implemented.
MethodclearPeriodIdTerms
Description

Clears the billing period Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsPeriodQuery
Description

Tests if a PeriodQuery is available.

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

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

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

Matches payments with any billing period.

Parametersbooleanmatchtrue to match payments with any period, false to match peyments with no period
CompliancemandatoryThis method must be implemented.
MethodclearPeriodTerms
Description

Clears the billing period terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPaymentDate
Description

Matches payment dates between the given date range inclusive.

Parametersosid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTfrom is greater than to
NULL_ARGUMENTfrom or to is null
CompliancemandatoryThis method must be implemented.
MethodclearPaymentDateTerms
Description

Clears the payment date terms.

CompliancemandatoryThis method must be implemented.
MethodmatchProcessDate
Description

Matches process dates between the given date range inclusive.

Parametersosid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTfrom is greater than to
NULL_ARGUMENTfrom or to is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyProcessDate
Description

Matches payments with any process date.

Parametersbooleanmatchtrue to match payments with any process date, false to match peyments with no process date
CompliancemandatoryThis method must be implemented.
MethodclearProcessDateTerms
Description

Clears the process date terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAmount
Description

Matches amounts between the given range inclusive.

Parametersosid.financials.Currencyfromstart of range
osid.financials.Currencytoend of range
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTfrom is greater than to
NULL_ARGUMENTfrom or to is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyAmount
Description

Matches payments with any amount.

Parametersbooleanmatchtrue to match payments with any amount, false to match peyments with no amount
CompliancemandatoryThis method must be implemented.
MethodclearAmountTerms
Description

Clears the amount.

CompliancemandatoryThis method must be implemented.
MethodmatchBusinessId
Description

Sets the business Id for this query to match payments assigned to businesses.

Parametersosid.id.IdbusinessIdthe business Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTbusinessId is null
CompliancemandatoryThis method must be implemented.
MethodclearBusinessIdTerms
Description

Clears the business Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsBusinessQuery
Description

Tests if a BusinessQuery is available.

Returnbooleantrue if a business query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetBusinessQuery
Description

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

Returnosid.billing.BusinessQuerythe business query
ErrorsUNIMPLEMENTEDsupportsBusinessQuery() is false
ComplianceoptionalThis method must be implemented if supportsBusinessQuery() is true .
MethodclearBusinessTerms
Description

Clears the business terms.

CompliancemandatoryThis method must be implemented.
MethodgetPaymentQueryRecord
Description

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

Parametersosid.type.TypepaymentRecordTypea payment record type
Returnosid.billing.payment.records.PaymentQueryRecordthe payment query record
ErrorsNULL_ARGUMENTpaymentRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(paymentRecordType) is false
CompliancemandatoryThis method must be implemented.