OSID Logo
OSID Specifications
billing package
Version 3.1.0
Interfaceosid.billing.EntryForm
Implementsosid.OsidRelationshipForm
Implemented Byosid.billing.batch.EntryBatchForm
Used Byosid.billing.EntryAdminSession
Description

This is the form for creating and updating Entries. Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the EntryAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetQuantityMetadata
Description

Gets the metadata for the quantity.

Returnosid.Metadata metadata for the quantity
Compliancemandatory This method must be implemented.
MethodsetQuantity
Description

Sets the quantity.

Parameterscardinalquantity the new quantity
ErrorsINVALID_ARGUMENT quantity is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearQuantity
Description

Removes the quantity.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetAmountMetadata
Description

Gets the metadata for the amount.

Returnosid.Metadata metadata for the amount
Compliancemandatory This method must be implemented.
MethodsetAmount
Description

Sets the amount.

Parametersosid.financials.Currencyamount the new amount
ErrorsINVALID_ARGUMENT amount is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT amount is null
Compliancemandatory This method must be implemented.
MethodclearAmount
Description

Removes the amount.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetDebitMetadata
Description

Gets the metadata for the debit flag.

Returnosid.Metadata metadata for the debit flag
Compliancemandatory This method must be implemented.
MethodsetDebit
Description

Sets the debit flag.

Parametersbooleandebit true if this entry is a debit, false if a credit
ErrorsINVALID_ARGUMENT debit is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearDebit
Description

Clears the debit flag.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetEntryFormRecord
Description

Gets the EntryFormRecord corresponding to the given entry record Type.

Parametersosid.type.TypeentryRecordType an entry record type
Returnosid.billing.records.EntryFormRecord the entry form record
ErrorsNULL_ARGUMENT entryRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(entryRecordType) is false
Compliancemandatory This method must be implemented.