OSID Logo
OSID Specifications
billing payment package
Version 3.1.0
Interfaceosid.billing.payment.PaymentBusinessAssignmentSession
Implementsosid.OsidSession
Used Byosid.billing.payment.BillingPaymentManager
osid.billing.payment.BillingPaymentProxyManager
Description

This session provides methods to re-assign Payments to Businesses. A Payment may appear in multiple Businesses and removing the last reference to a Payment is the equivalent of deleting it. Each Business may have its own authorizations governing who is allowed to operate on it.

Adding a reference of a Payment to another Business is not a copy operation (eg: does not change its Id).

MethodcanAssignPayments
Description

Tests if this user can alter payment/business mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users.

Returnboolean false if mapping is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcanAssignPaymentToBusiness
Description

Tests if this user can alter payment/business mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.

Parametersosid.id.IdbusinessId the Id of the Business
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT businessId is null
Compliancemandatory This method must be implemented.
MethodgetAssignableBusinessIds
Description

Gets a list of businesses including and under the given business node in which any payment can be assigned.

Parametersosid.id.IdbusinessId the Id of the Business
Returnosid.id.IdList list of assignable business Ids
ErrorsNULL_ARGUMENT businessId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetAssignableBusinessIdsForPayment
Description

Gets a list of businesses including and under the given business node in which a specific payment can be assigned.

Parametersosid.id.IdbusinessId the Id of the Business
osid.id.IdpaymentId the Id of the Payment
Returnosid.id.IdList list of assignable business Ids
ErrorsNULL_ARGUMENT businessId or paymentId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodassignPaymentToBusiness
Description

Adds an existing Payment to a Business.

Parametersosid.id.IdpaymentId the Id of the Payment
osid.id.IdbusinessId the Id of the Business
ErrorsALREADY_EXISTS paymentId is already assigned to businessId
NOT_FOUND paymentId or businessId not found
NULL_ARGUMENT paymentId or businessId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignPaymentFromBusiness
Description

Removes a Payment from a Business.

Parametersosid.id.IdpaymentId the Id of the Payment
osid.id.IdbusinessId the Id of the Business
ErrorsNOT_FOUND paymentId or businessId not found or paymentId not assigned to businessId
NULL_ARGUMENT paymentId or businessId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodreassignPaymentToBusiness
Description

Moves a Payment from one Business to another. Mappings to other Businesses are unaffected.

Parametersosid.id.IdpaymentId the Id of the Payment
osid.id.IdfromBusinessId the Id of the current Business
osid.id.IdtoBusinessId the Id of the destination Business
ErrorsALREADY_EXISTS paymentId already assigned to toBusinessId
NOT_FOUND paymentId, fromBusinessId, or toBusinessId not found or paymentId not mapped to fromBusinessId
NULL_ARGUMENT paymentId, fromBusinessId, or toBusinessId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.