OSID Logo
OSID Specifications
billing package
Version 3.0.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.Metadatametadata for the quantity
CompliancemandatoryThis method must be implemented.
MethodsetQuantity
Description

Sets the quantity.

Parameterscardinalquantitythe new quantity
ErrorsINVALID_ARGUMENTquantity is invalid
NO_ACCESSMetadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearQuantity
Description

Removes the quantity.

ErrorsNO_ACCESSMetadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetAmountMetadata
Description

Gets the metadata for the amount.

Returnosid.Metadatametadata for the amount
CompliancemandatoryThis method must be implemented.
MethodsetAmount
Description

Sets the amount.

Parametersosid.financials.Currencyamountthe new amount
ErrorsINVALID_ARGUMENTamount is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTamount is null
CompliancemandatoryThis method must be implemented.
MethodclearAmount
Description

Removes the amount.

ErrorsNO_ACCESSMetadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetDebitMetadata
Description

Gets the metadata for the debit flag.

Returnosid.Metadatametadata for the debit flag
CompliancemandatoryThis method must be implemented.
MethodsetDebit
Description

Sets the debit flag.

Parametersbooleandebittrue if this entry is a debit, false if a credit
ErrorsINVALID_ARGUMENTdebit is invalid
NO_ACCESSMetadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearDebit
Description

Clears the debit flag.

ErrorsNO_ACCESSMetadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetEntryFormRecord
Description

Gets the EntryFormRecord corresponding to the given entry record Type .

Parametersosid.type.TypeentryRecordTypean entry record type
Returnosid.billing.records.EntryFormRecordthe entry form record
ErrorsNULL_ARGUMENTentryRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(entryRecordType) is false
CompliancemandatoryThis method must be implemented.