OSID Logo
OSID Specifications
billing payment package
Version 3.0.0
Interfaceosid.billing.payment.PaymentForm
Implementsosid.OsidObjectForm
Implemented Byosid.billing.payment.batch.PaymentBatchForm
Used Byosid.billing.payment.PaymentAdminSession
Description

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

MethodgetPeriodMetadata
Description

Gets the metadata for the billing period.

Returnosid.Metadatametadata for the billing period
CompliancemandatoryThis method must be implemented.
MethodsetPeriod
Description

Sets the period.

Parametersosid.id.IdperiodIdthe new billing period
ErrorsINVALID_ARGUMENTperiodId is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTperiodId is null
CompliancemandatoryThis method must be implemented.
MethodclearPeriod
Description

Clears the billing period.

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

Gets the metadata for the payment date.

Returnosid.Metadatametadata for the payment date
CompliancemandatoryThis method must be implemented.
MethodsetPaymentDate
Description

Sets the payment date.

Parametersosid.calendaring.DateTimedatethe new payment date
ErrorsINVALID_ARGUMENTdate is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTdate is null
CompliancemandatoryThis method must be implemented.
MethodclearPaymentDate
Description

Clears the payment date.

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

Gets the metadata for the process date.

Returnosid.Metadatametadata for the procssed date
CompliancemandatoryThis method must be implemented.
MethodsetProcessDate
Description

Sets the process date.

Parametersosid.calendaring.DateTimedatethe new process date
ErrorsINVALID_ARGUMENTdate is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTdate is null
CompliancemandatoryThis method must be implemented.
MethodclearProcessDate
Description

Clears the process date.

ErrorsNO_ACCESSMetadata.isRequired() 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

Clears the amount.

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

Gets the PaymentFormRecord corresponding to the given payment record Type .

Parametersosid.type.TypepaymentRecordTypea payment record type
Returnosid.billing.payment.records.PaymentFormRecordthe payment form record
ErrorsNULL_ARGUMENTpaymentRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(paymentRecordType) is false
CompliancemandatoryThis method must be implemented.