OSID Logo
OSID Specifications
financials package
Version 3.0.0
Release Candidate Preview
Interfaceosid.financials.Account
Implementsosid.OsidObject
osid.Federateable
Description

An Account represents a general ledger account.

MethodisCreditBalance
Description

Tests if this account is a credit or debit account.

Returnboolean true if credits increase the balance, false if credits decrease the balance
CompliancemandatoryThis method must be implemented.
MethodgetCode
Description

Gets a code for this G/L account.

Returnstringan account code
CompliancemandatoryThis method must be implemented.
MethodgetAccountRecord
Description

Gets the account record corresponding to the given Account record Type. This method is used to retrieve an object implementing the requested record. The accountRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(accountRecordType) is true .

Parametersosid.type.TypeaccountRecordTypethe type of account record to retrieve
Returnosid.financials.records.AccountRecordthe account record
ErrorsNULL_ARGUMENT accountRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(accountRecordType) is false
CompliancemandatoryThis method must be implemented.