OSID Logo
OSID Specifications
billing payment package
Version 3.1.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.Metadata metadata for the billing period
Compliancemandatory This method must be implemented.
MethodsetPeriod
Description

Sets the period.

Parametersosid.id.IdperiodId the new billing period
ErrorsINVALID_ARGUMENT periodId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT periodId is null
Compliancemandatory This method must be implemented.
MethodclearPeriod
Description

Clears the billing period.

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

Gets the metadata for the payment date.

Returnosid.Metadata metadata for the payment date
Compliancemandatory This method must be implemented.
MethodsetPaymentDate
Description

Sets the payment date.

Parametersosid.calendaring.DateTimedate the new payment date
ErrorsINVALID_ARGUMENT date is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT date is null
Compliancemandatory This method must be implemented.
MethodclearPaymentDate
Description

Clears the payment date.

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

Gets the metadata for the process date.

Returnosid.Metadata metadata for the procssed date
Compliancemandatory This method must be implemented.
MethodsetProcessDate
Description

Sets the process date.

Parametersosid.calendaring.DateTimedate the new process date
ErrorsINVALID_ARGUMENT date is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT date is null
Compliancemandatory This method must be implemented.
MethodclearProcessDate
Description

Clears the process date.

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

Clears the amount.

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

Gets the PaymentFormRecord corresponding to the given payment record Type.

Parametersosid.type.TypepaymentRecordType a payment record type
Returnosid.billing.payment.records.PaymentFormRecord the payment form record
ErrorsNULL_ARGUMENT paymentRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(paymentRecordType) is false
Compliancemandatory This method must be implemented.