OSID Logo
OSID Specifications
billing payment package
Version 3.0.0
Release Candidate Preview
Interfaceosid.billing.payment.Summary
Implementsosid.OsidCompendium
Description

A Payment.

MethodgetCustomerId
Description

Gets the customer Id.

Returnosid.id.Idthe customer Id
CompliancemandatoryThis method must be implemented.
MethodgetCustomer
Description

Gets the customer.

Returnosid.billing.Customerthe customer
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetPeriodId
Description

Gets the billing period Id To which this summary pertains.

Returnosid.id.Idthe period Id
CompliancemandatoryThis method must be implemented.
MethodgetPeriod
Description

Gets the billing period to which this summary pertains.

Returnosid.billing.Periodthe period
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodisCreditBalance
Description

Tests if the balance is a credit or customer owes money.

Returnboolean true if a credit, false if a debit
CompliancemandatoryThis method must be implemented.
MethodgetBalance
Description

Gets the balance for this customer.

Returnosid.financials.Currencythe balance
CompliancemandatoryThis method must be implemented.
MethodhasLastPayment
Description

Tests if the customer has paid before.

Returnboolean true if there is a last payment, false otehrwise
CompliancemandatoryThis method must be implemented.
MethodgetLastPaymentDate
Description

Gets the date the last payment was made.

Returnosid.calendaring.DateTimethe last payment date
ErrorsILLEGAL_STATE hasLastPayment() is false
CompliancemandatoryThis method must be implemented.
MethodgetLastPayment
Description

Gets the last payment for this customer.

Returnosid.financials.Currencythe payment
ErrorsILLEGAL_STATE hasLastPayment() is false
CompliancemandatoryThis method must be implemented.
MethodgetPaymentDueDate
Description

Gets the date the next payment is due.

Returnosid.calendaring.DateTimethe payment due date
CompliancemandatoryThis method must be implemented.
MethodgetSummaryRecord
Description

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

Parametersosid.type.TypesummaryRecordTypethe type of summary record to retrieve
Returnosid.billing.payment.records.SummaryRecordthe summary record
ErrorsNULL_ARGUMENT summaryRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(summaryRecordType) is false
CompliancemandatoryThis method must be implemented.