OSID Logo
OSID Specifications
billing payment package
Version 3.0.0
Release Candidate Preview
Interfaceosid.billing.payment.PaymentLookupSession
Implementsosid.OsidSession
Description

This session defines methods for retrieving payments.

This lookup session defines several views:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition
  • isolated business view: All payment methods in this session operate, retrieve and pertain to payments defined explicitly in the current business. Using an isolated view is useful for managing Payments with the PaymentAdminSession.
  • federated business view: All payment lookup methods in this session operate, retrieve and pertain to all payments defined in this business and any other payments implicitly available in this business through business inheritence.

The methods useFederatedBusinessView() and useIsolatedBusinessView() behave as a radio group and one should be selected before invoking any lookup methods.

Payments may have an additional records indicated by their respective record types. The record may not be accessed through a cast of the Payment.

MethodgetBusinessId
Description

Gets the Business Id associated with this session.

Returnosid.id.Idthe Business Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetBusiness
Description

Gets the Business associated with this session.

Returnosid.billing.Businessthe business
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanLookupPayments
Description

Tests if this user can perform Payment lookups. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may not offer lookup operations to unauthorized users.

Returnboolean false if lookup methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativePaymentView
Description

The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

CompliancemandatoryThis method is must be implemented.
MethodusePlenaryPaymentView
Description

A complete view of the Payment returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

CompliancemandatoryThis method is must be implemented.
MethoduseFederatedBusinessView
Description

Federates the view for methods in this session. A federated view will include payments in catalogs which are children of this catalog in the business hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedBusinessView
Description

Isolates the view for methods in this session. An isolated view restricts retrievals to this business only.

CompliancemandatoryThis method is must be implemented.
MethodgetPayment
Description

Gets the Payment specified by its Id. In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned Payment may have a different Id than requested, such as the case where a duplicate Id was assigned to a Payment and retained for compatibility.

Parametersosid.id.IdpaymentIdthe Id of the Payment to retrieve
Returnosid.billing.payment.Paymentthe returned Payment
ErrorsNOT_FOUNDno Payment found with the given Id
NULL_ARGUMENT paymentId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetPaymentsByIds
Description

Gets a PaymentList corresponding to the given IdList. In plenary mode, the returned list contains all of the payments specified in the Id list, in the order of the list, including duplicates, or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible Payments may be omitted from the list and may present the elements in any order including returning a unique set.

Parametersosid.id.IdListpaymentIdsthe list of Ids to retrieve
Returnosid.billing.payment.PaymentListthe returned Payment list
ErrorsNOT_FOUNDan Id was not found
NULL_ARGUMENT paymentIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetPaymentsByGenusType
Description

Gets a PaymentList corresponding to the given payment genus Type which does not include payments of types derived from the specified Type. In plenary mode, the returned list contains all known payments or an error results. Otherwise, the returned list may contain only those payments that are accessible through this session.

Parametersosid.type.TypepaymentGenusTypea payment genus type
Returnosid.billing.payment.PaymentListthe returned Payment list
ErrorsNULL_ARGUMENT paymentGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetPaymentsByParentGenusType
Description

Gets a PaymentList corresponding to the given payment genus Type and include any additional payments with genus types derived from the specified Type. In plenary mode, the returned list contains all known payments or an error results. Otherwise, the returned list may contain only those payments that are accessible through this session.

Parametersosid.type.TypepaymentGenusTypea payment genus type
Returnosid.billing.payment.PaymentListthe returned Payment list
ErrorsNULL_ARGUMENT paymentGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetPaymentsByRecordType
Description

Gets a PaymentList containing the given payment record Type. In plenary mode, the returned list contains all known payments or an error results. Otherwise, the returned list may contain only those payments that are accessible through this session.

Parametersosid.type.TypepaymentRecordTypea payment record type
Returnosid.billing.payment.PaymentListthe returned Payment list
ErrorsNULL_ARGUMENT paymentRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetPaymentsByPeriod
Description

Gets a PaymentList in the given period. In plenary mode, the returned list contains all known payments or an error results. Otherwise, the returned list may contain only those payments that are accessible through this session.

