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

This session defines methods for retrieving payment summaries.

This lookup session defines several views:

  • comparative summary view: elements may be silently omitted or re-ordered
  • plenary summary view: provides a complete result set or is an error condition
  • isolated business view: All summary methods in this session operate, retrieve and pertain to summaries defined explicitly in the current business. Using an isolated view is useful for managing Summaries with the SummaryAdminSession.
  • federated business view: All summary lookup methods in this session operate, retrieve and pertain to all summaries defined in this business and any other summaries 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.

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

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.
MethodcanLookupSummaries
Description

Tests if this user can perform Summary 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.
MethoduseComparativeSummaryView
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.
MethodusePlenarySummaryView
Description

A complete view of the Summary 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 summaries 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.
MethodgetCurrentSummaryForCustomer
Description

Gets the current Summary for the given customer.

Parametersosid.id.IdcustomerIda customer Id
Returnosid.billing.payment.Summarythe returned Summary
ErrorsNOT_FOUND customerId is not found
NULL_ARGUMENT customerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetSummariesForCustomer
Description

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

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

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

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

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

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

Gets a SummaryList of currently past due payments. In plenary mode, the returned list contains all known summaries or an error results. Otherwise, the returned list may contain only those summaries that are accessible through this session.

Returnosid.billing.payment.SummaryListthe returned Summary list
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetSummaries
Description

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

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