OSID Logo
OSID Specifications
acknowledgement package
Version 3.1.0
Interfaceosid.acknowledgement.CreditBillingSession
Implementsosid.OsidSession
Used Byosid.acknowledgement.AcknowledgementManager
osid.acknowledgement.AcknowledgementProxyManager
Description

This session provides methods to retrieve Credit to Billing mappings. A Credit may appear in multiple Billings. Each Billing may have its own authorizations governing who is allowed to look at it.

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
MethodcanLookupCreditBillingMappings
Description

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

Returnboolean false if looking up mappings is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseComparativeBillingView
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.
MethodusePlenaryBillingView
Description

A complete view of the Credit and Billing 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.
MethodgetCreditIdsByBilling
Description

Gets the list of Credit Ids associated with a Billing.

Parametersosid.id.IdbillingId Id of a Billings.
Returnosid.id.IdList list of related credit Ids
ErrorsNOT_FOUND billingId is not found
NULL_ARGUMENT billingId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetCreditsByBilling
Description

Gets the list of Credits associated with a Billing.

Parametersosid.id.IdbillingId Id of a Billing
Returnosid.acknowledgement.CreditList list of related credits
ErrorsNOT_FOUND billingId is not found
NULL_ARGUMENT billingId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetCreditIdsByBillings
Description

Gets the list of Credit Ids corresponding to a list of Billing objects.

Parametersosid.id.IdListbillingIds list of billing Ids
Returnosid.id.IdList list of credit Ids
ErrorsNULL_ARGUMENT billingIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetCreditsByBillings
Description

Gets the list of Credits corresponding to a list of Billings.

Parametersosid.id.IdListbillingIds list of billing Ids
Returnosid.acknowledgement.CreditList list of credits
ErrorsNULL_ARGUMENT billingIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetBillingIdsByCredit
Description

Gets the list of Billing Ids mapped to a Credit.

Parametersosid.id.IdcreditId Id of a Credit
Returnosid.id.IdList list of billing Ids
ErrorsNOT_FOUND creditId is not found
NULL_ARGUMENT creditId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetBillingsByCredit
Description

Gets the list of Billing objects mapped to a Credit.

Parametersosid.id.IdcreditId Id of a Credit
Returnosid.acknowledgement.BillingList list of billings
ErrorsNOT_FOUND creditId is not found
NULL_ARGUMENT creditId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.