OSID Logo
OSID Specifications
billing payment package
Version 3.0.0
Release Candidate Preview
Interfaceosid.billing.payment.PaymentQuery
Implementsosid.OsidObjectQuery
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
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT payerId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsPayerQuery() 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
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 terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCustomerQuery
Description

Tests if a CustomereQuery 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.CustomerQuerya customer query
ErrorsUNIMPLEMENTED supportsCustomerQuery() 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
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT periodId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsPeriodQuery() is false
ComplianceoptionalThis method must be implemented if supportsPeriodQuery() is true.
MethodmatchAnyPeriod
Description

Matches payments with any billing period.

Parametersbooleanmatch true 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
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from 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
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyProcessDate
Description

Matches payments with any process date.

Parametersbooleanmatch true 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
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyAmount
Description

Matches payments with any amount.

Parametersbooleanmatch true 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
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT businessId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsBusinessQuery() 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_ARGUMENT paymentRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(paymentRecordType) is false
CompliancemandatoryThis method must be implemented.