OSID Logo
OSID Specifications
billing payment package
Version 3.0.0
Release Candidate Preview
Interfaceosid.billing.payment.PaymentSearchSession
Implementsosid.billing.payment.PaymentQuerySession
Description

This session provides methods for searching among Payment objects. The search query is constructed using the PaymentQuery.

getPaymentsByQuery() is the basic search method and returns a list of Payments. A more advanced search may be performed with getPaymentsBySearch(). It accepts a PaymentSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getPaymentsBySearch() returns a PaymentSearchResults that can be used to access the resulting PaymentList or be used to perform a search within the result set through PaymentSearch.

This session defines views that offer differing behaviors for searching.

  • federated business view: searches include payments in businesses of which this business is an ancestor in the business hierarchy
  • isolated business view: searches are restricted to payments in this business

Payments may have a query record indicated by their respective record types. The queryrecord is accessed via the PaymentQuery.

MethodgetPaymentSearch
Description

Gets a payment search.

Returnosid.billing.payment.PaymentSearchthe payment search
CompliancemandatoryThis method must be implemented.
MethodgetPaymentSearchOrder
Description

Gets a payment search order. The PaymentSearchOrder is supplied to a PaymentSearch to specify the ordering of results.

Returnosid.billing.payment.PaymentSearchOrderthe payment search order
CompliancemandatoryThis method must be implemented.
MethodgetPaymentsBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.billing.payment.PaymentQuerypaymentQuerythe payment query
osid.billing.payment.PaymentSearchpaymentSearchthe payment search
Returnosid.billing.payment.PaymentSearchResultsthe payment search results
ErrorsNULL_ARGUMENT paymentQuery or paymentSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED paymentQuery or paymentSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetPaymentQueryFromInspector
Description

Gets a payment query from an inspector. The inspector is available from a PaymentSearchResults.

Parametersosid.assessment.ItemQueryInspectorpaymentQueryInspectora payment query inspector
Returnosid.billing.payment.PaymentQuerythe payment query
ErrorsNULL_ARGUMENT paymentQueryInspector is null
UNSUPPORTED paymentQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.