OSID Logo
OSID Specifications
acknowledgement package
Version 3.0.0
Release Candidate Preview
Interfaceosid.acknowledgement.CreditBillingSession
Implementsosid.OsidSession
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
CompliancemandatoryThis 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.

CompliancemandatoryThis 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.

CompliancemandatoryThis 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.IdListlist of related credit Ids
ErrorsNOT_FOUND billingId is not found
NULL_ARGUMENT billingId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCreditsByBilling
Description

Gets the list of Credits associated with a Billing.

Parametersosid.id.IdbillingId Id of a Billing
Returnosid.acknowledgement.CreditListlist of related credits
ErrorsNOT_FOUND billingId is not found
NULL_ARGUMENT billingId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCreditIdsByBillings
Description

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

Parametersosid.id.IdListbillingIdslist of billing Ids
Returnosid.id.IdListlist of credit Ids
ErrorsNULL_ARGUMENT billingIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCreditsByBillings
Description

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

Parametersosid.id.IdListbillingIdslist of billing Ids
Returnosid.acknowledgement.CreditListlist of credits
ErrorsNULL_ARGUMENT billingIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdListlist of billing Ids
ErrorsNOT_FOUND creditId is not found
NULL_ARGUMENT creditId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.BillingListlist of billings
ErrorsNOT_FOUND creditId is not found
NULL_ARGUMENT creditId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.