OSID Logo
OSID Specifications
billing payment package
Version 3.1.0
Interfaceosid.billing.payment.SummarySession
Implementsosid.OsidSession
Used Byosid.billing.payment.BillingPaymentManager
osid.billing.payment.BillingPaymentProxyManager
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.Id the Business Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetBusiness
Description

Gets the Business associated with this session.

Returnosid.billing.Business the business
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.

Compliancemandatory This 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.

Compliancemandatory This 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.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedBusinessView
Description

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

Compliancemandatory This method is must be implemented.
MethodgetCurrentSummaryForCustomer
Description

Gets the current Summary for the given customer.

Parametersosid.id.IdcustomerId a customer Id
Returnosid.billing.payment.Summary the returned Summary
ErrorsNOT_FOUND customerId is not found
NULL_ARGUMENT customerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdcustomerId a customer Id
Returnosid.billing.payment.SummaryList the returned Summary list
ErrorsNULL_ARGUMENT customerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdperiodId a period Id
Returnosid.billing.payment.SummaryList the returned Summary list
ErrorsNULL_ARGUMENT periodId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdcustomerId a customer Id
osid.id.IdperiodId a period Id
Returnosid.billing.payment.SummaryList the returned Summary list
ErrorsNULL_ARGUMENT customerId or periodId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.SummaryList the returned Summary list
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.SummaryList a list of Summary
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.