Parametersosid.id.IdperiodIda period Id
Returnosid.billing.payment.PaymentListthe returned Payment list
ErrorsNULL_ARGUMENT periodId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetPaymentsForPayer
Description

Gets a PaymentList for the given payer. In plenary mode, the returned list contains all known payments or an error results. Otherwise, the returned list may contain only those payments that are accessible through this session.

Parametersosid.id.IdpayerIda payer Id
Returnosid.billing.payment.PaymentListthe returned Payment list
ErrorsNULL_ARGUMENT payerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetPaymentsByPeriodForPayer
Description

Gets a PaymentList for the given payer in a billing period. In plenary mode, the returned list contains all known payments or an error results. Otherwise, the returned list may contain only those payments that are accessible through this session.

Parametersosid.id.IdpayerIda payer Id
osid.id.IdperiodIda period Id
Returnosid.billing.payment.PaymentListthe returned Payment list
ErrorsNULL_ARGUMENT payerId or periodId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetPaymentsForPayerOnDate
Description

Gets a PaymentList for the given payer made within the given date range inclusive. In plenary mode, the returned list contains all known payments or an error results. Otherwise, the returned list may contain only those payments that are accessible through this session.

Parametersosid.id.IdpayerIda payer Id
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.billing.payment.PaymentListthe returned Payment list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT payerId or periodId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetPaymentsForCustomer
Description

Gets a PaymentList for the given customer. In plenary mode, the returned list contains all known payments or an error results. Otherwise, the returned list may contain only those payments that are accessible through this session.

Parametersosid.id.IdcustomerIda customer Id
Returnosid.billing.payment.PaymentListthe returned Payment list
ErrorsNULL_ARGUMENT customerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetPaymentsByPeriodForCustomer
Description

Gets a PaymentList for the given customer and billing period. In plenary mode, the returned list contains all known payments or an error results. Otherwise, the returned list may contain only those payments that are accessible through this session.

Parametersosid.id.IdcustomerIda customer Id
osid.id.IdperiodIda period Id
Returnosid.billing.payment.PaymentListthe returned Payment list
ErrorsNULL_ARGUMENT customerId or periodId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetPaymentsForCustomerOnDate
Description

Gets a PaymentList for the given customer made within the given date range inclusive. In plenary mode, the returned list contains all known payments or an error results. Otherwise, the returned list may contain only those payments that are accessible through this session.

Parametersosid.id.IdcustomerIda customer Id
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.billing.payment.PaymentListthe returned Payment list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT customerId or periodId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetPaymentsForPayerAndCustomer
Description

Gets a PaymentList for the given payer and customer. In plenary mode, the returned list contains all known payments or an error results. Otherwise, the returned list may contain only those payments that are accessible through this session.

Parametersosid.id.IdpayerIda payer Id
osid.id.IdcustomerIda customerId Id
Returnosid.billing.payment.PaymentListthe returned Payment list
ErrorsNULL_ARGUMENT payerId or customerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetPaymentsByPeriodForPayerAndCustomer
Description

Gets a PaymentList for the given payer and customer in a billing period. In plenary mode, the returned list contains all known payments or an error results. Otherwise, the returned list may contain only those payments that are accessible through this session.

Parametersosid.id.IdpayerIda payer Id
osid.id.IdcustomerIda customerId Id
osid.id.IdperiodIda period Id
Returnosid.billing.payment.PaymentListthe returned Payment list
ErrorsNULL_ARGUMENT payerId, customerId, or periodId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetPaymentsForPayerAndCustomerOnDate
Description

Gets a PaymentList for the given customer and payer made within the given date range inclusive. In plenary mode, the returned list contains all known payments or an error results. Otherwise, the returned list may contain only those payments that are accessible through this session.

Parametersosid.id.IdpayerIda payer Id
osid.id.IdcustomerIda customerId Id
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.billing.payment.PaymentListthe returned Payment list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT payerId, customerId, or periodId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetPayments
Description

Gets all Payments. In plenary mode, the returned list contains all known payments or an error results. Otherwise, the returned list may contain only those payments that are accessible through this session.

Returnosid.billing.payment.PaymentLista list of Payments
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.